using Stone.Common; using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace Stone.WinModule.JisData { public partial class frmPJISErrorCarpet : Stone.WinModule.BasicData.frmBaseMainDetail { public frmPJISErrorCarpet() { InitializeComponent(); } private void frmPJISErrorCarpet_Load(object sender, EventArgs e) { this.Text = "JIS地毯错误处理"; } public override bool GetData() { if (!MyValidator.IsEmpty(this.txtModuno, "")) return false; base.GetData(); drData["Moduno"] = MyStrings.GetString(this.txtModuno.Text.Trim()); drData["IsError"] = this.txtIsError.Checked; drData["ErrorMsg"] = MyStrings.GetString(this.txtErrorMessage.Text.Trim()); return true; } public override bool SetData() { if (base.SetData()) { this.txtProductionNo.Text = drData["ProductionNo"].ToString(); this.txtModuno.Text = drData["Moduno"].ToString(); this.txtIsError.Checked = Convert.ToBoolean(drData["IsError"]); this.txtErrorMessage.Text = drData["ErrorMsg"].ToString(); } return false; } } }