using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using Core.Mes.ClientFrameWork;
using Core.Mes.IBaseInterface;
using System.Data;
using  System.Runtime.InteropServices;

namespace Core.XgMes.Client.JGKC.TurnoffManager
{
	/// <summary>
	/// FrmTurnoffMoveButtress 的摘要说明。
	/// </summary>
	public class FrmTurnoffMoveButtress : Mes.ClientFrameWork.FrmBase
	{
		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.DataSet ds_TurnoffButtress;
		private System.Data.DataTable dataTable2;
		private System.Data.DataColumn dataColumn24;
		private System.Data.DataColumn dataColumn25;
		private System.Data.DataColumn dataColumn26;
		private System.Data.DataColumn dataColumn23;
		private System.Data.DataColumn dataColumn27;
		private System.Data.DataColumn dataColumn28;
		private System.Data.DataColumn dataColumn29;
		private System.Data.DataColumn dataColumn30;
		private System.Data.DataColumn dataColumn31;
		private System.Data.DataColumn dataColumn32;
		private System.Data.DataColumn dataColumn33;
		private System.Data.DataColumn dataColumn34;
		private System.Data.DataColumn dataColumn35;
		private System.Data.DataColumn dataColumn36;
		private System.Data.DataColumn dataColumn37;
		private System.Data.DataColumn dataColumn42;
		private System.Data.DataColumn dataColumn16;
		private System.Data.DataColumn dataColumn19;
		private System.Data.DataColumn dataColumn1;
		private System.Data.DataColumn dataColumn2;
		private System.Data.DataColumn dataColumn4;
		private System.Data.DataColumn dataColumn3;
		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 Infragistics.Win.UltraWinGrid.ExcelExport.UltraGridExcelExporter excelExporter;
		private Infragistics.Win.Misc.UltraGroupBox ultraGroupBox1;
		private Infragistics.Win.Misc.UltraButton btn_ClearFilter;
		private Infragistics.Win.UltraWinEditors.UltraCheckEditor chk_AllowFilter;
		private Infragistics.Win.UltraWinEditors.UltraComboEditor cmb_ProductLine;
		private Infragistics.Win.UltraWinEditors.UltraCheckEditor chk_LineAndSteel;
		private Infragistics.Win.Misc.UltraLabel ultraLabel10;
		private Infragistics.Win.UltraWinEditors.UltraTextEditor txt_RollNOEnd;
		private Infragistics.Win.UltraWinEditors.UltraTextEditor txt_RollNOBegin;
		private Infragistics.Win.UltraWinEditors.UltraTextEditor txt_RollTop;
		private Infragistics.Win.UltraWinEditors.UltraCheckEditor chk_RollNum;
		private Infragistics.Win.UltraWinEditors.UltraNumericEditor txt_CD;
		private Infragistics.Win.UltraWinEditors.UltraNumericEditor txt_KD;
		private Infragistics.Win.UltraWinEditors.UltraNumericEditor txt_HD;
		private Infragistics.Win.UltraWinEditors.UltraCheckEditor chk_Spet;
		private Infragistics.Win.UltraWinEditors.UltraTextEditor txt_Condole;
		private Infragistics.Win.UltraWinEditors.UltraCheckEditor chk_Condole;
		private Infragistics.Win.UltraWinGrid.UltraCombo cmb_SteelType;
		private Infragistics.Win.UltraWinGrid.UltraCombo cmb_Area;
		private Infragistics.Win.UltraWinEditors.UltraCheckEditor chk_Area;
		private Infragistics.Win.UltraWinGrid.UltraCombo cmb_Buttress;
		private Infragistics.Win.UltraWinEditors.UltraCheckEditor Chk_Buttress;
		private Infragistics.Win.UltraWinEditors.UltraTextEditor txt_PlanNO;
		private Infragistics.Win.UltraWinEditors.UltraCheckEditor Chk_PlanNO;
		private Infragistics.Win.UltraWinEditors.UltraTextEditor txt_PactNO;
		private Infragistics.Win.UltraWinEditors.UltraCheckEditor Chk_PactNO;
		private Infragistics.Win.Misc.UltraExpandableGroupBox ultraExpandableGroupBox1;
		private Infragistics.Win.Misc.UltraExpandableGroupBoxPanel ultraExpandableGroupBoxPanel1;
		private System.Windows.Forms.Panel panel2;
		private Infragistics.Win.UltraWinEditors.UltraTextEditor txt_XDH;
		private Infragistics.Win.UltraWinEditors.UltraTextEditor txt_YDH;
		private Infragistics.Win.UltraWinEditors.UltraCheckEditor Chk_Replace;
		private Infragistics.Win.UltraWinEditors.UltraCheckEditor Chk_Add;
		private Infragistics.Win.UltraWinGrid.UltraCombo txt_HandleMan;
		private Infragistics.Win.Misc.UltraLabel ultraLabel9;
		private Infragistics.Win.UltraWinEditors.UltraDateTimeEditor Dte_AjustTime;
		private Infragistics.Win.Misc.UltraLabel ultraLabel8;
		private Infragistics.Win.UltraWinGrid.UltraCombo cmb_BZ;
		private Infragistics.Win.Misc.UltraLabel ultraLabel6;
		private Infragistics.Win.UltraWinGrid.UltraCombo cmb_BC;
		private Infragistics.Win.Misc.UltraLabel ultraLabel7;
		private Infragistics.Win.UltraWinGrid.UltraCombo cmb_NewArea;
		private Infragistics.Win.Misc.UltraLabel ultraLabel5;
		private Infragistics.Win.UltraWinEditors.UltraTextEditor txt_XDHDate;
		private Infragistics.Win.UltraWinEditors.UltraTextEditor txt_YDHDate;
		private Infragistics.Win.UltraWinEditors.UltraCheckEditor chk_XH;
		private Infragistics.Win.UltraWinEditors.UltraTextEditor txt_YY;
		private System.Windows.Forms.Label lab_Weight;
		private Infragistics.Win.UltraWinEditors.UltraTextEditor txt_XH;
		private Infragistics.Win.Misc.UltraLabel ultraLabel4;
		private Infragistics.Win.Misc.UltraLabel ultraLabel3;
		private Infragistics.Win.UltraWinGrid.UltraCombo cmb_NewButtress;
		private Infragistics.Win.Misc.UltraLabel ultraLabel2;
		private Infragistics.Win.UltraWinGrid.UltraCombo cmb_OldButtress;
		private Infragistics.Win.Misc.UltraLabel ultraLabel1;
		private Infragistics.Win.UltraWinGrid.UltraGrid dg_TurnoffButtress;
		private System.Data.DataColumn dataColumn10;
		private System.Data.DataColumn dataColumn11;
		private Infragistics.Win.UltraWinEditors.UltraCheckEditor chk_Size;
		private Infragistics.Win.Misc.UltraLabel ultraLabel11;
		private Infragistics.Win.Misc.UltraLabel ultraLabel13;
		private Infragistics.Win.UltraWinEditors.UltraNumericEditor txt_KS;
		private Infragistics.Win.UltraWinEditors.UltraNumericEditor txt_CS;
		private Infragistics.Win.UltraWinEditors.UltraComboEditor cmb_KCondition;
		private Infragistics.Win.UltraWinEditors.UltraComboEditor cmb_CCondition;
		private System.Data.DataColumn dataColumn12;
		private Infragistics.Win.Misc.UltraLabel ultraLabel12;
		private System.Data.DataColumn dataColumn13;
		private Infragistics.Win.Misc.UltraLabel ultraLabel14;
		private System.Data.DataColumn dataColumn14;
		private Infragistics.Win.Misc.UltraLabel ultraLabel15;
		private System.Data.DataColumn dataColumn15;
		private System.Data.DataColumn dataColumn17;
        private DataColumn dataColumn18;
        private DataColumn dataColumn20;
        private DataColumn dataColumn21;
        private DataColumn dataColumn22;
        private DataColumn dataColumn38;
        private Infragistics.Win.UltraWinEditors.UltraCheckEditor chk_SendType;
        private DataColumn dataColumn39;
        private DataColumn dataColumn40;
        private DataColumn dataColumn41;
        private DataColumn dataColumn43;
        private DataColumn dataColumn44;
        private DataColumn dataColumn45;
        private Infragistics.Win.UltraWinEditors.UltraComboEditor ult_Remark;
		private System.ComponentModel.IContainer components;

		public FrmTurnoffMoveButtress()
		{
			//
			// Windows 窗体设计器支持所必需的
			//
			InitializeComponent();

			//
			// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
			//
		}

		/// <summary>
		/// 清理所有正在使用的资源。
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows 窗体设计器生成的代码
		/// <summary>
		/// 设计器支持所需的方法 - 不要使用代码编辑器修改
		/// 此方法的内容。
		/// </summary>
		private void InitializeComponent()
		{
            this.components = new System.ComponentModel.Container();
            Infragistics.Win.UltraWinToolbars.UltraToolbar ultraToolbar1 = new Infragistics.Win.UltraWinToolbars.UltraToolbar("工具栏");
            Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool1 = new Infragistics.Win.UltraWinToolbars.ButtonTool("MoveButtress");
            Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool2 = new Infragistics.Win.UltraWinToolbars.ButtonTool("QueryButtress");
            Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool3 = new Infragistics.Win.UltraWinToolbars.ButtonTool("ExportButtressInfo");
            Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool4 = new Infragistics.Win.UltraWinToolbars.ButtonTool("Print");
            Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool5 = new Infragistics.Win.UltraWinToolbars.ButtonTool("Close");
            Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool6 = new Infragistics.Win.UltraWinToolbars.ButtonTool("PRINT_LOG");
            Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool7 = new Infragistics.Win.UltraWinToolbars.ButtonTool("MoveButtress");
            Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool8 = new Infragistics.Win.UltraWinToolbars.ButtonTool("QueryButtress");
            Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool9 = new Infragistics.Win.UltraWinToolbars.ButtonTool("Close");
            Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool10 = new Infragistics.Win.UltraWinToolbars.ButtonTool("ExportButtressInfo");
            Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool11 = new Infragistics.Win.UltraWinToolbars.ButtonTool("Print");
            Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool12 = new Infragistics.Win.UltraWinToolbars.ButtonTool("PRINT_LOG");
            Infragistics.Win.Appearance appearance1 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance2 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance3 = new Infragistics.Win.Appearance();
            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.Appearance appearance4 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance5 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance6 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance7 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance8 = new Infragistics.Win.Appearance();
            Infragistics.Win.ValueListItem valueListItem11 = new Infragistics.Win.ValueListItem();
            Infragistics.Win.ValueListItem valueListItem12 = new Infragistics.Win.ValueListItem();
            Infragistics.Win.Appearance appearance9 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance10 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance11 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance12 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance13 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance14 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance15 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance16 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance17 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance18 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance19 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance20 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance21 = new Infragistics.Win.Appearance();
            Infragistics.Win.ValueListItem valueListItem13 = new Infragistics.Win.ValueListItem();
            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.Appearance appearance32 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance33 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance34 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance35 = new Infragistics.Win.Appearance();
            Infragistics.Win.UltraWinGrid.UltraGridBand ultraGridBand1 = new Infragistics.Win.UltraWinGrid.UltraGridBand("KCJ_TURNOFFBUTTRESSLIST", -1);
            Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn1 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("PRODUCTLINE");
            Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn2 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("ROLLNUMBER");
            Infragistics.Win.Appearance appearance36 = new Infragistics.Win.Appearance();
            Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn3 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("MOTHERBOARDNUMBER");
            Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn4 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("BILLETID");
            Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn5 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("DETERMINANTCARDNUMBER");
            Infragistics.Win.Appearance appearance37 = new Infragistics.Win.Appearance();
            Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn6 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("SPET");
            Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn7 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("THEORYWEIGHT");
            Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn8 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("DETERMINANTRESULT");
            Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn9 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("PLANNO");
            Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn10 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("PACTNO");
            Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn11 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("STOVENO");
            Infragistics.Win.Appearance appearance38 = new Infragistics.Win.Appearance();
            Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn12 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("ORDERNO");
            Infragistics.Win.Appearance appearance39 = new Infragistics.Win.Appearance();
            Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn13 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("PLY");
            Infragistics.Win.Appearance appearance40 = new Infragistics.Win.Appearance();
            Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn14 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("WIDTH");
            Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn15 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("LENGTH");
            Infragistics.Win.Appearance appearance41 = new Infragistics.Win.Appearance();
            Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn16 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("FACEQUALITY");
            Infragistics.Win.Appearance appearance42 = new Infragistics.Win.Appearance();
            Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn17 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("BUGREASON");
            Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn18 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("CLIPTYPEPROCESS");
            Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn19 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("SOURCEID");
            Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn20 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("INTIME");
            Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn21 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("BUTTRESS");
            Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn22 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("CONDOLENUMBER");
            Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn23 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("CONDOLELAYER");
            Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn24 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("BUTTRESSLAYER");
            Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn25 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("LOGICALLAYER");
            Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn26 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("AREA");
            Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn27 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("REMARK");
            Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn28 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("HANDREMARK");
            Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn29 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("CREATTIME");
            Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn30 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("OSPET");
            Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn31 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("INSTEEL");
            Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn32 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("SENDBEGINDATE");
            Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn33 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("YPLANNO");
            Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn34 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("YORDERNO");
            Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn35 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("ORDERBUYER");
            Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn36 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("PRODUCT_NAME");
            Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn37 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("MEMO");
            Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn38 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("DETECTMARBOOKIN");
            Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn39 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("ZHPDBH");
            Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn40 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("BUYERNAME");
            Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn41 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("STATIONNAME");
            Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn42 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("OSTEEL");
            Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn43 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("OPLY");
            Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn44 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("OWIDTH");
            Infragistics.Win.UltraWinGrid.UltraGridColumn ultraGridColumn45 = new Infragistics.Win.UltraWinGrid.UltraGridColumn("OLENGTH");
            Infragistics.Win.UltraWinGrid.SummarySettings summarySettings1 = new Infragistics.Win.UltraWinGrid.SummarySettings("", Infragistics.Win.UltraWinGrid.SummaryType.Count, null, "BILLETID", 3, true, "KCJ_TURNOFFBUTTRESSLIST", 0, Infragistics.Win.UltraWinGrid.SummaryPosition.UseSummaryPositionColumn, null, -1, false);
            Infragistics.Win.Appearance appearance43 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance44 = new Infragistics.Win.Appearance();
            Infragistics.Win.UltraWinGrid.SummarySettings summarySettings2 = new Infragistics.Win.UltraWinGrid.SummarySettings("", Infragistics.Win.UltraWinGrid.SummaryType.Sum, null, "THEORYWEIGHT", 6, true, "KCJ_TURNOFFBUTTRESSLIST", 0, Infragistics.Win.UltraWinGrid.SummaryPosition.UseSummaryPositionColumn, null, -1, false);
            Infragistics.Win.Appearance appearance45 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance46 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance47 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance48 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance49 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance50 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance51 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance52 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance53 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance54 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance55 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance56 = new Infragistics.Win.Appearance();
            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.ds_TurnoffButtress = new System.Data.DataSet();
            this.dataTable2 = new System.Data.DataTable();
            this.dataColumn24 = new System.Data.DataColumn();
            this.dataColumn25 = new System.Data.DataColumn();
            this.dataColumn26 = new System.Data.DataColumn();
            this.dataColumn23 = new System.Data.DataColumn();
            this.dataColumn36 = new System.Data.DataColumn();
            this.dataColumn9 = new System.Data.DataColumn();
            this.dataColumn33 = new System.Data.DataColumn();
            this.dataColumn37 = new System.Data.DataColumn();
            this.dataColumn28 = new System.Data.DataColumn();
            this.dataColumn8 = new System.Data.DataColumn();
            this.dataColumn27 = new System.Data.DataColumn();
            this.dataColumn29 = new System.Data.DataColumn();
            this.dataColumn30 = new System.Data.DataColumn();
            this.dataColumn31 = new System.Data.DataColumn();
            this.dataColumn32 = new System.Data.DataColumn();
            this.dataColumn34 = new System.Data.DataColumn();
            this.dataColumn35 = new System.Data.DataColumn();
            this.dataColumn42 = new System.Data.DataColumn();
            this.dataColumn16 = new System.Data.DataColumn();
            this.dataColumn19 = new System.Data.DataColumn();
            this.dataColumn1 = new System.Data.DataColumn();
            this.dataColumn2 = new System.Data.DataColumn();
            this.dataColumn4 = new System.Data.DataColumn();
            this.dataColumn3 = new System.Data.DataColumn();
            this.dataColumn5 = new System.Data.DataColumn();
            this.dataColumn6 = new System.Data.DataColumn();
            this.dataColumn7 = 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.dataColumn17 = new System.Data.DataColumn();
            this.dataColumn18 = new System.Data.DataColumn();
            this.dataColumn20 = new System.Data.DataColumn();
            this.dataColumn21 = new System.Data.DataColumn();
            this.dataColumn22 = new System.Data.DataColumn();
            this.dataColumn38 = new System.Data.DataColumn();
            this.dataColumn39 = new System.Data.DataColumn();
            this.dataColumn40 = new System.Data.DataColumn();
            this.dataColumn41 = new System.Data.DataColumn();
            this.dataColumn43 = new System.Data.DataColumn();
            this.dataColumn44 = new System.Data.DataColumn();
            this.dataColumn45 = new System.Data.DataColumn();
            this.excelExporter = new Infragistics.Win.UltraWinGrid.ExcelExport.UltraGridExcelExporter();
            this.ultraGroupBox1 = new Infragistics.Win.Misc.UltraGroupBox();
            this.chk_SendType = new Infragistics.Win.UltraWinEditors.UltraCheckEditor();
            this.ultraLabel15 = new Infragistics.Win.Misc.UltraLabel();
            this.ultraLabel14 = new Infragistics.Win.Misc.UltraLabel();
            this.ultraLabel12 = new Infragistics.Win.Misc.UltraLabel();
            this.cmb_CCondition = new Infragistics.Win.UltraWinEditors.UltraComboEditor();
            this.cmb_KCondition = new Infragistics.Win.UltraWinEditors.UltraComboEditor();
            this.txt_CS = new Infragistics.Win.UltraWinEditors.UltraNumericEditor();
            this.ultraLabel13 = new Infragistics.Win.Misc.UltraLabel();
            this.ultraLabel11 = new Infragistics.Win.Misc.UltraLabel();
            this.txt_KS = new Infragistics.Win.UltraWinEditors.UltraNumericEditor();
            this.chk_Size = new Infragistics.Win.UltraWinEditors.UltraCheckEditor();
            this.btn_ClearFilter = new Infragistics.Win.Misc.UltraButton();
            this.chk_AllowFilter = new Infragistics.Win.UltraWinEditors.UltraCheckEditor();
            this.cmb_ProductLine = new Infragistics.Win.UltraWinEditors.UltraComboEditor();
            this.chk_LineAndSteel = new Infragistics.Win.UltraWinEditors.UltraCheckEditor();
            this.ultraLabel10 = new Infragistics.Win.Misc.UltraLabel();
            this.txt_RollNOEnd = new Infragistics.Win.UltraWinEditors.UltraTextEditor();
            this.txt_RollNOBegin = new Infragistics.Win.UltraWinEditors.UltraTextEditor();
            this.txt_RollTop = new Infragistics.Win.UltraWinEditors.UltraTextEditor();
            this.chk_RollNum = new Infragistics.Win.UltraWinEditors.UltraCheckEditor();
            this.txt_CD = new Infragistics.Win.UltraWinEditors.UltraNumericEditor();
            this.txt_KD = new Infragistics.Win.UltraWinEditors.UltraNumericEditor();
            this.txt_HD = new Infragistics.Win.UltraWinEditors.UltraNumericEditor();
            this.chk_Spet = new Infragistics.Win.UltraWinEditors.UltraCheckEditor();
            this.txt_Condole = new Infragistics.Win.UltraWinEditors.UltraTextEditor();
            this.chk_Condole = new Infragistics.Win.UltraWinEditors.UltraCheckEditor();
            this.cmb_SteelType = new Infragistics.Win.UltraWinGrid.UltraCombo();
            this.cmb_Area = new Infragistics.Win.UltraWinGrid.UltraCombo();
            this.chk_Area = new Infragistics.Win.UltraWinEditors.UltraCheckEditor();
            this.cmb_Buttress = new Infragistics.Win.UltraWinGrid.UltraCombo();
            this.Chk_Buttress = new Infragistics.Win.UltraWinEditors.UltraCheckEditor();
            this.txt_PlanNO = new Infragistics.Win.UltraWinEditors.UltraTextEditor();
            this.Chk_PlanNO = new Infragistics.Win.UltraWinEditors.UltraCheckEditor();
            this.txt_PactNO = new Infragistics.Win.UltraWinEditors.UltraTextEditor();
            this.Chk_PactNO = new Infragistics.Win.UltraWinEditors.UltraCheckEditor();
            this.ultraExpandableGroupBox1 = new Infragistics.Win.Misc.UltraExpandableGroupBox();
            this.ultraExpandableGroupBoxPanel1 = new Infragistics.Win.Misc.UltraExpandableGroupBoxPanel();
            this.ult_Remark = new Infragistics.Win.UltraWinEditors.UltraComboEditor();
            this.txt_XDH = new Infragistics.Win.UltraWinEditors.UltraTextEditor();
            this.txt_YDH = new Infragistics.Win.UltraWinEditors.UltraTextEditor();
            this.Chk_Replace = new Infragistics.Win.UltraWinEditors.UltraCheckEditor();
            this.Chk_Add = new Infragistics.Win.UltraWinEditors.UltraCheckEditor();
            this.txt_HandleMan = new Infragistics.Win.UltraWinGrid.UltraCombo();
            this.ultraLabel9 = new Infragistics.Win.Misc.UltraLabel();
            this.Dte_AjustTime = new Infragistics.Win.UltraWinEditors.UltraDateTimeEditor();
            this.ultraLabel8 = new Infragistics.Win.Misc.UltraLabel();
            this.cmb_BZ = new Infragistics.Win.UltraWinGrid.UltraCombo();
            this.ultraLabel6 = new Infragistics.Win.Misc.UltraLabel();
            this.cmb_BC = new Infragistics.Win.UltraWinGrid.UltraCombo();
            this.ultraLabel7 = new Infragistics.Win.Misc.UltraLabel();
            this.cmb_NewArea = new Infragistics.Win.UltraWinGrid.UltraCombo();
            this.ultraLabel5 = new Infragistics.Win.Misc.UltraLabel();
            this.txt_XDHDate = new Infragistics.Win.UltraWinEditors.UltraTextEditor();
            this.txt_YDHDate = new Infragistics.Win.UltraWinEditors.UltraTextEditor();
            this.chk_XH = new Infragistics.Win.UltraWinEditors.UltraCheckEditor();
            this.txt_YY = new Infragistics.Win.UltraWinEditors.UltraTextEditor();
            this.lab_Weight = new System.Windows.Forms.Label();
            this.txt_XH = new Infragistics.Win.UltraWinEditors.UltraTextEditor();
            this.ultraLabel4 = new Infragistics.Win.Misc.UltraLabel();
            this.ultraLabel3 = new Infragistics.Win.Misc.UltraLabel();
            this.cmb_NewButtress = new Infragistics.Win.UltraWinGrid.UltraCombo();
            this.ultraLabel2 = new Infragistics.Win.Misc.UltraLabel();
            this.cmb_OldButtress = new Infragistics.Win.UltraWinGrid.UltraCombo();
            this.ultraLabel1 = new Infragistics.Win.Misc.UltraLabel();
            this.panel2 = new System.Windows.Forms.Panel();
            this.dg_TurnoffButtress = new Infragistics.Win.UltraWinGrid.UltraGrid();
            ((System.ComponentModel.ISupportInitialize)(this.ultraToolbarsManager1)).BeginInit();
            this.panel1.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.ds_TurnoffButtress)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.dataTable2)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.ultraGroupBox1)).BeginInit();
            this.ultraGroupBox1.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.cmb_CCondition)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.cmb_KCondition)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.txt_CS)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.txt_KS)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.cmb_ProductLine)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.txt_RollNOEnd)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.txt_RollNOBegin)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.txt_RollTop)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.txt_CD)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.txt_KD)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.txt_HD)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.txt_Condole)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.cmb_SteelType)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.cmb_Area)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.cmb_Buttress)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.txt_PlanNO)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.txt_PactNO)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.ultraExpandableGroupBox1)).BeginInit();
            this.ultraExpandableGroupBox1.SuspendLayout();
            this.ultraExpandableGroupBoxPanel1.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.ult_Remark)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.txt_XDH)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.txt_YDH)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.txt_HandleMan)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.Dte_AjustTime)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.cmb_BZ)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.cmb_BC)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.cmb_NewArea)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.txt_XDHDate)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.txt_YDHDate)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.txt_YY)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.txt_XH)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.cmb_NewButtress)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.cmb_OldButtress)).BeginInit();
            this.panel2.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.dg_TurnoffButtress)).BeginInit();
            this.SuspendLayout();
            // 
            // ultraToolbarsManager1
            // 
            this.ultraToolbarsManager1.DesignerFlags = 1;
            this.ultraToolbarsManager1.DockWithinContainer = this.panel1;
            this.ultraToolbarsManager1.ShowFullMenusDelay = 500;
            this.ultraToolbarsManager1.Style = Infragistics.Win.UltraWinToolbars.ToolbarStyle.Office2000;
            ultraToolbar1.DockedColumn = 0;
            ultraToolbar1.DockedRow = 0;
            ultraToolbar1.Text = "工具栏";
            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});
            this.ultraToolbarsManager1.Toolbars.AddRange(new Infragistics.Win.UltraWinToolbars.UltraToolbar[] {
            ultraToolbar1});
            this.ultraToolbarsManager1.ToolbarSettings.AllowCustomize = Infragistics.Win.DefaultableBoolean.False;
            buttonTool7.SharedProps.Caption = "调整";
            buttonTool7.SharedProps.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.ImageAndText;
            buttonTool8.SharedProps.Caption = "查询";
            buttonTool8.SharedProps.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.ImageAndText;
            buttonTool9.SharedProps.Caption = "关闭";
            buttonTool9.SharedProps.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.ImageAndText;
            buttonTool10.SharedProps.Caption = "导出";
            buttonTool10.SharedProps.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.ImageAndText;
            buttonTool11.SharedProps.Caption = "打印";
            buttonTool11.SharedProps.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.ImageAndText;
            buttonTool12.SharedProps.Caption = "打印标签";
            buttonTool12.SharedProps.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.ImageAndText;
            this.ultraToolbarsManager1.Tools.AddRange(new Infragistics.Win.UltraWinToolbars.ToolBase[] {
            buttonTool7,
            buttonTool8,
            buttonTool9,
            buttonTool10,
            buttonTool11,
            buttonTool12});
            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(1104, 32);
            this.panel1.TabIndex = 9;
            // 
            // _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, 49);
            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(1104, 49);
            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(1104, 49);
            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, 32);
            this._panel1_Toolbars_Dock_Area_Bottom.Name = "_panel1_Toolbars_Dock_Area_Bottom";
            this._panel1_Toolbars_Dock_Area_Bottom.Size = new System.Drawing.Size(1104, 0);
            this._panel1_Toolbars_Dock_Area_Bottom.ToolbarsManager = this.ultraToolbarsManager1;
            // 
            // ds_TurnoffButtress
            // 
            this.ds_TurnoffButtress.DataSetName = "NewDataSet";
            this.ds_TurnoffButtress.Locale = new System.Globalization.CultureInfo("zh-CN");
            this.ds_TurnoffButtress.Tables.AddRange(new System.Data.DataTable[] {
            this.dataTable2});
            // 
            // dataTable2
            // 
            this.dataTable2.Columns.AddRange(new System.Data.DataColumn[] {
            this.dataColumn24,
            this.dataColumn25,
            this.dataColumn26,
            this.dataColumn23,
            this.dataColumn36,
            this.dataColumn9,
            this.dataColumn33,
            this.dataColumn37,
            this.dataColumn28,
            this.dataColumn8,
            this.dataColumn27,
            this.dataColumn29,
            this.dataColumn30,
            this.dataColumn31,
            this.dataColumn32,
            this.dataColumn34,
            this.dataColumn35,
            this.dataColumn42,
            this.dataColumn16,
            this.dataColumn19,
            this.dataColumn1,
            this.dataColumn2,
            this.dataColumn4,
            this.dataColumn3,
            this.dataColumn5,
            this.dataColumn6,
            this.dataColumn7,
            this.dataColumn10,
            this.dataColumn11,
            this.dataColumn12,
            this.dataColumn13,
            this.dataColumn14,
            this.dataColumn15,
            this.dataColumn17,
            this.dataColumn18,
            this.dataColumn20,
            this.dataColumn21,
            this.dataColumn22,
            this.dataColumn38,
            this.dataColumn39,
            this.dataColumn40,
            this.dataColumn41,
            this.dataColumn43,
            this.dataColumn44,
            this.dataColumn45});
            this.dataTable2.TableName = "KCJ_TURNOFFBUTTRESSLIST";
            // 
            // dataColumn24
            // 
            this.dataColumn24.ColumnName = "PRODUCTLINE";
            // 
            // dataColumn25
            // 
            this.dataColumn25.ColumnName = "ROLLNUMBER";
            // 
            // dataColumn26
            // 
            this.dataColumn26.ColumnName = "MOTHERBOARDNUMBER";
            // 
            // dataColumn23
            // 
            this.dataColumn23.ColumnName = "BILLETID";
            // 
            // dataColumn36
            // 
            this.dataColumn36.ColumnName = "DETERMINANTCARDNUMBER";
            // 
            // dataColumn9
            // 
            this.dataColumn9.ColumnName = "SPET";
            // 
            // dataColumn33
            // 
            this.dataColumn33.ColumnName = "THEORYWEIGHT";
            this.dataColumn33.DataType = typeof(decimal);
            // 
            // dataColumn37
            // 
            this.dataColumn37.ColumnName = "DETERMINANTRESULT";
            // 
            // dataColumn28
            // 
            this.dataColumn28.ColumnName = "PLANNO";
            // 
            // dataColumn8
            // 
            this.dataColumn8.ColumnName = "PACTNO";
            // 
            // dataColumn27
            // 
            this.dataColumn27.ColumnName = "STOVENO";
            // 
            // dataColumn29
            // 
            this.dataColumn29.ColumnName = "ORDERNO";
            // 
            // dataColumn30
            // 
            this.dataColumn30.ColumnName = "PLY";
            this.dataColumn30.DataType = typeof(decimal);
            // 
            // dataColumn31
            // 
            this.dataColumn31.ColumnName = "WIDTH";
            this.dataColumn31.DataType = typeof(decimal);
            // 
            // dataColumn32
            // 
            this.dataColumn32.ColumnName = "LENGTH";
            this.dataColumn32.DataType = typeof(decimal);
            // 
            // dataColumn34
            // 
            this.dataColumn34.ColumnName = "FACEQUALITY";
            // 
            // dataColumn35
            // 
            this.dataColumn35.ColumnName = "BUGREASON";
            // 
            // dataColumn42
            // 
            this.dataColumn42.ColumnName = "CLIPTYPEPROCESS";
            // 
            // dataColumn16
            // 
            this.dataColumn16.ColumnName = "SOURCEID";
            // 
            // dataColumn19
            // 
            this.dataColumn19.ColumnName = "INTIME";
            // 
            // dataColumn1
            // 
            this.dataColumn1.ColumnName = "BUTTRESS";
            // 
            // dataColumn2
            // 
            this.dataColumn2.ColumnName = "CONDOLENUMBER";
            // 
            // dataColumn4
            // 
            this.dataColumn4.ColumnName = "CONDOLELAYER";
            this.dataColumn4.DataType = typeof(decimal);
            // 
            // dataColumn3
            // 
            this.dataColumn3.ColumnName = "BUTTRESSLAYER";
            this.dataColumn3.DataType = typeof(decimal);
            // 
            // dataColumn5
            // 
            this.dataColumn5.ColumnName = "LOGICALLAYER";
            // 
            // dataColumn6
            // 
            this.dataColumn6.ColumnName = "AREA";
            // 
            // dataColumn7
            // 
            this.dataColumn7.ColumnName = "REMARK";
            // 
            // dataColumn10
            // 
            this.dataColumn10.ColumnName = "HANDREMARK";
            // 
            // dataColumn11
            // 
            this.dataColumn11.ColumnName = "CREATTIME";
            // 
            // dataColumn12
            // 
            this.dataColumn12.ColumnName = "OSPET";
            // 
            // dataColumn13
            // 
            this.dataColumn13.ColumnName = "INSTEEL";
            // 
            // dataColumn14
            // 
            this.dataColumn14.ColumnName = "SENDBEGINDATE";
            // 
            // dataColumn15
            // 
            this.dataColumn15.ColumnName = "YPLANNO";
            // 
            // dataColumn17
            // 
            this.dataColumn17.ColumnName = "YORDERNO";
            // 
            // dataColumn18
            // 
            this.dataColumn18.ColumnName = "ORDERBUYER";
            // 
            // dataColumn20
            // 
            this.dataColumn20.ColumnName = "PRODUCT_NAME";
            // 
            // dataColumn21
            // 
            this.dataColumn21.ColumnName = "MEMO";
            // 
            // dataColumn22
            // 
            this.dataColumn22.ColumnName = "DETECTMARBOOKIN";
            // 
            // dataColumn38
            // 
            this.dataColumn38.ColumnName = "ZHPDBH";
            // 
            // dataColumn39
            // 
            this.dataColumn39.ColumnName = "BUYERNAME";
            // 
            // dataColumn40
            // 
            this.dataColumn40.ColumnName = "STATIONNAME";
            // 
            // dataColumn41
            // 
            this.dataColumn41.ColumnName = "OSTEEL";
            // 
            // dataColumn43
            // 
            this.dataColumn43.ColumnName = "OPLY";
            this.dataColumn43.DataType = typeof(decimal);
            // 
            // dataColumn44
            // 
            this.dataColumn44.ColumnName = "OWIDTH";
            this.dataColumn44.DataType = typeof(decimal);
            // 
            // dataColumn45
            // 
            this.dataColumn45.ColumnName = "OLENGTH";
            this.dataColumn45.DataType = typeof(decimal);
            // 
            // ultraGroupBox1
            // 
            this.ultraGroupBox1.Controls.Add(this.chk_SendType);
            this.ultraGroupBox1.Controls.Add(this.ultraLabel15);
            this.ultraGroupBox1.Controls.Add(this.ultraLabel14);
            this.ultraGroupBox1.Controls.Add(this.ultraLabel12);
            this.ultraGroupBox1.Controls.Add(this.cmb_CCondition);
            this.ultraGroupBox1.Controls.Add(this.cmb_KCondition);
            this.ultraGroupBox1.Controls.Add(this.txt_CS);
            this.ultraGroupBox1.Controls.Add(this.ultraLabel13);
            this.ultraGroupBox1.Controls.Add(this.ultraLabel11);
            this.ultraGroupBox1.Controls.Add(this.txt_KS);
            this.ultraGroupBox1.Controls.Add(this.chk_Size);
            this.ultraGroupBox1.Controls.Add(this.btn_ClearFilter);
            this.ultraGroupBox1.Controls.Add(this.chk_AllowFilter);
            this.ultraGroupBox1.Controls.Add(this.cmb_ProductLine);
            this.ultraGroupBox1.Controls.Add(this.chk_LineAndSteel);
            this.ultraGroupBox1.Controls.Add(this.ultraLabel10);
            this.ultraGroupBox1.Controls.Add(this.txt_RollNOEnd);
            this.ultraGroupBox1.Controls.Add(this.txt_RollNOBegin);
            this.ultraGroupBox1.Controls.Add(this.txt_RollTop);
            this.ultraGroupBox1.Controls.Add(this.chk_RollNum);
            this.ultraGroupBox1.Controls.Add(this.txt_CD);
            this.ultraGroupBox1.Controls.Add(this.txt_KD);
            this.ultraGroupBox1.Controls.Add(this.txt_HD);
            this.ultraGroupBox1.Controls.Add(this.chk_Spet);
            this.ultraGroupBox1.Controls.Add(this.txt_Condole);
            this.ultraGroupBox1.Controls.Add(this.chk_Condole);
            this.ultraGroupBox1.Controls.Add(this.cmb_SteelType);
            this.ultraGroupBox1.Controls.Add(this.cmb_Area);
            this.ultraGroupBox1.Controls.Add(this.chk_Area);
            this.ultraGroupBox1.Controls.Add(this.cmb_Buttress);
            this.ultraGroupBox1.Controls.Add(this.Chk_Buttress);
            this.ultraGroupBox1.Controls.Add(this.txt_PlanNO);
            this.ultraGroupBox1.Controls.Add(this.Chk_PlanNO);
            this.ultraGroupBox1.Controls.Add(this.txt_PactNO);
            this.ultraGroupBox1.Controls.Add(this.Chk_PactNO);
            this.ultraGroupBox1.Dock = System.Windows.Forms.DockStyle.Top;
            this.ultraGroupBox1.Location = new System.Drawing.Point(0, 32);
            this.ultraGroupBox1.Name = "ultraGroupBox1";
            this.ultraGroupBox1.Size = new System.Drawing.Size(1104, 80);
            this.ultraGroupBox1.SupportThemes = false;
            this.ultraGroupBox1.TabIndex = 12;
            // 
            // chk_SendType
            // 
            this.chk_SendType.Location = new System.Drawing.Point(954, 53);
            this.chk_SendType.Name = "chk_SendType";
            this.chk_SendType.Size = new System.Drawing.Size(72, 20);
            this.chk_SendType.TabIndex = 192;
            this.chk_SendType.TabStop = false;
            this.chk_SendType.Text = "已发运";
            // 
            // ultraLabel15
            // 
            appearance1.BackColor = System.Drawing.Color.Blue;
            this.ultraLabel15.Appearance = appearance1;
            this.ultraLabel15.Location = new System.Drawing.Point(832, 56);
            this.ultraLabel15.Name = "ultraLabel15";
            this.ultraLabel15.Size = new System.Drawing.Size(103, 16);
            this.ultraLabel15.TabIndex = 191;
            this.ultraLabel15.Text = "注意距交货期11天";
            // 
            // ultraLabel14
            // 
            appearance2.BackColor = System.Drawing.Color.DeepSkyBlue;
            this.ultraLabel14.Appearance = appearance2;
            this.ultraLabel14.Location = new System.Drawing.Point(832, 8);
            this.ultraLabel14.Name = "ultraLabel14";
            this.ultraLabel14.Size = new System.Drawing.Size(91, 16);
            this.ultraLabel14.TabIndex = 190;
            this.ultraLabel14.Text = "注意牌号已改变";
            // 
            // ultraLabel12
            // 
            appearance3.BackColor = System.Drawing.Color.OrangeRed;
            this.ultraLabel12.Appearance = appearance3;
            this.ultraLabel12.Location = new System.Drawing.Point(832, 32);
            this.ultraLabel12.Name = "ultraLabel12";
            this.ultraLabel12.Size = new System.Drawing.Size(140, 16);
            this.ultraLabel12.TabIndex = 189;
            this.ultraLabel12.Text = "注意（红色）规格已改变";
            // 
            // cmb_CCondition
            // 
            this.cmb_CCondition.AutoSize = true;
            this.cmb_CCondition.ButtonStyle = Infragistics.Win.UIElementButtonStyle.VisualStudio2005Button;
            this.cmb_CCondition.Enabled = false;
            this.cmb_CCondition.FlatMode = true;
            valueListItem1.DataValue = ">";
            valueListItem1.DisplayText = ">";
            valueListItem2.DataValue = "<";
            valueListItem2.DisplayText = "<";
            valueListItem3.DataValue = ">=";
            valueListItem3.DisplayText = ">=";
            valueListItem4.DataValue = "<=";
            valueListItem4.DisplayText = "<=";
            valueListItem5.DataValue = "=";
            valueListItem5.DisplayText = "=";
            this.cmb_CCondition.Items.Add(valueListItem1);
            this.cmb_CCondition.Items.Add(valueListItem2);
            this.cmb_CCondition.Items.Add(valueListItem3);
            this.cmb_CCondition.Items.Add(valueListItem4);
            this.cmb_CCondition.Items.Add(valueListItem5);
            this.cmb_CCondition.Location = new System.Drawing.Point(592, 55);
            this.cmb_CCondition.Name = "cmb_CCondition";
            this.cmb_CCondition.Size = new System.Drawing.Size(48, 19);
            this.cmb_CCondition.TabIndex = 188;
            // 
            // cmb_KCondition
            // 
            this.cmb_KCondition.AutoSize = true;
            this.cmb_KCondition.ButtonStyle = Infragistics.Win.UIElementButtonStyle.VisualStudio2005Button;
            this.cmb_KCondition.Enabled = false;
            this.cmb_KCondition.FlatMode = true;
            valueListItem6.DataValue = ">";
            valueListItem6.DisplayText = ">";
            valueListItem7.DataValue = "<";
            valueListItem7.DisplayText = "<";
            valueListItem8.DataValue = ">=";
            valueListItem8.DisplayText = ">=";
            valueListItem9.DataValue = "<=";
            valueListItem9.DisplayText = "<=";
            valueListItem10.DataValue = "=";
            valueListItem10.DisplayText = "=";
            this.cmb_KCondition.Items.Add(valueListItem6);
            this.cmb_KCondition.Items.Add(valueListItem7);
            this.cmb_KCondition.Items.Add(valueListItem8);
            this.cmb_KCondition.Items.Add(valueListItem9);
            this.cmb_KCondition.Items.Add(valueListItem10);
            this.cmb_KCondition.Location = new System.Drawing.Point(592, 32);
            this.cmb_KCondition.Name = "cmb_KCondition";
            this.cmb_KCondition.Size = new System.Drawing.Size(48, 19);
            this.cmb_KCondition.TabIndex = 187;
            // 
            // txt_CS
            // 
            appearance4.BackColor = System.Drawing.Color.LightCyan;
            this.txt_CS.Appearance = appearance4;
            this.txt_CS.Enabled = false;
            this.txt_CS.FlatMode = true;
            this.txt_CS.Location = new System.Drawing.Point(648, 55);
            this.txt_CS.MaskInput = "nnnnn";
            this.txt_CS.MaxValue = 99999;
            this.txt_CS.MinValue = -1;
            this.txt_CS.Name = "txt_CS";
            this.txt_CS.PromptChar = ' ';
            this.txt_CS.Size = new System.Drawing.Size(96, 19);
            this.txt_CS.TabIndex = 186;
            // 
            // ultraLabel13
            // 
            appearance5.BackColor = System.Drawing.Color.Magenta;
            this.ultraLabel13.Appearance = appearance5;
            this.ultraLabel13.Location = new System.Drawing.Point(568, 56);
            this.ultraLabel13.Name = "ultraLabel13";
            this.ultraLabel13.Size = new System.Drawing.Size(17, 16);
            this.ultraLabel13.TabIndex = 182;
            this.ultraLabel13.Text = "长";
            // 
            // ultraLabel11
            // 
            appearance6.BackColor = System.Drawing.Color.Magenta;
            this.ultraLabel11.Appearance = appearance6;
            this.ultraLabel11.Location = new System.Drawing.Point(568, 33);
            this.ultraLabel11.Name = "ultraLabel11";
            this.ultraLabel11.Size = new System.Drawing.Size(17, 16);
            this.ultraLabel11.TabIndex = 179;
            this.ultraLabel11.Text = "宽";
            // 
            // txt_KS
            // 
            appearance7.BackColor = System.Drawing.Color.LightCyan;
            this.txt_KS.Appearance = appearance7;
            this.txt_KS.Enabled = false;
            this.txt_KS.FlatMode = true;
            this.txt_KS.Location = new System.Drawing.Point(648, 32);
            this.txt_KS.MaskInput = "nnnn";
            this.txt_KS.MaxValue = 9999;
            this.txt_KS.MinValue = -1;
            this.txt_KS.Name = "txt_KS";
            this.txt_KS.PromptChar = ' ';
            this.txt_KS.Size = new System.Drawing.Size(96, 19);
            this.txt_KS.TabIndex = 178;
            // 
            // chk_Size
            // 
            this.chk_Size.FlatMode = true;
            this.chk_Size.Location = new System.Drawing.Point(488, 33);
            this.chk_Size.Name = "chk_Size";
            this.chk_Size.Size = new System.Drawing.Size(72, 16);
            this.chk_Size.TabIndex = 177;
            this.chk_Size.Text = "规格范围";
            this.chk_Size.CheckedChanged += new System.EventHandler(this.chk_Size_CheckedChanged);
            // 
            // btn_ClearFilter
            // 
            this.btn_ClearFilter.Location = new System.Drawing.Point(752, 47);
            this.btn_ClearFilter.Name = "btn_ClearFilter";
            this.btn_ClearFilter.Size = new System.Drawing.Size(64, 26);
            this.btn_ClearFilter.TabIndex = 176;
            this.btn_ClearFilter.Text = "清除过滤";
            this.btn_ClearFilter.Click += new System.EventHandler(this.btn_ClearFilter_Click);
            // 
            // chk_AllowFilter
            // 
            this.chk_AllowFilter.Location = new System.Drawing.Point(752, 8);
            this.chk_AllowFilter.Name = "chk_AllowFilter";
            this.chk_AllowFilter.Size = new System.Drawing.Size(72, 20);
            this.chk_AllowFilter.TabIndex = 175;
            this.chk_AllowFilter.TabStop = false;
            this.chk_AllowFilter.Text = "允许过滤";
            this.chk_AllowFilter.CheckedChanged += new System.EventHandler(this.chk_AllowFilter_CheckedChanged);
            // 
            // cmb_ProductLine
            // 
            appearance8.BackColor = System.Drawing.Color.LightCyan;
            this.cmb_ProductLine.Appearance = appearance8;
            this.cmb_ProductLine.AutoSize = true;
            this.cmb_ProductLine.Enabled = false;
            valueListItem11.DataValue = "4001HB1";
            valueListItem11.DisplayText = "厚板线";
            valueListItem12.DataValue = "4001ZB1";
            valueListItem12.DisplayText = "中板线";
            this.cmb_ProductLine.Items.Add(valueListItem11);
            this.cmb_ProductLine.Items.Add(valueListItem12);
            this.cmb_ProductLine.Location = new System.Drawing.Point(264, 32);
            this.cmb_ProductLine.Name = "cmb_ProductLine";
            this.cmb_ProductLine.Size = new System.Drawing.Size(112, 21);
            this.cmb_ProductLine.TabIndex = 174;
            this.cmb_ProductLine.TabStop = false;
            this.cmb_ProductLine.ValueChanged += new System.EventHandler(this.cmb_ProductLine_ValueChanged);
            // 
            // chk_LineAndSteel
            // 
            this.chk_LineAndSteel.FlatMode = true;
            this.chk_LineAndSteel.Location = new System.Drawing.Point(184, 35);
            this.chk_LineAndSteel.Name = "chk_LineAndSteel";
            this.chk_LineAndSteel.Size = new System.Drawing.Size(80, 16);
            this.chk_LineAndSteel.TabIndex = 173;
            this.chk_LineAndSteel.Text = "产线/牌号";
            this.chk_LineAndSteel.CheckedChanged += new System.EventHandler(this.chk_LineAndSteel_CheckedChanged);
            // 
            // ultraLabel10
            // 
            this.ultraLabel10.Location = new System.Drawing.Point(656, 12);
            this.ultraLabel10.Name = "ultraLabel10";
            this.ultraLabel10.Size = new System.Drawing.Size(17, 16);
            this.ultraLabel10.TabIndex = 172;
            this.ultraLabel10.Text = "至";
            // 
            // txt_RollNOEnd
            // 
            appearance9.BackColor = System.Drawing.Color.LightCyan;
            this.txt_RollNOEnd.Appearance = appearance9;
            this.txt_RollNOEnd.AutoSize = true;
            this.txt_RollNOEnd.Enabled = false;
            this.txt_RollNOEnd.FlatMode = true;
            this.txt_RollNOEnd.Location = new System.Drawing.Point(674, 8);
            this.txt_RollNOEnd.MaxLength = 5;
            this.txt_RollNOEnd.Name = "txt_RollNOEnd";
            this.txt_RollNOEnd.Size = new System.Drawing.Size(72, 19);
            this.txt_RollNOEnd.TabIndex = 171;
            // 
            // txt_RollNOBegin
            // 
            appearance10.BackColor = System.Drawing.Color.LightCyan;
            this.txt_RollNOBegin.Appearance = appearance10;
            this.txt_RollNOBegin.AutoSize = true;
            this.txt_RollNOBegin.Enabled = false;
            this.txt_RollNOBegin.FlatMode = true;
            this.txt_RollNOBegin.Location = new System.Drawing.Point(584, 8);
            this.txt_RollNOBegin.MaxLength = 5;
            this.txt_RollNOBegin.Name = "txt_RollNOBegin";
            this.txt_RollNOBegin.Size = new System.Drawing.Size(72, 19);
            this.txt_RollNOBegin.TabIndex = 170;
            // 
            // txt_RollTop
            // 
            appearance11.BackColor = System.Drawing.Color.LightCyan;
            this.txt_RollTop.Appearance = appearance11;
            this.txt_RollTop.AutoSize = true;
            this.txt_RollTop.Enabled = false;
            this.txt_RollTop.FlatMode = true;
            this.txt_RollTop.Location = new System.Drawing.Point(552, 8);
            this.txt_RollTop.Name = "txt_RollTop";
            this.txt_RollTop.Size = new System.Drawing.Size(32, 19);
            this.txt_RollTop.TabIndex = 169;
            // 
            // chk_RollNum
            // 
            this.chk_RollNum.FlatMode = true;
            this.chk_RollNum.Location = new System.Drawing.Point(488, 11);
            this.chk_RollNum.Name = "chk_RollNum";
            this.chk_RollNum.Size = new System.Drawing.Size(60, 16);
            this.chk_RollNum.TabIndex = 168;
            this.chk_RollNum.Text = "轧批号";
            this.chk_RollNum.CheckedChanged += new System.EventHandler(this.chk_RollNum_CheckedChanged);
            // 
            // txt_CD
            // 
            appearance12.BackColor = System.Drawing.Color.LightCyan;
            this.txt_CD.Appearance = appearance12;
            this.txt_CD.Enabled = false;
            this.txt_CD.FlatMode = true;
            this.txt_CD.Location = new System.Drawing.Point(384, 56);
            this.txt_CD.MaskInput = "nnnnn";
            this.txt_CD.MaxValue = 99999;
            this.txt_CD.MinValue = -1;
            this.txt_CD.Name = "txt_CD";
            this.txt_CD.PromptChar = ' ';
            this.txt_CD.Size = new System.Drawing.Size(96, 19);
            this.txt_CD.TabIndex = 167;
            // 
            // txt_KD
            // 
            appearance13.BackColor = System.Drawing.Color.LightCyan;
            this.txt_KD.Appearance = appearance13;
            this.txt_KD.Enabled = false;
            this.txt_KD.FlatMode = true;
            this.txt_KD.Location = new System.Drawing.Point(312, 56);
            this.txt_KD.MaskInput = "nnnn";
            this.txt_KD.MaxValue = 9999;
            this.txt_KD.MinValue = -1;
            this.txt_KD.Name = "txt_KD";
            this.txt_KD.PromptChar = ' ';
            this.txt_KD.Size = new System.Drawing.Size(72, 19);
            this.txt_KD.TabIndex = 166;
            // 
            // txt_HD
            // 
            appearance14.BackColor = System.Drawing.Color.LightCyan;
            this.txt_HD.Appearance = appearance14;
            this.txt_HD.Enabled = false;
            this.txt_HD.FlatMode = true;
            this.txt_HD.Location = new System.Drawing.Point(248, 56);
            this.txt_HD.MaskInput = "nnn.nnn";
            this.txt_HD.MaxValue = 999.999;
            this.txt_HD.MinValue = -1;
            this.txt_HD.Name = "txt_HD";
            this.txt_HD.NumericType = Infragistics.Win.UltraWinEditors.NumericType.Double;
            this.txt_HD.PromptChar = ' ';
            this.txt_HD.Size = new System.Drawing.Size(64, 19);
            this.txt_HD.TabIndex = 165;
            // 
            // chk_Spet
            // 
            this.chk_Spet.FlatMode = true;
            this.chk_Spet.Location = new System.Drawing.Point(184, 58);
            this.chk_Spet.Name = "chk_Spet";
            this.chk_Spet.Size = new System.Drawing.Size(60, 16);
            this.chk_Spet.TabIndex = 164;
            this.chk_Spet.Text = "厚宽长";
            this.chk_Spet.CheckedChanged += new System.EventHandler(this.chk_Spet_CheckedChanged);
            // 
            // txt_Condole
            // 
            appearance15.BackColor = System.Drawing.Color.LightCyan;
            this.txt_Condole.Appearance = appearance15;
            this.txt_Condole.AutoSize = true;
            this.txt_Condole.Enabled = false;
            this.txt_Condole.FlatMode = true;
            this.txt_Condole.Location = new System.Drawing.Point(80, 56);
            this.txt_Condole.Name = "txt_Condole";
            this.txt_Condole.Size = new System.Drawing.Size(96, 19);
            this.txt_Condole.TabIndex = 163;
            this.txt_Condole.Tag = "";
            // 
            // chk_Condole
            // 
            this.chk_Condole.FlatMode = true;
            this.chk_Condole.Location = new System.Drawing.Point(16, 55);
            this.chk_Condole.Name = "chk_Condole";
            this.chk_Condole.Size = new System.Drawing.Size(50, 16);
            this.chk_Condole.TabIndex = 162;
            this.chk_Condole.Text = "吊号";
            this.chk_Condole.CheckedChanged += new System.EventHandler(this.chk_Condole_CheckedChanged);
            // 
            // cmb_SteelType
            // 
            appearance16.BackColor = System.Drawing.Color.LightCyan;
            this.cmb_SteelType.Appearance = appearance16;
            this.cmb_SteelType.CharacterCasing = System.Windows.Forms.CharacterCasing.Normal;
            this.cmb_SteelType.DisplayMember = "";
            this.cmb_SteelType.Enabled = false;
            this.cmb_SteelType.FlatMode = true;
            this.cmb_SteelType.Location = new System.Drawing.Point(384, 32);
            this.cmb_SteelType.Name = "cmb_SteelType";
            this.cmb_SteelType.Size = new System.Drawing.Size(96, 19);
            this.cmb_SteelType.TabIndex = 161;
            this.cmb_SteelType.Tag = "";
            this.cmb_SteelType.ValueMember = "";
            // 
            // cmb_Area
            // 
            appearance17.BackColor = System.Drawing.Color.LightCyan;
            this.cmb_Area.Appearance = appearance17;
            this.cmb_Area.CharacterCasing = System.Windows.Forms.CharacterCasing.Normal;
            this.cmb_Area.DisplayMember = "";
            this.cmb_Area.DropDownStyle = Infragistics.Win.UltraWinGrid.UltraComboStyle.DropDownList;
            this.cmb_Area.Enabled = false;
            this.cmb_Area.FlatMode = true;
            this.cmb_Area.Location = new System.Drawing.Point(232, 10);
            this.cmb_Area.Name = "cmb_Area";
            this.cmb_Area.Size = new System.Drawing.Size(96, 19);
            this.cmb_Area.TabIndex = 160;
            this.cmb_Area.Tag = "";
            this.cmb_Area.ValueMember = "";
            // 
            // chk_Area
            // 
            this.chk_Area.FlatMode = true;
            this.chk_Area.Location = new System.Drawing.Point(184, 11);
            this.chk_Area.Name = "chk_Area";
            this.chk_Area.Size = new System.Drawing.Size(50, 16);
            this.chk_Area.TabIndex = 159;
            this.chk_Area.Text = "区域";
            this.chk_Area.CheckedChanged += new System.EventHandler(this.chk_Area_CheckedChanged);
            // 
            // cmb_Buttress
            // 
            appearance18.BackColor = System.Drawing.Color.LightCyan;
            this.cmb_Buttress.Appearance = appearance18;
            this.cmb_Buttress.CharacterCasing = System.Windows.Forms.CharacterCasing.Normal;
            this.cmb_Buttress.DisplayMember = "";
            this.cmb_Buttress.DropDownStyle = Infragistics.Win.UltraWinGrid.UltraComboStyle.DropDownList;
            this.cmb_Buttress.Enabled = false;
            this.cmb_Buttress.FlatMode = true;
            this.cmb_Buttress.Location = new System.Drawing.Point(384, 10);
            this.cmb_Buttress.Name = "cmb_Buttress";
            this.cmb_Buttress.Size = new System.Drawing.Size(96, 19);
            this.cmb_Buttress.TabIndex = 158;
            this.cmb_Buttress.Tag = "";
            this.cmb_Buttress.ValueMember = "";
            // 
            // Chk_Buttress
            // 
            this.Chk_Buttress.FlatMode = true;
            this.Chk_Buttress.Location = new System.Drawing.Point(336, 11);
            this.Chk_Buttress.Name = "Chk_Buttress";
            this.Chk_Buttress.Size = new System.Drawing.Size(50, 16);
            this.Chk_Buttress.TabIndex = 157;
            this.Chk_Buttress.Text = "垛位";
            this.Chk_Buttress.CheckedChanged += new System.EventHandler(this.Chk_Buttress_CheckedChanged);
            // 
            // txt_PlanNO
            // 
            appearance19.BackColor = System.Drawing.Color.LightCyan;
            this.txt_PlanNO.Appearance = appearance19;
            this.txt_PlanNO.AutoSize = true;
            this.txt_PlanNO.Enabled = false;
            this.txt_PlanNO.FlatMode = true;
            this.txt_PlanNO.Location = new System.Drawing.Point(80, 32);
            this.txt_PlanNO.Name = "txt_PlanNO";
            this.txt_PlanNO.Size = new System.Drawing.Size(96, 19);
            this.txt_PlanNO.TabIndex = 156;
            this.txt_PlanNO.Tag = "";
            // 
            // Chk_PlanNO
            // 
            this.Chk_PlanNO.FlatMode = true;
            this.Chk_PlanNO.Location = new System.Drawing.Point(16, 33);
            this.Chk_PlanNO.Name = "Chk_PlanNO";
            this.Chk_PlanNO.Size = new System.Drawing.Size(60, 16);
            this.Chk_PlanNO.TabIndex = 155;
            this.Chk_PlanNO.Text = "计划号";
            this.Chk_PlanNO.CheckedChanged += new System.EventHandler(this.Chk_PlanNO_CheckedChanged);
            // 
            // txt_PactNO
            // 
            appearance20.BackColor = System.Drawing.Color.LightCyan;
            this.txt_PactNO.Appearance = appearance20;
            this.txt_PactNO.AutoSize = true;
            this.txt_PactNO.Enabled = false;
            this.txt_PactNO.FlatMode = true;
            this.txt_PactNO.Location = new System.Drawing.Point(80, 8);
            this.txt_PactNO.Name = "txt_PactNO";
            this.txt_PactNO.Size = new System.Drawing.Size(96, 19);
            this.txt_PactNO.TabIndex = 154;
            this.txt_PactNO.Tag = "";
            // 
            // Chk_PactNO
            // 
            this.Chk_PactNO.FlatMode = true;
            this.Chk_PactNO.Location = new System.Drawing.Point(16, 11);
            this.Chk_PactNO.Name = "Chk_PactNO";
            this.Chk_PactNO.Size = new System.Drawing.Size(60, 16);
            this.Chk_PactNO.TabIndex = 153;
            this.Chk_PactNO.Text = "合同号";
            this.Chk_PactNO.CheckedChanged += new System.EventHandler(this.Chk_PactNO_CheckedChanged);
            // 
            // ultraExpandableGroupBox1
            // 
            this.ultraExpandableGroupBox1.Controls.Add(this.ultraExpandableGroupBoxPanel1);
            this.ultraExpandableGroupBox1.Dock = System.Windows.Forms.DockStyle.Bottom;
            this.ultraExpandableGroupBox1.ExpandedSize = new System.Drawing.Size(888, 185);
            this.ultraExpandableGroupBox1.Location = new System.Drawing.Point(0, 374);
            this.ultraExpandableGroupBox1.Name = "ultraExpandableGroupBox1";
            this.ultraExpandableGroupBox1.Size = new System.Drawing.Size(1104, 128);
            this.ultraExpandableGroupBox1.SupportThemes = false;
            this.ultraExpandableGroupBox1.TabIndex = 13;
            this.ultraExpandableGroupBox1.Text = "垛位/吊号管理";
            this.ultraExpandableGroupBox1.ViewStyle = Infragistics.Win.Misc.GroupBoxViewStyle.VisualStudio2005;
            // 
            // ultraExpandableGroupBoxPanel1
            // 
            this.ultraExpandableGroupBoxPanel1.Controls.Add(this.ult_Remark);
            this.ultraExpandableGroupBoxPanel1.Controls.Add(this.txt_XDH);
            this.ultraExpandableGroupBoxPanel1.Controls.Add(this.txt_YDH);
            this.ultraExpandableGroupBoxPanel1.Controls.Add(this.Chk_Replace);
            this.ultraExpandableGroupBoxPanel1.Controls.Add(this.Chk_Add);
            this.ultraExpandableGroupBoxPanel1.Controls.Add(this.txt_HandleMan);
            this.ultraExpandableGroupBoxPanel1.Controls.Add(this.ultraLabel9);
            this.ultraExpandableGroupBoxPanel1.Controls.Add(this.Dte_AjustTime);
            this.ultraExpandableGroupBoxPanel1.Controls.Add(this.ultraLabel8);
            this.ultraExpandableGroupBoxPanel1.Controls.Add(this.cmb_BZ);
            this.ultraExpandableGroupBoxPanel1.Controls.Add(this.ultraLabel6);
            this.ultraExpandableGroupBoxPanel1.Controls.Add(this.cmb_BC);
            this.ultraExpandableGroupBoxPanel1.Controls.Add(this.ultraLabel7);
            this.ultraExpandableGroupBoxPanel1.Controls.Add(this.cmb_NewArea);
            this.ultraExpandableGroupBoxPanel1.Controls.Add(this.ultraLabel5);
            this.ultraExpandableGroupBoxPanel1.Controls.Add(this.txt_XDHDate);
            this.ultraExpandableGroupBoxPanel1.Controls.Add(this.txt_YDHDate);
            this.ultraExpandableGroupBoxPanel1.Controls.Add(this.chk_XH);
            this.ultraExpandableGroupBoxPanel1.Controls.Add(this.txt_YY);
            this.ultraExpandableGroupBoxPanel1.Controls.Add(this.lab_Weight);
            this.ultraExpandableGroupBoxPanel1.Controls.Add(this.txt_XH);
            this.ultraExpandableGroupBoxPanel1.Controls.Add(this.ultraLabel4);
            this.ultraExpandableGroupBoxPanel1.Controls.Add(this.ultraLabel3);
            this.ultraExpandableGroupBoxPanel1.Controls.Add(this.cmb_NewButtress);
            this.ultraExpandableGroupBoxPanel1.Controls.Add(this.ultraLabel2);
            this.ultraExpandableGroupBoxPanel1.Controls.Add(this.cmb_OldButtress);
            this.ultraExpandableGroupBoxPanel1.Controls.Add(this.ultraLabel1);
            this.ultraExpandableGroupBoxPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.ultraExpandableGroupBoxPanel1.Location = new System.Drawing.Point(2, 20);
            this.ultraExpandableGroupBoxPanel1.Name = "ultraExpandableGroupBoxPanel1";
            this.ultraExpandableGroupBoxPanel1.Size = new System.Drawing.Size(1100, 106);
            this.ultraExpandableGroupBoxPanel1.TabIndex = 0;
            // 
            // ult_Remark
            // 
            appearance21.BackColor = System.Drawing.Color.LightCyan;
            this.ult_Remark.Appearance = appearance21;
            this.ult_Remark.AutoSize = true;
            valueListItem13.DataValue = "0";
            valueListItem13.DisplayText = "省重点";
            this.ult_Remark.Items.Add(valueListItem13);
            this.ult_Remark.Location = new System.Drawing.Point(216, 82);
            this.ult_Remark.Name = "ult_Remark";
            this.ult_Remark.Size = new System.Drawing.Size(250, 21);
            this.ult_Remark.TabIndex = 393;
            this.ult_Remark.Visible = false;
            // 
            // txt_XDH
            // 
            appearance22.BackColor = System.Drawing.Color.LightCyan;
            this.txt_XDH.Appearance = appearance22;
            this.txt_XDH.AutoSize = true;
            this.txt_XDH.FlatMode = true;
            this.txt_XDH.Location = new System.Drawing.Point(461, 33);
            this.txt_XDH.Name = "txt_XDH";
            this.txt_XDH.Size = new System.Drawing.Size(75, 19);
            this.txt_XDH.TabIndex = 374;
            this.txt_XDH.Tag = "";
            this.txt_XDH.Enter += new System.EventHandler(this.txt_XDH_Enter);
            this.txt_XDH.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txt_XDH_KeyDown);
            // 
            // txt_YDH
            // 
            appearance23.BackColor = System.Drawing.Color.LightCyan;
            this.txt_YDH.Appearance = appearance23;
            this.txt_YDH.AutoSize = true;
            this.txt_YDH.FlatMode = true;
            this.txt_YDH.Location = new System.Drawing.Point(264, 9);
            this.txt_YDH.Name = "txt_YDH";
            this.txt_YDH.Size = new System.Drawing.Size(64, 19);
            this.txt_YDH.TabIndex = 369;
            this.txt_YDH.Tag = "";
            this.txt_YDH.Enter += new System.EventHandler(this.txt_XDH_Enter);
            this.txt_YDH.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txt_XDH_KeyDown);
            // 
            // Chk_Replace
            // 
            this.Chk_Replace.BackColor = System.Drawing.Color.Transparent;
            this.Chk_Replace.FlatMode = true;
            this.Chk_Replace.Location = new System.Drawing.Point(528, 82);
            this.Chk_Replace.Name = "Chk_Replace";
            this.Chk_Replace.Size = new System.Drawing.Size(48, 16);
            this.Chk_Replace.TabIndex = 381;
            this.Chk_Replace.Text = "替换";
            // 
            // Chk_Add
            // 
            this.Chk_Add.BackColor = System.Drawing.Color.Transparent;
            this.Chk_Add.Checked = true;
            this.Chk_Add.CheckState = System.Windows.Forms.CheckState.Checked;
            this.Chk_Add.FlatMode = true;
            this.Chk_Add.Location = new System.Drawing.Point(480, 82);
            this.Chk_Add.Name = "Chk_Add";
            this.Chk_Add.Size = new System.Drawing.Size(48, 16);
            this.Chk_Add.TabIndex = 380;
            this.Chk_Add.Text = "追加";
            // 
            // txt_HandleMan
            // 
            appearance24.BackColor = System.Drawing.Color.LightCyan;
            this.txt_HandleMan.Appearance = appearance24;
            this.txt_HandleMan.CharacterCasing = System.Windows.Forms.CharacterCasing.Normal;
            this.txt_HandleMan.DisplayMember = "";
            this.txt_HandleMan.FlatMode = true;
            this.txt_HandleMan.Location = new System.Drawing.Point(62, 81);
            this.txt_HandleMan.Name = "txt_HandleMan";
            this.txt_HandleMan.Size = new System.Drawing.Size(106, 19);
            this.txt_HandleMan.TabIndex = 378;
            this.txt_HandleMan.Tag = "";
            this.txt_HandleMan.ValueMember = "";
            this.txt_HandleMan.ValueChanged += new System.EventHandler(this.txt_HandleMan_ValueChanged);
            // 
            // ultraLabel9
            // 
            this.ultraLabel9.BackColor = System.Drawing.Color.Transparent;
            this.ultraLabel9.Location = new System.Drawing.Point(16, 85);
            this.ultraLabel9.Name = "ultraLabel9";
            this.ultraLabel9.Size = new System.Drawing.Size(42, 16);
            this.ultraLabel9.TabIndex = 392;
            this.ultraLabel9.Text = "转堆人";
            // 
            // Dte_AjustTime
            // 
            appearance25.BackColor = System.Drawing.Color.LightCyan;
            this.Dte_AjustTime.Appearance = appearance25;
            this.Dte_AjustTime.DateTime = new System.DateTime(2013, 11, 2, 0, 0, 0, 0);
            this.Dte_AjustTime.FlatMode = true;
            this.Dte_AjustTime.Location = new System.Drawing.Point(384, 57);
            this.Dte_AjustTime.MaskInput = "{date} {time}";
            this.Dte_AjustTime.Name = "Dte_AjustTime";
            this.Dte_AjustTime.ReadOnly = true;
            this.Dte_AjustTime.Size = new System.Drawing.Size(152, 19);
            this.Dte_AjustTime.TabIndex = 377;
            this.Dte_AjustTime.Value = new System.DateTime(2013, 11, 2, 0, 0, 0, 0);
            // 
            // ultraLabel8
            // 
            this.ultraLabel8.BackColor = System.Drawing.Color.Transparent;
            this.ultraLabel8.Location = new System.Drawing.Point(352, 61);
            this.ultraLabel8.Name = "ultraLabel8";
            this.ultraLabel8.Size = new System.Drawing.Size(29, 16);
            this.ultraLabel8.TabIndex = 391;
            this.ultraLabel8.Text = "时间";
            // 
            // cmb_BZ
            // 
            appearance26.BackColor = System.Drawing.Color.LightCyan;
            this.cmb_BZ.Appearance = appearance26;
            this.cmb_BZ.CharacterCasing = System.Windows.Forms.CharacterCasing.Normal;
            this.cmb_BZ.DisplayMember = "";
            this.cmb_BZ.FlatMode = true;
            this.cmb_BZ.Location = new System.Drawing.Point(216, 57);
            this.cmb_BZ.Name = "cmb_BZ";
            this.cmb_BZ.Size = new System.Drawing.Size(112, 19);
            this.cmb_BZ.TabIndex = 376;
            this.cmb_BZ.Tag = "";
            this.cmb_BZ.ValueMember = "";
            // 
            // ultraLabel6
            // 
            this.ultraLabel6.BackColor = System.Drawing.Color.Transparent;
            this.ultraLabel6.Location = new System.Drawing.Point(184, 61);
            this.ultraLabel6.Name = "ultraLabel6";
            this.ultraLabel6.Size = new System.Drawing.Size(29, 16);
            this.ultraLabel6.TabIndex = 390;
            this.ultraLabel6.Text = "班组";
            // 
            // cmb_BC
            // 
            appearance27.BackColor = System.Drawing.Color.LightCyan;
            this.cmb_BC.Appearance = appearance27;
            this.cmb_BC.CharacterCasing = System.Windows.Forms.CharacterCasing.Normal;
            this.cmb_BC.DisplayMember = "";
            this.cmb_BC.FlatMode = true;
            this.cmb_BC.Location = new System.Drawing.Point(62, 57);
            this.cmb_BC.Name = "cmb_BC";
            this.cmb_BC.Size = new System.Drawing.Size(106, 19);
            this.cmb_BC.TabIndex = 375;
            this.cmb_BC.Tag = "";
            this.cmb_BC.ValueMember = "";
            // 
            // ultraLabel7
            // 
            this.ultraLabel7.BackColor = System.Drawing.Color.Transparent;
            this.ultraLabel7.Location = new System.Drawing.Point(29, 61);
            this.ultraLabel7.Name = "ultraLabel7";
            this.ultraLabel7.Size = new System.Drawing.Size(29, 16);
            this.ultraLabel7.TabIndex = 389;
            this.ultraLabel7.Text = "班次";
            // 
            // cmb_NewArea
            // 
            appearance28.BackColor = System.Drawing.Color.LightCyan;
            this.cmb_NewArea.Appearance = appearance28;
            this.cmb_NewArea.CharacterCasing = System.Windows.Forms.CharacterCasing.Normal;
            this.cmb_NewArea.DisplayMember = "";
            this.cmb_NewArea.FlatMode = true;
            this.cmb_NewArea.Location = new System.Drawing.Point(62, 33);
            this.cmb_NewArea.Name = "cmb_NewArea";
            this.cmb_NewArea.Size = new System.Drawing.Size(106, 19);
            this.cmb_NewArea.TabIndex = 371;
            this.cmb_NewArea.Tag = "";
            this.cmb_NewArea.ValueMember = "";
            this.cmb_NewArea.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txt_XDH_KeyDown);
            this.cmb_NewArea.Enter += new System.EventHandler(this.txt_XDH_Enter);
            this.cmb_NewArea.ValueChanged += new System.EventHandler(this.cmb_NewArea_ValueChanged);
            // 
            // ultraLabel5
            // 
            this.ultraLabel5.BackColor = System.Drawing.Color.Transparent;
            this.ultraLabel5.Location = new System.Drawing.Point(16, 38);
            this.ultraLabel5.Name = "ultraLabel5";
            this.ultraLabel5.Size = new System.Drawing.Size(42, 16);
            this.ultraLabel5.TabIndex = 388;
            this.ultraLabel5.Text = "新区域";
            // 
            // txt_XDHDate
            // 
            appearance29.BackColor = System.Drawing.Color.LightCyan;
            this.txt_XDHDate.Appearance = appearance29;
            this.txt_XDHDate.AutoSize = true;
            this.txt_XDHDate.FlatMode = true;
            this.txt_XDHDate.Location = new System.Drawing.Point(384, 33);
            this.txt_XDHDate.Name = "txt_XDHDate";
            this.txt_XDHDate.Size = new System.Drawing.Size(77, 19);
            this.txt_XDHDate.TabIndex = 373;
            this.txt_XDHDate.Tag = "";
            this.txt_XDHDate.Enter += new System.EventHandler(this.txt_XDH_Enter);
            this.txt_XDHDate.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txt_XDH_KeyDown);
            // 
            // txt_YDHDate
            // 
            appearance30.BackColor = System.Drawing.Color.LightCyan;
            this.txt_YDHDate.Appearance = appearance30;
            this.txt_YDHDate.AutoSize = true;
            this.txt_YDHDate.FlatMode = true;
            this.txt_YDHDate.Location = new System.Drawing.Point(216, 9);
            this.txt_YDHDate.Name = "txt_YDHDate";
            this.txt_YDHDate.Size = new System.Drawing.Size(48, 19);
            this.txt_YDHDate.TabIndex = 368;
            this.txt_YDHDate.Tag = "";
            this.txt_YDHDate.Enter += new System.EventHandler(this.txt_XDH_Enter);
            this.txt_YDHDate.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txt_XDH_KeyDown);
            // 
            // chk_XH
            // 
            this.chk_XH.BackColor = System.Drawing.Color.Transparent;
            this.chk_XH.FlatMode = true;
            this.chk_XH.Location = new System.Drawing.Point(336, 12);
            this.chk_XH.Name = "chk_XH";
            this.chk_XH.Size = new System.Drawing.Size(48, 16);
            this.chk_XH.TabIndex = 383;
            this.chk_XH.Text = "序号";
            this.chk_XH.CheckedChanged += new System.EventHandler(this.chk_XH_CheckedChanged);
            // 
            // txt_YY
            // 
            appearance31.BackColor = System.Drawing.Color.LightCyan;
            this.txt_YY.Appearance = appearance31;
            this.txt_YY.AutoSize = true;
            this.txt_YY.FlatMode = true;
            this.txt_YY.Location = new System.Drawing.Point(216, 81);
            this.txt_YY.Name = "txt_YY";
            this.txt_YY.Size = new System.Drawing.Size(250, 19);
            this.txt_YY.TabIndex = 379;
            this.txt_YY.Tag = "KCH_TURNOFFMOVEBUTTRESSLIST|REMARK";
            // 
            // lab_Weight
            // 
            this.lab_Weight.AutoSize = true;
            this.lab_Weight.BackColor = System.Drawing.Color.Transparent;
            this.lab_Weight.Location = new System.Drawing.Point(184, 85);
            this.lab_Weight.Name = "lab_Weight";
            this.lab_Weight.Size = new System.Drawing.Size(29, 12);
            this.lab_Weight.TabIndex = 387;
            this.lab_Weight.Text = "备注";
            // 
            // txt_XH
            // 
            appearance32.BackColor = System.Drawing.Color.LavenderBlush;
            this.txt_XH.Appearance = appearance32;
            this.txt_XH.AutoSize = true;
            this.txt_XH.Enabled = false;
            this.txt_XH.FlatMode = true;
            this.txt_XH.Location = new System.Drawing.Point(384, 9);
            this.txt_XH.Name = "txt_XH";
            this.txt_XH.Size = new System.Drawing.Size(152, 19);
            this.txt_XH.TabIndex = 370;
            this.txt_XH.Tag = "";
            this.txt_XH.Enter += new System.EventHandler(this.txt_XDH_Enter);
            this.txt_XH.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txt_XDH_KeyDown);
            // 
            // ultraLabel4
            // 
            this.ultraLabel4.BackColor = System.Drawing.Color.Transparent;
            this.ultraLabel4.Location = new System.Drawing.Point(344, 37);
            this.ultraLabel4.Name = "ultraLabel4";
            this.ultraLabel4.Size = new System.Drawing.Size(42, 16);
            this.ultraLabel4.TabIndex = 386;
            this.ultraLabel4.Text = "新吊号";
            // 
            // ultraLabel3
            // 
            this.ultraLabel3.BackColor = System.Drawing.Color.Transparent;
            this.ultraLabel3.Location = new System.Drawing.Point(176, 12);
            this.ultraLabel3.Name = "ultraLabel3";
            this.ultraLabel3.Size = new System.Drawing.Size(42, 16);
            this.ultraLabel3.TabIndex = 385;
            this.ultraLabel3.Text = "原吊号";
            // 
            // cmb_NewButtress
            // 
            appearance33.BackColor = System.Drawing.Color.LightCyan;
            this.cmb_NewButtress.Appearance = appearance33;
            this.cmb_NewButtress.CharacterCasing = System.Windows.Forms.CharacterCasing.Normal;
            this.cmb_NewButtress.DisplayMember = "";
            this.cmb_NewButtress.FlatMode = true;
            this.cmb_NewButtress.Location = new System.Drawing.Point(216, 33);
            this.cmb_NewButtress.Name = "cmb_NewButtress";
            this.cmb_NewButtress.Size = new System.Drawing.Size(112, 19);
            this.cmb_NewButtress.TabIndex = 372;
            this.cmb_NewButtress.Tag = "";
            this.cmb_NewButtress.ValueMember = "";
            this.cmb_NewButtress.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txt_XDH_KeyDown);
            this.cmb_NewButtress.Enter += new System.EventHandler(this.txt_XDH_Enter);
            // 
            // ultraLabel2
            // 
            this.ultraLabel2.BackColor = System.Drawing.Color.Transparent;
            this.ultraLabel2.Location = new System.Drawing.Point(176, 37);
            this.ultraLabel2.Name = "ultraLabel2";
            this.ultraLabel2.Size = new System.Drawing.Size(42, 16);
            this.ultraLabel2.TabIndex = 384;
            this.ultraLabel2.Text = "新垛位";
            // 
            // cmb_OldButtress
            // 
            appearance34.BackColor = System.Drawing.Color.LightCyan;
            this.cmb_OldButtress.Appearance = appearance34;
            this.cmb_OldButtress.CharacterCasing = System.Windows.Forms.CharacterCasing.Normal;
            this.cmb_OldButtress.DisplayMember = "";
            this.cmb_OldButtress.FlatMode = true;
            this.cmb_OldButtress.Location = new System.Drawing.Point(62, 9);
            this.cmb_OldButtress.Name = "cmb_OldButtress";
            this.cmb_OldButtress.ReadOnly = true;
            this.cmb_OldButtress.Size = new System.Drawing.Size(106, 19);
            this.cmb_OldButtress.TabIndex = 367;
            this.cmb_OldButtress.Tag = "";
            this.cmb_OldButtress.ValueMember = "";
            this.cmb_OldButtress.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txt_XDH_KeyDown);
            this.cmb_OldButtress.Enter += new System.EventHandler(this.txt_XDH_Enter);
            // 
            // ultraLabel1
            // 
            this.ultraLabel1.BackColor = System.Drawing.Color.Transparent;
            this.ultraLabel1.Location = new System.Drawing.Point(16, 12);
            this.ultraLabel1.Name = "ultraLabel1";
            this.ultraLabel1.Size = new System.Drawing.Size(42, 16);
            this.ultraLabel1.TabIndex = 382;
            this.ultraLabel1.Text = "原垛位";
            // 
            // panel2
            // 
            this.panel2.Controls.Add(this.dg_TurnoffButtress);
            this.panel2.Dock = System.Windows.Forms.DockStyle.Fill;
            this.panel2.Location = new System.Drawing.Point(0, 112);
            this.panel2.Name = "panel2";
            this.panel2.Size = new System.Drawing.Size(1104, 262);
            this.panel2.TabIndex = 14;
            // 
            // dg_TurnoffButtress
            // 
            this.dg_TurnoffButtress.DataSource = this.ds_TurnoffButtress;
            appearance35.BackColor = System.Drawing.Color.Ivory;
            this.dg_TurnoffButtress.DisplayLayout.Appearance = appearance35;
            ultraGridColumn1.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
            ultraGridColumn1.Header.Caption = "产线";
            ultraGridColumn1.Header.VisiblePosition = 1;
            ultraGridColumn1.RowLayoutColumnInfo.OriginX = 16;
            ultraGridColumn1.RowLayoutColumnInfo.OriginY = 0;
            ultraGridColumn1.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(60, 22);
            ultraGridColumn1.RowLayoutColumnInfo.PreferredLabelSize = new System.Drawing.Size(0, 27);
            ultraGridColumn1.RowLayoutColumnInfo.SpanX = 1;
            ultraGridColumn1.RowLayoutColumnInfo.SpanY = 1;
            ultraGridColumn1.SortIndicator = Infragistics.Win.UltraWinGrid.SortIndicator.Disabled;
            ultraGridColumn2.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
            appearance36.BackColor = System.Drawing.Color.LightGoldenrodYellow;
            ultraGridColumn2.CellAppearance = appearance36;
            ultraGridColumn2.Header.Caption = "轧编号";
            ultraGridColumn2.Header.VisiblePosition = 2;
            ultraGridColumn2.RowLayoutColumnInfo.OriginX = 1;
            ultraGridColumn2.RowLayoutColumnInfo.OriginY = 0;
            ultraGridColumn2.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(68, 22);
            ultraGridColumn2.RowLayoutColumnInfo.PreferredLabelSize = new System.Drawing.Size(0, 27);
            ultraGridColumn2.RowLayoutColumnInfo.SpanX = 1;
            ultraGridColumn2.RowLayoutColumnInfo.SpanY = 1;
            ultraGridColumn2.SortIndicator = Infragistics.Win.UltraWinGrid.SortIndicator.Disabled;
            ultraGridColumn3.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
            ultraGridColumn3.Header.Caption = "母板序号";
            ultraGridColumn3.Header.VisiblePosition = 3;
            ultraGridColumn3.Hidden = true;
            ultraGridColumn3.RowLayoutColumnInfo.OriginX = 15;
            ultraGridColumn3.RowLayoutColumnInfo.OriginY = 0;
            ultraGridColumn3.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(98, 24);
            ultraGridColumn3.RowLayoutColumnInfo.PreferredLabelSize = new System.Drawing.Size(0, 20);
            ultraGridColumn3.RowLayoutColumnInfo.SpanX = 1;
            ultraGridColumn3.RowLayoutColumnInfo.SpanY = 2;
            ultraGridColumn3.SortIndicator = Infragistics.Win.UltraWinGrid.SortIndicator.Disabled;
            ultraGridColumn4.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
            ultraGridColumn4.Header.Caption = "块序号";
            ultraGridColumn4.Header.VisiblePosition = 0;
            ultraGridColumn4.RowLayoutColumnInfo.OriginX = 2;
            ultraGridColumn4.RowLayoutColumnInfo.OriginY = 0;
            ultraGridColumn4.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(90, 22);
            ultraGridColumn4.RowLayoutColumnInfo.PreferredLabelSize = new System.Drawing.Size(0, 27);
            ultraGridColumn4.RowLayoutColumnInfo.SpanX = 1;
            ultraGridColumn4.RowLayoutColumnInfo.SpanY = 1;
            ultraGridColumn4.SortIndicator = Infragistics.Win.UltraWinGrid.SortIndicator.Disabled;
            ultraGridColumn5.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
            appearance37.BackColor = System.Drawing.Color.LightGoldenrodYellow;
            ultraGridColumn5.CellAppearance = appearance37;
            ultraGridColumn5.Header.Caption = "牌号";
            ultraGridColumn5.Header.VisiblePosition = 13;
            ultraGridColumn5.RowLayoutColumnInfo.OriginX = 3;
            ultraGridColumn5.RowLayoutColumnInfo.OriginY = 0;
            ultraGridColumn5.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(59, 22);
            ultraGridColumn5.RowLayoutColumnInfo.PreferredLabelSize = new System.Drawing.Size(0, 27);
            ultraGridColumn5.RowLayoutColumnInfo.SpanX = 1;
            ultraGridColumn5.RowLayoutColumnInfo.SpanY = 1;
            ultraGridColumn5.SortIndicator = Infragistics.Win.UltraWinGrid.SortIndicator.Disabled;
            ultraGridColumn6.Header.Caption = "规格";
            ultraGridColumn6.Header.VisiblePosition = 26;
            ultraGridColumn6.RowLayoutColumnInfo.OriginX = 10;
            ultraGridColumn6.RowLayoutColumnInfo.OriginY = 0;
            ultraGridColumn6.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(111, 22);
            ultraGridColumn6.RowLayoutColumnInfo.PreferredLabelSize = new System.Drawing.Size(0, 27);
            ultraGridColumn6.RowLayoutColumnInfo.SpanX = 1;
            ultraGridColumn6.RowLayoutColumnInfo.SpanY = 1;
            ultraGridColumn6.SortIndicator = Infragistics.Win.UltraWinGrid.SortIndicator.Disabled;
            ultraGridColumn7.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
            ultraGridColumn7.Header.Caption = "重量";
            ultraGridColumn7.Header.VisiblePosition = 10;
            ultraGridColumn7.RowLayoutColumnInfo.OriginX = 12;
            ultraGridColumn7.RowLayoutColumnInfo.OriginY = 0;
            ultraGridColumn7.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(72, 22);
            ultraGridColumn7.RowLayoutColumnInfo.PreferredLabelSize = new System.Drawing.Size(0, 27);
            ultraGridColumn7.RowLayoutColumnInfo.SpanX = 1;
            ultraGridColumn7.RowLayoutColumnInfo.SpanY = 1;
            ultraGridColumn7.SortIndicator = Infragistics.Win.UltraWinGrid.SortIndicator.Disabled;
            ultraGridColumn8.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
            ultraGridColumn8.Header.Caption = "判定性能";
            ultraGridColumn8.Header.VisiblePosition = 14;
            ultraGridColumn8.RowLayoutColumnInfo.OriginX = 32;
            ultraGridColumn8.RowLayoutColumnInfo.OriginY = 0;
            ultraGridColumn8.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(64, 22);
            ultraGridColumn8.RowLayoutColumnInfo.PreferredLabelSize = new System.Drawing.Size(0, 27);
            ultraGridColumn8.RowLayoutColumnInfo.SpanX = 1;
            ultraGridColumn8.RowLayoutColumnInfo.SpanY = 1;
            ultraGridColumn8.SortIndicator = Infragistics.Win.UltraWinGrid.SortIndicator.Disabled;
            ultraGridColumn9.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
            ultraGridColumn9.Header.Caption = "计划号";
            ultraGridColumn9.Header.VisiblePosition = 5;
            ultraGridColumn9.RowLayoutColumnInfo.OriginX = 17;
            ultraGridColumn9.RowLayoutColumnInfo.OriginY = 0;
            ultraGridColumn9.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(98, 22);
            ultraGridColumn9.RowLayoutColumnInfo.PreferredLabelSize = new System.Drawing.Size(0, 27);
            ultraGridColumn9.RowLayoutColumnInfo.SpanX = 1;
            ultraGridColumn9.RowLayoutColumnInfo.SpanY = 1;
            ultraGridColumn9.SortIndicator = Infragistics.Win.UltraWinGrid.SortIndicator.Disabled;
            ultraGridColumn10.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
            ultraGridColumn10.Header.Caption = "合同号";
            ultraGridColumn10.Header.VisiblePosition = 25;
            ultraGridColumn10.RowLayoutColumnInfo.OriginX = 19;
            ultraGridColumn10.RowLayoutColumnInfo.OriginY = 0;
            ultraGridColumn10.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(84, 22);
            ultraGridColumn10.RowLayoutColumnInfo.PreferredLabelSize = new System.Drawing.Size(0, 27);
            ultraGridColumn10.RowLayoutColumnInfo.SpanX = 1;
            ultraGridColumn10.RowLayoutColumnInfo.SpanY = 1;
            ultraGridColumn10.SortIndicator = Infragistics.Win.UltraWinGrid.SortIndicator.Disabled;
            ultraGridColumn11.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
            appearance38.BackColor = System.Drawing.Color.LightGoldenrodYellow;
            ultraGridColumn11.CellAppearance = appearance38;
            ultraGridColumn11.Header.Caption = "炉号";
            ultraGridColumn11.Header.VisiblePosition = 4;
            ultraGridColumn11.Hidden = true;
            ultraGridColumn11.RowLayoutColumnInfo.OriginX = 6;
            ultraGridColumn11.RowLayoutColumnInfo.OriginY = 0;
            ultraGridColumn11.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(79, 24);
            ultraGridColumn11.RowLayoutColumnInfo.PreferredLabelSize = new System.Drawing.Size(0, 20);
            ultraGridColumn11.RowLayoutColumnInfo.SpanX = 1;
            ultraGridColumn11.RowLayoutColumnInfo.SpanY = 2;
            ultraGridColumn11.SortIndicator = Infragistics.Win.UltraWinGrid.SortIndicator.Disabled;
            ultraGridColumn12.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
            appearance39.BackColor = System.Drawing.Color.LightGoldenrodYellow;
            ultraGridColumn12.CellAppearance = appearance39;
            ultraGridColumn12.Header.Caption = "订单号";
            ultraGridColumn12.Header.VisiblePosition = 6;
            ultraGridColumn12.RowLayoutColumnInfo.OriginX = 20;
            ultraGridColumn12.RowLayoutColumnInfo.OriginY = 0;
            ultraGridColumn12.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(90, 22);
            ultraGridColumn12.RowLayoutColumnInfo.PreferredLabelSize = new System.Drawing.Size(0, 27);
            ultraGridColumn12.RowLayoutColumnInfo.SpanX = 1;
            ultraGridColumn12.RowLayoutColumnInfo.SpanY = 1;
            ultraGridColumn12.SortIndicator = Infragistics.Win.UltraWinGrid.SortIndicator.Disabled;
            ultraGridColumn13.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
            appearance40.BackColor = System.Drawing.Color.LightGoldenrodYellow;
            ultraGridColumn13.CellAppearance = appearance40;
            ultraGridColumn13.Header.Caption = "厚度";
            ultraGridColumn13.Header.VisiblePosition = 7;
            ultraGridColumn13.RowLayoutColumnInfo.OriginX = 13;
            ultraGridColumn13.RowLayoutColumnInfo.OriginY = 0;
            ultraGridColumn13.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(52, 24);
            ultraGridColumn13.RowLayoutColumnInfo.PreferredLabelSize = new System.Drawing.Size(0, 20);
            ultraGridColumn13.RowLayoutColumnInfo.SpanX = 1;
            ultraGridColumn13.RowLayoutColumnInfo.SpanY = 1;
            ultraGridColumn13.SortIndicator = Infragistics.Win.UltraWinGrid.SortIndicator.Disabled;
            ultraGridColumn14.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
            ultraGridColumn14.Header.Caption = "宽度";
            ultraGridColumn14.Header.VisiblePosition = 8;
            ultraGridColumn14.RowLayoutColumnInfo.OriginX = 14;
            ultraGridColumn14.RowLayoutColumnInfo.OriginY = 0;
            ultraGridColumn14.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(53, 16);
            ultraGridColumn14.RowLayoutColumnInfo.PreferredLabelSize = new System.Drawing.Size(0, 20);
            ultraGridColumn14.RowLayoutColumnInfo.SpanX = 1;
            ultraGridColumn14.RowLayoutColumnInfo.SpanY = 1;
            ultraGridColumn14.SortIndicator = Infragistics.Win.UltraWinGrid.SortIndicator.Disabled;
            ultraGridColumn15.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
            appearance41.BackColor = System.Drawing.Color.LightGoldenrodYellow;
            ultraGridColumn15.CellAppearance = appearance41;
            ultraGridColumn15.Header.Caption = "长度";
            ultraGridColumn15.Header.VisiblePosition = 9;
            ultraGridColumn15.RowLayoutColumnInfo.OriginX = 15;
            ultraGridColumn15.RowLayoutColumnInfo.OriginY = 0;
            ultraGridColumn15.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(53, 24);
            ultraGridColumn15.RowLayoutColumnInfo.PreferredLabelSize = new System.Drawing.Size(0, 20);
            ultraGridColumn15.RowLayoutColumnInfo.SpanX = 1;
            ultraGridColumn15.RowLayoutColumnInfo.SpanY = 1;
            ultraGridColumn15.SortIndicator = Infragistics.Win.UltraWinGrid.SortIndicator.Disabled;
            ultraGridColumn16.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
            appearance42.BackColor = System.Drawing.Color.LightGoldenrodYellow;
            ultraGridColumn16.CellAppearance = appearance42;
            ultraGridColumn16.Header.Caption = "表面质量";
            ultraGridColumn16.Header.VisiblePosition = 11;
            ultraGridColumn16.RowLayoutColumnInfo.OriginX = 33;
            ultraGridColumn16.RowLayoutColumnInfo.OriginY = 0;
            ultraGridColumn16.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(70, 22);
            ultraGridColumn16.RowLayoutColumnInfo.PreferredLabelSize = new System.Drawing.Size(0, 27);
            ultraGridColumn16.RowLayoutColumnInfo.SpanX = 1;
            ultraGridColumn16.RowLayoutColumnInfo.SpanY = 1;
            ultraGridColumn16.SortIndicator = Infragistics.Win.UltraWinGrid.SortIndicator.Disabled;
            ultraGridColumn17.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
            ultraGridColumn17.Header.Caption = "表面缺陷";
            ultraGridColumn17.Header.VisiblePosition = 12;
            ultraGridColumn17.RowLayoutColumnInfo.OriginX = 34;
            ultraGridColumn17.RowLayoutColumnInfo.OriginY = 0;
            ultraGridColumn17.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(69, 22);
            ultraGridColumn17.RowLayoutColumnInfo.PreferredLabelSize = new System.Drawing.Size(0, 27);
            ultraGridColumn17.RowLayoutColumnInfo.SpanX = 1;
            ultraGridColumn17.RowLayoutColumnInfo.SpanY = 1;
            ultraGridColumn17.SortIndicator = Infragistics.Win.UltraWinGrid.SortIndicator.Disabled;
            ultraGridColumn18.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
            ultraGridColumn18.Header.Caption = "切边类型";
            ultraGridColumn18.Header.VisiblePosition = 15;
            ultraGridColumn18.RowLayoutColumnInfo.OriginX = 31;
            ultraGridColumn18.RowLayoutColumnInfo.OriginY = 0;
            ultraGridColumn18.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(76, 22);
            ultraGridColumn18.RowLayoutColumnInfo.PreferredLabelSize = new System.Drawing.Size(0, 27);
            ultraGridColumn18.RowLayoutColumnInfo.SpanX = 1;
            ultraGridColumn18.RowLayoutColumnInfo.SpanY = 1;
            ultraGridColumn18.SortIndicator = Infragistics.Win.UltraWinGrid.SortIndicator.Disabled;
            ultraGridColumn19.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
            ultraGridColumn19.Header.Caption = "原料明细号";
            ultraGridColumn19.Header.VisiblePosition = 16;
            ultraGridColumn19.RowLayoutColumnInfo.OriginX = 35;
            ultraGridColumn19.RowLayoutColumnInfo.OriginY = 0;
            ultraGridColumn19.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(74, 22);
            ultraGridColumn19.RowLayoutColumnInfo.PreferredLabelSize = new System.Drawing.Size(0, 27);
            ultraGridColumn19.RowLayoutColumnInfo.SpanX = 1;
            ultraGridColumn19.RowLayoutColumnInfo.SpanY = 1;
            ultraGridColumn19.SortIndicator = Infragistics.Win.UltraWinGrid.SortIndicator.Disabled;
            ultraGridColumn20.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
            ultraGridColumn20.Header.Caption = "入库时间";
            ultraGridColumn20.Header.VisiblePosition = 17;
            ultraGridColumn20.RowLayoutColumnInfo.OriginX = 36;
            ultraGridColumn20.RowLayoutColumnInfo.OriginY = 0;
            ultraGridColumn20.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(77, 22);
            ultraGridColumn20.RowLayoutColumnInfo.PreferredLabelSize = new System.Drawing.Size(0, 27);
            ultraGridColumn20.RowLayoutColumnInfo.SpanX = 1;
            ultraGridColumn20.RowLayoutColumnInfo.SpanY = 1;
            ultraGridColumn20.SortIndicator = Infragistics.Win.UltraWinGrid.SortIndicator.Disabled;
            ultraGridColumn21.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
            ultraGridColumn21.Header.Caption = "垛位";
            ultraGridColumn21.Header.VisiblePosition = 18;
            ultraGridColumn21.RowLayoutColumnInfo.OriginX = 5;
            ultraGridColumn21.RowLayoutColumnInfo.OriginY = 0;
            ultraGridColumn21.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(65, 22);
            ultraGridColumn21.RowLayoutColumnInfo.PreferredLabelSize = new System.Drawing.Size(0, 27);
            ultraGridColumn21.RowLayoutColumnInfo.SpanX = 1;
            ultraGridColumn21.RowLayoutColumnInfo.SpanY = 1;
            ultraGridColumn21.SortIndicator = Infragistics.Win.UltraWinGrid.SortIndicator.Disabled;
            ultraGridColumn22.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
            ultraGridColumn22.Header.Caption = "吊号";
            ultraGridColumn22.Header.VisiblePosition = 19;
            ultraGridColumn22.RowLayoutColumnInfo.OriginX = 6;
            ultraGridColumn22.RowLayoutColumnInfo.OriginY = 0;
            ultraGridColumn22.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(70, 22);
            ultraGridColumn22.RowLayoutColumnInfo.PreferredLabelSize = new System.Drawing.Size(0, 27);
            ultraGridColumn22.RowLayoutColumnInfo.SpanX = 1;
            ultraGridColumn22.RowLayoutColumnInfo.SpanY = 1;
            ultraGridColumn22.SortIndicator = Infragistics.Win.UltraWinGrid.SortIndicator.Disabled;
            ultraGridColumn23.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
            ultraGridColumn23.Header.Caption = "吊序";
            ultraGridColumn23.Header.VisiblePosition = 20;
            ultraGridColumn23.RowLayoutColumnInfo.OriginX = 7;
            ultraGridColumn23.RowLayoutColumnInfo.OriginY = 0;
            ultraGridColumn23.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(44, 22);
            ultraGridColumn23.RowLayoutColumnInfo.PreferredLabelSize = new System.Drawing.Size(0, 27);
            ultraGridColumn23.RowLayoutColumnInfo.SpanX = 1;
            ultraGridColumn23.RowLayoutColumnInfo.SpanY = 1;
            ultraGridColumn23.SortIndicator = Infragistics.Win.UltraWinGrid.SortIndicator.Disabled;
            ultraGridColumn24.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
            ultraGridColumn24.Header.Caption = "层";
            ultraGridColumn24.Header.VisiblePosition = 21;
            ultraGridColumn24.RowLayoutColumnInfo.OriginX = 8;
            ultraGridColumn24.RowLayoutColumnInfo.OriginY = 0;
            ultraGridColumn24.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(50, 0);
            ultraGridColumn24.RowLayoutColumnInfo.PreferredLabelSize = new System.Drawing.Size(0, 20);
            ultraGridColumn24.RowLayoutColumnInfo.SpanX = 1;
            ultraGridColumn24.RowLayoutColumnInfo.SpanY = 1;
            ultraGridColumn24.SortIndicator = Infragistics.Win.UltraWinGrid.SortIndicator.Disabled;
            ultraGridColumn25.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
            ultraGridColumn25.Header.Caption = "板块层";
            ultraGridColumn25.Header.VisiblePosition = 22;
            ultraGridColumn25.Hidden = true;
            ultraGridColumn25.RowLayoutColumnInfo.OriginX = 6;
            ultraGridColumn25.RowLayoutColumnInfo.OriginY = 0;
            ultraGridColumn25.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(63, 22);
            ultraGridColumn25.RowLayoutColumnInfo.PreferredLabelSize = new System.Drawing.Size(0, 27);
            ultraGridColumn25.RowLayoutColumnInfo.SpanX = 1;
            ultraGridColumn25.RowLayoutColumnInfo.SpanY = 1;
            ultraGridColumn25.SortIndicator = Infragistics.Win.UltraWinGrid.SortIndicator.Disabled;
            ultraGridColumn26.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
            ultraGridColumn26.Header.Caption = "区域";
            ultraGridColumn26.Header.VisiblePosition = 23;
            ultraGridColumn26.RowLayoutColumnInfo.OriginX = 9;
            ultraGridColumn26.RowLayoutColumnInfo.OriginY = 0;
            ultraGridColumn26.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(50, 22);
            ultraGridColumn26.RowLayoutColumnInfo.PreferredLabelSize = new System.Drawing.Size(0, 27);
            ultraGridColumn26.RowLayoutColumnInfo.SpanX = 1;
            ultraGridColumn26.RowLayoutColumnInfo.SpanY = 1;
            ultraGridColumn26.SortIndicator = Infragistics.Win.UltraWinGrid.SortIndicator.Disabled;
            ultraGridColumn27.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
            ultraGridColumn27.Header.Caption = "系统备注";
            ultraGridColumn27.Header.VisiblePosition = 24;
            ultraGridColumn27.RowLayoutColumnInfo.OriginX = 37;
            ultraGridColumn27.RowLayoutColumnInfo.OriginY = 0;
            ultraGridColumn27.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(0, 22);
            ultraGridColumn27.RowLayoutColumnInfo.PreferredLabelSize = new System.Drawing.Size(0, 27);
            ultraGridColumn27.RowLayoutColumnInfo.SpanX = 1;
            ultraGridColumn27.RowLayoutColumnInfo.SpanY = 1;
            ultraGridColumn27.SortIndicator = Infragistics.Win.UltraWinGrid.SortIndicator.Disabled;
            ultraGridColumn28.Header.Caption = "备注";
            ultraGridColumn28.Header.VisiblePosition = 27;
            ultraGridColumn28.RowLayoutColumnInfo.OriginX = 42;
            ultraGridColumn28.RowLayoutColumnInfo.OriginY = 0;
            ultraGridColumn28.RowLayoutColumnInfo.SpanX = 1;
            ultraGridColumn28.RowLayoutColumnInfo.SpanY = 1;
            ultraGridColumn28.SortIndicator = Infragistics.Win.UltraWinGrid.SortIndicator.Disabled;
            ultraGridColumn29.Header.Caption = "登记时间";
            ultraGridColumn29.Header.VisiblePosition = 28;
            ultraGridColumn29.RowLayoutColumnInfo.OriginX = 0;
            ultraGridColumn29.RowLayoutColumnInfo.OriginY = 0;
            ultraGridColumn29.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(127, 0);
            ultraGridColumn29.RowLayoutColumnInfo.SpanX = 1;
            ultraGridColumn29.RowLayoutColumnInfo.SpanY = 1;
            ultraGridColumn29.SortIndicator = Infragistics.Win.UltraWinGrid.SortIndicator.Disabled;
            ultraGridColumn30.Header.Caption = "原规格";
            ultraGridColumn30.Header.VisiblePosition = 29;
            ultraGridColumn30.RowLayoutColumnInfo.OriginX = 11;
            ultraGridColumn30.RowLayoutColumnInfo.OriginY = 0;
            ultraGridColumn30.RowLayoutColumnInfo.SpanX = 1;
            ultraGridColumn30.RowLayoutColumnInfo.SpanY = 1;
            ultraGridColumn31.Header.Caption = "原料入库牌号";
            ultraGridColumn31.Header.VisiblePosition = 30;
            ultraGridColumn31.RowLayoutColumnInfo.OriginX = 4;
            ultraGridColumn31.RowLayoutColumnInfo.OriginY = 0;
            ultraGridColumn31.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(87, 0);
            ultraGridColumn31.RowLayoutColumnInfo.SpanX = 1;
            ultraGridColumn31.RowLayoutColumnInfo.SpanY = 1;
            ultraGridColumn32.CellActivation = Infragistics.Win.UltraWinGrid.Activation.ActivateOnly;
            ultraGridColumn32.Format = "";
            ultraGridColumn32.Header.Caption = "交货期";
            ultraGridColumn32.Header.VisiblePosition = 31;
            ultraGridColumn32.RowLayoutColumnInfo.OriginX = 18;
            ultraGridColumn32.RowLayoutColumnInfo.OriginY = 0;
            ultraGridColumn32.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(93, 0);
            ultraGridColumn32.RowLayoutColumnInfo.SpanX = 1;
            ultraGridColumn32.RowLayoutColumnInfo.SpanY = 1;
            ultraGridColumn33.Header.Caption = "原计划号";
            ultraGridColumn33.Header.VisiblePosition = 32;
            ultraGridColumn33.RowLayoutColumnInfo.OriginX = 24;
            ultraGridColumn33.RowLayoutColumnInfo.OriginY = 0;
            ultraGridColumn33.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(85, 0);
            ultraGridColumn33.RowLayoutColumnInfo.SpanX = 1;
            ultraGridColumn33.RowLayoutColumnInfo.SpanY = 1;
            ultraGridColumn33.SortIndicator = Infragistics.Win.UltraWinGrid.SortIndicator.Disabled;
            ultraGridColumn34.Header.Caption = "原订单号";
            ultraGridColumn34.Header.VisiblePosition = 33;
            ultraGridColumn34.RowLayoutColumnInfo.OriginX = 25;
            ultraGridColumn34.RowLayoutColumnInfo.OriginY = 0;
            ultraGridColumn34.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(82, 0);
            ultraGridColumn34.RowLayoutColumnInfo.SpanX = 1;
            ultraGridColumn34.RowLayoutColumnInfo.SpanY = 1;
            ultraGridColumn34.SortIndicator = Infragistics.Win.UltraWinGrid.SortIndicator.Disabled;
            ultraGridColumn35.Header.Caption = "客户订单号";
            ultraGridColumn35.Header.VisiblePosition = 34;
            ultraGridColumn35.RowLayoutColumnInfo.OriginX = 23;
            ultraGridColumn35.RowLayoutColumnInfo.OriginY = 0;
            ultraGridColumn35.RowLayoutColumnInfo.SpanX = 1;
            ultraGridColumn35.RowLayoutColumnInfo.SpanY = 1;
            ultraGridColumn36.Header.Caption = "产品类型";
            ultraGridColumn36.Header.VisiblePosition = 35;
            ultraGridColumn36.RowLayoutColumnInfo.OriginX = 39;
            ultraGridColumn36.RowLayoutColumnInfo.OriginY = 0;
            ultraGridColumn36.RowLayoutColumnInfo.SpanX = 1;
            ultraGridColumn36.RowLayoutColumnInfo.SpanY = 1;
            ultraGridColumn37.Header.Caption = "判定备注";
            ultraGridColumn37.Header.VisiblePosition = 36;
            ultraGridColumn37.RowLayoutColumnInfo.OriginX = 41;
            ultraGridColumn37.RowLayoutColumnInfo.OriginY = 0;
            ultraGridColumn37.RowLayoutColumnInfo.SpanX = 1;
            ultraGridColumn37.RowLayoutColumnInfo.SpanY = 1;
            ultraGridColumn38.Header.Caption = "探伤结果";
            ultraGridColumn38.Header.VisiblePosition = 37;
            ultraGridColumn38.RowLayoutColumnInfo.OriginX = 38;
            ultraGridColumn38.RowLayoutColumnInfo.OriginY = 0;
            ultraGridColumn38.RowLayoutColumnInfo.SpanX = 1;
            ultraGridColumn38.RowLayoutColumnInfo.SpanY = 1;
            ultraGridColumn39.Header.Caption = "判定时间";
            ultraGridColumn39.Header.VisiblePosition = 38;
            ultraGridColumn39.RowLayoutColumnInfo.OriginX = 40;
            ultraGridColumn39.RowLayoutColumnInfo.OriginY = 0;
            ultraGridColumn39.RowLayoutColumnInfo.SpanX = 1;
            ultraGridColumn39.RowLayoutColumnInfo.SpanY = 1;
            ultraGridColumn40.Header.Caption = "客户名称";
            ultraGridColumn40.Header.VisiblePosition = 39;
            ultraGridColumn40.RowLayoutColumnInfo.OriginX = 21;
            ultraGridColumn40.RowLayoutColumnInfo.OriginY = 0;
            ultraGridColumn40.RowLayoutColumnInfo.SpanX = 1;
            ultraGridColumn40.RowLayoutColumnInfo.SpanY = 1;
            ultraGridColumn41.Header.Caption = "到站";
            ultraGridColumn41.Header.VisiblePosition = 40;
            ultraGridColumn41.RowLayoutColumnInfo.OriginX = 22;
            ultraGridColumn41.RowLayoutColumnInfo.OriginY = 0;
            ultraGridColumn41.RowLayoutColumnInfo.SpanX = 1;
            ultraGridColumn41.RowLayoutColumnInfo.SpanY = 1;
            ultraGridColumn42.Header.Caption = "原牌号";
            ultraGridColumn42.Header.VisiblePosition = 41;
            ultraGridColumn42.RowLayoutColumnInfo.OriginX = 26;
            ultraGridColumn42.RowLayoutColumnInfo.OriginY = 0;
            ultraGridColumn42.RowLayoutColumnInfo.SpanX = 1;
            ultraGridColumn42.RowLayoutColumnInfo.SpanY = 1;
            ultraGridColumn43.Header.Caption = "原厚度";
            ultraGridColumn43.Header.VisiblePosition = 42;
            ultraGridColumn43.RowLayoutColumnInfo.OriginX = 27;
            ultraGridColumn43.RowLayoutColumnInfo.OriginY = 0;
            ultraGridColumn43.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(59, 22);
            ultraGridColumn43.RowLayoutColumnInfo.PreferredLabelSize = new System.Drawing.Size(0, 27);
            ultraGridColumn43.RowLayoutColumnInfo.SpanX = 1;
            ultraGridColumn43.RowLayoutColumnInfo.SpanY = 1;
            ultraGridColumn44.Header.Caption = "原宽度";
            ultraGridColumn44.Header.VisiblePosition = 43;
            ultraGridColumn44.RowLayoutColumnInfo.OriginX = 28;
            ultraGridColumn44.RowLayoutColumnInfo.OriginY = 0;
            ultraGridColumn44.RowLayoutColumnInfo.PreferredCellSize = new System.Drawing.Size(59, 22);
            ultraGridColumn44.RowLayoutColumnInfo.PreferredLabelSize = new System.Drawing.Size(0, 27);
            ultraGridColumn44.RowLayoutColumnInfo.SpanX = 1;
            ultraGridColumn44.RowLayoutColumnInfo.SpanY = 1;
            ultraGridColumn45.Header.Caption = "原长度";
            ultraGridColumn45.Header.VisiblePosition = 44;
            ultraGridColumn45.RowLayoutColumnInfo.OriginX = 30;
            ultraGridColumn45.RowLayoutColumnInfo.OriginY = 0;
            ultraGridColumn45.RowLayoutColumnInfo.SpanX = 1;
            ultraGridColumn45.RowLayoutColumnInfo.SpanY = 1;
            ultraGridBand1.Columns.AddRange(new object[] {
            ultraGridColumn1,
            ultraGridColumn2,
            ultraGridColumn3,
            ultraGridColumn4,
            ultraGridColumn5,
            ultraGridColumn6,
            ultraGridColumn7,
            ultraGridColumn8,
            ultraGridColumn9,
            ultraGridColumn10,
            ultraGridColumn11,
            ultraGridColumn12,
            ultraGridColumn13,
            ultraGridColumn14,
            ultraGridColumn15,
            ultraGridColumn16,
            ultraGridColumn17,
            ultraGridColumn18,
            ultraGridColumn19,
            ultraGridColumn20,
            ultraGridColumn21,
            ultraGridColumn22,
            ultraGridColumn23,
            ultraGridColumn24,
            ultraGridColumn25,
            ultraGridColumn26,
            ultraGridColumn27,
            ultraGridColumn28,
            ultraGridColumn29,
            ultraGridColumn30,
            ultraGridColumn31,
            ultraGridColumn32,
            ultraGridColumn33,
            ultraGridColumn34,
            ultraGridColumn35,
            ultraGridColumn36,
            ultraGridColumn37,
            ultraGridColumn38,
            ultraGridColumn39,
            ultraGridColumn40,
            ultraGridColumn41,
            ultraGridColumn42,
            ultraGridColumn43,
            ultraGridColumn44,
            ultraGridColumn45});
            appearance43.TextHAlign = Infragistics.Win.HAlign.Right;
            appearance43.TextVAlign = Infragistics.Win.VAlign.Middle;
            summarySettings1.Appearance = appearance43;
            summarySettings1.DisplayFormat = "{0} 块";
            summarySettings1.GroupBySummaryValueAppearance = appearance44;
            summarySettings1.SummaryDisplayArea = ((Infragistics.Win.UltraWinGrid.SummaryDisplayAreas)((Infragistics.Win.UltraWinGrid.SummaryDisplayAreas.BottomFixed | Infragistics.Win.UltraWinGrid.SummaryDisplayAreas.InGroupByRows)));
            appearance45.TextHAlign = Infragistics.Win.HAlign.Right;
            appearance45.TextVAlign = Infragistics.Win.VAlign.Middle;
            summarySettings2.Appearance = appearance45;
            summarySettings2.DisplayFormat = "{0:.###} T";
            summarySettings2.GroupBySummaryValueAppearance = appearance46;
            summarySettings2.SummaryDisplayArea = ((Infragistics.Win.UltraWinGrid.SummaryDisplayAreas)((Infragistics.Win.UltraWinGrid.SummaryDisplayAreas.BottomFixed | Infragistics.Win.UltraWinGrid.SummaryDisplayAreas.InGroupByRows)));
            ultraGridBand1.Summaries.AddRange(new Infragistics.Win.UltraWinGrid.SummarySettings[] {
            summarySettings1,
            summarySettings2});
            ultraGridBand1.UseRowLayout = true;
            this.dg_TurnoffButtress.DisplayLayout.BandsSerializer.Add(ultraGridBand1);
            this.dg_TurnoffButtress.DisplayLayout.CaptionVisible = Infragistics.Win.DefaultableBoolean.False;
            this.dg_TurnoffButtress.DisplayLayout.GroupByBox.Hidden = true;
            this.dg_TurnoffButtress.DisplayLayout.GroupByBox.Prompt = " 将要分组的列拖至该区域！";
            appearance47.BorderColor = System.Drawing.Color.Black;
            appearance47.TextVAlign = Infragistics.Win.VAlign.Middle;
            this.dg_TurnoffButtress.DisplayLayout.Override.CellAppearance = appearance47;
            this.dg_TurnoffButtress.DisplayLayout.Override.CellClickAction = Infragistics.Win.UltraWinGrid.CellClickAction.RowSelect;
            this.dg_TurnoffButtress.DisplayLayout.Override.CellPadding = 0;
            appearance48.BackColor = System.Drawing.SystemColors.Control;
            appearance48.BackColor2 = System.Drawing.SystemColors.ControlDark;
            appearance48.BackGradientAlignment = Infragistics.Win.GradientAlignment.Element;
            appearance48.BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal;
            appearance48.BorderColor = System.Drawing.SystemColors.Window;
            appearance48.TextHAlign = Infragistics.Win.HAlign.Left;
            appearance48.TextVAlign = Infragistics.Win.VAlign.Middle;
            this.dg_TurnoffButtress.DisplayLayout.Override.GroupByRowAppearance = appearance48;
            this.dg_TurnoffButtress.DisplayLayout.Override.GroupByRowDescriptionMask = "[caption]:[value] ([count]条记录)";
            this.dg_TurnoffButtress.DisplayLayout.Override.GroupBySummaryDisplayStyle = Infragistics.Win.UltraWinGrid.GroupBySummaryDisplayStyle.SummaryCells;
            appearance49.BackColor = System.Drawing.Color.LightSteelBlue;
            this.dg_TurnoffButtress.DisplayLayout.Override.HeaderAppearance = appearance49;
            this.dg_TurnoffButtress.DisplayLayout.Override.HeaderStyle = Infragistics.Win.HeaderStyle.Standard;
            appearance50.BackColor = System.Drawing.SystemColors.Window;
            appearance50.BorderColor = System.Drawing.Color.Black;
            appearance50.TextVAlign = Infragistics.Win.VAlign.Middle;
            this.dg_TurnoffButtress.DisplayLayout.Override.RowAppearance = appearance50;
            appearance51.BackColor = System.Drawing.SystemColors.Window;
            appearance51.BorderColor = System.Drawing.Color.Black;
            appearance51.TextVAlign = Infragistics.Win.VAlign.Middle;
            this.dg_TurnoffButtress.DisplayLayout.Override.RowPreviewAppearance = appearance51;
            this.dg_TurnoffButtress.DisplayLayout.Override.RowSelectorHeaderStyle = Infragistics.Win.UltraWinGrid.RowSelectorHeaderStyle.SeparateElement;
            this.dg_TurnoffButtress.DisplayLayout.Override.RowSelectorNumberStyle = Infragistics.Win.UltraWinGrid.RowSelectorNumberStyle.RowIndex;
            this.dg_TurnoffButtress.DisplayLayout.Override.RowSelectors = Infragistics.Win.DefaultableBoolean.True;
            appearance52.TextHAlign = Infragistics.Win.HAlign.Left;
            appearance52.TextVAlign = Infragistics.Win.VAlign.Middle;
            this.dg_TurnoffButtress.DisplayLayout.Override.SelectedRowAppearance = appearance52;
            this.dg_TurnoffButtress.DisplayLayout.Override.SummaryDisplayArea = Infragistics.Win.UltraWinGrid.SummaryDisplayAreas.BottomFixed;
            appearance53.BackColor = System.Drawing.SystemColors.Window;
            this.dg_TurnoffButtress.DisplayLayout.Override.SummaryFooterAppearance = appearance53;
            appearance54.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
            appearance54.ForeColor = System.Drawing.Color.Red;
            this.dg_TurnoffButtress.DisplayLayout.Override.SummaryFooterCaptionAppearance = appearance54;
            this.dg_TurnoffButtress.DisplayLayout.Override.SummaryFooterCaptionVisible = Infragistics.Win.DefaultableBoolean.False;
            appearance55.BackColor = System.Drawing.Color.MistyRose;
            appearance55.ForeColor = System.Drawing.Color.Blue;
            appearance55.TextHAlign = Infragistics.Win.HAlign.Right;
            appearance55.TextVAlign = Infragistics.Win.VAlign.Middle;
            this.dg_TurnoffButtress.DisplayLayout.Override.SummaryValueAppearance = appearance55;
            appearance56.BackColor = System.Drawing.SystemColors.ControlLight;
            this.dg_TurnoffButtress.DisplayLayout.Override.TemplateAddRowAppearance = appearance56;
            this.dg_TurnoffButtress.DisplayLayout.ScrollBounds = Infragistics.Win.UltraWinGrid.ScrollBounds.ScrollToFill;
            this.dg_TurnoffButtress.DisplayLayout.ScrollStyle = Infragistics.Win.UltraWinGrid.ScrollStyle.Immediate;
            this.dg_TurnoffButtress.DisplayLayout.ViewStyleBand = Infragistics.Win.UltraWinGrid.ViewStyleBand.OutlookGroupBy;
            this.dg_TurnoffButtress.Dock = System.Windows.Forms.DockStyle.Fill;
            this.dg_TurnoffButtress.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.dg_TurnoffButtress.Location = new System.Drawing.Point(0, 0);
            this.dg_TurnoffButtress.Name = "dg_TurnoffButtress";
            this.dg_TurnoffButtress.Size = new System.Drawing.Size(1104, 262);
            this.dg_TurnoffButtress.TabIndex = 0;
            this.dg_TurnoffButtress.Text = "成品垛位信息";
            this.dg_TurnoffButtress.AfterRowActivate += new System.EventHandler(this.dg_TurnoffButtress_AfterRowActivate);
            this.dg_TurnoffButtress.InitializeRow += new Infragistics.Win.UltraWinGrid.InitializeRowEventHandler(this.dg_TurnoffButtress_InitializeRow);
            // 
            // FrmTurnoffMoveButtress
            // 
            this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
            this.ClientSize = new System.Drawing.Size(1104, 502);
            this.Controls.Add(this.panel2);
            this.Controls.Add(this.ultraExpandableGroupBox1);
            this.Controls.Add(this.ultraGroupBox1);
            this.Controls.Add(this.panel1);
            this.Name = "FrmTurnoffMoveButtress";
            this.Text = "成品移垛管理";
            this.Load += new System.EventHandler(this.FrmTurnoffMoveButtress_Load);
            ((System.ComponentModel.ISupportInitialize)(this.ultraToolbarsManager1)).EndInit();
            this.panel1.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.ds_TurnoffButtress)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.dataTable2)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.ultraGroupBox1)).EndInit();
            this.ultraGroupBox1.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.cmb_CCondition)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.cmb_KCondition)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.txt_CS)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.txt_KS)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.cmb_ProductLine)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.txt_RollNOEnd)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.txt_RollNOBegin)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.txt_RollTop)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.txt_CD)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.txt_KD)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.txt_HD)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.txt_Condole)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.cmb_SteelType)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.cmb_Area)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.cmb_Buttress)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.txt_PlanNO)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.txt_PactNO)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.ultraExpandableGroupBox1)).EndInit();
            this.ultraExpandableGroupBox1.ResumeLayout(false);
            this.ultraExpandableGroupBoxPanel1.ResumeLayout(false);
            this.ultraExpandableGroupBoxPanel1.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(this.ult_Remark)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.txt_XDH)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.txt_YDH)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.txt_HandleMan)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.Dte_AjustTime)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.cmb_BZ)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.cmb_BC)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.cmb_NewArea)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.txt_XDHDate)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.txt_YDHDate)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.txt_YY)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.txt_XH)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.cmb_NewButtress)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.cmb_OldButtress)).EndInit();
            this.panel2.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.dg_TurnoffButtress)).EndInit();
            this.ResumeLayout(false);

		}
		#endregion

		private void Chk_PactNO_CheckedChanged(object sender, System.EventArgs e)
		{
			this.txt_PactNO.Enabled=this.Chk_PactNO.Checked;
		}

		private void Chk_PlanNO_CheckedChanged(object sender, System.EventArgs e)
		{
			this.txt_PlanNO.Enabled=this.Chk_PlanNO.Checked;
		}

		private void chk_Area_CheckedChanged(object sender, System.EventArgs e)
		{
			this.cmb_Area.Enabled=this.chk_Area.Checked;
		}

		private void Chk_Buttress_CheckedChanged(object sender, System.EventArgs e)
		{
			this.cmb_Buttress.Enabled=this.Chk_Buttress.Checked;
		}

		private void chk_LineAndSteel_CheckedChanged(object sender, System.EventArgs e)
		{
			this.cmb_ProductLine.Enabled=this.chk_LineAndSteel.Checked;
			this.cmb_SteelType.Enabled=this.chk_LineAndSteel.Checked;
		}

		private void chk_Condole_CheckedChanged(object sender, System.EventArgs e)
		{
			this.txt_Condole.Enabled=this.chk_Condole.Checked;
		}

		private void chk_RollNum_CheckedChanged(object sender, System.EventArgs e)
		{
			this.txt_RollTop.Enabled=this.chk_RollNum.Checked;
			this.txt_RollNOBegin.Enabled=this.chk_RollNum.Checked;
			this.txt_RollNOEnd.Enabled=this.chk_RollNum.Checked;
		}

		private void chk_Spet_CheckedChanged(object sender, System.EventArgs e)
		{
			txt_HD.Enabled=chk_Spet.Checked;
			txt_KD.Enabled=this.chk_Spet.Checked;
			txt_CD.Enabled=this.chk_Spet.Checked;
		}

		private void chk_Size_CheckedChanged(object sender, System.EventArgs e)
		{
			this.txt_KS.Enabled=this.chk_Size.Checked;			
			this.txt_CS.Enabled=this.chk_Size.Checked;
			this.cmb_KCondition.Enabled=this.chk_Size.Checked;
			this.cmb_CCondition.Enabled=this.chk_Size.Checked;
			
		}

		private void chk_AllowFilter_CheckedChanged(object sender, System.EventArgs e)
		{
			if (this.chk_AllowFilter.Checked)
			{
				this.dg_TurnoffButtress.DisplayLayout.Override.AllowRowFiltering = Infragistics.Win.DefaultableBoolean.True;			
			}
			else
			{
				this.dg_TurnoffButtress.DisplayLayout.Override.AllowRowFiltering = Infragistics.Win.DefaultableBoolean.False;
				
			}
			
		}

		private void btn_ClearFilter_Click(object sender, System.EventArgs e)
		{
			this.dg_TurnoffButtress.DisplayLayout.Bands[0].ColumnFilters.ClearAllFilters();
			Comm.SetGridSumArea(this.dg_TurnoffButtress);
		}

		private void chk_XH_CheckedChanged(object sender, System.EventArgs e)
		{
			this.txt_XH.Enabled=this.chk_XH.Checked;
			if(!this.chk_XH.Checked)
			{
				this.txt_XH.Clear();
			}
		}

		private void cmb_ProductLine_ValueChanged(object sender, System.EventArgs e)
		{
			string strOut = "";
			string plid = "";
			
			plid = Comm.ObjToStr(cmb_ProductLine.Value);		
			cmb_SteelType.Text = string.Empty;

			try
			{
				if(plid.Length > 0)
				{
					//----初始化cmb_ShopSign---------------
					string sql = "SELECT STEELNAME,PLID FROM SCM_R_PLINE_STEELS WHERE PLID='" + plid+ "' ORDER BY STEELNAME ASC";
					DataSet ds = (DataSet)ClientCommon._RemotingHelp.ExecuteMethod("JTurnoffManager","Core.XgMes.Server.JGKC.TurnoffManager.Common","GetDataSet",new object []{sql},out strOut);
					ds.Tables[0].TableName="SCM_R_PLINE_STEELS";

					Comm.Init_ComboControl(this.cmb_SteelType,"SCM_R_PLINE_STEELS","STEELNAME","STEELNAME",ref ds);
				}
			}
			catch(Exception ex)
			{
				System.Diagnostics.Debug.WriteLine(ex.ToString());
			}

		}

		private void txt_HandleMan_ValueChanged(object sender, System.EventArgs e)
		{
			string handleMan="";
			string strOut="";

			try
			{
				handleMan=Comm.ObjToStr(txt_HandleMan.Value);
				if(handleMan.Length >0 )
				{
					string sql="select MEMO1 from KCJ_BASEDATA where ID_='"+handleMan+"'";
					DataSet ds = (DataSet)ClientCommon._RemotingHelp.ExecuteMethod("JTurnoffManager","Core.XgMes.Server.JGKC.TurnoffManager.Common","GetDataSet",new object []{sql},out strOut);
					ds.Tables[0].TableName="KCJ_BASEDATA";
					if(ds.Tables["KCJ_BASEDATA"].Rows.Count > 0)
					{
						System.Data.DataRow dr= ds.Tables["KCJ_BASEDATA"].Rows[0];
						cmb_BZ.Value=Comm.ObjToStr(dr["MEMO1"]);
					}
				}
			}
			catch(Exception ex)
			{
				System.Diagnostics.Debug.WriteLine(ex.ToString());
			}

		}

		private void cmb_NewArea_ValueChanged(object sender, System.EventArgs e)
		{
			
			string areaCode = "";
			string strOut = "";

			try
			{
				cmb_NewButtress.Text = string.Empty ;
				areaCode = Comm.ObjToStr(cmb_NewArea.Value);
				if(areaCode.Length > 0)
				{
					string sql = "select buttresscode from kcj_buttress where buttresstype='1' and isvalid='1'" + "and areacode='" + areaCode + "'";
					DataSet ds_ = (DataSet)ClientCommon._RemotingHelp.ExecuteMethod("JTurnoffManager","Core.XgMes.Server.JGKC.TurnoffManager.Common","GetDataSet",new object []{sql},out strOut);
					ds_.Tables[0].TableName="KCJ_BUTTRESS";

					Comm.Init_ComboControl(this.cmb_NewButtress,"KCJ_BUTTRESS","BUTTRESSCODE","BUTTRESSCODE",ref ds_);

				}

			}
			catch(Exception ex)
			{
				System.Diagnostics.Debug.WriteLine(ex.ToString());
			}

		}

		private void dg_TurnoffButtress_AfterRowActivate(object sender, System.EventArgs e)
		{
			try
			{
				if(this.dg_TurnoffButtress.Rows.Count > 0)
				{
					cmb_OldButtress.Value = Comm.ObjToStr(this.dg_TurnoffButtress.ActiveRow.Cells["BUTTRESS"].Value);	
					if(Comm.ObjToStr(this.dg_TurnoffButtress.ActiveRow.Cells["CONDOLENUMBER"].Value).Length > 0)
					{
						if(Comm.ObjToStr(this.dg_TurnoffButtress.ActiveRow.Cells["CONDOLENUMBER"].Value).IndexOf("-")>0)
						{
							this.txt_YDHDate.Text = Comm.ObjToStr(this.dg_TurnoffButtress.ActiveRow.Cells["CONDOLENUMBER"].Value).Split('-')[0];
							this.txt_YDH.Text = Comm.ObjToStr(this.dg_TurnoffButtress.ActiveRow.Cells["CONDOLENUMBER"].Value).Split('-')[1];
						}
						else
						{
							this.txt_YDH.Text = Comm.ObjToStr(this.dg_TurnoffButtress.ActiveRow.Cells["CONDOLENUMBER"].Value);
							this.txt_YDHDate.Clear();
						}

					}
					else
					{
						this.txt_YDHDate.Text = string.Empty;
						this.txt_YDH.Text=string.Empty;

					}

					if(this.txt_XH.Enabled)
					{
						this.txt_XH.Text = Comm.ObjToStr(this.dg_TurnoffButtress.ActiveRow.Cells["BILLETID"].Value);
					}

				}
			}
			catch(Exception ex)
			{
				System.Diagnostics.Debug.WriteLine(ex.ToString());
			}

		}

		private void dg_TurnoffButtress_InitializeRow(object sender, Infragistics.Win.UltraWinGrid.InitializeRowEventArgs e)
		{
			try
			{ 
				
				if(Convert.ToString(e.Row.Cells["OSPET"].Value) != Convert.ToString(e.Row.Cells["SPET"].Value))
				{
					e.Row.Cells["OSPET"].Appearance.BackColor = ultraLabel12.Appearance.BackColor;
					e.Row.Cells["SPET"].Appearance.BackColor =  ultraLabel12.Appearance.BackColor;
				}
			
				if(Convert.ToString(e.Row.Cells["DETERMINANTCARDNUMBER"].Value) != Convert.ToString(e.Row.Cells["INSTEEL"].Value))
				{
					e.Row.Cells["DETERMINANTCARDNUMBER"].Appearance.BackColor = ultraLabel14.Appearance.BackColor;
					e.Row.Cells["INSTEEL"].Appearance.BackColor = ultraLabel14.Appearance.BackColor;
				}
				if(Comm.ObjToStr(e.Row.Cells["SENDBEGINDATE"].Value) != "")
				{
					if (DateTime.Today.AddDays(11).ToString("yyyy-MM-dd").CompareTo(Comm.ObjToStr(e.Row.Cells["SENDBEGINDATE"].Value)) >= 0)
					{
						e.Row.Cells["SENDBEGINDATE"].Appearance.BackColor = Color.Blue;
				
					}
				}
			    
			}
			catch( Exception ex)
			{
				System.Diagnostics.Debug.WriteLine(ex.ToString());
			}
		}
        public string sstyle = "";
		private void FrmTurnoffMoveButtress_Load(object sender, System.EventArgs e)
		{
			if ( this.Key.Split('@').Length > 1)
			{
                sstyle = this.Key.Split('@')[2];
				if ( this.Key.Split('@')[1].Equals("QueryReport"))
				{
					this.ultraExpandableGroupBox1.Hide();
					this.ultraToolbarsManager1.Tools["MoveButtress"].SharedProps.Visible=false;
                    if (sstyle == "2")
                    {
                        this.Text = "成品堆位信息查询(板材)";
                    }
                    else if (sstyle == "3")
                    {
                        this.Text = "成品堆位信息查询(线棒材)";
                        
                        
                    }
                    else
                    {
                        this.Text = "成品堆位信息查询";
                    }

				}
			}
            if (sstyle == "3" )
            {
                this.dg_TurnoffButtress.DisplayLayout.Bands[0].Columns["CONDOLENUMBER"].Hidden = true;
                this.dg_TurnoffButtress.DisplayLayout.Bands[0].Columns["CONDOLELAYER"].Hidden = true;
                this.dg_TurnoffButtress.DisplayLayout.Bands[0].Columns["BUTTRESSLAYER"].Hidden = true;
                this.dg_TurnoffButtress.DisplayLayout.Bands[0].Columns["PRODUCT_NAME"].Hidden = true;
                this.dg_TurnoffButtress.DisplayLayout.Bands[0].Columns["ZHPDBH"].Hidden = true;
                this.dg_TurnoffButtress.DisplayLayout.Bands[0].Columns["MEMO"].Hidden = true;
                ult_Remark.Visible = true;
                
            }
			Comm.SetGridSumArea(this.dg_TurnoffButtress);
			this.IniCombox();
			Dte_AjustTime.DateTime=System.DateTime.Now;
		}

		private void ultraToolbarsManager1_ToolClick(object sender, Infragistics.Win.UltraWinToolbars.ToolClickEventArgs e)
		{
			switch(e.Tool.Key)
			{				
				case "MoveButtress":
					this.Adjust();			
					break;

				case "QueryButtress":		
					this.QueryButtress(this.GetWhere());
					break;

				case "ExportButtressInfo":
					this.ExportButtressInfo();
					break;

				case "Print":
					this.PrintGrid();
					break;

				case "Close":
					Comm.CloseForm(this);
					break;

				case "PRINT_LOG":
					this.Print_Log();
					break;
			}
		}

		private void PrintGrid()
		{
			FrmPrintButtress frmPrint = new FrmPrintButtress();
			frmPrint.UltraGrid = this.dg_TurnoffButtress;
			frmPrint.UCGridPrint.SubHeadLeftText = "堆位:"+ Comm.ObjToStr(cmb_Buttress.Text);
			frmPrint.UCGridPrint.SubHeadRightText ="打印日期:"+System.DateTime.Now.Date.ToString("yyyy-MM-dd");
			frmPrint.UCGridPrint.HeadText ="板材加工成品堆垛实物反映表";
//			frmPrint.UCGridPrint.SubFootLeftText = Core.Mes.ClientFrameWork.ClientCommon._UserInfo.UserName;
			frmPrint.UCGridPrint.ColumnList["计划号"].IsSelected = true;
			frmPrint.UCGridPrint.ColumnList["合同号"].IsSelected = true;
			frmPrint.UCGridPrint.ColumnList["块序号"].IsSelected = true;
			frmPrint.UCGridPrint.ColumnList["牌号"].IsSelected = true;
			frmPrint.UCGridPrint.ColumnList["块序号"].IsSelected = true;
			frmPrint.UCGridPrint.ColumnList["规格"].IsSelected = true;
			frmPrint.UCGridPrint.ColumnList["重量"].IsSelected = true;
			frmPrint.UCGridPrint.ColumnList["判定性能"].IsSelected = true;
			frmPrint.UCGridPrint.ColumnList["备注"].IsSelected = true;
			frmPrint.ShowDialog();
		}

		#region "IniCombox"
		private void IniCombox()
		{
			string strOut="";
			try
			{

				//原料垛位cmb_OldButtress/cmb_NewButtress
                if (ClientCommon._UserInfo.UserRoleID == "bjbck")
                {
                    string strSql = "select buttresscode from kcj_buttress where buttresstype='1' and isvalid='1'  AND  AREACODE in ('北京办库区','北京办区域','北京办(长沙库)')  order by buttresscode desc ";
                    DataSet ds_ = (DataSet)ClientCommon._RemotingHelp.ExecuteMethod("JTurnoffManager", "Core.XgMes.Server.JGKC.TurnoffManager.Common", "GetDataSet", new object[] { strSql }, out strOut);
                    ds_.Tables[0].TableName = "KCJ_BUTTRESS";

                    Comm.Init_ComboControl(this.cmb_OldButtress, "KCJ_BUTTRESS", "BUTTRESSCODE", "BUTTRESSCODE", ref ds_);
                    Comm.Init_ComboControl(this.cmb_NewButtress, "KCJ_BUTTRESS", "BUTTRESSCODE", "BUTTRESSCODE", ref ds_);
                    Comm.Init_ComboControl(this.cmb_Buttress, "KCJ_BUTTRESS", "BUTTRESSCODE", "BUTTRESSCODE", ref ds_);
                }
                //原料垛位cmb_OldButtress/cmb_NewButtress
                else if (ClientCommon._UserInfo.UserRoleID == "pszxck" || ClientCommon._UserInfo.UserRoleID == "pszxjh")
                {
                    string strSql ="";
                    DataSet ds_ = new DataSet();
                    if (sstyle == "2")
                    {
                        strSql = "select buttresscode from kcj_buttress where buttresstype='1' and isvalid='1'  AND  AREACODE ='配送中心（新钢库）'  order by buttresscode desc ";
                        ds_ = (DataSet)ClientCommon._RemotingHelp.ExecuteMethod("JTurnoffManager", "Core.XgMes.Server.JGKC.TurnoffManager.Common", "GetDataSet", new object[] { strSql }, out strOut);
                        ds_.Tables[0].TableName = "KCJ_BUTTRESS";
                    }
                    else
                    {
                        strSql = "select buttresscode from kcj_buttress where buttresstype='1' and isvalid='1'  AND  AREACODE ='配送中心（线棒库）'  order by buttresscode desc ";
                        ds_ = (DataSet)ClientCommon._RemotingHelp.ExecuteMethod("JTurnoffManager", "Core.XgMes.Server.JGKC.TurnoffManager.Common", "GetDataSet", new object[] { strSql }, out strOut);
                        ds_.Tables[0].TableName = "KCJ_BUTTRESS";
                    }
                    

                    Comm.Init_ComboControl(this.cmb_OldButtress, "KCJ_BUTTRESS", "BUTTRESSCODE", "BUTTRESSCODE", ref ds_);
                    Comm.Init_ComboControl(this.cmb_NewButtress, "KCJ_BUTTRESS", "BUTTRESSCODE", "BUTTRESSCODE", ref ds_);
                    Comm.Init_ComboControl(this.cmb_Buttress, "KCJ_BUTTRESS", "BUTTRESSCODE", "BUTTRESSCODE", ref ds_);
                }
                else
                {
                    string strSql = "select buttresscode from kcj_buttress where buttresstype='1' and isvalid='1' and AREACODE not in ('北京办库区','北京办区域','北京办(长沙库)','配送中心（新钢库）','配送中心（线棒库）') order by buttresscode desc";
                    DataSet ds_ = (DataSet)ClientCommon._RemotingHelp.ExecuteMethod("JTurnoffManager", "Core.XgMes.Server.JGKC.TurnoffManager.Common", "GetDataSet", new object[] { strSql }, out strOut);
                    ds_.Tables[0].TableName = "KCJ_BUTTRESS";

                    Comm.Init_ComboControl(this.cmb_OldButtress, "KCJ_BUTTRESS", "BUTTRESSCODE", "BUTTRESSCODE", ref ds_);
                    Comm.Init_ComboControl(this.cmb_NewButtress, "KCJ_BUTTRESS", "BUTTRESSCODE", "BUTTRESSCODE", ref ds_);
                    Comm.Init_ComboControl(this.cmb_Buttress, "KCJ_BUTTRESS", "BUTTRESSCODE", "BUTTRESSCODE", ref ds_);
                }

			
				//原料区域cmb_NewArea
                if (ClientCommon._UserInfo.UserRoleID == "bjbck")
                {
                    string strSql1 = "select areacode from kcj_area  where areatype='1' and isvalid='1'and  AREACODE in ('北京办库区','北京办区域','北京办(长沙库)')  ";
                    DataSet ds1 = (DataSet)ClientCommon._RemotingHelp.ExecuteMethod("JTurnoffManager", "Core.XgMes.Server.JGKC.TurnoffManager.Common", "GetDataSet", new object[] { strSql1 }, out strOut);
                    ds1.Tables[0].TableName = "KCJ_AREA";

                    Comm.Init_ComboControl(this.cmb_NewArea, "KCJ_AREA", "AREACODE", "AREACODE", ref ds1);
                    Comm.Init_ComboControl(this.cmb_Area, "KCJ_AREA", "AREACODE", "AREACODE", ref ds1);
                }
                     else if (ClientCommon._UserInfo.UserRoleID == "pszxck")
                {
                         string strSql1="";
                         DataSet ds1 = new DataSet();
                         if (sstyle == "2")
                         {
                             strSql1 = "select areacode from kcj_area  where areatype='1' and isvalid='1'and  AREACODE ='配送中心（新钢库）'  ";
                         }
                         else

                         { strSql1 = "select areacode from kcj_area  where areatype='1' and isvalid='1'and  AREACODE ='配送中心（线棒库）'  "; }
                    ds1 = (DataSet)ClientCommon._RemotingHelp.ExecuteMethod("JTurnoffManager", "Core.XgMes.Server.JGKC.TurnoffManager.Common", "GetDataSet", new object[] { strSql1 }, out strOut);
                    ds1.Tables[0].TableName = "KCJ_AREA";

                    Comm.Init_ComboControl(this.cmb_NewArea, "KCJ_AREA", "AREACODE", "AREACODE", ref ds1);
                    Comm.Init_ComboControl(this.cmb_Area, "KCJ_AREA", "AREACODE", "AREACODE", ref ds1);
                }
                else
                {
                    string strSql1 = "select areacode from kcj_area  where areatype='1' and isvalid='1' and AREACODE not in ('北京办库区','北京办区域','北京办(长沙库)','配送中心（新钢库）','配送中心（线棒库）')";
                    DataSet ds1 = (DataSet)ClientCommon._RemotingHelp.ExecuteMethod("JTurnoffManager", "Core.XgMes.Server.JGKC.TurnoffManager.Common", "GetDataSet", new object[] { strSql1 }, out strOut);
                    ds1.Tables[0].TableName = "KCJ_AREA";

                    Comm.Init_ComboControl(this.cmb_NewArea, "KCJ_AREA", "AREACODE", "AREACODE", ref ds1);
                    Comm.Init_ComboControl(this.cmb_Area, "KCJ_AREA", "AREACODE", "AREACODE", ref ds1);
                }

				//班次cmb_BC
				string strSql2 = "select ID_,NAME_  from SCM_BASE_INFO  where sort_code='3002'";
				DataSet ds2 = (DataSet)ClientCommon._RemotingHelp.ExecuteMethod("JTurnoffManager","Core.XgMes.Server.JGKC.TurnoffManager.Common","GetDataSet",new object []{strSql2},out strOut);
				ds2.Tables[0].TableName="SCM_BASE_INFO";

				Comm.Init_ComboControl(this.cmb_BC,"SCM_BASE_INFO","NAME_","ID_",ref ds2);
			
				//班组cmb_BZ
				string strSql3 = "select ID_,NAME_  from SCM_BASE_INFO  where sort_code='3003'";
				DataSet ds3 = (DataSet)ClientCommon._RemotingHelp.ExecuteMethod("JTurnoffManager","Core.XgMes.Server.JGKC.TurnoffManager.Common","GetDataSet",new object []{strSql3},out strOut);
				ds3.Tables[0].TableName="SCM_BASE_INFO";

				Comm.Init_ComboControl(this.cmb_BZ,"SCM_BASE_INFO","NAME_","ID_",ref ds3);

				//转堆人txt_HandleMan
                if (ClientCommon._UserInfo.UserRoleID == "bjbck" )
                {
                    string strSql4 = "select ID_,NAME_  from KCJ_BASEDATA  where sort_code='514009' ";
                    DataSet ds4 = (DataSet)ClientCommon._RemotingHelp.ExecuteMethod("JTurnoffManager", "Core.XgMes.Server.JGKC.TurnoffManager.Common", "GetDataSet", new object[] { strSql4 }, out strOut);
                    ds4.Tables[0].TableName = "KCJ_BASEDATA";

                    Comm.Init_ComboControl(this.txt_HandleMan, "KCJ_BASEDATA", "NAME_", "ID_", ref ds4);
                }
                else if (ClientCommon._UserInfo.UserRoleID == "pszxck")
                {
                    string strSql4 = "select ID_,NAME_  from KCJ_BASEDATA  where sort_code='514010' ";
                    DataSet ds4 = (DataSet)ClientCommon._RemotingHelp.ExecuteMethod("JTurnoffManager", "Core.XgMes.Server.JGKC.TurnoffManager.Common", "GetDataSet", new object[] { strSql4 }, out strOut);
                    ds4.Tables[0].TableName = "KCJ_BASEDATA";

                    Comm.Init_ComboControl(this.txt_HandleMan, "KCJ_BASEDATA", "NAME_", "ID_", ref ds4);
                }
                else
                {
                    string strSql4 = "select ID_,NAME_  from KCJ_BASEDATA  where sort_code='514001'";
                    DataSet ds4 = (DataSet)ClientCommon._RemotingHelp.ExecuteMethod("JTurnoffManager", "Core.XgMes.Server.JGKC.TurnoffManager.Common", "GetDataSet", new object[] { strSql4 }, out strOut);
                    ds4.Tables[0].TableName = "KCJ_BASEDATA";

                    Comm.Init_ComboControl(this.txt_HandleMan, "KCJ_BASEDATA", "NAME_", "ID_", ref ds4);

                }
			}
			catch(Exception ex)
			{
				System.Diagnostics.Debug.WriteLine(ex.ToString());
			}

		}
		#endregion

		#region "得到查询条件"
		private string GetWhere()
		{
			string where = "";

			if(this.txt_PactNO.Enabled && this.txt_PactNO.Text.Trim().Length > 0)
			{
				where += " AND C.PACTNO LIKE '" + this.txt_PactNO.Text.Trim() + "%'";
			}
			if(this.txt_PlanNO.Enabled && this.txt_PlanNO.Text.Trim().Length > 0)
			{
				where += " AND C.PACTINDEX LIKE '" + this.txt_PlanNO.Text.Trim() + "%'";
			}
			if(this.cmb_Area.Enabled && Comm.ObjToStr(this.cmb_Area.Value).Length > 0)
			{
				where += " AND B.AREA = '" + Comm.ObjToStr(this.cmb_Area.Value) + "'";
			}
			if(this.cmb_Buttress.Enabled && Comm.ObjToStr(this.cmb_Buttress.Value).Length > 0)
			{
				where += " AND B.BUTTRESS ='" + Comm.ObjToStr(this.cmb_Buttress.Value) + "'";
			}
			if(this.cmb_ProductLine.Enabled && Comm.ObjToStr(this.cmb_ProductLine.Value).Length > 0)
			{
				where += " AND A.PRODUCTLINE = '" + Comm.ObjToStr(this.cmb_ProductLine.Value) + "'";
			}
			if(this.cmb_SteelType.Enabled && Comm.ObjToStr(this.cmb_SteelType.Value).Length > 0)
			{
				where += " AND A.DETERMINANTCARDNUMBER = '" + Comm.ObjToStr(this.cmb_SteelType.Value) + "'";
			}
			if(this.txt_Condole.Enabled && this.txt_Condole.Text.Trim().Length > 0)
			{
				where += " AND B.CONDOLENUMBER LIKE '" + this.txt_Condole.Text.Trim() + "%'";
			}
			if(this.chk_RollNum.Checked)
			{

				//where += " AND SUBSTR(A.ROLLNUMBER,1,INSTR(A.ROLLNUMBER,'-')-1)='"+Comm.ObjToStr(this.txt_RollTop.Text.Trim())+"' ";
				if(this.txt_RollNOBegin.Text.Trim().Length==5 && this.txt_RollNOEnd.Text.Trim().Length<5)
				{
                    where += " AND A.ROLLNUMBER LIKE '" + this.txt_RollTop.Text.Trim() + "-" + this.txt_RollNOBegin.Text.Trim() + "%'";
				}
				if(this.txt_RollNOBegin.Text.Trim().Length<5 && this.txt_RollNOEnd.Text.Trim().Length==5)
				{
                    where += " AND A.ROLLNUMBER LIKE '" + this.txt_RollTop.Text.Trim() + "-" + this.txt_RollNOEnd.Text.Trim() + "%'";
				}
				if(this.txt_RollNOBegin.Text.Trim().Length==5 && this.txt_RollNOEnd.Text.Trim().Length==5)
				{
                    where += " AND A.ROLLNUMBER BETWEEN '" + this.txt_RollTop.Text.Trim() + "-" + this.txt_RollNOBegin.Text.Trim() + "' "
                           + " AND '" + this.txt_RollTop.Text.Trim() + "-" + this.txt_RollNOEnd.Text.Trim() + "%'";
				}

			}
			if(this.txt_KD.Enabled && Comm.ObjToDecimal(this.txt_KD.Value)>0)
			{
				where += " AND A.WIDTH="+ Comm.ObjToDecimal(this.txt_KD.Value);
			}
			if(this.txt_HD.Enabled && Comm.ObjToDecimal(this.txt_HD.Value)>0)
			{
				where += " AND A.PLY="+Comm.ObjToDecimal(this.txt_HD.Value);
			}
			if(this.txt_CD.Enabled && Comm.ObjToDecimal(this.txt_CD.Value)>0)
			{
				where += " AND A.LENGTH="+Comm.ObjToDecimal(this.txt_CD.Value);
			}
			//宽
			if(this.txt_KS.Enabled && Comm.ObjToStr(cmb_KCondition.Value).Length>0 && Comm.ObjToDecimal(this.txt_KS.Value)>0)
			{
				where += " AND A.WIDTH"+Comm.ObjToStr(cmb_KCondition.Value)+Comm.ObjToDecimal(this.txt_KS.Value);
			}

			//长
			if(this.txt_CS.Enabled && Comm.ObjToStr(cmb_CCondition.Value).Length>0 && Comm.ObjToDecimal(this.txt_CS.Value)>0)
			{
				where += " AND A.LENGTH"+Comm.ObjToStr(cmb_CCondition.Value)+Comm.ObjToDecimal(this.txt_CS.Value);
			}


			//where += " ORDER BY CONDOLENUMBER, BUTTRESSLAYER,CONDOLELAYER  ASC ";

			return where;
		
		}
			
		#endregion

		#region "查询垛位信息"
		private void QueryButtress( string _where)
		{			
			string strOut = "";
            DataSet ds = new DataSet();

			try
			{
                if (ClientCommon._UserInfo.UserRoleID == "pszxck" || ClientCommon._UserInfo.UserRoleID == "pszxjh")
                {
                    if (sstyle == "2" || sstyle == "3")
                    {
                        if (chk_SendType.Checked == true)
                        {
                            this.ds_TurnoffButtress.Tables["KCJ_TURNOFFBUTTRESSLIST"].Clear();
                            ds = (DataSet)Core.Mes.ClientFrameWork.ClientCommon._RemotingHelp.ExecuteMethod("JTurnoffManager", "Core.XgMes.Server.JGKC.TurnoffManager.TurnoffMoveButtress",
                               "GetTurnoffButtress_SendType_PS", new object[] { _where, sstyle }, out strOut);
                        }
                        else
                        {
                            this.ds_TurnoffButtress.Tables["KCJ_TURNOFFBUTTRESSLIST"].Clear();
                            ds = (DataSet)Core.Mes.ClientFrameWork.ClientCommon._RemotingHelp.ExecuteMethod("JTurnoffManager", "Core.XgMes.Server.JGKC.TurnoffManager.TurnoffMoveButtress",
                               "GetTurnoffButtress_PS", new object[] { _where, sstyle }, out strOut);
                        }
                    }
                }
                else
                {
                    if (chk_SendType.Checked == true)
                    {
                        this.ds_TurnoffButtress.Tables["KCJ_TURNOFFBUTTRESSLIST"].Clear();
                        ds = (DataSet)Core.Mes.ClientFrameWork.ClientCommon._RemotingHelp.ExecuteMethod("JTurnoffManager", "Core.XgMes.Server.JGKC.TurnoffManager.TurnoffMoveButtress",
                           "GetTurnoffButtress_SendType", new object[] { _where, ClientCommon._UserInfo.UserRoleID.ToString(), sstyle }, out strOut);
                    }
                    else
                    {
                        this.ds_TurnoffButtress.Tables["KCJ_TURNOFFBUTTRESSLIST"].Clear();
                        ds = (DataSet)Core.Mes.ClientFrameWork.ClientCommon._RemotingHelp.ExecuteMethod("JTurnoffManager", "Core.XgMes.Server.JGKC.TurnoffManager.TurnoffMoveButtress",
                           "GetTurnoffButtress", new object[] { _where, ClientCommon._UserInfo.UserRoleID.ToString(), sstyle }, out strOut);
                    }
                }
              

				if(strOut == "")
				{
					this.ds_TurnoffButtress.Merge(ds);
					this.ds_TurnoffButtress.Tables["KCJ_TURNOFFBUTTRESSLIST"].AcceptChanges();
					Comm.SetGridSumArea(this.dg_TurnoffButtress);
                    dg_TurnoffButtress.DisplayLayout.Bands[0].SortedColumns.Clear();
                    dg_TurnoffButtress.DisplayLayout.Bands[0].SortedColumns.Add("CREATTIME", false);
				}
				else
				{
					MessageBox.Show(strOut,"提示",MessageBoxButtons.OK,MessageBoxIcon.Warning);	
				}

			}
			catch(Exception ex)
			{
				System.Diagnostics.Debug.WriteLine(ex.ToString());
			}
            
		}

		#endregion

		#region "导出报表"
		private void ExportButtressInfo()
		{
			if(this.dg_TurnoffButtress.Rows.Count > 0)
			{
				Comm.ExPortExcel(this.dg_TurnoffButtress,this.excelExporter);
			}
			else
			{
				MessageBox.Show("无垛位信息数据，不能导出！","提示",MessageBoxButtons.OK,MessageBoxIcon.Information);
			}

		}
		#endregion 

		#region "更新GRIDE"
		private void UpdateGrid(string OButtress,string OCondole,string BilletID,string NButtress,string NCondole)
		{
			string where = "";
			string DelWhere = "";
			string err = "";

			try
			{				
				if(BilletID.Length>0)
				{
					where = " AND A.BILLETID='" + BilletID +"' ";
					DelWhere = "BILLETID='" + BilletID +"'";
				}
				else
				{
					where = " AND B.BUTTRESS='"+NButtress+"' AND B.CONDOLENUMBER='"+NCondole+"'";
					DelWhere = "BUTTRESS='"+OButtress+"' AND CONDOLENUMBER='"+OCondole+"'";
				}

				System.Data.DataRow[] rows = this.ds_TurnoffButtress.Tables["KCJ_TURNOFFBUTTRESSLIST"].Select(DelWhere);
				if(rows.Length>0)
				{
					for(int i=rows.Length-1;i>=0;i--)
					{
						this.ds_TurnoffButtress.Tables["KCJ_TURNOFFBUTTRESSLIST"].Rows.Remove(rows[i]);
					}
				}

                DataSet ds = (DataSet)Core.Mes.ClientFrameWork.ClientCommon._RemotingHelp.ExecuteMethod("JTurnoffManager", "Core.XgMes.Server.JGKC.TurnoffManager.TurnoffMoveButtress",
                    "GetTurnoffButtress", new object[] { where, ClientCommon._UserInfo.UserRoleID.ToString() ,sstyle}, out err);
                if (ds != null)
                {
                    this.ds_TurnoffButtress.Merge(ds);
                    this.ds_TurnoffButtress.AcceptChanges();
                }
				Comm.SetGridSumArea(this.dg_TurnoffButtress);
				
			}
			catch(System.Exception ex)
			{
				System.Diagnostics.Debug.WriteLine(ex.ToString());
			}
		}
		#endregion

		#region "调整垛位/吊号/备注"
		private void Adjust()
		{
			string ydh = "";
			string xdh = "";
			string strerr = "";
			string remarktype = "0";
            string strRemark = "";

			try
			{
				if(!CheckAdjust())
					return;
			
				this.txt_YDH.Text = this.txt_YDH.Text.PadLeft(3,'0');
				if(this.txt_XDH.Text.Length>0)
					this.txt_XDH.Text = this.txt_XDH.Text.PadLeft(3,'0');
				if(this.txt_YDH.Text.Length>0)
					this.txt_YDH.Text = this.txt_YDH.Text.PadLeft(3,'0');
				if(this.txt_YDHDate.Text.Length==0)
				{
					ydh = this.txt_YDH.Text;
				}
				else
				{
					ydh = this.txt_YDHDate.Text + "-" + this.txt_YDH.Text;
				}
//				if(this.txt_XDHDate.Text.Length==0 && this.txt_XDH.Text.Length==0)
//				{
//					xdh = this.txt_XDH.Text;
//				}
//				if(this.txt_XDHDate.Text.Length==0 && this.txt_XDH.Text.Length>0)
//				{
//					xdh = this.txt_XDH.Text;
//				}	
				if(this.txt_XDHDate.Text.Trim().Length>0 && this.txt_XDH.Text.Trim().Length>0)
				{
					xdh = this.txt_XDHDate.Text.Trim() + "-" + this.txt_XDH.Text.Trim();
				}
				else
				{
					xdh = this.txt_XDH.Text.Trim();
				}
                if (sstyle == "3")
                {
                    strRemark = ult_Remark.Text.Trim().ToString();
                }
                else
                { strRemark = txt_YY.Text.Trim().ToString(); }

				System.Collections.ArrayList OButtress = new ArrayList();
				System.Collections.ArrayList NButtress = new ArrayList();
				System.Collections.ArrayList HandleInfo	= new ArrayList();
				OButtress.Add(Comm.ObjToStr(this.cmb_OldButtress.Value));
				OButtress.Add(Comm.ObjToStr(ydh));
				OButtress.Add(Comm.ObjToStr(this.txt_XH.Text));
				
				NButtress.Add(Comm.ObjToStr(this.cmb_NewButtress.Text.Length>0?this.cmb_NewButtress.Value:this.cmb_OldButtress.Value));
				NButtress.Add(Comm.ObjToStr(xdh.Length>0?xdh:ydh));

				HandleInfo.Add(Comm.ObjToStr(this.txt_HandleMan.Text));
				HandleInfo.Add(Comm.ObjToStr(this.cmb_BC.Value));
				HandleInfo.Add(Comm.ObjToStr(this.cmb_BZ.Value));				
				
				if(this.Chk_Replace.Checked)
					remarktype = "1";

				if(this.Dte_AjustTime.Value != null)
				{
					HandleInfo.Add(Convert.ToDateTime(this.Dte_AjustTime.Value).ToString("yyyy-MM-dd hh:mm:ss"));
				}
				else
				{
					HandleInfo.Add("");
				}
				HandleInfo.Add(Core.Mes.ClientFrameWork.ClientCommon._UserInfo.UserName);
                HandleInfo.Add(sstyle);
                HandleInfo.Add(ClientCommon._UserInfo.UserRoleID.ToString());
				
				object obj = Core.Mes.ClientFrameWork.ClientCommon._RemotingHelp.ExecuteMethod("JTurnoffManager","Core.XgMes.Server.JGKC.TurnoffManager.TurnoffMoveButtress",
                    "TurnoffButtressAdjust", new object[] { OButtress, NButtress, HandleInfo, strRemark.Trim().ToString(), remarktype }, out strerr);
				if(obj!=null && obj.ToString()=="1")
				{
					MessageBox.Show("调整提交成功","提示",MessageBoxButtons.OK,MessageBoxIcon.Information);
					UpdateGrid(Comm.ObjToStr(this.cmb_OldButtress.Text),ydh,Comm.ObjToStr(this.txt_XH.Text),Comm.ObjToStr(this.cmb_NewButtress.Text),xdh.Length>0?xdh:ydh);
				}
				else
				{
					MessageBox.Show(strerr,"提示",MessageBoxButtons.OK,MessageBoxIcon.Warning);
				}


			}
			catch(Exception ex)
			{
				System.Diagnostics.Debug.WriteLine(ex.ToString());
			}

		}
		#endregion 

		#region "检查垛位/吊号是否需要调整"
		private bool CheckAdjust()
		{
			string strOut="";

			if(this.txt_YDH.Text.Trim().Length == 0)
			{
				MessageBox.Show("请您确认您要调整的原吊号");
				return false;
			}
			if(Comm.ObjToStr(this.cmb_BC.Value).Length==0)
			{
				MessageBox.Show("请您确认您要转堆的班次");
				return false;
			}
			if(Comm.ObjToStr(this.cmb_BZ.Value).Length==0)
			{
				MessageBox.Show("请您确认您要转堆的班组");
				return false;
			}
			if(Comm.ObjToStr(this.txt_HandleMan.Text).Length==0)
			{
				MessageBox.Show("请您确认您要转堆人");
				return false;
			}					
//			if(this.txt_XDHDate.Text.Trim().Length==0 && this.txt_XDH.Text.Length>0)
//			{
//				MessageBox.Show("请您确认新吊号的日期");
//				return false;
//			}
			if(Comm.ObjToStr(this.cmb_OldButtress.Value)=="临时垛位" &&  Comm.ObjToStr(this.cmb_NewButtress.Value)=="临时垛位")
			{
				MessageBox.Show("请您确认新垛位，新垛位不能为--临时垛位");
				return false;
			}

			string NButtress = Comm.ObjToStr(this.cmb_NewButtress.Value).Length >0? Comm.ObjToStr(this.cmb_NewButtress.Value):Comm.ObjToStr(this.cmb_OldButtress.Value);
			string NCondole = "";
			string OCondole = "";
			if(this.txt_YDHDate.Text.Length==0)
			{
				OCondole = this.txt_YDH.Text;
			}
			else
			{
				OCondole = this.txt_YDHDate.Text + "-" + this.txt_YDH.Text;
			}
			if(this.txt_XDHDate.Text.Length==0)
			{
				NCondole = this.txt_XDH.Text;
			}
			else
			{
				NCondole = this.txt_XDHDate.Text + "-" + this.txt_XDH.Text;
			}
			NCondole = NCondole.Length>0?NCondole:OCondole;

			string sql = "SELECT COUNT(1) FROM KCJ_TURNOFFBUTTRESSLIST WHERE BUTTRESS='" + NButtress + "' AND CONDOLENUMBER='" + NCondole + "'";
			
			DataSet ds = (DataSet)ClientCommon._RemotingHelp.ExecuteMethod("JTurnoffManager","Core.XgMes.Server.JGKC.TurnoffManager.Common","GetDataSet",new object []{sql},out strOut);
			if(Comm.ObjToDecimal(ds.Tables[0].Rows[0][0]) > 0)
			{
				System.Windows.Forms.DialogResult t = MessageBox.Show("吊号" + NCondole + "已在" + NButtress + "堆位","提示",System.Windows.Forms.MessageBoxButtons.YesNo,MessageBoxIcon.Information);
				if(t == System.Windows.Forms.DialogResult.No)
				{
					return false;
				}
			}

			return true;

		}
		#endregion

		#region "Key Event"
		private void txt_XDH_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
		{
			string dh ="";
		
			try
			{
				if(e.KeyData == System.Windows.Forms.Keys.Return)
				{
					if(((System.Windows.Forms.Control)sender).Name == "txt_YDH")
					{
						if(this.txt_YDH.Text.Length>0)
							this.txt_YDH.Text = this.txt_YDH.Text.PadLeft(3,'0');
						if(this.txt_YDH.Text.Length==0)
						{
							MessageBox.Show("请您输入吊号","提示",MessageBoxButtons.OK,MessageBoxIcon.Information);
							return;
						}
						else
						{							
							if(this.txt_YDHDate.Text.Length==0)
							{
								dh = this.txt_YDH.Text;
							}
							else
							{
								dh = this.txt_YDHDate.Text + "-" + this.txt_YDH.Text;
							}
							string where = " AND B.CONDOLENUMBER='"+dh+"' ";
							QueryButtress(where);
							if(this.dg_TurnoffButtress.Rows.Count>0)
							{
								this.cmb_OldButtress.Value = Comm.ObjToStr(this.dg_TurnoffButtress.Rows[0].Cells["BUTTRESS"].Value);
							}
							else
							{
								MessageBox.Show("库存不存在吊号为"+this.txt_YDH.Text+"的板块","提示",MessageBoxButtons.OK,MessageBoxIcon.Information);
								return;
							}
						}

					}

					if(((System.Windows.Forms.Control)sender).Name == "txt_XDH")
					{
						this.Adjust();
						this.txt_YDH.Focus();
						this.txt_YDH.SelectAll();
						return;

					}
					System.Windows.Forms.SendKeys.Send("{TAB}");

				}

			}
			catch(Exception ex)
			{
				System.Diagnostics.Debug.WriteLine(ex.ToString());
			}

		}

		private void txt_XDH_Enter(object sender, System.EventArgs e)
		{
			if(sender.GetType().ToString()=="Infragistics.Win.UltraWinEditors.UltraTextEditor")
			{
				((Infragistics.Win.UltraWinEditors.UltraTextEditor)sender).SelectAll();
			}
			if(sender.GetType().ToString()=="Infragistics.Win.UltraWinEditors.UltraNumericEditor")
			{
				((Infragistics.Win.UltraWinEditors.UltraNumericEditor)sender).SelectAll();
			}
		}

		#endregion

		#region 打印标签、唛头号
		[DllImport("YHBC.dll", EntryPoint="printString")]
		public static extern void PrintString(string str);

		private void Print_Log()
		{
			try
			{
				string strPrint = "";
				if(dg_TurnoffButtress.Selected.Rows.Count >0)
				{
					foreach(Infragistics.Win.UltraWinGrid.UltraGridRow row in this.dg_TurnoffButtress.Selected.Rows)
					{
						strPrint = "";
						strPrint = row.Cells["PACTNO"].Text +" "+ row.Cells["BILLETID"].Text+" "+ row.Cells["DETERMINANTCARDNUMBER"].Text+ " "+row.Cells["SPET"].Text;
						PrintString(strPrint);
					}
				}
				else
				{
					MessageBox.Show("请选择需打印标签的板块信息！","提示",MessageBoxButtons.OK,MessageBoxIcon.Information);
				}
			}
			catch(Exception ex)
			{
				System.Diagnostics.Debug.WriteLine(ex.ToString());
			}

		}
		#endregion
	


	}
}
