using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using Stone.Common; using Stone.WinBiz.BasicData; namespace Stone.WinModule.BasicData { public partial class frmFeaturePartDetail : Stone.WinModule.BasicData.frmBaseMainDetail { public frmFeaturePartDetail() { InitializeComponent(); } private void frmColorDetail_Load(object sender, EventArgs e) { } public override bool GetData() { if (!MyValidator.IsEmpty(this.txtPartNumber, "")) return false; if (!MyValidator.IsEmpty(this.txtPartName, "")) return false; base.GetData(); drData["FeatureCode"] = ((F_FeaturePart)m_Base).FeatureCode; drData["PartNumber"] = MyStrings.GetString(this.txtPartNumber.Text.Trim()); drData["PartName"] = MyStrings.GetString(this.txtPartName.Text.Trim()); return true; } public override bool SetData() { if (base.SetData()) { this.txtPartNumber.Text = drData["PartNumber"].ToString(); this.txtPartName.Text = drData["PartName"].ToString(); } return false; } public override void Clear() { base.Clear(); this.txtPartNumber.Text = ""; this.txtPartName.Text = ""; this.txtPartNumber.Focus(); } } }