FrmCoupling.cs 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. using Core.Mes.Client.Comm.Control;
  2. using Core.Mes.Client.Comm.Server;
  3. using CoreFS.CA06;
  4. using System;
  5. using System.Data;
  6. namespace Core.StlMes.Client.Judge.Forms
  7. {
  8. public partial class FrmCoupling : FrmBase
  9. {
  10. private string _JudgeStoveNo = "";
  11. private string _BatchNo = "";
  12. private OpeBase _ob = null;
  13. public FrmCoupling(string judgeStoveNo, string batchNo, OpeBase ob)
  14. {
  15. InitializeComponent();
  16. _JudgeStoveNo = judgeStoveNo;
  17. _BatchNo = batchNo;
  18. _ob = ob;
  19. InitCol();
  20. }
  21. /// <summary>
  22. /// 初始化控件
  23. /// </summary>
  24. private void InitCol()
  25. {
  26. QueryQcmAddAsk();
  27. }
  28. /// <summary>
  29. /// 查询附加要求信息
  30. /// </summary>
  31. /// <param name="JudgeStoveNo"></param>
  32. private void QueryQcmAddAsk()
  33. {
  34. DataTable dt = ServerHelper.GetData("com.steering.pss.judge.DAL.QcmZbsQueryFrm.QueryCoupling", new object[] { _JudgeStoveNo, _BatchNo }, this._ob);
  35. if (dt.Rows.Count > 0 && dt != null)
  36. {
  37. GridHelper.CopyDataToDatatable(dt, this.dataTable1, true);
  38. //GridHelper.RefreshAndAutoSize(this.ultraGrid1);
  39. }
  40. }
  41. /// <summary>
  42. /// 取消
  43. /// </summary>
  44. /// <param name="sender"></param>
  45. /// <param name="e"></param>
  46. private void btnCancel_Click(object sender, EventArgs e)
  47. {
  48. this.Close();
  49. }
  50. private void FrmQcmAddAsk_Load(object sender, EventArgs e)
  51. {
  52. //EntityHelper.ShowGridCaption<QcmAddAskEntity>(ultraGrid3.DisplayLayout.Bands[0]);
  53. }
  54. }
  55. }