QcmZgResampleCtrl.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. using Core.Mes.Client.Comm.Control;
  2. using Core.StlMes.Client.Judge.Commons;
  3. using CoreFS.CA06;
  4. using System.Data;
  5. using System.Windows.Forms;
  6. namespace Core.StlMes.Client.Judge.Controls
  7. {
  8. public partial class QcmZgResampleCtrl : UserControl
  9. {
  10. private Dal _d;
  11. private string _judgeStoveNo = "";
  12. private string _batchNo = "";
  13. public QcmZgResampleCtrl(Control container, OpeBase ob, string judgeStoveNo, string batchNo)
  14. {
  15. InitializeComponent();
  16. _judgeStoveNo = judgeStoveNo;
  17. _batchNo = batchNo;
  18. container.Controls.Add(this);
  19. _d = new Dal(ob);
  20. Query();
  21. }
  22. private void Query()
  23. {
  24. DataTable dt = _d.GetTableByXmlId("QcmBcPhyresultDAL.getResampleData", _judgeStoveNo, _batchNo);
  25. GridHelper.CopyDataToDatatable(dt, dataTable1, true);
  26. }
  27. private void ultraGrid1_CellChange(object sender, Infragistics.Win.UltraWinGrid.CellEventArgs e)
  28. {
  29. e.Cell.Row.Update();
  30. }
  31. }
  32. }