using Core.Mes.Client.Comm.Control; using Core.Mes.Client.Comm.Tool; using Core.StlMes.Client.Judge.Commons; using Core.StlMes.Client.Judge.ViewModels; using CoreFS.CA06; using System; using System.Data; using System.Drawing; using System.Windows.Forms; namespace Core.StlMes.Client.Judge.Controls { public partial class QcmLgChemJudgeExceptionCtrl : UserControl { private Dal _d; public QcmLgChemJudgeExceptionCtrl(Control container, OpeBase ob) { InitializeComponent(); _d = new Dal(ob); container.Controls.Add(this); this.Dock = DockStyle.Fill; this.BringToFront(); EntityHelper.ShowGridCaption(ultraGrid1.DisplayLayout.Bands[0]); } public void Query(string stoveNo, string processCode) { } public void QuerySteelMaking(string chemJudgeId) { DataTable dt = _d.GetTableByXmlId("QcmLgChemjudgeExceptionDAL.QuerySteelMaking", chemJudgeId); GridHelper.CopyDataToDatatable(dt, dataTable1, true); GridHelper.RefreshAndAutoSize(ultraGrid1); } public void Clear() { dataTable1.Clear(); } private void ultraGrid1_InitializeRow(object sender, Infragistics.Win.UltraWinGrid.InitializeRowEventArgs e) { Color red = Color.FromArgb(255, 106, 106); if (e.Row.GetValue("judgeChemCode") == "40740102") { e.Row.RowSelectorAppearance.BackColor = red; } } } }