using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using Core.Mes.ClientFrameWork;
using Core.Mes.IBaseInterface;
using Core.XgMes.Client.StorageBase;


namespace Core.XgMes.Client.JGKC.SteelPlateManager
{
	/// <summary>
	/// 板材加工中心发运
	/// </summary>
	public class FrmTurnoffSendList : Core.XgMes.Client.StorageBase.FrmStorageBaseMode
	{
		#region "Varible"
        public string strlx = "";
		private Infragistics.Win.UltraWinGrid.UltraGrid Grd_HCSendPlan;
		private System.Windows.Forms.Panel Pal_Edit;
		private Infragistics.Win.UltraWinTabControl.UltraTabControl Tab_Match;
		private Infragistics.Win.UltraWinTabControl.UltraTabSharedControlsPage ultraTabSharedControlsPage1;
		private Infragistics.Win.UltraWinTabControl.UltraTabPageControl ultraTabPageControl1;
		private Infragistics.Win.UltraWinGrid.UltraGrid Grd_Storage;
		private Infragistics.Win.UltraWinTabControl.UltraTabPageControl ultraTabPageControl2;
        private Infragistics.Win.UltraWinGrid.UltraGrid Grd_Send;
		private Infragistics.Win.Misc.UltraLabel ultraLabel1;
		private Infragistics.Win.UltraWinEditors.UltraTextEditor Txt_AskPlan;
		private Infragistics.Win.UltraWinEditors.UltraTextEditor Txt_VecihleNO;
		private Infragistics.Win.Misc.UltraLabel ultraLabel2;
		private Infragistics.Win.Misc.UltraLabel ultraLabel3;
		private Infragistics.Win.UltraWinEditors.UltraTextEditor Txt_ListCoding;
		private Infragistics.Win.Misc.UltraLabel ultraLabel4;
		private Infragistics.Win.UltraWinGrid.UltraCombo Cmb_SendMan;
		private Infragistics.Win.Misc.UltraLabel ultraLabel5;
		private Infragistics.Win.UltraWinGrid.UltraCombo Cmb_ClassOrder;
		private Infragistics.Win.Misc.UltraLabel ultraLabel6;
        private Infragistics.Win.UltraWinGrid.UltraCombo Cmb_ClassTeam;
		private Infragistics.Win.Misc.UltraLabel ultraLabel8;
		private Infragistics.Win.UltraWinEditors.UltraDateTimeEditor Dte_SendTime;
		private Infragistics.Win.Misc.UltraLabel lab_Condole;
		private Infragistics.Win.UltraWinEditors.UltraTextEditor Txt_Condole;
		private Infragistics.Win.Misc.UltraLabel ultraLabel9;
		private Infragistics.Win.UltraWinEditors.UltraTextEditor Txt_Billet;
        private Infragistics.Win.Misc.UltraButton Btn_SendBillet;
		private Infragistics.Win.Misc.UltraButton Btn_GetListCoding;
		private Infragistics.Win.UltraWinEditors.UltraDateTimeEditor Dte_EndTime;
		private Infragistics.Win.Misc.UltraLabel Lab_To;
		private Infragistics.Win.UltraWinEditors.UltraDateTimeEditor Dte_BeginTime;
        private Infragistics.Win.UltraWinEditors.UltraCheckEditor Chk_DeliveryTime;
		private Infragistics.Win.UltraWinEditors.UltraCheckEditor Chk_PactNO;
		private Infragistics.Win.UltraWinEditors.UltraTextEditor Txt_PactNO;
		private Infragistics.Win.UltraWinEditors.UltraTextEditor Txt_PlanNO;
		private Infragistics.Win.UltraWinEditors.UltraCheckEditor Chk_PlanNO;
		private Infragistics.Win.UltraWinEditors.UltraTextEditor txt_AskPlanID;
		private Infragistics.Win.UltraWinEditors.UltraCheckEditor Chk_AskPlanID;
		private Infragistics.Win.UltraWinEditors.UltraTextEditor txt_ListCode;
		private Infragistics.Win.UltraWinEditors.UltraCheckEditor chk_ListCode;
		private Infragistics.Win.Misc.UltraLabel ultraLabel10;
		private Infragistics.Win.UltraWinEditors.UltraTextEditor txt_RollNOEnd;
        private Infragistics.Win.UltraWinEditors.UltraTextEditor txt_RollNOBegin;
        private Infragistics.Win.UltraWinEditors.UltraCheckEditor chk_RollNO;
        private Infragistics.Win.UltraWinEditors.UltraTextEditor Txt_Remark;
		private Infragistics.Win.Misc.UltraLabel ultraLabel14;
        private Infragistics.Win.UltraWinEditors.UltraTextEditor Txt_IncpName;
		#endregion

        private Infragistics.Win.Misc.UltraLabel ultraLabel18;
		private Infragistics.Win.UltraWinEditors.UltraTextEditor Txt_SendPactNO;
        private Infragistics.Win.Misc.UltraButton btn_Edit;
        private Infragistics.Win.Misc.UltraButton btn_NSendID;
        private Infragistics.Win.UltraWinEditors.UltraCheckEditor chk_AllowFilter;
        private Infragistics.Win.UltraWinGrid.UltraCombo Cmb_Txt_ListCodingTop;
        private Infragistics.Win.Misc.UltraLabel ultraLabel19;
        private Infragistics.Win.UltraWinTabControl.UltraTabPageControl ultraTabPageControl3;
        private Infragistics.Win.UltraWinGrid.UltraGrid Grd_HBSend;
        private Infragistics.Win.UltraWinTabControl.UltraTabPageControl ultraTabPageControl4;
        private Infragistics.Win.UltraWinGrid.UltraGrid Grd_ZBSend;
        private Infragistics.Win.UltraWinEditors.UltraTextEditor txt_Icode;
        private Infragistics.Win.UltraWinEditors.UltraCheckEditor chk_QXFY;
        private Infragistics.Win.Misc.UltraButton chk_ybfs;
        private Infragistics.Win.Misc.UltraButton chk_cxfs;
        private Infragistics.Win.UltraWinEditors.UltraTextEditor Txt_PhoneNum;
        private Infragistics.Win.Misc.UltraLabel ultraLabel7;
        

		/// <summary>
		/// 必需的设计器变量。
		/// </summary>
		private System.ComponentModel.Container components = null;

		public FrmTurnoffSendList()
		{
			//
			// 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()
		{
            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.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 appearance89 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance90 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance91 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance92 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance93 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance94 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance95 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance96 = 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.Appearance appearance36 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance37 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance38 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance39 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance40 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance41 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance42 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance43 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance44 = new Infragistics.Win.Appearance();
            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();
            Infragistics.Win.Appearance appearance57 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance58 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance59 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance60 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance61 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance62 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance63 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance64 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance65 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance66 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance67 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance68 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance69 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance70 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance71 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance72 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance73 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance74 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance75 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance76 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance77 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance78 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance79 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance80 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance81 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance82 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance83 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance84 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance85 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance86 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance87 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance88 = new Infragistics.Win.Appearance();
            Infragistics.Win.UltraWinTabControl.UltraTab ultraTab1 = new Infragistics.Win.UltraWinTabControl.UltraTab();
            Infragistics.Win.UltraWinTabControl.UltraTab ultraTab2 = new Infragistics.Win.UltraWinTabControl.UltraTab();
            Infragistics.Win.UltraWinTabControl.UltraTab ultraTab3 = new Infragistics.Win.UltraWinTabControl.UltraTab();
            Infragistics.Win.UltraWinTabControl.UltraTab ultraTab4 = new Infragistics.Win.UltraWinTabControl.UltraTab();
            Infragistics.Win.Appearance appearance7 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance8 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance6 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance5 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance3 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance4 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance1 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance2 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance25 = new Infragistics.Win.Appearance();
            this.ultraTabPageControl1 = new Infragistics.Win.UltraWinTabControl.UltraTabPageControl();
            this.Grd_Storage = new Infragistics.Win.UltraWinGrid.UltraGrid();
            this.ultraTabPageControl2 = new Infragistics.Win.UltraWinTabControl.UltraTabPageControl();
            this.Grd_Send = new Infragistics.Win.UltraWinGrid.UltraGrid();
            this.ultraTabPageControl3 = new Infragistics.Win.UltraWinTabControl.UltraTabPageControl();
            this.Grd_HBSend = new Infragistics.Win.UltraWinGrid.UltraGrid();
            this.ultraTabPageControl4 = new Infragistics.Win.UltraWinTabControl.UltraTabPageControl();
            this.Grd_ZBSend = new Infragistics.Win.UltraWinGrid.UltraGrid();
            this.Grd_HCSendPlan = new Infragistics.Win.UltraWinGrid.UltraGrid();
            this.Pal_Edit = new System.Windows.Forms.Panel();
            this.chk_cxfs = new Infragistics.Win.Misc.UltraButton();
            this.chk_ybfs = new Infragistics.Win.Misc.UltraButton();
            this.chk_QXFY = new Infragistics.Win.UltraWinEditors.UltraCheckEditor();
            this.txt_Icode = new Infragistics.Win.UltraWinEditors.UltraTextEditor();
            this.Cmb_Txt_ListCodingTop = new Infragistics.Win.UltraWinGrid.UltraCombo();
            this.btn_NSendID = new Infragistics.Win.Misc.UltraButton();
            this.btn_Edit = new Infragistics.Win.Misc.UltraButton();
            this.Txt_SendPactNO = new Infragistics.Win.UltraWinEditors.UltraTextEditor();
            this.ultraLabel18 = new Infragistics.Win.Misc.UltraLabel();
            this.Txt_IncpName = new Infragistics.Win.UltraWinEditors.UltraTextEditor();
            this.ultraLabel14 = new Infragistics.Win.Misc.UltraLabel();
            this.Btn_GetListCoding = new Infragistics.Win.Misc.UltraButton();
            this.Btn_SendBillet = new Infragistics.Win.Misc.UltraButton();
            this.Txt_Billet = new Infragistics.Win.UltraWinEditors.UltraTextEditor();
            this.ultraLabel9 = new Infragistics.Win.Misc.UltraLabel();
            this.Txt_Condole = new Infragistics.Win.UltraWinEditors.UltraTextEditor();
            this.lab_Condole = new Infragistics.Win.Misc.UltraLabel();
            this.Dte_SendTime = new Infragistics.Win.UltraWinEditors.UltraDateTimeEditor();
            this.ultraLabel8 = new Infragistics.Win.Misc.UltraLabel();
            this.Txt_Remark = new Infragistics.Win.UltraWinEditors.UltraTextEditor();
            this.ultraLabel19 = new Infragistics.Win.Misc.UltraLabel();
            this.Cmb_ClassTeam = new Infragistics.Win.UltraWinGrid.UltraCombo();
            this.ultraLabel6 = new Infragistics.Win.Misc.UltraLabel();
            this.Cmb_ClassOrder = new Infragistics.Win.UltraWinGrid.UltraCombo();
            this.ultraLabel5 = new Infragistics.Win.Misc.UltraLabel();
            this.Cmb_SendMan = new Infragistics.Win.UltraWinGrid.UltraCombo();
            this.ultraLabel4 = new Infragistics.Win.Misc.UltraLabel();
            this.Txt_ListCoding = new Infragistics.Win.UltraWinEditors.UltraTextEditor();
            this.ultraLabel3 = new Infragistics.Win.Misc.UltraLabel();
            this.Txt_VecihleNO = new Infragistics.Win.UltraWinEditors.UltraTextEditor();
            this.ultraLabel2 = new Infragistics.Win.Misc.UltraLabel();
            this.Txt_AskPlan = new Infragistics.Win.UltraWinEditors.UltraTextEditor();
            this.ultraLabel1 = new Infragistics.Win.Misc.UltraLabel();
            this.Tab_Match = new Infragistics.Win.UltraWinTabControl.UltraTabControl();
            this.ultraTabSharedControlsPage1 = new Infragistics.Win.UltraWinTabControl.UltraTabSharedControlsPage();
            this.Dte_EndTime = new Infragistics.Win.UltraWinEditors.UltraDateTimeEditor();
            this.Lab_To = new Infragistics.Win.Misc.UltraLabel();
            this.Dte_BeginTime = new Infragistics.Win.UltraWinEditors.UltraDateTimeEditor();
            this.Chk_DeliveryTime = new Infragistics.Win.UltraWinEditors.UltraCheckEditor();
            this.Txt_PactNO = new Infragistics.Win.UltraWinEditors.UltraTextEditor();
            this.Chk_PactNO = new Infragistics.Win.UltraWinEditors.UltraCheckEditor();
            this.Txt_PlanNO = new Infragistics.Win.UltraWinEditors.UltraTextEditor();
            this.Chk_PlanNO = new Infragistics.Win.UltraWinEditors.UltraCheckEditor();
            this.txt_AskPlanID = new Infragistics.Win.UltraWinEditors.UltraTextEditor();
            this.Chk_AskPlanID = new Infragistics.Win.UltraWinEditors.UltraCheckEditor();
            this.txt_ListCode = new Infragistics.Win.UltraWinEditors.UltraTextEditor();
            this.chk_ListCode = 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.chk_RollNO = new Infragistics.Win.UltraWinEditors.UltraCheckEditor();
            this.chk_AllowFilter = new Infragistics.Win.UltraWinEditors.UltraCheckEditor();
            this.Txt_PhoneNum = new Infragistics.Win.UltraWinEditors.UltraTextEditor();
            this.ultraLabel7 = new Infragistics.Win.Misc.UltraLabel();
            ((System.ComponentModel.ISupportInitialize)(this.BaseToolBarManager)).BeginInit();
            this.FrmBaseMode_Fill_Panel.SuspendLayout();
            this.Pal_Top.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.Grp_Query)).BeginInit();
            this.Grp_Query.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.Calc_Manager)).BeginInit();
            this.Pal_Buttom.SuspendLayout();
            this.ultraTabPageControl1.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.Grd_Storage)).BeginInit();
            this.ultraTabPageControl2.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.Grd_Send)).BeginInit();
            this.ultraTabPageControl3.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.Grd_HBSend)).BeginInit();
            this.ultraTabPageControl4.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.Grd_ZBSend)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.Grd_HCSendPlan)).BeginInit();
            this.Pal_Edit.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.txt_Icode)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.Cmb_Txt_ListCodingTop)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.Txt_SendPactNO)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.Txt_IncpName)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.Txt_Billet)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.Txt_Condole)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.Dte_SendTime)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.Txt_Remark)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.Cmb_ClassTeam)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.Cmb_ClassOrder)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.Cmb_SendMan)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.Txt_ListCoding)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.Txt_VecihleNO)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.Txt_AskPlan)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.Tab_Match)).BeginInit();
            this.Tab_Match.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.Dte_EndTime)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.Dte_BeginTime)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.Txt_PactNO)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.Txt_PlanNO)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.txt_AskPlanID)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.txt_ListCode)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.txt_RollNOEnd)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.txt_RollNOBegin)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.Txt_PhoneNum)).BeginInit();
            this.SuspendLayout();
            // 
            // BaseToolBarManager
            // 
            this.BaseToolBarManager.MenuSettings.ForceSerialization = true;
            this.BaseToolBarManager.ToolbarSettings.AllowCustomize = Infragistics.Win.DefaultableBoolean.False;
            // 
            // FrmBaseMode_Fill_Panel
            // 
            this.FrmBaseMode_Fill_Panel.Size = new System.Drawing.Size(1162, 556);
            // 
            // _FrmBaseMode_Toolbars_Dock_Area_Left
            // 
            this._FrmBaseMode_Toolbars_Dock_Area_Left.Location = new System.Drawing.Point(0, 20);
            this._FrmBaseMode_Toolbars_Dock_Area_Left.Size = new System.Drawing.Size(0, 556);
            // 
            // _FrmBaseMode_Toolbars_Dock_Area_Right
            // 
            this._FrmBaseMode_Toolbars_Dock_Area_Right.Location = new System.Drawing.Point(1162, 20);
            this._FrmBaseMode_Toolbars_Dock_Area_Right.Size = new System.Drawing.Size(0, 556);
            // 
            // _FrmBaseMode_Toolbars_Dock_Area_Top
            // 
            this._FrmBaseMode_Toolbars_Dock_Area_Top.Size = new System.Drawing.Size(1162, 20);
            // 
            // _FrmBaseMode_Toolbars_Dock_Area_Bottom
            // 
            this._FrmBaseMode_Toolbars_Dock_Area_Bottom.Location = new System.Drawing.Point(0, 576);
            this._FrmBaseMode_Toolbars_Dock_Area_Bottom.Size = new System.Drawing.Size(1162, 0);
            // 
            // Pal_Top
            // 
            this.Pal_Top.Size = new System.Drawing.Size(1162, 53);
            // 
            // Grp_Query
            // 
            this.Grp_Query.Controls.Add(this.chk_AllowFilter);
            this.Grp_Query.Controls.Add(this.ultraLabel10);
            this.Grp_Query.Controls.Add(this.txt_RollNOEnd);
            this.Grp_Query.Controls.Add(this.txt_RollNOBegin);
            this.Grp_Query.Controls.Add(this.chk_RollNO);
            this.Grp_Query.Controls.Add(this.txt_AskPlanID);
            this.Grp_Query.Controls.Add(this.Chk_AskPlanID);
            this.Grp_Query.Controls.Add(this.txt_ListCode);
            this.Grp_Query.Controls.Add(this.chk_ListCode);
            this.Grp_Query.Controls.Add(this.Txt_PlanNO);
            this.Grp_Query.Controls.Add(this.Chk_PlanNO);
            this.Grp_Query.Controls.Add(this.Txt_PactNO);
            this.Grp_Query.Controls.Add(this.Chk_PactNO);
            this.Grp_Query.Controls.Add(this.Dte_EndTime);
            this.Grp_Query.Controls.Add(this.Lab_To);
            this.Grp_Query.Controls.Add(this.Dte_BeginTime);
            this.Grp_Query.Controls.Add(this.Chk_DeliveryTime);
            this.Grp_Query.Size = new System.Drawing.Size(1162, 53);
            // 
            // Pal_Buttom
            // 
            this.Pal_Buttom.Controls.Add(this.Tab_Match);
            this.Pal_Buttom.Controls.Add(this.Pal_Edit);
            this.Pal_Buttom.Controls.Add(this.Grd_HCSendPlan);
            this.Pal_Buttom.Location = new System.Drawing.Point(0, 53);
            this.Pal_Buttom.Size = new System.Drawing.Size(1162, 503);
            // 
            // ultraTabPageControl1
            // 
            this.ultraTabPageControl1.Controls.Add(this.Grd_Storage);
            this.ultraTabPageControl1.Location = new System.Drawing.Point(2, 21);
            this.ultraTabPageControl1.Name = "ultraTabPageControl1";
            this.ultraTabPageControl1.Size = new System.Drawing.Size(1158, 154);
            // 
            // Grd_Storage
            // 
            this.Grd_Storage.CalcManager = this.Calc_Manager;
            this.Grd_Storage.DisplayLayout.CaptionVisible = Infragistics.Win.DefaultableBoolean.True;
            appearance9.BackColor = System.Drawing.SystemColors.ActiveBorder;
            appearance9.BackColor2 = System.Drawing.SystemColors.ControlDark;
            appearance9.BackGradientStyle = Infragistics.Win.GradientStyle.Vertical;
            appearance9.BorderColor = System.Drawing.SystemColors.Window;
            this.Grd_Storage.DisplayLayout.GroupByBox.Appearance = appearance9;
            appearance10.ForeColor = System.Drawing.SystemColors.GrayText;
            this.Grd_Storage.DisplayLayout.GroupByBox.BandLabelAppearance = appearance10;
            this.Grd_Storage.DisplayLayout.GroupByBox.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid;
            this.Grd_Storage.DisplayLayout.GroupByBox.Hidden = true;
            appearance11.BackColor = System.Drawing.SystemColors.ControlLightLight;
            appearance11.BackColor2 = System.Drawing.SystemColors.Control;
            appearance11.BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal;
            appearance11.ForeColor = System.Drawing.SystemColors.GrayText;
            this.Grd_Storage.DisplayLayout.GroupByBox.PromptAppearance = appearance11;
            this.Grd_Storage.DisplayLayout.Override.CellPadding = 0;
            this.Grd_Storage.DisplayLayout.Override.FilterUIType = Infragistics.Win.UltraWinGrid.FilterUIType.FilterRow;
            appearance12.BackColor = System.Drawing.SystemColors.Control;
            appearance12.BackColor2 = System.Drawing.SystemColors.ControlDark;
            appearance12.BackGradientAlignment = Infragistics.Win.GradientAlignment.Element;
            appearance12.BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal;
            appearance12.BorderColor = System.Drawing.SystemColors.Window;
            this.Grd_Storage.DisplayLayout.Override.GroupByRowAppearance = appearance12;
            appearance13.BackColor = System.Drawing.Color.LightSteelBlue;
            appearance13.TextHAlign = Infragistics.Win.HAlign.Center;
            this.Grd_Storage.DisplayLayout.Override.HeaderAppearance = appearance13;
            this.Grd_Storage.DisplayLayout.Override.MinRowHeight = 21;
            appearance14.BackColor = System.Drawing.SystemColors.Window;
            appearance14.BorderColor = System.Drawing.Color.Silver;
            this.Grd_Storage.DisplayLayout.Override.RowAppearance = appearance14;
            appearance15.BackColor = System.Drawing.Color.LightSteelBlue;
            this.Grd_Storage.DisplayLayout.Override.RowSelectorAppearance = appearance15;
            this.Grd_Storage.DisplayLayout.Override.RowSelectorNumberStyle = Infragistics.Win.UltraWinGrid.RowSelectorNumberStyle.RowIndex;
            this.Grd_Storage.DisplayLayout.Override.RowSelectors = Infragistics.Win.DefaultableBoolean.True;
            appearance16.BackColor = System.Drawing.SystemColors.ControlLight;
            this.Grd_Storage.DisplayLayout.Override.TemplateAddRowAppearance = appearance16;
            this.Grd_Storage.DisplayLayout.ScrollStyle = Infragistics.Win.UltraWinGrid.ScrollStyle.Immediate;
            this.Grd_Storage.Dock = System.Windows.Forms.DockStyle.Fill;
            this.Grd_Storage.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.Grd_Storage.Location = new System.Drawing.Point(0, 0);
            this.Grd_Storage.Name = "Grd_Storage";
            this.Grd_Storage.Size = new System.Drawing.Size(1158, 154);
            this.Grd_Storage.TabIndex = 49;
            this.Grd_Storage.DoubleClickCell += new Infragistics.Win.UltraWinGrid.DoubleClickCellEventHandler(this.Grd_Storage_DoubleClickCell);
            this.Grd_Storage.InitializeRow += new Infragistics.Win.UltraWinGrid.InitializeRowEventHandler(this.Grd_Storage_InitializeRow);
            // 
            // ultraTabPageControl2
            // 
            this.ultraTabPageControl2.Controls.Add(this.Grd_Send);
            this.ultraTabPageControl2.Location = new System.Drawing.Point(-10000, -10000);
            this.ultraTabPageControl2.Name = "ultraTabPageControl2";
            this.ultraTabPageControl2.Size = new System.Drawing.Size(1158, 154);
            // 
            // Grd_Send
            // 
            this.Grd_Send.CalcManager = this.Calc_Manager;
            this.Grd_Send.DisplayLayout.CaptionVisible = Infragistics.Win.DefaultableBoolean.True;
            appearance17.BackColor = System.Drawing.SystemColors.ActiveBorder;
            appearance17.BackColor2 = System.Drawing.SystemColors.ControlDark;
            appearance17.BackGradientStyle = Infragistics.Win.GradientStyle.Vertical;
            appearance17.BorderColor = System.Drawing.SystemColors.Window;
            this.Grd_Send.DisplayLayout.GroupByBox.Appearance = appearance17;
            appearance18.ForeColor = System.Drawing.SystemColors.GrayText;
            this.Grd_Send.DisplayLayout.GroupByBox.BandLabelAppearance = appearance18;
            this.Grd_Send.DisplayLayout.GroupByBox.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid;
            this.Grd_Send.DisplayLayout.GroupByBox.Hidden = true;
            appearance19.BackColor = System.Drawing.SystemColors.ControlLightLight;
            appearance19.BackColor2 = System.Drawing.SystemColors.Control;
            appearance19.BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal;
            appearance19.ForeColor = System.Drawing.SystemColors.GrayText;
            this.Grd_Send.DisplayLayout.GroupByBox.PromptAppearance = appearance19;
            this.Grd_Send.DisplayLayout.Override.BorderStyleCell = Infragistics.Win.UIElementBorderStyle.RaisedSoft;
            this.Grd_Send.DisplayLayout.Override.CellPadding = 0;
            appearance20.BackColor = System.Drawing.SystemColors.Control;
            appearance20.BackColor2 = System.Drawing.SystemColors.ControlDark;
            appearance20.BackGradientAlignment = Infragistics.Win.GradientAlignment.Element;
            appearance20.BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal;
            appearance20.BorderColor = System.Drawing.SystemColors.Window;
            this.Grd_Send.DisplayLayout.Override.GroupByRowAppearance = appearance20;
            appearance21.BackColor = System.Drawing.Color.LightSteelBlue;
            appearance21.TextHAlign = Infragistics.Win.HAlign.Center;
            this.Grd_Send.DisplayLayout.Override.HeaderAppearance = appearance21;
            this.Grd_Send.DisplayLayout.Override.HeaderClickAction = Infragistics.Win.UltraWinGrid.HeaderClickAction.Select;
            this.Grd_Send.DisplayLayout.Override.HeaderStyle = Infragistics.Win.HeaderStyle.Standard;
            this.Grd_Send.DisplayLayout.Override.MinRowHeight = 21;
            appearance22.BackColor = System.Drawing.SystemColors.Window;
            appearance22.BorderColor = System.Drawing.Color.Silver;
            this.Grd_Send.DisplayLayout.Override.RowAppearance = appearance22;
            appearance23.BackColor = System.Drawing.Color.LightSteelBlue;
            this.Grd_Send.DisplayLayout.Override.RowSelectorAppearance = appearance23;
            this.Grd_Send.DisplayLayout.Override.RowSelectorHeaderStyle = Infragistics.Win.UltraWinGrid.RowSelectorHeaderStyle.SeparateElement;
            this.Grd_Send.DisplayLayout.Override.RowSelectorNumberStyle = Infragistics.Win.UltraWinGrid.RowSelectorNumberStyle.RowIndex;
            this.Grd_Send.DisplayLayout.Override.RowSelectors = Infragistics.Win.DefaultableBoolean.True;
            this.Grd_Send.DisplayLayout.Override.SelectTypeCell = Infragistics.Win.UltraWinGrid.SelectType.None;
            appearance24.BackColor = System.Drawing.SystemColors.ControlLight;
            this.Grd_Send.DisplayLayout.Override.TemplateAddRowAppearance = appearance24;
            this.Grd_Send.DisplayLayout.ScrollStyle = Infragistics.Win.UltraWinGrid.ScrollStyle.Immediate;
            this.Grd_Send.Dock = System.Windows.Forms.DockStyle.Fill;
            this.Grd_Send.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.Grd_Send.Location = new System.Drawing.Point(0, 0);
            this.Grd_Send.Name = "Grd_Send";
            this.Grd_Send.Size = new System.Drawing.Size(1158, 154);
            this.Grd_Send.TabIndex = 49;
            // 
            // ultraTabPageControl3
            // 
            this.ultraTabPageControl3.Controls.Add(this.Grd_HBSend);
            this.ultraTabPageControl3.Location = new System.Drawing.Point(-10000, -10000);
            this.ultraTabPageControl3.Name = "ultraTabPageControl3";
            this.ultraTabPageControl3.Size = new System.Drawing.Size(1158, 154);
            // 
            // Grd_HBSend
            // 
            this.Grd_HBSend.CalcManager = this.Calc_Manager;
            this.Grd_HBSend.Dock = System.Windows.Forms.DockStyle.Fill;
            this.Grd_HBSend.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.Grd_HBSend.Location = new System.Drawing.Point(0, 0);
            this.Grd_HBSend.Name = "Grd_HBSend";
            this.Grd_HBSend.Size = new System.Drawing.Size(1158, 154);
            this.Grd_HBSend.TabIndex = 49;
            // 
            // ultraTabPageControl4
            // 
            this.ultraTabPageControl4.Controls.Add(this.Grd_ZBSend);
            this.ultraTabPageControl4.Location = new System.Drawing.Point(-10000, -10000);
            this.ultraTabPageControl4.Name = "ultraTabPageControl4";
            this.ultraTabPageControl4.Size = new System.Drawing.Size(1158, 154);
            // 
            // Grd_ZBSend
            // 
            this.Grd_ZBSend.CalcManager = this.Calc_Manager;
            this.Grd_ZBSend.Dock = System.Windows.Forms.DockStyle.Fill;
            this.Grd_ZBSend.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.Grd_ZBSend.Location = new System.Drawing.Point(0, 0);
            this.Grd_ZBSend.Name = "Grd_ZBSend";
            this.Grd_ZBSend.Size = new System.Drawing.Size(1158, 154);
            this.Grd_ZBSend.TabIndex = 50;
            // 
            // Grd_HCSendPlan
            // 
            this.Grd_HCSendPlan.CalcManager = this.Calc_Manager;
            this.Grd_HCSendPlan.DisplayLayout.CaptionVisible = Infragistics.Win.DefaultableBoolean.True;
            appearance89.BackColor = System.Drawing.SystemColors.ActiveBorder;
            appearance89.BackColor2 = System.Drawing.SystemColors.ControlDark;
            appearance89.BackGradientStyle = Infragistics.Win.GradientStyle.Vertical;
            appearance89.BorderColor = System.Drawing.SystemColors.Window;
            this.Grd_HCSendPlan.DisplayLayout.GroupByBox.Appearance = appearance89;
            appearance90.ForeColor = System.Drawing.SystemColors.GrayText;
            this.Grd_HCSendPlan.DisplayLayout.GroupByBox.BandLabelAppearance = appearance90;
            this.Grd_HCSendPlan.DisplayLayout.GroupByBox.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid;
            this.Grd_HCSendPlan.DisplayLayout.GroupByBox.Hidden = true;
            appearance91.BackColor = System.Drawing.SystemColors.ControlLightLight;
            appearance91.BackColor2 = System.Drawing.SystemColors.Control;
            appearance91.BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal;
            appearance91.ForeColor = System.Drawing.SystemColors.GrayText;
            this.Grd_HCSendPlan.DisplayLayout.GroupByBox.PromptAppearance = appearance91;
            this.Grd_HCSendPlan.DisplayLayout.Override.BorderStyleCell = Infragistics.Win.UIElementBorderStyle.RaisedSoft;
            this.Grd_HCSendPlan.DisplayLayout.Override.CellClickAction = Infragistics.Win.UltraWinGrid.CellClickAction.RowSelect;
            this.Grd_HCSendPlan.DisplayLayout.Override.CellPadding = 0;
            appearance92.BackColor = System.Drawing.SystemColors.Control;
            appearance92.BackColor2 = System.Drawing.SystemColors.ControlDark;
            appearance92.BackGradientAlignment = Infragistics.Win.GradientAlignment.Element;
            appearance92.BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal;
            appearance92.BorderColor = System.Drawing.SystemColors.Window;
            this.Grd_HCSendPlan.DisplayLayout.Override.GroupByRowAppearance = appearance92;
            appearance93.BackColor = System.Drawing.Color.LightSteelBlue;
            appearance93.TextHAlign = Infragistics.Win.HAlign.Center;
            this.Grd_HCSendPlan.DisplayLayout.Override.HeaderAppearance = appearance93;
            this.Grd_HCSendPlan.DisplayLayout.Override.HeaderClickAction = Infragistics.Win.UltraWinGrid.HeaderClickAction.SortMulti;
            this.Grd_HCSendPlan.DisplayLayout.Override.HeaderStyle = Infragistics.Win.HeaderStyle.Standard;
            this.Grd_HCSendPlan.DisplayLayout.Override.MinRowHeight = 21;
            appearance94.BackColor = System.Drawing.SystemColors.Window;
            appearance94.BorderColor = System.Drawing.Color.Silver;
            this.Grd_HCSendPlan.DisplayLayout.Override.RowAppearance = appearance94;
            appearance95.BackColor = System.Drawing.Color.LightSteelBlue;
            this.Grd_HCSendPlan.DisplayLayout.Override.RowSelectorAppearance = appearance95;
            this.Grd_HCSendPlan.DisplayLayout.Override.RowSelectorHeaderStyle = Infragistics.Win.UltraWinGrid.RowSelectorHeaderStyle.SeparateElement;
            this.Grd_HCSendPlan.DisplayLayout.Override.RowSelectorNumberStyle = Infragistics.Win.UltraWinGrid.RowSelectorNumberStyle.RowIndex;
            this.Grd_HCSendPlan.DisplayLayout.Override.RowSelectors = Infragistics.Win.DefaultableBoolean.True;
            this.Grd_HCSendPlan.DisplayLayout.Override.SelectTypeCell = Infragistics.Win.UltraWinGrid.SelectType.None;
            appearance96.BackColor = System.Drawing.SystemColors.ControlLight;
            this.Grd_HCSendPlan.DisplayLayout.Override.TemplateAddRowAppearance = appearance96;
            this.Grd_HCSendPlan.DisplayLayout.ScrollStyle = Infragistics.Win.UltraWinGrid.ScrollStyle.Immediate;
            this.Grd_HCSendPlan.Dock = System.Windows.Forms.DockStyle.Top;
            this.Grd_HCSendPlan.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.Grd_HCSendPlan.Location = new System.Drawing.Point(0, 0);
            this.Grd_HCSendPlan.Name = "Grd_HCSendPlan";
            this.Grd_HCSendPlan.Size = new System.Drawing.Size(1162, 226);
            this.Grd_HCSendPlan.TabIndex = 42;
            this.Grd_HCSendPlan.DoubleClickRow += new Infragistics.Win.UltraWinGrid.DoubleClickRowEventHandler(this.Grd_HCSendPlan_DoubleClickRow);
            // 
            // Pal_Edit
            // 
            this.Pal_Edit.Controls.Add(this.Txt_PhoneNum);
            this.Pal_Edit.Controls.Add(this.ultraLabel7);
            this.Pal_Edit.Controls.Add(this.chk_cxfs);
            this.Pal_Edit.Controls.Add(this.chk_ybfs);
            this.Pal_Edit.Controls.Add(this.chk_QXFY);
            this.Pal_Edit.Controls.Add(this.txt_Icode);
            this.Pal_Edit.Controls.Add(this.Cmb_Txt_ListCodingTop);
            this.Pal_Edit.Controls.Add(this.btn_NSendID);
            this.Pal_Edit.Controls.Add(this.btn_Edit);
            this.Pal_Edit.Controls.Add(this.Txt_SendPactNO);
            this.Pal_Edit.Controls.Add(this.ultraLabel18);
            this.Pal_Edit.Controls.Add(this.Txt_IncpName);
            this.Pal_Edit.Controls.Add(this.ultraLabel14);
            this.Pal_Edit.Controls.Add(this.Btn_GetListCoding);
            this.Pal_Edit.Controls.Add(this.Btn_SendBillet);
            this.Pal_Edit.Controls.Add(this.Txt_Billet);
            this.Pal_Edit.Controls.Add(this.ultraLabel9);
            this.Pal_Edit.Controls.Add(this.Txt_Condole);
            this.Pal_Edit.Controls.Add(this.lab_Condole);
            this.Pal_Edit.Controls.Add(this.Dte_SendTime);
            this.Pal_Edit.Controls.Add(this.ultraLabel8);
            this.Pal_Edit.Controls.Add(this.Txt_Remark);
            this.Pal_Edit.Controls.Add(this.ultraLabel19);
            this.Pal_Edit.Controls.Add(this.Cmb_ClassTeam);
            this.Pal_Edit.Controls.Add(this.ultraLabel6);
            this.Pal_Edit.Controls.Add(this.Cmb_ClassOrder);
            this.Pal_Edit.Controls.Add(this.ultraLabel5);
            this.Pal_Edit.Controls.Add(this.Cmb_SendMan);
            this.Pal_Edit.Controls.Add(this.ultraLabel4);
            this.Pal_Edit.Controls.Add(this.Txt_ListCoding);
            this.Pal_Edit.Controls.Add(this.ultraLabel3);
            this.Pal_Edit.Controls.Add(this.Txt_VecihleNO);
            this.Pal_Edit.Controls.Add(this.ultraLabel2);
            this.Pal_Edit.Controls.Add(this.Txt_AskPlan);
            this.Pal_Edit.Controls.Add(this.ultraLabel1);
            this.Pal_Edit.Dock = System.Windows.Forms.DockStyle.Top;
            this.Pal_Edit.Location = new System.Drawing.Point(0, 226);
            this.Pal_Edit.Name = "Pal_Edit";
            this.Pal_Edit.Size = new System.Drawing.Size(1162, 100);
            this.Pal_Edit.TabIndex = 51;
            // 
            // chk_cxfs
            // 
            this.chk_cxfs.Location = new System.Drawing.Point(598, 6);
            this.chk_cxfs.Name = "chk_cxfs";
            this.chk_cxfs.Size = new System.Drawing.Size(72, 24);
            this.chk_cxfs.TabIndex = 754;
            this.chk_cxfs.Text = "撤销发送";
            this.chk_cxfs.Click += new System.EventHandler(this.chk_cxfs_Click);
            // 
            // chk_ybfs
            // 
            this.chk_ybfs.Location = new System.Drawing.Point(598, 30);
            this.chk_ybfs.Name = "chk_ybfs";
            this.chk_ybfs.Size = new System.Drawing.Size(72, 24);
            this.chk_ybfs.TabIndex = 212;
            this.chk_ybfs.Text = "预报发送";
            this.chk_ybfs.Click += new System.EventHandler(this.chk_ybfs_Click);
            // 
            // chk_QXFY
            // 
            this.chk_QXFY.BackColor = System.Drawing.Color.Red;
            this.chk_QXFY.Location = new System.Drawing.Point(598, 52);
            this.chk_QXFY.Name = "chk_QXFY";
            this.chk_QXFY.Size = new System.Drawing.Size(72, 24);
            this.chk_QXFY.TabIndex = 211;
            this.chk_QXFY.TabStop = false;
            this.chk_QXFY.Text = "强行发运";
            this.chk_QXFY.Visible = false;
            // 
            // txt_Icode
            // 
            appearance26.BackColor = System.Drawing.Color.LavenderBlush;
            this.txt_Icode.Appearance = appearance26;
            this.txt_Icode.AutoSize = true;
            this.txt_Icode.FlatMode = true;
            this.txt_Icode.Location = new System.Drawing.Point(724, 72);
            this.txt_Icode.Name = "txt_Icode";
            this.txt_Icode.Size = new System.Drawing.Size(108, 19);
            this.txt_Icode.TabIndex = 66;
            this.txt_Icode.Visible = false;
            // 
            // Cmb_Txt_ListCodingTop
            // 
            appearance27.BackColor = System.Drawing.Color.LightCyan;
            this.Cmb_Txt_ListCodingTop.Appearance = appearance27;
            this.Cmb_Txt_ListCodingTop.CalcManager = this.Calc_Manager;
            this.Cmb_Txt_ListCodingTop.CharacterCasing = System.Windows.Forms.CharacterCasing.Normal;
            appearance28.BackColor = System.Drawing.SystemColors.Window;
            appearance28.BorderColor = System.Drawing.SystemColors.InactiveCaption;
            this.Cmb_Txt_ListCodingTop.DisplayLayout.Appearance = appearance28;
            this.Cmb_Txt_ListCodingTop.DisplayLayout.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid;
            this.Cmb_Txt_ListCodingTop.DisplayLayout.CaptionVisible = Infragistics.Win.DefaultableBoolean.False;
            appearance29.BackColor = System.Drawing.SystemColors.ActiveBorder;
            appearance29.BackColor2 = System.Drawing.SystemColors.ControlDark;
            appearance29.BackGradientStyle = Infragistics.Win.GradientStyle.Vertical;
            appearance29.BorderColor = System.Drawing.SystemColors.Window;
            this.Cmb_Txt_ListCodingTop.DisplayLayout.GroupByBox.Appearance = appearance29;
            appearance30.ForeColor = System.Drawing.SystemColors.GrayText;
            this.Cmb_Txt_ListCodingTop.DisplayLayout.GroupByBox.BandLabelAppearance = appearance30;
            this.Cmb_Txt_ListCodingTop.DisplayLayout.GroupByBox.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid;
            appearance31.BackColor = System.Drawing.SystemColors.ControlLightLight;
            appearance31.BackColor2 = System.Drawing.SystemColors.Control;
            appearance31.BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal;
            appearance31.ForeColor = System.Drawing.SystemColors.GrayText;
            this.Cmb_Txt_ListCodingTop.DisplayLayout.GroupByBox.PromptAppearance = appearance31;
            this.Cmb_Txt_ListCodingTop.DisplayLayout.MaxColScrollRegions = 1;
            this.Cmb_Txt_ListCodingTop.DisplayLayout.MaxRowScrollRegions = 1;
            appearance32.BackColor = System.Drawing.SystemColors.Window;
            appearance32.ForeColor = System.Drawing.SystemColors.ControlText;
            this.Cmb_Txt_ListCodingTop.DisplayLayout.Override.ActiveCellAppearance = appearance32;
            appearance33.BackColor = System.Drawing.SystemColors.Highlight;
            appearance33.ForeColor = System.Drawing.SystemColors.HighlightText;
            this.Cmb_Txt_ListCodingTop.DisplayLayout.Override.ActiveRowAppearance = appearance33;
            this.Cmb_Txt_ListCodingTop.DisplayLayout.Override.BorderStyleCell = Infragistics.Win.UIElementBorderStyle.Dotted;
            this.Cmb_Txt_ListCodingTop.DisplayLayout.Override.BorderStyleRow = Infragistics.Win.UIElementBorderStyle.Dotted;
            appearance34.BackColor = System.Drawing.SystemColors.Window;
            this.Cmb_Txt_ListCodingTop.DisplayLayout.Override.CardAreaAppearance = appearance34;
            appearance35.BorderColor = System.Drawing.Color.Silver;
            appearance35.TextTrimming = Infragistics.Win.TextTrimming.EllipsisCharacter;
            this.Cmb_Txt_ListCodingTop.DisplayLayout.Override.CellAppearance = appearance35;
            this.Cmb_Txt_ListCodingTop.DisplayLayout.Override.CellClickAction = Infragistics.Win.UltraWinGrid.CellClickAction.EditAndSelectText;
            this.Cmb_Txt_ListCodingTop.DisplayLayout.Override.CellPadding = 0;
            appearance36.BackColor = System.Drawing.SystemColors.Control;
            appearance36.BackColor2 = System.Drawing.SystemColors.ControlDark;
            appearance36.BackGradientAlignment = Infragistics.Win.GradientAlignment.Element;
            appearance36.BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal;
            appearance36.BorderColor = System.Drawing.SystemColors.Window;
            this.Cmb_Txt_ListCodingTop.DisplayLayout.Override.GroupByRowAppearance = appearance36;
            appearance37.TextHAlign = Infragistics.Win.HAlign.Left;
            this.Cmb_Txt_ListCodingTop.DisplayLayout.Override.HeaderAppearance = appearance37;
            this.Cmb_Txt_ListCodingTop.DisplayLayout.Override.HeaderClickAction = Infragistics.Win.UltraWinGrid.HeaderClickAction.SortMulti;
            this.Cmb_Txt_ListCodingTop.DisplayLayout.Override.HeaderStyle = Infragistics.Win.HeaderStyle.WindowsXPCommand;
            appearance38.BackColor = System.Drawing.SystemColors.Window;
            appearance38.BorderColor = System.Drawing.Color.Silver;
            this.Cmb_Txt_ListCodingTop.DisplayLayout.Override.RowAppearance = appearance38;
            this.Cmb_Txt_ListCodingTop.DisplayLayout.Override.RowSelectors = Infragistics.Win.DefaultableBoolean.False;
            appearance39.BackColor = System.Drawing.SystemColors.ControlLight;
            this.Cmb_Txt_ListCodingTop.DisplayLayout.Override.TemplateAddRowAppearance = appearance39;
            this.Cmb_Txt_ListCodingTop.DisplayLayout.ScrollBounds = Infragistics.Win.UltraWinGrid.ScrollBounds.ScrollToFill;
            this.Cmb_Txt_ListCodingTop.DisplayLayout.ScrollStyle = Infragistics.Win.UltraWinGrid.ScrollStyle.Immediate;
            this.Cmb_Txt_ListCodingTop.DisplayLayout.ViewStyleBand = Infragistics.Win.UltraWinGrid.ViewStyleBand.OutlookGroupBy;
            this.Cmb_Txt_ListCodingTop.DisplayMember = "";
            this.Cmb_Txt_ListCodingTop.DropDownStyle = Infragistics.Win.UltraWinGrid.UltraComboStyle.DropDownList;
            this.Cmb_Txt_ListCodingTop.FlatMode = true;
            this.Cmb_Txt_ListCodingTop.Location = new System.Drawing.Point(66, 53);
            this.Cmb_Txt_ListCodingTop.Name = "Cmb_Txt_ListCodingTop";
            this.Cmb_Txt_ListCodingTop.Size = new System.Drawing.Size(54, 19);
            this.Cmb_Txt_ListCodingTop.TabIndex = 65;
            this.Cmb_Txt_ListCodingTop.ValueMember = "";
            // 
            // btn_NSendID
            // 
            this.btn_NSendID.FlatMode = true;
            this.btn_NSendID.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.btn_NSendID.Location = new System.Drawing.Point(178, 4);
            this.btn_NSendID.Name = "btn_NSendID";
            this.btn_NSendID.Size = new System.Drawing.Size(36, 19);
            this.btn_NSendID.TabIndex = 60;
            this.btn_NSendID.Text = "……";
            this.btn_NSendID.Visible = false;
            // 
            // btn_Edit
            // 
            appearance40.BackColor = System.Drawing.Color.Red;
            this.btn_Edit.Appearance = appearance40;
            this.btn_Edit.FlatMode = true;
            this.btn_Edit.Font = new System.Drawing.Font("宋体", 8.5F);
            this.btn_Edit.Location = new System.Drawing.Point(178, 28);
            this.btn_Edit.Name = "btn_Edit";
            this.btn_Edit.Size = new System.Drawing.Size(36, 20);
            this.btn_Edit.TabIndex = 57;
            this.btn_Edit.Text = "修改";
            this.btn_Edit.Click += new System.EventHandler(this.btn_Edit_Click);
            // 
            // Txt_SendPactNO
            // 
            appearance41.BackColor = System.Drawing.Color.LavenderBlush;
            this.Txt_SendPactNO.Appearance = appearance41;
            this.Txt_SendPactNO.AutoSize = true;
            this.Txt_SendPactNO.FlatMode = true;
            this.Txt_SendPactNO.Location = new System.Drawing.Point(66, 74);
            this.Txt_SendPactNO.Name = "Txt_SendPactNO";
            this.Txt_SendPactNO.ReadOnly = true;
            this.Txt_SendPactNO.Size = new System.Drawing.Size(144, 19);
            this.Txt_SendPactNO.TabIndex = 6;
            this.Txt_SendPactNO.Enter += new System.EventHandler(this.Dte_SendTime_Enter);
            this.Txt_SendPactNO.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Dte_SendTime_KeyDown);
            // 
            // ultraLabel18
            // 
            this.ultraLabel18.BackColor = System.Drawing.Color.Transparent;
            this.ultraLabel18.Location = new System.Drawing.Point(10, 76);
            this.ultraLabel18.Name = "ultraLabel18";
            this.ultraLabel18.Size = new System.Drawing.Size(42, 16);
            this.ultraLabel18.TabIndex = 56;
            this.ultraLabel18.Text = "合同号";
            // 
            // Txt_IncpName
            // 
            appearance42.BackColor = System.Drawing.Color.LavenderBlush;
            this.Txt_IncpName.Appearance = appearance42;
            this.Txt_IncpName.AutoSize = true;
            this.Txt_IncpName.FlatMode = true;
            this.Txt_IncpName.Location = new System.Drawing.Point(280, 73);
            this.Txt_IncpName.Name = "Txt_IncpName";
            this.Txt_IncpName.Size = new System.Drawing.Size(108, 19);
            this.Txt_IncpName.TabIndex = 9;
            this.Txt_IncpName.Enter += new System.EventHandler(this.Dte_SendTime_Enter);
            this.Txt_IncpName.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Dte_SendTime_KeyDown);
            // 
            // ultraLabel14
            // 
            this.ultraLabel14.BackColor = System.Drawing.Color.Transparent;
            this.ultraLabel14.Location = new System.Drawing.Point(224, 75);
            this.ultraLabel14.Name = "ultraLabel14";
            this.ultraLabel14.Size = new System.Drawing.Size(54, 16);
            this.ultraLabel14.TabIndex = 48;
            this.ultraLabel14.Text = "订货单位";
            // 
            // Btn_GetListCoding
            // 
            this.Btn_GetListCoding.FlatMode = true;
            this.Btn_GetListCoding.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.Btn_GetListCoding.Location = new System.Drawing.Point(190, 52);
            this.Btn_GetListCoding.Name = "Btn_GetListCoding";
            this.Btn_GetListCoding.Size = new System.Drawing.Size(22, 19);
            this.Btn_GetListCoding.TabIndex = 40;
            this.Btn_GetListCoding.Text = "……";
            this.Btn_GetListCoding.Click += new System.EventHandler(this.Btn_GetListCoding_Click);
            // 
            // Btn_SendBillet
            // 
            this.Btn_SendBillet.Location = new System.Drawing.Point(598, 76);
            this.Btn_SendBillet.Name = "Btn_SendBillet";
            this.Btn_SendBillet.Size = new System.Drawing.Size(72, 24);
            this.Btn_SendBillet.TabIndex = 17;
            this.Btn_SendBillet.Text = "单块登记";
            this.Btn_SendBillet.Click += new System.EventHandler(this.Btn_SendBillet_Click);
            // 
            // Txt_Billet
            // 
            appearance43.BackColor = System.Drawing.Color.LightCyan;
            this.Txt_Billet.Appearance = appearance43;
            this.Txt_Billet.AutoSize = true;
            this.Txt_Billet.FlatMode = true;
            this.Txt_Billet.Location = new System.Drawing.Point(450, 26);
            this.Txt_Billet.Name = "Txt_Billet";
            this.Txt_Billet.Size = new System.Drawing.Size(114, 19);
            this.Txt_Billet.TabIndex = 16;
            this.Txt_Billet.TextChanged += new System.EventHandler(this.Txt_Billet_TextChanged);
            this.Txt_Billet.Enter += new System.EventHandler(this.Dte_SendTime_Enter);
            this.Txt_Billet.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Dte_SendTime_KeyDown);
            // 
            // ultraLabel9
            // 
            this.ultraLabel9.Location = new System.Drawing.Point(394, 28);
            this.ultraLabel9.Name = "ultraLabel9";
            this.ultraLabel9.Size = new System.Drawing.Size(54, 16);
            this.ultraLabel9.TabIndex = 19;
            this.ultraLabel9.Text = "发运序号";
            // 
            // Txt_Condole
            // 
            appearance44.BackColor = System.Drawing.Color.LightCyan;
            this.Txt_Condole.Appearance = appearance44;
            this.Txt_Condole.AutoSize = true;
            this.Txt_Condole.FlatMode = true;
            this.Txt_Condole.Location = new System.Drawing.Point(450, 2);
            this.Txt_Condole.Name = "Txt_Condole";
            this.Txt_Condole.Size = new System.Drawing.Size(114, 19);
            this.Txt_Condole.TabIndex = 15;
            this.Txt_Condole.TextChanged += new System.EventHandler(this.Txt_Condole_TextChanged);
            this.Txt_Condole.Enter += new System.EventHandler(this.Dte_SendTime_Enter);
            this.Txt_Condole.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Dte_SendTime_KeyDown);
            // 
            // lab_Condole
            // 
            this.lab_Condole.Location = new System.Drawing.Point(394, 4);
            this.lab_Condole.Name = "lab_Condole";
            this.lab_Condole.Size = new System.Drawing.Size(54, 16);
            this.lab_Condole.TabIndex = 17;
            this.lab_Condole.Text = "发运吊号";
            // 
            // Dte_SendTime
            // 
            appearance45.BackColor = System.Drawing.Color.LightCyan;
            this.Dte_SendTime.Appearance = appearance45;
            this.Dte_SendTime.DateTime = new System.DateTime(2007, 9, 4, 0, 0, 0, 0);
            this.Dte_SendTime.FlatMode = true;
            this.Dte_SendTime.Location = new System.Drawing.Point(450, 48);
            this.Dte_SendTime.MaskInput = "{date} {time}";
            this.Dte_SendTime.Name = "Dte_SendTime";
            this.Dte_SendTime.Size = new System.Drawing.Size(114, 19);
            this.Dte_SendTime.TabIndex = 13;
            this.Dte_SendTime.Value = new System.DateTime(2007, 9, 4, 0, 0, 0, 0);
            this.Dte_SendTime.Enter += new System.EventHandler(this.Dte_SendTime_Enter);
            this.Dte_SendTime.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Dte_SendTime_KeyDown);
            // 
            // ultraLabel8
            // 
            this.ultraLabel8.BackColor = System.Drawing.Color.Transparent;
            this.ultraLabel8.Location = new System.Drawing.Point(394, 50);
            this.ultraLabel8.Name = "ultraLabel8";
            this.ultraLabel8.Size = new System.Drawing.Size(54, 16);
            this.ultraLabel8.TabIndex = 15;
            this.ultraLabel8.Text = "发运时间";
            // 
            // Txt_Remark
            // 
            appearance46.BackColor = System.Drawing.Color.LightCyan;
            this.Txt_Remark.Appearance = appearance46;
            this.Txt_Remark.AutoSize = true;
            this.Txt_Remark.FlatMode = true;
            this.Txt_Remark.Location = new System.Drawing.Point(448, 72);
            this.Txt_Remark.Name = "Txt_Remark";
            this.Txt_Remark.Size = new System.Drawing.Size(144, 19);
            this.Txt_Remark.TabIndex = 17;
            this.Txt_Remark.Enter += new System.EventHandler(this.Dte_SendTime_Enter);
            this.Txt_Remark.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Dte_SendTime_KeyDown);
            // 
            // ultraLabel19
            // 
            this.ultraLabel19.BackColor = System.Drawing.Color.Transparent;
            this.ultraLabel19.Location = new System.Drawing.Point(394, 75);
            this.ultraLabel19.Name = "ultraLabel19";
            this.ultraLabel19.Size = new System.Drawing.Size(54, 16);
            this.ultraLabel19.TabIndex = 13;
            this.ultraLabel19.Text = "发运备注";
            // 
            // Cmb_ClassTeam
            // 
            appearance47.BackColor = System.Drawing.Color.LightCyan;
            this.Cmb_ClassTeam.Appearance = appearance47;
            this.Cmb_ClassTeam.CalcManager = this.Calc_Manager;
            this.Cmb_ClassTeam.CharacterCasing = System.Windows.Forms.CharacterCasing.Normal;
            appearance48.BackColor = System.Drawing.SystemColors.Window;
            appearance48.BorderColor = System.Drawing.SystemColors.InactiveCaption;
            this.Cmb_ClassTeam.DisplayLayout.Appearance = appearance48;
            this.Cmb_ClassTeam.DisplayLayout.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid;
            this.Cmb_ClassTeam.DisplayLayout.CaptionVisible = Infragistics.Win.DefaultableBoolean.False;
            appearance49.BackColor = System.Drawing.SystemColors.ActiveBorder;
            appearance49.BackColor2 = System.Drawing.SystemColors.ControlDark;
            appearance49.BackGradientStyle = Infragistics.Win.GradientStyle.Vertical;
            appearance49.BorderColor = System.Drawing.SystemColors.Window;
            this.Cmb_ClassTeam.DisplayLayout.GroupByBox.Appearance = appearance49;
            appearance50.ForeColor = System.Drawing.SystemColors.GrayText;
            this.Cmb_ClassTeam.DisplayLayout.GroupByBox.BandLabelAppearance = appearance50;
            this.Cmb_ClassTeam.DisplayLayout.GroupByBox.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid;
            appearance51.BackColor = System.Drawing.SystemColors.ControlLightLight;
            appearance51.BackColor2 = System.Drawing.SystemColors.Control;
            appearance51.BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal;
            appearance51.ForeColor = System.Drawing.SystemColors.GrayText;
            this.Cmb_ClassTeam.DisplayLayout.GroupByBox.PromptAppearance = appearance51;
            this.Cmb_ClassTeam.DisplayLayout.MaxColScrollRegions = 1;
            this.Cmb_ClassTeam.DisplayLayout.MaxRowScrollRegions = 1;
            appearance52.BackColor = System.Drawing.SystemColors.Window;
            appearance52.ForeColor = System.Drawing.SystemColors.ControlText;
            this.Cmb_ClassTeam.DisplayLayout.Override.ActiveCellAppearance = appearance52;
            appearance53.BackColor = System.Drawing.SystemColors.Highlight;
            appearance53.ForeColor = System.Drawing.SystemColors.HighlightText;
            this.Cmb_ClassTeam.DisplayLayout.Override.ActiveRowAppearance = appearance53;
            this.Cmb_ClassTeam.DisplayLayout.Override.BorderStyleCell = Infragistics.Win.UIElementBorderStyle.Dotted;
            this.Cmb_ClassTeam.DisplayLayout.Override.BorderStyleRow = Infragistics.Win.UIElementBorderStyle.Dotted;
            appearance54.BackColor = System.Drawing.SystemColors.Window;
            this.Cmb_ClassTeam.DisplayLayout.Override.CardAreaAppearance = appearance54;
            appearance55.BorderColor = System.Drawing.Color.Silver;
            appearance55.TextTrimming = Infragistics.Win.TextTrimming.EllipsisCharacter;
            this.Cmb_ClassTeam.DisplayLayout.Override.CellAppearance = appearance55;
            this.Cmb_ClassTeam.DisplayLayout.Override.CellClickAction = Infragistics.Win.UltraWinGrid.CellClickAction.EditAndSelectText;
            this.Cmb_ClassTeam.DisplayLayout.Override.CellPadding = 0;
            appearance56.BackColor = System.Drawing.SystemColors.Control;
            appearance56.BackColor2 = System.Drawing.SystemColors.ControlDark;
            appearance56.BackGradientAlignment = Infragistics.Win.GradientAlignment.Element;
            appearance56.BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal;
            appearance56.BorderColor = System.Drawing.SystemColors.Window;
            this.Cmb_ClassTeam.DisplayLayout.Override.GroupByRowAppearance = appearance56;
            appearance57.TextHAlign = Infragistics.Win.HAlign.Left;
            this.Cmb_ClassTeam.DisplayLayout.Override.HeaderAppearance = appearance57;
            this.Cmb_ClassTeam.DisplayLayout.Override.HeaderClickAction = Infragistics.Win.UltraWinGrid.HeaderClickAction.SortMulti;
            this.Cmb_ClassTeam.DisplayLayout.Override.HeaderStyle = Infragistics.Win.HeaderStyle.WindowsXPCommand;
            appearance58.BackColor = System.Drawing.SystemColors.Window;
            appearance58.BorderColor = System.Drawing.Color.Silver;
            this.Cmb_ClassTeam.DisplayLayout.Override.RowAppearance = appearance58;
            this.Cmb_ClassTeam.DisplayLayout.Override.RowSelectors = Infragistics.Win.DefaultableBoolean.False;
            appearance59.BackColor = System.Drawing.SystemColors.ControlLight;
            this.Cmb_ClassTeam.DisplayLayout.Override.TemplateAddRowAppearance = appearance59;
            this.Cmb_ClassTeam.DisplayLayout.ScrollBounds = Infragistics.Win.UltraWinGrid.ScrollBounds.ScrollToFill;
            this.Cmb_ClassTeam.DisplayLayout.ScrollStyle = Infragistics.Win.UltraWinGrid.ScrollStyle.Immediate;
            this.Cmb_ClassTeam.DisplayLayout.ViewStyleBand = Infragistics.Win.UltraWinGrid.ViewStyleBand.OutlookGroupBy;
            this.Cmb_ClassTeam.DisplayMember = "";
            this.Cmb_ClassTeam.FlatMode = true;
            this.Cmb_ClassTeam.Location = new System.Drawing.Point(280, 50);
            this.Cmb_ClassTeam.Name = "Cmb_ClassTeam";
            this.Cmb_ClassTeam.Size = new System.Drawing.Size(108, 19);
            this.Cmb_ClassTeam.TabIndex = 12;
            this.Cmb_ClassTeam.ValueMember = "";
            this.Cmb_ClassTeam.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Dte_SendTime_KeyDown);
            this.Cmb_ClassTeam.Enter += new System.EventHandler(this.Dte_SendTime_Enter);
            // 
            // ultraLabel6
            // 
            this.ultraLabel6.BackColor = System.Drawing.Color.Transparent;
            this.ultraLabel6.Location = new System.Drawing.Point(224, 52);
            this.ultraLabel6.Name = "ultraLabel6";
            this.ultraLabel6.Size = new System.Drawing.Size(54, 16);
            this.ultraLabel6.TabIndex = 10;
            this.ultraLabel6.Text = "发运班组";
            // 
            // Cmb_ClassOrder
            // 
            appearance60.BackColor = System.Drawing.Color.LightCyan;
            this.Cmb_ClassOrder.Appearance = appearance60;
            this.Cmb_ClassOrder.CalcManager = this.Calc_Manager;
            this.Cmb_ClassOrder.CharacterCasing = System.Windows.Forms.CharacterCasing.Normal;
            appearance61.BackColor = System.Drawing.SystemColors.Window;
            appearance61.BorderColor = System.Drawing.SystemColors.InactiveCaption;
            this.Cmb_ClassOrder.DisplayLayout.Appearance = appearance61;
            this.Cmb_ClassOrder.DisplayLayout.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid;
            this.Cmb_ClassOrder.DisplayLayout.CaptionVisible = Infragistics.Win.DefaultableBoolean.False;
            appearance62.BackColor = System.Drawing.SystemColors.ActiveBorder;
            appearance62.BackColor2 = System.Drawing.SystemColors.ControlDark;
            appearance62.BackGradientStyle = Infragistics.Win.GradientStyle.Vertical;
            appearance62.BorderColor = System.Drawing.SystemColors.Window;
            this.Cmb_ClassOrder.DisplayLayout.GroupByBox.Appearance = appearance62;
            appearance63.ForeColor = System.Drawing.SystemColors.GrayText;
            this.Cmb_ClassOrder.DisplayLayout.GroupByBox.BandLabelAppearance = appearance63;
            this.Cmb_ClassOrder.DisplayLayout.GroupByBox.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid;
            appearance64.BackColor = System.Drawing.SystemColors.ControlLightLight;
            appearance64.BackColor2 = System.Drawing.SystemColors.Control;
            appearance64.BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal;
            appearance64.ForeColor = System.Drawing.SystemColors.GrayText;
            this.Cmb_ClassOrder.DisplayLayout.GroupByBox.PromptAppearance = appearance64;
            this.Cmb_ClassOrder.DisplayLayout.MaxColScrollRegions = 1;
            this.Cmb_ClassOrder.DisplayLayout.MaxRowScrollRegions = 1;
            appearance65.BackColor = System.Drawing.SystemColors.Window;
            appearance65.ForeColor = System.Drawing.SystemColors.ControlText;
            this.Cmb_ClassOrder.DisplayLayout.Override.ActiveCellAppearance = appearance65;
            appearance66.BackColor = System.Drawing.SystemColors.Highlight;
            appearance66.ForeColor = System.Drawing.SystemColors.HighlightText;
            this.Cmb_ClassOrder.DisplayLayout.Override.ActiveRowAppearance = appearance66;
            this.Cmb_ClassOrder.DisplayLayout.Override.BorderStyleCell = Infragistics.Win.UIElementBorderStyle.Dotted;
            this.Cmb_ClassOrder.DisplayLayout.Override.BorderStyleRow = Infragistics.Win.UIElementBorderStyle.Dotted;
            appearance67.BackColor = System.Drawing.SystemColors.Window;
            this.Cmb_ClassOrder.DisplayLayout.Override.CardAreaAppearance = appearance67;
            appearance68.BorderColor = System.Drawing.Color.Silver;
            appearance68.TextTrimming = Infragistics.Win.TextTrimming.EllipsisCharacter;
            this.Cmb_ClassOrder.DisplayLayout.Override.CellAppearance = appearance68;
            this.Cmb_ClassOrder.DisplayLayout.Override.CellClickAction = Infragistics.Win.UltraWinGrid.CellClickAction.EditAndSelectText;
            this.Cmb_ClassOrder.DisplayLayout.Override.CellPadding = 0;
            appearance69.BackColor = System.Drawing.SystemColors.Control;
            appearance69.BackColor2 = System.Drawing.SystemColors.ControlDark;
            appearance69.BackGradientAlignment = Infragistics.Win.GradientAlignment.Element;
            appearance69.BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal;
            appearance69.BorderColor = System.Drawing.SystemColors.Window;
            this.Cmb_ClassOrder.DisplayLayout.Override.GroupByRowAppearance = appearance69;
            appearance70.TextHAlign = Infragistics.Win.HAlign.Left;
            this.Cmb_ClassOrder.DisplayLayout.Override.HeaderAppearance = appearance70;
            this.Cmb_ClassOrder.DisplayLayout.Override.HeaderClickAction = Infragistics.Win.UltraWinGrid.HeaderClickAction.SortMulti;
            this.Cmb_ClassOrder.DisplayLayout.Override.HeaderStyle = Infragistics.Win.HeaderStyle.WindowsXPCommand;
            appearance71.BackColor = System.Drawing.SystemColors.Window;
            appearance71.BorderColor = System.Drawing.Color.Silver;
            this.Cmb_ClassOrder.DisplayLayout.Override.RowAppearance = appearance71;
            this.Cmb_ClassOrder.DisplayLayout.Override.RowSelectors = Infragistics.Win.DefaultableBoolean.False;
            appearance72.BackColor = System.Drawing.SystemColors.ControlLight;
            this.Cmb_ClassOrder.DisplayLayout.Override.TemplateAddRowAppearance = appearance72;
            this.Cmb_ClassOrder.DisplayLayout.ScrollBounds = Infragistics.Win.UltraWinGrid.ScrollBounds.ScrollToFill;
            this.Cmb_ClassOrder.DisplayLayout.ScrollStyle = Infragistics.Win.UltraWinGrid.ScrollStyle.Immediate;
            this.Cmb_ClassOrder.DisplayLayout.ViewStyleBand = Infragistics.Win.UltraWinGrid.ViewStyleBand.OutlookGroupBy;
            this.Cmb_ClassOrder.DisplayMember = "";
            this.Cmb_ClassOrder.FlatMode = true;
            this.Cmb_ClassOrder.Location = new System.Drawing.Point(280, 26);
            this.Cmb_ClassOrder.Name = "Cmb_ClassOrder";
            this.Cmb_ClassOrder.Size = new System.Drawing.Size(108, 19);
            this.Cmb_ClassOrder.TabIndex = 11;
            this.Cmb_ClassOrder.ValueMember = "";
            this.Cmb_ClassOrder.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Dte_SendTime_KeyDown);
            this.Cmb_ClassOrder.Enter += new System.EventHandler(this.Dte_SendTime_Enter);
            // 
            // ultraLabel5
            // 
            this.ultraLabel5.BackColor = System.Drawing.Color.Transparent;
            this.ultraLabel5.Location = new System.Drawing.Point(224, 28);
            this.ultraLabel5.Name = "ultraLabel5";
            this.ultraLabel5.Size = new System.Drawing.Size(54, 16);
            this.ultraLabel5.TabIndex = 8;
            this.ultraLabel5.Text = "发运班次";
            // 
            // Cmb_SendMan
            // 
            appearance73.BackColor = System.Drawing.Color.LightCyan;
            this.Cmb_SendMan.Appearance = appearance73;
            this.Cmb_SendMan.CalcManager = this.Calc_Manager;
            this.Cmb_SendMan.CharacterCasing = System.Windows.Forms.CharacterCasing.Normal;
            appearance74.BackColor = System.Drawing.SystemColors.Window;
            appearance74.BorderColor = System.Drawing.SystemColors.InactiveCaption;
            this.Cmb_SendMan.DisplayLayout.Appearance = appearance74;
            this.Cmb_SendMan.DisplayLayout.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid;
            this.Cmb_SendMan.DisplayLayout.CaptionVisible = Infragistics.Win.DefaultableBoolean.False;
            appearance75.BackColor = System.Drawing.SystemColors.ActiveBorder;
            appearance75.BackColor2 = System.Drawing.SystemColors.ControlDark;
            appearance75.BackGradientStyle = Infragistics.Win.GradientStyle.Vertical;
            appearance75.BorderColor = System.Drawing.SystemColors.Window;
            this.Cmb_SendMan.DisplayLayout.GroupByBox.Appearance = appearance75;
            appearance76.ForeColor = System.Drawing.SystemColors.GrayText;
            this.Cmb_SendMan.DisplayLayout.GroupByBox.BandLabelAppearance = appearance76;
            this.Cmb_SendMan.DisplayLayout.GroupByBox.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid;
            appearance77.BackColor = System.Drawing.SystemColors.ControlLightLight;
            appearance77.BackColor2 = System.Drawing.SystemColors.Control;
            appearance77.BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal;
            appearance77.ForeColor = System.Drawing.SystemColors.GrayText;
            this.Cmb_SendMan.DisplayLayout.GroupByBox.PromptAppearance = appearance77;
            this.Cmb_SendMan.DisplayLayout.MaxColScrollRegions = 1;
            this.Cmb_SendMan.DisplayLayout.MaxRowScrollRegions = 1;
            appearance78.BackColor = System.Drawing.SystemColors.Window;
            appearance78.ForeColor = System.Drawing.SystemColors.ControlText;
            this.Cmb_SendMan.DisplayLayout.Override.ActiveCellAppearance = appearance78;
            appearance79.BackColor = System.Drawing.SystemColors.Highlight;
            appearance79.ForeColor = System.Drawing.SystemColors.HighlightText;
            this.Cmb_SendMan.DisplayLayout.Override.ActiveRowAppearance = appearance79;
            this.Cmb_SendMan.DisplayLayout.Override.BorderStyleCell = Infragistics.Win.UIElementBorderStyle.Dotted;
            this.Cmb_SendMan.DisplayLayout.Override.BorderStyleRow = Infragistics.Win.UIElementBorderStyle.Dotted;
            appearance80.BackColor = System.Drawing.SystemColors.Window;
            this.Cmb_SendMan.DisplayLayout.Override.CardAreaAppearance = appearance80;
            appearance81.BorderColor = System.Drawing.Color.Silver;
            appearance81.TextTrimming = Infragistics.Win.TextTrimming.EllipsisCharacter;
            this.Cmb_SendMan.DisplayLayout.Override.CellAppearance = appearance81;
            this.Cmb_SendMan.DisplayLayout.Override.CellClickAction = Infragistics.Win.UltraWinGrid.CellClickAction.EditAndSelectText;
            this.Cmb_SendMan.DisplayLayout.Override.CellPadding = 0;
            appearance82.BackColor = System.Drawing.SystemColors.Control;
            appearance82.BackColor2 = System.Drawing.SystemColors.ControlDark;
            appearance82.BackGradientAlignment = Infragistics.Win.GradientAlignment.Element;
            appearance82.BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal;
            appearance82.BorderColor = System.Drawing.SystemColors.Window;
            this.Cmb_SendMan.DisplayLayout.Override.GroupByRowAppearance = appearance82;
            appearance83.TextHAlign = Infragistics.Win.HAlign.Left;
            this.Cmb_SendMan.DisplayLayout.Override.HeaderAppearance = appearance83;
            this.Cmb_SendMan.DisplayLayout.Override.HeaderClickAction = Infragistics.Win.UltraWinGrid.HeaderClickAction.SortMulti;
            this.Cmb_SendMan.DisplayLayout.Override.HeaderStyle = Infragistics.Win.HeaderStyle.WindowsXPCommand;
            appearance84.BackColor = System.Drawing.SystemColors.Window;
            appearance84.BorderColor = System.Drawing.Color.Silver;
            this.Cmb_SendMan.DisplayLayout.Override.RowAppearance = appearance84;
            this.Cmb_SendMan.DisplayLayout.Override.RowSelectors = Infragistics.Win.DefaultableBoolean.False;
            appearance85.BackColor = System.Drawing.SystemColors.ControlLight;
            this.Cmb_SendMan.DisplayLayout.Override.TemplateAddRowAppearance = appearance85;
            this.Cmb_SendMan.DisplayLayout.ScrollBounds = Infragistics.Win.UltraWinGrid.ScrollBounds.ScrollToFill;
            this.Cmb_SendMan.DisplayLayout.ScrollStyle = Infragistics.Win.UltraWinGrid.ScrollStyle.Immediate;
            this.Cmb_SendMan.DisplayLayout.ViewStyleBand = Infragistics.Win.UltraWinGrid.ViewStyleBand.OutlookGroupBy;
            this.Cmb_SendMan.DisplayMember = "";
            this.Cmb_SendMan.FlatMode = true;
            this.Cmb_SendMan.Location = new System.Drawing.Point(280, 2);
            this.Cmb_SendMan.Name = "Cmb_SendMan";
            this.Cmb_SendMan.Size = new System.Drawing.Size(108, 19);
            this.Cmb_SendMan.TabIndex = 10;
            this.Cmb_SendMan.ValueMember = "";
            this.Cmb_SendMan.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Dte_SendTime_KeyDown);
            this.Cmb_SendMan.Enter += new System.EventHandler(this.Dte_SendTime_Enter);
            // 
            // ultraLabel4
            // 
            this.ultraLabel4.BackColor = System.Drawing.Color.Transparent;
            this.ultraLabel4.Location = new System.Drawing.Point(236, 4);
            this.ultraLabel4.Name = "ultraLabel4";
            this.ultraLabel4.Size = new System.Drawing.Size(42, 16);
            this.ultraLabel4.TabIndex = 6;
            this.ultraLabel4.Text = "发运人";
            // 
            // Txt_ListCoding
            // 
            appearance86.BackColor = System.Drawing.Color.LightCyan;
            this.Txt_ListCoding.Appearance = appearance86;
            this.Txt_ListCoding.AutoSize = true;
            this.Txt_ListCoding.FlatMode = true;
            this.Txt_ListCoding.Location = new System.Drawing.Point(120, 52);
            this.Txt_ListCoding.Name = "Txt_ListCoding";
            this.Txt_ListCoding.Size = new System.Drawing.Size(70, 19);
            this.Txt_ListCoding.TabIndex = 4;
            this.Txt_ListCoding.ValueChanged += new System.EventHandler(this.Txt_ListCoding_ValueChanged);
            this.Txt_ListCoding.Enter += new System.EventHandler(this.Dte_SendTime_Enter);
            this.Txt_ListCoding.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Dte_SendTime_KeyDown);
            // 
            // ultraLabel3
            // 
            this.ultraLabel3.BackColor = System.Drawing.Color.Transparent;
            this.ultraLabel3.Location = new System.Drawing.Point(10, 54);
            this.ultraLabel3.Name = "ultraLabel3";
            this.ultraLabel3.Size = new System.Drawing.Size(54, 16);
            this.ultraLabel3.TabIndex = 4;
            this.ultraLabel3.Text = "明细编码";
            // 
            // Txt_VecihleNO
            // 
            appearance87.BackColor = System.Drawing.Color.LightCyan;
            this.Txt_VecihleNO.Appearance = appearance87;
            this.Txt_VecihleNO.AutoSize = true;
            this.Txt_VecihleNO.FlatMode = true;
            this.Txt_VecihleNO.Location = new System.Drawing.Point(66, 28);
            this.Txt_VecihleNO.Name = "Txt_VecihleNO";
            this.Txt_VecihleNO.Size = new System.Drawing.Size(112, 19);
            this.Txt_VecihleNO.TabIndex = 2;
            this.Txt_VecihleNO.Enter += new System.EventHandler(this.Dte_SendTime_Enter);
            this.Txt_VecihleNO.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Dte_SendTime_KeyDown);
            // 
            // ultraLabel2
            // 
            this.ultraLabel2.BackColor = System.Drawing.Color.Transparent;
            this.ultraLabel2.Location = new System.Drawing.Point(10, 30);
            this.ultraLabel2.Name = "ultraLabel2";
            this.ultraLabel2.Size = new System.Drawing.Size(54, 16);
            this.ultraLabel2.TabIndex = 2;
            this.ultraLabel2.Text = "发运车号";
            // 
            // Txt_AskPlan
            // 
            appearance88.BackColor = System.Drawing.Color.LightCyan;
            this.Txt_AskPlan.Appearance = appearance88;
            this.Txt_AskPlan.AutoSize = true;
            this.Txt_AskPlan.Enabled = false;
            this.Txt_AskPlan.FlatMode = true;
            this.Txt_AskPlan.Location = new System.Drawing.Point(66, 4);
            this.Txt_AskPlan.Name = "Txt_AskPlan";
            this.Txt_AskPlan.ReadOnly = true;
            this.Txt_AskPlan.Size = new System.Drawing.Size(112, 19);
            this.Txt_AskPlan.TabIndex = 1;
            this.Txt_AskPlan.Enter += new System.EventHandler(this.Dte_SendTime_Enter);
            this.Txt_AskPlan.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Dte_SendTime_KeyDown);
            // 
            // ultraLabel1
            // 
            this.ultraLabel1.BackColor = System.Drawing.Color.Transparent;
            this.ultraLabel1.Location = new System.Drawing.Point(10, 6);
            this.ultraLabel1.Name = "ultraLabel1";
            this.ultraLabel1.Size = new System.Drawing.Size(54, 16);
            this.ultraLabel1.TabIndex = 0;
            this.ultraLabel1.Text = "发运号码";
            // 
            // Tab_Match
            // 
            this.Tab_Match.Controls.Add(this.ultraTabSharedControlsPage1);
            this.Tab_Match.Controls.Add(this.ultraTabPageControl1);
            this.Tab_Match.Controls.Add(this.ultraTabPageControl2);
            this.Tab_Match.Controls.Add(this.ultraTabPageControl3);
            this.Tab_Match.Controls.Add(this.ultraTabPageControl4);
            this.Tab_Match.Dock = System.Windows.Forms.DockStyle.Fill;
            this.Tab_Match.Location = new System.Drawing.Point(0, 326);
            this.Tab_Match.Name = "Tab_Match";
            this.Tab_Match.SharedControlsPage = this.ultraTabSharedControlsPage1;
            this.Tab_Match.Size = new System.Drawing.Size(1162, 177);
            this.Tab_Match.TabIndex = 55;
            ultraTab1.Key = "STORAGE";
            ultraTab1.TabPage = this.ultraTabPageControl1;
            ultraTab1.Text = "可发信息";
            ultraTab2.Key = "SEND";
            ultraTab2.TabPage = this.ultraTabPageControl2;
            ultraTab2.Text = "已发信息";
            ultraTab3.Key = "HBSEND";
            ultraTab3.TabPage = this.ultraTabPageControl3;
            ultraTab3.Text = "厚板发运信息";
            ultraTab3.Visible = false;
            ultraTab4.Key = "ZBSEND";
            ultraTab4.TabPage = this.ultraTabPageControl4;
            ultraTab4.Text = "中板发运信息";
            ultraTab4.Visible = false;
            this.Tab_Match.Tabs.AddRange(new Infragistics.Win.UltraWinTabControl.UltraTab[] {
            ultraTab1,
            ultraTab2,
            ultraTab3,
            ultraTab4});
            this.Tab_Match.ViewStyle = Infragistics.Win.UltraWinTabControl.ViewStyle.VisualStudio2005;
            // 
            // ultraTabSharedControlsPage1
            // 
            this.ultraTabSharedControlsPage1.Location = new System.Drawing.Point(-10000, -10000);
            this.ultraTabSharedControlsPage1.Name = "ultraTabSharedControlsPage1";
            this.ultraTabSharedControlsPage1.Size = new System.Drawing.Size(1158, 154);
            // 
            // Dte_EndTime
            // 
            appearance7.BackColor = System.Drawing.Color.LightCyan;
            this.Dte_EndTime.Appearance = appearance7;
            this.Dte_EndTime.DateTime = new System.DateTime(2007, 9, 4, 0, 0, 0, 0);
            this.Dte_EndTime.FlatMode = true;
            this.Dte_EndTime.Location = new System.Drawing.Point(62, 28);
            this.Dte_EndTime.Name = "Dte_EndTime";
            this.Dte_EndTime.Size = new System.Drawing.Size(112, 19);
            this.Dte_EndTime.TabIndex = 69;
            this.Dte_EndTime.Tag = "TO_CHAR(C.PLANDATE,\'YYYY-MM-DD\')#D#1|:WDSN";
            this.Dte_EndTime.Value = new System.DateTime(2007, 9, 4, 0, 0, 0, 0);
            // 
            // Lab_To
            // 
            this.Lab_To.FlatMode = true;
            this.Lab_To.Location = new System.Drawing.Point(42, 30);
            this.Lab_To.Name = "Lab_To";
            this.Lab_To.Size = new System.Drawing.Size(17, 16);
            this.Lab_To.TabIndex = 68;
            this.Lab_To.Text = "到";
            // 
            // Dte_BeginTime
            // 
            appearance8.BackColor = System.Drawing.Color.LightCyan;
            this.Dte_BeginTime.Appearance = appearance8;
            this.Dte_BeginTime.DateTime = new System.DateTime(2007, 9, 4, 0, 0, 0, 0);
            this.Dte_BeginTime.FlatMode = true;
            this.Dte_BeginTime.Location = new System.Drawing.Point(62, 6);
            this.Dte_BeginTime.Name = "Dte_BeginTime";
            this.Dte_BeginTime.Size = new System.Drawing.Size(112, 19);
            this.Dte_BeginTime.TabIndex = 67;
            this.Dte_BeginTime.Tag = "TO_CHAR(C.PLANDATE,\'YYYY-MM-DD\')#D#0|:HDSN";
            this.Dte_BeginTime.Value = new System.DateTime(2007, 9, 4, 0, 0, 0, 0);
            // 
            // Chk_DeliveryTime
            // 
            this.Chk_DeliveryTime.ButtonStyle = Infragistics.Win.UIElementButtonStyle.Office2003ToolbarButton;
            this.Chk_DeliveryTime.Checked = true;
            this.Chk_DeliveryTime.CheckState = System.Windows.Forms.CheckState.Checked;
            this.Chk_DeliveryTime.FlatMode = true;
            this.Chk_DeliveryTime.Location = new System.Drawing.Point(14, 8);
            this.Chk_DeliveryTime.Name = "Chk_DeliveryTime";
            this.Chk_DeliveryTime.Size = new System.Drawing.Size(48, 14);
            this.Chk_DeliveryTime.TabIndex = 66;
            this.Chk_DeliveryTime.Text = "时间";
            this.Chk_DeliveryTime.CheckedChanged += new System.EventHandler(this.Chk_DeliveryTime_CheckedChanged);
            // 
            // Txt_PactNO
            // 
            appearance6.BackColor = System.Drawing.Color.LightCyan;
            this.Txt_PactNO.Appearance = appearance6;
            this.Txt_PactNO.AutoSize = true;
            this.Txt_PactNO.Enabled = false;
            this.Txt_PactNO.FlatMode = true;
            this.Txt_PactNO.Location = new System.Drawing.Point(240, 6);
            this.Txt_PactNO.Name = "Txt_PactNO";
            this.Txt_PactNO.Size = new System.Drawing.Size(98, 19);
            this.Txt_PactNO.TabIndex = 85;
            this.Txt_PactNO.Tag = "";
            // 
            // Chk_PactNO
            // 
            this.Chk_PactNO.FlatMode = true;
            this.Chk_PactNO.Location = new System.Drawing.Point(178, 8);
            this.Chk_PactNO.Name = "Chk_PactNO";
            this.Chk_PactNO.Size = new System.Drawing.Size(60, 14);
            this.Chk_PactNO.TabIndex = 84;
            this.Chk_PactNO.Text = "合同号";
            this.Chk_PactNO.CheckedChanged += new System.EventHandler(this.Chk_PactNO_CheckedChanged);
            // 
            // Txt_PlanNO
            // 
            appearance5.BackColor = System.Drawing.Color.LightCyan;
            this.Txt_PlanNO.Appearance = appearance5;
            this.Txt_PlanNO.AutoSize = true;
            this.Txt_PlanNO.Enabled = false;
            this.Txt_PlanNO.FlatMode = true;
            this.Txt_PlanNO.Location = new System.Drawing.Point(240, 28);
            this.Txt_PlanNO.Name = "Txt_PlanNO";
            this.Txt_PlanNO.Size = new System.Drawing.Size(98, 19);
            this.Txt_PlanNO.TabIndex = 87;
            this.Txt_PlanNO.Tag = "";
            // 
            // Chk_PlanNO
            // 
            this.Chk_PlanNO.FlatMode = true;
            this.Chk_PlanNO.Location = new System.Drawing.Point(178, 30);
            this.Chk_PlanNO.Name = "Chk_PlanNO";
            this.Chk_PlanNO.Size = new System.Drawing.Size(60, 14);
            this.Chk_PlanNO.TabIndex = 86;
            this.Chk_PlanNO.Text = "计划号";
            this.Chk_PlanNO.CheckedChanged += new System.EventHandler(this.Chk_PlanNO_CheckedChanged);
            // 
            // txt_AskPlanID
            // 
            appearance3.BackColor = System.Drawing.Color.LightCyan;
            this.txt_AskPlanID.Appearance = appearance3;
            this.txt_AskPlanID.AutoSize = true;
            this.txt_AskPlanID.Enabled = false;
            this.txt_AskPlanID.FlatMode = true;
            this.txt_AskPlanID.Location = new System.Drawing.Point(414, 6);
            this.txt_AskPlanID.Name = "txt_AskPlanID";
            this.txt_AskPlanID.Size = new System.Drawing.Size(98, 19);
            this.txt_AskPlanID.TabIndex = 91;
            this.txt_AskPlanID.Tag = "";
            // 
            // Chk_AskPlanID
            // 
            this.Chk_AskPlanID.FlatMode = true;
            this.Chk_AskPlanID.Location = new System.Drawing.Point(352, 8);
            this.Chk_AskPlanID.Name = "Chk_AskPlanID";
            this.Chk_AskPlanID.Size = new System.Drawing.Size(60, 14);
            this.Chk_AskPlanID.TabIndex = 90;
            this.Chk_AskPlanID.Text = "发运号";
            this.Chk_AskPlanID.CheckedChanged += new System.EventHandler(this.Chk_AskPlanID_CheckedChanged);
            // 
            // txt_ListCode
            // 
            appearance4.BackColor = System.Drawing.Color.LightCyan;
            this.txt_ListCode.Appearance = appearance4;
            this.txt_ListCode.AutoSize = true;
            this.txt_ListCode.Enabled = false;
            this.txt_ListCode.FlatMode = true;
            this.txt_ListCode.Location = new System.Drawing.Point(414, 28);
            this.txt_ListCode.Name = "txt_ListCode";
            this.txt_ListCode.Size = new System.Drawing.Size(98, 19);
            this.txt_ListCode.TabIndex = 89;
            this.txt_ListCode.Tag = "";
            // 
            // chk_ListCode
            // 
            this.chk_ListCode.FlatMode = true;
            this.chk_ListCode.Location = new System.Drawing.Point(352, 30);
            this.chk_ListCode.Name = "chk_ListCode";
            this.chk_ListCode.Size = new System.Drawing.Size(60, 14);
            this.chk_ListCode.TabIndex = 88;
            this.chk_ListCode.Text = "明细号";
            this.chk_ListCode.CheckedChanged += new System.EventHandler(this.chk_ListCode_CheckedChanged);
            // 
            // ultraLabel10
            // 
            this.ultraLabel10.Location = new System.Drawing.Point(1238, 6);
            this.ultraLabel10.Name = "ultraLabel10";
            this.ultraLabel10.Size = new System.Drawing.Size(11, 14);
            this.ultraLabel10.TabIndex = 97;
            this.ultraLabel10.Text = "-";
            this.ultraLabel10.Visible = false;
            // 
            // txt_RollNOEnd
            // 
            appearance1.BackColor = System.Drawing.Color.LightCyan;
            this.txt_RollNOEnd.Appearance = appearance1;
            this.txt_RollNOEnd.AutoSize = true;
            this.txt_RollNOEnd.Enabled = false;
            this.txt_RollNOEnd.FlatMode = true;
            this.txt_RollNOEnd.Location = new System.Drawing.Point(1252, 4);
            this.txt_RollNOEnd.MaxLength = 5;
            this.txt_RollNOEnd.Name = "txt_RollNOEnd";
            this.txt_RollNOEnd.Size = new System.Drawing.Size(50, 19);
            this.txt_RollNOEnd.TabIndex = 96;
            this.txt_RollNOEnd.Visible = false;
            // 
            // txt_RollNOBegin
            // 
            appearance2.BackColor = System.Drawing.Color.LightCyan;
            this.txt_RollNOBegin.Appearance = appearance2;
            this.txt_RollNOBegin.AutoSize = true;
            this.txt_RollNOBegin.Enabled = false;
            this.txt_RollNOBegin.FlatMode = true;
            this.txt_RollNOBegin.Location = new System.Drawing.Point(585, 6);
            this.txt_RollNOBegin.MaxLength = 20;
            this.txt_RollNOBegin.Name = "txt_RollNOBegin";
            this.txt_RollNOBegin.Size = new System.Drawing.Size(70, 19);
            this.txt_RollNOBegin.TabIndex = 95;
            // 
            // chk_RollNO
            // 
            this.chk_RollNO.FlatMode = true;
            this.chk_RollNO.Location = new System.Drawing.Point(528, 8);
            this.chk_RollNO.Name = "chk_RollNO";
            this.chk_RollNO.Size = new System.Drawing.Size(60, 14);
            this.chk_RollNO.TabIndex = 93;
            this.chk_RollNO.Text = "轧编号";
            this.chk_RollNO.CheckedChanged += new System.EventHandler(this.chk_RollNO_CheckedChanged);
            // 
            // chk_AllowFilter
            // 
            this.chk_AllowFilter.Location = new System.Drawing.Point(528, 28);
            this.chk_AllowFilter.Name = "chk_AllowFilter";
            this.chk_AllowFilter.Size = new System.Drawing.Size(48, 20);
            this.chk_AllowFilter.TabIndex = 210;
            this.chk_AllowFilter.TabStop = false;
            this.chk_AllowFilter.Text = "过滤";
            this.chk_AllowFilter.CheckedChanged += new System.EventHandler(this.chk_AllowFilter_CheckedChanged);
            // 
            // Txt_PhoneNum
            // 
            appearance25.BackColor = System.Drawing.Color.LightCyan;
            this.Txt_PhoneNum.Appearance = appearance25;
            this.Txt_PhoneNum.AutoSize = true;
            this.Txt_PhoneNum.FlatMode = true;
            this.Txt_PhoneNum.Location = new System.Drawing.Point(752, 30);
            this.Txt_PhoneNum.Name = "Txt_PhoneNum";
            this.Txt_PhoneNum.Size = new System.Drawing.Size(114, 19);
            this.Txt_PhoneNum.TabIndex = 755;
            // 
            // ultraLabel7
            // 
            this.ultraLabel7.Location = new System.Drawing.Point(696, 32);
            this.ultraLabel7.Name = "ultraLabel7";
            this.ultraLabel7.Size = new System.Drawing.Size(54, 16);
            this.ultraLabel7.TabIndex = 756;
            this.ultraLabel7.Text = "司机号码";
            // 
            // FrmTurnoffSendList
            // 
            this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
            this.ClientSize = new System.Drawing.Size(1162, 576);
            this.Name = "FrmTurnoffSendList";
            this.Text = "FrmTurnoffSendList";
            this.Load += new System.EventHandler(this.FrmTurnoffSendList_Load);
            ((System.ComponentModel.ISupportInitialize)(this.BaseToolBarManager)).EndInit();
            this.FrmBaseMode_Fill_Panel.ResumeLayout(false);
            this.Pal_Top.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.Grp_Query)).EndInit();
            this.Grp_Query.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.Calc_Manager)).EndInit();
            this.Pal_Buttom.ResumeLayout(false);
            this.ultraTabPageControl1.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.Grd_Storage)).EndInit();
            this.ultraTabPageControl2.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.Grd_Send)).EndInit();
            this.ultraTabPageControl3.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.Grd_HBSend)).EndInit();
            this.ultraTabPageControl4.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.Grd_ZBSend)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.Grd_HCSendPlan)).EndInit();
            this.Pal_Edit.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.txt_Icode)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.Cmb_Txt_ListCodingTop)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.Txt_SendPactNO)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.Txt_IncpName)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.Txt_Billet)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.Txt_Condole)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.Dte_SendTime)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.Txt_Remark)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.Cmb_ClassTeam)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.Cmb_ClassOrder)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.Cmb_SendMan)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.Txt_ListCoding)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.Txt_VecihleNO)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.Txt_AskPlan)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.Tab_Match)).EndInit();
            this.Tab_Match.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.Dte_EndTime)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.Dte_BeginTime)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.Txt_PactNO)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.Txt_PlanNO)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.txt_AskPlanID)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.txt_ListCode)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.txt_RollNOEnd)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.txt_RollNOBegin)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.Txt_PhoneNum)).EndInit();
            this.ResumeLayout(false);

		}
		#endregion

		#region "Init"
        public string strlxx = "";
        private void FrmTurnoffSendList_Load(object sender, System.EventArgs e)
        {
            try
            {

                strlx = this.Key.Split('@')[3];
                strlxx =this.Key.Split('@')[4];
                if (strlxx == "YL")
                {
                    chk_QXFY.Visible = true;
                }
                this.ToolBarToolsConfig = this.Key.Split('@')[1];
                this.DBFileName = this.Key.Split('@')[2];
                
                InitFrmDataSet();
                //this.Txt_ListCodingTop.Text = "FN" + System.DateTime.Now.ToString("yy").Substring(1, 2);
              
                this.Dte_SendTime.DateTime = System.DateTime.Now.Date;
                Dte_BeginTime.DateTime = System.DateTime.Now;
                Dte_EndTime.DateTime = System.DateTime.Now;
             
            



               

                string strOut = "";
                string sql = "";
                DataSet ds= new DataSet();

                sql = "SELECT ID_, NAME_ FROM KCJ_BASEDATA WHERE SORT_CODE = '8012'";
                ds.Clear();
                ds = (DataSet)ClientCommon._RemotingHelp.ExecuteMethod("BJZWStuff", "Core.XgMes.Server.JGKC.SteelPlateManager.Common", "GetDataSet", new object[] { sql }, out strOut);
                ds.Tables[0].TableName = "KCJ_BASEDATA";

                if (strlx == "1")
                {
                    sql = "SELECT ID_, NAME_ FROM KCJ_BASEDATA WHERE SORT_CODE='8094' AND (NAME_  LIKE 'DWBC%' )";
                }
                else if (strlx == "2")
                {
                    sql = "SELECT ID_, NAME_ FROM KCJ_BASEDATA WHERE SORT_CODE='8094' AND (NAME_  LIKE 'DWXB%' )";
                }
                ds.Clear();
                ds = (DataSet)ClientCommon._RemotingHelp.ExecuteMethod("BJZWStuff", "Core.XgMes.Server.JGKC.SteelPlateManager.Common", "GetDataSet", new object[] { sql }, out strOut);
                ds.Tables[0].TableName = "KCJ_BASEDATA";

                Comm.Init_ComboControl(this.Cmb_Txt_ListCodingTop, "KCJ_BASEDATA", "NAME_", "ID_", ref ds);
                if (strlx == "1")
                {
                    Cmb_Txt_ListCodingTop.Value = "809401";
                }
                else
                {
                    Cmb_Txt_ListCodingTop.Value = "809402";
                }
                
            }
            catch (System.Exception ex)
            {
                System.Diagnostics.Debug.WriteLine(ex.ToString());
            }
        }
		private void InitFrmDataSet()
		{
			try
			{
				if(this.DBFileName.Trim().Length >0)
				{
					object obj = StorageBaseClass.GetEntityInfo(this.DBFileName,"4001JB1");
					if(obj!=null)
					{
						this.FrmDataSet = obj as System.Data.DataSet ;
						Init_Frm();
					}
				}
			}
			catch(System.Exception ex)
			{
				System.Diagnostics.Debug.WriteLine(ex.ToString());
			}
		}
		protected override void Init_Frm()
		{
			try
			{
				base.Init_Frm ();
				StorageGridHelper.SetGrid(this.Grd_HCSendPlan,ref this._FrmDataSet,"SEL_ASKVEHICLEPLAN_C",new string[]{"SEL_ASKVEHICLEPLAN_C"});
                StorageGridHelper.SetGrid(this.Grd_Storage, ref this._FrmDataSet, "KCJ_TURNOFFBUTTRESSLIST_VIEW", new string[] { "KCJ_TURNOFFBUTTRESSLIST_VIEW" });
                StorageGridHelper.SetGrid(this.Grd_Send, ref this._FrmDataSet, "KCJ_TURNOFFSENDLIST", new string[] { "KCJ_TURNOFFSENDLIST" });
	
				this.Grd_Send.DisplayLayout.Override.RowSelectors = Infragistics.Win.DefaultableBoolean.False;
		
				StorageBaseClass.Init_ComboControl(this.Cmb_ClassOrder,"XT_BC|ID_|NAME_",ref this._FrmDataSet);
				StorageBaseClass.Init_ComboControl(this.Cmb_ClassTeam,"XT_BZ|ID_|NAME_",ref this._FrmDataSet);
				
				StorageBaseClass.Init_ComboControl(this.Cmb_SendMan,"SENDMAN|NAME_|NAME_",ref this._FrmDataSet);
				Grd_Storage.DisplayLayout.Override.SupportDataErrorInfo = Infragistics.Win.UltraWinGrid.SupportDataErrorInfo.RowsAndCells;
			}
			catch(System.Exception ex)
			{
				System.Diagnostics.Debug.WriteLine(ex.ToString());
			}
			
		}
		#endregion

		#region "CheckBox"

		private void Chk_DeliveryTime_CheckedChanged(object sender, System.EventArgs e)
		{
			this.Dte_BeginTime.Enabled = this.Dte_EndTime.Enabled = this.Chk_DeliveryTime.Checked;
		}

	

		

		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_AskPlanID_CheckedChanged(object sender, System.EventArgs e)
		{
			this.txt_AskPlanID.Enabled = this.Chk_AskPlanID.Checked;
		}

		private void chk_ListCode_CheckedChanged(object sender, System.EventArgs e)
		{
			this.txt_ListCode.Enabled = this.chk_ListCode.Checked;
		}

		private void chk_RollNO_CheckedChanged(object sender, System.EventArgs e)
		{
			 this.txt_RollNOBegin.Enabled = this.txt_RollNOEnd.Enabled = this.chk_RollNO.Checked;
		}
	
	
		#endregion

		#region "Grid"
		private void Grd_HCSendPlan_DoubleClickRow(object sender, Infragistics.Win.UltraWinGrid.DoubleClickRowEventArgs e)
		{
			try
			{
				if(e.Row!=null)
				{
					if(e.Row.ChildBands==null)
					{
                        string where ="";
                       
                         where = " AND A.ASKPLAN_ID='" + e.Row.Cells["ASKPLAN_ID"].Value.ToString() + "'  "; 
                        
						this._FrmDataSet.Tables["KCJ_TURNOFFSENDLIST"].Clear();
                        GetJBSendList(where, strlx);
						if(this._FrmDataSet.Tables["KCJ_TURNOFFSENDLIST"].Rows.Count>0)
						{
							this.Txt_AskPlan.Text = e.Row.Cells["ASKPLAN_ID"].Value.ToString();
							this.Txt_VecihleNO.Text =  this._FrmDataSet.Tables["KCJ_TURNOFFSENDLIST"].Rows[0]["TRAINWAGON"].ToString();
							this.Txt_ListCoding.Text = this._FrmDataSet.Tables["KCJ_TURNOFFSENDLIST"].Rows[0]["LISTNUMBER"].ToString().Split('-')[1];
							this.Txt_Remark.Text = StorageBaseClass.CheckNullStr(this._FrmDataSet.Tables["KCJ_TURNOFFSENDLIST"].Rows[0]["REMARK"]);
							this.Cmb_SendMan.Text = StorageBaseClass.CheckNullStr(this._FrmDataSet.Tables["KCJ_TURNOFFSENDLIST"].Rows[0]["PICKSTORAGEMAN"]);
							this.Cmb_ClassOrder.Value = StorageBaseClass.CheckNullStr(this._FrmDataSet.Tables["KCJ_TURNOFFSENDLIST"].Rows[0]["CLASSORDER"]);
							this.Cmb_ClassTeam.Value = StorageBaseClass.CheckNullStr(this._FrmDataSet.Tables["KCJ_TURNOFFSENDLIST"].Rows[0]["CLASSTEAM"]);
							this.Dte_SendTime.Value = Convert.ToDateTime(this._FrmDataSet.Tables["KCJ_TURNOFFSENDLIST"].Rows[0]["PICKSTORAGETIME"]);
                            Txt_IncpName.Text = e.Row.Cells["INCEPTCORPNAME"].Value.ToString();
                            txt_Icode.Text = e.Row.Cells["ICODE"].Value.ToString();
							this.Txt_SendPactNO.Text = e.Row.Cells["PACTNO"].Value.ToString();
							
						}
						else
						{
							this.Txt_AskPlan.Text = e.Row.Cells["ASKPLAN_ID"].Value.ToString();
                            this.Txt_SendPactNO.Text = e.Row.Cells["PACTNO"].Value.ToString();
                            Txt_IncpName.Text = e.Row.Cells["INCEPTCORPCODE"].Value.ToString();
                            txt_Icode.Text = e.Row.Cells["ICODE"].Value.ToString();
                            
							this.Txt_VecihleNO.Text =  "";
							this.Txt_ListCoding.Text = "";
							this.Txt_Remark.Text = "";
							this.Cmb_SendMan.Text = "";
							this.Cmb_ClassOrder.Value = "";
							this.Cmb_ClassTeam.Value = "";
							this.Dte_SendTime.Value = System.DateTime.Now;
						}
//					
                        this._FrmDataSet.Tables["KCJ_TURNOFFBUTTRESSLIST_VIEW"].Clear();
                        this._FrmDataSet.Tables["KCJ_TURNOFFBUTTRESSLIST_VIEW"].AcceptChanges();
					}
				}
			}
			catch(System.Exception ex)
			{
				System.Diagnostics.Debug.WriteLine(ex.ToString());
			}
		}
		private void Grd_Storage_DoubleClickCell(object sender, Infragistics.Win.UltraWinGrid.DoubleClickCellEventArgs e)
		{
			try
			{
				if(e.Cell.Column.Key == "CONDOLENUMBER")
				{
					this.Txt_Condole.Text = StorageBaseClass.CheckNullStr(e.Cell.Value);
				}
				if(e.Cell.Column.Key == "BILLETID")
				{
					this.Txt_Billet.Text = StorageBaseClass.CheckNullStr(e.Cell.Value);
				}
			}
			catch(System.Exception ex)
			{
				System.Diagnostics.Debug.WriteLine(ex.ToString());
			}
		}
		private void Grd_Storage_InitializeRow(object sender, Infragistics.Win.UltraWinGrid.InitializeRowEventArgs e)
		{
			try
			{
				string SendFlag = StorageBaseClass.CheckNullStr(e.Row.Cells["SENDFLAG"].Value);
				if(SendFlag=="0")
				{
					e.Row.Appearance.ForeColor = System.Drawing.Color.Black;
				}
				if(SendFlag.StartsWith("1"))
				{
					e.Row.Appearance.ForeColor = System.Drawing.Color.Red;
				}
				if(SendFlag.StartsWith("2"))
				{
					e.Row.Appearance.ForeColor = System.Drawing.Color.Blue;
				}
			}
			catch(System.Exception ex)
			{
				System.Diagnostics.Debug.WriteLine(ex.ToString());
			}
		}

		#endregion

		#region "CustomMethod"


        private void GetJBSendList(string where, string strlx)
		{
			try
			{
				string err = "";
				this._FrmDataSet.Tables["KCJ_TURNOFFSENDLIST"].Clear();
                this._FrmDataSet.AcceptChanges();
                this.Grd_Send.UpdateData();
                object obj = null;
                string strRolid = ClientCommon._UserInfo.UserRoleID.ToString();

                obj = Core.Mes.ClientFrameWork.ClientCommon._RemotingHelp.ExecuteMethod("BJZWStuff", "Core.XgMes.Server.JGKC.SteelPlateManager.SendManager",
                           "GetSendListData", new object[] { where, strlx }, out err);
                    

            

              
                this._FrmDataSet.AcceptChanges();
                this.Grd_Send.UpdateData();
				if(obj!=null)
				{
                    this._FrmDataSet.AcceptChanges();
					this._FrmDataSet.Merge(obj as System.Data.DataSet);
					this._FrmDataSet.AcceptChanges();
                    this.Grd_Send.UpdateData();
				}
				this._FrmDataSet.Tables["KCJ_TURNOFFSENDLIST"].AcceptChanges();
			}
			catch(System.Exception ex)
			{
				System.Diagnostics.Debug.WriteLine(ex.ToString());
			}
		}
		
		private bool GetTurnoffList(string where)
		{
			try
			{
				string err = "";
                this._FrmDataSet.Tables["KCJ_TURNOFFBUTTRESSLIST_VIEW"].Clear();
                object obj = Core.Mes.ClientFrameWork.ClientCommon._RemotingHelp.ExecuteMethod("BJZWStuff", "Core.XgMes.Server.JGKC.SteelPlateManager.SendManager",
					"GetCanSendList",new object[]{where,strlx,strlxx},out err);
				if(obj!=null)
				{
					this._FrmDataSet.Merge(obj as System.Data.DataSet);
					this._FrmDataSet.AcceptChanges();
                    this._FrmDataSet.Tables["KCJ_TURNOFFBUTTRESSLIST_VIEW"].AcceptChanges();
					CheckBillet();
					return true;
				}
                this._FrmDataSet.Tables["KCJ_TURNOFFBUTTRESSLIST_VIEW"].AcceptChanges();
				return false;
			}
			catch(System.Exception ex)
			{
				System.Diagnostics.Debug.WriteLine(ex.ToString());
				return false;
			}
		}


      
		private string GetWhere(string type)
		{
			string rtnStr = "";
			if(this.Dte_BeginTime.Enabled)
			{
				if(type=="PLAN")
				{
                 
                   


                        rtnStr = " AND T1.INCEPTDATE BETWEEN TO_DATE('" + this.Dte_BeginTime.DateTime.ToString("yyyy-MM-dd 00:00:00") + "','YYYY-MM-DD hh24:mi:ss') "
                           + " AND TO_DATE('" + this.Dte_EndTime.DateTime.ToString("yyyy-MM-dd 23:59:59") + "','YYYY-MM-DD hh24:mi:ss') ";
                    
				}
				else
				{
                    rtnStr = " AND C.PICKSTORAGETIME BETWEEN TO_DATE('" + this.Dte_BeginTime.DateTime.ToString("yyyy-MM-dd 00:00:00") + "','YYYY-MM-DD hh24:mi:ss') "
                            + " AND TO_DATE('" + this.Dte_EndTime.DateTime.ToString("yyyy-MM-dd 23:59:59") + "','YYYY-MM-DD hh24:mi:ss') ";
				}
			}
		
			if(this.Txt_PactNO.Enabled && this.Txt_PactNO.Text.Length>0)
			{
				if(type=="PLAN")
				{
					rtnStr = rtnStr + " AND A.PACTNO LIKE '" + this.Txt_PactNO.Text +"%' ";
				}
				else
				{
					rtnStr = rtnStr + " AND C.PACTNO LIKE '" + this.Txt_PactNO.Text +"%' ";
				}
			}
			if(this.Txt_PlanNO.Enabled && this.Txt_PlanNO.Text.Length>0)
			{
				if(type=="PLAN")
				{
                   
                        rtnStr = rtnStr + " AND A.PACTINDEXDETAIL LIKE '" + this.Txt_PlanNO.Text + "%' ";
                    
				}
				else
				{
					rtnStr = rtnStr + " AND C.PLANNO LIKE '" + this.Txt_PlanNO.Text +"%' ";
				}
			}
			if(this.txt_AskPlanID.Enabled && this.txt_AskPlanID.Text.Length>0)
			{
               
                rtnStr = rtnStr + " AND A.ASKPLAN_ID LIKE '" + this.txt_AskPlanID.Text + "%' "; 
			}
			if(type!="PLAN")
			{
				if(this.txt_ListCode.Enabled && this.txt_ListCode.Text.Length>0)
				{
					rtnStr = rtnStr + " AND C.LISTNUMBER LIKE '" + this.txt_ListCode.Text +"%' ";
				}
               
				string rollno = "";
				if(this.chk_RollNO.Checked)
				{

                    rollno = " AND C.SERIALNUMBER LIKE '" + this.txt_RollNOBegin.Text + "%' ";
				}
				rtnStr = rtnStr + rollno;
			}
			if(rtnStr.Length == 0)
			{
				if(type=="PLAN")
				{

                    rtnStr = " AND A.INCEPTDATE BETWEEN TO_DATE('" + System.DateTime.Now.AddDays(-1).ToString("yyyy-MM-dd") + "','YYYY-MM-DD') "
                                 + " AND TO_DATE('" + System.DateTime.Now.ToString("yyyy-MM-dd") + "','YYYY-MM-DD') ";
                    
				}
				else
				{
                    rtnStr = " AND C.PICKSTORAGETIME BETWEEN TO_DATE('" + System.DateTime.Now.AddDays(-1).ToString("yyyy-MM-dd") + "','YYYY-MM-DD') "
                           + " AND TO_DATE('" + System.DateTime.Now.ToString("yyyy-MM-dd") + "','YYYY-MM-DD') ";
				}
			}
			return rtnStr;
		}
		private void AddSendList(System.Collections.ArrayList Billets,System.Collections.ArrayList SendInfo,string BtnName,System.Data.DataRow[] SendRows)
		{
			try
			{

                string SRole = ClientCommon._UserInfo.UserRoleID.ToString();
				string strerr = "";
                object obj = Core.Mes.ClientFrameWork.ClientCommon._RemotingHelp.ExecuteMethod("BJZWStuff", "Core.XgMes.Server.JGKC.SteelPlateManager.SendManager",
                    "CommitAddSendList", new object[] { Billets, SendInfo, "0" }, out strerr);
				if(obj!=null)
				{
					System.Collections.ArrayList FailInfo = new ArrayList();
					System.Collections.ArrayList FailBillet = new ArrayList();
					System.Collections.ArrayList FailCode = new ArrayList();
					if(obj.GetType() == typeof(System.Collections.ArrayList))
					{
						FailInfo = (System.Collections.ArrayList)obj;
						for(int j=0;j<FailInfo.Count;j++)
						{
							FailBillet.Add(StorageBaseClass.CheckNullStr(FailInfo[j]).Split(';')[0]);
							FailCode.Add(StorageBaseClass.CheckNullStr(FailInfo[j]).Split(';')[1]);
						}
					}
                    string where = " AND C.PLANVEHICLEID='" + Txt_AskPlan.Text.Trim() + "' ";
					where += " AND C.SERIALNUMBER IN(";
					for(int i=0;i<Billets.Count;i++)
					{
						if(!FailBillet.Contains(Billets[i].ToString()))
						{
							where = where + "'" + Billets[i].ToString() +"',";
						}
					}
					where = where .Substring(0,where.Length-1)+")";
					if(FailInfo.Count < Billets.Count)
					{
						GetJBSendList(where,strlx);
					}
					if(BtnName == "CONDOLE")
					{
						this.Txt_Condole.Focus();
						this.Txt_Condole.SelectAll();
					}
					else
					{
						this.Txt_Billet.Focus();
						this.Txt_Billet.SelectAll();
					}

					foreach(System.Data.DataRow row in SendRows)
					{
						if(!FailBillet.Contains(row["BILLETID"].ToString()))
						{
                            this._FrmDataSet.Tables["KCJ_TURNOFFBUTTRESSLIST_VIEW"].Rows.Remove(row);
						}
						else
						{
							for(int i=0;i<FailBillet.Count;i++)
							{
								if(FailBillet[i].ToString() == row["BILLETID"].ToString())
								{
									row.BeginEdit();
									row["SENDFLAG"] = FailCode[i];
									row.EndEdit();
								}
							}
						}
					}

                    this._FrmDataSet.Tables["KCJ_TURNOFFBUTTRESSLIST_VIEW"].AcceptChanges();
                    SetDataErrorRow(this._FrmDataSet.Tables["KCJ_TURNOFFBUTTRESSLIST_VIEW"]);
				}
				else
				{
					MessageBox.Show(strerr,StorageBaseClass.MsgCaption);
				}
			}
			catch(System.Exception ex)
			{
				System.Diagnostics.Debug.WriteLine(ex.ToString());
			}
		}
		private bool CheckAddSend()
		{
			if(this.Txt_VecihleNO.Text.Length == 0)
			{
				MessageBox.Show("请您确认发运车牌号",StorageBaseClass.MsgCaption);
				return false;
			}
			if(this.Txt_ListCoding.Text.Length == 0)
			{
				MessageBox.Show("请您确认发运明细号",StorageBaseClass.MsgCaption);
				return false;
			}
			if(this.Cmb_SendMan.Text.Length == 0)
			{
				MessageBox.Show("请您确认发运人",StorageBaseClass.MsgCaption);
				return false;
			}
			if(this.Cmb_ClassOrder.Text.Length == 0)
			{
				MessageBox.Show("请您确认发运班次",StorageBaseClass.MsgCaption);
				return false;
			}
			if(this.Cmb_ClassTeam.Text.Length == 0)
			{
				MessageBox.Show("请您确认发运班班组",StorageBaseClass.MsgCaption);
				return false;
			}
			if(this.Dte_SendTime.Value == null)
			{
				MessageBox.Show("请您确认发运时间",StorageBaseClass.MsgCaption);
				return false;
			}

		
			if(this.Txt_SendPactNO.Text.Trim().Length==0)
			{
				MessageBox.Show("请您确认合同号",StorageBaseClass.MsgCaption);
				return false;
			}
			return true;
		}
		//与订单校验工艺需求、牌号规格、加工需求
		private void CheckBillet()
		{
			try
			{
				foreach(Infragistics.Win.UltraWinGrid.UltraGridRow row in this.Grd_Storage.Rows)
				{
					if(StorageBaseClass.CheckNullStr(row.Cells["ORDERNO"].Value).Length>0)
					{
						if(StorageBaseClass.CheckNullStr(row.Cells["KDETERMINANTRESULT"].Value).IndexOf("401401")<0)
						{
							row.Cells["DETERMINANTRESULT"].Appearance.BackColor = System.Drawing.Color.Red;
						}
						
				
					}
				}
			}
			catch(System.Exception ex)
			{
				System.Diagnostics.Debug.WriteLine(ex.ToString());
			}
		}
	
		private void GetValueList(Infragistics.Win.UltraWinGrid.UltraGridRow row,string ColumnName,ref System.Collections.ArrayList ValueList)
		{
			try
			{
				if(row.GetType()==typeof(Infragistics.Win.UltraWinGrid.UltraGridGroupByRow))
				{
					foreach(Infragistics.Win.UltraWinGrid.UltraGridRow crow in row.ChildBands[0].Rows)
					{
						GetValueList(crow,ColumnName,ref ValueList);
					}
				}
				else
				{
					ValueList.Add(StorageBaseClass.CheckNullStr(row.Cells["ID"].Value));
				}
			}
			catch(System.Exception ex)
			{
				System.Diagnostics.Debug.WriteLine(ex.ToString());
			}
		}
		private void SetDataErrorRow(System.Data.DataTable table)
		{
			try
			{
				foreach(System.Data.DataRow row in table.Rows)
				{
					switch(StorageBaseClass.CheckNullStr(row["SENDFLAG"]))
					{
						case "0":
							row.ClearErrors();
							break;
						case "11":
							row.RowError = "清库发运不能发运有合同号的板块";
							row.SetColumnError(table.Columns["BILLETID"],"清库发运不能发运有合同号的板块！");
							break;
						case "12":
							row.RowError = "系统不能匹配对应排车计划的合同，请人工操作成品分配";
							row.SetColumnError(table.Columns["BILLETID"],"系统不能匹配对应排车计划的合同，请人工操作成品分配");
							break;
						case "13":
							row.RowError = "无合同号的板块不能对非清库的排车进行发运";
							row.SetColumnError(table.Columns["BILLETID"],"无合同号的板块不能对非清库的排车进行发运");
							break;
						case "14":
							row.RowError = "板块对应的收货单位与排车计划设定的收货单位不一致";
							row.SetColumnError(table.Columns["BILLETID"],"板块对应的收货单位与排车计划设定的收货单位不一致");
							break;
						case "15":
							row.RowError = "板块加工工艺结果不合格，不允许发运";
							row.SetColumnError(table.Columns["BILLETID"],"板块加工工艺结果不合格，不允许发运");
							break;
						case "21":
							row.RowError = "发运的量超过了合同的上限";
							row.SetColumnError(table.Columns["BILLETID"],"发运的量超过了合同的上限");
							break;
					}
				}
			}
			catch(System.Exception ex)
			{
				System.Diagnostics.Debug.WriteLine(ex.ToString());
			}
		}
		private void GetListData(string ListCoding)
		{
			try
			{
				string err = "";
				object obj = Core.Mes.ClientFrameWork.ClientCommon._RemotingHelp.ExecuteMethod("JBFYManager","Core.XgMes.Server.JGKC.TurnoffSendManager.SendListManager",
					"GetListData",new object[]{ListCoding,strlx},out err);
				if(obj!=null)
				{
					this.Txt_AskPlan.Text = StorageBaseClass.CheckNullStr((obj as System.Data.DataSet).Tables[0].Rows[0]["PLANVEHICLEID"]);
					this.Txt_VecihleNO.Text = StorageBaseClass.CheckNullStr((obj as System.Data.DataSet).Tables[0].Rows[0]["TRAINWAGON"]);
					
					this.Txt_SendPactNO.Text = StorageBaseClass.CheckNullStr((obj as System.Data.DataSet).Tables[0].Rows[0]["PACTNO"]);
					
					this.Txt_IncpName.Text = StorageBaseClass.CheckNullStr((obj as System.Data.DataSet).Tables[0].Rows[0]["CUSTOMER"]);
					
					this.Cmb_SendMan.Text = StorageBaseClass.CheckNullStr((obj as System.Data.DataSet).Tables[0].Rows[0]["PICKSTORAGEMAN"]);
					this.Cmb_ClassOrder.Value = StorageBaseClass.CheckNullStr((obj as System.Data.DataSet).Tables[0].Rows[0]["CLASSORDER"]);
					this.Cmb_ClassTeam.Value = StorageBaseClass.CheckNullStr((obj as System.Data.DataSet).Tables[0].Rows[0]["CLASSTEAM"]);
					this.Dte_SendTime.Value = Convert.ToDateTime((obj as System.Data.DataSet).Tables[0].Rows[0]["PICKSTORAGETIME"]);
				}
			}
			catch(System.Exception ex)
			{
				System.Diagnostics.Debug.WriteLine(ex.ToString());
			}
		}
		#endregion

		#region "Button"
		private void Btn_Add_Click(object sender, System.EventArgs e)
		{
			try
			{
				if(Txt_ListCoding.Text.Trim().Length < 5)
				{
					MessageBox.Show("明细号" + this.Txt_ListCoding.Text.Trim() + "必须为五位数或五位数加一位字母",StorageBaseClass.MsgCaption);
					this.Txt_ListCoding.SelectAll();
					return;
				}
             
				System.Data.DataRow[] rows;
			
                    rows = this._FrmDataSet.Tables["KCJ_TURNOFFBUTTRESSLIST_VIEW"].Select("CONDOLENUMBER='" + this.Txt_Condole.Text + "'");
				
				
				if(rows.Length ==0)
				{
					MessageBox.Show("对应的吊号满足条件的可发量为“0”",StorageBaseClass.MsgCaption);
					this.Txt_Condole.Focus();
					return;
				}
				else
				{
					System.Collections.ArrayList Billets = new ArrayList();
					System.Collections.ArrayList SendInfo = new ArrayList();
					foreach(System.Data.DataRow row in rows)
					{
						Billets.Add(row["BILLETID"]);
					}
					SendInfo.Add(this.Txt_AskPlan.Text);//1
					SendInfo.Add(this.Txt_VecihleNO.Text);//2
                    //SendInfo.Add(this.Txt_ListCodingTop.Text+"-"+this.Txt_ListCoding.Text.Trim());
                    SendInfo.Add(this.Cmb_Txt_ListCodingTop.Text + "-" + this.Txt_ListCoding.Text.Trim());//3
					SendInfo.Add(this.Cmb_SendMan.Text);//4
					SendInfo.Add(StorageBaseClass.CheckNullStr(this.Cmb_ClassOrder.Value));//5
					SendInfo.Add(StorageBaseClass.CheckNullStr(this.Cmb_ClassTeam.Value));//6
					SendInfo.Add(Convert.ToDateTime(this.Dte_SendTime.Value).ToString("yyyy-MM-dd HH:mm:ss"));//7
					SendInfo.Add(this.Txt_Remark.Text);//8
					SendInfo.Add(StorageBaseClass.CheckNullStr("0"));//9
					SendInfo.Add(Core.Mes.ClientFrameWork.ClientCommon._UserInfo.UserName);//10
					SendInfo.Add(StorageBaseClass.CheckNullStr(this.Txt_IncpName.Text.Trim()));//11
					SendInfo.Add(StorageBaseClass.CheckNullStr(this.Txt_SendPactNO.Text));//12
					//2008-03-26 ZW
				
						SendInfo.Add("0");//13
					
				
				
						SendInfo.Add("0");//14
				
                        SendInfo.Add("0");//15
                    
                    SendInfo.Add(Core.Mes.ClientFrameWork.ClientCommon._UserInfo.UserName);//16
                    SendInfo.Add(strlx);//17
                    SendInfo.Add(strlxx);//18
					AddSendList(Billets,SendInfo,"CONDOLE",rows);

				}
				

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

		private void Btn_SendBillet_Click(object sender, System.EventArgs e)
		{
			try
			{	
				if(Txt_ListCoding.Text.Trim().Length < 5)
				{
					MessageBox.Show("明细号" + this.Txt_ListCoding.Text.Trim() + "必须为五位数或五位数加一位字母",StorageBaseClass.MsgCaption);
					this.Txt_ListCoding.SelectAll();
					return;
				}

				System.Data.DataRow[] rows;

                rows = this._FrmDataSet.Tables["KCJ_TURNOFFBUTTRESSLIST_VIEW"].Select("BILLETID='" + this.Txt_Billet.Text + "'");
             
				if(rows.Length ==0)
				{
					MessageBox.Show("对应的序号满足条件的可发量为“0”",StorageBaseClass.MsgCaption);
					this.Txt_Billet.Focus();
					return;
				}
				else
				{
					System.Collections.ArrayList Billets = new ArrayList();
					System.Collections.ArrayList SendInfo = new ArrayList();
					foreach(System.Data.DataRow row in rows)
					{
						Billets.Add(row["BILLETID"]);
					}
					SendInfo.Add(this.Txt_AskPlan.Text);//1  发运指示号
					SendInfo.Add(this.Txt_VecihleNO.Text);//2   车号
                    SendInfo.Add(this.Cmb_Txt_ListCodingTop.Text.Trim() + "-" + this.Txt_ListCoding.Text.Trim());//3 明细号
					SendInfo.Add(this.Cmb_SendMan.Text);//4  发运人
					SendInfo.Add(StorageBaseClass.CheckNullStr(this.Cmb_ClassOrder.Value));//5 发运班次
					SendInfo.Add(StorageBaseClass.CheckNullStr(this.Cmb_ClassTeam.Value));//6  发运班组
					SendInfo.Add(Convert.ToDateTime(this.Dte_SendTime.Value).ToString("yyyy-MM-dd HH:mm:ss"));//7 发运时间
					SendInfo.Add(this.Txt_Remark.Text);//8 备注			
					SendInfo.Add(StorageBaseClass.CheckNullStr(this.txt_Icode.Text.ToString().Trim()));//9  收货单位
					SendInfo.Add(StorageBaseClass.CheckNullStr(this.Txt_SendPactNO.Text));//10 合同号
                    SendInfo.Add(Core.Mes.ClientFrameWork.ClientCommon._UserInfo.UserName);//11 登记人
                    SendInfo.Add(strlx);//12登记类型
                    SendInfo.Add("0");//13V发运类型
                    SendInfo.Add(strlxx);//14V发运类型
                    if (chk_QXFY.Checked)
                    {
                        SendInfo.Add("1");//15强行发运
                    }
                    else
                    {
                        SendInfo.Add("0");//15强行发运
                    }
					AddSendList(Billets,SendInfo,"",rows);
				}
               
				
			}
			catch(System.Exception ex)
			{
				System.Diagnostics.Debug.WriteLine(ex.ToString());
				this.Txt_Billet.Focus();
			}
        }
       
        private void Btn_GetListCoding_Click(object sender, System.EventArgs e)
		{
			try
			{
                //string year = this.Txt_ListCodingTop.Text.Substring(2,this.Txt_ListCodingTop.Text.Length-2);
                string year = this.Cmb_Txt_ListCodingTop.Text.Substring(5, 1);
				string strerr = "";
                object obj = Core.Mes.ClientFrameWork.ClientCommon._RemotingHelp.ExecuteMethod("BJZWStuff", "Core.XgMes.Server.JGKC.SteelPlateManager.SendManager",
					"GetListCoding",new object[]{"SEND",year},out strerr);
				if(StorageBaseClass.CheckNullStr(obj).Length ==0)
				{
					MessageBox.Show("获取申报编号失败",StorageBaseClass.MsgCaption);
				}
				else
				{
					this.Txt_ListCoding.Text = StorageBaseClass.CheckNullStr(obj);
				} 

			}
			catch(System.Exception ex)
			{
				System.Diagnostics.Debug.WriteLine(ex.ToString());
			}
		}
		private void btn_Edit_Click(object sender, System.EventArgs e)
		{
			try
			{
				string strerr = "";
				object obj = Core.Mes.ClientFrameWork.ClientCommon._RemotingHelp.ExecuteMethod("JBFYManager","Core.XgMes.Server.JGKC.TurnoffSendManager.SendListManager",
					"EditVechileNO",new object[]{this.Cmb_Txt_ListCodingTop.Text+"-"+this.Txt_ListCoding.Text,this.Txt_VecihleNO.Text},out strerr);
				if(StorageBaseClass.CheckNullStr(obj) == "1")
				{
					MessageBox.Show("车号更改成功",StorageBaseClass.MsgCaption);
					return;
				}
				else
				{
					if(strerr.Length>0)
					{
						MessageBox.Show(strerr,StorageBaseClass.MsgCaption);
						return;
					}
				}
			}
			catch(System.Exception ex)
			{
				System.Diagnostics.Debug.WriteLine(ex.ToString());
			}
		}
		#endregion

		#region "Key Event"
		private void Dte_SendTime_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
		{
			try
			{
				if(e.KeyData==System.Windows.Forms.Keys.Return)
				{
					if(((System.Windows.Forms.Control)sender).Name == "Txt_ListCoding")
					{
						if(Txt_ListCoding.Text.Trim().Length < 5)
						{
							MessageBox.Show("明细号" + this.Txt_ListCoding.Text.Trim() + "必须为五位数或五位数加一位字母",StorageBaseClass.MsgCaption);
							this.Txt_ListCoding.SelectAll();
							return;
						}
					}

					string where = "";
					if(((System.Windows.Forms.Control)sender).Name == "Txt_Condole")
					{
						this.Tab_Match.Tabs["STORAGE"].Selected = true;
						where = " AND B.CONDOLENUMBER='" + this.Txt_Condole.Text + "' ";
					
                  
						if(!GetTurnoffList(where))
						{
							MessageBox.Show("吊号" + this.Txt_Condole.Text + "的板块无库存！",StorageBaseClass.MsgCaption);
							this.Txt_Condole.SelectAll();
							return;
						}

                        Txt_Billet.Focus();
						return;
					}
                    if (((System.Windows.Forms.Control)sender).Name == "Txt_Billet")
                    {
                            try
                            {
                                string err = "";
                                object obj = new object();

                                obj = Core.Mes.ClientFrameWork.ClientCommon._RemotingHelp.ExecuteMethod("BJZWStuff", "Core.XgMes.Server.JGKC.SteelPlateManager.SendManager",
                                       "GetListOrderData", new object[] { Txt_Billet.Text,strlxx }, out err);
                                
                                if (obj != null)
                                {

                                    this.Txt_SendPactNO.Text = StorageBaseClass.CheckNullStr((obj as System.Data.DataSet).Tables[0].Rows[0]["ORDERNO"]);

                                }
                            }
                            catch (System.Exception ex)
                            {
                                System.Diagnostics.Debug.WriteLine(ex.ToString());
                            }
                        
                    }
					if(((System.Windows.Forms.Control)sender).Name == "Txt_Billet")
					{
						this.Tab_Match.Tabs["STORAGE"].Selected = true;
						where = " AND A.BILLETID='" + Txt_Billet.Text + "' ";
                        if (!GetTurnoffList(where))
                        {
                            MessageBox.Show("" + this.Txt_Billet.Text + "的板块无库存！", StorageBaseClass.MsgCaption);
                            this.Txt_Billet.SelectAll();
                            Txt_Billet.Focus();
                            return;
                        }

                        else
                        {
                            this.Dte_SendTime.Focus();
                        }
                         
                           
                       
						return;
					}
                    if (((System.Windows.Forms.Control)sender).Name == "Dte_SendTime")
                    {
                        this.Txt_Remark.Focus();
                    }
                    if (((System.Windows.Forms.Control)sender).Name == "Txt_Remark")
                    {
                        this.Btn_SendBillet.Focus();
                    }
                    if (((System.Windows.Forms.Control)sender).Name == "Txt_ListCoding")
					{
                        GetListData(Cmb_Txt_ListCodingTop.Text + "-" + Txt_ListCoding.Text);
					}
                    if (((System.Windows.Forms.Control)sender).Name == "Txt_SendPactNO")
                    {
                        this.Cmb_SendMan.Focus();
                    }
                    if (((System.Windows.Forms.Control)sender).Name == "Cmb_SendMan")
                    {
                        this.Cmb_ClassOrder.Focus();
                    }
                    if (((System.Windows.Forms.Control)sender).Name == "Cmb_ClassOrder")
                    {
                        this.Cmb_ClassTeam.Focus();
                    }
                    if (((System.Windows.Forms.Control)sender).Name == "Cmb_ClassTeam")
                    {
                        this.Txt_IncpName.Focus();
                    }
                    if (((System.Windows.Forms.Control)sender).Name == "Txt_IncpName")
                    {
                        this.Txt_Condole.Focus();
                    }
				}
			}
			catch(System.Exception ex)
			{
				System.Diagnostics.Debug.WriteLine(ex.ToString());
			}
		}
		private void Dte_SendTime_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 "ToolBarButton"
		public void AskQuery()
		{
			try
			{
				//string err = "";
				this._FrmDataSet.Tables["SEL_ASKVEHICLEPLAN_C"].Clear();
				string where = GetWhere("PLAN");

                string strOut = "";
                DataSet ds = (DataSet)Core.Mes.ClientFrameWork.ClientCommon._RemotingHelp.ExecuteMethod("BJZWStuff", "Core.XgMes.Server.JGKC.SteelPlateManager.SendManager",
                     "GetAskPlanData", new object[] { where,strlx }, out strOut);
          
				if(ds!=null)
				{
                    this._FrmDataSet.Tables["SEL_ASKVEHICLEPLAN_C"].Merge(ds.Tables[0]);
				}
				this._FrmDataSet.AcceptChanges();
	
			}
			catch(System.Exception ex)
			{
				System.Diagnostics.Debug.WriteLine(ex.ToString());
			}
		}
		public void SendQuery()
		{
			try
			{
				string err = "";
				this._FrmDataSet.Tables["KCJ_TURNOFFSENDLIST"].Clear();
				string where = GetWhere("SEND");
                string strRolid = ClientCommon._UserInfo.UserRoleID.ToString();
                object obj = null;



                obj = Core.Mes.ClientFrameWork.ClientCommon._RemotingHelp.ExecuteMethod("BJZWStuff", "Core.XgMes.Server.JGKC.SteelPlateManager.SendManager",
                     "GetSendListData", new object[] { where ,strlx}, out err);
             
                
                this._FrmDataSet.AcceptChanges();
				if(obj!=null)
				{
					this._FrmDataSet.Merge(obj as System.Data.DataSet);
				}
				this._FrmDataSet.AcceptChanges();
				this.Tab_Match.Tabs["SEND"].Selected = true;
			}
			catch(System.Exception ex)
			{
				System.Diagnostics.Debug.WriteLine(ex.ToString());
			}
		}
		public void Print()
		{
			try
			{
				string strerr = "";
                object obj = null;
                string strRole = ClientCommon._UserInfo.UserRoleID.ToString();
                Core.XgMes.Client.Print.FrmPrintBase rtp = new Core.XgMes.Client.Print.FrmPrintBase();
				if(!this.txt_ListCode.Enabled | this.txt_ListCode.Text.Trim()=="")
				{
					MessageBox.Show("请您输写要打印的发运明细编号",StorageBaseClass.MsgCaption);
					return;
				}

                obj = Core.Mes.ClientFrameWork.ClientCommon._RemotingHelp.ExecuteMethod("BJZWStuff", "Core.XgMes.Server.JGKC.SteelPlateManager.SendManager",
                          "GetPrintData", new object[] { this.txt_ListCode.Text, strlx, strRole,strlxx }, out strerr);
                    if (strlx == "2")
                    {
                        rtp._rtpFileName = @"PSSendListXC.rpt";
                    }
                    else if (strlx == "1")
                    {
                        rtp._rtpFileName = @"BJSEND_BC.rpt";
                    }
                   
              
                if (strlx == "2" || strlx == "3")
                {
                }
                else
                {
                    if (obj == null)
                    {
                        MessageBox.Show("请您确认输写的发运明细编号是否正确", StorageBaseClass.MsgCaption);
                        return;
                    }
                }
				

				rtp._rtpDataSet = obj as System.Data.DataSet;
				rtp._rtpDataSet.Tables["TOP"].Rows[0]["CREATOR"]=Core.Mes.ClientFrameWork.ClientCommon._UserInfo.UserName;
				rtp.ShowDialog();
			}
			catch(System.Exception ex)
			{
				System.Diagnostics.Debug.WriteLine(ex.ToString());
			}
		}
		protected override bool Delete()
		{
			try
			{
				if(this.Grd_Send.ActiveRow==null)
				{
					MessageBox.Show("请选择您要删除选择的发运明细！",StorageBaseClass.MsgCaption);
					return false;
				}
				System.Windows.Forms.DialogResult t = MessageBox.Show("你确认要撤销所选则的发运操作",StorageBaseClass.MsgCaption,System.Windows.Forms.MessageBoxButtons.YesNo);
				if(t == System.Windows.Forms.DialogResult.No)
				{
					return false;
				}
				System.Collections.ArrayList BilletInfo = new ArrayList();
				System.Collections.ArrayList SendInfo = new ArrayList();
				if(this.Grd_Send.ActiveRow.GetType() == typeof(Infragistics.Win.UltraWinGrid.UltraGridRow))
				{
					BilletInfo.Add(StorageBaseClass.CheckNullStr(this.Grd_Send.ActiveRow.Cells["ID"].Value));
				
				}
				else
				{
					foreach(Infragistics.Win.UltraWinGrid.UltraGridRow row in this.Grd_Send.ActiveRow.ChildBands[0].Rows)
					{
						GetValueList(row,"ID",ref BilletInfo);
					}
				}
				SendInfo.Add(Core.Mes.ClientFrameWork.ClientCommon._UserInfo.UserName);
				SendInfo.Add(Core.Mes.ClientFrameWork.ClientCommon._UserInfo.UserBb);
				SendInfo.Add(Core.Mes.ClientFrameWork.ClientCommon._UserInfo.UserBc);
                SendInfo.Add(strlx);
                SendInfo.Add(strlxx);
                string strRole = ClientCommon._UserInfo.UserRoleID.ToString();
				string strerr = "";
                object obj = Core.Mes.ClientFrameWork.ClientCommon._RemotingHelp.ExecuteMethod("BJZWStuff", "Core.XgMes.Server.JGKC.SteelPlateManager.SendManager",
                    "DelSendList", new object[] { BilletInfo, SendInfo, strlx }, out strerr);
				if(StorageBaseClass.CheckNullStr(obj)=="1")
				{
					for(int i=0;i<BilletInfo.Count;i++)
					{
						System.Data.DataRow[] row = this._FrmDataSet.Tables["KCJ_TURNOFFSENDLIST"].Select("ID='"+BilletInfo[i].ToString()+"'");
						if(row.Length==1)
							this._FrmDataSet.Tables["KCJ_TURNOFFSENDLIST"].Rows.Remove(row[0]);
					}
					this._FrmDataSet.Tables["KCJ_TURNOFFSENDLIST"].AcceptChanges();
				}
				else
				{
					MessageBox.Show(strerr,StorageBaseClass.MsgCaption);
				}

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

		public void Export()
		{
			try
			{
				string filename = @"发运明细.xls";
				base.ultraGridExcelExporter.Export(this.Grd_Send,filename);
				System.Diagnostics.ProcessStartInfo st = new System.Diagnostics.ProcessStartInfo(filename);
				st.WindowStyle =System.Diagnostics.ProcessWindowStyle.Maximized ; 
				System.Diagnostics.Process.Start(st);
			}
			catch(System.Exception ex)
			{
				System.Diagnostics.Debug.WriteLine(ex.ToString());
			}
		}
		#endregion

		#region "Text"
		private void Txt_Condole_TextChanged(object sender, System.EventArgs e)
		{
			try
			{

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

		private void Txt_Billet_TextChanged(object sender, System.EventArgs e)
		{
			try
			{

                
				this.Txt_Billet.Focus();
			}
			catch(System.Exception ex)
			{
				System.Diagnostics.Debug.WriteLine(ex.ToString());
			}
		}
		#endregion

		

	

	

		private void Txt_ListCoding_ValueChanged(object sender, System.EventArgs e)
		{
		
		}

        private void chk_AllowFilter_CheckedChanged(object sender, EventArgs e)
        {
            if (this.chk_AllowFilter.Checked)
            {
                this.Grd_Send.DisplayLayout.Override.FilterUIType = Infragistics.Win.UltraWinGrid.FilterUIType.FilterRow;
                Grd_HCSendPlan.DisplayLayout.Override.FilterUIType = Infragistics.Win.UltraWinGrid.FilterUIType.FilterRow;
             
            }
            else
            {
                this.Grd_Send.DisplayLayout.Override.FilterUIType = Infragistics.Win.UltraWinGrid.FilterUIType.Default;
                Grd_HCSendPlan.DisplayLayout.Override.FilterUIType = Infragistics.Win.UltraWinGrid.FilterUIType.Default;
                if (this.Grd_Send.DisplayLayout.Bands[0].ColumnFilters.Count > 0)
                {
                    for (int i = 0; i < this.Grd_Send.DisplayLayout.Bands[0].ColumnFilters.Count; i++)
                    {
                        this.Grd_Send.DisplayLayout.Bands[0].ColumnFilters[i].FilterConditions.Clear();
                    }
                }
                if (this.Grd_HCSendPlan.DisplayLayout.Bands[0].ColumnFilters.Count > 0)
                {
                    for (int i = 0; i < this.Grd_HCSendPlan.DisplayLayout.Bands[0].ColumnFilters.Count; i++)
                    {
                        this.Grd_HCSendPlan.DisplayLayout.Bands[0].ColumnFilters[i].FilterConditions.Clear();
                    }
                }
                

            }
        }



 

        private void btn_SendID_Click(object sender, EventArgs e)
        {
            this.Cmb_Txt_ListCodingTop.Text = "FN" + System.DateTime.Now.ToString("yy").Substring(1, 1);
            this.Txt_AskPlan.Text = "N" + System.DateTime.Now.ToString("yyyyMMddHHmmss");
            this.Txt_AskPlan.Enabled = true;
            this.btn_NSendID.Visible = false;
        }

        private void chk_ybfs_Click(object sender, EventArgs e)
        {
            AFFIRMJL();
        }

        #region "预报发送"
        private void AFFIRMJL()
        {
            try
            {
                if (this.Txt_VecihleNO.Text.Length == 0)
                {
                    MessageBox.Show("请您确认车牌号！", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                    return;
                }
                if (this.Txt_AskPlan.Text.Length == 0)
                {
                    MessageBox.Show("请您确认发运号！", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                    return;
                }
                if (this.Txt_PhoneNum.Text.Length == 0)
                {
                    MessageBox.Show("请您确认手机号！", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                    return;
                }
                System.Collections.ArrayList LoadInfo = new ArrayList();
                string strerr = "";
                string Type = "AFFIRMJL";
                LoadInfo.Add(Comm.ObjToStr(this.Txt_VecihleNO.Text.Trim()));
                LoadInfo.Add(Comm.ObjToStr(this.Txt_AskPlan.Text.Trim()));
                LoadInfo.Add(Core.Mes.ClientFrameWork.ClientCommon._UserInfo.UserName);
                LoadInfo.Add(Comm.ObjToStr(this.Txt_PhoneNum.Text.Trim()));
                object obj = Core.Mes.ClientFrameWork.ClientCommon._RemotingHelp.ExecuteMethod("BJZWStuff", "Core.XgMes.Server.JGKC.SteelPlateManager.SendManager",
                    "CommitLoadVecihle", new object[] { LoadInfo, Type }, out strerr);
                if (obj != null && obj.ToString() == "1")
                {
                    MessageBox.Show("预报发送成功！", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                }
                else
                {
                    MessageBox.Show(strerr, "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                }

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

        #region "撤销发送"
        private void QXZL()
        {
            try
            {
                if (this.Txt_VecihleNO.Text.Length == 0)
                {
                    MessageBox.Show("请您确认车牌号！", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                    return;
                }
                if (this.Txt_AskPlan.Text.Length == 0)
                {
                    MessageBox.Show("请您确认发运号！", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                    return;
                }
                System.Collections.ArrayList LoadInfo = new ArrayList();
                string strerr = "";
                string Type = "QXZL";
                LoadInfo.Add(Comm.ObjToStr(this.Txt_VecihleNO.Text.Trim()));
                LoadInfo.Add(Comm.ObjToStr(this.Txt_AskPlan.Text.Trim()));
                LoadInfo.Add(Core.Mes.ClientFrameWork.ClientCommon._UserInfo.UserName);
                object obj = Core.Mes.ClientFrameWork.ClientCommon._RemotingHelp.ExecuteMethod("BJZWStuff", "Core.XgMes.Server.JGKC.SteelPlateManager.SendManager",
                    "CommitLoadVecihle", new object[] { LoadInfo, Type }, out strerr);
                if (obj != null && obj.ToString() == "1")
                {
                    MessageBox.Show("撤销发送成功！", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                }
                else
                {
                    MessageBox.Show(strerr, "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                }

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

        private void chk_cxfs_Click(object sender, EventArgs e)
        {
            QXZL();
        }


		

		
	}
}
