using System; using System.Windows.Forms; using UAS_MES.PublicMethod; namespace UAS_MES.SMT { public partial class SMT_MakeShift : Form { public SMT_MakeShift() { InitializeComponent(); } private void 工单切换_Load(object sender, EventArgs e) { ma_code.Caller = "MakeShift"; ma_code.FormName = Name; ma_code.SetValueField = new string[] { "ma_code", "ma_id", "ma_qty", "ma_prodcode", "ma_linecode", "ma_smtcode" }; ma_code.SelectField = "ma_code # 工单号,ma_prodcode # 物料编号,ma_qty # 数量,ma_prodname # 物料名称,ma_wccode # 工作中心编号,ma_linecode # 线别,ma_smtcode # 排位编号"; ma_code.TableName = "make"; ma_code.DBTitle = "工单查询"; } private void Confirm_Click(object sender, EventArgs e) { if (ma_prodcode.Text == "" || ma_code.Text == "") { BaseUtil.ShowError("必须填写工单号和产品编号"); } } private void Cancel_Click(object sender, EventArgs e) { Close(); } } }