PopupSetDesignJg.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. using Core.StlMes.Client.Qcm.Control;
  2. using CoreFS.CA06;
  3. using System;
  4. namespace Core.StlMes.Client.Qcm
  5. {
  6. public partial class PopupSetDesignJg : FrmBase
  7. {
  8. private ComMscRJgCtrl _mscRJgCtrl;
  9. private string _ordLnPk = "";
  10. private bool _isCraft = false;
  11. public PopupSetDesignJg(string ordLnPk, bool isCraft, OpeBase ob)
  12. {
  13. InitializeComponent();
  14. _ordLnPk = ordLnPk;
  15. this._isCraft = isCraft;
  16. this.ob = ob;
  17. _mscRJgCtrl = new ComMscRJgCtrl(ob, this.panel1);
  18. }
  19. private void ultraToolbarsManager1_ToolClick(object sender, Infragistics.Win.UltraWinToolbars.ToolClickEventArgs e)
  20. {
  21. switch (e.Tool.Key)
  22. {
  23. case "保存":
  24. Save();
  25. break;
  26. case "关闭":
  27. this.Close();
  28. break;
  29. }
  30. }
  31. private void Query()
  32. {
  33. _mscRJgCtrl.GetMscRJgBySpec(_ordLnPk, _isCraft);
  34. }
  35. private void Save()
  36. {
  37. _mscRJgCtrl.InsertDesignMscRJg(_ordLnPk, _isCraft);
  38. }
  39. private void PopupSetDesignJg_Load(object sender, EventArgs e)
  40. {
  41. Query();
  42. }
  43. }
  44. }