using System; using System.Data; using System.Drawing; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.Text; using System.Windows.Forms; using Infragistics.Win.UltraWinGrid; using System.Threading; using CoreFS.CA06; using Core.LgMes.Client.Comm; namespace Core.LgMes.Client.LgJobMgt { /// /// FrmCutBilletDetail 的摘要说明。 /// public partial class FrmCutBilletDetail : Core.Mes.Client.Common.frmStyleBase, IDisposable { public bool On_Off_Thread = false; #region " Construct " private System.Data.DataSet dataSet1; private Infragistics.Win.UltraWinGrid.UltraGrid ultraGrid1; private Infragistics.Win.Misc.UltraGroupBox ultraGroupBox1; private System.Windows.Forms.TextBox textBox1; private System.Windows.Forms.CheckBox checkBox3; private System.Windows.Forms.CheckBox checkBox2; private System.Windows.Forms.Label label9; private System.Windows.Forms.CheckBox checkBox1; private System.Data.DataTable dataTable1; private System.Data.DataColumn dataColumn1; private System.Data.DataColumn dataColumn2; private System.Data.DataColumn dataColumn3; private System.Data.DataColumn dataColumn4; private System.Data.DataColumn dataColumn5; private System.Data.DataColumn dataColumn6; private System.Data.DataColumn dataColumn7; private System.Data.DataColumn dataColumn8; private System.Data.DataColumn dataColumn9; private System.Data.DataColumn dataColumn10; private System.Data.DataColumn dataColumn11; private System.Data.DataColumn dataColumn12; private System.Data.DataColumn dataColumn13; private System.Data.DataColumn dataColumn14; private System.Data.DataColumn dataColumn15; private System.Data.DataColumn dataColumn16; private Infragistics.Win.Misc.UltraExpandableGroupBox ultraExpandableGroupBox1; private Infragistics.Win.Misc.UltraExpandableGroupBoxPanel ultraExpandableGroupBoxPanel1; private System.Windows.Forms.Label label19; private System.Windows.Forms.Label label18; private System.Windows.Forms.TextBox textBox12; private System.Windows.Forms.TextBox textBox11; private System.Windows.Forms.Label label16; private System.Windows.Forms.TextBox textBox10; private System.Windows.Forms.Label label14; private System.Windows.Forms.TextBox textBox9; private System.Windows.Forms.Label label12; private System.Windows.Forms.TextBox textBox3; private System.Windows.Forms.Label label6; private System.Windows.Forms.TextBox textBox8; private System.Windows.Forms.TextBox textBox7; private System.Windows.Forms.TextBox textBox6; private System.Windows.Forms.TextBox textBox5; private System.Windows.Forms.TextBox textBox4; private System.Windows.Forms.TextBox textBox2; private System.Windows.Forms.Label label15; private System.Windows.Forms.Label label13; private System.Windows.Forms.Label label8; private System.Windows.Forms.Label label11; private System.Windows.Forms.Label label10; private System.Windows.Forms.Label label3; private System.Windows.Forms.Label label7; private System.Windows.Forms.Label label2; private System.Windows.Forms.Label label1; private System.Windows.Forms.Splitter splitter1; private System.Data.DataColumn dataColumn17; private System.Windows.Forms.Label label4; private System.Windows.Forms.TextBox textBox13; private System.Windows.Forms.TextBox textBox14; private System.Windows.Forms.TextBox textBox15; private System.Windows.Forms.Panel panel3; private System.Windows.Forms.TextBox textBox16; private System.Windows.Forms.Label label5; private System.Windows.Forms.TextBox textBox17; private System.Windows.Forms.Label label17; private System.Windows.Forms.TextBox textBox18; private System.Windows.Forms.Label label20; private System.Windows.Forms.TextBox textBox19; private System.Windows.Forms.Label label21; private System.Windows.Forms.Label label22; private System.Windows.Forms.TextBox textBox21; private System.Windows.Forms.Label label23; private System.Windows.Forms.Label label24; private System.Windows.Forms.Button button1; private System.Windows.Forms.TextBox textBox22; private System.Windows.Forms.TextBox textBox20; private System.Windows.Forms.TextBox textBox23; private System.Windows.Forms.Label label25; private System.Windows.Forms.TextBox txt_heatidnoy; private System.Windows.Forms.Button btn_setheatid; private Panel panel2; private Label richTextBox1; private Label label26; private TextBox textBox24; private Label label27; private TextBox textBox25; private Label label28; private Panel panel1; private Infragistics.Win.UltraWinEditors.UltraComboEditor comboBox3; private Infragistics.Win.UltraWinEditors.UltraComboEditor comboBox5; private Infragistics.Win.UltraWinEditors.UltraComboEditor comboBox2; private Infragistics.Win.UltraWinEditors.UltraComboEditor comboBox6; private Infragistics.Win.UltraWinEditors.UltraDateTimeEditor dateTimePicker5; public Infragistics.Win.UltraWinEditors.UltraDateTimeEditor dateTimePicker4; public Infragistics.Win.UltraWinEditors.UltraDateTimeEditor dateTimePicker3; private Infragistics.Win.UltraWinEditors.UltraComboEditor comboBox4; private GroupBox groupBox1; private UltraGrid ultraGrid2; private GroupBox groupBox2; private UltraGrid ultraGrid3; private Infragistics.Win.Misc.UltraGroupBox ultraGroupBox2; private Infragistics.Win.UltraWinEditors.UltraDateTimeEditor dtpCutTime; private Label label29; private ComboBox cboFlowNo; private Label label30; private Label label31; private TextBox txtSurplusFlag; private TextBox txtProdorderNO; private Label label32; private TextBox txtOrderNO; private Label label33; private Button button4; private Button button3; private TextBox textBox26; private Label label34; private Label label35; private Label label36; private TextBox tbxWeight; private TextBox tbxThick; private TextBox tbxWidth; private Label label37; private TextBox tbxLength; private Label label38; private ComboBox comboBox1; private Label label39; private TextBox textBox27; private Label label40; private TextBox textBox28; private Label label41; private Infragistics.Win.Misc.UltraGroupBox ultraGroupBox3; private Button bntSend; private ComboBox combConNo; private CheckBox chkConNo; private Button queryBtn; private ComboBox ccmNumCobo; private CheckBox chkCcmNo; private Panel panel5; private Panel panel4; private System.ComponentModel.IContainer components; public FrmCutBilletDetail() { // // Windows 窗体设计器支持所必需的 // InitializeComponent(); // // TODO: 在 InitializeComponent 调用后添加任何构造函数代码 // } /// /// 清理所有正在使用的资源。 /// protected override void Dispose(bool disposing) { try { if (_refreshDataThread != null) _refreshDataThread.Abort(); } catch { } if (disposing) { if (components != null) { components.Dispose(); } } base.Dispose(disposing); } #region Windows 窗体设计器生成的代码 /// /// 设计器支持所需的方法 - 不要使用代码编辑器修改 /// 此方法的内容。 /// private void InitializeComponent() { Infragistics.Win.Appearance appearance1 = new Infragistics.Win.Appearance(); Infragistics.Win.UltraWinGrid.UltraGridBand ultraGridBand1 = new Infragistics.Win.UltraWinGrid.UltraGridBand("Table1", -1); Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn1 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("HEATNO"); Infragistics.Win.Appearance appearance3 = new Infragistics.Win.Appearance(); Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn2 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("CCMSTOVENO"); Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn3 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("CCMID", -1, 134929704); Infragistics.Win.Appearance appearance4 = new Infragistics.Win.Appearance(); Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn4 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("FLOWNO", -1, 134938501); Infragistics.Win.Appearance appearance32 = new Infragistics.Win.Appearance(); Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn5 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("CUTSEQNO"); Infragistics.Win.Appearance appearance33 = new Infragistics.Win.Appearance(); Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn6 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("MOULDNO"); Infragistics.Win.Appearance appearance34 = new Infragistics.Win.Appearance(); Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn7 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("HEATSEQ"); Infragistics.Win.Appearance appearance35 = new Infragistics.Win.Appearance(); Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn8 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("HEATCNT"); Infragistics.Win.Appearance appearance36 = new Infragistics.Win.Appearance(); Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn9 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("LENGTH"); Infragistics.Win.Appearance appearance37 = new Infragistics.Win.Appearance(); Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn10 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("WIDTH"); Infragistics.Win.Appearance appearance38 = new Infragistics.Win.Appearance(); Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn11 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("THICKNESS"); Infragistics.Win.Appearance appearance39 = new Infragistics.Win.Appearance(); Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn12 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("WEIGHT"); Infragistics.Win.Appearance appearance40 = new Infragistics.Win.Appearance(); Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn13 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("SPECRULE"); Infragistics.Win.Appearance appearance41 = new Infragistics.Win.Appearance(); Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn14 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("CUTTIME"); Infragistics.Win.Appearance appearance42 = new Infragistics.Win.Appearance(); Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn15 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("SHIFTCODE", -1, 38914641); Infragistics.Win.Appearance appearance43 = new Infragistics.Win.Appearance(); Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn16 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("LASTBILLETFLAG", -1, 1197251); Infragistics.Win.Appearance appearance44 = new Infragistics.Win.Appearance(); Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn17 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("FLAG"); Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn18 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("CutSize", 0); Infragistics.Win.Appearance appearance45 = new Infragistics.Win.Appearance(); Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn19 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("RESFLAG", 1, 1197252); Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn20 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("BILLETNO", 2, null, 0, Infragistics.Win.UltraWinGrid.SortIndicator.Ascending, false); Infragistics.Win.Appearance appearance46 = new Infragistics.Win.Appearance(); Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn21 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("CHILDBLOCKNO", 3); Infragistics.Win.Appearance appearance47 = new Infragistics.Win.Appearance(); Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn22 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("BILLETCODE", 4); Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn23 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("ORDERNO", 5); Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn24 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("PRODORDERNO", 6); Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn25 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("SURPLUSFLAG", 7, 6529876); Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn26 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("STEELCODE", 8); Infragistics.Win.Appearance appearance48 = new Infragistics.Win.Appearance(); Infragistics.Win.Appearance appearance21 = new Infragistics.Win.Appearance(); Infragistics.Win.Appearance appearance22 = new Infragistics.Win.Appearance(); Infragistics.Win.Appearance appearance23 = new Infragistics.Win.Appearance(); Infragistics.Win.Appearance appearance24 = new Infragistics.Win.Appearance(); Infragistics.Win.Appearance appearance25 = new Infragistics.Win.Appearance(); Infragistics.Win.Appearance appearance26 = new Infragistics.Win.Appearance(); Infragistics.Win.Appearance appearance27 = new Infragistics.Win.Appearance(); Infragistics.Win.Appearance appearance28 = new Infragistics.Win.Appearance(); Infragistics.Win.Appearance appearance29 = new Infragistics.Win.Appearance(); Infragistics.Win.Appearance appearance30 = new Infragistics.Win.Appearance(); Infragistics.Win.Appearance appearance31 = new Infragistics.Win.Appearance(); Infragistics.Win.ValueList valueList1 = new Infragistics.Win.ValueList(38914641); Infragistics.Win.ValueListItem valueListItem1 = new Infragistics.Win.ValueListItem(); Infragistics.Win.ValueListItem valueListItem2 = new Infragistics.Win.ValueListItem(); Infragistics.Win.ValueListItem valueListItem3 = new Infragistics.Win.ValueListItem(); Infragistics.Win.ValueListItem valueListItem4 = new Infragistics.Win.ValueListItem(); Infragistics.Win.ValueListItem valueListItem5 = new Infragistics.Win.ValueListItem(); Infragistics.Win.ValueListItem valueListItem6 = new Infragistics.Win.ValueListItem(); Infragistics.Win.ValueListItem valueListItem7 = new Infragistics.Win.ValueListItem(); Infragistics.Win.ValueListItem valueListItem8 = new Infragistics.Win.ValueListItem(); Infragistics.Win.ValueListItem valueListItem9 = new Infragistics.Win.ValueListItem(); Infragistics.Win.ValueListItem valueListItem10 = new Infragistics.Win.ValueListItem(); Infragistics.Win.ValueListItem valueListItem11 = new Infragistics.Win.ValueListItem(); Infragistics.Win.ValueListItem valueListItem28 = new Infragistics.Win.ValueListItem(); Infragistics.Win.ValueList valueList2 = new Infragistics.Win.ValueList(134929704); Infragistics.Win.ValueListItem valueListItem29 = new Infragistics.Win.ValueListItem(); Infragistics.Win.ValueListItem valueListItem30 = new Infragistics.Win.ValueListItem(); Infragistics.Win.ValueListItem valueListItem31 = new Infragistics.Win.ValueListItem(); Infragistics.Win.ValueListItem valueListItem16 = new Infragistics.Win.ValueListItem(); Infragistics.Win.ValueList valueList3 = new Infragistics.Win.ValueList(134938501); Infragistics.Win.ValueListItem valueListItem17 = new Infragistics.Win.ValueListItem(); Infragistics.Win.ValueListItem valueListItem18 = new Infragistics.Win.ValueListItem(); Infragistics.Win.ValueListItem valueListItem19 = new Infragistics.Win.ValueListItem(); Infragistics.Win.ValueListItem valueListItem20 = new Infragistics.Win.ValueListItem(); Infragistics.Win.ValueListItem valueListItem21 = new Infragistics.Win.ValueListItem(); Infragistics.Win.ValueList valueList4 = new Infragistics.Win.ValueList(1197251); Infragistics.Win.ValueListItem valueListItem22 = new Infragistics.Win.ValueListItem(); Infragistics.Win.ValueListItem valueListItem23 = new Infragistics.Win.ValueListItem(); Infragistics.Win.ValueList valueList5 = new Infragistics.Win.ValueList(1197252); Infragistics.Win.ValueListItem valueListItem24 = new Infragistics.Win.ValueListItem(); Infragistics.Win.ValueListItem valueListItem25 = new Infragistics.Win.ValueListItem(); Infragistics.Win.ValueList valueList6 = new Infragistics.Win.ValueList(6529876); Infragistics.Win.ValueListItem valueListItem26 = new Infragistics.Win.ValueListItem(); Infragistics.Win.ValueListItem valueListItem27 = new Infragistics.Win.ValueListItem(); Infragistics.Win.Appearance appearance2 = new Infragistics.Win.Appearance(); this.dataSet1 = new System.Data.DataSet(); this.dataTable1 = new System.Data.DataTable(); this.dataColumn1 = new System.Data.DataColumn(); this.dataColumn2 = new System.Data.DataColumn(); this.dataColumn3 = new System.Data.DataColumn(); this.dataColumn4 = new System.Data.DataColumn(); this.dataColumn5 = new System.Data.DataColumn(); this.dataColumn6 = new System.Data.DataColumn(); this.dataColumn7 = new System.Data.DataColumn(); this.dataColumn8 = new System.Data.DataColumn(); this.dataColumn9 = new System.Data.DataColumn(); this.dataColumn10 = new System.Data.DataColumn(); this.dataColumn11 = new System.Data.DataColumn(); this.dataColumn12 = new System.Data.DataColumn(); this.dataColumn13 = new System.Data.DataColumn(); this.dataColumn14 = new System.Data.DataColumn(); this.dataColumn15 = new System.Data.DataColumn(); this.dataColumn16 = new System.Data.DataColumn(); this.dataColumn17 = new System.Data.DataColumn(); this.ultraGrid1 = new Infragistics.Win.UltraWinGrid.UltraGrid(); this.ultraGroupBox1 = new Infragistics.Win.Misc.UltraGroupBox(); this.comboBox4 = new Infragistics.Win.UltraWinEditors.UltraComboEditor(); this.dateTimePicker4 = new Infragistics.Win.UltraWinEditors.UltraDateTimeEditor(); this.dateTimePicker3 = new Infragistics.Win.UltraWinEditors.UltraDateTimeEditor(); this.label26 = new System.Windows.Forms.Label(); this.richTextBox1 = new System.Windows.Forms.Label(); this.txt_heatidnoy = new System.Windows.Forms.TextBox(); this.textBox1 = new System.Windows.Forms.TextBox(); this.checkBox3 = new System.Windows.Forms.CheckBox(); this.checkBox2 = new System.Windows.Forms.CheckBox(); this.label9 = new System.Windows.Forms.Label(); this.checkBox1 = new System.Windows.Forms.CheckBox(); this.ultraExpandableGroupBox1 = new Infragistics.Win.Misc.UltraExpandableGroupBox(); this.ultraExpandableGroupBoxPanel1 = new Infragistics.Win.Misc.UltraExpandableGroupBoxPanel(); this.panel1 = new System.Windows.Forms.Panel(); this.dateTimePicker5 = new Infragistics.Win.UltraWinEditors.UltraDateTimeEditor(); this.comboBox6 = new Infragistics.Win.UltraWinEditors.UltraComboEditor(); this.comboBox3 = new Infragistics.Win.UltraWinEditors.UltraComboEditor(); this.comboBox5 = new Infragistics.Win.UltraWinEditors.UltraComboEditor(); this.comboBox2 = new Infragistics.Win.UltraWinEditors.UltraComboEditor(); this.textBox8 = new System.Windows.Forms.TextBox(); this.textBox4 = new System.Windows.Forms.TextBox(); this.textBox15 = new System.Windows.Forms.TextBox(); this.textBox12 = new System.Windows.Forms.TextBox(); this.textBox13 = new System.Windows.Forms.TextBox(); this.textBox14 = new System.Windows.Forms.TextBox(); this.label4 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.label7 = new System.Windows.Forms.Label(); this.label19 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); this.label18 = new System.Windows.Forms.Label(); this.textBox11 = new System.Windows.Forms.TextBox(); this.label10 = new System.Windows.Forms.Label(); this.label16 = new System.Windows.Forms.Label(); this.textBox10 = new System.Windows.Forms.TextBox(); this.label11 = new System.Windows.Forms.Label(); this.label14 = new System.Windows.Forms.Label(); this.label8 = new System.Windows.Forms.Label(); this.textBox9 = new System.Windows.Forms.TextBox(); this.label12 = new System.Windows.Forms.Label(); this.label13 = new System.Windows.Forms.Label(); this.textBox3 = new System.Windows.Forms.TextBox(); this.label15 = new System.Windows.Forms.Label(); this.label6 = new System.Windows.Forms.Label(); this.textBox2 = new System.Windows.Forms.TextBox(); this.textBox5 = new System.Windows.Forms.TextBox(); this.textBox7 = new System.Windows.Forms.TextBox(); this.textBox6 = new System.Windows.Forms.TextBox(); this.panel3 = new System.Windows.Forms.Panel(); this.textBox25 = new System.Windows.Forms.TextBox(); this.label28 = new System.Windows.Forms.Label(); this.label22 = new System.Windows.Forms.Label(); this.textBox21 = new System.Windows.Forms.TextBox(); this.label23 = new System.Windows.Forms.Label(); this.textBox24 = new System.Windows.Forms.TextBox(); this.label27 = new System.Windows.Forms.Label(); this.btn_setheatid = new System.Windows.Forms.Button(); this.textBox23 = new System.Windows.Forms.TextBox(); this.label25 = new System.Windows.Forms.Label(); this.button1 = new System.Windows.Forms.Button(); this.textBox22 = new System.Windows.Forms.TextBox(); this.textBox20 = new System.Windows.Forms.TextBox(); this.label24 = new System.Windows.Forms.Label(); this.textBox19 = new System.Windows.Forms.TextBox(); this.label21 = new System.Windows.Forms.Label(); this.textBox18 = new System.Windows.Forms.TextBox(); this.label20 = new System.Windows.Forms.Label(); this.textBox17 = new System.Windows.Forms.TextBox(); this.label17 = new System.Windows.Forms.Label(); this.textBox16 = new System.Windows.Forms.TextBox(); this.label5 = new System.Windows.Forms.Label(); this.splitter1 = new System.Windows.Forms.Splitter(); this.panel2 = new System.Windows.Forms.Panel(); this.panel5 = new System.Windows.Forms.Panel(); this.groupBox1 = new System.Windows.Forms.GroupBox(); this.ultraGrid2 = new Infragistics.Win.UltraWinGrid.UltraGrid(); this.panel4 = new System.Windows.Forms.Panel(); this.groupBox2 = new System.Windows.Forms.GroupBox(); this.ultraGrid3 = new Infragistics.Win.UltraWinGrid.UltraGrid(); this.ultraGroupBox2 = new Infragistics.Win.Misc.UltraGroupBox(); this.dtpCutTime = new Infragistics.Win.UltraWinEditors.UltraDateTimeEditor(); this.label29 = new System.Windows.Forms.Label(); this.cboFlowNo = new System.Windows.Forms.ComboBox(); this.label30 = new System.Windows.Forms.Label(); this.label31 = new System.Windows.Forms.Label(); this.txtSurplusFlag = new System.Windows.Forms.TextBox(); this.txtProdorderNO = new System.Windows.Forms.TextBox(); this.label32 = new System.Windows.Forms.Label(); this.txtOrderNO = new System.Windows.Forms.TextBox(); this.label33 = new System.Windows.Forms.Label(); this.button4 = new System.Windows.Forms.Button(); this.button3 = new System.Windows.Forms.Button(); this.textBox26 = new System.Windows.Forms.TextBox(); this.label34 = new System.Windows.Forms.Label(); this.label35 = new System.Windows.Forms.Label(); this.label36 = new System.Windows.Forms.Label(); this.tbxWeight = new System.Windows.Forms.TextBox(); this.tbxThick = new System.Windows.Forms.TextBox(); this.tbxWidth = new System.Windows.Forms.TextBox(); this.label37 = new System.Windows.Forms.Label(); this.tbxLength = new System.Windows.Forms.TextBox(); this.label38 = new System.Windows.Forms.Label(); this.comboBox1 = new System.Windows.Forms.ComboBox(); this.label39 = new System.Windows.Forms.Label(); this.textBox27 = new System.Windows.Forms.TextBox(); this.label40 = new System.Windows.Forms.Label(); this.textBox28 = new System.Windows.Forms.TextBox(); this.label41 = new System.Windows.Forms.Label(); this.ultraGroupBox3 = new Infragistics.Win.Misc.UltraGroupBox(); this.bntSend = new System.Windows.Forms.Button(); this.combConNo = new System.Windows.Forms.ComboBox(); this.chkConNo = new System.Windows.Forms.CheckBox(); this.queryBtn = new System.Windows.Forms.Button(); this.ccmNumCobo = new System.Windows.Forms.ComboBox(); this.chkCcmNo = new System.Windows.Forms.CheckBox(); ((System.ComponentModel.ISupportInitialize)(this.dataSet1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dataTable1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.ultraGrid1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.ultraGroupBox1)).BeginInit(); this.ultraGroupBox1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.comboBox4)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dateTimePicker4)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dateTimePicker3)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.ultraExpandableGroupBox1)).BeginInit(); this.ultraExpandableGroupBox1.SuspendLayout(); this.ultraExpandableGroupBoxPanel1.SuspendLayout(); this.panel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.dateTimePicker5)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.comboBox6)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.comboBox3)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.comboBox5)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.comboBox2)).BeginInit(); this.panel3.SuspendLayout(); this.panel2.SuspendLayout(); this.panel5.SuspendLayout(); this.groupBox1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.ultraGrid2)).BeginInit(); this.panel4.SuspendLayout(); this.groupBox2.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.ultraGrid3)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.ultraGroupBox2)).BeginInit(); this.ultraGroupBox2.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.dtpCutTime)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.ultraGroupBox3)).BeginInit(); this.ultraGroupBox3.SuspendLayout(); this.SuspendLayout(); // // dataSet1 // this.dataSet1.DataSetName = "NewDataSet"; this.dataSet1.Locale = new System.Globalization.CultureInfo("zh-CN"); this.dataSet1.Tables.AddRange(new System.Data.DataTable[] { this.dataTable1}); // // dataTable1 // this.dataTable1.Columns.AddRange(new System.Data.DataColumn[] { this.dataColumn1, this.dataColumn2, this.dataColumn3, this.dataColumn4, this.dataColumn5, this.dataColumn6, this.dataColumn7, this.dataColumn8, this.dataColumn9, this.dataColumn10, this.dataColumn11, this.dataColumn12, this.dataColumn13, this.dataColumn14, this.dataColumn15, this.dataColumn16, this.dataColumn17}); this.dataTable1.TableName = "Table1"; // // dataColumn1 // this.dataColumn1.ColumnName = "HEATNO"; // // dataColumn2 // this.dataColumn2.ColumnName = "CCMSTOVENO"; // // dataColumn3 // this.dataColumn3.ColumnName = "CCMID"; // // dataColumn4 // this.dataColumn4.ColumnName = "FLOWNO"; // // dataColumn5 // this.dataColumn5.ColumnName = "CUTSEQNO"; // // dataColumn6 // this.dataColumn6.ColumnName = "MOULDNO"; // // dataColumn7 // this.dataColumn7.ColumnName = "HEATSEQ"; // // dataColumn8 // this.dataColumn8.ColumnName = "HEATCNT"; // // dataColumn9 // this.dataColumn9.ColumnName = "LENGTH"; // // dataColumn10 // this.dataColumn10.ColumnName = "WIDTH"; // // dataColumn11 // this.dataColumn11.ColumnName = "THICKNESS"; this.dataColumn11.DataType = typeof(decimal); // // dataColumn12 // this.dataColumn12.ColumnName = "WEIGHT"; // // dataColumn13 // this.dataColumn13.ColumnName = "SPECRULE"; // // dataColumn14 // this.dataColumn14.ColumnName = "CUTTIME"; // // dataColumn15 // this.dataColumn15.ColumnName = "SHIFTCODE"; // // dataColumn16 // this.dataColumn16.ColumnName = "LASTBILLETFLAG"; // // dataColumn17 // this.dataColumn17.ColumnName = "FLAG"; // // ultraGrid1 // this.ultraGrid1.DataSource = this.dataTable1; appearance1.BackColor = System.Drawing.SystemColors.Window; appearance1.BorderColor = System.Drawing.SystemColors.InactiveCaption; appearance1.FontData.SizeInPoints = 10F; this.ultraGrid1.DisplayLayout.Appearance = appearance1; ultraGridColumn1.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; appearance3.TextHAlignAsString = "Center"; appearance3.TextVAlignAsString = "Middle"; ultraGridColumn1.Header.Appearance = appearance3; ultraGridColumn1.Header.Caption = "炉号"; ultraGridColumn1.Header.VisiblePosition = 0; ultraGridColumn1.RowLayoutColumnInfo.OriginX = 0; ultraGridColumn1.RowLayoutColumnInfo.OriginY = 0; ultraGridColumn1.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(76, 0); ultraGridColumn1.RowLayoutColumnInfo.PreferredLabelSize = new System.Drawing.Size(0, 47); ultraGridColumn1.RowLayoutColumnInfo.SpanX = 2; ultraGridColumn1.RowLayoutColumnInfo.SpanY = 2; ultraGridColumn2.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; ultraGridColumn2.Header.Caption = "连铸炉号"; ultraGridColumn2.Header.VisiblePosition = 1; ultraGridColumn2.Hidden = true; ultraGridColumn3.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; appearance4.TextHAlignAsString = "Center"; appearance4.TextVAlignAsString = "Middle"; ultraGridColumn3.Header.Appearance = appearance4; ultraGridColumn3.Header.Caption = "铸机号"; ultraGridColumn3.Header.VisiblePosition = 2; ultraGridColumn3.RowLayoutColumnInfo.OriginX = 10; ultraGridColumn3.RowLayoutColumnInfo.OriginY = 0; ultraGridColumn3.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(60, 0); ultraGridColumn3.RowLayoutColumnInfo.SpanX = 2; ultraGridColumn3.RowLayoutColumnInfo.SpanY = 2; ultraGridColumn4.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; appearance32.TextHAlignAsString = "Center"; ultraGridColumn4.Header.Appearance = appearance32; ultraGridColumn4.Header.Caption = "流号"; ultraGridColumn4.Header.VisiblePosition = 3; ultraGridColumn4.RowLayoutColumnInfo.OriginX = 6; ultraGridColumn4.RowLayoutColumnInfo.OriginY = 0; ultraGridColumn4.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(45, 0); ultraGridColumn4.RowLayoutColumnInfo.PreferredLabelSize = new System.Drawing.Size(0, 47); ultraGridColumn4.RowLayoutColumnInfo.SpanX = 2; ultraGridColumn4.RowLayoutColumnInfo.SpanY = 2; ultraGridColumn4.Style = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDown; ultraGridColumn4.Width = 60; ultraGridColumn5.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; appearance33.TextHAlignAsString = "Center"; ultraGridColumn5.Header.Appearance = appearance33; ultraGridColumn5.Header.Caption = "切割序号"; ultraGridColumn5.Header.VisiblePosition = 4; ultraGridColumn5.Hidden = true; ultraGridColumn5.RowLayoutColumnInfo.OriginX = 8; ultraGridColumn5.RowLayoutColumnInfo.OriginY = 0; ultraGridColumn5.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(74, 0); ultraGridColumn5.RowLayoutColumnInfo.PreferredLabelSize = new System.Drawing.Size(0, 47); ultraGridColumn5.RowLayoutColumnInfo.SpanX = 2; ultraGridColumn5.RowLayoutColumnInfo.SpanY = 2; ultraGridColumn5.Width = 70; ultraGridColumn6.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; appearance34.TextHAlignAsString = "Center"; appearance34.TextVAlignAsString = "Middle"; ultraGridColumn6.Header.Appearance = appearance34; ultraGridColumn6.Header.Caption = "浇次号"; ultraGridColumn6.Header.VisiblePosition = 5; ultraGridColumn6.RowLayoutColumnInfo.OriginX = 28; ultraGridColumn6.RowLayoutColumnInfo.OriginY = 0; ultraGridColumn6.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(67, 0); ultraGridColumn6.RowLayoutColumnInfo.SpanX = 2; ultraGridColumn6.RowLayoutColumnInfo.SpanY = 2; ultraGridColumn7.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; appearance35.TextHAlignAsString = "Center"; appearance35.TextVAlignAsString = "Middle"; ultraGridColumn7.Header.Appearance = appearance35; ultraGridColumn7.Header.Caption = " 浇次内炉序"; ultraGridColumn7.Header.VisiblePosition = 6; ultraGridColumn7.RowLayoutColumnInfo.OriginX = 30; ultraGridColumn7.RowLayoutColumnInfo.OriginY = 0; ultraGridColumn7.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(52, 0); ultraGridColumn7.RowLayoutColumnInfo.SpanX = 2; ultraGridColumn7.RowLayoutColumnInfo.SpanY = 2; ultraGridColumn8.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; appearance36.TextHAlignAsString = "Center"; appearance36.TextVAlignAsString = "Middle"; ultraGridColumn8.Header.Appearance = appearance36; ultraGridColumn8.Header.Caption = "浇次内炉数"; ultraGridColumn8.Header.VisiblePosition = 7; ultraGridColumn8.Hidden = true; ultraGridColumn8.RowLayoutColumnInfo.OriginX = 32; ultraGridColumn8.RowLayoutColumnInfo.OriginY = 0; ultraGridColumn8.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(62, 0); ultraGridColumn8.RowLayoutColumnInfo.SpanX = 2; ultraGridColumn8.RowLayoutColumnInfo.SpanY = 2; ultraGridColumn9.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; appearance37.TextHAlignAsString = "Center"; ultraGridColumn9.Header.Appearance = appearance37; ultraGridColumn9.Header.Caption = "长度"; ultraGridColumn9.Header.VisiblePosition = 8; ultraGridColumn9.RowLayoutColumnInfo.OriginX = 12; ultraGridColumn9.RowLayoutColumnInfo.OriginY = 1; ultraGridColumn9.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(53, 0); ultraGridColumn9.RowLayoutColumnInfo.SpanX = 2; ultraGridColumn9.RowLayoutColumnInfo.SpanY = 2; ultraGridColumn9.Width = 70; ultraGridColumn10.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; appearance38.TextHAlignAsString = "Center"; ultraGridColumn10.Header.Appearance = appearance38; ultraGridColumn10.Header.Caption = "宽度"; ultraGridColumn10.Header.VisiblePosition = 9; ultraGridColumn10.RowLayoutColumnInfo.OriginX = 14; ultraGridColumn10.RowLayoutColumnInfo.OriginY = 1; ultraGridColumn10.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(48, 0); ultraGridColumn10.RowLayoutColumnInfo.SpanX = 2; ultraGridColumn10.RowLayoutColumnInfo.SpanY = 2; ultraGridColumn10.Width = 70; ultraGridColumn11.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; appearance39.TextHAlignAsString = "Center"; appearance39.TextVAlignAsString = "Middle"; ultraGridColumn11.Header.Appearance = appearance39; ultraGridColumn11.Header.Caption = "厚度"; ultraGridColumn11.Header.VisiblePosition = 10; ultraGridColumn11.RowLayoutColumnInfo.OriginX = 16; ultraGridColumn11.RowLayoutColumnInfo.OriginY = 1; ultraGridColumn11.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(48, 0); ultraGridColumn11.RowLayoutColumnInfo.SpanX = 2; ultraGridColumn11.RowLayoutColumnInfo.SpanY = 2; ultraGridColumn12.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; appearance40.TextHAlignAsString = "Center"; appearance40.TextVAlignAsString = "Middle"; ultraGridColumn12.Header.Appearance = appearance40; ultraGridColumn12.Header.Caption = "重量"; ultraGridColumn12.Header.VisiblePosition = 11; ultraGridColumn12.RowLayoutColumnInfo.OriginX = 18; ultraGridColumn12.RowLayoutColumnInfo.OriginY = 0; ultraGridColumn12.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(52, 0); ultraGridColumn12.RowLayoutColumnInfo.PreferredLabelSize = new System.Drawing.Size(0, 47); ultraGridColumn12.RowLayoutColumnInfo.SpanX = 2; ultraGridColumn12.RowLayoutColumnInfo.SpanY = 2; ultraGridColumn12.Width = 60; ultraGridColumn13.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; appearance41.TextHAlignAsString = "Center"; ultraGridColumn13.Header.Appearance = appearance41; ultraGridColumn13.Header.Caption = "定尺"; ultraGridColumn13.Header.VisiblePosition = 12; ultraGridColumn13.Hidden = true; ultraGridColumn13.RowLayoutColumnInfo.OriginX = 28; ultraGridColumn13.RowLayoutColumnInfo.OriginY = 0; ultraGridColumn13.RowLayoutColumnInfo.PreferredLabelSize = new System.Drawing.Size(0, 47); ultraGridColumn13.RowLayoutColumnInfo.SpanX = 2; ultraGridColumn13.RowLayoutColumnInfo.SpanY = 2; ultraGridColumn13.Width = 60; ultraGridColumn14.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; ultraGridColumn14.Format = "yyyy-MM-dd HH:mm:ss"; appearance42.TextHAlignAsString = "Center"; ultraGridColumn14.Header.Appearance = appearance42; ultraGridColumn14.Header.Caption = "切割时间"; ultraGridColumn14.Header.VisiblePosition = 13; ultraGridColumn14.RowLayoutColumnInfo.OriginX = 8; ultraGridColumn14.RowLayoutColumnInfo.OriginY = 0; ultraGridColumn14.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(144, 0); ultraGridColumn14.RowLayoutColumnInfo.PreferredLabelSize = new System.Drawing.Size(0, 47); ultraGridColumn14.RowLayoutColumnInfo.SpanX = 2; ultraGridColumn14.RowLayoutColumnInfo.SpanY = 2; ultraGridColumn14.Width = 150; ultraGridColumn15.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; appearance43.TextHAlignAsString = "Center"; appearance43.TextVAlignAsString = "Middle"; ultraGridColumn15.Header.Appearance = appearance43; ultraGridColumn15.Header.Caption = "班组"; ultraGridColumn15.Header.VisiblePosition = 14; ultraGridColumn15.RowLayoutColumnInfo.OriginX = 32; ultraGridColumn15.RowLayoutColumnInfo.OriginY = 0; ultraGridColumn15.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(69, 0); ultraGridColumn15.RowLayoutColumnInfo.SpanX = 2; ultraGridColumn15.RowLayoutColumnInfo.SpanY = 2; ultraGridColumn16.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; appearance44.TextHAlignAsString = "Center"; appearance44.TextVAlignAsString = "Middle"; ultraGridColumn16.Header.Appearance = appearance44; ultraGridColumn16.Header.Caption = "末块"; ultraGridColumn16.Header.VisiblePosition = 15; ultraGridColumn16.RowLayoutColumnInfo.OriginX = 20; ultraGridColumn16.RowLayoutColumnInfo.OriginY = 0; ultraGridColumn16.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(44, 0); ultraGridColumn16.RowLayoutColumnInfo.SpanX = 2; ultraGridColumn16.RowLayoutColumnInfo.SpanY = 2; ultraGridColumn17.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; ultraGridColumn17.Header.VisiblePosition = 16; ultraGridColumn17.Hidden = true; ultraGridColumn18.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; appearance45.TextHAlignAsString = "Center"; ultraGridColumn18.Header.Appearance = appearance45; ultraGridColumn18.Header.Caption = "切割尺寸"; ultraGridColumn18.Header.VisiblePosition = 17; ultraGridColumn18.RowLayoutColumnInfo.LabelPosition = Infragistics.Win.UltraWinGrid.LabelPosition.LabelOnly; ultraGridColumn18.RowLayoutColumnInfo.OriginX = 12; ultraGridColumn18.RowLayoutColumnInfo.OriginY = 0; ultraGridColumn18.RowLayoutColumnInfo.PreferredLabelSize = new System.Drawing.Size(0, 23); ultraGridColumn18.RowLayoutColumnInfo.SpanX = 6; ultraGridColumn18.RowLayoutColumnInfo.SpanY = 1; ultraGridColumn19.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; ultraGridColumn19.Header.Caption = "人工指定"; ultraGridColumn19.Header.VisiblePosition = 18; ultraGridColumn19.Hidden = true; ultraGridColumn19.RowLayoutColumnInfo.OriginX = 20; ultraGridColumn19.RowLayoutColumnInfo.OriginY = 0; ultraGridColumn19.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(64, 0); ultraGridColumn19.RowLayoutColumnInfo.SpanX = 2; ultraGridColumn19.RowLayoutColumnInfo.SpanY = 2; ultraGridColumn20.AutoCompleteMode = Infragistics.Win.AutoCompleteMode.None; ultraGridColumn20.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; appearance46.TextHAlignAsString = "Center"; ultraGridColumn20.Header.Appearance = appearance46; ultraGridColumn20.Header.Caption = "坯料号"; ultraGridColumn20.Header.VisiblePosition = 19; ultraGridColumn20.RowLayoutColumnInfo.OriginX = 4; ultraGridColumn20.RowLayoutColumnInfo.OriginY = 0; ultraGridColumn20.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(86, 0); ultraGridColumn20.RowLayoutColumnInfo.SpanX = 2; ultraGridColumn20.RowLayoutColumnInfo.SpanY = 2; ultraGridColumn21.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; ultraGridColumn21.CellDisplayStyle = Infragistics.Win.UltraWinGrid.CellDisplayStyle.PlainText; appearance47.TextHAlignAsString = "Center"; ultraGridColumn21.Header.Appearance = appearance47; ultraGridColumn21.Header.Caption = "块号"; ultraGridColumn21.Header.VisiblePosition = 20; ultraGridColumn21.Hidden = true; ultraGridColumn21.RowLayoutColumnInfo.OriginX = 20; ultraGridColumn21.RowLayoutColumnInfo.OriginY = 0; ultraGridColumn21.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(39, 0); ultraGridColumn21.RowLayoutColumnInfo.SpanX = 2; ultraGridColumn21.RowLayoutColumnInfo.SpanY = 2; ultraGridColumn21.TabStop = false; ultraGridColumn22.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; ultraGridColumn22.Header.Caption = "坯料编码"; ultraGridColumn22.Header.VisiblePosition = 21; ultraGridColumn22.Hidden = true; ultraGridColumn23.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; ultraGridColumn23.Header.Caption = "订单行号"; ultraGridColumn23.Header.VisiblePosition = 22; ultraGridColumn23.RowLayoutColumnInfo.OriginX = 22; ultraGridColumn23.RowLayoutColumnInfo.OriginY = 0; ultraGridColumn23.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(104, 0); ultraGridColumn23.RowLayoutColumnInfo.SpanX = 2; ultraGridColumn23.RowLayoutColumnInfo.SpanY = 2; ultraGridColumn24.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; ultraGridColumn24.Header.Caption = "生产订单号"; ultraGridColumn24.Header.VisiblePosition = 23; ultraGridColumn24.RowLayoutColumnInfo.OriginX = 24; ultraGridColumn24.RowLayoutColumnInfo.OriginY = 0; ultraGridColumn24.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(116, 0); ultraGridColumn24.RowLayoutColumnInfo.SpanX = 2; ultraGridColumn24.RowLayoutColumnInfo.SpanY = 2; ultraGridColumn25.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; ultraGridColumn25.Header.Caption = "是否余材"; ultraGridColumn25.Header.VisiblePosition = 24; ultraGridColumn25.RowLayoutColumnInfo.OriginX = 26; ultraGridColumn25.RowLayoutColumnInfo.OriginY = 0; ultraGridColumn25.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(38, 0); ultraGridColumn25.RowLayoutColumnInfo.SpanX = 2; ultraGridColumn25.RowLayoutColumnInfo.SpanY = 2; ultraGridColumn26.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; appearance48.TextHAlignAsString = "Center"; ultraGridColumn26.Header.Appearance = appearance48; ultraGridColumn26.Header.Caption = "牌号"; ultraGridColumn26.Header.VisiblePosition = 25; ultraGridColumn26.RowLayoutColumnInfo.OriginX = 2; ultraGridColumn26.RowLayoutColumnInfo.OriginY = 0; ultraGridColumn26.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(66, 0); ultraGridColumn26.RowLayoutColumnInfo.SpanX = 2; ultraGridColumn26.RowLayoutColumnInfo.SpanY = 2; ultraGridColumn26.Style = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDown; ultraGridBand1.Columns.AddRange(new object[] { ultraGridColumn1, ultraGridColumn2, ultraGridColumn3, ultraGridColumn4, ultraGridColumn5, ultraGridColumn6, ultraGridColumn7, ultraGridColumn8, ultraGridColumn9, ultraGridColumn10, ultraGridColumn11, ultraGridColumn12, ultraGridColumn13, ultraGridColumn14, ultraGridColumn15, ultraGridColumn16, ultraGridColumn17, ultraGridColumn18, ultraGridColumn19, ultraGridColumn20, ultraGridColumn21, ultraGridColumn22, ultraGridColumn23, ultraGridColumn24, ultraGridColumn25, ultraGridColumn26}); ultraGridBand1.RowLayoutStyle = Infragistics.Win.UltraWinGrid.RowLayoutStyle.ColumnLayout; this.ultraGrid1.DisplayLayout.BandsSerializer.Add(ultraGridBand1); this.ultraGrid1.DisplayLayout.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid; appearance21.TextHAlignAsString = "Left"; this.ultraGrid1.DisplayLayout.CaptionAppearance = appearance21; appearance22.BackColor = System.Drawing.SystemColors.ActiveBorder; appearance22.BackColor2 = System.Drawing.SystemColors.ControlDark; appearance22.BackGradientStyle = Infragistics.Win.GradientStyle.Vertical; appearance22.BorderColor = System.Drawing.SystemColors.Window; this.ultraGrid1.DisplayLayout.GroupByBox.Appearance = appearance22; appearance23.ForeColor = System.Drawing.SystemColors.GrayText; this.ultraGrid1.DisplayLayout.GroupByBox.BandLabelAppearance = appearance23; this.ultraGrid1.DisplayLayout.GroupByBox.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid; this.ultraGrid1.DisplayLayout.GroupByBox.Hidden = true; appearance24.BackColor = System.Drawing.SystemColors.ControlLightLight; appearance24.BackColor2 = System.Drawing.SystemColors.Control; appearance24.BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal; appearance24.ForeColor = System.Drawing.SystemColors.GrayText; this.ultraGrid1.DisplayLayout.GroupByBox.PromptAppearance = appearance24; this.ultraGrid1.DisplayLayout.MaxColScrollRegions = 1; this.ultraGrid1.DisplayLayout.MaxRowScrollRegions = 1; appearance25.BackColor = System.Drawing.SystemColors.Info; appearance25.ForeColor = System.Drawing.SystemColors.ControlText; this.ultraGrid1.DisplayLayout.Override.ActiveCellAppearance = appearance25; this.ultraGrid1.DisplayLayout.Override.BorderStyleCell = Infragistics.Win.UIElementBorderStyle.RaisedSoft; this.ultraGrid1.DisplayLayout.Override.BorderStyleRow = Infragistics.Win.UIElementBorderStyle.None; appearance26.BackColor = System.Drawing.SystemColors.Window; this.ultraGrid1.DisplayLayout.Override.CardAreaAppearance = appearance26; appearance27.BorderColor = System.Drawing.Color.Silver; appearance27.TextTrimming = Infragistics.Win.TextTrimming.EllipsisCharacter; this.ultraGrid1.DisplayLayout.Override.CellAppearance = appearance27; this.ultraGrid1.DisplayLayout.Override.CellClickAction = Infragistics.Win.UltraWinGrid.CellClickAction.EditAndSelectText; this.ultraGrid1.DisplayLayout.Override.CellPadding = 0; this.ultraGrid1.DisplayLayout.Override.DefaultRowHeight = 21; appearance28.BackColor = System.Drawing.SystemColors.Control; appearance28.BackColor2 = System.Drawing.SystemColors.ControlDark; appearance28.BackGradientAlignment = Infragistics.Win.GradientAlignment.Element; appearance28.BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal; appearance28.BorderColor = System.Drawing.SystemColors.Window; this.ultraGrid1.DisplayLayout.Override.GroupByRowAppearance = appearance28; appearance29.TextHAlignAsString = "Left"; this.ultraGrid1.DisplayLayout.Override.HeaderAppearance = appearance29; this.ultraGrid1.DisplayLayout.Override.HeaderClickAction = Infragistics.Win.UltraWinGrid.HeaderClickAction.Select; this.ultraGrid1.DisplayLayout.Override.HeaderStyle = Infragistics.Win.HeaderStyle.Standard; appearance30.BackColor = System.Drawing.SystemColors.Window; appearance30.BorderColor = System.Drawing.Color.Silver; this.ultraGrid1.DisplayLayout.Override.RowAppearance = appearance30; this.ultraGrid1.DisplayLayout.Override.RowSelectorNumberStyle = Infragistics.Win.UltraWinGrid.RowSelectorNumberStyle.RowIndex; this.ultraGrid1.DisplayLayout.Override.RowSelectors = Infragistics.Win.DefaultableBoolean.True; this.ultraGrid1.DisplayLayout.Override.RowSelectorWidth = 45; appearance31.BackColor = System.Drawing.SystemColors.ControlLight; this.ultraGrid1.DisplayLayout.Override.TemplateAddRowAppearance = appearance31; this.ultraGrid1.DisplayLayout.Override.WrapHeaderText = Infragistics.Win.DefaultableBoolean.True; this.ultraGrid1.DisplayLayout.ScrollBounds = Infragistics.Win.UltraWinGrid.ScrollBounds.ScrollToFill; this.ultraGrid1.DisplayLayout.ScrollStyle = Infragistics.Win.UltraWinGrid.ScrollStyle.Immediate; this.ultraGrid1.DisplayLayout.UseFixedHeaders = true; valueList1.Key = "SHIFTCODE"; valueListItem1.DataValue = "11"; valueListItem1.DisplayText = "白班甲组"; valueListItem2.DataValue = "12"; valueListItem2.DisplayText = "白班乙组"; valueListItem3.DataValue = "13"; valueListItem3.DisplayText = "白班丙组"; valueListItem4.DataValue = "14"; valueListItem4.DisplayText = "白班丁组"; valueListItem5.DataValue = "21"; valueListItem5.DisplayText = "中班甲组"; valueListItem6.DataValue = "22"; valueListItem6.DisplayText = "中班乙组"; valueListItem7.DataValue = "23"; valueListItem7.DisplayText = "中班丙组"; valueListItem8.DataValue = "24"; valueListItem8.DisplayText = "中班丁组"; valueListItem9.DataValue = "31"; valueListItem9.DisplayText = "夜班甲组"; valueListItem10.DataValue = "32"; valueListItem10.DisplayText = "夜班乙组"; valueListItem11.DataValue = "33"; valueListItem11.DisplayText = "夜班丙组"; valueListItem28.DataValue = "34"; valueListItem28.DisplayText = "夜班丁组"; valueList1.ValueListItems.AddRange(new Infragistics.Win.ValueListItem[] { valueListItem1, valueListItem2, valueListItem3, valueListItem4, valueListItem5, valueListItem6, valueListItem7, valueListItem8, valueListItem9, valueListItem10, valueListItem11, valueListItem28}); valueList2.Key = "CCMID"; valueListItem29.DataValue = "0"; valueListItem29.DisplayText = "0#铸机"; valueListItem30.DataValue = "1"; valueListItem30.DisplayText = "1#铸机"; valueListItem31.DataValue = "2"; valueListItem31.DisplayText = "2#铸机"; valueListItem16.DataValue = "3"; valueListItem16.DisplayText = "3#铸机"; valueList2.ValueListItems.AddRange(new Infragistics.Win.ValueListItem[] { valueListItem29, valueListItem30, valueListItem31, valueListItem16}); valueList3.Key = "flow"; valueListItem17.DataValue = "1"; valueListItem17.DisplayText = "1流"; valueListItem18.DataValue = "2"; valueListItem18.DisplayText = "2流"; valueListItem19.DataValue = "3"; valueListItem19.DisplayText = "3流"; valueListItem20.DataValue = "4"; valueListItem20.DisplayText = "4流"; valueListItem21.DataValue = "5"; valueListItem21.DisplayText = "5流"; valueList3.ValueListItems.AddRange(new Infragistics.Win.ValueListItem[] { valueListItem17, valueListItem18, valueListItem19, valueListItem20, valueListItem21}); valueList4.Key = "LASTBILLETFLAG"; valueListItem22.DataValue = "N"; valueListItem22.DisplayText = "否"; valueListItem23.DataValue = "Y"; valueListItem23.DisplayText = "是"; valueList4.ValueListItems.AddRange(new Infragistics.Win.ValueListItem[] { valueListItem22, valueListItem23}); valueList5.Key = "resflag"; valueListItem24.DataValue = "0"; valueListItem24.DisplayText = "是"; valueListItem25.DataValue = "1"; valueListItem25.DisplayText = "否"; valueList5.ValueListItems.AddRange(new Infragistics.Win.ValueListItem[] { valueListItem24, valueListItem25}); valueList6.Key = "SURPLUSFLAG"; valueListItem26.DataValue = "0"; valueListItem26.DisplayText = "否"; valueListItem27.DataValue = "1"; valueListItem27.DisplayText = "是"; valueList6.ValueListItems.AddRange(new Infragistics.Win.ValueListItem[] { valueListItem26, valueListItem27}); this.ultraGrid1.DisplayLayout.ValueLists.AddRange(new Infragistics.Win.ValueList[] { valueList1, valueList2, valueList3, valueList4, valueList5, valueList6}); this.ultraGrid1.Dock = System.Windows.Forms.DockStyle.Fill; this.ultraGrid1.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.ultraGrid1.Location = new System.Drawing.Point(0, 50); this.ultraGrid1.Name = "ultraGrid1"; this.ultraGrid1.Size = new System.Drawing.Size(708, 369); this.ultraGrid1.TabIndex = 34; this.ultraGrid1.BeforeRowFixedStateChanged += new Infragistics.Win.UltraWinGrid.BeforeRowFixedStateChangedEventHandler(this.ultraGrid1_BeforeRowFixedStateChanged); this.ultraGrid1.BeforeRowUpdate += new Infragistics.Win.UltraWinGrid.CancelableRowEventHandler(this.ultraGrid1_BeforeRowUpdate); this.ultraGrid1.AfterRowActivate += new System.EventHandler(this.ultraGrid1_AfterRowActivate); // // ultraGroupBox1 // this.ultraGroupBox1.Controls.Add(this.comboBox4); this.ultraGroupBox1.Controls.Add(this.dateTimePicker4); this.ultraGroupBox1.Controls.Add(this.dateTimePicker3); this.ultraGroupBox1.Controls.Add(this.label26); this.ultraGroupBox1.Controls.Add(this.richTextBox1); this.ultraGroupBox1.Controls.Add(this.txt_heatidnoy); this.ultraGroupBox1.Controls.Add(this.textBox1); this.ultraGroupBox1.Controls.Add(this.checkBox3); this.ultraGroupBox1.Controls.Add(this.checkBox2); this.ultraGroupBox1.Controls.Add(this.label9); this.ultraGroupBox1.Controls.Add(this.checkBox1); this.ultraGroupBox1.Dock = System.Windows.Forms.DockStyle.Top; this.ultraGroupBox1.Location = new System.Drawing.Point(0, 0); this.ultraGroupBox1.Name = "ultraGroupBox1"; this.ultraGroupBox1.Size = new System.Drawing.Size(708, 50); this.ultraGroupBox1.TabIndex = 32; this.ultraGroupBox1.ViewStyle = Infragistics.Win.Misc.GroupBoxViewStyle.Office2000; // // comboBox4 // this.comboBox4.AutoCompleteMode = Infragistics.Win.AutoCompleteMode.Append; this.comboBox4.DisplayMember = "id"; this.comboBox4.DropDownStyle = Infragistics.Win.DropDownStyle.DropDownList; this.comboBox4.Font = new System.Drawing.Font("宋体", 9.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.comboBox4.Location = new System.Drawing.Point(613, 14); this.comboBox4.Name = "comboBox4"; this.comboBox4.Size = new System.Drawing.Size(64, 22); this.comboBox4.TabIndex = 284; // // dateTimePicker4 // this.dateTimePicker4.DateTime = new System.DateTime(2008, 11, 24, 0, 0, 0, 0); this.dateTimePicker4.Enabled = false; this.dateTimePicker4.FormatProvider = new System.Globalization.CultureInfo("en-US"); this.dateTimePicker4.FormatString = "yyyy-MM-dd HH:mm"; this.dateTimePicker4.Location = new System.Drawing.Point(267, 15); this.dateTimePicker4.MaskInput = "yyyy-mm-dd hh:mm"; this.dateTimePicker4.Name = "dateTimePicker4"; this.dateTimePicker4.Size = new System.Drawing.Size(124, 21); this.dateTimePicker4.TabIndex = 283; this.dateTimePicker4.Value = new System.DateTime(2008, 11, 24, 0, 0, 0, 0); // // dateTimePicker3 // this.dateTimePicker3.DateTime = new System.DateTime(2008, 11, 24, 0, 0, 0, 0); this.dateTimePicker3.Enabled = false; this.dateTimePicker3.FormatProvider = new System.Globalization.CultureInfo("en-US"); this.dateTimePicker3.FormatString = "yyyy-MM-dd HH:mm"; this.dateTimePicker3.Location = new System.Drawing.Point(106, 15); this.dateTimePicker3.MaskInput = "yyyy-mm-dd hh:mm"; this.dateTimePicker3.Name = "dateTimePicker3"; this.dateTimePicker3.Size = new System.Drawing.Size(124, 21); this.dateTimePicker3.TabIndex = 282; this.dateTimePicker3.Value = new System.DateTime(2008, 11, 24, 0, 0, 0, 0); // // label26 // this.label26.AutoSize = true; this.label26.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.label26.Location = new System.Drawing.Point(202, 33); this.label26.Name = "label26"; this.label26.Size = new System.Drawing.Size(65, 12); this.label26.TabIndex = 110; this.label26.Text = "未置是炉号"; this.label26.Visible = false; // // richTextBox1 // this.richTextBox1.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.richTextBox1.Location = new System.Drawing.Point(8, 31); this.richTextBox1.Name = "richTextBox1"; this.richTextBox1.Size = new System.Drawing.Size(197, 18); this.richTextBox1.TabIndex = 109; this.richTextBox1.Visible = false; // // txt_heatidnoy // this.txt_heatidnoy.Location = new System.Drawing.Point(268, 30); this.txt_heatidnoy.Name = "txt_heatidnoy"; this.txt_heatidnoy.ReadOnly = true; this.txt_heatidnoy.Size = new System.Drawing.Size(404, 21); this.txt_heatidnoy.TabIndex = 24; this.txt_heatidnoy.Visible = false; // // textBox1 // this.textBox1.Enabled = false; this.textBox1.Location = new System.Drawing.Point(465, 15); this.textBox1.Name = "textBox1"; this.textBox1.Size = new System.Drawing.Size(80, 21); this.textBox1.TabIndex = 22; // // checkBox3 // this.checkBox3.Location = new System.Drawing.Point(552, 13); this.checkBox3.Name = "checkBox3"; this.checkBox3.Size = new System.Drawing.Size(64, 24); this.checkBox3.TabIndex = 17; this.checkBox3.Text = "铸机号"; this.checkBox3.CheckedChanged += new System.EventHandler(this.checkBox3_CheckedChanged); // // checkBox2 // this.checkBox2.Location = new System.Drawing.Point(409, 13); this.checkBox2.Name = "checkBox2"; this.checkBox2.Size = new System.Drawing.Size(72, 24); this.checkBox2.TabIndex = 10; this.checkBox2.Text = "熔炼号"; this.checkBox2.CheckedChanged += new System.EventHandler(this.checkBox2_CheckedChanged); // // label9 // this.label9.Location = new System.Drawing.Point(238, 17); this.label9.Name = "label9"; this.label9.Size = new System.Drawing.Size(29, 17); this.label9.TabIndex = 7; this.label9.Text = "到:"; // // checkBox1 // this.checkBox1.Location = new System.Drawing.Point(8, 13); this.checkBox1.Name = "checkBox1"; this.checkBox1.Size = new System.Drawing.Size(120, 24); this.checkBox1.TabIndex = 4; this.checkBox1.Text = "切割时间 从:"; this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged); // // ultraExpandableGroupBox1 // this.ultraExpandableGroupBox1.Controls.Add(this.ultraExpandableGroupBoxPanel1); this.ultraExpandableGroupBox1.Dock = System.Windows.Forms.DockStyle.Bottom; this.ultraExpandableGroupBox1.ExpandedSize = new System.Drawing.Size(708, 160); this.ultraExpandableGroupBox1.Location = new System.Drawing.Point(0, 419); this.ultraExpandableGroupBox1.Name = "ultraExpandableGroupBox1"; this.ultraExpandableGroupBox1.Size = new System.Drawing.Size(708, 160); this.ultraExpandableGroupBox1.TabIndex = 36; this.ultraExpandableGroupBox1.Text = "编辑"; this.ultraExpandableGroupBox1.ViewStyle = Infragistics.Win.Misc.GroupBoxViewStyle.Office2000; // // ultraExpandableGroupBoxPanel1 // this.ultraExpandableGroupBoxPanel1.Controls.Add(this.panel1); this.ultraExpandableGroupBoxPanel1.Controls.Add(this.panel3); this.ultraExpandableGroupBoxPanel1.Dock = System.Windows.Forms.DockStyle.Fill; this.ultraExpandableGroupBoxPanel1.Location = new System.Drawing.Point(3, 19); this.ultraExpandableGroupBoxPanel1.Name = "ultraExpandableGroupBoxPanel1"; this.ultraExpandableGroupBoxPanel1.Size = new System.Drawing.Size(702, 138); this.ultraExpandableGroupBoxPanel1.TabIndex = 0; // // panel1 // this.panel1.Controls.Add(this.dateTimePicker5); this.panel1.Controls.Add(this.comboBox6); this.panel1.Controls.Add(this.comboBox3); this.panel1.Controls.Add(this.comboBox5); this.panel1.Controls.Add(this.comboBox2); this.panel1.Controls.Add(this.textBox8); this.panel1.Controls.Add(this.textBox4); this.panel1.Controls.Add(this.textBox15); this.panel1.Controls.Add(this.textBox12); this.panel1.Controls.Add(this.textBox13); this.panel1.Controls.Add(this.textBox14); this.panel1.Controls.Add(this.label4); this.panel1.Controls.Add(this.label1); this.panel1.Controls.Add(this.label2); this.panel1.Controls.Add(this.label7); this.panel1.Controls.Add(this.label19); this.panel1.Controls.Add(this.label3); this.panel1.Controls.Add(this.label18); this.panel1.Controls.Add(this.textBox11); this.panel1.Controls.Add(this.label10); this.panel1.Controls.Add(this.label16); this.panel1.Controls.Add(this.textBox10); this.panel1.Controls.Add(this.label11); this.panel1.Controls.Add(this.label14); this.panel1.Controls.Add(this.label8); this.panel1.Controls.Add(this.textBox9); this.panel1.Controls.Add(this.label12); this.panel1.Controls.Add(this.label13); this.panel1.Controls.Add(this.textBox3); this.panel1.Controls.Add(this.label15); this.panel1.Controls.Add(this.label6); this.panel1.Controls.Add(this.textBox2); this.panel1.Controls.Add(this.textBox5); this.panel1.Controls.Add(this.textBox7); this.panel1.Controls.Add(this.textBox6); this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; this.panel1.Location = new System.Drawing.Point(0, 0); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(449, 138); this.panel1.TabIndex = 112; // // dateTimePicker5 // this.dateTimePicker5.DateTime = new System.DateTime(2008, 11, 24, 0, 0, 0, 0); this.dateTimePicker5.FormatProvider = new System.Globalization.CultureInfo("en-US"); this.dateTimePicker5.FormatString = "yyyy-MM-dd HH:mm:ss"; this.dateTimePicker5.Location = new System.Drawing.Point(79, 119); this.dateTimePicker5.MaskInput = "yyyy-mm-dd hh:mm:ss"; this.dateTimePicker5.Name = "dateTimePicker5"; this.dateTimePicker5.Size = new System.Drawing.Size(212, 21); this.dateTimePicker5.TabIndex = 282; this.dateTimePicker5.Value = new System.DateTime(2008, 11, 24, 0, 0, 0, 0); // // comboBox6 // this.comboBox6.AutoCompleteMode = Infragistics.Win.AutoCompleteMode.Append; this.comboBox6.DisplayMember = "id"; this.comboBox6.DropDownStyle = Infragistics.Win.DropDownStyle.DropDownList; this.comboBox6.Location = new System.Drawing.Point(379, 95); this.comboBox6.Name = "comboBox6"; this.comboBox6.Size = new System.Drawing.Size(56, 21); this.comboBox6.TabIndex = 114; this.comboBox6.ValueMember = "id"; // // comboBox3 // this.comboBox3.AutoCompleteMode = Infragistics.Win.AutoCompleteMode.Append; this.comboBox3.DisplayMember = "id"; this.comboBox3.DropDownStyle = Infragistics.Win.DropDownStyle.DropDownList; this.comboBox3.Location = new System.Drawing.Point(206, 95); this.comboBox3.Name = "comboBox3"; this.comboBox3.Size = new System.Drawing.Size(85, 21); this.comboBox3.TabIndex = 113; // // comboBox5 // this.comboBox5.AutoCompleteMode = Infragistics.Win.AutoCompleteMode.Append; this.comboBox5.DisplayMember = "id"; this.comboBox5.DropDownStyle = Infragistics.Win.DropDownStyle.DropDownList; this.comboBox5.Location = new System.Drawing.Point(79, 95); this.comboBox5.Name = "comboBox5"; this.comboBox5.Size = new System.Drawing.Size(58, 21); this.comboBox5.TabIndex = 112; // // comboBox2 // this.comboBox2.AutoCompleteMode = Infragistics.Win.AutoCompleteMode.Append; this.comboBox2.DropDownStyle = Infragistics.Win.DropDownStyle.DropDownList; this.comboBox2.Location = new System.Drawing.Point(79, 73); this.comboBox2.Name = "comboBox2"; this.comboBox2.Size = new System.Drawing.Size(58, 21); this.comboBox2.TabIndex = 111; // // textBox8 // this.textBox8.Location = new System.Drawing.Point(79, 3); this.textBox8.Name = "textBox8"; this.textBox8.Size = new System.Drawing.Size(58, 21); this.textBox8.TabIndex = 69; // // textBox4 // this.textBox4.Location = new System.Drawing.Point(313, 121); this.textBox4.Name = "textBox4"; this.textBox4.Size = new System.Drawing.Size(96, 21); this.textBox4.TabIndex = 102; this.textBox4.Visible = false; // // textBox15 // this.textBox15.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255))))); this.textBox15.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.textBox15.Location = new System.Drawing.Point(206, 49); this.textBox15.Name = "textBox15"; this.textBox15.Size = new System.Drawing.Size(85, 21); this.textBox15.TabIndex = 110; // // textBox12 // this.textBox12.Location = new System.Drawing.Point(313, 121); this.textBox12.Name = "textBox12"; this.textBox12.Size = new System.Drawing.Size(96, 21); this.textBox12.TabIndex = 79; this.textBox12.Visible = false; // // textBox13 // this.textBox13.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255))))); this.textBox13.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.textBox13.Location = new System.Drawing.Point(206, 26); this.textBox13.Name = "textBox13"; this.textBox13.Size = new System.Drawing.Size(85, 21); this.textBox13.TabIndex = 108; // // textBox14 // this.textBox14.Location = new System.Drawing.Point(321, 119); this.textBox14.Name = "textBox14"; this.textBox14.Size = new System.Drawing.Size(96, 21); this.textBox14.TabIndex = 109; this.textBox14.Text = "textBox14"; this.textBox14.Visible = false; // // label4 // this.label4.AutoSize = true; this.label4.Location = new System.Drawing.Point(161, 31); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(41, 12); this.label4.TabIndex = 107; this.label4.Text = "坯料号"; // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(161, 7); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(41, 12); this.label1.TabIndex = 52; this.label1.Text = "熔炼号"; // // label2 // this.label2.AutoSize = true; this.label2.Location = new System.Drawing.Point(174, 99); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(29, 12); this.label2.TabIndex = 53; this.label2.Text = "班次"; // // label7 // this.label7.AutoSize = true; this.label7.Location = new System.Drawing.Point(29, 7); this.label7.Name = "label7"; this.label7.Size = new System.Drawing.Size(41, 12); this.label7.TabIndex = 55; this.label7.Text = "浇次号"; // // label19 // this.label19.AutoSize = true; this.label19.Location = new System.Drawing.Point(17, 123); this.label19.Name = "label19"; this.label19.Size = new System.Drawing.Size(53, 12); this.label19.TabIndex = 82; this.label19.Text = "切割时间"; // // label3 // this.label3.AutoSize = true; this.label3.Location = new System.Drawing.Point(174, 54); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(29, 12); this.label3.TabIndex = 56; this.label3.Text = "块号"; // // label18 // this.label18.AutoSize = true; this.label18.Location = new System.Drawing.Point(297, 99); this.label18.Name = "label18"; this.label18.Size = new System.Drawing.Size(77, 12); this.label18.TabIndex = 80; this.label18.Text = "是否本炉末块"; // // textBox11 // this.textBox11.Location = new System.Drawing.Point(379, 72); this.textBox11.Name = "textBox11"; this.textBox11.Size = new System.Drawing.Size(56, 21); this.textBox11.TabIndex = 77; // // label10 // this.label10.AutoSize = true; this.label10.Location = new System.Drawing.Point(29, 77); this.label10.Name = "label10"; this.label10.Size = new System.Drawing.Size(41, 12); this.label10.TabIndex = 58; this.label10.Text = "铸机号"; // // label16 // this.label16.AutoSize = true; this.label16.Location = new System.Drawing.Point(345, 77); this.label16.Name = "label16"; this.label16.Size = new System.Drawing.Size(29, 12); this.label16.TabIndex = 76; this.label16.Text = "重量"; // // textBox10 // this.textBox10.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.textBox10.Location = new System.Drawing.Point(379, 49); this.textBox10.Name = "textBox10"; this.textBox10.Size = new System.Drawing.Size(56, 21); this.textBox10.TabIndex = 75; this.textBox10.TextChanged += new System.EventHandler(this.textBox3_TextChanged); // // label11 // this.label11.AutoSize = true; this.label11.Location = new System.Drawing.Point(149, 77); this.label11.Name = "label11"; this.label11.Size = new System.Drawing.Size(53, 12); this.label11.TabIndex = 59; this.label11.Text = "切割序号"; // // label14 // this.label14.AutoSize = true; this.label14.Location = new System.Drawing.Point(345, 54); this.label14.Name = "label14"; this.label14.Size = new System.Drawing.Size(29, 12); this.label14.TabIndex = 74; this.label14.Text = "厚度"; // // label8 // this.label8.AutoSize = true; this.label8.Location = new System.Drawing.Point(29, 99); this.label8.Name = "label8"; this.label8.Size = new System.Drawing.Size(41, 12); this.label8.TabIndex = 61; this.label8.Text = "铸流号"; // // textBox9 // this.textBox9.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255))))); this.textBox9.Location = new System.Drawing.Point(379, 26); this.textBox9.Name = "textBox9"; this.textBox9.Size = new System.Drawing.Size(56, 21); this.textBox9.TabIndex = 73; this.textBox9.TextChanged += new System.EventHandler(this.textBox3_TextChanged); // // label12 // this.label12.AutoSize = true; this.label12.Location = new System.Drawing.Point(345, 31); this.label12.Name = "label12"; this.label12.Size = new System.Drawing.Size(29, 12); this.label12.TabIndex = 72; this.label12.Text = "宽度"; // // label13 // this.label13.AutoSize = true; this.label13.Location = new System.Drawing.Point(5, 31); this.label13.Name = "label13"; this.label13.Size = new System.Drawing.Size(65, 12); this.label13.TabIndex = 62; this.label13.Text = "浇次内顺序"; // // textBox3 // this.textBox3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255))))); this.textBox3.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.textBox3.Location = new System.Drawing.Point(379, 3); this.textBox3.Name = "textBox3"; this.textBox3.Size = new System.Drawing.Size(56, 21); this.textBox3.TabIndex = 71; this.textBox3.TextChanged += new System.EventHandler(this.textBox3_TextChanged); // // label15 // this.label15.AutoSize = true; this.label15.Location = new System.Drawing.Point(5, 54); this.label15.Name = "label15"; this.label15.Size = new System.Drawing.Size(65, 12); this.label15.TabIndex = 63; this.label15.Text = "浇次内炉数"; // // label6 // this.label6.AutoSize = true; this.label6.Location = new System.Drawing.Point(345, 7); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(29, 12); this.label6.TabIndex = 70; this.label6.Text = "长度"; // // textBox2 // this.textBox2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255))))); this.textBox2.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.textBox2.Location = new System.Drawing.Point(206, 3); this.textBox2.Name = "textBox2"; this.textBox2.Size = new System.Drawing.Size(85, 21); this.textBox2.TabIndex = 101; // // textBox5 // this.textBox5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255))))); this.textBox5.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.textBox5.Location = new System.Drawing.Point(206, 72); this.textBox5.Name = "textBox5"; this.textBox5.Size = new System.Drawing.Size(85, 21); this.textBox5.TabIndex = 105; // // textBox7 // this.textBox7.Location = new System.Drawing.Point(79, 49); this.textBox7.Name = "textBox7"; this.textBox7.Size = new System.Drawing.Size(58, 21); this.textBox7.TabIndex = 68; // // textBox6 // this.textBox6.Location = new System.Drawing.Point(79, 26); this.textBox6.Name = "textBox6"; this.textBox6.Size = new System.Drawing.Size(58, 21); this.textBox6.TabIndex = 67; // // panel3 // this.panel3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(213)))), ((int)(((byte)(228)))), ((int)(((byte)(242))))); this.panel3.Controls.Add(this.textBox25); this.panel3.Controls.Add(this.label28); this.panel3.Controls.Add(this.label22); this.panel3.Controls.Add(this.textBox21); this.panel3.Controls.Add(this.label23); this.panel3.Controls.Add(this.textBox24); this.panel3.Controls.Add(this.label27); this.panel3.Controls.Add(this.btn_setheatid); this.panel3.Controls.Add(this.textBox23); this.panel3.Controls.Add(this.label25); this.panel3.Controls.Add(this.button1); this.panel3.Controls.Add(this.textBox22); this.panel3.Controls.Add(this.textBox20); this.panel3.Controls.Add(this.label24); this.panel3.Controls.Add(this.textBox19); this.panel3.Controls.Add(this.label21); this.panel3.Controls.Add(this.textBox18); this.panel3.Controls.Add(this.label20); this.panel3.Controls.Add(this.textBox17); this.panel3.Controls.Add(this.label17); this.panel3.Controls.Add(this.textBox16); this.panel3.Controls.Add(this.label5); this.panel3.Dock = System.Windows.Forms.DockStyle.Right; this.panel3.Location = new System.Drawing.Point(449, 0); this.panel3.Name = "panel3"; this.panel3.Size = new System.Drawing.Size(253, 138); this.panel3.TabIndex = 111; // // textBox25 // this.textBox25.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.textBox25.ForeColor = System.Drawing.Color.Red; this.textBox25.Location = new System.Drawing.Point(7, 72); this.textBox25.Name = "textBox25"; this.textBox25.Size = new System.Drawing.Size(52, 21); this.textBox25.TabIndex = 25; // // label28 // this.label28.AutoSize = true; this.label28.Location = new System.Drawing.Point(2, 56); this.label28.Name = "label28"; this.label28.Size = new System.Drawing.Size(65, 12); this.label28.TabIndex = 24; this.label28.Text = "中包总支数"; // // label22 // this.label22.AutoSize = true; this.label22.Location = new System.Drawing.Point(181, 99); this.label22.Name = "label22"; this.label22.Size = new System.Drawing.Size(53, 12); this.label22.TabIndex = 16; this.label22.Text = "剩余支数"; // // textBox21 // this.textBox21.Location = new System.Drawing.Point(120, 115); this.textBox21.Name = "textBox21"; this.textBox21.ReadOnly = true; this.textBox21.Size = new System.Drawing.Size(59, 21); this.textBox21.TabIndex = 15; // // label23 // this.label23.AutoSize = true; this.label23.Location = new System.Drawing.Point(116, 99); this.label23.Name = "label23"; this.label23.Size = new System.Drawing.Size(65, 12); this.label23.TabIndex = 14; this.label23.Text = "已切割支数"; // // textBox24 // this.textBox24.Location = new System.Drawing.Point(69, 115); this.textBox24.Name = "textBox24"; this.textBox24.ReadOnly = true; this.textBox24.Size = new System.Drawing.Size(46, 21); this.textBox24.TabIndex = 23; // // label27 // this.label27.AutoSize = true; this.label27.Location = new System.Drawing.Point(66, 99); this.label27.Name = "label27"; this.label27.Size = new System.Drawing.Size(53, 12); this.label27.TabIndex = 22; this.label27.Text = "实际预测"; // // btn_setheatid // this.btn_setheatid.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.btn_setheatid.Location = new System.Drawing.Point(80, 22); this.btn_setheatid.Name = "btn_setheatid"; this.btn_setheatid.Size = new System.Drawing.Size(72, 24); this.btn_setheatid.TabIndex = 21; this.btn_setheatid.Text = "炉号设置"; this.btn_setheatid.Click += new System.EventHandler(this.btn_setheatid_Click); // // textBox23 // this.textBox23.Location = new System.Drawing.Point(168, 24); this.textBox23.Name = "textBox23"; this.textBox23.ReadOnly = true; this.textBox23.Size = new System.Drawing.Size(66, 21); this.textBox23.TabIndex = 20; // // label25 // this.label25.Location = new System.Drawing.Point(163, 8); this.label25.Name = "label25"; this.label25.Size = new System.Drawing.Size(80, 16); this.label25.TabIndex = 19; this.label25.Text = "已切坯料总量"; // // button1 // this.button1.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.button1.Location = new System.Drawing.Point(229, 72); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(21, 21); this.button1.TabIndex = 18; this.button1.Text = "▼"; this.button1.Click += new System.EventHandler(this.button1_Click); // // textBox22 // this.textBox22.Location = new System.Drawing.Point(182, 115); this.textBox22.Name = "textBox22"; this.textBox22.ReadOnly = true; this.textBox22.Size = new System.Drawing.Size(48, 21); this.textBox22.TabIndex = 17; // // textBox20 // this.textBox20.Location = new System.Drawing.Point(7, 115); this.textBox20.Name = "textBox20"; this.textBox20.ReadOnly = true; this.textBox20.Size = new System.Drawing.Size(52, 21); this.textBox20.TabIndex = 13; // // label24 // this.label24.AutoSize = true; this.label24.Location = new System.Drawing.Point(6, 99); this.label24.Name = "label24"; this.label24.Size = new System.Drawing.Size(53, 12); this.label24.TabIndex = 12; this.label24.Text = "计划支数"; // // textBox19 // this.textBox19.Location = new System.Drawing.Point(182, 72); this.textBox19.Name = "textBox19"; this.textBox19.ReadOnly = true; this.textBox19.Size = new System.Drawing.Size(48, 21); this.textBox19.TabIndex = 11; // // label21 // this.label21.AutoSize = true; this.label21.Location = new System.Drawing.Point(181, 56); this.label21.Name = "label21"; this.label21.Size = new System.Drawing.Size(53, 12); this.label21.TabIndex = 10; this.label21.Text = "钢水重量"; // // textBox18 // this.textBox18.Location = new System.Drawing.Point(120, 72); this.textBox18.Name = "textBox18"; this.textBox18.Size = new System.Drawing.Size(59, 21); this.textBox18.TabIndex = 9; this.textBox18.KeyDown += new System.Windows.Forms.KeyEventHandler(this.textBox18_KeyDown); // // label20 // this.label20.AutoSize = true; this.label20.Location = new System.Drawing.Point(122, 56); this.label20.Name = "label20"; this.label20.Size = new System.Drawing.Size(53, 12); this.label20.TabIndex = 8; this.label20.Text = "大包重量"; // // textBox17 // this.textBox17.Location = new System.Drawing.Point(69, 72); this.textBox17.Name = "textBox17"; this.textBox17.Size = new System.Drawing.Size(46, 21); this.textBox17.TabIndex = 7; this.textBox17.KeyDown += new System.Windows.Forms.KeyEventHandler(this.textBox17_KeyDown); // // label17 // this.label17.AutoSize = true; this.label17.Location = new System.Drawing.Point(66, 56); this.label17.Name = "label17"; this.label17.Size = new System.Drawing.Size(53, 12); this.label17.TabIndex = 6; this.label17.Text = "上台重量"; // // textBox16 // this.textBox16.Location = new System.Drawing.Point(7, 24); this.textBox16.Name = "textBox16"; this.textBox16.ReadOnly = true; this.textBox16.Size = new System.Drawing.Size(62, 21); this.textBox16.TabIndex = 5; // // label5 // this.label5.Location = new System.Drawing.Point(7, 8); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(80, 23); this.label5.TabIndex = 4; this.label5.Text = "正在切割炉号"; // // splitter1 // this.splitter1.Dock = System.Windows.Forms.DockStyle.Right; this.splitter1.Location = new System.Drawing.Point(708, 0); this.splitter1.Name = "splitter1"; this.splitter1.Size = new System.Drawing.Size(3, 579); this.splitter1.TabIndex = 107; this.splitter1.TabStop = false; // // panel2 // this.panel2.Controls.Add(this.panel5); this.panel2.Controls.Add(this.panel4); this.panel2.Controls.Add(this.ultraGroupBox2); this.panel2.Controls.Add(this.ultraGroupBox3); this.panel2.Dock = System.Windows.Forms.DockStyle.Right; this.panel2.Location = new System.Drawing.Point(711, 0); this.panel2.Name = "panel2"; this.panel2.Size = new System.Drawing.Size(315, 579); this.panel2.TabIndex = 106; this.panel2.Visible = false; this.panel2.Paint += new System.Windows.Forms.PaintEventHandler(this.panel2_Paint); // // panel5 // this.panel5.Controls.Add(this.groupBox1); this.panel5.Dock = System.Windows.Forms.DockStyle.Fill; this.panel5.Location = new System.Drawing.Point(0, 282); this.panel5.Name = "panel5"; this.panel5.Size = new System.Drawing.Size(315, 123); this.panel5.TabIndex = 11; // // groupBox1 // this.groupBox1.Controls.Add(this.ultraGrid2); this.groupBox1.Dock = System.Windows.Forms.DockStyle.Fill; this.groupBox1.Location = new System.Drawing.Point(0, 0); this.groupBox1.Name = "groupBox1"; this.groupBox1.Size = new System.Drawing.Size(315, 123); this.groupBox1.TabIndex = 8; this.groupBox1.TabStop = false; // // ultraGrid2 // appearance2.FontData.BoldAsString = "True"; this.ultraGrid2.DisplayLayout.Override.ActiveRowAppearance = appearance2; this.ultraGrid2.DisplayLayout.Override.HeaderStyle = Infragistics.Win.HeaderStyle.Standard; this.ultraGrid2.DisplayLayout.Override.RowSelectorNumberStyle = Infragistics.Win.UltraWinGrid.RowSelectorNumberStyle.RowIndex; this.ultraGrid2.DisplayLayout.Override.RowSelectors = Infragistics.Win.DefaultableBoolean.True; this.ultraGrid2.DisplayLayout.Override.RowSelectorWidth = 20; this.ultraGrid2.DisplayLayout.ScrollStyle = Infragistics.Win.UltraWinGrid.ScrollStyle.Immediate; this.ultraGrid2.Dock = System.Windows.Forms.DockStyle.Fill; this.ultraGrid2.Location = new System.Drawing.Point(3, 17); this.ultraGrid2.Name = "ultraGrid2"; this.ultraGrid2.Size = new System.Drawing.Size(309, 103); this.ultraGrid2.TabIndex = 1; // // panel4 // this.panel4.Controls.Add(this.groupBox2); this.panel4.Dock = System.Windows.Forms.DockStyle.Top; this.panel4.Location = new System.Drawing.Point(0, 50); this.panel4.Name = "panel4"; this.panel4.Size = new System.Drawing.Size(315, 232); this.panel4.TabIndex = 10; // // groupBox2 // this.groupBox2.Controls.Add(this.ultraGrid3); this.groupBox2.Dock = System.Windows.Forms.DockStyle.Fill; this.groupBox2.Location = new System.Drawing.Point(0, 0); this.groupBox2.Name = "groupBox2"; this.groupBox2.Size = new System.Drawing.Size(315, 232); this.groupBox2.TabIndex = 9; this.groupBox2.TabStop = false; this.groupBox2.Text = "计划信息"; // // ultraGrid3 // this.ultraGrid3.DisplayLayout.Override.HeaderStyle = Infragistics.Win.HeaderStyle.Standard; this.ultraGrid3.DisplayLayout.Override.RowSelectorNumberStyle = Infragistics.Win.UltraWinGrid.RowSelectorNumberStyle.RowIndex; this.ultraGrid3.DisplayLayout.Override.RowSelectors = Infragistics.Win.DefaultableBoolean.True; this.ultraGrid3.DisplayLayout.Override.RowSelectorWidth = 20; this.ultraGrid3.DisplayLayout.ScrollStyle = Infragistics.Win.UltraWinGrid.ScrollStyle.Immediate; this.ultraGrid3.Dock = System.Windows.Forms.DockStyle.Fill; this.ultraGrid3.Location = new System.Drawing.Point(3, 17); this.ultraGrid3.Name = "ultraGrid3"; this.ultraGrid3.Size = new System.Drawing.Size(309, 212); this.ultraGrid3.TabIndex = 0; // // ultraGroupBox2 // this.ultraGroupBox2.BackColorInternal = System.Drawing.Color.Gainsboro; this.ultraGroupBox2.Controls.Add(this.dtpCutTime); this.ultraGroupBox2.Controls.Add(this.label29); this.ultraGroupBox2.Controls.Add(this.cboFlowNo); this.ultraGroupBox2.Controls.Add(this.label30); this.ultraGroupBox2.Controls.Add(this.label31); this.ultraGroupBox2.Controls.Add(this.txtSurplusFlag); this.ultraGroupBox2.Controls.Add(this.txtProdorderNO); this.ultraGroupBox2.Controls.Add(this.label32); this.ultraGroupBox2.Controls.Add(this.txtOrderNO); this.ultraGroupBox2.Controls.Add(this.label33); this.ultraGroupBox2.Controls.Add(this.button4); this.ultraGroupBox2.Controls.Add(this.button3); this.ultraGroupBox2.Controls.Add(this.textBox26); this.ultraGroupBox2.Controls.Add(this.label34); this.ultraGroupBox2.Controls.Add(this.label35); this.ultraGroupBox2.Controls.Add(this.label36); this.ultraGroupBox2.Controls.Add(this.tbxWeight); this.ultraGroupBox2.Controls.Add(this.tbxThick); this.ultraGroupBox2.Controls.Add(this.tbxWidth); this.ultraGroupBox2.Controls.Add(this.label37); this.ultraGroupBox2.Controls.Add(this.tbxLength); this.ultraGroupBox2.Controls.Add(this.label38); this.ultraGroupBox2.Controls.Add(this.comboBox1); this.ultraGroupBox2.Controls.Add(this.label39); this.ultraGroupBox2.Controls.Add(this.textBox27); this.ultraGroupBox2.Controls.Add(this.label40); this.ultraGroupBox2.Controls.Add(this.textBox28); this.ultraGroupBox2.Controls.Add(this.label41); this.ultraGroupBox2.Dock = System.Windows.Forms.DockStyle.Bottom; this.ultraGroupBox2.Location = new System.Drawing.Point(0, 405); this.ultraGroupBox2.Name = "ultraGroupBox2"; this.ultraGroupBox2.Size = new System.Drawing.Size(315, 174); this.ultraGroupBox2.TabIndex = 7; this.ultraGroupBox2.Text = "按计划多块生成切割"; // // dtpCutTime // this.dtpCutTime.DateTime = new System.DateTime(2008, 11, 24, 0, 0, 0, 0); this.dtpCutTime.FormatProvider = new System.Globalization.CultureInfo("en-US"); this.dtpCutTime.FormatString = "yyyy-MM-dd HH:mm:ss"; this.dtpCutTime.Location = new System.Drawing.Point(74, 145); this.dtpCutTime.MaskInput = "yyyy-mm-dd hh:mm:ss"; this.dtpCutTime.Name = "dtpCutTime"; this.dtpCutTime.Size = new System.Drawing.Size(231, 21); this.dtpCutTime.TabIndex = 283; this.dtpCutTime.Value = new System.DateTime(2008, 11, 24, 0, 0, 0, 0); // // label29 // this.label29.AutoSize = true; this.label29.Location = new System.Drawing.Point(18, 149); this.label29.Name = "label29"; this.label29.Size = new System.Drawing.Size(53, 12); this.label29.TabIndex = 150; this.label29.Text = "切割时间"; // // cboFlowNo // this.cboFlowNo.BackColor = System.Drawing.Color.White; this.cboFlowNo.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.cboFlowNo.Items.AddRange(new object[] { "1", "2", "3", "4"}); this.cboFlowNo.Location = new System.Drawing.Point(257, 69); this.cboFlowNo.Name = "cboFlowNo"; this.cboFlowNo.Size = new System.Drawing.Size(48, 20); this.cboFlowNo.TabIndex = 149; // // label30 // this.label30.AutoSize = true; this.label30.Location = new System.Drawing.Point(226, 73); this.label30.Name = "label30"; this.label30.Size = new System.Drawing.Size(29, 12); this.label30.TabIndex = 148; this.label30.Text = "流号"; // // label31 // this.label31.AutoSize = true; this.label31.Location = new System.Drawing.Point(143, 97); this.label31.Name = "label31"; this.label31.Size = new System.Drawing.Size(29, 12); this.label31.TabIndex = 147; this.label31.Text = "余材"; // // txtSurplusFlag // this.txtSurplusFlag.BackColor = System.Drawing.Color.White; this.txtSurplusFlag.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.txtSurplusFlag.Location = new System.Drawing.Point(175, 93); this.txtSurplusFlag.Name = "txtSurplusFlag"; this.txtSurplusFlag.Size = new System.Drawing.Size(48, 21); this.txtSurplusFlag.TabIndex = 146; // // txtProdorderNO // this.txtProdorderNO.BackColor = System.Drawing.Color.White; this.txtProdorderNO.Location = new System.Drawing.Point(74, 45); this.txtProdorderNO.Name = "txtProdorderNO"; this.txtProdorderNO.ReadOnly = true; this.txtProdorderNO.Size = new System.Drawing.Size(149, 21); this.txtProdorderNO.TabIndex = 145; // // label32 // this.label32.AutoSize = true; this.label32.Location = new System.Drawing.Point(6, 49); this.label32.Name = "label32"; this.label32.Size = new System.Drawing.Size(65, 12); this.label32.TabIndex = 144; this.label32.Text = "生产订单号"; // // txtOrderNO // this.txtOrderNO.BackColor = System.Drawing.Color.White; this.txtOrderNO.Location = new System.Drawing.Point(74, 21); this.txtOrderNO.Name = "txtOrderNO"; this.txtOrderNO.ReadOnly = true; this.txtOrderNO.Size = new System.Drawing.Size(149, 21); this.txtOrderNO.TabIndex = 143; // // label33 // this.label33.AutoSize = true; this.label33.Location = new System.Drawing.Point(18, 25); this.label33.Name = "label33"; this.label33.Size = new System.Drawing.Size(53, 12); this.label33.TabIndex = 142; this.label33.Text = "订单行号"; // // button4 // this.button4.Location = new System.Drawing.Point(238, 44); this.button4.Name = "button4"; this.button4.Size = new System.Drawing.Size(61, 23); this.button4.TabIndex = 141; this.button4.Text = "取消"; this.button4.UseVisualStyleBackColor = true; this.button4.Visible = false; // // button3 // this.button3.Location = new System.Drawing.Point(244, 20); this.button3.Name = "button3"; this.button3.Size = new System.Drawing.Size(61, 23); this.button3.TabIndex = 140; this.button3.Text = "生成"; this.button3.UseVisualStyleBackColor = true; // // textBox26 // this.textBox26.BackColor = System.Drawing.Color.LightCyan; this.textBox26.Location = new System.Drawing.Point(238, 150); this.textBox26.Name = "textBox26"; this.textBox26.Size = new System.Drawing.Size(64, 21); this.textBox26.TabIndex = 139; this.textBox26.Text = "1"; this.textBox26.Visible = false; // // label34 // this.label34.AutoSize = true; this.label34.Location = new System.Drawing.Point(182, 154); this.label34.Name = "label34"; this.label34.Size = new System.Drawing.Size(53, 12); this.label34.TabIndex = 138; this.label34.Text = "起始序号"; this.label34.Visible = false; // // label35 // this.label35.AutoSize = true; this.label35.Location = new System.Drawing.Point(226, 97); this.label35.Name = "label35"; this.label35.Size = new System.Drawing.Size(29, 12); this.label35.TabIndex = 137; this.label35.Text = "重量"; // // label36 // this.label36.AutoSize = true; this.label36.Location = new System.Drawing.Point(226, 121); this.label36.Name = "label36"; this.label36.Size = new System.Drawing.Size(29, 12); this.label36.TabIndex = 136; this.label36.Text = "厚度"; // // tbxWeight // this.tbxWeight.BackColor = System.Drawing.Color.White; this.tbxWeight.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.tbxWeight.Location = new System.Drawing.Point(257, 93); this.tbxWeight.Name = "tbxWeight"; this.tbxWeight.Size = new System.Drawing.Size(48, 21); this.tbxWeight.TabIndex = 135; // // tbxThick // this.tbxThick.BackColor = System.Drawing.Color.White; this.tbxThick.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.tbxThick.Location = new System.Drawing.Point(257, 117); this.tbxThick.Name = "tbxThick"; this.tbxThick.Size = new System.Drawing.Size(48, 21); this.tbxThick.TabIndex = 134; // // tbxWidth // this.tbxWidth.BackColor = System.Drawing.Color.White; this.tbxWidth.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.tbxWidth.Location = new System.Drawing.Point(175, 117); this.tbxWidth.Name = "tbxWidth"; this.tbxWidth.Size = new System.Drawing.Size(48, 21); this.tbxWidth.TabIndex = 133; // // label37 // this.label37.AutoSize = true; this.label37.Location = new System.Drawing.Point(143, 121); this.label37.Name = "label37"; this.label37.Size = new System.Drawing.Size(29, 12); this.label37.TabIndex = 132; this.label37.Text = "宽度"; // // tbxLength // this.tbxLength.BackColor = System.Drawing.Color.White; this.tbxLength.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.tbxLength.Location = new System.Drawing.Point(74, 117); this.tbxLength.Name = "tbxLength"; this.tbxLength.Size = new System.Drawing.Size(64, 21); this.tbxLength.TabIndex = 131; // // label38 // this.label38.AutoSize = true; this.label38.Location = new System.Drawing.Point(42, 121); this.label38.Name = "label38"; this.label38.Size = new System.Drawing.Size(29, 12); this.label38.TabIndex = 130; this.label38.Text = "长度"; // // comboBox1 // this.comboBox1.BackColor = System.Drawing.Color.White; this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBox1.Items.AddRange(new object[] { "0", "1", "2", "3"}); this.comboBox1.Location = new System.Drawing.Point(175, 69); this.comboBox1.Name = "comboBox1"; this.comboBox1.Size = new System.Drawing.Size(48, 20); this.comboBox1.TabIndex = 129; // // label39 // this.label39.AutoSize = true; this.label39.Location = new System.Drawing.Point(144, 73); this.label39.Name = "label39"; this.label39.Size = new System.Drawing.Size(29, 12); this.label39.TabIndex = 128; this.label39.Text = "铸机"; // // textBox27 // this.textBox27.BackColor = System.Drawing.Color.White; this.textBox27.Location = new System.Drawing.Point(74, 93); this.textBox27.Name = "textBox27"; this.textBox27.Size = new System.Drawing.Size(64, 21); this.textBox27.TabIndex = 127; // // label40 // this.label40.AutoSize = true; this.label40.Location = new System.Drawing.Point(18, 97); this.label40.Name = "label40"; this.label40.Size = new System.Drawing.Size(53, 12); this.label40.TabIndex = 126; this.label40.Text = "生成块数"; // // textBox28 // this.textBox28.BackColor = System.Drawing.Color.White; this.textBox28.Location = new System.Drawing.Point(74, 69); this.textBox28.Name = "textBox28"; this.textBox28.ReadOnly = true; this.textBox28.Size = new System.Drawing.Size(64, 21); this.textBox28.TabIndex = 125; // // label41 // this.label41.AutoSize = true; this.label41.Location = new System.Drawing.Point(30, 73); this.label41.Name = "label41"; this.label41.Size = new System.Drawing.Size(41, 12); this.label41.TabIndex = 124; this.label41.Text = "熔炼号"; // // ultraGroupBox3 // this.ultraGroupBox3.BackColorInternal = System.Drawing.Color.Gainsboro; this.ultraGroupBox3.Controls.Add(this.bntSend); this.ultraGroupBox3.Controls.Add(this.combConNo); this.ultraGroupBox3.Controls.Add(this.chkConNo); this.ultraGroupBox3.Controls.Add(this.queryBtn); this.ultraGroupBox3.Controls.Add(this.ccmNumCobo); this.ultraGroupBox3.Controls.Add(this.chkCcmNo); this.ultraGroupBox3.Dock = System.Windows.Forms.DockStyle.Top; this.ultraGroupBox3.Location = new System.Drawing.Point(0, 0); this.ultraGroupBox3.Name = "ultraGroupBox3"; this.ultraGroupBox3.Size = new System.Drawing.Size(315, 50); this.ultraGroupBox3.TabIndex = 6; // // bntSend // this.bntSend.BackColor = System.Drawing.Color.LightSeaGreen; this.bntSend.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.bntSend.Location = new System.Drawing.Point(20, 39); this.bntSend.Name = "bntSend"; this.bntSend.Size = new System.Drawing.Size(104, 23); this.bntSend.TabIndex = 5; this.bntSend.Text = "发送金相指示"; this.bntSend.UseVisualStyleBackColor = false; this.bntSend.Visible = false; // // combConNo // this.combConNo.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.combConNo.Location = new System.Drawing.Point(186, 14); this.combConNo.Name = "combConNo"; this.combConNo.Size = new System.Drawing.Size(62, 20); this.combConNo.TabIndex = 3; // // chkConNo // this.chkConNo.AutoSize = true; this.chkConNo.Location = new System.Drawing.Point(128, 16); this.chkConNo.Name = "chkConNo"; this.chkConNo.Size = new System.Drawing.Size(60, 16); this.chkConNo.TabIndex = 2; this.chkConNo.Text = "转炉号"; this.chkConNo.UseVisualStyleBackColor = true; // // queryBtn // this.queryBtn.Location = new System.Drawing.Point(254, 13); this.queryBtn.Name = "queryBtn"; this.queryBtn.Size = new System.Drawing.Size(58, 23); this.queryBtn.TabIndex = 4; this.queryBtn.Text = "查询"; this.queryBtn.UseVisualStyleBackColor = true; this.queryBtn.Click += new System.EventHandler(this.queryBtn_Click); // // ccmNumCobo // this.ccmNumCobo.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.ccmNumCobo.FormattingEnabled = true; this.ccmNumCobo.Location = new System.Drawing.Point(62, 14); this.ccmNumCobo.Name = "ccmNumCobo"; this.ccmNumCobo.Size = new System.Drawing.Size(62, 20); this.ccmNumCobo.TabIndex = 3; // // chkCcmNo // this.chkCcmNo.AutoSize = true; this.chkCcmNo.Location = new System.Drawing.Point(6, 16); this.chkCcmNo.Name = "chkCcmNo"; this.chkCcmNo.Size = new System.Drawing.Size(60, 16); this.chkCcmNo.TabIndex = 0; this.chkCcmNo.Text = "铸机号"; this.chkCcmNo.UseVisualStyleBackColor = true; this.chkCcmNo.CheckedChanged += new System.EventHandler(this.chkCcmNo_CheckedChanged); // // FrmCutBilletDetail // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.ClientSize = new System.Drawing.Size(1026, 579); this.Controls.Add(this.ultraGrid1); this.Controls.Add(this.ultraGroupBox1); this.Controls.Add(this.ultraExpandableGroupBox1); this.Controls.Add(this.splitter1); this.Controls.Add(this.panel2); this.Name = "FrmCutBilletDetail"; this.Text = "切割明细"; this.Load += new System.EventHandler(this.FrmMidPotroast_Load); ((System.ComponentModel.ISupportInitialize)(this.dataSet1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.dataTable1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.ultraGrid1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.ultraGroupBox1)).EndInit(); this.ultraGroupBox1.ResumeLayout(false); this.ultraGroupBox1.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.comboBox4)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.dateTimePicker4)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.dateTimePicker3)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.ultraExpandableGroupBox1)).EndInit(); this.ultraExpandableGroupBox1.ResumeLayout(false); this.ultraExpandableGroupBoxPanel1.ResumeLayout(false); this.panel1.ResumeLayout(false); this.panel1.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.dateTimePicker5)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.comboBox6)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.comboBox3)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.comboBox5)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.comboBox2)).EndInit(); this.panel3.ResumeLayout(false); this.panel3.PerformLayout(); this.panel2.ResumeLayout(false); this.panel5.ResumeLayout(false); this.groupBox1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.ultraGrid2)).EndInit(); this.panel4.ResumeLayout(false); this.groupBox2.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.ultraGrid3)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.ultraGroupBox2)).EndInit(); this.ultraGroupBox2.ResumeLayout(false); this.ultraGroupBox2.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.dtpCutTime)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.ultraGroupBox3)).EndInit(); this.ultraGroupBox3.ResumeLayout(false); this.ultraGroupBox3.PerformLayout(); this.ResumeLayout(false); } #endregion #endregion #region " Valiable " private DataSet _dsMid; public bool DataChangedFlag = false; private string _strWhere = ""; private Thread _refreshDataThread = null; private DateTime LastUpdateTime; #endregion public string CCMN0 = ""; private string strOldBlockNo; private string strOldCastNo; private delegate void CallRefreshThreadDelegate(); private bool bExit = false; private Hashtable cutHash = new Hashtable(); private CommandClass _commClass; private bool blText = false; //处理装载程序时执行Changed事情 private string _DEVICE_POSITION = ""; // 设备位置 private int _DEVICE_POS = -1; // 设备号 public string strV_BilletID = ""; //虚拟坯料号 public string strV_Heat_ID = ""; //虚拟炉号 public string strOrderNO = "";//订单行号 public string strProdOrderNO = "";//生产订单号 public string strSurplusFlag = "";//是否余材 public string strSteelCode = ""; public string strProductline = ""; //产线 public string strStandardsCode = "";//标准号 public string strStandardRemak = ""; //标准描述 public string strCustomer_Key = "";//客户参数号 #region " Init " #region//调度、切割 public delegate void ReportSelect(string strCastNo, string strBlockNo); public ReportSelect reportSelect; public delegate void ReportHandSet(string strHeatID, int nBegin, int nEnd); public ReportHandSet reportHandSet; public int intCcm = -1; private DataTable steelSchTable, cutSchTable;//调度、切割指示表 private Hashtable routeHash = new Hashtable();//存放工艺路径 #endregion private void FrmMidPotroast_Load(object sender, System.EventArgs e) { string strKey = ""; if (this.Key.IndexOf('@') > 0) { strKey = this.Key.Substring(this.Key.IndexOf('@') + 1, 5); _DEVICE_POSITION = strKey; if (_DEVICE_POSITION == "CCM04") _DEVICE_POS = 0; else _DEVICE_POS = Convert.ToInt16(strKey.Substring(strKey.Length - 1, 1)); } //ultraGrid1.Font = new System.Drawing.Font("Tahoma", 9F); ultraGrid1.DisplayLayout.Appearance.FontData.SizeInPoints = 10; this.dateTimePicker3.Text = System.DateTime.Today.AddDays(-2).ToString("yyyy-MM-dd") + " 00:00"; this.dateTimePicker4.Text = System.DateTime.Today.ToString("yyyy-MM-dd") + " 23:59"; if (_DEVICE_POS == 2 || _DEVICE_POS == 3) { ultraGrid1.DisplayLayout.ValueLists["flow"].ValueListItems[0].DisplayText = "0流"; ultraGrid1.DisplayLayout.ValueLists["flow"].ValueListItems[1].DisplayText = "1流"; ultraGrid1.DisplayLayout.ValueLists["flow"].ValueListItems[2].DisplayText = "2流"; ultraGrid1.DisplayLayout.ValueLists["flow"].ValueListItems[3].DisplayText = "3流"; ultraGrid1.DisplayLayout.ValueLists["flow"].ValueListItems[4].DisplayText = "4流"; } InitSteel(); //初始化Grid牌号信息 // GetSqlWhere(); // GetData(); //OpenFromGetData(); InitComboBoxSource(); if (_DEVICE_POS > -1) { comboBox2.SelectedIndex = _DEVICE_POS; comboBox2.Enabled = false; comboBox4.SelectedIndex = _DEVICE_POS; } //FrmProductQuery ctr = new FrmProductQuery(); //ctr.reportSelect = new FrmProductQuery.ReportSelect(PlanBlockChange); //ctr.reportHandSet = new FrmProductQuery.ReportHandSet(HandleSetClear); //if (_DEVICE_POS > -1) // ctr.intCcm = _DEVICE_POS; ////ctr.RemotingHelp = this.RemotingHelp ; //ctr.FrmMain = this; ////_commClass = new CommandClass(this.RemotingHelp); //this.panel2.Controls.Add(ctr); //ctr.Dock = System.Windows.Forms.DockStyle.Fill; strOldBlockNo = ""; strOldCastNo = ""; ////计划框体展现 this.panel2.Visible = true; this.ultraExpandableGroupBox1.Expanded = true; CheckForIllegalCrossThreadCalls = false; blText = true; this.textBox5.TextChanged += new System.EventHandler(this.textBox5_TextChanged); //刷新线程 ThreadStart ts = new ThreadStart(SetDataThread); _refreshDataThread = new Thread(ts); _refreshDataThread.Name = "RefreshData"; _refreshDataThread.Start(); bHandleCoup = true; bExit = false; #region//调度切割 dtpCutTime.Value = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"); steelSchTable = new DataTable("steelSchTable"); cutSchTable = new DataTable("cutSchTable"); createTable(); this.ultraGrid1.DataSource = steelSchTable; this.ultraGrid2.DataSource = cutSchTable; setGrid1View(); InitComboBoxSource_Cut(); this.combConNo.SelectedIndex = 0; //分铸机 if (intCcm == -1) { this.ccmNumCobo.SelectedIndex = 0; } else { this.ccmNumCobo.SelectedIndex = intCcm; chkCcmNo.Checked = true; chkCcmNo.Enabled = false; comboBox3.SelectedIndex = intCcm; comboBox3.Enabled = false; } this.ccmNumCobo.Enabled = false; this.combConNo.Enabled = false; this.queryBtn_Click(null, new EventArgs()); #endregion } /// /// 初始化Grind牌号 /// private void InitSteel() { string strErr = ""; ultraGrid1.DisplayLayout.ValueLists.Add("SteelCode"); DataSet dsSteel = null; // (DataSet)ClientCommon._RemotingHelp.ExecuteMethod( //"lgIntegrationQuery", //"Core.LgMes.Server.lgIntegrationQuery.LgGeneralInfo", //"GetSteelInfo", new object[] { "where largeflag='1' order by steelcode " }, out strErr); if (strErr == "" && dsSteel != null) { //初始经Grid牌号字段数据集 for (int i = 0; i < dsSteel.Tables[0].Rows.Count; i++) { ultraGrid1.DisplayLayout.ValueLists["SteelCode"].ValueListItems.Add(dsSteel.Tables[0].Rows[i]["SteelCode"].ToString(), dsSteel.Tables[0].Rows[i]["Steel"].ToString()); } //绑定单位 ultraGrid1.DisplayLayout.Bands[0].Columns["SteelCode"].ValueList = ultraGrid1.DisplayLayout.ValueLists["SteelCode"]; } } private void InitComboBoxSource() { this.comboBox3.DataSource = GetDutyData(); this.comboBox3.DisplayMember = "name"; this.comboBox3.ValueMember = "id"; this.comboBox2.DataSource = GetCcmData(); this.comboBox2.DisplayMember = "name"; this.comboBox2.ValueMember = "id"; this.comboBox4.DataSource = GetCcmData(); this.comboBox4.DisplayMember = "name"; this.comboBox4.ValueMember = "id"; this.comboBox5.DataSource = GetFlowData(); this.comboBox5.DisplayMember = "name"; this.comboBox5.ValueMember = "id"; this.comboBox6.DataSource = GetStatusData(); this.comboBox6.DisplayMember = "name"; this.comboBox6.ValueMember = "id"; } private DataTable GetDutyData() { DataTable dt = new DataTable(); dt.Columns.Add("id", typeof(System.String)); dt.Columns.Add("name", typeof(System.String)); dt.Rows.Add(new object[] { "11", "白班甲组" }); dt.Rows.Add(new object[] { "12", "白班乙组" }); dt.Rows.Add(new object[] { "13", "白班丙组" }); dt.Rows.Add(new object[] { "14", "白班丁组" }); dt.Rows.Add(new object[] { "21", "中班甲组" }); dt.Rows.Add(new object[] { "22", "中班乙组" }); dt.Rows.Add(new object[] { "23", "中班丙组" }); dt.Rows.Add(new object[] { "24", "中班丁组" }); dt.Rows.Add(new object[] { "31", "夜班甲组" }); dt.Rows.Add(new object[] { "32", "夜班乙组" }); dt.Rows.Add(new object[] { "33", "夜班丙组" }); dt.Rows.Add(new object[] { "34", "夜班丁组" }); dt.AcceptChanges(); return dt; } private DataTable GetCcmData() { DataTable dt = new DataTable(); dt.Columns.Add("id", typeof(System.String)); dt.Columns.Add("name", typeof(System.String)); dt.Rows.Add(new object[] { "0", "0#铸机" }); dt.Rows.Add(new object[] { "1", "1#铸机" }); dt.Rows.Add(new object[] { "2", "2#铸机" }); dt.Rows.Add(new object[] { "3", "3#铸机" }); dt.Rows.Add(new object[] { "4", "4#铸机" }); dt.AcceptChanges(); return dt; } private DataTable GetStatusData() { DataTable dt = new DataTable(); dt.Columns.Add("id", typeof(System.String)); dt.Columns.Add("name", typeof(System.String)); dt.Rows.Add(new object[] { "Y", "是" }); dt.Rows.Add(new object[] { "N", "否" }); dt.AcceptChanges(); return dt; } private DataTable GetFlowData() { DataTable dt = new DataTable(); dt.Columns.Add("id", typeof(System.String)); dt.Columns.Add("name", typeof(System.String)); if (_DEVICE_POS == 2 || _DEVICE_POS == 3) { dt.Rows.Add(new object[] { "1", "0流" }); dt.Rows.Add(new object[] { "2", "1流" }); dt.Rows.Add(new object[] { "3", "2流" }); dt.Rows.Add(new object[] { "4", "3流" }); dt.Rows.Add(new object[] { "5", "4流" }); } else { dt.Rows.Add(new object[] { "1", "1流" }); dt.Rows.Add(new object[] { "2", "2流" }); dt.Rows.Add(new object[] { "3", "3流" }); dt.Rows.Add(new object[] { "4", "4流" }); dt.Rows.Add(new object[] { "5", "5流" }); } dt.AcceptChanges(); return dt; } /// /// 设置查询条件 /// private void GetSqlWhere() { this._strWhere = " where 1=1 "; if (this.checkBox1.Checked) { this._strWhere += string.Format(" and CUTTIME between to_date('{0}','yyyy-MM-dd hh24:mi') and to_date('{1}','yyyy-MM-dd hh24:mi')", Convert.ToDateTime(this.dateTimePicker3.Value).ToString("yyyy-MM-dd HH:mm"),Convert.ToDateTime(this.dateTimePicker4.Value).ToString("yyyy-MM-dd HH:mm")); } if (this.checkBox2.Checked) { this._strWhere += string.Format(" and HEATNO = '{0}'", this.textBox1.Text.Trim()); } if (this.checkBox3.Checked) { this._strWhere += string.Format(" and CCMID = '{0}'", this.comboBox4.SelectedIndex); } if (!checkBox1.Checked && !checkBox2.Checked && !checkBox3.Checked) { this._strWhere += string.Format(" and CUTTIME between to_date('{0}','yyyy-MM-dd hh24:mi') and to_date('{1}','yyyy-MM-dd hh24:mi')", DateTime.Now.ToString("yyyy-MM-dd") + " 00:00", DateTime.Now.ToString("yyyy-MM-dd") + " 23:59"); } } private void GetData() { try { //hengxing //CallingMessage par = new CallingMessage(); //par.ServerName = "lgJobMgt"; //par.AssemblyName = "Core.LgMes.Server.lgJobMgt"; //par.ClassName = "Core.LgMes.Server.lgJobMgt.classCutJob"; //par.MethodName = "GetCutBillet"; //par.args = new object[] { _strWhere + " order by cuttime asc,ccmid asc, heatno desc " }; string strOut = ""; if (_dsMid != null && _dsMid.Tables.Count > 0) { _dsMid.Tables.Clear(); } // // if( _dsMid != null && _dsMid.Tables[0].Rows.Count > 0 ) // { // _dsMid.Tables[0].Rows.Clear(); // } _dsMid = null; //ClientCommon._RemotingHelp.ExecuteMethod(par, out strOut) as DataSet; if (_dsMid != null) { this.ultraGrid1.DataSource = _dsMid.Tables[0]; SetSteelSum(); } string strOld = ""; string strNew = ""; string strOld_Order = ""; string strNew_Order = ""; Color c1 = Color.GhostWhite;//Color.White; Color c2 = Color.MintCream;//Color.GhostWhite;//Color.LightCyan; Color c3 = c1; Color color_OrderNo1 = Color.Blue; Color color_OrderNo2 = Color.Black; Color color_OrderNo3 = color_OrderNo1; for (int i = 0; i < this.ultraGrid1.Rows.Count; i++) { UltraGridRow ugr = this.ultraGrid1.Rows[i]; strNew = ugr.Cells["HEATNO"].Value.ToString(); strNew_Order = ugr.Cells["PRODORDERNO"].Value.ToString(); if (strOld != strNew) { if (c3 == c1) c3 = c2; else c3 = c1; strOld = strNew; } ugr.Appearance.BackColor = c3; if (strOld_Order != strNew_Order) { if (color_OrderNo3 == color_OrderNo1) color_OrderNo3 = color_OrderNo2; else color_OrderNo3 = color_OrderNo1; strOld_Order = strNew_Order; } ugr.Appearance.ForeColor = color_OrderNo3; //ugr.Cells["PRODORDERNO"].Appearance.ForeColor = color_OrderNo3; //ugr.Cells["ORDERNO"].Appearance.ForeColor = color_OrderNo3; } } catch (Exception ex) { string strMsg = ex.Message; } } private void ultraGrid1_AfterRowActivate(object sender, System.EventArgs e) { if (this.ultraGrid1.ActiveRow == null) return; UltraGridRow ugr = this.ultraGrid1.ActiveRow; int i1 = 0; //炉内切割数 int i2 = 0; //浇次内炉数 string str1 = ugr.Cells["HEATNO"].Value.ToString(); //smeltingid 炉号 string str2 = ugr.Cells["MOULDNO"].Value.ToString(); //castno 浇次号 string str3 = ""; for (int i = 0; i < this.ultraGrid1.Rows.Count; i++) { UltraGridRow ugrf = this.ultraGrid1.Rows[i]; if (str2 == ugrf.Cells["MOULDNO"].Value.ToString()) { if (str1 == ugrf.Cells["HEATNO"].Value.ToString()) { i1++; } if (str3 != ugrf.Cells["HEATNO"].Value.ToString()) { i2++; str3 = ugrf.Cells["HEATNO"].Value.ToString(); } } } try { this.richTextBox1.Text = "浇次内炉数:" + i2.ToString() + " 炉内切割数:" + i1.ToString(); } catch (Exception ex) { MessageBox.Show(ex.Message, "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); } this.textBox2.Text = ugr.Cells[0].Value.ToString(); this.textBox4.Text = ugr.Cells[1].Value.ToString(); this.comboBox2.Text = ugr.Cells[2].Value.ToString(); this.comboBox5.Text = ugr.Cells[3].Value.ToString(); this.textBox5.Text = ugr.Cells[4].Value.ToString(); this.textBox8.Text = ugr.Cells[5].Value.ToString(); strSteelCode = ugr.Cells["SteelCode"].Value.ToString(); if (ugr.Cells[6].Value == DBNull.Value || string.IsNullOrEmpty(ugr.Cells[6].Value.ToString())) this.textBox6.Text = ""; else this.textBox6.Text = Convert.ToSingle(ugr.Cells[6].Value).ToString(); if (ugr.Cells[7].Value == DBNull.Value || string.IsNullOrEmpty(ugr.Cells[7].Value.ToString())) this.textBox7.Text = ""; else this.textBox7.Text = Convert.ToSingle(ugr.Cells[7].Value).ToString(); if (ugr.Cells[8].Value == DBNull.Value || string.IsNullOrEmpty(ugr.Cells[8].Value.ToString())) this.textBox3.Text = ""; else this.textBox3.Text = Convert.ToSingle(ugr.Cells[8].Value).ToString(); if (ugr.Cells[9].Value == DBNull.Value || string.IsNullOrEmpty(ugr.Cells[9].Value.ToString())) this.textBox9.Text = ""; else this.textBox9.Text = Convert.ToSingle(ugr.Cells[9].Value).ToString(); if (ugr.Cells[10].Value == DBNull.Value || string.IsNullOrEmpty(ugr.Cells[10].Value.ToString())) this.textBox10.Text = ""; else this.textBox10.Text = Convert.ToSingle(ugr.Cells[10].Value).ToString(); if (ugr.Cells[11].Value == DBNull.Value || string.IsNullOrEmpty(ugr.Cells[11].Value.ToString())) this.textBox11.Text = ""; else this.textBox11.Text = Convert.ToString(Math.Round(Convert.ToSingle(ugr.Cells[11].Value), 3)); if (ugr.Cells[12].Value == DBNull.Value || string.IsNullOrEmpty(ugr.Cells[12].Value.ToString())) this.textBox12.Text = ""; else this.textBox12.Text = Convert.ToSingle(ugr.Cells[12].Value).ToString(); if (ugr.Cells[18].Value == DBNull.Value || string.IsNullOrEmpty(ugr.Cells[18].Value.ToString())) this.textBox13.Text = ""; else this.textBox13.Text = ugr.Cells[18].Value.ToString(); if (ugr.Cells[20].Value == DBNull.Value || string.IsNullOrEmpty(ugr.Cells[20].Value.ToString())) this.textBox14.Text = ""; else this.textBox14.Text = ugr.Cells[20].Value.ToString(); if (ugr.Cells[19].Value == DBNull.Value || string.IsNullOrEmpty(ugr.Cells[19].Value.ToString())) this.textBox15.Text = ""; else this.textBox15.Text = ugr.Cells[19].Value.ToString(); try { this.dateTimePicker5.Value = Convert.ToDateTime(ugr.Cells[13].Value); if (ugr.Cells[14].Value != System.DBNull.Value) this.comboBox3.Text = ugr.Cells[14].Value.ToString(); else { this.comboBox3.SelectedIndex = -1; this.comboBox3.Text = ""; } if (ugr.Cells[15] == null) this.comboBox6.Text = "N"; else this.comboBox6.Text = ugr.Cells[15].Value.ToString(); } catch { } } #endregion #region " ToolBar Event " public override void ToolBar_Click(object sender, string ToolbarKey) { switch (ToolbarKey) { case "add": if (!this.ultraExpandableGroupBox1.Expanded) { this.ultraExpandableGroupBox1.Expanded = true; return; } Add(); break; case "del": Del(); break; case "edit": if (!this.ultraExpandableGroupBox1.Expanded) { this.ultraExpandableGroupBox1.Expanded = true; return; } Edit(); break; case "query": Query(); break; case "plan": Plan(); break; case "Existplan": ShowToolBans(); break; } } private void ShowToolBans() { if (this.panel2.Visible) { //计划框体展现 this.panel2.Visible = false; this.ultraExpandableGroupBox1.Expanded = false; } else { //计划框体展现 this.panel2.Visible = true; this.ultraExpandableGroupBox1.Expanded = true; } } private bool IsValidOfHeatNo(string strSmeltingID) { if (strSmeltingID == "") return false; if (strSmeltingID.Length != 8) { MessageBox.Show("请输入炉号错误,长度为8位,正确炉号如:09200001!"); return false; } //if (strSmeltingID.Substring(0, 1) != "0") //{ // MessageBox.Show("请输入炼号错误,第一位不是'0',正确炉号如:09200001!"); // return false; //} if (Convert.ToUInt16(strSmeltingID.Substring(2, 1)) > 3) { MessageBox.Show("请输入炼号错误,第三位不是'1','2'或'3',正确炉号如:09200001!"); return false; } return true; } public string yncheck() { string strLastFla = ""; if (this.ultraGrid1.Rows.Count < 1) { strLastFla = "N"; } if (this.ultraGrid1.Rows.Count > 0) { UltraGridRow ugr = this.ultraGrid1.Rows[ultraGrid1.Rows.Count - 1]; strLastFla = ugr.Cells["LASTBILLETFLAG"].Value.ToString(); } return Convert.ToString(strLastFla); } /// /// 获取指定炉号的生产状态 /// /// /// private bool GetHeatState(string strHeatNo) { string strErr = ""; string strState = ""; bool blState = false; DataSet ds =null; // (DataSet)ClientCommon._RemotingHelp.ExecuteMethod("lgJobMgt", //"Core.LgMes.Server.lgJobMgt.classCutJob", //"GetHeatState", new object[] { strHeatNo }, out strErr); if (strErr == "") { if (ds != null && ds.Tables[0].Rows.Count > 0) strState = ds.Tables[0].Rows[0]["Heat_state"].ToString(); if (strState == "08" || strState == "09") blState = true; } return blState; } private void Add() { LastUpdateTime = DateTime.Now; string strLastFla = ""; //只有在连铸机生产或已生产完的 if (!GetHeatState(textBox2.Text)) { MessageBox.Show("炉号【" + textBox2.Text + "】没有上连铸机生产,不能生成坯料!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk); return; } if (this.ultraGrid1.Rows.Count < 1) { strLastFla = "N"; } if (this.ultraGrid1.Rows.Count > 0) { UltraGridRow ugr = this.ultraGrid1.Rows[ultraGrid1.Rows.Count - 1]; strLastFla = ugr.Cells["LASTBILLETFLAG"].Value.ToString(); } if (strLastFla == "Y") { MessageBox.Show("请将本炉最后一块置成否后再增加支数"); return; } if (this.textBox2.Text.Trim().Length == 0) { MessageBox.Show("请输入熔炼号!"); return; } else { string strHID = this.textBox2.Text.Trim(); strHID = strHID.ToUpper(); if (!IsValidOfHeatNo(strHID)) return; this.textBox2.Text = strHID.ToUpper(); } if (this.comboBox2.Text.Trim().Length == 0) { MessageBox.Show("请输入铸机号!"); return; } if (this.comboBox5.Text.Trim().Length == 0) { MessageBox.Show("请输入铸流号!"); return; } if (this.textBox5.Text.Trim().Length == 0) { MessageBox.Show("请输入切割序号!"); return; } if (string.IsNullOrEmpty(this.strV_BilletID)) { MessageBox.Show("请选择切割计划!"); return; } //if (string.IsNullOrEmpty(strOrderNO)) //{ // MessageBox.Show("请选择切割计划!"); // return; //} ArrayList ar = GetCurrValue(); string strCastNo = ar[5].ToString(); string strHeatNo = ar[0].ToString(); int nHeatNum = 0; for (int i = 0; i < this.ultraGrid1.Rows.Count; i++) { UltraGridRow ugrf = this.ultraGrid1.Rows[i]; if (strCastNo == ugrf.Cells["MOULDNO"].Value.ToString()) { if (strHeatNo == ugrf.Cells["HEATNO"].Value.ToString()) { int nInt = Convert.ToInt32(ugrf.Cells["CUTSEQNO"].Value.ToString()); if (nInt > nHeatNum) nHeatNum = nInt; } } } nHeatNum++; ar[4] = nHeatNum.ToString(); ar[13] = DateTime.Now.ToString(); string strHeatNum = nHeatNum.ToString(); if (nHeatNum < 10) ar[16] = strHeatNo.Substring(0, 8) + "0" + strHeatNum; else if (nHeatNum >= 100) ar[16] = strHeatNo.Substring(0, 8) + strHeatNum.Substring(1, 2); else ar[16] = strHeatNo.Substring(0, 8) + strHeatNum; if (ar == null) { MessageBox.Show("输入数据格式错误!"); return; } ////////////////// string strMsg = "本浇注位是" + CCMN0 + ",您已经标志标示了一个最后块, 操作失败!!!"; // if( comboBox6.Text == "是" ) nLastBlock = nLastBlock + 1; // if( nLastBlock > 1 ) // { // MessageBox.Show( strMsg ,"提示",MessageBoxButtons.OK,MessageBoxIcon.Warning); // return; // } int nCutSequence = -1; //检查切割顺序号的合法性 try { nCutSequence = Convert.ToInt32(this.textBox5.Text); } catch { MessageBox.Show("您输入的切割顺序号不对,应该输入数字,\r\n且要注意输入法采用半角。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); return; } //检查是否有两个相同的切割顺序 if (CheckDuplicatRec(nHeatNum)) { MessageBox.Show("您在同一炉中设置了两个相同的切割顺序,操作失败!!!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); return; } ////////////////////// try { //hengxing //CallingMessage par = new CallingMessage(); //par.ServerName = "lgJobMgt"; //par.AssemblyName = "Core.LgMes.Server.lgJobMgt"; //par.ClassName = "Core.LgMes.Server.lgJobMgt.classCutJob"; //par.MethodName = "InsetCutBillet"; //par.args = new object[] { ar }; string strOut = ""; object obj = null; // ClientCommon._RemotingHelp.ExecuteMethod(par, out strOut); if (Convert.ToInt32(obj) < 1) { MessageBox.Show("数据提交失败!\n" + strOut); } else { DataRow dr = (this.ultraGrid1.DataSource as DataTable).NewRow(); for (int i = 0; i < dr.Table.Columns.Count; i++) { try { dr[i] = ar[i]; } catch { dr[i] = DBNull.Value; } } (this.ultraGrid1.DataSource as DataTable).Rows.InsertAt(dr, 0); (this.ultraGrid1.DataSource as DataTable).AcceptChanges(); this.ultraGrid1.Rows[0].Activate(); } } catch (Exception ex) { Console.WriteLine(ex.Message); } Query(); if (ultraGrid1.Rows.Count > 0) ultraGrid1.Rows[ultraGrid1.Rows.Count - 1].Activated = true; } private void Del() { LastUpdateTime = DateTime.Now; int i = 0; int nCutNo = 0; int nSelCutNo = 0; string strHeatNo = ""; string strCastNo = ""; string strErr = ""; UltraGridRow ugr = this.ultraGrid1.ActiveRow; if (ugr == null) { MessageBox.Show("请选择要删除的行!"); return; } strHeatNo = ugr.Cells["HEATNO"].Value.ToString(); strCastNo = ugr.Cells["MOULDNO"].Value.ToString(); //DataSet dsCount = (DataSet)ClientCommon._RemotingHelp.ExecuteMethod("lgJobMgt", // "Core.LgMes.Server.lgJobMgt.classCutJob", // "GetMouldNoHeatnoCount", new object[] { strCastNo, strHeatNo }, out strErr); //if (strErr == "" && dsCount !=null) //{ // // nSelCutNo = Convert.ToInt32(ugr.Cells["CUTSEQNO"].Value.ToString()); // if (dsCount.Tables[0].Rows.Count > 0) // nSelCutNo = Convert.ToInt16(dsCount.Tables[0].Rows[0][0]); //} //for (int j = 0; j < this.ultraGrid1.Rows.Count; j++) //{ // UltraGridRow ugrf = this.ultraGrid1.Rows[j]; // if (strCastNo == ugrf.Cells["MOULDNO"].Value.ToString()) // { // if (strHeatNo == ugrf.Cells["HEATNO"].Value.ToString()) // { // nCutNo++; // } // } //} //if (nCutNo != nSelCutNo) //{ // MessageBox.Show("选择的钢坯不是本浇次本炉最后一支,请选择要最后一行删除!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk); // return; //} FrmSelDel frm = new FrmSelDel(ob); frm.ShowDialog(); i = ugr.Index; string strWhere = ""; if (frm._Flag == "A") { strWhere = " where BILLETCODE = '" + ugr.Cells[20].Value.ToString() + "'"; } else if (frm._Flag == "B") { strWhere = " where HEATNO = '" + ugr.Cells[0].Value.ToString() + "'"; } else { return; } try { //hengxing //CallingMessage par = new CallingMessage(); //par.ServerName = "lgJobMgt"; //par.AssemblyName = "Core.LgMes.Server.lgJobMgt"; //par.ClassName = "Core.LgMes.Server.lgJobMgt.classCutJob"; //par.MethodName = "DelCutBillet"; //par.args = new object[] { strWhere }; string strOut = ""; //ClientCommon._RemotingHelp.ExecuteMethod(par, out strOut); if (strOut != "") { MessageBox.Show(strOut, "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk); return; } } catch (Exception ex) { MessageBox.Show(ex.Message); return; } if (frm._Flag == "B") { this.GetSqlWhere(); this.GetData(); return; } this.ultraGrid1.ActiveRow.Delete(false); this.ultraGrid1.UpdateData(); try { this.ultraGrid1.Rows[i].Activate(); } catch { int count = this.ultraGrid1.Rows.Count; if (count > 0) this.ultraGrid1.Rows[count - 1].Activate(); } } //本函数检查是否有重复的记录( 重点是切割顺序 ) private bool CheckDuplicatRec(int nCutSeqence) { // true 不合法 if (nCutSeqence == -1) return true; //再次在恰当的数据源查找 DataTable dtFind = ultraGrid1.DataSource as DataTable; //展现的数据行数 try { foreach (DataRow dr in dtFind.Rows) { int nInt = Convert.ToInt32(dr["CUTSEQNO"].ToString()); if (nCutSeqence == nInt) return true; } } catch { } //false 合法 return false; } //本函数检查是否有两个记录都标示是最后一块 private int CheckLastBlockCount() { /*//首先停止现程的扫描 LastUpdateTime = DateTime.Now; //再次在恰当的数据源查找 DataTable dtFind = ultraGrid1.DataSource as DataTable; //展现的数据行数 //ultraGrid1.Rows.Count+1 int nRowCount = dtFind.Rows.Count; int CheckCount = 0; int MaxRows =0; foreach( DataRow dr in dtFind.Rows ) { MaxRows=MaxRows+1; if (MaxRows==(ultraGrid1.Rows.Count)) break; if( dr["LASTBILLETFLAG"].ToString() == "Y" ) CheckCount = CheckCount + 1; }*/ bool bHasLastCutBillet = false; string strCastNo = ""; string strHeatNo = ""; int CheckCount = 0; UltraGridRow ugr = this.ultraGrid1.ActiveRow; strHeatNo = ugr.Cells["HEATNO"].Value.ToString(); strCastNo = ugr.Cells["MOULDNO"].Value.ToString(); for (int j = 0; j < this.ultraGrid1.Rows.Count; j++) { UltraGridRow ugrf = this.ultraGrid1.Rows[j]; if (strCastNo == ugrf.Cells["MOULDNO"].Value.ToString()) { if (strHeatNo == ugrf.Cells["HEATNO"].Value.ToString()) { if (ugrf.Cells["LASTBILLETFLAG"].Value.ToString() == "Y") { bHasLastCutBillet = true; break; } } } } if (bHasLastCutBillet) CheckCount = 1; else CheckCount = 0; return CheckCount; } private bool CheckAlpbetCaption(string strSmeltiID) { //查找z int nIndex = strSmeltiID.IndexOf("z"); if (nIndex >= 0) return false; return true; } private string ChangeCaptionAuto(string strSmeltingID) { //查找 int nIndex = strSmeltingID.IndexOf("z"); string strNewSmeltingID = strSmeltingID.Substring(0, nIndex); strNewSmeltingID = strNewSmeltingID + "Z"; strNewSmeltingID = strNewSmeltingID + strSmeltingID.Substring(nIndex, strNewSmeltingID.Length - nIndex - 1); return strNewSmeltingID; } private void Edit() { LastUpdateTime = DateTime.Now; UltraGridRow ugr = this.ultraGrid1.ActiveRow; if (ugr == null) { MessageBox.Show("请选择要删除的行!"); return; } if (this.ultraGrid1.ActiveRow == null) { MessageBox.Show("请选择所要修改的行!"); return; } if (this.textBox2.Text.Trim().Length == 0) { MessageBox.Show("请输入熔炼号!"); return; } else { string strHID = this.textBox2.Text.Trim(); strHID = strHID.ToUpper(); if (!IsValidOfHeatNo(strHID)) return; this.textBox2.Text = strHID.ToUpper(); } if (this.textBox13.Text.Trim().Length == 0) { MessageBox.Show("请输入钢坯号!"); return; } if (this.comboBox2.Text.Trim().Length == 0) { MessageBox.Show("请输入铸机号!"); return; } if (this.comboBox5.Text.Trim().Length == 0) { MessageBox.Show("请输入铸流号!"); return; } if (this.textBox5.Text.Trim().Length == 0) { MessageBox.Show("请输入切割序号!"); return; } ArrayList ar = GetCurrValue(); if (ar == null) { MessageBox.Show("输入数据格式错误!"); return; } string strChildNo = this.textBox15.Text.Trim(); if (strChildNo.Length == 0) strChildNo = "NULL"; //ar.Add( strChildNo ); int nSelCutNo = Convert.ToInt32(ugr.Cells["CUTSEQNO"].Value.ToString()); int nCutSequence = -1; //检查切割顺序号的合法性 try { nCutSequence = Convert.ToInt32(this.textBox5.Text); } catch { MessageBox.Show("您输入的切割顺序号不对,应该输入数字,\r\n且要注意输入法采用半角。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); return; } if (nCutSequence != nSelCutNo) { //检查是否有两个相同的切割顺序 if (CheckDuplicatRec(nCutSequence)) { MessageBox.Show("您在同一路中设置了两个相同的切割顺序,这将导致记录重复,操作失败!!!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); return; } } string strLastFlag = ugr.Cells["LASTBILLETFLAG"].Value.ToString(); //if( comboBox6.Text == "是" ) nLastBlock = nLastBlock + 1; int nMaxCutNo = 0; string strHeatNo = ugr.Cells["HEATNO"].Value.ToString(); string strCastNo = ugr.Cells["MOULDNO"].Value.ToString(); for (int j = 0; j < this.ultraGrid1.Rows.Count; j++) { UltraGridRow ugrf = this.ultraGrid1.Rows[j]; if (strCastNo == ugrf.Cells["MOULDNO"].Value.ToString()) { if (strHeatNo == ugrf.Cells["HEATNO"].Value.ToString()) { int nTempCutNo = Convert.ToInt32(ugrf.Cells["CUTSEQNO"].Value); if (nTempCutNo > nMaxCutNo) nMaxCutNo = nTempCutNo; } } } string strMsg = "本浇注位是" + CCMN0 + ":" + Environment.NewLine + "修改数据禁用,请将最后一块的‘是’改为‘否’后再修改数据!!"; int nLastBlock = CheckLastBlockCount();//如果是最后一块,需要检查是否多置了标志 if (nLastBlock >= 1) { bool bShowMsg = true; if (nSelCutNo == nMaxCutNo) { if (strLastFlag == "N" && comboBox6.Text.Trim() == "是") { bShowMsg = false; } else if (strLastFlag == "Y" && comboBox6.Text.Trim() == "否") { bShowMsg = false; } else { bShowMsg = true; } } if (bShowMsg) { MessageBox.Show(strMsg, "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); return; } } if (strLastFlag == "N" && comboBox6.Text.Trim() == "是") { if (nSelCutNo != nMaxCutNo) { MessageBox.Show("请在最后一行置为'是'", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); return; } } try { //hengxing //CallingMessage par = new CallingMessage(); //par.ServerName = "lgJobMgt"; //par.AssemblyName = "Core.LgMes.Server.lgJobMgt"; //par.ClassName = "Core.LgMes.Server.lgJobMgt.classCutJob"; //par.MethodName = "UpdateCutBilletEx"; //par.args = new object[] { ar }; string strOut = ""; object obj = null; // ClientCommon._RemotingHelp.ExecuteMethod(par, out strOut); if (Convert.ToInt32(obj) < 1) { MessageBox.Show("数据提交失败!\n" + strOut); } else { //this.ultraGrid1.UpdateData(); Query(); if (ultraGrid1.Rows.Count > 0) ultraGrid1.Rows[ultraGrid1.Rows.Count - 1].Activated = true; //if (i == this.ultraGrid1.Rows.Count - 1) //{ // ugr.Activated = true; // ugr.Selected = true; //} //else //{ // ugr.Activated = false; // ugr.Selected = false; //} } } catch (Exception ex) { MessageBox.Show(ex.Message); return; } } private void Exit() { this.Close(); } public void Query() { LastUpdateTime = DateTime.Now; this.GetSqlWhere(); this.GetData(); } //切换到手动匹配模式 private bool bHandleCoup = false; private void Plan() { if (bHandleCoup) { bHandleCoup = false; } else { bHandleCoup = true; if (_dsMid != null && _dsMid.Tables.Count > 0) { _dsMid.Tables[0].Rows.Clear(); this.ultraGrid1.DataSource = _dsMid.Tables[0]; ultraGrid1.DataBind(); ultraGrid1.Refresh(); } } //上次开始的计时更新时间(开始用到) LastUpdateTime = DateTime.Now; strOldBlockNo = ""; strOldCastNo = ""; //将两个grid利用FixRow分开 SplitTwoGrid(); //装载两个对应关系的数据 RalationUIChange(); } //将两个grid利用FixRow分开 private void SplitTwoGrid() { //if( bHandleCoup ) //{ // this.ultraGrid1.DisplayLayout.Override.FixedRowsLimit = 5; // this.ultraGrid1.DisplayLayout.Override.FixedRowStyle = FixedRowStyle.Top; // this.ultraGrid1.DisplayLayout.Override.FixedRowIndicator = FixedRowIndicator.Button; // this.ultraGrid1.DisplayLayout.Override.SpecialRowSeparator = SpecialRowSeparator.FixedRows; // this.ultraGrid1.DisplayLayout.Override.SpecialRowSeparatorHeight = 4; //} //else //{ this.ultraGrid1.DisplayLayout.Override.FixedRowsLimit = -1; this.ultraGrid1.DisplayLayout.Override.FixedRowStyle = FixedRowStyle.Default; this.ultraGrid1.DisplayLayout.Override.FixedRowIndicator = FixedRowIndicator.Default; this.ultraGrid1.DisplayLayout.Override.SpecialRowSeparator = SpecialRowSeparator.Default; this.ultraGrid1.DisplayLayout.Override.SpecialRowSeparatorHeight = -1; //} } //装载两个对应关系的数据 private void RalationUIChange() { if (bHandleCoup) { //ultraToolbarsManager1.Toolbars[0].Tools[5].SharedProps.Caption = "关联察看"; } else { // ultraToolbarsManager1.Toolbars[0].Tools[5].SharedProps.Caption = "单独查询"; } } private ArrayList GetCurrValue() { ArrayList ar = new ArrayList(); try { ar.Add(this.textBox2.Text.Trim()); ar.Add(this.textBox4.Text.Trim()); ar.Add(this.comboBox2.SelectedIndex); ar.Add(this.comboBox5.SelectedIndex); ar.Add(this.textBox5.Text.Trim()); ar.Add(this.textBox8.Text.Trim()); ar.Add(GetSingle(this.textBox6.Text.Trim())); ar.Add(GetSingle(this.textBox7.Text.Trim())); ar.Add(GetSingle(this.textBox3.Text.Trim())); ar.Add(GetSingle(this.textBox9.Text.Trim())); ar.Add(GetSingle(this.textBox10.Text.Trim())); ar.Add(GetSingle(this.textBox11.Text.Trim())); ar.Add(GetSingle(this.textBox12.Text.Trim())); ar.Add(this.dateTimePicker5.Value.ToString());//.ToString("yyyy-MM-dd HH:mm:ss") ar.Add(this.comboBox3.SelectedIndex); if (this.comboBox6.SelectedIndex == -1) ar.Add("N"); else ar.Add(this.comboBox6.SelectedIndex); ar.Add(this.textBox13.Text.Trim()); ar.Add(this.textBox14.Text.Trim()); ar.Add(this.UserInfo.GetUserName()); //add on 2009-04-23 记录操作人员 ar.Add(strV_Heat_ID); ar.Add(strV_BilletID); ar.Add(strOrderNO); ar.Add(strProdOrderNO); ar.Add(strSurplusFlag); ar.Add(strSteelCode); ar.Add(strProductline); ar.Add(strStandardsCode); ar.Add(strStandardRemak); ar.Add(strCustomer_Key); return ar; } catch { return null; } } private object GetSingle(string str) { if (str == "") return "null"; else return Convert.ToSingle(str); } #endregion private void checkBox1_CheckedChanged(object sender, System.EventArgs e) { this.dateTimePicker3.Enabled = this.checkBox1.Checked; this.dateTimePicker4.Enabled = this.checkBox1.Checked; } private void checkBox2_CheckedChanged(object sender, System.EventArgs e) { if (this.checkBox2.Checked) { this.textBox1.Enabled = true; this.textBox1.BackColor = Color.White; } else { this.textBox1.Enabled = false; this.textBox1.BackColor = Color.Gainsboro; } } private void checkBox3_CheckedChanged(object sender, System.EventArgs e) { if (this.checkBox3.Checked) { if (_DEVICE_POS == -1) this.comboBox4.Enabled = true; this.comboBox4.BackColor = Color.White; } else { if (_DEVICE_POS == -1) this.comboBox4.Enabled = false; this.comboBox4.BackColor = Color.Gainsboro; } } private void textBox5_TextChanged(object sender, System.EventArgs e) { try { this.textBox13.Text = ""; if (this.textBox5.Text.Trim().Length == 0) return; if (this.textBox2.Text.Trim().Length == 0 && blText == false) { MessageBox.Show("请先输入熔炼号!"); return; } else { string strHID = this.textBox2.Text.Trim(); strHID = strHID.ToUpper(); if (!IsValidOfHeatNo(strHID)) return; this.textBox2.Text = strHID.ToUpper(); } int cutno = Convert.ToInt32(this.textBox5.Text.Trim()); string heatno = this.textBox1.Text.Trim(); string strCutNo = ""; strCutNo = cutno.ToString(); if (strCutNo.Length == 1) strCutNo = "0" + strCutNo; if (strCutNo.Length == 3) { int nNum = cutno; if (nNum >= 100 && nNum < 110) strCutNo = "A" + strCutNo.Substring(2, 1); if (nNum >= 110 && nNum < 120) strCutNo = "B" + strCutNo.Substring(2, 1); if (nNum >= 120 && nNum < 130) strCutNo = "C" + strCutNo.Substring(2, 1); if (nNum >= 130 && nNum < 140) strCutNo = "D" + strCutNo.Substring(2, 1); if (nNum >= 140 && nNum < 150) strCutNo = "E" + strCutNo.Substring(2, 1); if (nNum >= 150 && nNum < 160) strCutNo = "F" + strCutNo.Substring(2, 1); if (nNum >= 160 && nNum < 170) strCutNo = "G" + strCutNo.Substring(2, 1); if (nNum >= 170 && nNum < 180) strCutNo = "H" + strCutNo.Substring(2, 1); if (nNum >= 180 && nNum < 190) strCutNo = "J" + strCutNo.Substring(2, 1); } if (strCutNo.Length >= 3 && cutno >= 190) { MessageBox.Show("请先切割序号过大!!!,最大不能超过190"); this.textBox5.Text = ""; return; } if (heatno.Trim().Length > 0) this.textBox13.Text = heatno.Substring(1) + strCutNo; blText = false; } catch { } } /// /// 长度属性更改事件 /// /// /// private void textBox3_TextChanged(object sender, System.EventArgs e) { try { float a = Convert.ToSingle(this.textBox3.Text.Trim()); float b = Convert.ToSingle(this.textBox9.Text.Trim()); float c = Convert.ToSingle(this.textBox10.Text.Trim()); this.textBox11.Text = Convert.ToString(Math.Round(a * b * c * 7.82 / 1000000000, 3)); } catch { } } private void SetFixRow(string strBlockNo) { ultraGrid1.Rows.FixedRows.Clear(); //解决因交换顺序而导致的辨别不清 foreach (Infragistics.Win.UltraWinGrid.UltraGridRow row in ultraGrid1.Rows) { row.Fixed = false; //都去掉选项标记 } //遍历Grid,设定固定行单独标记出来 foreach (Infragistics.Win.UltraWinGrid.UltraGridRow row in ultraGrid1.Rows) { string strTargeBlockNo = row.Cells[18].Value.ToString(); if (strTargeBlockNo == "") { continue; } else { if (strTargeBlockNo == strBlockNo) { row.Fixed = true; } } } ultraGrid1.Rows[0].Activated = true; } //将数据清除提交给数据后台组件 private void HandleSetClear(string strHeatID, int nBegin,int nEnd) { //提交到后台 try { string strOut = ""; //hengxing //CallingMessage par = new CallingMessage(); //par.ServerName = "lgJobMgt"; //par.AssemblyName = "Core.LgMes.Server.lgJobMgt"; //par.ClassName = "Core.LgMes.Server.lgJobMgt.classCutJob"; //par.MethodName = "ClearCutSeqence"; //par.args = new object[] { strHeatID, nBegin, nEnd }; object obj = null; // ClientCommon._RemotingHelp.ExecuteMethod(par, out strOut); if (Convert.ToInt32(obj) < 1) { MessageBox.Show("数据提交失败!\n" + strOut); } else { Query(); } } catch (Exception ex) { MessageBox.Show(ex.Message); return; } } //回调函数 private void PlanBlockChange(string strCastNo, string strBlockNo) { //如果没有挂接处理函数 if (!bHandleCoup) return; //判断是否将浇次号进行了改变 if (strCastNo != strOldCastNo) { strOldCastNo = strCastNo; this.checkBox1.Checked = false; this.dateTimePicker3.Enabled = false; this.dateTimePicker4.Enabled = false; this.checkBox1.Checked = false; this.checkBox2.Checked = true; this.checkBox3.Checked = false; this.textBox1.Enabled = true; this.textBox1.Text = strCastNo; this.textBox2.Text = ""; this.textBox3.Text = ""; this.textBox4.Text = ""; this.textBox5.Text = ""; this.textBox6.Text = ""; this.textBox7.Text = ""; this.textBox8.Text = ""; this.textBox9.Text = ""; this.textBox10.Text = ""; this.textBox11.Text = ""; this.textBox12.Text = ""; this.textBox13.Text = ""; this.textBox14.Text = ""; this.textBox15.Text = ""; //查询列出浇次所有的切割块 if (_dsMid != null) _dsMid.Tables.Clear(); Query(); } if (strBlockNo != strOldBlockNo) { //将选中的匹配情况列出到FixRow中 strOldBlockNo = strBlockNo; //将匹配数据设定为固定的行 SetFixRow(strBlockNo); } } //手工更改的块号,子块号 private void ultraGrid1_BeforeRowUpdate(object sender, Infragistics.Win.UltraWinGrid.CancelableRowEventArgs e) { LastUpdateTime = DateTime.Now; string strLastBlock = e.Row.Cells["LASTBILLETFLAG"].Value.ToString().Trim(); string strBlockNo = e.Row.Cells[18].Value.ToString().Trim(); string strChildNo = e.Row.Cells[19].Value.ToString().Trim(); string strRecNo = e.Row.Cells[20].Value.ToString().Trim(); if (!UpdateSingleRow(strBlockNo, strChildNo, strLastBlock, strRecNo)) { MessageBox.Show("数据更新失败,无法完成更新,请重试!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); e.Cancel = true; } } private void ultraGrid1_BeforeRowFixedStateChanged(object sender, Infragistics.Win.UltraWinGrid.BeforeRowFixedStateChangedEventArgs e) { //手动指定为固定行(即计划匹配行) string strAffectRow = e.Row.Cells[0].Value.ToString(); string strCutTime = e.Row.Cells[13].Value.ToString(); int nChildBlockNo = 0; int nFixRows = ultraGrid1.Rows.FixedRows.Count; if (nFixRows > 0) { nChildBlockNo = ultraGrid1.Rows.FixedRows.Count + 1; } else { nChildBlockNo = 0; } if (!e.Row.Fixed) { //更新数据库 if (UpdateHandlePoint(strOldCastNo, strOldBlockNo, strAffectRow, strCutTime, nChildBlockNo)) { int nAfterAddRows = ultraGrid1.Rows.FixedRows.Count + 1; //更新Grid e.Row.Cells[16].Value = "是"; e.Row.Cells[17].Value = "是"; e.Row.Cells[18].Value = strOldBlockNo; e.Row.Cells[19].Value = nAfterAddRows;//子块号 //同时需要将原来的子块号给添上 if (nAfterAddRows == 2) { ultraGrid1.Rows.FixedRows[0].Cells[19].Value = 1; } } else { e.Cancel = true; } } else { //或者取消指定 //如果数据个数只剩下1个,则需要将剩下的那个的子块号清空调 int nFixRow = ultraGrid1.Rows.FixedRows.Count; if (nFixRow == 2) { if (CancelHandlePointEx(strOldCastNo, strOldBlockNo, strAffectRow, strCutTime, nChildBlockNo)) { //更新Grid e.Row.Cells[16].Value = "否"; e.Row.Cells[17].Value = "是"; e.Row.Cells[18].Value = ""; e.Row.Cells[19].Value = DBNull.Value;//子块号 //取到第一行 ultraGrid1.Rows.FixedRows[0].Cells[19].Value = DBNull.Value; } else { e.Cancel = true; } } else { if (CancelHandlePoint(strOldCastNo, strOldBlockNo, strAffectRow, strCutTime, nChildBlockNo)) { //更新Grid e.Row.Cells[16].Value = "否"; e.Row.Cells[17].Value = "是"; e.Row.Cells[18].Value = ""; e.Row.Cells[19].Value = DBNull.Value;//子块号 } else { e.Cancel = true; } } } } private bool UpdateHandlePoint(string strCastNo, string strBlockNo,string strAffectRow,string strCutTime,int nChildBlockNo) { try { //hengxing //CallingMessage par = new CallingMessage(); //par.ServerName = "lgJobMgt"; //par.AssemblyName = "Core.LgMes.Server.lgJobMgt"; //par.ClassName = "Core.LgMes.Server.lgJobMgt.classCutJob"; //par.MethodName = "UpdateHandlePoint"; //CancelHandlePoint //par.args = new object[] { strCastNo, strBlockNo, strAffectRow, strCutTime, nChildBlockNo }; string strOut = ""; object obj = null; // ClientCommon._RemotingHelp.ExecuteMethod(par, out strOut); if (Convert.ToInt32(obj) < 1) { MessageBox.Show("数据更新失败!\n" + strOut); return false; } } catch { return false; } return true; } //取消选择 private bool CancelHandlePointEx(string strCastNo, string strBlockNo,string strAffectRow,string strCutTime,int nChildBlockNo) { try { //hengxing //CallingMessage par = new CallingMessage(); //par.ServerName = "lgJobMgt"; //par.AssemblyName = "Core.LgMes.Server.lgJobMgt"; //par.ClassName = "Core.LgMes.Server.lgJobMgt.classCutJob"; //par.MethodName = "CancelHandlePointEx"; //par.args = new object[] { strCastNo, strBlockNo, strAffectRow, strCutTime, nChildBlockNo }; string strOut = ""; object obj = null; // ClientCommon._RemotingHelp.ExecuteMethod(par, out strOut); if (Convert.ToInt32(obj) < 1) { MessageBox.Show("数据更新失败!\n" + strOut); return false; } } catch { return false; } return true; } private bool CancelHandlePoint(string strCastNo, string strBlockNo,string strAffectRow,string strCutTime,int nChildBlockNo) { try { //CallingMessage par = new CallingMessage(); //par.ServerName = "lgJobMgt"; //par.AssemblyName = "Core.LgMes.Server.lgJobMgt"; //par.ClassName = "Core.LgMes.Server.lgJobMgt.classCutJob"; //par.MethodName = "CancelHandlePoint"; //par.args = new object[] { strCastNo, strBlockNo, strAffectRow, strCutTime, nChildBlockNo }; string strOut = ""; object obj = null;// ClientCommon._RemotingHelp.ExecuteMethod(par, out strOut); if (Convert.ToInt32(obj) < 1) { MessageBox.Show("数据更新失败!\n" + strOut); return false; } } catch { return false; } return true; } private bool UpdateSingleRow(string strBlockNo, string strChildNo,string strLastBlock,string strRecNo) { bool bLastBlock = false; if (strLastBlock.Length > 0 && strLastBlock == "Y") bLastBlock = true; try { //hengxing //CallingMessage par = new CallingMessage(); //par.ServerName = "lgJobMgt"; //par.AssemblyName = "Core.LgMes.Server.lgJobMgt"; //par.ClassName = "Core.LgMes.Server.lgJobMgt.classCutJob"; //par.MethodName = "UpdateSingleRow"; //par.args = new object[] { strBlockNo, strChildNo, bLastBlock, strRecNo }; string strOut = ""; object obj = null;// ClientCommon._RemotingHelp.ExecuteMethod(par, out strOut); if (Convert.ToInt32(obj) < 1) { MessageBox.Show("数据更新失败!\n" + strOut); return false; } } catch { return false; } return true; } private void SendCommdForLadleWeight() { string strDevNo = CCMN0.Substring(0, 1); string strPosition = ""; if (Convert.ToString(this.textBox16.Tag) == "") return; strPosition = string.Format("CCM0{0}_DEVICE", strDevNo); this._commClass.setHeatID(Convert.ToString(this.textBox16.Tag)); this._commClass.setProcValueCommand(strPosition, "JOB_CCM_OPTINFO", "PFBALEWGT", "FLTTYPE", this.textBox17.Text); this._commClass.setProcValueCommand(strPosition, "JOB_CCM_OPTINFO", "MOULDBALEWGT", "FLTTYPE", this.textBox18.Text); SendCommResetBilletNum(); } private void button1_Click(object sender, System.EventArgs e) { SendCommdForLadleWeight(); } public void SendCommResetBilletNum() { string strHeatNo = ""; float fltFirstWeight = 0; float fltMouldWeight = 0; strHeatNo = Convert.ToString(this.textBox16.Tag); fltFirstWeight = Convert.ToSingle(this.textBox17.Text); fltMouldWeight = Convert.ToSingle(this.textBox18.Text); //hengxing //CallingMessage par = new CallingMessage(); //par.ServerName = "lgJobMgt"; //par.AssemblyName = "Core.LgMes.Server.lgJobMgt"; //par.ClassName = "Core.LgMes.Server.lgJobMgt.classCutJob"; //par.MethodName = "ResetBilletNum"; //par.args = new object[] { strHeatNo, fltFirstWeight, fltMouldWeight }; string strOut = ""; object obj = null;// ClientCommon._RemotingHelp.ExecuteMethod(par, out strOut); if (strOut != "") { MessageBox.Show("数据更新失败! " + strOut); } } public void GetCutPromptFromServer() { try { string strDevNo = CCMN0.Substring(0, 1); int nDevNo = Convert.ToInt16(strDevNo); if (nDevNo == 0) nDevNo = 4; //hengxing //CallingMessage par = new CallingMessage(); //par.ServerName = "lgJobMgt"; //par.AssemblyName = "Core.LgMes.Server.lgJobMgt"; //par.ClassName = "Core.LgMes.Server.lgJobMgt.classCutJob"; //par.MethodName = "GetCuttinPrompt"; //par.args = new object[] { nDevNo }; string strOut = ""; object obj = null;// ClientCommon._RemotingHelp.ExecuteMethod(par, out strOut); if (strOut == "") { cutHash = (Hashtable)obj; } else { cutHash.Clear(); } } catch (Exception ee) { Console.WriteLine(ee.Message); cutHash.Clear(); } } public void RefreshCutPrompt() { this.textBox16.Tag = ""; this.textBox16.Text = ""; this.textBox17.Text = ""; this.textBox18.Text = ""; this.textBox19.Text = ""; this.textBox20.Text = ""; this.textBox21.Text = ""; this.textBox22.Text = ""; this.textBox23.Text = ""; this.textBox24.Text = ""; this.textBox25.Text = ""; this.txt_heatidnoy.Text = ""; if (cutHash.Count < 6) return; string strHeatNo = cutHash[0].ToString(); if (strHeatNo == "") return; //this.textBox16.Tag = strHeatNo; this.textBox16.Text = strHeatNo.Substring(5); this.textBox17.Text = cutHash[1].ToString(); this.textBox18.Text = cutHash[2].ToString(); this.textBox19.Text = cutHash[3].ToString(); this.textBox20.Text = cutHash[4].ToString(); this.textBox21.Text = cutHash[5].ToString(); this.textBox22.Text = cutHash[6].ToString(); this.textBox23.Text = cutHash[7].ToString(); this.txt_heatidnoy.Text = cutHash[8].ToString(); this.textBox24.Text = cutHash[9].ToString(); this.textBox25.Text = cutHash[10].ToString(); } public void TimerRefresh() { LastUpdateTime = DateTime.Now; this.GetSqlWhere(); this.RefreshTable(); } private void RefreshTable() { //将Grid的左侧移动到开始位置 Infragistics.Win.UltraWinGrid.Scrollbars scrollbars = this.ultraGrid1.DisplayLayout.Scrollbars; if (scrollbars == Infragistics.Win.UltraWinGrid.Scrollbars.Automatic || scrollbars == Infragistics.Win.UltraWinGrid.Scrollbars.Both || scrollbars == Infragistics.Win.UltraWinGrid.Scrollbars.Vertical) { this.ultraGrid1.DisplayLayout.ColScrollRegions[0].Position = 0; //RowScrollRegions[0].ScrollPosition = 0; //Infragistics.Win.UltraWinGrid.Scrollbar scroll = this.ultraGrid1.DisplayLayout.ColScrollRegions[0].ScrollPosition = 0; } try { //hengxing //CallingMessage par = new CallingMessage(); //par.ServerName = "lgJobMgt"; //par.AssemblyName = "Core.LgMes.Server.lgJobMgt"; //par.ClassName = "Core.LgMes.Server.lgJobMgt.classCutJob"; //par.MethodName = "GetCutBillet"; //par.args = new object[] { _strWhere + " order by cuttime asc,ccmid asc, HEATNO desc " }; string strOut = ""; this.ultraGrid1.BeginUpdate(); //避免重画 if (_dsMid != null && _dsMid.Tables.Count > 0) { if (_dsMid != null && _dsMid.Tables.Count > 0) _dsMid.Tables[0].Rows.Clear(); } DataSet dsTemp = null;// ClientCommon._RemotingHelp.ExecuteMethod(par, out strOut) as DataSet; if (dsTemp.Tables[0].Rows.Count > 0) { _dsMid = dsTemp; this.ultraGrid1.DataSource = _dsMid.Tables[0]; //foreach (DataRow dr in dsTemp.Tables[0].Rows) //{ // object[] rowObjArr = dr.ItemArray; // _dsMid.Tables[0].Rows.Add(rowObjArr); //} //_dsMid.AcceptChanges(); //_dsMid = dsTemp.Copy(); } dsTemp.Dispose(); //准许重画 this.ultraGrid1.EndUpdate(); string strOld = ""; string strNew = ""; string strOld_Order = ""; string strNew_Order = ""; Color c1 = Color.GhostWhite;//Color.White; Color c2 = Color.MintCream;//Color.GhostWhite;//Color.LightCyan; Color c3 = c1; Color color_OrderNo1 = Color.Blue; Color color_OrderNo2 = Color.Black; Color color_OrderNo3 = color_OrderNo1; //同时定位到最后一行 for (int i = 0; i < this.ultraGrid1.Rows.Count; i++) { UltraGridRow ugr = this.ultraGrid1.Rows[i]; strNew = ugr.Cells["HEATNO"].Value.ToString(); if (i == this.ultraGrid1.Rows.Count - 1) { ugr.Activated = true; ugr.Selected = true; } else { ugr.Activated = false; ugr.Selected = false; } if (strOld != strNew) { if (c3 == c1) c3 = c2; else c3 = c1; strOld = strNew; } ugr.Appearance.BackColor = c3; if (strOld_Order != strNew_Order) { if (color_OrderNo3 == color_OrderNo1) color_OrderNo3 = color_OrderNo2; else color_OrderNo3 = color_OrderNo1; strOld_Order = strNew_Order; } ugr.Appearance.ForeColor = color_OrderNo3; } } catch (Exception ex) { string strMsg = ex.Message; } } private void SetDataThread() { ReStartSetDataThread: while (true) { if (!this.On_Off_Thread)// { System.Threading.Thread.Sleep(500); continue; } if (bExit) return; //在数据处于定时刷新 if (bHandleCoup) { //如果更新超过一定的时间长度(半分钟内),即组织刷新 TimeSpan timespan = DateTime.Now - LastUpdateTime; if (timespan.TotalSeconds > 30) { LastUpdateTime = DateTime.Now; try { //刷新右边的数据 this.Invoke(new CallRefreshThreadDelegate(TimerRefresh)); } catch { } } if (DateTime.Now.Second % 2 == 0) { GetCutPromptFromServer(); //this.Invoke(new CallRefreshThreadDelegate(GetCutPromptFromServer)); Thread.Sleep(300); } if (DateTime.Now.Second % 3 == 1) { //RefreshCutPrompt(); this.Invoke(new CallRefreshThreadDelegate(RefreshCutPrompt)); } } for (int j = 0; j < 3; j++) { Thread.Sleep(1000); if (bExit) return; } } goto ReStartSetDataThread; } #region IDisposable 成员 void System.IDisposable.Dispose() { //要求线程推出 bExit = true; } #endregion private void btn_setheatid_Click(object sender, System.EventArgs e) { string strDevNo = CCMN0.Substring(0, 1); if(strDevNo=="0") strDevNo="4"; FrmSetHeatid setheatCcmFrm; //heatID=heatID.Substring(0,13); //this.commClass.setHeatID(heatID); setheatCcmFrm = new FrmSetHeatid(ob); setheatCcmFrm.Location = GetChildWindowLocation(setheatCcmFrm.Size); setheatCcmFrm.Ccmno = strDevNo; setheatCcmFrm.Heatno = textBox16.Text; // functionCcmFrm.strSme = this.getSmeltingID(heatID); setheatCcmFrm.ShowDialog(); } private Point GetChildWindowLocation(Size ChildWindowSize) { int width = Cursor.Position.X + ChildWindowSize.Width - Screen.PrimaryScreen.Bounds.Width; int height = Cursor.Position.Y + ChildWindowSize.Height - Screen.PrimaryScreen.Bounds.Height; if (width > 0) width = Cursor.Position.X - width; else width = Cursor.Position.X; if (height > 0) height = Cursor.Position.Y - height - 50; else height = Cursor.Position.Y - 50; return new Point(width, height); } private void textBox18_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { SendCommdForLadleWeight(); } } private void textBox17_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { SendCommdForLadleWeight(); } } private void panel2_Paint(object sender, System.Windows.Forms.PaintEventArgs e) { } /// /// 统计产量 /// private void SetSteelSum() { UltraGridBand band = this.ultraGrid1.DisplayLayout.Bands[0]; band.Summaries.Clear(); SummarySettings summary = band.Summaries.Add(SummaryType.Count, band.Columns[0]); summary.SummaryPosition = SummaryPosition.UseSummaryPositionColumn; summary.DisplayFormat = "合计:"; summary = band.Summaries.Add(SummaryType.Sum, band.Columns[11]); summary.SummaryPosition = SummaryPosition.UseSummaryPositionColumn; summary.DisplayFormat = " {0:#####.00}"; summary.Appearance.TextHAlign = Infragistics.Win.HAlign.Center; summary.Appearance.ForeColor = Color.DarkBlue; summary.Appearance.BackColor = Color.White; band.Override.SummaryFooterCaptionVisible = Infragistics.Win.DefaultableBoolean.False; } #region 调度切割 /// /// 创建对应表 /// private void createTable() { try { //炼钢指示表 DataColumn myDataColumn = new DataColumn(); myDataColumn = new DataColumn(); myDataColumn.DataType = System.Type.GetType("System.String"); myDataColumn.ColumnName = "HEATNO"; myDataColumn.Caption = "炉号"; steelSchTable.Columns.Add(myDataColumn); myDataColumn = new DataColumn(); myDataColumn.DataType = System.Type.GetType("System.String"); myDataColumn.ColumnName = "AIM_GRADE_CODE"; myDataColumn.Caption = "目标钢号"; steelSchTable.Columns.Add(myDataColumn); myDataColumn = new DataColumn(); myDataColumn.DataType = System.Type.GetType("System.String"); myDataColumn.ColumnName = "CAST_ID"; myDataColumn.Caption = "铸机"; steelSchTable.Columns.Add(myDataColumn); myDataColumn = new DataColumn(); myDataColumn.DataType = System.Type.GetType("System.String"); myDataColumn.ColumnName = "CAST_NO"; myDataColumn.Caption = "浇次号"; steelSchTable.Columns.Add(myDataColumn); myDataColumn = new DataColumn(); myDataColumn.DataType = System.Type.GetType("System.String"); myDataColumn.ColumnName = "HEAT_NUM"; myDataColumn.Caption = "炉数"; steelSchTable.Columns.Add(myDataColumn); myDataColumn = new DataColumn(); myDataColumn.DataType = System.Type.GetType("System.String"); myDataColumn.ColumnName = "CAST_SEQ"; myDataColumn.Caption = "顺序"; steelSchTable.Columns.Add(myDataColumn); myDataColumn = new DataColumn(); myDataColumn.DataType = System.Type.GetType("System.String"); myDataColumn.ColumnName = "PLAN_ROUTE"; myDataColumn.Caption = "工艺路径"; steelSchTable.Columns.Add(myDataColumn); myDataColumn = new DataColumn(); myDataColumn.DataType = System.Type.GetType("System.String"); myDataColumn.ColumnName = "BILLETQTY"; myDataColumn.Caption = "方坯数"; steelSchTable.Columns.Add(myDataColumn); //myDataColumn = new DataColumn(); //myDataColumn.DataType = System.Type.GetType("System.String"); //myDataColumn.ColumnName = "AIM_S"; //myDataColumn.Caption = "目标含硫量"; //steelSchTable.Columns.Add(myDataColumn); myDataColumn = new DataColumn(); myDataColumn.DataType = System.Type.GetType("System.String"); myDataColumn.ColumnName = "PLAN_IRON_QTY"; myDataColumn.Caption = "计划铁水量"; steelSchTable.Columns.Add(myDataColumn); //myDataColumn = new DataColumn(); //myDataColumn.DataType = System.Type.GetType("System.String"); //myDataColumn.ColumnName = "AIM_MIF_STR_TIME"; //myDataColumn.Caption = "计划出铁开始时刻"; //steelSchTable.Columns.Add(myDataColumn); //myDataColumn = new DataColumn(); //myDataColumn.DataType = System.Type.GetType("System.String"); //myDataColumn.ColumnName = "AIM_MIF_END_TIME"; //myDataColumn.Caption = "计划出铁结束时刻"; //steelSchTable.Columns.Add(myDataColumn); myDataColumn = new DataColumn(); myDataColumn.DataType = System.Type.GetType("System.String"); myDataColumn.ColumnName = "PLAN_HMP_STR_TIME"; myDataColumn.Caption = "计划脱硫开始时刻"; steelSchTable.Columns.Add(myDataColumn); myDataColumn = new DataColumn(); myDataColumn.DataType = System.Type.GetType("System.String"); myDataColumn.ColumnName = "PLAN_HMP_END_TIME"; myDataColumn.Caption = "计划脱硫结束时刻"; steelSchTable.Columns.Add(myDataColumn); //myDataColumn = new DataColumn(); //myDataColumn.DataType = System.Type.GetType("System.String"); //myDataColumn.ColumnName = "AIM_HM_STR_TIME"; //myDataColumn.Caption = "计划装料开始时刻"; //steelSchTable.Columns.Add(myDataColumn); myDataColumn = new DataColumn(); myDataColumn.DataType = System.Type.GetType("System.String"); myDataColumn.ColumnName = "PLAN_BOF_STR_TIME"; myDataColumn.Caption = "计划吹炼开始时刻"; steelSchTable.Columns.Add(myDataColumn); myDataColumn = new DataColumn(); myDataColumn.DataType = System.Type.GetType("System.String"); myDataColumn.ColumnName = "PLAN_BOF_END_TIME"; myDataColumn.Caption = "计划吹炼结束时刻"; steelSchTable.Columns.Add(myDataColumn); //myDataColumn = new DataColumn(); //myDataColumn.DataType = System.Type.GetType("System.String"); //myDataColumn.ColumnName = "AIM_TAP_END_TIME"; //myDataColumn.Caption = "计划出钢结束时刻"; //steelSchTable.Columns.Add(myDataColumn); myDataColumn = new DataColumn(); myDataColumn.DataType = System.Type.GetType("System.String"); myDataColumn.ColumnName = "AIM_STEEL_QTY"; myDataColumn.Caption = "目标出钢量"; steelSchTable.Columns.Add(myDataColumn); //myDataColumn = new DataColumn(); //myDataColumn.DataType = System.Type.GetType("System.String"); //myDataColumn.ColumnName = "AIM_STEEL_QTY"; //myDataColumn.Caption = "出钢目标温度"; //steelSchTable.Columns.Add(myDataColumn); myDataColumn = new DataColumn(); myDataColumn.DataType = System.Type.GetType("System.String"); myDataColumn.ColumnName = "PLAN_AR_STR_TIME"; myDataColumn.Caption = "计划AR开始时刻"; steelSchTable.Columns.Add(myDataColumn); myDataColumn = new DataColumn(); myDataColumn.DataType = System.Type.GetType("System.String"); myDataColumn.ColumnName = "PLAN_AR_END_TIME"; myDataColumn.Caption = "计划AR结束时刻"; steelSchTable.Columns.Add(myDataColumn); //myDataColumn = new DataColumn(); //myDataColumn.DataType = System.Type.GetType("System.String"); //myDataColumn.ColumnName = "AIM_AR_TEMP"; //myDataColumn.Caption = "AR目标温度"; //steelSchTable.Columns.Add(myDataColumn); myDataColumn = new DataColumn(); myDataColumn.DataType = System.Type.GetType("System.String"); myDataColumn.ColumnName = "PLAN_LF_STR_TIME"; myDataColumn.Caption = "计划LF开始时刻"; steelSchTable.Columns.Add(myDataColumn); myDataColumn = new DataColumn(); myDataColumn.DataType = System.Type.GetType("System.String"); myDataColumn.ColumnName = "PLAN_LF_END_TIME"; myDataColumn.Caption = "计划LF结束时刻"; steelSchTable.Columns.Add(myDataColumn); //myDataColumn = new DataColumn(); //myDataColumn.DataType = System.Type.GetType("System.String"); //myDataColumn.ColumnName = "AIM_LF_TEMP"; //myDataColumn.Caption = "LF目标温度"; //steelSchTable.Columns.Add(myDataColumn); myDataColumn = new DataColumn(); myDataColumn.DataType = System.Type.GetType("System.String"); myDataColumn.ColumnName = "PLAN_RH_STR_TIME"; myDataColumn.Caption = "计划RH开始时刻"; steelSchTable.Columns.Add(myDataColumn); myDataColumn = new DataColumn(); myDataColumn.DataType = System.Type.GetType("System.String"); myDataColumn.ColumnName = "PLAN_RH_ENT_TIME"; myDataColumn.Caption = "计划RH结束时刻"; steelSchTable.Columns.Add(myDataColumn); //myDataColumn = new DataColumn(); //myDataColumn.DataType = System.Type.GetType("System.String"); //myDataColumn.ColumnName = "AIM_VD_TEMP"; //myDataColumn.Caption = "RH目标温度"; //steelSchTable.Columns.Add(myDataColumn); myDataColumn = new DataColumn(); myDataColumn.DataType = System.Type.GetType("System.String"); myDataColumn.ColumnName = "PLAN_CCM_STR_TIME"; myDataColumn.Caption = "计划浇注开始时刻"; steelSchTable.Columns.Add(myDataColumn); myDataColumn = new DataColumn(); myDataColumn.DataType = System.Type.GetType("System.String"); myDataColumn.ColumnName = "PLAN_CCM_END_TIME"; myDataColumn.Caption = "计划浇注结束时刻"; steelSchTable.Columns.Add(myDataColumn); //myDataColumn = new DataColumn(); //myDataColumn.DataType = System.Type.GetType("System.String"); //myDataColumn.ColumnName = "AIM_TD_TEMP"; //myDataColumn.Caption = "浇注温度"; //steelSchTable.Columns.Add(myDataColumn); myDataColumn = new DataColumn(); myDataColumn.DataType = System.Type.GetType("System.String"); myDataColumn.ColumnName = "HEAT_STATE"; myDataColumn.Caption = "生产状态"; steelSchTable.Columns.Add(myDataColumn); myDataColumn = new DataColumn(); myDataColumn.DataType = System.Type.GetType("System.String"); myDataColumn.ColumnName = "v_heat_ID"; myDataColumn.Caption = "虚拟炉号"; steelSchTable.Columns.Add(myDataColumn); myDataColumn = new DataColumn(); myDataColumn.DataType = System.Type.GetType("System.String"); myDataColumn.ColumnName = "STEELCODE"; myDataColumn.Caption = "牌号编码"; steelSchTable.Columns.Add(myDataColumn); //切割指示表 myDataColumn = new DataColumn(); myDataColumn = new DataColumn(); myDataColumn.DataType = System.Type.GetType("System.String"); myDataColumn.ColumnName = "heatno"; myDataColumn.Caption = "炉号"; cutSchTable.Columns.Add(myDataColumn); myDataColumn = new DataColumn(); myDataColumn.DataType = System.Type.GetType("System.String"); myDataColumn.ColumnName = "BILLET_XN"; myDataColumn.Caption = "计划坯号"; cutSchTable.Columns.Add(myDataColumn); myDataColumn = new DataColumn(); myDataColumn.DataType = System.Type.GetType("System.String"); myDataColumn.ColumnName = "SLABLENGTH"; myDataColumn.Caption = "目标长度"; cutSchTable.Columns.Add(myDataColumn); myDataColumn = new DataColumn(); myDataColumn.DataType = System.Type.GetType("System.String"); myDataColumn.ColumnName = "DIRECTIONTYPE"; myDataColumn.Caption = "计划去向"; cutSchTable.Columns.Add(myDataColumn); myDataColumn = new DataColumn(); myDataColumn.DataType = System.Type.GetType("System.String"); myDataColumn.ColumnName = "CUTTASKCODE"; myDataColumn.Caption = "铸机号"; cutSchTable.Columns.Add(myDataColumn); myDataColumn = new DataColumn(); myDataColumn.DataType = System.Type.GetType("System.String"); myDataColumn.ColumnName = "CAST_NO"; myDataColumn.Caption = "浇次号"; cutSchTable.Columns.Add(myDataColumn); myDataColumn = new DataColumn(); myDataColumn.DataType = System.Type.GetType("System.String"); myDataColumn.ColumnName = "SEQUENCENO"; myDataColumn.Caption = "炉内顺序号"; cutSchTable.Columns.Add(myDataColumn); myDataColumn = new DataColumn(); myDataColumn.DataType = System.Type.GetType("System.String"); myDataColumn.ColumnName = "SEQUENCEINCAST"; myDataColumn.Caption = "浇次内炉序"; cutSchTable.Columns.Add(myDataColumn); myDataColumn = new DataColumn(); myDataColumn.DataType = System.Type.GetType("System.String"); myDataColumn.ColumnName = "CUTSTARTTIME"; myDataColumn.Caption = "计划切割时间"; cutSchTable.Columns.Add(myDataColumn); myDataColumn = new DataColumn(); myDataColumn.DataType = System.Type.GetType("System.String"); myDataColumn.ColumnName = "SLABHEIGHT"; myDataColumn.Caption = "目标厚度"; cutSchTable.Columns.Add(myDataColumn); myDataColumn = new DataColumn(); myDataColumn.DataType = System.Type.GetType("System.String"); myDataColumn.ColumnName = "SLABWIDTH"; myDataColumn.Caption = "目标宽度"; cutSchTable.Columns.Add(myDataColumn); myDataColumn = new DataColumn(); myDataColumn.DataType = System.Type.GetType("System.String"); myDataColumn.ColumnName = "THEROYWEIGHT"; myDataColumn.Caption = "坯料重量"; cutSchTable.Columns.Add(myDataColumn); myDataColumn = new DataColumn(); myDataColumn.DataType = System.Type.GetType("System.String"); myDataColumn.ColumnName = "BILLETQTY"; myDataColumn.Caption = "方坯数"; cutSchTable.Columns.Add(myDataColumn); myDataColumn = new DataColumn(); myDataColumn.DataType = System.Type.GetType("System.String"); myDataColumn.ColumnName = "BILLETWEIGHT"; myDataColumn.Caption = "坯料单重"; cutSchTable.Columns.Add(myDataColumn); myDataColumn = new DataColumn(); myDataColumn.DataType = System.Type.GetType("System.String"); myDataColumn.ColumnName = "FURNACENO"; myDataColumn.Caption = "虚拟炉号"; cutSchTable.Columns.Add(myDataColumn); myDataColumn = new DataColumn(); myDataColumn.DataType = System.Type.GetType("System.String"); myDataColumn.ColumnName = "PRODORDERNO"; myDataColumn.Caption = "生产订单号"; cutSchTable.Columns.Add(myDataColumn); myDataColumn = new DataColumn(); myDataColumn.DataType = System.Type.GetType("System.String"); myDataColumn.ColumnName = "ORDERNO"; myDataColumn.Caption = "订单行号"; cutSchTable.Columns.Add(myDataColumn); myDataColumn = new DataColumn(); myDataColumn.DataType = System.Type.GetType("System.String"); myDataColumn.ColumnName = "BATCHPLANNO"; myDataColumn.Caption = "批量计划号"; cutSchTable.Columns.Add(myDataColumn); myDataColumn = new DataColumn(); myDataColumn.DataType = System.Type.GetType("System.String"); myDataColumn.ColumnName = "SEQUENCEINBATCH"; myDataColumn.Caption = "批量计划内序号"; cutSchTable.Columns.Add(myDataColumn); myDataColumn = new DataColumn(); myDataColumn.DataType = System.Type.GetType("System.String"); myDataColumn.ColumnName = "CUSTOMER_KEY"; myDataColumn.Caption = "客户参数号"; cutSchTable.Columns.Add(myDataColumn); myDataColumn = new DataColumn(); myDataColumn.DataType = System.Type.GetType("System.String"); myDataColumn.ColumnName = "SURPLUSFLAG"; myDataColumn.Caption = "是否余材"; cutSchTable.Columns.Add(myDataColumn); myDataColumn = new DataColumn(); myDataColumn.DataType = System.Type.GetType("System.String"); myDataColumn.ColumnName = "STANDARDSCODE"; myDataColumn.Caption = "内控标准"; cutSchTable.Columns.Add(myDataColumn); myDataColumn = new DataColumn(); myDataColumn.DataType = System.Type.GetType("System.String"); myDataColumn.ColumnName = "STANDARDREMAK"; myDataColumn.Caption = "标准描述"; cutSchTable.Columns.Add(myDataColumn); myDataColumn = new DataColumn(); myDataColumn.DataType = System.Type.GetType("System.String"); myDataColumn.ColumnName = "PDTSTYLE"; myDataColumn.Caption = "产品类型"; cutSchTable.Columns.Add(myDataColumn); myDataColumn = new DataColumn(); myDataColumn.DataType = System.Type.GetType("System.String"); myDataColumn.ColumnName = "SPECDESCRIPTION"; myDataColumn.Caption = "成品规格描述"; cutSchTable.Columns.Add(myDataColumn); myDataColumn = new DataColumn(); myDataColumn.DataType = System.Type.GetType("System.String"); myDataColumn.ColumnName = "FOREIGN_TRADE"; myDataColumn.Caption = "是否出口"; cutSchTable.Columns.Add(myDataColumn); } catch (Exception ex) { string msg = ex.Message; } } /// /// 设置grid外观 /// private void setGrid1View() { try { ultraGrid3.DisplayLayout.Appearance.BackColor = Color.FromArgb(245, 250, 254); ultraGrid3.DisplayLayout.Override.HeaderAppearance.BackColor = Color.FromArgb(158, 191, 231);// System.Drawing.Color.FromArgb(205, 228, 225); ultraGrid3.DisplayLayout.Override.RowSelectorAppearance.BackColor = System.Drawing.Color.FromArgb(205, 228, 225); ultraGrid3.DisplayLayout.Override.RowAlternateAppearance.BackColor = Color.GhostWhite; ultraGrid3.DisplayLayout.Bands[0].Columns["HEAT_STATE"].Hidden = true; ultraGrid3.DisplayLayout.Bands[0].Columns["v_heat_ID"].Hidden = true; ultraGrid3.DisplayLayout.Bands[0].Columns["PLAN_RH_STR_TIME"].Hidden = true; ultraGrid3.DisplayLayout.Bands[0].Columns["PLAN_RH_ENT_TIME"].Hidden = true; ultraGrid3.DisplayLayout.Bands[0].Columns["PLAN_HMP_STR_TIME"].Hidden = true; ultraGrid3.DisplayLayout.Bands[0].Columns["PLAN_HMP_END_TIME"].Hidden = true; ultraGrid3.DisplayLayout.Bands[0].Columns["PLAN_IRON_QTY"].Hidden = true; ultraGrid3.DisplayLayout.Bands[0].Columns["HEAT_NUM"].Hidden = true; ultraGrid3.DisplayLayout.Bands[0].Columns["STEELCODE"].Hidden = true; ultraGrid3.DisplayLayout.Bands[0].Columns[0].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; ultraGrid3.DisplayLayout.Bands[0].Columns[1].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; ultraGrid3.DisplayLayout.Bands[0].Columns[2].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; ultraGrid3.DisplayLayout.Bands[0].Columns[3].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; ultraGrid3.DisplayLayout.Bands[0].Columns[4].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; ultraGrid3.DisplayLayout.Bands[0].Columns[5].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; ultraGrid3.DisplayLayout.Bands[0].Columns[6].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; ultraGrid3.DisplayLayout.Bands[0].Columns[7].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; ultraGrid3.DisplayLayout.Bands[0].Columns[8].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; ultraGrid3.DisplayLayout.Bands[0].Columns[9].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; ultraGrid3.DisplayLayout.Bands[0].Columns[10].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; ultraGrid3.DisplayLayout.Bands[0].Columns[11].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; ultraGrid3.DisplayLayout.Bands[0].Columns[12].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; ultraGrid3.DisplayLayout.Bands[0].Columns[13].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; ultraGrid3.DisplayLayout.Bands[0].Columns[14].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; ultraGrid3.DisplayLayout.Bands[0].Columns[15].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; ultraGrid3.DisplayLayout.Bands[0].Columns[16].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; ultraGrid3.DisplayLayout.Bands[0].Columns[17].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; ultraGrid3.DisplayLayout.Bands[0].Columns[18].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; ultraGrid3.DisplayLayout.Bands[0].Columns[19].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; ultraGrid3.DisplayLayout.Bands[0].Columns[20].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; ultraGrid3.DisplayLayout.Bands[0].Columns[15].Format = "yy-MM-dd HH:mm"; ultraGrid3.DisplayLayout.Bands[0].Columns[16].Format = "yy-MM-dd HH:mm"; ultraGrid3.DisplayLayout.Bands[0].Columns[17].Format = "yy-MM-dd HH:mm"; ultraGrid3.DisplayLayout.Bands[0].Columns[18].Format = "yy-MM-dd HH:mm"; ultraGrid3.DisplayLayout.Bands[0].Columns[19].Format = "yy-MM-dd HH:mm"; ultraGrid3.DisplayLayout.Bands[0].Columns[20].Format = "yy-MM-dd HH:mm"; ultraGrid3.DisplayLayout.Bands[0].Columns[21].Format = "yy-MM-dd HH:mm"; ultraGrid3.DisplayLayout.Bands[0].Columns["HEATNO"].Width = 80; ultraGrid3.DisplayLayout.Bands[0].Columns["AIM_GRADE_CODE"].Width = 60; ultraGrid3.DisplayLayout.Bands[0].Columns["CAST_ID"].Width = 50; ultraGrid3.DisplayLayout.Bands[0].Columns["CAST_NO"].Width = 70; ultraGrid3.DisplayLayout.Bands[0].Columns["HEAT_NUM"].Width = 50; ultraGrid3.DisplayLayout.Bands[0].Columns["CAST_SEQ"].Width = 50; //ultraGrid3.DisplayLayout.Bands[0].Columns["AIM_S"].Width = 50; ultraGrid3.DisplayLayout.Bands[0].Columns["PLAN_ROUTE"].Width = 230; ultraGrid3.DisplayLayout.Bands[0].Columns["BILLETQTY"].Width = 38; ultraGrid3.DisplayLayout.Bands[0].Columns[8].Width = 60; ultraGrid3.DisplayLayout.Bands[0].Columns[10].Width = 130; ultraGrid3.DisplayLayout.Bands[0].Columns[11].Width = 130; ultraGrid3.DisplayLayout.Bands[0].Columns[12].Width = 130; ultraGrid3.DisplayLayout.Bands[0].Columns[13].Width = 60; ultraGrid3.DisplayLayout.Bands[0].Columns[14].Width = 130; ultraGrid3.DisplayLayout.Bands[0].Columns[15].Width = 130; ultraGrid3.DisplayLayout.Bands[0].Columns[16].Width = 130; ultraGrid3.DisplayLayout.Bands[0].Columns[17].Width = 130; // ultraGrid3.DisplayLayout.Bands[0].Columns["AIM_TD_TEMP"].Width = 50; ultraGrid3.DisplayLayout.Bands[0].Columns[1].CellAppearance.BackColor = Color.GhostWhite; ultraGrid3.DisplayLayout.Bands[0].Columns[2].CellAppearance.BackColor = Color.GhostWhite; ultraGrid3.DisplayLayout.Bands[0].Columns[3].CellAppearance.BackColor = Color.GhostWhite; ultraGrid3.DisplayLayout.Bands[0].Columns[4].CellAppearance.BackColor = Color.GhostWhite; ultraGrid3.DisplayLayout.Bands[0].Columns[5].CellAppearance.BackColor = Color.GhostWhite; ultraGrid3.DisplayLayout.Bands[0].Columns[6].CellAppearance.BackColor = Color.GhostWhite; ultraGrid3.DisplayLayout.Bands[0].Columns[7].CellAppearance.BackColor = Color.GhostWhite; ultraGrid3.DisplayLayout.Bands[0].Columns[8].CellAppearance.BackColor = Color.GhostWhite; ultraGrid3.DisplayLayout.Bands[0].Columns[9].CellAppearance.BackColor = Color.GhostWhite; ultraGrid3.DisplayLayout.Bands[0].Columns[10].CellAppearance.BackColor = Color.GhostWhite; ultraGrid3.DisplayLayout.Bands[0].Columns[11].CellAppearance.BackColor = Color.GhostWhite; ultraGrid3.DisplayLayout.Bands[0].Columns[12].CellAppearance.BackColor = Color.GhostWhite; ultraGrid3.DisplayLayout.Bands[0].Columns[13].CellAppearance.BackColor = Color.GhostWhite; ultraGrid3.DisplayLayout.Bands[0].Columns[14].CellAppearance.BackColor = Color.GhostWhite; ultraGrid3.DisplayLayout.Bands[0].Columns[15].CellAppearance.BackColor = Color.GhostWhite; ultraGrid3.DisplayLayout.Bands[0].Columns[16].CellAppearance.BackColor = Color.GhostWhite; ultraGrid3.DisplayLayout.Bands[0].Columns[17].CellAppearance.BackColor = Color.GhostWhite; ultraGrid3.DisplayLayout.Bands[0].Columns[18].CellAppearance.BackColor = Color.GhostWhite; ultraGrid3.DisplayLayout.Bands[0].Columns[19].CellAppearance.BackColor = Color.LightGoldenrodYellow; ultraGrid3.DisplayLayout.Bands[0].Columns[20].CellAppearance.BackColor = Color.LightGoldenrodYellow; ultraGrid3.DisplayLayout.Bands[0].Columns[21].CellAppearance.BackColor = Color.LightGoldenrodYellow; ultraGrid3.DisplayLayout.Bands[0].Columns[22].CellAppearance.BackColor = Color.LightPink; ultraGrid3.DisplayLayout.Bands[0].Columns[23].CellAppearance.BackColor = Color.LightPink; ultraGrid2.DisplayLayout.Appearance.BackColor = Color.FromArgb(245, 250, 254); ultraGrid2.DisplayLayout.Override.HeaderAppearance.BackColor = Color.FromArgb(158, 191, 231);// System.Drawing.Color.FromArgb(205, 228, 225); ultraGrid2.DisplayLayout.Override.RowSelectorAppearance.BackColor = System.Drawing.Color.FromArgb(205, 228, 225); ultraGrid2.DisplayLayout.Override.RowAlternateAppearance.BackColor = Color.GhostWhite; ultraGrid2.DisplayLayout.Bands[0].Columns["FURNACENO"].Hidden = true; // ultraGrid2.DisplayLayout.Bands[0].Columns["STANDARDSCODE"].Hidden = true; ultraGrid2.DisplayLayout.Bands[0].Columns["HeatNo"].Width = 60; ultraGrid2.DisplayLayout.Bands[0].Columns["STANDARDREMAK"].Width = 90; ultraGrid2.DisplayLayout.Bands[0].Columns["BILLET_XN"].Width = 80; ultraGrid2.DisplayLayout.Bands[0].Columns["SLABLENGTH"].Width = 50; ultraGrid2.DisplayLayout.Bands[0].Columns["CUTTASKCODE"].Width = 50; ultraGrid2.DisplayLayout.Bands[0].Columns["CAST_NO"].Width = 50; ultraGrid2.DisplayLayout.Bands[0].Columns["SEQUENCEINCAST"].Width = 50; ultraGrid2.DisplayLayout.Bands[0].Columns["DIRECTIONTYPE"].Width = 70; ultraGrid2.DisplayLayout.Bands[0].Columns["BILLETQTY"].Width = 60; ultraGrid2.DisplayLayout.Bands[0].Columns["BILLETWEIGHT"].Width = 60; ultraGrid2.DisplayLayout.Bands[0].Columns[7].Width = 60; ultraGrid2.DisplayLayout.Bands[0].Columns[8].Width = 120; ultraGrid2.DisplayLayout.Bands[0].Columns[9].Width = 70; ultraGrid2.DisplayLayout.Bands[0].Columns[10].Width = 70; ultraGrid2.DisplayLayout.Bands[0].Columns[11].Width = 70; ultraGrid2.DisplayLayout.Bands[0].Columns[12].Width = 70; } catch (Exception ex) { string msg = ex.Message; } } private void InitComboBoxSource_Cut() { this.ccmNumCobo.DataSource = GetCcmData_Cut(); this.ccmNumCobo.DisplayMember = "name"; this.ccmNumCobo.ValueMember = "id"; this.combConNo.DataSource = GetCcmData_Cut(); this.combConNo.DisplayMember = "name"; this.combConNo.ValueMember = "id"; this.cboFlowNo.DataSource = GetCcmData_Cut(); this.cboFlowNo.DisplayMember = "name"; this.cboFlowNo.ValueMember = "id"; } /// /// 铸机号 /// /// private DataTable GetCcmData_Cut() { DataTable dt = new DataTable(); dt.Columns.Add("id", typeof(System.String)); dt.Columns.Add("name", typeof(System.String)); //dt.Rows.Add(new object[] { "0", "0#铸机" }); dt.Rows.Add(new object[] { "1", "1#铸机" }); dt.Rows.Add(new object[] { "2", "2#铸机" }); dt.Rows.Add(new object[] { "3", "3#铸机" }); // dt.Rows.Add(new object[] { "4", "4#铸机" }); dt.AcceptChanges(); return dt; } /// <路径解析> /// 路径解析 /// /// /// private string analysPath(string craftPath)//----路径解析 { string path = ""; try { if (craftPath.Length > 14) { string str = "", route = ""; if (craftPath.Length >= 2) { str = craftPath.Substring(0, 2); switch (str) { case "A0": route = ""; break; case "A1": route = "1#混铁炉"; break; case "A2": route = "2#混铁炉"; break; } path = path + route; } else return path; if (craftPath.Length >= 4) { str = craftPath.Substring(2, 2); switch (str) { case "B0": route = ""; break; case "B1": route = "->1#铁水预处理"; break; case "B2": route = "->2#铁水预处理"; break; } path = path + route; } else return path; if (craftPath.Length >= 6) { str = craftPath.Substring(4, 2); switch (str) { case "C0": route = ""; break; case "C1": route = "->1#转炉"; break; case "C2": route = "->2#转炉"; break; case "C3": route = "->3#转炉"; break; } path = path + route; } else return path; if (craftPath.Length >= 8) { str = craftPath.Substring(6, 2); switch (str) { case "D0": route = ""; break; case "D1": route = "->1#吹氩站"; break; case "D2": route = "->2#吹氩站"; break; case "D3": route = "->3#吹氩站"; break; } path = path + route; } else return path; ///2008-02-28 刘现 if (craftPath.Length >= 10) { str = craftPath.Substring(8, 2); switch (str) { case "F0": route = ""; break; case "F1": route = "->1#RH炉"; break; } path = path + route; } else return path; if (craftPath.Length >= 12) { str = craftPath.Substring(10, 2); switch (str) { case "E0": route = ""; break; case "E1": route = "->1#精练"; break; case "E2": route = "->2#精练"; break; } path = path + route; } else return path; if (craftPath.Length >= 14) { str = craftPath.Substring(12, 2); switch (str) { case "F0": route = ""; break; case "F1": route = "->1#RH炉"; break; } path = path + route; } else return path; if (craftPath.Length >= 14) { str = craftPath.Substring(14, 2); switch (str) { case "G0": route = ""; break; case "G1": route = "->1#连铸机"; break; case "G2": route = "->2#连铸机"; break; case "G3": route = "->3#连铸机"; break; case "G4": route = "->0#连铸机"; break; } path = path + route; } else return path; if (path.Length < 2) return ""; if (path.IndexOf("->", 0) == 0) { int len = path.Length; path = path.Substring(2, len - 2); } } else { string str = "", route = ""; if (craftPath.Length >= 2) { str = craftPath.Substring(0, 2); switch (str) { case "A0": route = ""; break; case "A1": route = "1#混铁炉"; break; case "A2": route = "2#混铁炉"; break; } path = path + route; } else return path; if (craftPath.Length >= 4) { str = craftPath.Substring(2, 2); switch (str) { case "B0": route = ""; break; case "B1": route = "->1#铁水预处理"; break; case "B2": route = "->2#铁水预处理"; break; } path = path + route; } else return path; if (craftPath.Length >= 6) { str = craftPath.Substring(4, 2); switch (str) { case "C0": route = ""; break; case "C1": route = "->1#转炉"; break; case "C2": route = "->2#转炉"; break; case "C3": route = "->3#转炉"; break; } path = path + route; } else return path; if (craftPath.Length >= 8) { str = craftPath.Substring(6, 2); switch (str) { case "D0": route = ""; break; case "D1": route = "->1#吹氩站"; break; case "D2": route = "->2#吹氩站"; break; case "D3": route = "->3#吹氩站"; break; } path = path + route; } else return path; if (craftPath.Length >= 10) { str = craftPath.Substring(8, 2); switch (str) { case "E0": route = ""; break; case "E1": route = "->1#精练"; break; case "E2": route = "->2#精练"; break; } path = path + route; } else return path; if (craftPath.Length >= 12) { str = craftPath.Substring(10, 2); switch (str) { case "F0": route = ""; break; case "F1": route = "->1#RH炉"; break; case "F2": route = "->2#RH炉"; break; } path = path + route; } else return path; if (craftPath.Length >= 14) { str = craftPath.Substring(12, 2); switch (str) { case "G0": route = ""; break; case "G1": route = "->1#连铸机"; break; case "G2": route = "->2#连铸机"; break; case "G3": route = "->3#连铸机"; break; case "G4": route = "->0#连铸机"; break; } path = path + route; } else return path; if (path.Length < 2) return ""; if (path.IndexOf("->", 0) == 0) { int len = path.Length; path = path.Substring(2, len - 2); } } return path; } catch (Exception ex) { string msg = ex.Message; return path; } } /// /// 计划信息查询 /// /// /// private void queryBtn_Click(object sender, EventArgs e) { try { string startTime = dateTimePicker3.Value.ToString(); string endTime = dateTimePicker4.Value.ToString(); string strWhere = string.Format(" WHERE PLAN_MAKING_TIME>=to_date('{0}','yyyy-MM-dd HH24:Mi:ss') AND PLAN_MAKING_TIME<=to_date('{1}','yyyy-MM-dd HH24:Mi:ss') ", startTime, endTime); if (this.chkCcmNo.Checked) { // this.combCcmNo.SelectedItem // string ccmN0 = this.combCcmNo.SelectedValue.ToString(); strWhere += string.Format(" AND CAST_ID='{0}' ", this.ccmNumCobo.SelectedValue); } //以下是转炉查询 if (this.chkConNo.Checked) { //string conN0 = this.combConNo.SelectedValue.ToString(); strWhere += string.Format(" AND substr(heatno,3,1)='{0}'", this.combConNo.SelectedValue); }//转炉 //strWhere += " order by AIM_CAST_STR_TIME desc " ; strWhere += " and heatno is not null ";//order by CAST_NO desc,to_number(CAST_SEQ) desc "; string err = ""; this.steelSchTable.Clear(); routeHash.Clear(); // DataSet ds = (DataSet)ClientCommon._RemotingHelp.ExecuteMethod("DataHandle", "Core.Sglg.DataHandle", "Core.Sglg.DataHandle.BSA_ISTLSCH", "SelectToDataSet", new object[] { strWhere }, out err); DataSet ds = null;// (DataSet)ClientCommon._RemotingHelp.ExecuteMethod("lgIntegrationQuery", "Core.LgMes.Server.lgIntegrationQuery.LgGeneralInfo", "GetAllJobPlan_Cut", new object[] { strWhere }, out err); if (err != "" && ds.Tables[0].Rows.Count <= 0) { //MessageBox.Show("炼钢数据查询错误:"+err,"提示"); return; } //this.steelSchTable = ds.Tables[0]; if (ds != null && ds.Tables.Count > 0 && ds.Tables[0].Rows.Count > 0) { this.ultraGrid1.BeginUpdate(); this.cutSchTable.Clear(); int rowCount = ds.Tables[0].Rows.Count; DataRow row; string name = ""; for (int i = 0; i < rowCount; i++) { row = this.steelSchTable.NewRow(); foreach (DataColumn column in steelSchTable.Columns) { name = column.ColumnName; if (name != "PLAN_ROUTE") row[name] = ds.Tables[0].Rows[i][name].ToString(); else { routeHash.Add(ds.Tables[0].Rows[i]["HEATNO"].ToString(), ds.Tables[0].Rows[i]["PLAN_ROUTE"].ToString()); row[name] = analysPath(ds.Tables[0].Rows[i][name].ToString()); } } this.steelSchTable.Rows.Add(row); string status = row["HEAT_STATE"].ToString(); if (status == "03") { foreach (UltraGridCell cell in ultraGrid1.Rows[i].Cells) cell.Appearance.BackColor = Color.White;//计划状态 } else if (status == "09") { foreach (UltraGridCell cell in ultraGrid1.Rows[i].Cells) cell.Appearance.BackColor = Color.LightCyan; //Color.MintCream;//连铸结束 } else { foreach (UltraGridCell cell in ultraGrid1.Rows[i].Cells) cell.Appearance.BackColor = Color.LightGreen;//在生产用颜色区分 } } this.ultraGrid1.EndUpdate(); } } catch { } } #endregion private void chkCcmNo_CheckedChanged(object sender, EventArgs e) { if (this.chkCcmNo.Checked) { this.ccmNumCobo.Enabled = true; this.ccmNumCobo.BackColor = Color.White; } else { this.ccmNumCobo.Enabled = false; this.ccmNumCobo.BackColor = Color.Gainsboro; } } } }