| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- using Core.Mes.Client.Comm.Control;
- using Core.StlMes.Client.Judge.Commons;
- using CoreFS.CA06;
- using System;
- using System.Data;
- using System.Drawing;
- using System.Windows.Forms;
- namespace Core.StlMes.Client.Judge.Controls
- {
- public partial class QcmLgJudgeCtrl : UserControl
- {
- private Dal _d;
- public QcmLgJudgeCtrl(Control container, OpeBase ob)
- {
- InitializeComponent();
- container.Controls.Add(this);
- this.Dock = DockStyle.Fill;
- this.BringToFront();
- _d = new Dal(ob);
- }
- public void Query(string stoveNo, string judgeStoveNo, string judgeResult, string timeBegin, string timeEnd, string[] plines,
- string userName, string cusInfoEnd)
- {
- DataTable dt = _d.GetTableByXmlId("QcmLgJudgeDAL.Query", stoveNo, judgeStoveNo, judgeResult, timeBegin,
- timeEnd, plines.Length, plines, userName, cusInfoEnd);
- GridHelper.CopyDataToDatatable(dt, dataTable1, true);
- GridHelper.RefreshAndAutoSize(entityGrid1);
- }
- public void QueryZg(string judgeStoveNo, string judgeResult, string timeBegin, string timeEnd)
- {
- DataTable dt = _d.GetTableByXmlId("QcmLgJudgeDAL.QueryZg", judgeStoveNo, judgeResult, timeBegin, timeEnd);
- GridHelper.CopyDataToDatatable(dt, dataTable1, true);
- GridHelper.RefreshAndAutoSize(entityGrid1);
- }
- public void ClearData()
- {
- dataTable1.Clear();
- }
- private void entityGrid1_AfterSortChange(object sender, Infragistics.Win.UltraWinGrid.BandEventArgs e)
- {
- GridHelper.RefreshAndAutoSize(entityGrid1);
- }
- private void entityGrid1_InitializeRow(object sender, Infragistics.Win.UltraWinGrid.InitializeRowEventArgs e)
- {
- Color red = Color.FromArgb(255, 106, 106);
- if (e.Row.GetValue("judgeresult") == "40740704" || e.Row.GetValue("judgeresult") == "40740705")
- {
- e.Row.Appearance.BackColor = red;
- }
- }
- }
- }
|