| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- 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 QcmLgChemJudgeCtrl : UserControl
- {
- private Dal _d;
- public QcmLgChemJudgeCtrl(Control container, OpeBase ob)
- {
- InitializeComponent();
- _d = new Dal(ob);
- container.Controls.Add(this);
- this.Dock = DockStyle.Fill;
- EntityHelper.ShowGridCaption<QcmLgChemJudgeCtrlEntity>(ultraGrid1.DisplayLayout.Bands[0]);
- }
- public void Query(string stoveNo, string processCode)
- {
- DataTable dt = _d.GetTableByXmlId("QcmLgChemjudgeDAL.Query", stoveNo, processCode);
- GridHelper.CopyDataToDatatable(dt, dataTable1, true);
- //qcmLgChemJudgeCtrlEntityBindingSource.DataSource = _lgChemJudgeBLL.Query(stoveNo, processCode);
- }
- public void QuerySteelMaking(string stoveNo, string judgeStoveNo, string judgeResult, string judgeTimeB, string judgeTimeE, string[] plines)
- {
- DataTable dt = _d.GetTableByXmlId("QcmLgChemjudgeDAL.QuerySteelMaking", "B", stoveNo, judgeStoveNo,
- judgeResult, judgeTimeB, judgeTimeE, plines.Length, plines);
- GridHelper.CopyDataToDatatable(dt, dataTable1, true);
- GridHelper.RefreshAndAutoSize(ultraGrid1);
- }
- //public void Judge(List<QcmJhyElementsEntity> jhyElements, QcmLgChemjudgeEntity lgChemJudge,
- // string stoveNo, string judgeStoveNo, string proPlanId, string cic, string judgeApplayCode,
- // string chemResultCode, JudgeType judgeType)
- //{
- // _lgChemJudgeBLL.Judge(jhyElements, lgChemJudge,stoveNo, judgeStoveNo, proPlanId, cic, judgeApplayCode, chemResultCode, judgeType);
- //}
- public void ClearData()
- {
- 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.Appearance.BackColor = red;
- }
- }
- }
- }
|