北京安通林JIS系统
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

91 lines
3.1 KiB

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.BasicData
{
public partial class frmOptionBOMDetail : Stone.WinModule.BasicData.frmBaseMainDetail
{
public frmOptionBOMDetail()
{
InitializeComponent();
}
public override bool GetData()
{
if (!MyValidator.IsEmpty(this.txtCode, "")) return false;
if (!MyValidator.IsEmpty(this.txtType, "")) return false;
if (!MyValidator.IsEmpty(this.txtColor, "")) return false;
if (!MyValidator.IsEmpty(this.txtFLProd, "")) return false;
if (!MyValidator.IsEmpty(this.txtFRProd, "")) return false;
if (!MyValidator.IsEmpty(this.txtRLProd, "")) return false;
if (!MyValidator.IsEmpty(this.txtRRProd, "")) return false;
base.GetData();
drData["Code"] = MyStrings.GetString(this.txtCode.Text.Trim());
drData["Type"] = MyStrings.GetString(this.txtType.Text.Trim());
drData["Color"] = MyStrings.GetString(this.txtColor.Text.Trim());
drData["FLProd"] = MyStrings.GetString(this.txtFLProd.Text.Trim());
drData["FRProd"] = MyStrings.GetString(this.txtFRProd.Text.Trim());
drData["RLProd"] = MyStrings.GetString(this.txtRLProd.Text.Trim());
drData["RRProd"] = MyStrings.GetString(this.txtRRProd.Text.Trim());
drData["CarType"] = MyStrings.GetString(this.txtCarType.Text.Trim());
drData["AdColor"] = MyStrings.GetString(this.txtAdColor.Text.Trim());
drData["AgColor"] = MyStrings.GetString(this.txtAgColor.Text.Trim());
return true;
}
public override bool SetData()
{
if (base.SetData())
{
this.txtCode.Text = drData["Code"].ToString();
this.txtType.Text = drData["Type"].ToString();
this.txtColor.Text = drData["Color"].ToString();
this.txtFLProd.Text = drData["FLProd"].ToString();
this.txtFRProd.Text = drData["FRProd"].ToString();
this.txtRLProd.Text = drData["RLProd"].ToString();
this.txtRRProd.Text = drData["RRProd"].ToString();
this.txtCarType.Text = drData["CarType"].ToString();
this.txtAdColor.Text = drData["AdColor"].ToString();
this.txtAgColor.Text = drData["AgColor"].ToString();
}
return false;
}
public override void Clear()
{
base.Clear();
this.txtCode.Text = "";
this.txtType.Text = "";
this.txtColor.Text = "";
this.txtFLProd.Text = "";
this.txtFRProd.Text = "";
this.txtRLProd.Text = "";
this.txtRRProd.Text = "";
this.txtCarType.Text = "";
this.txtAdColor.Text = "";
this.txtAgColor.Text = "";
this.txtCode.Focus();
}
}
}