| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Text;
- using System.Windows.Forms;
- using CoreFS.CA06;
- using Core.Mes.Client.Common;
- using System.Collections;
- namespace Core.LgMes.Client.LgJobMgt
- {
- public partial class frmBfIronTemp : frmStyleBase
- {
- public frmBfIronTemp()
- {
- InitializeComponent();
- }
- private string _szCZSJ;
- private DataSet _dsTBH = new DataSet();
- public string _strHeatProcessNo = "", _strPTIronTemp = "";
- public string strVan = "";
- public OpeBase ob; //服务端URL
- public string strKR_Charge_NO = "";
- /// <summary>
- /// 获取平台温度数据
- /// </summary>
- private void GetPTIronTemp()
- {
- string strErr = "";
- ArrayList arry = new ArrayList();
- arry.Add("GetPTIronTemp.Select");//此ID为XML文件ID
- CommonClientToServer ccTs = new CommonClientToServer();
- ccTs.ob = ob;
- // 获取平台温度数据
- DataSet ds = ccTs.ExecuteQueryFunctions("Core.LgMes.Server.LgJobMgt.ClassHmpJob",
- "GetPTIronTemp", arry, out strErr);
- if (strErr == "" && ds != null)
- {
- ultraDataSource2.Rows.Clear();
- if (ds.Tables.Count > 0)
- {
- foreach (DataRow dr in ds.Tables[0].Rows)
- {
- ultraDataSource2.Rows.Add(new object[] {dr["HEATPROCESSNO"].ToString(),
- dr["SAMPLINGVALUE"].ToString(),
- dr["SAMPLINGDATE"].ToString(),
- dr["FLAG"].ToString(),
- });
- }
- }
- else
- MessageBox.Show("平台铁水温度信息查询失败!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
- }
- }
- private void frmBfIronTemp_Load(object sender, EventArgs e)
- {
- GetPTIronTemp();
- }
- private void ultragridInIron_DoubleClickRow(object sender, Infragistics.Win.UltraWinGrid.DoubleClickRowEventArgs e)
- {
- if (e.Row != null)
- {
- _strHeatProcessNo = e.Row.Cells["HEATPROCESSNO"].Value.ToString();
- _strPTIronTemp = e.Row.Cells["SAMPLINGVALUE"].Value.ToString();
- this.Close();
- }
- }
- }
- }
|