| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- 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();
- }
- }
- }
|