| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- using Core.Mes.Client.Comm.Control;
- using Core.StlMes.Client.Judge.Commons;
- using CoreFS.CA06;
- using System.Data;
- using System.Windows.Forms;
- namespace Core.StlMes.Client.Judge.Controls
- {
- public partial class ThreaderInfoCtrl : UserControl
- {
- private Dal _d;
- public ThreaderInfoCtrl(Control container, OpeBase ob)
- {
- InitializeComponent();
- _d = new Dal(ob);
- container.Controls.Add(this);
- this.Dock = DockStyle.Fill;
- }
- public void Query(string judgeStoveNo, string batchNo, bool clearData)
- {
- DataTable dt = _d.GetTableByXmlId("JdgMchThreaderResult.getInfo", judgeStoveNo, batchNo, clearData);
- GridHelper.CopyDataToDatatable(dt, dataTable1, clearData);
- foreach (DataRow row in dataTable1.Rows)
- {
- if (row["batchNo"].ToString() != "") continue;
- row["judgeStoveNo"] = judgeStoveNo;
- row["batchNo"] = batchNo;
- }
- GridHelper.RefreshAndAutoSize(ultraGrid1);
- }
- public void Query(string judgeStoveNo, string batchNo, bool clearData,string plineCode)
- {
- DataTable dt = _d.GetTableByXmlId("JdgMchThreaderResult.getInfoByPline", judgeStoveNo, batchNo, plineCode);
- GridHelper.CopyDataToDatatable(dt, dataTable1, clearData);
- foreach (DataRow row in dataTable1.Rows)
- {
- if (row["batchNo"].ToString() != "") continue;
- row["judgeStoveNo"] = judgeStoveNo;
- row["batchNo"] = batchNo;
- }
- GridHelper.RefreshAndAutoSize(ultraGrid1);
- }
- public void ClearData()
- {
- this.dataTable1.Clear();
- }
- }
- }
|