|
|
|
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;
|
|
|
|
|
|
|
|
namespace Stone.WinModule.BasicData
|
|
|
|
{
|
|
|
|
public partial class frmPartPODetail : Stone.WinModule.BasicData.frmBaseMainDetail
|
|
|
|
{
|
|
|
|
public frmPartPODetail()
|
|
|
|
{
|
|
|
|
InitializeComponent();
|
|
|
|
}
|
|
|
|
|
|
|
|
private void frmColorDetail_Load(object sender, EventArgs e)
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
public override bool GetData()
|
|
|
|
{
|
|
|
|
if (!MyValidator.IsEmpty(this.txtCode, "")) return false;
|
|
|
|
if (!MyValidator.IsEmpty(this.tbPONumber, "")) return false;
|
|
|
|
base.GetData();
|
|
|
|
drData["Code"] = MyStrings.GetString(this.txtCode.Text.Trim());
|
|
|
|
drData["PONumber"] = MyStrings.GetString(this.tbPONumber.Text.Trim());
|
|
|
|
drData["PartType"] = MyStrings.GetString(this.tbPartType.Text.Trim());
|
|
|
|
drData["IsCheck"] = this.txtIsCheck.Checked ? true : false;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
public override bool SetData()
|
|
|
|
{
|
|
|
|
if (type == 2)
|
|
|
|
{
|
|
|
|
this.txtCode.ReadOnly = true;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (base.SetData())
|
|
|
|
{
|
|
|
|
this.txtCode.Text = drData["Code"].ToString();
|
|
|
|
this.tbPONumber.Text = drData["PONumber"].ToString();
|
|
|
|
this.tbPartType.Text = drData["PartType"].ToString();
|
|
|
|
this.txtIsCheck.Checked = Convert.ToBoolean(drData["IsCheck"]);
|
|
|
|
}
|
|
|
|
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
public override void Clear()
|
|
|
|
{
|
|
|
|
base.Clear();
|
|
|
|
this.txtCode.Text = "";
|
|
|
|
this.tbPONumber.Text = "";
|
|
|
|
this.tbPartType.Text = "";
|
|
|
|
this.txtCode.Focus();
|
|
|
|
txtIsCheck.Checked = true;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|