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.
122 lines
3.4 KiB
122 lines
3.4 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.WinBiz.BasicData;
|
|
|
|
namespace Stone.WinModule.BasicData
|
|
{
|
|
public partial class frmJISLimitsDetail : Stone.WinModule.BasicData.frmBaseMainDetail
|
|
{
|
|
public frmJISLimitsDetail()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void frmColorDetail_Load(object sender, EventArgs e)
|
|
{
|
|
|
|
}
|
|
|
|
public override bool GetData()
|
|
{
|
|
if (!MyValidator.IsEmpty(this.txtPartsFamily, "")) return false;
|
|
if (!MyValidator.IsEmpty(this.txtsupplyGroup, "")) return false;
|
|
if (!MyValidator.IsEmpty(this.txtpartNumber, "")) return false;
|
|
base.GetData();
|
|
drData["PartsFamily"] = MyStrings.GetString(this.txtPartsFamily.Text.Trim());
|
|
drData["supplyGroup"] = MyStrings.GetString(this.txtsupplyGroup.Text.Trim());
|
|
drData["partNumber"] = MyStrings.GetString(this.txtpartNumber.Text.Trim());
|
|
|
|
|
|
return true;
|
|
}
|
|
|
|
public override bool SetData()
|
|
{
|
|
if (base.SetData())
|
|
{
|
|
this.txtPartsFamily.Text = drData["PartsFamily"].ToString();
|
|
this.txtsupplyGroup.Text = drData["supplyGroup"].ToString();
|
|
this.txtpartNumber.Text = drData["partNumber"].ToString();
|
|
}
|
|
|
|
return false;
|
|
}
|
|
|
|
public override void Clear()
|
|
{
|
|
base.Clear();
|
|
this.txtpartNumber.Text = "";
|
|
this.txtpartNumber.Focus();
|
|
}
|
|
|
|
private void txtPartsFamily_OnSelectClick(object sender, EventArgs e)
|
|
{
|
|
try
|
|
{
|
|
frmPartsFamily frm = new frmPartsFamily();
|
|
frm.m_Base = new F_PartsFamily();
|
|
frm.init();
|
|
|
|
if (frm.ShowSelect("") == DialogResult.OK)
|
|
{
|
|
this.txtPartsFamily.Text = frm.SelectValue;
|
|
}
|
|
frm.Dispose();
|
|
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
MyMessageBox.ShowErrorMessage(ex.Message);
|
|
}
|
|
}
|
|
|
|
private void txtsupplyGroup_OnSelectClick(object sender, EventArgs e)
|
|
{
|
|
try
|
|
{
|
|
frmSupplyGroup frm = new frmSupplyGroup();
|
|
frm.m_Base = new F_SupplyGroup();
|
|
frm.init();
|
|
|
|
if (frm.ShowSelect("") == DialogResult.OK)
|
|
{
|
|
this.txtsupplyGroup.Text = frm.SelectValue;
|
|
}
|
|
frm.Dispose();
|
|
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
MyMessageBox.ShowErrorMessage(ex.Message);
|
|
}
|
|
}
|
|
|
|
private void txtpartNumber_OnSelectClick(object sender, EventArgs e)
|
|
{
|
|
try
|
|
{
|
|
frmProduct frm = new frmProduct();
|
|
frm.m_Base = new F_Product();
|
|
frm.init();
|
|
|
|
if (frm.ShowSelect("") == DialogResult.OK)
|
|
{
|
|
this.txtpartNumber.Text = frm.SelectValue;
|
|
}
|
|
frm.Dispose();
|
|
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
MyMessageBox.ShowErrorMessage(ex.Message);
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|
|
|