| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- 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 MeltingStoveNoCtrl : UserControl
- {
- private Dal _d;
- public MeltingStoveNoCtrl(Control container, OpeBase ob)
- {
- InitializeComponent();
- container.Controls.Add(this);
- this.Dock = DockStyle.Fill;
- this.BringToFront();
- _d = new Dal(ob);
- }
- public void LgChemQuery(string stoveNo, string[] states = null, string plineCode = "", string judgeState = "", string timeB = "", string timeE = "")
- {
- if (states == null) states = new string[0];
- DataTable dt = _d.GetTableByXmlId("PlnSteelforfurnaceDAL.QueryLgChemMeltingStoveNo", states.Length, states,
- stoveNo, plineCode, judgeState, timeB, timeE);
- //_steelforfurnaceBLL.QueryMeltingStoveNo(states, stoveNo, plineCode);
- GridHelper.CopyDataToDatatable(dt, this.dataTable1, true);
- GridHelper.RefreshAndAutoSize(ultraGrid1);
- }
- public void LgColligateQuery(string stoveNo, string[] states = null, string plineCode = "", string judgeState = "", string timeB = "", string timeE = "")
- {
- if (states == null) states = new string[0];
- DataTable dt = _d.GetTableByXmlId("PlnSteelforfurnaceDAL.QueryLgColligateMeltingStoveNo", states.Length, states,
- stoveNo, plineCode, judgeState, timeB, timeE);
- //_steelforfurnaceBLL.QueryMeltingStoveNo(states, stoveNo, plineCode);
- GridHelper.CopyDataToDatatable(dt, this.dataTable1, true);
- GridHelper.RefreshAndAutoSize(ultraGrid1);
- }
- public void ZgColligateQuery(string stoveNo, string[] states = null, string plineCode = "")
- {
- if (states == null) states = new string[0];
- DataTable dt = _d.GetTableByXmlId("PlnSteelforfurnaceDAL.QueryZgColligateMeltingStoveNo", states.Length, states, stoveNo, plineCode);
- //_steelforfurnaceBLL.QueryMeltingStoveNo(states, stoveNo, plineCode);
- GridHelper.CopyDataToDatatable(dt, this.dataTable1, true);
- GridHelper.RefreshAndAutoSize(ultraGrid1);
- }
- private void ultraGrid1_InitializeRow(object sender, Infragistics.Win.UltraWinGrid.InitializeRowEventArgs e)
- {
- if (e.Row.GetValue("stlIncisionCnt").ToString() != "0")
- {
- e.Row.Appearance.BackColor = Color.FromArgb(60, 179, 113);
- }
- }
- }
- }
|