| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143 |
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Text;
- using System.Windows.Forms;
- using Core.LgMes.Client.LgResMgt;
- using System.Threading;
- using Core.LgMes.Client.lgClassModel;
- using System.Collections;
- using System.Reflection;
- using CoreFS.CA06;
- namespace Core.LgMes.Client.lgJobMgt.弹出窗体
- {
- public partial class frmMixInIronNo : Form
- {
- public string SourceID, BlastStoveNo, IronNo, Period, DutyNo, Temperature, PotNo, PotAge;
- public string C, Si, Mn, P, S, V;
- public string CanWeight, GrossWeight, NetWeight;
- public string strMisNo = "";
- public frmMixInIronNo()
- {
- InitializeComponent();
- }
- protected override void Dispose(bool disposing)
- {
- if (disposing)
- {
- if (components != null)
- {
- components.Dispose();
- }
- }
- base.Dispose(disposing);
- }
- private void frmMixInIronNo_Load(object sender, EventArgs e)
- {
- getInIronNoDate();
- }
- private void getInIronNoDate()
- {
- string strOut = "", strWhere = "";
- //string potid = this.Text.Substring(0, 1) + "#混铁炉";
- strWhere = " and wsid<>'" + strMisNo + "'"; //"where MISNO is null";
- //hengxing
- //CallingMessage par = new CallingMessage();
- //par.ServerName = "lgJobMgt";
- //par.AssemblyName = "Core.LgMes.Server.lgJobMgt";
- //par.ClassName = "Core.LgMes.Server.lgJobMgt.classIronJob";
- //par.MethodName = "GetInIronNoDate";
- //par.args = new object[] { strWhere };
- object obj = null;// ClientCommon._RemotingHelp.ExecuteMethod(par, out strOut);
- if (strOut == "" && obj != null)
- {
- DataTable furnaceDs = ((DataSet)obj).Tables[0];
- ultraGrid1.DataSource = furnaceDs;
-
- this.ultraGrid1.DisplayLayout.Bands[0].Columns[0].Header.Caption = "铁水来源";
- this.ultraGrid1.DisplayLayout.Bands[0].Columns[0].Width = 70;
- this.ultraGrid1.DisplayLayout.Bands[0].Columns[0].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
- this.ultraGrid1.DisplayLayout.Bands[0].Columns[1].Header.Caption = "罐号";
- this.ultraGrid1.DisplayLayout.Bands[0].Columns[1].Width = 40;
- this.ultraGrid1.DisplayLayout.Bands[0].Columns[1].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
- this.ultraGrid1.DisplayLayout.Bands[0].Columns[2].Hidden = true;
- this.ultraGrid1.DisplayLayout.Bands[0].Columns[8].Header.Caption = "进铁时间";
- this.ultraGrid1.DisplayLayout.Bands[0].Columns[8].Width = 110;
- this.ultraGrid1.DisplayLayout.Bands[0].Columns[8].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
- this.ultraGrid1.DisplayLayout.Bands[0].Columns[8].Format = "yyyy-MM-dd HH:mm";
- this.ultraGrid1.DisplayLayout.Bands[0].Columns[3].Hidden = true;
- this.ultraGrid1.DisplayLayout.Bands[0].Columns[4].Header.Caption = "皮重";
- this.ultraGrid1.DisplayLayout.Bands[0].Columns[4].Width = 40;
- this.ultraGrid1.DisplayLayout.Bands[0].Columns[4].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
- this.ultraGrid1.DisplayLayout.Bands[0].Columns[5].Header.Caption = "毛重";
- this.ultraGrid1.DisplayLayout.Bands[0].Columns[5].Width = 40;
- this.ultraGrid1.DisplayLayout.Bands[0].Columns[5].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
- this.ultraGrid1.DisplayLayout.Bands[0].Columns[6].Header.Caption = "净重";
- this.ultraGrid1.DisplayLayout.Bands[0].Columns[6].Width = 40;
- this.ultraGrid1.DisplayLayout.Bands[0].Columns[6].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
- this.ultraGrid1.DisplayLayout.Bands[0].Columns[7].Header.Caption = "剩余重量";
- this.ultraGrid1.DisplayLayout.Bands[0].Columns[7].Width = 60;
- this.ultraGrid1.DisplayLayout.Bands[0].Columns[7].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
-
- this.ultraGrid1.DisplayLayout.Bands[0].Columns[9].Hidden = true;
- this.ultraGrid1.DisplayLayout.Bands[0].Columns[10].Hidden = true;
- this.ultraGrid1.DisplayLayout.Bands[0].Columns[11].Hidden = true;
- this.ultraGrid1.DisplayLayout.Bands[0].Columns[12].Hidden = true;
- this.ultraGrid1.DisplayLayout.Bands[0].Columns[13].Hidden = true;
- this.ultraGrid1.DisplayLayout.Bands[0].Columns[14].Hidden = true;
- }
- }
- private void ulbtnOK_Click(object sender, EventArgs e)
- {
- Infragistics.Win.UltraWinGrid.UltraGridRow arow = ultraGrid1.ActiveRow;
- if (arow != null)
- {
- SourceID = arow.Cells["MISID"].Value.ToString();
- BlastStoveNo = arow.Cells["STOVEID"].Value.ToString();
- PotNo = arow.Cells["TFPOTID"].Value.ToString();
- C = arow.Cells["C"].Value.ToString();
- Si = arow.Cells["SI"].Value.ToString();
- Mn = arow.Cells["MN"].Value.ToString();
- P = arow.Cells["P"].Value.ToString();
- S = arow.Cells["S"].Value.ToString();
- V = arow.Cells["ASN"].Value.ToString();
- Temperature = arow.Cells["IRONTEMPERATURE"].Value.ToString();
- CanWeight = arow.Cells["TFPOTGROSSWGT"].Value.ToString();
- if (SourceID.Substring(0, 1) == "D")
- {
- NetWeight = arow.Cells["FOLDPOTWGT"].Value.ToString();
- GrossWeight =Convert.ToString( Convert.ToDouble(CanWeight) + Convert.ToDouble(NetWeight));
- }
- else
- {
- NetWeight = arow.Cells["TFPOTWGT"].Value.ToString();
- GrossWeight = arow.Cells["TFPOTTAREWGT"].Value.ToString();
- }
- }
- this.DialogResult = DialogResult.OK;
- }
- private void ulbtnCancel_Click(object sender, EventArgs e)
- {
- this.Close();
- }
-
- }
- }
|