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 Core.Mes.ClientFrameWork;
using Core.Mes.ServerFrameWork;
using Infragistics.Win.UltraWinGrid;
using Core.LgMes.Client.LgIntegrationQuery;
using Core.Mes.IBaseInterface;
using System.Threading;
namespace Core.LgMes.Client.LgJobMgt
{
///
/// FrmCutBilletDetailQuery 的摘要说明。
///
public partial class FrmCutBilletDetailQuery : Core.Mes.Client.Common.frmStyleBase, IDisposable
{
#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.ComboBox comboBox4;
private System.Windows.Forms.CheckBox checkBox3;
private System.Windows.Forms.CheckBox checkBox2;
private System.Windows.Forms.Label label9;
public System.Windows.Forms.DateTimePicker dateTimePicker4;
private System.Windows.Forms.CheckBox checkBox1;
private Infragistics.Win.UltraWinToolbars.UltraToolbarsManager ultraToolbarsManager1;
private System.Windows.Forms.Panel panel1;
private Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea _panel1_Toolbars_Dock_Area_Left;
private Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea _panel1_Toolbars_Dock_Area_Right;
private Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea _panel1_Toolbars_Dock_Area_Top;
private Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea _panel1_Toolbars_Dock_Area_Bottom;
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.DateTimePicker dateTimePicker5;
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.ComboBox comboBox5;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.Label label11;
private System.Windows.Forms.ComboBox comboBox2;
private System.Windows.Forms.Label label10;
private System.Windows.Forms.ComboBox comboBox3;
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.ComboBox comboBox6;
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;
public DateTimePicker dateTimePicker3;
private System.ComponentModel.IContainer components;
public FrmCutBilletDetailQuery()
{
//
// 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()
{
this.components = new System.ComponentModel.Container();
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 appearance2 = 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 appearance3 = new Infragistics.Win.Appearance();
Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn4 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("FLOWNO", -1, 134938501);
Infragistics.Win.Appearance appearance4 = new Infragistics.Win.Appearance();
Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn5 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("CUTSEQNO");
Infragistics.Win.Appearance appearance5 = new Infragistics.Win.Appearance();
Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn6 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("MOULDNO");
Infragistics.Win.Appearance appearance6 = new Infragistics.Win.Appearance();
Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn7 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("HEATSEQ");
Infragistics.Win.Appearance appearance7 = new Infragistics.Win.Appearance();
Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn8 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("HEATCNT");
Infragistics.Win.Appearance appearance8 = new Infragistics.Win.Appearance();
Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn9 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("LENGTH");
Infragistics.Win.Appearance appearance9 = new Infragistics.Win.Appearance();
Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn10 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("WIDTH");
Infragistics.Win.Appearance appearance10 = new Infragistics.Win.Appearance();
Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn11 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("THICKNESS");
Infragistics.Win.Appearance appearance11 = new Infragistics.Win.Appearance();
Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn12 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("WEIGHT");
Infragistics.Win.Appearance appearance12 = new Infragistics.Win.Appearance();
Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn13 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("SPECRULE");
Infragistics.Win.Appearance appearance13 = new Infragistics.Win.Appearance();
Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn14 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("CUTTIME");
Infragistics.Win.Appearance appearance14 = new Infragistics.Win.Appearance();
Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn15 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("SHIFTCODE", -1, 38914641);
Infragistics.Win.Appearance appearance15 = new Infragistics.Win.Appearance();
Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn16 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("LASTBILLETFLAG", -1, 1197251);
Infragistics.Win.Appearance appearance16 = 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 appearance17 = 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 appearance18 = new Infragistics.Win.Appearance();
Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn21 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("CHILDBLOCKNO", 3);
Infragistics.Win.Appearance appearance19 = new Infragistics.Win.Appearance();
Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn22 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("BILLETCODE", 4);
Infragistics.Win.Appearance appearance20 = 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 valueListItem12 = new Infragistics.Win.ValueListItem();
Infragistics.Win.ValueList valueList2 = new Infragistics.Win.ValueList(134929704);
Infragistics.Win.ValueListItem valueListItem13 = new Infragistics.Win.ValueListItem();
Infragistics.Win.ValueListItem valueListItem14 = new Infragistics.Win.ValueListItem();
Infragistics.Win.ValueListItem valueListItem15 = 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.UltraWinToolbars.UltraToolbar ultraToolbar1 = new Infragistics.Win.UltraWinToolbars.UltraToolbar("HkBar");
Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool1 = new Infragistics.Win.UltraWinToolbars.ButtonTool("query");
Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool2 = new Infragistics.Win.UltraWinToolbars.ButtonTool("add");
Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool3 = new Infragistics.Win.UltraWinToolbars.ButtonTool("del");
Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool4 = new Infragistics.Win.UltraWinToolbars.ButtonTool("edit");
Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool5 = new Infragistics.Win.UltraWinToolbars.ButtonTool("exit");
Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool6 = new Infragistics.Win.UltraWinToolbars.ButtonTool("plan");
Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool7 = new Infragistics.Win.UltraWinToolbars.ButtonTool("Existplan");
Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool8 = new Infragistics.Win.UltraWinToolbars.ButtonTool("add");
Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool9 = new Infragistics.Win.UltraWinToolbars.ButtonTool("del");
Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool10 = new Infragistics.Win.UltraWinToolbars.ButtonTool("edit");
Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool11 = new Infragistics.Win.UltraWinToolbars.ButtonTool("save");
Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool12 = new Infragistics.Win.UltraWinToolbars.ButtonTool("exit");
Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool13 = new Infragistics.Win.UltraWinToolbars.ButtonTool("query");
Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool14 = new Infragistics.Win.UltraWinToolbars.ButtonTool("plan");
Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool15 = new Infragistics.Win.UltraWinToolbars.ButtonTool("Existplan");
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.label26 = new System.Windows.Forms.Label();
this.richTextBox1 = new System.Windows.Forms.Label();
this.txt_heatidnoy = new System.Windows.Forms.TextBox();
this.dateTimePicker4 = new System.Windows.Forms.DateTimePicker();
this.textBox1 = new System.Windows.Forms.TextBox();
this.comboBox4 = new System.Windows.Forms.ComboBox();
this.checkBox3 = new System.Windows.Forms.CheckBox();
this.checkBox2 = new System.Windows.Forms.CheckBox();
this.label9 = new System.Windows.Forms.Label();
this.dateTimePicker3 = new System.Windows.Forms.DateTimePicker();
this.checkBox1 = new System.Windows.Forms.CheckBox();
this.ultraToolbarsManager1 = new Infragistics.Win.UltraWinToolbars.UltraToolbarsManager(this.components);
this.panel1 = new System.Windows.Forms.Panel();
this._panel1_Toolbars_Dock_Area_Left = new Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea();
this._panel1_Toolbars_Dock_Area_Right = new Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea();
this._panel1_Toolbars_Dock_Area_Top = new Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea();
this._panel1_Toolbars_Dock_Area_Bottom = new Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea();
this.ultraExpandableGroupBox1 = new Infragistics.Win.Misc.UltraExpandableGroupBox();
this.ultraExpandableGroupBoxPanel1 = new Infragistics.Win.Misc.UltraExpandableGroupBoxPanel();
this.panel3 = new System.Windows.Forms.Panel();
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.label22 = new System.Windows.Forms.Label();
this.textBox21 = new System.Windows.Forms.TextBox();
this.label23 = new System.Windows.Forms.Label();
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.textBox15 = new System.Windows.Forms.TextBox();
this.textBox13 = new System.Windows.Forms.TextBox();
this.label4 = new System.Windows.Forms.Label();
this.comboBox6 = new System.Windows.Forms.ComboBox();
this.dateTimePicker5 = new System.Windows.Forms.DateTimePicker();
this.label19 = new System.Windows.Forms.Label();
this.label18 = new System.Windows.Forms.Label();
this.textBox11 = new System.Windows.Forms.TextBox();
this.label16 = new System.Windows.Forms.Label();
this.textBox10 = new System.Windows.Forms.TextBox();
this.label14 = new System.Windows.Forms.Label();
this.textBox9 = new System.Windows.Forms.TextBox();
this.label12 = new System.Windows.Forms.Label();
this.textBox3 = new System.Windows.Forms.TextBox();
this.label6 = new System.Windows.Forms.Label();
this.textBox8 = new System.Windows.Forms.TextBox();
this.textBox7 = new System.Windows.Forms.TextBox();
this.textBox6 = new System.Windows.Forms.TextBox();
this.textBox5 = new System.Windows.Forms.TextBox();
this.textBox2 = new System.Windows.Forms.TextBox();
this.label15 = new System.Windows.Forms.Label();
this.label13 = new System.Windows.Forms.Label();
this.comboBox5 = new System.Windows.Forms.ComboBox();
this.label8 = new System.Windows.Forms.Label();
this.label11 = new System.Windows.Forms.Label();
this.comboBox2 = new System.Windows.Forms.ComboBox();
this.label10 = new System.Windows.Forms.Label();
this.comboBox3 = new System.Windows.Forms.ComboBox();
this.label3 = new System.Windows.Forms.Label();
this.label7 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.textBox14 = new System.Windows.Forms.TextBox();
this.textBox12 = new System.Windows.Forms.TextBox();
this.textBox4 = new System.Windows.Forms.TextBox();
this.splitter1 = new System.Windows.Forms.Splitter();
this.panel2 = new System.Windows.Forms.Panel();
((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.ultraToolbarsManager1)).BeginInit();
this.panel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.ultraExpandableGroupBox1)).BeginInit();
this.ultraExpandableGroupBox1.SuspendLayout();
this.ultraExpandableGroupBoxPanel1.SuspendLayout();
this.panel3.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;
appearance2.TextHAlign = Infragistics.Win.HAlign.Center;
appearance2.TextVAlign = Infragistics.Win.VAlign.Middle;
ultraGridColumn1.Header.Appearance = appearance2;
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;
appearance3.TextHAlign = Infragistics.Win.HAlign.Center;
appearance3.TextVAlign = Infragistics.Win.VAlign.Middle;
ultraGridColumn3.Header.Appearance = appearance3;
ultraGridColumn3.Header.Caption = "铸机号";
ultraGridColumn3.Header.VisiblePosition = 2;
ultraGridColumn3.RowLayoutColumnInfo.OriginX = 8;
ultraGridColumn3.RowLayoutColumnInfo.OriginY = 0;
ultraGridColumn3.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(64, 0);
ultraGridColumn3.RowLayoutColumnInfo.SpanX = 2;
ultraGridColumn3.RowLayoutColumnInfo.SpanY = 2;
ultraGridColumn4.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
appearance4.TextHAlign = Infragistics.Win.HAlign.Center;
ultraGridColumn4.Header.Appearance = appearance4;
ultraGridColumn4.Header.Caption = "流号";
ultraGridColumn4.Header.VisiblePosition = 3;
ultraGridColumn4.RowLayoutColumnInfo.OriginX = 4;
ultraGridColumn4.RowLayoutColumnInfo.OriginY = 0;
ultraGridColumn4.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(36, 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;
appearance5.TextHAlign = Infragistics.Win.HAlign.Center;
ultraGridColumn5.Header.Appearance = appearance5;
ultraGridColumn5.Header.Caption = "切割序号";
ultraGridColumn5.Header.VisiblePosition = 4;
ultraGridColumn5.RowLayoutColumnInfo.OriginX = 18;
ultraGridColumn5.RowLayoutColumnInfo.OriginY = 0;
ultraGridColumn5.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(64, 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;
appearance6.TextHAlign = Infragistics.Win.HAlign.Center;
appearance6.TextVAlign = Infragistics.Win.VAlign.Middle;
ultraGridColumn6.Header.Appearance = appearance6;
ultraGridColumn6.Header.Caption = "浇次号";
ultraGridColumn6.Header.VisiblePosition = 5;
ultraGridColumn6.RowLayoutColumnInfo.OriginX = 24;
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;
appearance7.TextHAlign = Infragistics.Win.HAlign.Center;
appearance7.TextVAlign = Infragistics.Win.VAlign.Middle;
ultraGridColumn7.Header.Appearance = appearance7;
ultraGridColumn7.Header.Caption = " 浇次内炉序";
ultraGridColumn7.Header.VisiblePosition = 6;
ultraGridColumn7.RowLayoutColumnInfo.OriginX = 26;
ultraGridColumn7.RowLayoutColumnInfo.OriginY = 0;
ultraGridColumn7.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(76, 0);
ultraGridColumn7.RowLayoutColumnInfo.SpanX = 2;
ultraGridColumn7.RowLayoutColumnInfo.SpanY = 2;
ultraGridColumn8.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
appearance8.TextHAlign = Infragistics.Win.HAlign.Center;
appearance8.TextVAlign = Infragistics.Win.VAlign.Middle;
ultraGridColumn8.Header.Appearance = appearance8;
ultraGridColumn8.Header.Caption = "浇次内炉数";
ultraGridColumn8.Header.VisiblePosition = 7;
ultraGridColumn8.RowLayoutColumnInfo.OriginX = 28;
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;
appearance9.TextHAlign = Infragistics.Win.HAlign.Center;
ultraGridColumn9.Header.Appearance = appearance9;
ultraGridColumn9.Header.Caption = "长度";
ultraGridColumn9.Header.VisiblePosition = 8;
ultraGridColumn9.RowLayoutColumnInfo.OriginX = 10;
ultraGridColumn9.RowLayoutColumnInfo.OriginY = 1;
ultraGridColumn9.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(69, 0);
ultraGridColumn9.RowLayoutColumnInfo.SpanX = 2;
ultraGridColumn9.RowLayoutColumnInfo.SpanY = 2;
ultraGridColumn9.Width = 70;
ultraGridColumn10.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
appearance10.TextHAlign = Infragistics.Win.HAlign.Center;
ultraGridColumn10.Header.Appearance = appearance10;
ultraGridColumn10.Header.Caption = "宽度";
ultraGridColumn10.Header.VisiblePosition = 9;
ultraGridColumn10.RowLayoutColumnInfo.OriginX = 12;
ultraGridColumn10.RowLayoutColumnInfo.OriginY = 1;
ultraGridColumn10.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(79, 0);
ultraGridColumn10.RowLayoutColumnInfo.SpanX = 2;
ultraGridColumn10.RowLayoutColumnInfo.SpanY = 2;
ultraGridColumn10.Width = 70;
ultraGridColumn11.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
appearance11.TextHAlign = Infragistics.Win.HAlign.Center;
appearance11.TextVAlign = Infragistics.Win.VAlign.Middle;
ultraGridColumn11.Header.Appearance = appearance11;
ultraGridColumn11.Header.Caption = "厚度";
ultraGridColumn11.Header.VisiblePosition = 10;
ultraGridColumn11.RowLayoutColumnInfo.OriginX = 14;
ultraGridColumn11.RowLayoutColumnInfo.OriginY = 1;
ultraGridColumn11.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(59, 0);
ultraGridColumn11.RowLayoutColumnInfo.SpanX = 2;
ultraGridColumn11.RowLayoutColumnInfo.SpanY = 2;
ultraGridColumn12.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
appearance12.TextHAlign = Infragistics.Win.HAlign.Center;
appearance12.TextVAlign = Infragistics.Win.VAlign.Middle;
ultraGridColumn12.Header.Appearance = appearance12;
ultraGridColumn12.Header.Caption = "重量";
ultraGridColumn12.Header.VisiblePosition = 11;
ultraGridColumn12.RowLayoutColumnInfo.OriginX = 30;
ultraGridColumn12.RowLayoutColumnInfo.OriginY = 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;
appearance13.TextHAlign = Infragistics.Win.HAlign.Center;
ultraGridColumn13.Header.Appearance = appearance13;
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";
appearance14.TextHAlign = Infragistics.Win.HAlign.Center;
ultraGridColumn14.Header.Appearance = appearance14;
ultraGridColumn14.Header.Caption = "切割时间";
ultraGridColumn14.Header.VisiblePosition = 13;
ultraGridColumn14.RowLayoutColumnInfo.OriginX = 6;
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;
appearance15.TextHAlign = Infragistics.Win.HAlign.Center;
appearance15.TextVAlign = Infragistics.Win.VAlign.Middle;
ultraGridColumn15.Header.Appearance = appearance15;
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;
appearance16.TextHAlign = Infragistics.Win.HAlign.Center;
appearance16.TextVAlign = Infragistics.Win.VAlign.Middle;
ultraGridColumn16.Header.Appearance = appearance16;
ultraGridColumn16.Header.Caption = "末块";
ultraGridColumn16.Header.VisiblePosition = 15;
ultraGridColumn16.RowLayoutColumnInfo.OriginX = 16;
ultraGridColumn16.RowLayoutColumnInfo.OriginY = 0;
ultraGridColumn16.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(58, 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;
appearance17.TextHAlign = Infragistics.Win.HAlign.Center;
ultraGridColumn18.Header.Appearance = appearance17;
ultraGridColumn18.Header.Caption = "切割尺寸";
ultraGridColumn18.Header.VisiblePosition = 17;
ultraGridColumn18.RowLayoutColumnInfo.LabelPosition = Infragistics.Win.UltraWinGrid.LabelPosition.LabelOnly;
ultraGridColumn18.RowLayoutColumnInfo.OriginX = 10;
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.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.AutoEdit = false;
ultraGridColumn20.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
appearance18.TextHAlign = Infragistics.Win.HAlign.Center;
ultraGridColumn20.Header.Appearance = appearance18;
ultraGridColumn20.Header.Caption = "坯料号";
ultraGridColumn20.Header.VisiblePosition = 19;
ultraGridColumn20.RowLayoutColumnInfo.OriginX = 2;
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;
appearance19.TextHAlign = Infragistics.Win.HAlign.Center;
ultraGridColumn21.Header.Appearance = appearance19;
ultraGridColumn21.Header.Caption = "块号";
ultraGridColumn21.Header.VisiblePosition = 20;
ultraGridColumn21.RowLayoutColumnInfo.OriginX = 22;
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;
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});
ultraGridBand1.UseRowLayout = true;
this.ultraGrid1.DisplayLayout.BandsSerializer.Add(ultraGridBand1);
this.ultraGrid1.DisplayLayout.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid;
appearance20.TextHAlign = Infragistics.Win.HAlign.Left;
this.ultraGrid1.DisplayLayout.CaptionAppearance = appearance20;
appearance21.BackColor = System.Drawing.SystemColors.ActiveBorder;
appearance21.BackColor2 = System.Drawing.SystemColors.ControlDark;
appearance21.BackGradientStyle = Infragistics.Win.GradientStyle.Vertical;
appearance21.BorderColor = System.Drawing.SystemColors.Window;
this.ultraGrid1.DisplayLayout.GroupByBox.Appearance = appearance21;
appearance22.ForeColor = System.Drawing.SystemColors.GrayText;
this.ultraGrid1.DisplayLayout.GroupByBox.BandLabelAppearance = appearance22;
this.ultraGrid1.DisplayLayout.GroupByBox.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid;
this.ultraGrid1.DisplayLayout.GroupByBox.Hidden = true;
appearance23.BackColor = System.Drawing.SystemColors.ControlLightLight;
appearance23.BackColor2 = System.Drawing.SystemColors.Control;
appearance23.BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal;
appearance23.ForeColor = System.Drawing.SystemColors.GrayText;
this.ultraGrid1.DisplayLayout.GroupByBox.PromptAppearance = appearance23;
this.ultraGrid1.DisplayLayout.MaxColScrollRegions = 1;
this.ultraGrid1.DisplayLayout.MaxRowScrollRegions = 1;
appearance24.BackColor = System.Drawing.SystemColors.Info;
appearance24.ForeColor = System.Drawing.SystemColors.ControlText;
this.ultraGrid1.DisplayLayout.Override.ActiveCellAppearance = appearance24;
appearance25.BackColor = System.Drawing.SystemColors.Highlight;
appearance25.ForeColor = System.Drawing.SystemColors.HighlightText;
this.ultraGrid1.DisplayLayout.Override.ActiveRowAppearance = 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.TextHAlign = Infragistics.Win.HAlign.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.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 = "夜班丙组";
valueListItem12.DataValue = "34";
valueListItem12.DisplayText = "夜班丁组";
valueList1.ValueListItems.Add(valueListItem1);
valueList1.ValueListItems.Add(valueListItem2);
valueList1.ValueListItems.Add(valueListItem3);
valueList1.ValueListItems.Add(valueListItem4);
valueList1.ValueListItems.Add(valueListItem5);
valueList1.ValueListItems.Add(valueListItem6);
valueList1.ValueListItems.Add(valueListItem7);
valueList1.ValueListItems.Add(valueListItem8);
valueList1.ValueListItems.Add(valueListItem9);
valueList1.ValueListItems.Add(valueListItem10);
valueList1.ValueListItems.Add(valueListItem11);
valueList1.ValueListItems.Add(valueListItem12);
valueList2.Key = "CCMID";
valueListItem13.DataValue = "1";
valueListItem13.DisplayText = "1#铸机";
valueListItem14.DataValue = "2";
valueListItem14.DisplayText = "2#铸机";
valueListItem15.DataValue = "3";
valueListItem15.DisplayText = "3#铸机";
valueListItem16.DataValue = "4";
valueListItem16.DisplayText = "4#铸机";
valueList2.ValueListItems.Add(valueListItem13);
valueList2.ValueListItems.Add(valueListItem14);
valueList2.ValueListItems.Add(valueListItem15);
valueList2.ValueListItems.Add(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.Add(valueListItem17);
valueList3.ValueListItems.Add(valueListItem18);
valueList3.ValueListItems.Add(valueListItem19);
valueList3.ValueListItems.Add(valueListItem20);
valueList3.ValueListItems.Add(valueListItem21);
valueList4.Key = "LASTBILLETFLAG";
valueListItem22.DataValue = "N";
valueListItem22.DisplayText = "否";
valueListItem23.DataValue = "Y";
valueListItem23.DisplayText = "是";
valueList4.ValueListItems.Add(valueListItem22);
valueList4.ValueListItems.Add(valueListItem23);
valueList5.Key = "resflag";
valueListItem24.DataValue = "0";
valueListItem24.DisplayText = "是";
valueListItem25.DataValue = "1";
valueListItem25.DisplayText = "否";
valueList5.ValueListItems.Add(valueListItem24);
valueList5.ValueListItems.Add(valueListItem25);
this.ultraGrid1.DisplayLayout.ValueLists.AddRange(new Infragistics.Win.ValueList[] {
valueList1,
valueList2,
valueList3,
valueList4,
valueList5});
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, 82);
this.ultraGrid1.Name = "ultraGrid1";
this.ultraGrid1.Size = new System.Drawing.Size(692, 331);
this.ultraGrid1.TabIndex = 34;
this.ultraGrid1.BeforeRowUpdate += new Infragistics.Win.UltraWinGrid.CancelableRowEventHandler(this.ultraGrid1_BeforeRowUpdate);
this.ultraGrid1.AfterRowActivate += new System.EventHandler(this.ultraGrid1_AfterRowActivate);
this.ultraGrid1.BeforeRowFixedStateChanged += new Infragistics.Win.UltraWinGrid.BeforeRowFixedStateChangedEventHandler(this.ultraGrid1_BeforeRowFixedStateChanged);
//
// ultraGroupBox1
//
this.ultraGroupBox1.Controls.Add(this.label26);
this.ultraGroupBox1.Controls.Add(this.richTextBox1);
this.ultraGroupBox1.Controls.Add(this.txt_heatidnoy);
this.ultraGroupBox1.Controls.Add(this.dateTimePicker4);
this.ultraGroupBox1.Controls.Add(this.textBox1);
this.ultraGroupBox1.Controls.Add(this.comboBox4);
this.ultraGroupBox1.Controls.Add(this.checkBox3);
this.ultraGroupBox1.Controls.Add(this.checkBox2);
this.ultraGroupBox1.Controls.Add(this.label9);
this.ultraGroupBox1.Controls.Add(this.dateTimePicker3);
this.ultraGroupBox1.Controls.Add(this.checkBox1);
this.ultraGroupBox1.Dock = System.Windows.Forms.DockStyle.Top;
this.ultraGroupBox1.Location = new System.Drawing.Point(0, 26);
this.ultraGroupBox1.Name = "ultraGroupBox1";
this.ultraGroupBox1.Size = new System.Drawing.Size(692, 56);
this.ultraGroupBox1.SupportThemes = false;
this.ultraGroupBox1.TabIndex = 32;
this.ultraGroupBox1.ViewStyle = Infragistics.Win.Misc.GroupBoxViewStyle.Office2000;
//
// 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 = "未置是炉号";
//
// 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;
//
// 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;
//
// dateTimePicker4
//
this.dateTimePicker4.CustomFormat = "yyyy-MM-dd HH:mm";
this.dateTimePicker4.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
this.dateTimePicker4.Location = new System.Drawing.Point(271, 7);
this.dateTimePicker4.Name = "dateTimePicker4";
this.dateTimePicker4.Size = new System.Drawing.Size(120, 21);
this.dateTimePicker4.TabIndex = 6;
//
// textBox1
//
this.textBox1.Enabled = false;
this.textBox1.Location = new System.Drawing.Point(465, 7);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(80, 21);
this.textBox1.TabIndex = 22;
//
// comboBox4
//
this.comboBox4.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBox4.Enabled = false;
this.comboBox4.Location = new System.Drawing.Point(608, 7);
this.comboBox4.Name = "comboBox4";
this.comboBox4.Size = new System.Drawing.Size(64, 20);
this.comboBox4.TabIndex = 16;
//
// checkBox3
//
this.checkBox3.Location = new System.Drawing.Point(552, 6);
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, 6);
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(247, 11);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(29, 17);
this.label9.TabIndex = 7;
this.label9.Text = "到:";
//
// dateTimePicker3
//
this.dateTimePicker3.CustomFormat = "yyyy-MM-dd HH:mm";
this.dateTimePicker3.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
this.dateTimePicker3.Location = new System.Drawing.Point(108, 7);
this.dateTimePicker3.Name = "dateTimePicker3";
this.dateTimePicker3.Size = new System.Drawing.Size(124, 21);
this.dateTimePicker3.TabIndex = 5;
//
// checkBox1
//
this.checkBox1.Checked = true;
this.checkBox1.CheckState = System.Windows.Forms.CheckState.Checked;
this.checkBox1.Location = new System.Drawing.Point(8, 4);
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);
//
// ultraToolbarsManager1
//
this.ultraToolbarsManager1.DesignerFlags = 1;
this.ultraToolbarsManager1.DockWithinContainer = this.panel1;
this.ultraToolbarsManager1.LockToolbars = true;
this.ultraToolbarsManager1.ShowFullMenusDelay = 500;
this.ultraToolbarsManager1.ShowQuickCustomizeButton = false;
this.ultraToolbarsManager1.Style = Infragistics.Win.UltraWinToolbars.ToolbarStyle.VisualStudio2005;
ultraToolbar1.DockedColumn = 0;
ultraToolbar1.DockedRow = 0;
ultraToolbar1.Text = "HkBar";
buttonTool1.InstanceProps.IsFirstInGroup = true;
buttonTool2.InstanceProps.IsFirstInGroup = true;
buttonTool3.InstanceProps.IsFirstInGroup = true;
buttonTool4.InstanceProps.IsFirstInGroup = true;
buttonTool5.InstanceProps.IsFirstInGroup = true;
buttonTool6.InstanceProps.IsFirstInGroup = true;
ultraToolbar1.Tools.AddRange(new Infragistics.Win.UltraWinToolbars.ToolBase[] {
buttonTool1,
buttonTool2,
buttonTool3,
buttonTool4,
buttonTool5,
buttonTool6,
buttonTool7});
this.ultraToolbarsManager1.Toolbars.AddRange(new Infragistics.Win.UltraWinToolbars.UltraToolbar[] {
ultraToolbar1});
buttonTool8.SharedProps.Caption = "新增(&N)";
buttonTool8.SharedProps.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.ImageAndText;
buttonTool8.SharedProps.Shortcut = System.Windows.Forms.Shortcut.CtrlN;
buttonTool8.SharedProps.Visible = false;
buttonTool9.SharedProps.Caption = "删除(&D)";
buttonTool9.SharedProps.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.ImageAndText;
buttonTool9.SharedProps.Shortcut = System.Windows.Forms.Shortcut.CtrlD;
buttonTool9.SharedProps.Visible = false;
buttonTool10.SharedProps.Caption = "修改(&E)";
buttonTool10.SharedProps.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.ImageAndText;
buttonTool10.SharedProps.Shortcut = System.Windows.Forms.Shortcut.CtrlE;
buttonTool10.SharedProps.Visible = false;
buttonTool11.SharedProps.Caption = "保存(&S)";
buttonTool11.SharedProps.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.ImageAndText;
buttonTool11.SharedProps.Shortcut = System.Windows.Forms.Shortcut.CtrlS;
buttonTool12.SharedProps.Caption = "退出(&X)";
buttonTool12.SharedProps.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.ImageAndText;
buttonTool12.SharedProps.Shortcut = System.Windows.Forms.Shortcut.CtrlX;
buttonTool12.SharedProps.Visible = false;
buttonTool13.SharedProps.Caption = "查询(&Q)";
buttonTool13.SharedProps.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.ImageAndText;
buttonTool13.SharedProps.Shortcut = System.Windows.Forms.Shortcut.CtrlQ;
buttonTool14.SharedProps.Caption = "单独查询";
buttonTool14.SharedProps.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.ImageAndText;
buttonTool15.SharedProps.Caption = "显示切换";
buttonTool15.SharedProps.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.ImageAndText;
buttonTool15.SharedProps.Shortcut = System.Windows.Forms.Shortcut.CtrlR;
this.ultraToolbarsManager1.Tools.AddRange(new Infragistics.Win.UltraWinToolbars.ToolBase[] {
buttonTool8,
buttonTool9,
buttonTool10,
buttonTool11,
buttonTool12,
buttonTool13,
buttonTool14,
buttonTool15});
this.ultraToolbarsManager1.ToolClick += new Infragistics.Win.UltraWinToolbars.ToolClickEventHandler(this.ultraToolbarsManager1_ToolClick);
//
// panel1
//
this.panel1.Controls.Add(this._panel1_Toolbars_Dock_Area_Left);
this.panel1.Controls.Add(this._panel1_Toolbars_Dock_Area_Right);
this.panel1.Controls.Add(this._panel1_Toolbars_Dock_Area_Top);
this.panel1.Controls.Add(this._panel1_Toolbars_Dock_Area_Bottom);
this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(692, 26);
this.panel1.TabIndex = 35;
//
// _panel1_Toolbars_Dock_Area_Left
//
this._panel1_Toolbars_Dock_Area_Left.AccessibleRole = System.Windows.Forms.AccessibleRole.Grouping;
this._panel1_Toolbars_Dock_Area_Left.BackColor = System.Drawing.SystemColors.Control;
this._panel1_Toolbars_Dock_Area_Left.DockedPosition = Infragistics.Win.UltraWinToolbars.DockedPosition.Left;
this._panel1_Toolbars_Dock_Area_Left.ForeColor = System.Drawing.SystemColors.ControlText;
this._panel1_Toolbars_Dock_Area_Left.Location = new System.Drawing.Point(0, 52);
this._panel1_Toolbars_Dock_Area_Left.Name = "_panel1_Toolbars_Dock_Area_Left";
this._panel1_Toolbars_Dock_Area_Left.Size = new System.Drawing.Size(0, 0);
this._panel1_Toolbars_Dock_Area_Left.ToolbarsManager = this.ultraToolbarsManager1;
//
// _panel1_Toolbars_Dock_Area_Right
//
this._panel1_Toolbars_Dock_Area_Right.AccessibleRole = System.Windows.Forms.AccessibleRole.Grouping;
this._panel1_Toolbars_Dock_Area_Right.BackColor = System.Drawing.SystemColors.Control;
this._panel1_Toolbars_Dock_Area_Right.DockedPosition = Infragistics.Win.UltraWinToolbars.DockedPosition.Right;
this._panel1_Toolbars_Dock_Area_Right.ForeColor = System.Drawing.SystemColors.ControlText;
this._panel1_Toolbars_Dock_Area_Right.Location = new System.Drawing.Point(692, 52);
this._panel1_Toolbars_Dock_Area_Right.Name = "_panel1_Toolbars_Dock_Area_Right";
this._panel1_Toolbars_Dock_Area_Right.Size = new System.Drawing.Size(0, 0);
this._panel1_Toolbars_Dock_Area_Right.ToolbarsManager = this.ultraToolbarsManager1;
//
// _panel1_Toolbars_Dock_Area_Top
//
this._panel1_Toolbars_Dock_Area_Top.AccessibleRole = System.Windows.Forms.AccessibleRole.Grouping;
this._panel1_Toolbars_Dock_Area_Top.BackColor = System.Drawing.SystemColors.Control;
this._panel1_Toolbars_Dock_Area_Top.DockedPosition = Infragistics.Win.UltraWinToolbars.DockedPosition.Top;
this._panel1_Toolbars_Dock_Area_Top.ForeColor = System.Drawing.SystemColors.ControlText;
this._panel1_Toolbars_Dock_Area_Top.Location = new System.Drawing.Point(0, 0);
this._panel1_Toolbars_Dock_Area_Top.Name = "_panel1_Toolbars_Dock_Area_Top";
this._panel1_Toolbars_Dock_Area_Top.Size = new System.Drawing.Size(692, 52);
this._panel1_Toolbars_Dock_Area_Top.ToolbarsManager = this.ultraToolbarsManager1;
//
// _panel1_Toolbars_Dock_Area_Bottom
//
this._panel1_Toolbars_Dock_Area_Bottom.AccessibleRole = System.Windows.Forms.AccessibleRole.Grouping;
this._panel1_Toolbars_Dock_Area_Bottom.BackColor = System.Drawing.SystemColors.Control;
this._panel1_Toolbars_Dock_Area_Bottom.DockedPosition = Infragistics.Win.UltraWinToolbars.DockedPosition.Bottom;
this._panel1_Toolbars_Dock_Area_Bottom.ForeColor = System.Drawing.SystemColors.ControlText;
this._panel1_Toolbars_Dock_Area_Bottom.Location = new System.Drawing.Point(0, 26);
this._panel1_Toolbars_Dock_Area_Bottom.Name = "_panel1_Toolbars_Dock_Area_Bottom";
this._panel1_Toolbars_Dock_Area_Bottom.Size = new System.Drawing.Size(692, 0);
this._panel1_Toolbars_Dock_Area_Bottom.ToolbarsManager = this.ultraToolbarsManager1;
//
// ultraExpandableGroupBox1
//
this.ultraExpandableGroupBox1.Controls.Add(this.ultraExpandableGroupBoxPanel1);
this.ultraExpandableGroupBox1.Dock = System.Windows.Forms.DockStyle.Bottom;
this.ultraExpandableGroupBox1.ExpandedSize = new System.Drawing.Size(713, 160);
this.ultraExpandableGroupBox1.Location = new System.Drawing.Point(0, 413);
this.ultraExpandableGroupBox1.Name = "ultraExpandableGroupBox1";
this.ultraExpandableGroupBox1.Size = new System.Drawing.Size(692, 168);
this.ultraExpandableGroupBox1.SupportThemes = false;
this.ultraExpandableGroupBox1.TabIndex = 36;
this.ultraExpandableGroupBox1.Text = "编辑";
this.ultraExpandableGroupBox1.ViewStyle = Infragistics.Win.Misc.GroupBoxViewStyle.Office2000;
this.ultraExpandableGroupBox1.Visible = false;
//
// ultraExpandableGroupBoxPanel1
//
this.ultraExpandableGroupBoxPanel1.Controls.Add(this.panel3);
this.ultraExpandableGroupBoxPanel1.Controls.Add(this.textBox15);
this.ultraExpandableGroupBoxPanel1.Controls.Add(this.textBox13);
this.ultraExpandableGroupBoxPanel1.Controls.Add(this.label4);
this.ultraExpandableGroupBoxPanel1.Controls.Add(this.comboBox6);
this.ultraExpandableGroupBoxPanel1.Controls.Add(this.dateTimePicker5);
this.ultraExpandableGroupBoxPanel1.Controls.Add(this.label19);
this.ultraExpandableGroupBoxPanel1.Controls.Add(this.label18);
this.ultraExpandableGroupBoxPanel1.Controls.Add(this.textBox11);
this.ultraExpandableGroupBoxPanel1.Controls.Add(this.label16);
this.ultraExpandableGroupBoxPanel1.Controls.Add(this.textBox10);
this.ultraExpandableGroupBoxPanel1.Controls.Add(this.label14);
this.ultraExpandableGroupBoxPanel1.Controls.Add(this.textBox9);
this.ultraExpandableGroupBoxPanel1.Controls.Add(this.label12);
this.ultraExpandableGroupBoxPanel1.Controls.Add(this.textBox3);
this.ultraExpandableGroupBoxPanel1.Controls.Add(this.label6);
this.ultraExpandableGroupBoxPanel1.Controls.Add(this.textBox8);
this.ultraExpandableGroupBoxPanel1.Controls.Add(this.textBox7);
this.ultraExpandableGroupBoxPanel1.Controls.Add(this.textBox6);
this.ultraExpandableGroupBoxPanel1.Controls.Add(this.textBox5);
this.ultraExpandableGroupBoxPanel1.Controls.Add(this.textBox2);
this.ultraExpandableGroupBoxPanel1.Controls.Add(this.label15);
this.ultraExpandableGroupBoxPanel1.Controls.Add(this.label13);
this.ultraExpandableGroupBoxPanel1.Controls.Add(this.comboBox5);
this.ultraExpandableGroupBoxPanel1.Controls.Add(this.label8);
this.ultraExpandableGroupBoxPanel1.Controls.Add(this.label11);
this.ultraExpandableGroupBoxPanel1.Controls.Add(this.comboBox2);
this.ultraExpandableGroupBoxPanel1.Controls.Add(this.label10);
this.ultraExpandableGroupBoxPanel1.Controls.Add(this.comboBox3);
this.ultraExpandableGroupBoxPanel1.Controls.Add(this.label3);
this.ultraExpandableGroupBoxPanel1.Controls.Add(this.label7);
this.ultraExpandableGroupBoxPanel1.Controls.Add(this.label2);
this.ultraExpandableGroupBoxPanel1.Controls.Add(this.label1);
this.ultraExpandableGroupBoxPanel1.Controls.Add(this.textBox14);
this.ultraExpandableGroupBoxPanel1.Controls.Add(this.textBox12);
this.ultraExpandableGroupBoxPanel1.Controls.Add(this.textBox4);
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(686, 146);
this.ultraExpandableGroupBoxPanel1.TabIndex = 0;
//
// panel3
//
this.panel3.BackColor = System.Drawing.Color.Gainsboro;
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.label22);
this.panel3.Controls.Add(this.textBox21);
this.panel3.Controls.Add(this.label23);
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(446, 0);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(240, 146);
this.panel3.TabIndex = 111;
//
// 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, 24);
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(48, 21);
this.textBox23.TabIndex = 20;
//
// label25
//
this.label25.Location = new System.Drawing.Point(160, 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(217, 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(168, 115);
this.textBox22.Name = "textBox22";
this.textBox22.ReadOnly = true;
this.textBox22.Size = new System.Drawing.Size(48, 21);
this.textBox22.TabIndex = 17;
//
// label22
//
this.label22.Location = new System.Drawing.Point(166, 99);
this.label22.Name = "label22";
this.label22.Size = new System.Drawing.Size(80, 16);
this.label22.TabIndex = 16;
this.label22.Text = "剩余支数";
//
// textBox21
//
this.textBox21.Location = new System.Drawing.Point(90, 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.Location = new System.Drawing.Point(87, 99);
this.label23.Name = "label23";
this.label23.Size = new System.Drawing.Size(71, 16);
this.label23.TabIndex = 14;
this.label23.Text = "已切割支数";
//
// textBox20
//
this.textBox20.Location = new System.Drawing.Point(12, 115);
this.textBox20.Name = "textBox20";
this.textBox20.ReadOnly = true;
this.textBox20.Size = new System.Drawing.Size(59, 21);
this.textBox20.TabIndex = 13;
//
// label24
//
this.label24.Location = new System.Drawing.Point(8, 99);
this.label24.Name = "label24";
this.label24.Size = new System.Drawing.Size(80, 12);
this.label24.TabIndex = 12;
this.label24.Text = "预测支数";
//
// textBox19
//
this.textBox19.Location = new System.Drawing.Point(168, 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.Location = new System.Drawing.Point(166, 56);
this.label21.Name = "label21";
this.label21.Size = new System.Drawing.Size(80, 16);
this.label21.TabIndex = 10;
this.label21.Text = "钢水重量";
//
// textBox18
//
this.textBox18.Location = new System.Drawing.Point(88, 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.Location = new System.Drawing.Point(88, 56);
this.label20.Name = "label20";
this.label20.Size = new System.Drawing.Size(64, 16);
this.label20.TabIndex = 8;
this.label20.Text = "大包重量";
//
// textBox17
//
this.textBox17.Location = new System.Drawing.Point(12, 72);
this.textBox17.Name = "textBox17";
this.textBox17.Size = new System.Drawing.Size(60, 21);
this.textBox17.TabIndex = 7;
this.textBox17.KeyDown += new System.Windows.Forms.KeyEventHandler(this.textBox17_KeyDown);
//
// label17
//
this.label17.Location = new System.Drawing.Point(7, 56);
this.label17.Name = "label17";
this.label17.Size = new System.Drawing.Size(80, 12);
this.label17.TabIndex = 6;
this.label17.Text = "上台重量";
//
// textBox16
//
this.textBox16.Location = new System.Drawing.Point(8, 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 = "正在切割炉号";
//
// 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(205, 50);
this.textBox15.Name = "textBox15";
this.textBox15.Size = new System.Drawing.Size(85, 21);
this.textBox15.TabIndex = 110;
//
// 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(205, 27);
this.textBox13.Name = "textBox13";
this.textBox13.Size = new System.Drawing.Size(85, 21);
this.textBox13.TabIndex = 108;
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(160, 32);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(41, 12);
this.label4.TabIndex = 107;
this.label4.Text = "坯料号";
//
// comboBox6
//
this.comboBox6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
this.comboBox6.DisplayMember = "id";
this.comboBox6.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBox6.Location = new System.Drawing.Point(378, 95);
this.comboBox6.Name = "comboBox6";
this.comboBox6.Size = new System.Drawing.Size(56, 20);
this.comboBox6.TabIndex = 106;
this.comboBox6.ValueMember = "id";
//
// dateTimePicker5
//
this.dateTimePicker5.Checked = false;
this.dateTimePicker5.CustomFormat = "yyyy-MM-dd HH:mm:ss";
this.dateTimePicker5.DropDownAlign = System.Windows.Forms.LeftRightAlignment.Right;
this.dateTimePicker5.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.dateTimePicker5.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
this.dateTimePicker5.Location = new System.Drawing.Point(78, 119);
this.dateTimePicker5.Name = "dateTimePicker5";
this.dateTimePicker5.Size = new System.Drawing.Size(210, 21);
this.dateTimePicker5.TabIndex = 83;
//
// label19
//
this.label19.AutoSize = true;
this.label19.Location = new System.Drawing.Point(16, 124);
this.label19.Name = "label19";
this.label19.Size = new System.Drawing.Size(53, 12);
this.label19.TabIndex = 82;
this.label19.Text = "切割时间";
//
// label18
//
this.label18.AutoSize = true;
this.label18.Location = new System.Drawing.Point(296, 100);
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(378, 73);
this.textBox11.Name = "textBox11";
this.textBox11.Size = new System.Drawing.Size(56, 21);
this.textBox11.TabIndex = 77;
//
// label16
//
this.label16.AutoSize = true;
this.label16.Location = new System.Drawing.Point(344, 78);
this.label16.Name = "label16";
this.label16.Size = new System.Drawing.Size(29, 12);
this.label16.TabIndex = 76;
this.label16.Text = "重量";
//
// textBox10
//
this.textBox10.Location = new System.Drawing.Point(378, 50);
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);
//
// label14
//
this.label14.AutoSize = true;
this.label14.Location = new System.Drawing.Point(344, 55);
this.label14.Name = "label14";
this.label14.Size = new System.Drawing.Size(29, 12);
this.label14.TabIndex = 74;
this.label14.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(378, 27);
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(344, 32);
this.label12.Name = "label12";
this.label12.Size = new System.Drawing.Size(29, 12);
this.label12.TabIndex = 72;
this.label12.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(378, 4);
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);
//
// label6
//
this.label6.AutoSize = true;
this.label6.Location = new System.Drawing.Point(344, 8);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(29, 12);
this.label6.TabIndex = 70;
this.label6.Text = "长度";
//
// textBox8
//
this.textBox8.Location = new System.Drawing.Point(78, 4);
this.textBox8.Name = "textBox8";
this.textBox8.Size = new System.Drawing.Size(58, 21);
this.textBox8.TabIndex = 69;
//
// textBox7
//
this.textBox7.Location = new System.Drawing.Point(78, 50);
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(78, 27);
this.textBox6.Name = "textBox6";
this.textBox6.Size = new System.Drawing.Size(58, 21);
this.textBox6.TabIndex = 67;
//
// 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(205, 73);
this.textBox5.Name = "textBox5";
this.textBox5.Size = new System.Drawing.Size(85, 21);
this.textBox5.TabIndex = 105;
//
// 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(205, 4);
this.textBox2.Name = "textBox2";
this.textBox2.Size = new System.Drawing.Size(85, 21);
this.textBox2.TabIndex = 101;
//
// label15
//
this.label15.AutoSize = true;
this.label15.Location = new System.Drawing.Point(4, 55);
this.label15.Name = "label15";
this.label15.Size = new System.Drawing.Size(65, 12);
this.label15.TabIndex = 63;
this.label15.Text = "浇次内炉数";
//
// label13
//
this.label13.AutoSize = true;
this.label13.Location = new System.Drawing.Point(4, 32);
this.label13.Name = "label13";
this.label13.Size = new System.Drawing.Size(65, 12);
this.label13.TabIndex = 62;
this.label13.Text = "浇次内顺序";
//
// comboBox5
//
this.comboBox5.DisplayMember = "id";
this.comboBox5.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBox5.Location = new System.Drawing.Point(78, 95);
this.comboBox5.Name = "comboBox5";
this.comboBox5.Size = new System.Drawing.Size(58, 20);
this.comboBox5.TabIndex = 104;
this.comboBox5.ValueMember = "id";
//
// label8
//
this.label8.AutoSize = true;
this.label8.Location = new System.Drawing.Point(28, 100);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(41, 12);
this.label8.TabIndex = 61;
this.label8.Text = "铸流号";
//
// label11
//
this.label11.AutoSize = true;
this.label11.Location = new System.Drawing.Point(148, 78);
this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(53, 12);
this.label11.TabIndex = 59;
this.label11.Text = "切割序号";
//
// comboBox2
//
this.comboBox2.DisplayMember = "id";
this.comboBox2.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBox2.Location = new System.Drawing.Point(78, 73);
this.comboBox2.Name = "comboBox2";
this.comboBox2.Size = new System.Drawing.Size(58, 20);
this.comboBox2.TabIndex = 103;
this.comboBox2.ValueMember = "id";
//
// label10
//
this.label10.AutoSize = true;
this.label10.Location = new System.Drawing.Point(28, 78);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(41, 12);
this.label10.TabIndex = 58;
this.label10.Text = "铸机号";
//
// comboBox3
//
this.comboBox3.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBox3.Items.AddRange(new object[] {
"1#铸机",
"2#铸机",
"3#铸机",
"其他"});
this.comboBox3.Location = new System.Drawing.Point(205, 95);
this.comboBox3.Name = "comboBox3";
this.comboBox3.Size = new System.Drawing.Size(85, 20);
this.comboBox3.TabIndex = 54;
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(173, 55);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(29, 12);
this.label3.TabIndex = 56;
this.label3.Text = "块号";
//
// label7
//
this.label7.AutoSize = true;
this.label7.Location = new System.Drawing.Point(28, 8);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(41, 12);
this.label7.TabIndex = 55;
this.label7.Text = "浇次号";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(173, 100);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(29, 12);
this.label2.TabIndex = 53;
this.label2.Text = "班次";
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(160, 8);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(41, 12);
this.label1.TabIndex = 52;
this.label1.Text = "熔炼号";
//
// textBox14
//
this.textBox14.Location = new System.Drawing.Point(320, 120);
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;
//
// textBox12
//
this.textBox12.Location = new System.Drawing.Point(312, 122);
this.textBox12.Name = "textBox12";
this.textBox12.Size = new System.Drawing.Size(96, 21);
this.textBox12.TabIndex = 79;
this.textBox12.Visible = false;
//
// textBox4
//
this.textBox4.Location = new System.Drawing.Point(312, 122);
this.textBox4.Name = "textBox4";
this.textBox4.Size = new System.Drawing.Size(96, 21);
this.textBox4.TabIndex = 102;
this.textBox4.Visible = false;
//
// splitter1
//
this.splitter1.Dock = System.Windows.Forms.DockStyle.Right;
this.splitter1.Location = new System.Drawing.Point(692, 0);
this.splitter1.Name = "splitter1";
this.splitter1.Size = new System.Drawing.Size(3, 581);
this.splitter1.TabIndex = 107;
this.splitter1.TabStop = false;
//
// panel2
//
this.panel2.Dock = System.Windows.Forms.DockStyle.Right;
this.panel2.Location = new System.Drawing.Point(695, 0);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(333, 581);
this.panel2.TabIndex = 106;
this.panel2.Visible = false;
this.panel2.Paint += new System.Windows.Forms.PaintEventHandler(this.panel2_Paint);
//
// FrmCutBilletDetailQuery
//
this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
this.ClientSize = new System.Drawing.Size(1028, 581);
this.Controls.Add(this.ultraGrid1);
this.Controls.Add(this.ultraGroupBox1);
this.Controls.Add(this.ultraExpandableGroupBox1);
this.Controls.Add(this.panel1);
this.Controls.Add(this.splitter1);
this.Controls.Add(this.panel2);
this.Name = "FrmCutBilletDetailQuery";
this.Text = "切割明细";
this.Load += new System.EventHandler(this.FrmCutBilletDetailQuery_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.ultraToolbarsManager1)).EndInit();
this.panel1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.ultraExpandableGroupBox1)).EndInit();
this.ultraExpandableGroupBox1.ResumeLayout(false);
this.ultraExpandableGroupBoxPanel1.ResumeLayout(false);
this.ultraExpandableGroupBoxPanel1.PerformLayout();
this.panel3.ResumeLayout(false);
this.panel3.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事情
#region " Init "
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[]{"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));
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')",
this.dateTimePicker3.Value.ToString("yyyy-MM-dd HH:mm"),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.SelectedValue);
}
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
{
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 = ClientCommon._RemotingHelp.ExecuteMethod(par, out strOut) as DataSet;
if( _dsMid != null )
{
this.ultraGrid1.DataSource = _dsMid.Tables[0];
}
string strOld = "";
string strNew = "";
Color c1 = Color.GhostWhite;//Color.White;
Color c2 = Color.MintCream;//Color.GhostWhite;//Color.LightCyan;
Color c3 = c1;
for (int i=0; i< this.ultraGrid1.Rows.Count; i++)
{
UltraGridRow ugr = this.ultraGrid1.Rows[i];
strNew = ugr.Cells["HEATNO"].Value.ToString();
if (strOld != strNew)
{
if (c3 == c1) c3 = c2;
else c3 = c1;
strOld = strNew;
}
ugr.Appearance.BackColor = c3;
}
}
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.SelectedValue = ugr.Cells[2].Value.ToString();
this.comboBox5.SelectedValue = ugr.Cells[3].Value.ToString();
this.textBox5.Text = ugr.Cells[4].Value.ToString();
this.textBox8.Text = ugr.Cells[5].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.SelectedValue = ugr.Cells[14].Value.ToString();
else
{
this.comboBox3.SelectedIndex = -1;
this.comboBox3.Text = "";
}
if (ugr.Cells[15] == null)
this.comboBox6.SelectedValue = "N";
else
this.comboBox6.SelectedValue = ugr.Cells[15].Value.ToString();
}
catch{}
}
#endregion
#region " ToolBar Event "
private void ultraToolbarsManager1_ToolClick(object sender, Infragistics.Win.UltraWinToolbars.ToolClickEventArgs e)
{
switch(e.Tool.Key)
{
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 != 9)
{
MessageBox.Show("请输入炼号错误,长度不够,正确炉号如:06Z104320!");
return false;
}
if (strSmeltingID.Substring(0,1) != "0")
{
MessageBox.Show("请输入炼号错误,第一位不是'0',正确炉号如:06Z104320!");
return false;
}
if (strSmeltingID.Substring(2,1) != "Z")
{
MessageBox.Show("请输入炼号错误,第一位不是'Z',正确炉号如:06Z104320!");
return false;
}
if (Convert.ToUInt16(strSmeltingID.Substring(3,1)) > 3)
{
MessageBox.Show("请输入炼号错误,第一位不是'1','2'或'3',正确炉号如:06Z104320!");
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 void Add()
{
LastUpdateTime = DateTime.Now;
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();
}
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;
}
//如果是最后一块,需要检查是否多置了标志
// int nLastBlock = CheckLastBlockCount();
// if (nLastBlock >= 1)
// {
// comboBox6.SelectedIndex = 1;
// }
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(1,8) + "0" + strHeatNum;
else if ( nHeatNum >= 100) ar[16] = strHeatNo.Substring(1,8) + strHeatNum.Substring(1,2);
else ar[16] = strHeatNo.Substring(1,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
{
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 = 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 = "";
UltraGridRow ugr = this.ultraGrid1.ActiveRow;
if (ugr == null)
{
MessageBox.Show("请选择要删除的行!");
return;
}
strHeatNo = ugr.Cells["HEATNO"].Value.ToString();
strCastNo = ugr.Cells["MOULDNO"].Value .ToString();
nSelCutNo = Convert.ToInt32(ugr.Cells["CUTSEQNO"].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())
{
nCutNo++;
}
}
}
if (nCutNo != nSelCutNo)
{
MessageBox.Show("请选择要最后一行删除!");
return;
}
FrmSelDel frm = new FrmSelDel();
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
{
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);
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
{
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 = 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.SelectedValue);
ar.Add(this.comboBox5.SelectedValue);
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("yyyy-MM-dd HH:mm:ss"));
ar.Add(this.comboBox3.SelectedValue);
if (this.comboBox6.SelectedIndex == -1)
ar.Add("N");
else
ar.Add(this.comboBox6.SelectedValue);
ar.Add(this.textBox13.Text.Trim());
ar.Add(this.textBox14.Text.Trim());
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.LightCyan;
}
else
{
this.textBox1.Enabled = false;
this.textBox1.BackColor = Color.Gainsboro;
}
}
private void checkBox3_CheckedChanged(object sender, System.EventArgs e)
{
if (this.checkBox3.Checked)
{
this.comboBox4.Enabled = true;
this.comboBox4.BackColor = Color.LightCyan;
}
else
{
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
{
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};
string strOut = "";
object obj = 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 = "";
//查询列出浇次所有的切割块
_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
{
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 = 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
{
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 = 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 = 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
{
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 = 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);
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 = 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);
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 = 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.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();
}
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
{
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();
}
//
// if( _dsMid != null && _dsMid.Tables[0].Rows.Count > 0 )
// {
// _dsMid.Tables[0].Rows.Clear();
// }
DataSet dsTemp = ClientCommon._RemotingHelp.ExecuteMethod(par, out strOut) as DataSet;
if( dsTemp.Tables[0].Rows.Count > 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 = "";
Color c1 = Color.GhostWhite;//Color.White;
Color c2 = Color.MintCream;//Color.GhostWhite;//Color.LightCyan;
Color c3 = c1;
//同时定位到最后一行
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;
}
}
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);
FrmSetHeatid setheatCcmFrm;
//heatID=heatID.Substring(0,13);
//this.commClass.setHeatID(heatID);
setheatCcmFrm = new FrmSetHeatid( );
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 FrmCutBilletDetailQuery_Load(object sender, EventArgs e)
{
//ultraGrid1.Font = new System.Drawing.Font("Tahoma", 9F);
ultraGrid1.DisplayLayout.Appearance.FontData.SizeInPoints = 10;
this.dateTimePicker3.Text = System.DateTime.Today.ToString("yyyy-MM-dd") + " 00:00";
this.dateTimePicker4.Text = System.DateTime.Today.ToString("yyyy-MM-dd") + " 23:59";
GetSqlWhere();
GetData();
InitComboBoxSource();
FrmProductQueryQuery ctr = new FrmProductQueryQuery();
ctr.reportSelect = new FrmProductQueryQuery.ReportSelect(PlanBlockChange);
ctr.reportHandSet = new FrmProductQueryQuery.ReportHandSet(HandleSetClear);
//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;
}
}
}