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.
80 lines
2.3 KiB
80 lines
2.3 KiB
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.Entity;
|
|
|
|
namespace Stone.WinModule.BasicData
|
|
{
|
|
public partial class frmBomDetail : Stone.WinModule.BasicData.frmBaseMainDetail
|
|
{
|
|
public frmBomDetail()
|
|
{
|
|
InitializeComponent();
|
|
|
|
}
|
|
|
|
private void frmColorDetail_Load(object sender, EventArgs e)
|
|
{
|
|
|
|
}
|
|
|
|
public override bool GetData()
|
|
{
|
|
if (!MyValidator.IsEmpty(this.txtCarType, "")) return false;
|
|
if (!MyValidator.IsEmpty(this.txtCode, "")) return false;
|
|
if (!MyValidator.IsEmpty(this.txtPosition, "")) return false;
|
|
if (!MyValidator.IsEmpty(this.txtPartNumber, "")) return false;
|
|
if (!MyValidator.IsEmpty(this.txtQty, "")) return false;
|
|
if (!MyValidator.IsNumeric(this.txtQty, "")) return false;
|
|
|
|
|
|
|
|
base.GetData();
|
|
drData["CarType"] = MyStrings.GetString(this.txtCarType.Text.Trim());
|
|
drData["Code"] = MyStrings.GetString(this.txtCode.Text.Trim());
|
|
drData["Position"] = MyStrings.GetString(this.txtPosition.Text.Trim());
|
|
drData["PartNumber"] = MyStrings.GetString(this.txtPartNumber.Text.Trim());
|
|
drData["Qty"] = MyStrings.GetString(this.txtQty.Text.Trim());
|
|
drData["Memo"] = MyStrings.GetString(this.txtMemo.Text.Trim());
|
|
|
|
return true;
|
|
}
|
|
|
|
public override bool SetData()
|
|
{
|
|
if (base.SetData())
|
|
{
|
|
this.txtCarType.Text = drData["CarType"].ToString();
|
|
this.txtCode.Text = drData["Code"].ToString();
|
|
this.txtPosition.Text = drData["Position"].ToString();
|
|
this.txtPartNumber.Text = drData["PartNumber"].ToString();
|
|
this.txtQty.Text = drData["Qty"].ToString();
|
|
this.txtMemo.Text = drData["Memo"].ToString();
|
|
|
|
}
|
|
|
|
return false;
|
|
}
|
|
|
|
public override void Clear()
|
|
{
|
|
base.Clear();
|
|
this.txtPartNumber.Text = "";
|
|
this.txtQty.Text = "";
|
|
|
|
this.txtPartNumber.Focus();
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|