SMT_MakeShift.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. using System;
  2. using System.Windows.Forms;
  3. using UAS_MES_NEW.PublicMethod;
  4. namespace UAS_MES_NEW.SMT
  5. {
  6. public partial class SMT_MakeShift : Form
  7. {
  8. public SMT_MakeShift()
  9. {
  10. InitializeComponent();
  11. }
  12. private void 工单切换_Load(object sender, EventArgs e)
  13. {
  14. ma_code.Caller = "MakeShift";
  15. ma_code.FormName = Name;
  16. ma_code.SetValueField = new string[] { "ma_code", "ma_id", "ma_qty", "ma_prodcode", "ma_linecode", "ma_smtcode" };
  17. ma_code.SelectField = "ma_code # 工单号,ma_prodcode # 物料编号,ma_qty # 数量,ma_prodname # 物料名称,ma_wccode # 工作中心编号,ma_linecode # 线别,ma_smtcode # 排位编号";
  18. ma_code.TableName = "make";
  19. ma_code.DBTitle = "工单查询";
  20. }
  21. private void Confirm_Click(object sender, EventArgs e)
  22. {
  23. if (ma_prodcode.Text == "" || ma_code.Text == "")
  24. {
  25. BaseUtil.ShowError("必须填写工单号和产品编号");
  26. }
  27. }
  28. private void Cancel_Click(object sender, EventArgs e)
  29. {
  30. Close();
  31. }
  32. }
  33. }