using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using Core.Mes.Client.Common; using System.Collections; using CoreFS.CA06; namespace Core.LgMes.Client.lgGlobalMap { public partial class frmTundish : CoreFS.CA06.FrmBase { public OpeBase ob; string HeatNo = "", StationCode = "",Steel=""; public frmTundish(string strHeatNo, string strStationCode,string strSteel) { HeatNo = strHeatNo; //熔炼号 StationCode = strStationCode; //岗位编码 Steel = strSteel; //牌号 InitializeComponent(); } private void frmTundish_Load(object sender, EventArgs e) { lblHeatNoValue.Text = HeatNo; lblSteelValue.Text = Steel; GetTundishTemp(HeatNo, StationCode); } private void GetTundishTemp(string strHeatNo, string strStationCode) { string strErr = ""; int intRow = 1; DataSet dsResult = new DataSet(); string strSqlID="GetTundishTemp.Select"; ArrayList arry = new ArrayList(); CommonClientToServer ccTos = new CommonClientToServer(); ccTos.ob = ob; arry.Add(strSqlID); arry.Add(strHeatNo); arry.Add(strStationCode); //查询物料配置信息 dsResult = ccTos.ExecuteQueryFunctions("Core.LgMes.Server.LgGlobalMap.ClassReadDataMgt", "GetTundishTemp", arry, out strErr); if (strErr == "" && dsResult != null) { foreach (DataRow dr in dsResult.Tables[0].Rows) { dataGVTundish.Rows.Add(new object[] { intRow.ToString(), dr["samplingvalue"].ToString(), dr["samplingdate"].ToString() }); intRow += 1; } } } private void frmTundish_DoubleClick(object sender, EventArgs e) { this.Close(); } protected override void OnDeactivate(EventArgs e) { base.OnDeactivate(e); this.Close(); } } }