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.SystemData; using Stone.Entity; using Stone.WinBiz.BasicData; namespace Stone.WinModule.BasicData { public partial class frmFGPartSuffixDetail : Stone.WinModule.BasicData.frmBaseMainDetail { public frmFGPartSuffixDetail() { InitializeComponent(); } private void frmColorDetail_Load(object sender, EventArgs e) { } public override bool GetData() { if (!MyValidator.IsEmpty(this.tbStuffix, "")) return false; base.GetData(); drData["CarType"] = MyStrings.GetString(this.tbCarType.Text.ToString()); drData["PartCode"] = MyStrings.GetString(this.tbPartCode.Text.ToString()); drData["Site"] = MyStrings.GetString(this.tbSite.Text.ToString()); drData["Stiffix"] = MyStrings.GetString(this.tbStuffix.Text.Trim()); return true; } public override bool SetData() { if (base.SetData()) { this.tbCarType.Text = drData["CarType"].ToString(); this.tbPartCode.Text = drData["PartCode"].ToString(); this.tbSite.Text = drData["Site"].ToString(); this.tbStuffix.Text= drData["Stiffix"].ToString(); } return false; } public override void Clear() { base.Clear(); this.tbCarType.Text = ""; this.tbPartCode.Text = ""; this.tbSite.Text = ""; this.tbStuffix.Text = ""; this.tbPartCode.Focus(); } } }