SMT_MakeShift.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. try { UAS_MES_NEW.I18n.LanguageManager.Localize(this); } catch { }
  12. }
  13. private void 工单切换_Load(object sender, EventArgs e)
  14. {
  15. ma_code.Caller = "MakeShift";
  16. ma_code.FormName = Name;
  17. ma_code.SetValueField = new string[] { "ma_code", "ma_id", "ma_qty", "ma_prodcode", "ma_linecode", "ma_smtcode" };
  18. ma_code.SelectField = "ma_code # 工单号,ma_prodcode # 物料编号,ma_qty # 数量,ma_prodname # 物料名称,ma_wccode # 工作中心编号,ma_linecode # 线别,ma_smtcode # 排位编号";
  19. ma_code.TableName = "make";
  20. ma_code.DBTitle = "工单查询";
  21. }
  22. private void Confirm_Click(object sender, EventArgs e)
  23. {
  24. if (ma_prodcode.Text == "" || ma_code.Text == "")
  25. {
  26. BaseUtil.ShowError(UAS_MES_NEW.I18n.LanguageManager.T("必须填写工单号和产品编号"));
  27. }
  28. }
  29. private void Cancel_Click(object sender, EventArgs e)
  30. {
  31. Close();
  32. }
  33. }
  34. }