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;
using xin.glue.cargocnHttpCilent;

namespace Core.XgMes.Client.JGKC.TurnoffSendManager
{
	/// <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.UltraWinTabControl.UltraTabPageControl ultraTabPageControl3;
		private Infragistics.Win.UltraWinGrid.UltraGrid Grd_HBSend;
		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.UltraWinEditors.UltraTextEditor Txt_ListCodingTop;
		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_Add;
		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.UltraTextEditor Txt_IncepName;
		private Infragistics.Win.UltraWinEditors.UltraCheckEditor Chk_IncpName;
		private Infragistics.Win.UltraWinEditors.UltraTextEditor Txt_Station;
		private Infragistics.Win.UltraWinEditors.UltraCheckEditor Chk_Station;
		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.UltraTextEditor txt_RollNOTop;
		private Infragistics.Win.UltraWinEditors.UltraCheckEditor chk_RollNO;
		private Infragistics.Win.Misc.UltraLabel ultraLabel11;
		private Infragistics.Win.UltraWinEditors.UltraTextEditor Txt_Remark;
		
		private Infragistics.Win.UltraWinEditors.UltraCheckEditor Chk_ForceSend;
		private Infragistics.Win.UltraWinEditors.UltraOptionSet Ops_SendType;
		private Infragistics.Win.UltraWinGrid.UltraCombo Cmb_PLD;
		private Infragistics.Win.Misc.UltraLabel ultraLabel12;
		private Infragistics.Win.Misc.UltraLabel ultraLabel13;
		private Infragistics.Win.UltraWinEditors.UltraTextEditor Txt_Certificate;
		private Infragistics.Win.Misc.UltraLabel ultraLabel14;
		private Infragistics.Win.UltraWinEditors.UltraTextEditor Txt_IncpName;
		private Infragistics.Win.UltraWinEditors.UltraCheckEditor Chk_AutoMatch;
		private Infragistics.Win.UltraWinTabControl.UltraTabPageControl ultraTabPageControl4;
		private Infragistics.Win.UltraWinGrid.UltraGrid Grd_ZBSend;
		#endregion
		private Infragistics.Win.Misc.UltraLabel ultraLabel15;
		private Infragistics.Win.Misc.UltraLabel ultraLabel16;
		private Infragistics.Win.Misc.UltraLabel ultraLabel17;
		private Infragistics.Win.UltraWinEditors.UltraTextEditor Txt_MaterialNO;
		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_Clear;
		private Infragistics.Win.UltraWinEditors.UltraCheckEditor chk_Cb;
		private Infragistics.Win.UltraWinGrid.UltraCombo cmb_PriMarName;
        private Infragistics.Win.UltraWinGrid.UltraCombo cmb_PrimerSupply;
        private Infragistics.Win.UltraWinEditors.UltraCheckEditor chk_BJB;
        private Infragistics.Win.UltraWinEditors.UltraComboEditor Txt_Lodlist;
        private Infragistics.Win.UltraWinEditors.UltraCheckEditor chk_Print;
        private Infragistics.Win.UltraWinEditors.UltraCheckEditor chk_AllowFilter;
        private Infragistics.Win.UltraWinGrid.UltraCombo Cmb_Txt_ListCodingTop;
        private Infragistics.Win.UltraWinEditors.UltraComboEditor Cmb_SendType;
        private Infragistics.Win.UltraWinEditors.UltraCheckEditor chk_SendType;
        private Infragistics.Win.UltraWinEditors.UltraCheckEditor chk_NZLX;
        private Infragistics.Win.UltraWinGrid.UltraCombo cmb_NZLX;
        private Infragistics.Win.Misc.UltraLabel ultraLabel19;
        private Infragistics.Win.Misc.UltraButton btn_SendID;
        

		/// <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 appearance290 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance291 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance292 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance293 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance294 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance295 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance296 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance297 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance298 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance299 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance300 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance301 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance302 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance303 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance304 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance305 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance306 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance307 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance308 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance309 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance310 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance311 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance312 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance313 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance314 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance315 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance316 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance317 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance318 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance319 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance320 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance321 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance282 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance283 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance284 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance285 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance286 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance287 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance288 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance289 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance174 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance175 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance176 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance177 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance178 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance179 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance180 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance181 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance182 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance183 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance184 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance185 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance186 = new Infragistics.Win.Appearance();
            Infragistics.Win.ValueListItem valueListItem7 = new Infragistics.Win.ValueListItem();
            Infragistics.Win.ValueListItem valueListItem8 = new Infragistics.Win.ValueListItem();
            Infragistics.Win.Appearance appearance187 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance188 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance189 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance190 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance191 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance192 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance193 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance194 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance195 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance196 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance197 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance198 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance199 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance200 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance201 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance202 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance203 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance204 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance205 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance206 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance207 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance208 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance209 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance210 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance211 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance212 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance213 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance214 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance215 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance216 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance217 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance218 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance219 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance220 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance221 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance222 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance223 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance224 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance225 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance226 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance227 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance228 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance229 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance230 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance231 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance232 = new Infragistics.Win.Appearance();
            Infragistics.Win.ValueListItem valueListItem9 = new Infragistics.Win.ValueListItem();
            Infragistics.Win.ValueListItem valueListItem10 = new Infragistics.Win.ValueListItem();
            Infragistics.Win.Appearance appearance233 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance234 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance235 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance236 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance237 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance238 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance239 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance240 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance241 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance242 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance243 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance244 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance245 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance246 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance247 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance248 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance249 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance250 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance251 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance252 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance253 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance254 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance255 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance256 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance257 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance258 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance259 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance260 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance261 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance262 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance263 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance264 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance265 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance266 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance267 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance268 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance269 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance270 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance271 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance272 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance273 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance274 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance275 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance276 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance277 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance278 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance279 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance280 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance281 = new Infragistics.Win.Appearance();
            Infragistics.Win.UltraWinTabControl.UltraTab ultraTab5 = new Infragistics.Win.UltraWinTabControl.UltraTab();
            Infragistics.Win.UltraWinTabControl.UltraTab ultraTab6 = new Infragistics.Win.UltraWinTabControl.UltraTab();
            Infragistics.Win.UltraWinTabControl.UltraTab ultraTab7 = new Infragistics.Win.UltraWinTabControl.UltraTab();
            Infragistics.Win.UltraWinTabControl.UltraTab ultraTab8 = new Infragistics.Win.UltraWinTabControl.UltraTab();
            Infragistics.Win.Appearance appearance322 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance323 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance324 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance325 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance326 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance327 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance328 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance329 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance330 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance331 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance332 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance333 = new Infragistics.Win.Appearance();
            Infragistics.Win.ValueListItem valueListItem11 = new Infragistics.Win.ValueListItem();
            Infragistics.Win.ValueListItem valueListItem12 = new Infragistics.Win.ValueListItem();
            Infragistics.Win.Appearance appearance334 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance335 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance336 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance337 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance338 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance339 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance340 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance341 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance342 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance343 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance344 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance345 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance346 = 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.Cmb_Txt_ListCodingTop = new Infragistics.Win.UltraWinGrid.UltraCombo();
            this.Txt_Lodlist = new Infragistics.Win.UltraWinEditors.UltraComboEditor();
            this.cmb_PrimerSupply = new Infragistics.Win.UltraWinGrid.UltraCombo();
            this.cmb_PriMarName = new Infragistics.Win.UltraWinGrid.UltraCombo();
            this.chk_Cb = new Infragistics.Win.UltraWinEditors.UltraCheckEditor();
            this.chk_Clear = new Infragistics.Win.UltraWinEditors.UltraCheckEditor();
            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_MaterialNO = new Infragistics.Win.UltraWinEditors.UltraTextEditor();
            this.ultraLabel17 = new Infragistics.Win.Misc.UltraLabel();
            this.ultraLabel16 = new Infragistics.Win.Misc.UltraLabel();
            this.ultraLabel15 = new Infragistics.Win.Misc.UltraLabel();
            this.Chk_AutoMatch = new Infragistics.Win.UltraWinEditors.UltraCheckEditor();
            this.Txt_IncpName = new Infragistics.Win.UltraWinEditors.UltraTextEditor();
            this.ultraLabel14 = new Infragistics.Win.Misc.UltraLabel();
            this.Txt_Certificate = new Infragistics.Win.UltraWinEditors.UltraTextEditor();
            this.ultraLabel13 = new Infragistics.Win.Misc.UltraLabel();
            this.ultraLabel12 = new Infragistics.Win.Misc.UltraLabel();
            this.Cmb_PLD = new Infragistics.Win.UltraWinGrid.UltraCombo();
            this.Ops_SendType = new Infragistics.Win.UltraWinEditors.UltraOptionSet();
            this.Chk_ForceSend = new Infragistics.Win.UltraWinEditors.UltraCheckEditor();
            this.Btn_GetListCoding = new Infragistics.Win.Misc.UltraButton();
            this.Btn_SendBillet = new Infragistics.Win.Misc.UltraButton();
            this.Btn_Add = 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.Txt_ListCodingTop = new Infragistics.Win.UltraWinEditors.UltraTextEditor();
            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_IncepName = new Infragistics.Win.UltraWinEditors.UltraTextEditor();
            this.Chk_IncpName = new Infragistics.Win.UltraWinEditors.UltraCheckEditor();
            this.Txt_Station = new Infragistics.Win.UltraWinEditors.UltraTextEditor();
            this.Chk_Station = 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.txt_RollNOTop = new Infragistics.Win.UltraWinEditors.UltraTextEditor();
            this.chk_RollNO = new Infragistics.Win.UltraWinEditors.UltraCheckEditor();
            this.ultraLabel11 = new Infragistics.Win.Misc.UltraLabel();
            this.chk_BJB = new Infragistics.Win.UltraWinEditors.UltraCheckEditor();
            this.chk_Print = new Infragistics.Win.UltraWinEditors.UltraCheckEditor();
            this.chk_AllowFilter = new Infragistics.Win.UltraWinEditors.UltraCheckEditor();
            this.Cmb_SendType = new Infragistics.Win.UltraWinEditors.UltraComboEditor();
            this.chk_SendType = new Infragistics.Win.UltraWinEditors.UltraCheckEditor();
            this.chk_NZLX = new Infragistics.Win.UltraWinEditors.UltraCheckEditor();
            this.cmb_NZLX = new Infragistics.Win.UltraWinGrid.UltraCombo();
            this.btn_SendID = new Infragistics.Win.Misc.UltraButton();
            ((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.Cmb_Txt_ListCodingTop)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.Txt_Lodlist)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.cmb_PrimerSupply)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.cmb_PriMarName)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.Txt_SendPactNO)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.Txt_MaterialNO)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.Txt_IncpName)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.Txt_Certificate)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.Cmb_PLD)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.Ops_SendType)).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.Txt_ListCodingTop)).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_IncepName)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.Txt_Station)).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_RollNOTop)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.Cmb_SendType)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.cmb_NZLX)).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.cmb_NZLX);
            this.Grp_Query.Controls.Add(this.chk_NZLX);
            this.Grp_Query.Controls.Add(this.chk_SendType);
            this.Grp_Query.Controls.Add(this.Cmb_SendType);
            this.Grp_Query.Controls.Add(this.chk_AllowFilter);
            this.Grp_Query.Controls.Add(this.chk_Print);
            this.Grp_Query.Controls.Add(this.chk_BJB);
            this.Grp_Query.Controls.Add(this.ultraLabel11);
            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.txt_RollNOTop);
            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.Txt_Station);
            this.Grp_Query.Controls.Add(this.Chk_Station);
            this.Grp_Query.Controls.Add(this.Txt_IncepName);
            this.Grp_Query.Controls.Add(this.Chk_IncpName);
            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;
            appearance290.BackColor = System.Drawing.SystemColors.ActiveBorder;
            appearance290.BackColor2 = System.Drawing.SystemColors.ControlDark;
            appearance290.BackGradientStyle = Infragistics.Win.GradientStyle.Vertical;
            appearance290.BorderColor = System.Drawing.SystemColors.Window;
            this.Grd_Storage.DisplayLayout.GroupByBox.Appearance = appearance290;
            appearance291.ForeColor = System.Drawing.SystemColors.GrayText;
            this.Grd_Storage.DisplayLayout.GroupByBox.BandLabelAppearance = appearance291;
            this.Grd_Storage.DisplayLayout.GroupByBox.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid;
            this.Grd_Storage.DisplayLayout.GroupByBox.Hidden = true;
            appearance292.BackColor = System.Drawing.SystemColors.ControlLightLight;
            appearance292.BackColor2 = System.Drawing.SystemColors.Control;
            appearance292.BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal;
            appearance292.ForeColor = System.Drawing.SystemColors.GrayText;
            this.Grd_Storage.DisplayLayout.GroupByBox.PromptAppearance = appearance292;
            this.Grd_Storage.DisplayLayout.Override.CellPadding = 0;
            this.Grd_Storage.DisplayLayout.Override.FilterUIType = Infragistics.Win.UltraWinGrid.FilterUIType.FilterRow;
            appearance293.BackColor = System.Drawing.SystemColors.Control;
            appearance293.BackColor2 = System.Drawing.SystemColors.ControlDark;
            appearance293.BackGradientAlignment = Infragistics.Win.GradientAlignment.Element;
            appearance293.BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal;
            appearance293.BorderColor = System.Drawing.SystemColors.Window;
            this.Grd_Storage.DisplayLayout.Override.GroupByRowAppearance = appearance293;
            appearance294.BackColor = System.Drawing.Color.LightSteelBlue;
            appearance294.TextHAlign = Infragistics.Win.HAlign.Center;
            this.Grd_Storage.DisplayLayout.Override.HeaderAppearance = appearance294;
            this.Grd_Storage.DisplayLayout.Override.MinRowHeight = 21;
            appearance295.BackColor = System.Drawing.SystemColors.Window;
            appearance295.BorderColor = System.Drawing.Color.Silver;
            this.Grd_Storage.DisplayLayout.Override.RowAppearance = appearance295;
            appearance296.BackColor = System.Drawing.Color.LightSteelBlue;
            this.Grd_Storage.DisplayLayout.Override.RowSelectorAppearance = appearance296;
            this.Grd_Storage.DisplayLayout.Override.RowSelectorNumberStyle = Infragistics.Win.UltraWinGrid.RowSelectorNumberStyle.RowIndex;
            this.Grd_Storage.DisplayLayout.Override.RowSelectors = Infragistics.Win.DefaultableBoolean.True;
            appearance297.BackColor = System.Drawing.SystemColors.ControlLight;
            this.Grd_Storage.DisplayLayout.Override.TemplateAddRowAppearance = appearance297;
            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;
            appearance298.BackColor = System.Drawing.SystemColors.ActiveBorder;
            appearance298.BackColor2 = System.Drawing.SystemColors.ControlDark;
            appearance298.BackGradientStyle = Infragistics.Win.GradientStyle.Vertical;
            appearance298.BorderColor = System.Drawing.SystemColors.Window;
            this.Grd_Send.DisplayLayout.GroupByBox.Appearance = appearance298;
            appearance299.ForeColor = System.Drawing.SystemColors.GrayText;
            this.Grd_Send.DisplayLayout.GroupByBox.BandLabelAppearance = appearance299;
            this.Grd_Send.DisplayLayout.GroupByBox.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid;
            this.Grd_Send.DisplayLayout.GroupByBox.Hidden = true;
            appearance300.BackColor = System.Drawing.SystemColors.ControlLightLight;
            appearance300.BackColor2 = System.Drawing.SystemColors.Control;
            appearance300.BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal;
            appearance300.ForeColor = System.Drawing.SystemColors.GrayText;
            this.Grd_Send.DisplayLayout.GroupByBox.PromptAppearance = appearance300;
            this.Grd_Send.DisplayLayout.Override.BorderStyleCell = Infragistics.Win.UIElementBorderStyle.RaisedSoft;
            this.Grd_Send.DisplayLayout.Override.CellPadding = 0;
            appearance301.BackColor = System.Drawing.SystemColors.Control;
            appearance301.BackColor2 = System.Drawing.SystemColors.ControlDark;
            appearance301.BackGradientAlignment = Infragistics.Win.GradientAlignment.Element;
            appearance301.BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal;
            appearance301.BorderColor = System.Drawing.SystemColors.Window;
            this.Grd_Send.DisplayLayout.Override.GroupByRowAppearance = appearance301;
            appearance302.BackColor = System.Drawing.Color.LightSteelBlue;
            appearance302.TextHAlign = Infragistics.Win.HAlign.Center;
            this.Grd_Send.DisplayLayout.Override.HeaderAppearance = appearance302;
            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;
            appearance303.BackColor = System.Drawing.SystemColors.Window;
            appearance303.BorderColor = System.Drawing.Color.Silver;
            this.Grd_Send.DisplayLayout.Override.RowAppearance = appearance303;
            appearance304.BackColor = System.Drawing.Color.LightSteelBlue;
            this.Grd_Send.DisplayLayout.Override.RowSelectorAppearance = appearance304;
            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;
            appearance305.BackColor = System.Drawing.SystemColors.ControlLight;
            this.Grd_Send.DisplayLayout.Override.TemplateAddRowAppearance = appearance305;
            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.DisplayLayout.CaptionVisible = Infragistics.Win.DefaultableBoolean.True;
            appearance306.BackColor = System.Drawing.SystemColors.ActiveBorder;
            appearance306.BackColor2 = System.Drawing.SystemColors.ControlDark;
            appearance306.BackGradientStyle = Infragistics.Win.GradientStyle.Vertical;
            appearance306.BorderColor = System.Drawing.SystemColors.Window;
            this.Grd_HBSend.DisplayLayout.GroupByBox.Appearance = appearance306;
            appearance307.ForeColor = System.Drawing.SystemColors.GrayText;
            this.Grd_HBSend.DisplayLayout.GroupByBox.BandLabelAppearance = appearance307;
            this.Grd_HBSend.DisplayLayout.GroupByBox.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid;
            this.Grd_HBSend.DisplayLayout.GroupByBox.Hidden = true;
            appearance308.BackColor = System.Drawing.SystemColors.ControlLightLight;
            appearance308.BackColor2 = System.Drawing.SystemColors.Control;
            appearance308.BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal;
            appearance308.ForeColor = System.Drawing.SystemColors.GrayText;
            this.Grd_HBSend.DisplayLayout.GroupByBox.PromptAppearance = appearance308;
            this.Grd_HBSend.DisplayLayout.Override.BorderStyleCell = Infragistics.Win.UIElementBorderStyle.RaisedSoft;
            this.Grd_HBSend.DisplayLayout.Override.CellPadding = 0;
            appearance309.BackColor = System.Drawing.SystemColors.Control;
            appearance309.BackColor2 = System.Drawing.SystemColors.ControlDark;
            appearance309.BackGradientAlignment = Infragistics.Win.GradientAlignment.Element;
            appearance309.BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal;
            appearance309.BorderColor = System.Drawing.SystemColors.Window;
            this.Grd_HBSend.DisplayLayout.Override.GroupByRowAppearance = appearance309;
            appearance310.BackColor = System.Drawing.Color.LightSteelBlue;
            appearance310.TextHAlign = Infragistics.Win.HAlign.Center;
            this.Grd_HBSend.DisplayLayout.Override.HeaderAppearance = appearance310;
            this.Grd_HBSend.DisplayLayout.Override.HeaderClickAction = Infragistics.Win.UltraWinGrid.HeaderClickAction.Select;
            this.Grd_HBSend.DisplayLayout.Override.HeaderStyle = Infragistics.Win.HeaderStyle.Standard;
            this.Grd_HBSend.DisplayLayout.Override.MinRowHeight = 21;
            appearance311.BackColor = System.Drawing.SystemColors.Window;
            appearance311.BorderColor = System.Drawing.Color.Silver;
            this.Grd_HBSend.DisplayLayout.Override.RowAppearance = appearance311;
            appearance312.BackColor = System.Drawing.Color.LightSteelBlue;
            this.Grd_HBSend.DisplayLayout.Override.RowSelectorAppearance = appearance312;
            this.Grd_HBSend.DisplayLayout.Override.RowSelectorHeaderStyle = Infragistics.Win.UltraWinGrid.RowSelectorHeaderStyle.SeparateElement;
            this.Grd_HBSend.DisplayLayout.Override.RowSelectorNumberStyle = Infragistics.Win.UltraWinGrid.RowSelectorNumberStyle.RowIndex;
            this.Grd_HBSend.DisplayLayout.Override.RowSelectors = Infragistics.Win.DefaultableBoolean.True;
            this.Grd_HBSend.DisplayLayout.Override.SelectTypeCell = Infragistics.Win.UltraWinGrid.SelectType.None;
            appearance313.BackColor = System.Drawing.SystemColors.ControlLight;
            this.Grd_HBSend.DisplayLayout.Override.TemplateAddRowAppearance = appearance313;
            this.Grd_HBSend.DisplayLayout.ScrollStyle = Infragistics.Win.UltraWinGrid.ScrollStyle.Immediate;
            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.DisplayLayout.CaptionVisible = Infragistics.Win.DefaultableBoolean.True;
            appearance314.BackColor = System.Drawing.SystemColors.ActiveBorder;
            appearance314.BackColor2 = System.Drawing.SystemColors.ControlDark;
            appearance314.BackGradientStyle = Infragistics.Win.GradientStyle.Vertical;
            appearance314.BorderColor = System.Drawing.SystemColors.Window;
            this.Grd_ZBSend.DisplayLayout.GroupByBox.Appearance = appearance314;
            appearance315.ForeColor = System.Drawing.SystemColors.GrayText;
            this.Grd_ZBSend.DisplayLayout.GroupByBox.BandLabelAppearance = appearance315;
            this.Grd_ZBSend.DisplayLayout.GroupByBox.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid;
            this.Grd_ZBSend.DisplayLayout.GroupByBox.Hidden = true;
            appearance316.BackColor = System.Drawing.SystemColors.ControlLightLight;
            appearance316.BackColor2 = System.Drawing.SystemColors.Control;
            appearance316.BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal;
            appearance316.ForeColor = System.Drawing.SystemColors.GrayText;
            this.Grd_ZBSend.DisplayLayout.GroupByBox.PromptAppearance = appearance316;
            this.Grd_ZBSend.DisplayLayout.Override.BorderStyleCell = Infragistics.Win.UIElementBorderStyle.RaisedSoft;
            this.Grd_ZBSend.DisplayLayout.Override.CellPadding = 0;
            appearance317.BackColor = System.Drawing.SystemColors.Control;
            appearance317.BackColor2 = System.Drawing.SystemColors.ControlDark;
            appearance317.BackGradientAlignment = Infragistics.Win.GradientAlignment.Element;
            appearance317.BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal;
            appearance317.BorderColor = System.Drawing.SystemColors.Window;
            this.Grd_ZBSend.DisplayLayout.Override.GroupByRowAppearance = appearance317;
            appearance318.BackColor = System.Drawing.Color.LightSteelBlue;
            appearance318.TextHAlign = Infragistics.Win.HAlign.Center;
            this.Grd_ZBSend.DisplayLayout.Override.HeaderAppearance = appearance318;
            this.Grd_ZBSend.DisplayLayout.Override.HeaderClickAction = Infragistics.Win.UltraWinGrid.HeaderClickAction.Select;
            this.Grd_ZBSend.DisplayLayout.Override.HeaderStyle = Infragistics.Win.HeaderStyle.Standard;
            this.Grd_ZBSend.DisplayLayout.Override.MinRowHeight = 21;
            appearance319.BackColor = System.Drawing.SystemColors.Window;
            appearance319.BorderColor = System.Drawing.Color.Silver;
            this.Grd_ZBSend.DisplayLayout.Override.RowAppearance = appearance319;
            appearance320.BackColor = System.Drawing.Color.LightSteelBlue;
            this.Grd_ZBSend.DisplayLayout.Override.RowSelectorAppearance = appearance320;
            this.Grd_ZBSend.DisplayLayout.Override.RowSelectorHeaderStyle = Infragistics.Win.UltraWinGrid.RowSelectorHeaderStyle.SeparateElement;
            this.Grd_ZBSend.DisplayLayout.Override.RowSelectorNumberStyle = Infragistics.Win.UltraWinGrid.RowSelectorNumberStyle.RowIndex;
            this.Grd_ZBSend.DisplayLayout.Override.RowSelectors = Infragistics.Win.DefaultableBoolean.True;
            this.Grd_ZBSend.DisplayLayout.Override.SelectTypeCell = Infragistics.Win.UltraWinGrid.SelectType.None;
            appearance321.BackColor = System.Drawing.SystemColors.ControlLight;
            this.Grd_ZBSend.DisplayLayout.Override.TemplateAddRowAppearance = appearance321;
            this.Grd_ZBSend.DisplayLayout.ScrollStyle = Infragistics.Win.UltraWinGrid.ScrollStyle.Immediate;
            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;
            appearance282.BackColor = System.Drawing.SystemColors.ActiveBorder;
            appearance282.BackColor2 = System.Drawing.SystemColors.ControlDark;
            appearance282.BackGradientStyle = Infragistics.Win.GradientStyle.Vertical;
            appearance282.BorderColor = System.Drawing.SystemColors.Window;
            this.Grd_HCSendPlan.DisplayLayout.GroupByBox.Appearance = appearance282;
            appearance283.ForeColor = System.Drawing.SystemColors.GrayText;
            this.Grd_HCSendPlan.DisplayLayout.GroupByBox.BandLabelAppearance = appearance283;
            this.Grd_HCSendPlan.DisplayLayout.GroupByBox.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid;
            this.Grd_HCSendPlan.DisplayLayout.GroupByBox.Hidden = true;
            appearance284.BackColor = System.Drawing.SystemColors.ControlLightLight;
            appearance284.BackColor2 = System.Drawing.SystemColors.Control;
            appearance284.BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal;
            appearance284.ForeColor = System.Drawing.SystemColors.GrayText;
            this.Grd_HCSendPlan.DisplayLayout.GroupByBox.PromptAppearance = appearance284;
            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;
            appearance285.BackColor = System.Drawing.SystemColors.Control;
            appearance285.BackColor2 = System.Drawing.SystemColors.ControlDark;
            appearance285.BackGradientAlignment = Infragistics.Win.GradientAlignment.Element;
            appearance285.BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal;
            appearance285.BorderColor = System.Drawing.SystemColors.Window;
            this.Grd_HCSendPlan.DisplayLayout.Override.GroupByRowAppearance = appearance285;
            appearance286.BackColor = System.Drawing.Color.LightSteelBlue;
            appearance286.TextHAlign = Infragistics.Win.HAlign.Center;
            this.Grd_HCSendPlan.DisplayLayout.Override.HeaderAppearance = appearance286;
            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;
            appearance287.BackColor = System.Drawing.SystemColors.Window;
            appearance287.BorderColor = System.Drawing.Color.Silver;
            this.Grd_HCSendPlan.DisplayLayout.Override.RowAppearance = appearance287;
            appearance288.BackColor = System.Drawing.Color.LightSteelBlue;
            this.Grd_HCSendPlan.DisplayLayout.Override.RowSelectorAppearance = appearance288;
            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;
            appearance289.BackColor = System.Drawing.SystemColors.ControlLight;
            this.Grd_HCSendPlan.DisplayLayout.Override.TemplateAddRowAppearance = appearance289;
            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.btn_SendID);
            this.Pal_Edit.Controls.Add(this.Cmb_Txt_ListCodingTop);
            this.Pal_Edit.Controls.Add(this.Txt_Lodlist);
            this.Pal_Edit.Controls.Add(this.cmb_PrimerSupply);
            this.Pal_Edit.Controls.Add(this.cmb_PriMarName);
            this.Pal_Edit.Controls.Add(this.chk_Cb);
            this.Pal_Edit.Controls.Add(this.chk_Clear);
            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_MaterialNO);
            this.Pal_Edit.Controls.Add(this.ultraLabel17);
            this.Pal_Edit.Controls.Add(this.ultraLabel16);
            this.Pal_Edit.Controls.Add(this.ultraLabel15);
            this.Pal_Edit.Controls.Add(this.Chk_AutoMatch);
            this.Pal_Edit.Controls.Add(this.Txt_IncpName);
            this.Pal_Edit.Controls.Add(this.ultraLabel14);
            this.Pal_Edit.Controls.Add(this.Txt_Certificate);
            this.Pal_Edit.Controls.Add(this.ultraLabel13);
            this.Pal_Edit.Controls.Add(this.ultraLabel12);
            this.Pal_Edit.Controls.Add(this.Cmb_PLD);
            this.Pal_Edit.Controls.Add(this.Ops_SendType);
            this.Pal_Edit.Controls.Add(this.Chk_ForceSend);
            this.Pal_Edit.Controls.Add(this.Btn_GetListCoding);
            this.Pal_Edit.Controls.Add(this.Btn_SendBillet);
            this.Pal_Edit.Controls.Add(this.Btn_Add);
            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.Txt_ListCodingTop);
            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;
            // 
            // Cmb_Txt_ListCodingTop
            // 
            appearance174.BackColor = System.Drawing.Color.LightCyan;
            this.Cmb_Txt_ListCodingTop.Appearance = appearance174;
            this.Cmb_Txt_ListCodingTop.CalcManager = this.Calc_Manager;
            this.Cmb_Txt_ListCodingTop.CharacterCasing = System.Windows.Forms.CharacterCasing.Normal;
            appearance175.BackColor = System.Drawing.SystemColors.Window;
            appearance175.BorderColor = System.Drawing.SystemColors.InactiveCaption;
            this.Cmb_Txt_ListCodingTop.DisplayLayout.Appearance = appearance175;
            this.Cmb_Txt_ListCodingTop.DisplayLayout.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid;
            this.Cmb_Txt_ListCodingTop.DisplayLayout.CaptionVisible = Infragistics.Win.DefaultableBoolean.False;
            appearance176.BackColor = System.Drawing.SystemColors.ActiveBorder;
            appearance176.BackColor2 = System.Drawing.SystemColors.ControlDark;
            appearance176.BackGradientStyle = Infragistics.Win.GradientStyle.Vertical;
            appearance176.BorderColor = System.Drawing.SystemColors.Window;
            this.Cmb_Txt_ListCodingTop.DisplayLayout.GroupByBox.Appearance = appearance176;
            appearance177.ForeColor = System.Drawing.SystemColors.GrayText;
            this.Cmb_Txt_ListCodingTop.DisplayLayout.GroupByBox.BandLabelAppearance = appearance177;
            this.Cmb_Txt_ListCodingTop.DisplayLayout.GroupByBox.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid;
            appearance178.BackColor = System.Drawing.SystemColors.ControlLightLight;
            appearance178.BackColor2 = System.Drawing.SystemColors.Control;
            appearance178.BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal;
            appearance178.ForeColor = System.Drawing.SystemColors.GrayText;
            this.Cmb_Txt_ListCodingTop.DisplayLayout.GroupByBox.PromptAppearance = appearance178;
            this.Cmb_Txt_ListCodingTop.DisplayLayout.MaxColScrollRegions = 1;
            this.Cmb_Txt_ListCodingTop.DisplayLayout.MaxRowScrollRegions = 1;
            appearance179.BackColor = System.Drawing.SystemColors.Window;
            appearance179.ForeColor = System.Drawing.SystemColors.ControlText;
            this.Cmb_Txt_ListCodingTop.DisplayLayout.Override.ActiveCellAppearance = appearance179;
            appearance180.BackColor = System.Drawing.SystemColors.Highlight;
            appearance180.ForeColor = System.Drawing.SystemColors.HighlightText;
            this.Cmb_Txt_ListCodingTop.DisplayLayout.Override.ActiveRowAppearance = appearance180;
            this.Cmb_Txt_ListCodingTop.DisplayLayout.Override.BorderStyleCell = Infragistics.Win.UIElementBorderStyle.Dotted;
            this.Cmb_Txt_ListCodingTop.DisplayLayout.Override.BorderStyleRow = Infragistics.Win.UIElementBorderStyle.Dotted;
            appearance181.BackColor = System.Drawing.SystemColors.Window;
            this.Cmb_Txt_ListCodingTop.DisplayLayout.Override.CardAreaAppearance = appearance181;
            appearance182.BorderColor = System.Drawing.Color.Silver;
            appearance182.TextTrimming = Infragistics.Win.TextTrimming.EllipsisCharacter;
            this.Cmb_Txt_ListCodingTop.DisplayLayout.Override.CellAppearance = appearance182;
            this.Cmb_Txt_ListCodingTop.DisplayLayout.Override.CellClickAction = Infragistics.Win.UltraWinGrid.CellClickAction.EditAndSelectText;
            this.Cmb_Txt_ListCodingTop.DisplayLayout.Override.CellPadding = 0;
            appearance183.BackColor = System.Drawing.SystemColors.Control;
            appearance183.BackColor2 = System.Drawing.SystemColors.ControlDark;
            appearance183.BackGradientAlignment = Infragistics.Win.GradientAlignment.Element;
            appearance183.BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal;
            appearance183.BorderColor = System.Drawing.SystemColors.Window;
            this.Cmb_Txt_ListCodingTop.DisplayLayout.Override.GroupByRowAppearance = appearance183;
            appearance184.TextHAlign = Infragistics.Win.HAlign.Left;
            this.Cmb_Txt_ListCodingTop.DisplayLayout.Override.HeaderAppearance = appearance184;
            this.Cmb_Txt_ListCodingTop.DisplayLayout.Override.HeaderClickAction = Infragistics.Win.UltraWinGrid.HeaderClickAction.SortMulti;
            this.Cmb_Txt_ListCodingTop.DisplayLayout.Override.HeaderStyle = Infragistics.Win.HeaderStyle.WindowsXPCommand;
            appearance185.BackColor = System.Drawing.SystemColors.Window;
            appearance185.BorderColor = System.Drawing.Color.Silver;
            this.Cmb_Txt_ListCodingTop.DisplayLayout.Override.RowAppearance = appearance185;
            this.Cmb_Txt_ListCodingTop.DisplayLayout.Override.RowSelectors = Infragistics.Win.DefaultableBoolean.False;
            appearance186.BackColor = System.Drawing.SystemColors.ControlLight;
            this.Cmb_Txt_ListCodingTop.DisplayLayout.Override.TemplateAddRowAppearance = appearance186;
            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 = "";
            // 
            // Txt_Lodlist
            // 
            this.Txt_Lodlist.AutoSize = true;
            valueListItem7.DataValue = "0";
            valueListItem7.DisplayText = "X";
            valueListItem8.DataValue = "1";
            valueListItem8.DisplayText = "FN";
            this.Txt_Lodlist.Items.Add(valueListItem7);
            this.Txt_Lodlist.Items.Add(valueListItem8);
            this.Txt_Lodlist.Location = new System.Drawing.Point(1038, 4);
            this.Txt_Lodlist.Name = "Txt_Lodlist";
            this.Txt_Lodlist.Size = new System.Drawing.Size(42, 21);
            this.Txt_Lodlist.TabIndex = 64;
            this.Txt_Lodlist.Visible = false;
            // 
            // cmb_PrimerSupply
            // 
            this.cmb_PrimerSupply.CalcManager = this.Calc_Manager;
            this.cmb_PrimerSupply.CharacterCasing = System.Windows.Forms.CharacterCasing.Normal;
            appearance187.BackColor = System.Drawing.SystemColors.Window;
            appearance187.BorderColor = System.Drawing.SystemColors.InactiveCaption;
            this.cmb_PrimerSupply.DisplayLayout.Appearance = appearance187;
            this.cmb_PrimerSupply.DisplayLayout.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid;
            this.cmb_PrimerSupply.DisplayLayout.CaptionVisible = Infragistics.Win.DefaultableBoolean.False;
            appearance188.BackColor = System.Drawing.SystemColors.ActiveBorder;
            appearance188.BackColor2 = System.Drawing.SystemColors.ControlDark;
            appearance188.BackGradientStyle = Infragistics.Win.GradientStyle.Vertical;
            appearance188.BorderColor = System.Drawing.SystemColors.Window;
            this.cmb_PrimerSupply.DisplayLayout.GroupByBox.Appearance = appearance188;
            appearance189.ForeColor = System.Drawing.SystemColors.GrayText;
            this.cmb_PrimerSupply.DisplayLayout.GroupByBox.BandLabelAppearance = appearance189;
            this.cmb_PrimerSupply.DisplayLayout.GroupByBox.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid;
            appearance190.BackColor = System.Drawing.SystemColors.ControlLightLight;
            appearance190.BackColor2 = System.Drawing.SystemColors.Control;
            appearance190.BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal;
            appearance190.ForeColor = System.Drawing.SystemColors.GrayText;
            this.cmb_PrimerSupply.DisplayLayout.GroupByBox.PromptAppearance = appearance190;
            this.cmb_PrimerSupply.DisplayLayout.MaxColScrollRegions = 1;
            this.cmb_PrimerSupply.DisplayLayout.MaxRowScrollRegions = 1;
            appearance191.BackColor = System.Drawing.SystemColors.Window;
            appearance191.ForeColor = System.Drawing.SystemColors.ControlText;
            this.cmb_PrimerSupply.DisplayLayout.Override.ActiveCellAppearance = appearance191;
            appearance192.BackColor = System.Drawing.SystemColors.Highlight;
            appearance192.ForeColor = System.Drawing.SystemColors.HighlightText;
            this.cmb_PrimerSupply.DisplayLayout.Override.ActiveRowAppearance = appearance192;
            this.cmb_PrimerSupply.DisplayLayout.Override.BorderStyleCell = Infragistics.Win.UIElementBorderStyle.Dotted;
            this.cmb_PrimerSupply.DisplayLayout.Override.BorderStyleRow = Infragistics.Win.UIElementBorderStyle.Dotted;
            appearance193.BackColor = System.Drawing.SystemColors.Window;
            this.cmb_PrimerSupply.DisplayLayout.Override.CardAreaAppearance = appearance193;
            appearance194.BorderColor = System.Drawing.Color.Silver;
            appearance194.TextTrimming = Infragistics.Win.TextTrimming.EllipsisCharacter;
            this.cmb_PrimerSupply.DisplayLayout.Override.CellAppearance = appearance194;
            this.cmb_PrimerSupply.DisplayLayout.Override.CellClickAction = Infragistics.Win.UltraWinGrid.CellClickAction.EditAndSelectText;
            this.cmb_PrimerSupply.DisplayLayout.Override.CellPadding = 0;
            appearance195.BackColor = System.Drawing.SystemColors.Control;
            appearance195.BackColor2 = System.Drawing.SystemColors.ControlDark;
            appearance195.BackGradientAlignment = Infragistics.Win.GradientAlignment.Element;
            appearance195.BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal;
            appearance195.BorderColor = System.Drawing.SystemColors.Window;
            this.cmb_PrimerSupply.DisplayLayout.Override.GroupByRowAppearance = appearance195;
            appearance196.TextHAlign = Infragistics.Win.HAlign.Left;
            this.cmb_PrimerSupply.DisplayLayout.Override.HeaderAppearance = appearance196;
            this.cmb_PrimerSupply.DisplayLayout.Override.HeaderClickAction = Infragistics.Win.UltraWinGrid.HeaderClickAction.SortMulti;
            this.cmb_PrimerSupply.DisplayLayout.Override.HeaderStyle = Infragistics.Win.HeaderStyle.WindowsXPCommand;
            appearance197.BackColor = System.Drawing.SystemColors.Window;
            appearance197.BorderColor = System.Drawing.Color.Silver;
            this.cmb_PrimerSupply.DisplayLayout.Override.RowAppearance = appearance197;
            this.cmb_PrimerSupply.DisplayLayout.Override.RowSelectors = Infragistics.Win.DefaultableBoolean.False;
            appearance198.BackColor = System.Drawing.SystemColors.ControlLight;
            this.cmb_PrimerSupply.DisplayLayout.Override.TemplateAddRowAppearance = appearance198;
            this.cmb_PrimerSupply.DisplayLayout.ScrollBounds = Infragistics.Win.UltraWinGrid.ScrollBounds.ScrollToFill;
            this.cmb_PrimerSupply.DisplayLayout.ScrollStyle = Infragistics.Win.UltraWinGrid.ScrollStyle.Immediate;
            this.cmb_PrimerSupply.DisplayLayout.ViewStyleBand = Infragistics.Win.UltraWinGrid.ViewStyleBand.OutlookGroupBy;
            this.cmb_PrimerSupply.DisplayMember = "";
            this.cmb_PrimerSupply.Location = new System.Drawing.Point(628, 29);
            this.cmb_PrimerSupply.Name = "cmb_PrimerSupply";
            this.cmb_PrimerSupply.Size = new System.Drawing.Size(144, 21);
            this.cmb_PrimerSupply.TabIndex = 63;
            this.cmb_PrimerSupply.ValueMember = "";
            // 
            // cmb_PriMarName
            // 
            this.cmb_PriMarName.CalcManager = this.Calc_Manager;
            this.cmb_PriMarName.CharacterCasing = System.Windows.Forms.CharacterCasing.Normal;
            appearance199.BackColor = System.Drawing.SystemColors.Window;
            appearance199.BorderColor = System.Drawing.SystemColors.InactiveCaption;
            this.cmb_PriMarName.DisplayLayout.Appearance = appearance199;
            this.cmb_PriMarName.DisplayLayout.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid;
            this.cmb_PriMarName.DisplayLayout.CaptionVisible = Infragistics.Win.DefaultableBoolean.False;
            appearance200.BackColor = System.Drawing.SystemColors.ActiveBorder;
            appearance200.BackColor2 = System.Drawing.SystemColors.ControlDark;
            appearance200.BackGradientStyle = Infragistics.Win.GradientStyle.Vertical;
            appearance200.BorderColor = System.Drawing.SystemColors.Window;
            this.cmb_PriMarName.DisplayLayout.GroupByBox.Appearance = appearance200;
            appearance201.ForeColor = System.Drawing.SystemColors.GrayText;
            this.cmb_PriMarName.DisplayLayout.GroupByBox.BandLabelAppearance = appearance201;
            this.cmb_PriMarName.DisplayLayout.GroupByBox.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid;
            appearance202.BackColor = System.Drawing.SystemColors.ControlLightLight;
            appearance202.BackColor2 = System.Drawing.SystemColors.Control;
            appearance202.BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal;
            appearance202.ForeColor = System.Drawing.SystemColors.GrayText;
            this.cmb_PriMarName.DisplayLayout.GroupByBox.PromptAppearance = appearance202;
            this.cmb_PriMarName.DisplayLayout.MaxColScrollRegions = 1;
            this.cmb_PriMarName.DisplayLayout.MaxRowScrollRegions = 1;
            appearance203.BackColor = System.Drawing.SystemColors.Window;
            appearance203.ForeColor = System.Drawing.SystemColors.ControlText;
            this.cmb_PriMarName.DisplayLayout.Override.ActiveCellAppearance = appearance203;
            appearance204.BackColor = System.Drawing.SystemColors.Highlight;
            appearance204.ForeColor = System.Drawing.SystemColors.HighlightText;
            this.cmb_PriMarName.DisplayLayout.Override.ActiveRowAppearance = appearance204;
            this.cmb_PriMarName.DisplayLayout.Override.BorderStyleCell = Infragistics.Win.UIElementBorderStyle.Dotted;
            this.cmb_PriMarName.DisplayLayout.Override.BorderStyleRow = Infragistics.Win.UIElementBorderStyle.Dotted;
            appearance205.BackColor = System.Drawing.SystemColors.Window;
            this.cmb_PriMarName.DisplayLayout.Override.CardAreaAppearance = appearance205;
            appearance206.BorderColor = System.Drawing.Color.Silver;
            appearance206.TextTrimming = Infragistics.Win.TextTrimming.EllipsisCharacter;
            this.cmb_PriMarName.DisplayLayout.Override.CellAppearance = appearance206;
            this.cmb_PriMarName.DisplayLayout.Override.CellClickAction = Infragistics.Win.UltraWinGrid.CellClickAction.EditAndSelectText;
            this.cmb_PriMarName.DisplayLayout.Override.CellPadding = 0;
            appearance207.BackColor = System.Drawing.SystemColors.Control;
            appearance207.BackColor2 = System.Drawing.SystemColors.ControlDark;
            appearance207.BackGradientAlignment = Infragistics.Win.GradientAlignment.Element;
            appearance207.BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal;
            appearance207.BorderColor = System.Drawing.SystemColors.Window;
            this.cmb_PriMarName.DisplayLayout.Override.GroupByRowAppearance = appearance207;
            appearance208.TextHAlign = Infragistics.Win.HAlign.Left;
            this.cmb_PriMarName.DisplayLayout.Override.HeaderAppearance = appearance208;
            this.cmb_PriMarName.DisplayLayout.Override.HeaderClickAction = Infragistics.Win.UltraWinGrid.HeaderClickAction.SortMulti;
            this.cmb_PriMarName.DisplayLayout.Override.HeaderStyle = Infragistics.Win.HeaderStyle.WindowsXPCommand;
            appearance209.BackColor = System.Drawing.SystemColors.Window;
            appearance209.BorderColor = System.Drawing.Color.Silver;
            this.cmb_PriMarName.DisplayLayout.Override.RowAppearance = appearance209;
            this.cmb_PriMarName.DisplayLayout.Override.RowSelectors = Infragistics.Win.DefaultableBoolean.False;
            appearance210.BackColor = System.Drawing.SystemColors.ControlLight;
            this.cmb_PriMarName.DisplayLayout.Override.TemplateAddRowAppearance = appearance210;
            this.cmb_PriMarName.DisplayLayout.ScrollBounds = Infragistics.Win.UltraWinGrid.ScrollBounds.ScrollToFill;
            this.cmb_PriMarName.DisplayLayout.ScrollStyle = Infragistics.Win.UltraWinGrid.ScrollStyle.Immediate;
            this.cmb_PriMarName.DisplayLayout.ViewStyleBand = Infragistics.Win.UltraWinGrid.ViewStyleBand.OutlookGroupBy;
            this.cmb_PriMarName.DisplayMember = "";
            this.cmb_PriMarName.Location = new System.Drawing.Point(628, 3);
            this.cmb_PriMarName.Name = "cmb_PriMarName";
            this.cmb_PriMarName.Size = new System.Drawing.Size(144, 21);
            this.cmb_PriMarName.TabIndex = 63;
            this.cmb_PriMarName.ValueMember = "";
            // 
            // chk_Cb
            // 
            appearance211.BackColor = System.Drawing.Color.Red;
            this.chk_Cb.Appearance = appearance211;
            this.chk_Cb.FlatMode = true;
            this.chk_Cb.Location = new System.Drawing.Point(862, 76);
            this.chk_Cb.Name = "chk_Cb";
            this.chk_Cb.Size = new System.Drawing.Size(54, 16);
            this.chk_Cb.TabIndex = 62;
            this.chk_Cb.Text = "次板";
            // 
            // chk_Clear
            // 
            appearance212.BackColor = System.Drawing.Color.Red;
            this.chk_Clear.Appearance = appearance212;
            this.chk_Clear.FlatMode = true;
            this.chk_Clear.Location = new System.Drawing.Point(780, 76);
            this.chk_Clear.Name = "chk_Clear";
            this.chk_Clear.Size = new System.Drawing.Size(74, 16);
            this.chk_Clear.TabIndex = 61;
            this.chk_Clear.Text = "清库合同";
            this.chk_Clear.CheckedChanged += new System.EventHandler(this.chk_Clear_CheckedChanged);
            // 
            // 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;
            this.btn_NSendID.Click += new System.EventHandler(this.btn_NSendID_Click);
            // 
            // btn_Edit
            // 
            appearance213.BackColor = System.Drawing.Color.Red;
            this.btn_Edit.Appearance = appearance213;
            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
            // 
            appearance214.BackColor = System.Drawing.Color.LavenderBlush;
            this.Txt_SendPactNO.Appearance = appearance214;
            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_MaterialNO
            // 
            appearance215.BackColor = System.Drawing.Color.LavenderBlush;
            this.Txt_MaterialNO.Appearance = appearance215;
            this.Txt_MaterialNO.AutoSize = true;
            this.Txt_MaterialNO.FlatMode = true;
            this.Txt_MaterialNO.Location = new System.Drawing.Point(450, 4);
            this.Txt_MaterialNO.Name = "Txt_MaterialNO";
            this.Txt_MaterialNO.Size = new System.Drawing.Size(116, 19);
            this.Txt_MaterialNO.TabIndex = 14;
            this.Txt_MaterialNO.Enter += new System.EventHandler(this.Dte_SendTime_Enter);
            this.Txt_MaterialNO.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Dte_SendTime_KeyDown);
            // 
            // ultraLabel17
            // 
            this.ultraLabel17.BackColor = System.Drawing.Color.Transparent;
            this.ultraLabel17.Location = new System.Drawing.Point(394, 6);
            this.ultraLabel17.Name = "ultraLabel17";
            this.ultraLabel17.Size = new System.Drawing.Size(54, 16);
            this.ultraLabel17.TabIndex = 54;
            this.ultraLabel17.Text = "材料编号";
            // 
            // ultraLabel16
            // 
            this.ultraLabel16.BackColor = System.Drawing.Color.Transparent;
            this.ultraLabel16.Location = new System.Drawing.Point(572, 31);
            this.ultraLabel16.Name = "ultraLabel16";
            this.ultraLabel16.Size = new System.Drawing.Size(54, 16);
            this.ultraLabel16.TabIndex = 53;
            this.ultraLabel16.Text = "涂料供应";
            // 
            // ultraLabel15
            // 
            this.ultraLabel15.BackColor = System.Drawing.Color.Transparent;
            this.ultraLabel15.Location = new System.Drawing.Point(572, 7);
            this.ultraLabel15.Name = "ultraLabel15";
            this.ultraLabel15.Size = new System.Drawing.Size(54, 16);
            this.ultraLabel15.TabIndex = 51;
            this.ultraLabel15.Text = "涂料名称";
            // 
            // Chk_AutoMatch
            // 
            appearance216.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(128)))), ((int)(((byte)(255)))));
            this.Chk_AutoMatch.Appearance = appearance216;
            this.Chk_AutoMatch.FlatMode = true;
            this.Chk_AutoMatch.Location = new System.Drawing.Point(780, 52);
            this.Chk_AutoMatch.Name = "Chk_AutoMatch";
            this.Chk_AutoMatch.Size = new System.Drawing.Size(72, 16);
            this.Chk_AutoMatch.TabIndex = 50;
            this.Chk_AutoMatch.Text = "自动匹配";
            this.Chk_AutoMatch.CheckedChanged += new System.EventHandler(this.Chk_AutoMatch_CheckedChanged);
            // 
            // Txt_IncpName
            // 
            appearance217.BackColor = System.Drawing.Color.LavenderBlush;
            this.Txt_IncpName.Appearance = appearance217;
            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 = "订货单位";
            // 
            // Txt_Certificate
            // 
            appearance218.BackColor = System.Drawing.Color.LavenderBlush;
            this.Txt_Certificate.Appearance = appearance218;
            this.Txt_Certificate.AutoSize = true;
            this.Txt_Certificate.FlatMode = true;
            this.Txt_Certificate.Location = new System.Drawing.Point(628, 52);
            this.Txt_Certificate.Name = "Txt_Certificate";
            this.Txt_Certificate.Size = new System.Drawing.Size(144, 19);
            this.Txt_Certificate.TabIndex = 5;
            this.Txt_Certificate.Enter += new System.EventHandler(this.Dte_SendTime_Enter);
            this.Txt_Certificate.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Dte_SendTime_KeyDown);
            // 
            // ultraLabel13
            // 
            this.ultraLabel13.BackColor = System.Drawing.Color.Transparent;
            this.ultraLabel13.Location = new System.Drawing.Point(574, 56);
            this.ultraLabel13.Name = "ultraLabel13";
            this.ultraLabel13.Size = new System.Drawing.Size(54, 16);
            this.ultraLabel13.TabIndex = 46;
            this.ultraLabel13.Text = "质证书号";
            // 
            // ultraLabel12
            // 
            this.ultraLabel12.Location = new System.Drawing.Point(780, 30);
            this.ultraLabel12.Name = "ultraLabel12";
            this.ultraLabel12.Size = new System.Drawing.Size(54, 16);
            this.ultraLabel12.TabIndex = 45;
            this.ultraLabel12.Text = "转运单位";
            // 
            // Cmb_PLD
            // 
            appearance219.BackColor = System.Drawing.Color.LightCyan;
            this.Cmb_PLD.Appearance = appearance219;
            this.Cmb_PLD.CalcManager = this.Calc_Manager;
            this.Cmb_PLD.CharacterCasing = System.Windows.Forms.CharacterCasing.Normal;
            appearance220.BackColor = System.Drawing.SystemColors.Window;
            appearance220.BorderColor = System.Drawing.SystemColors.InactiveCaption;
            this.Cmb_PLD.DisplayLayout.Appearance = appearance220;
            this.Cmb_PLD.DisplayLayout.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid;
            this.Cmb_PLD.DisplayLayout.CaptionVisible = Infragistics.Win.DefaultableBoolean.False;
            appearance221.BackColor = System.Drawing.SystemColors.ActiveBorder;
            appearance221.BackColor2 = System.Drawing.SystemColors.ControlDark;
            appearance221.BackGradientStyle = Infragistics.Win.GradientStyle.Vertical;
            appearance221.BorderColor = System.Drawing.SystemColors.Window;
            this.Cmb_PLD.DisplayLayout.GroupByBox.Appearance = appearance221;
            appearance222.ForeColor = System.Drawing.SystemColors.GrayText;
            this.Cmb_PLD.DisplayLayout.GroupByBox.BandLabelAppearance = appearance222;
            this.Cmb_PLD.DisplayLayout.GroupByBox.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid;
            appearance223.BackColor = System.Drawing.SystemColors.ControlLightLight;
            appearance223.BackColor2 = System.Drawing.SystemColors.Control;
            appearance223.BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal;
            appearance223.ForeColor = System.Drawing.SystemColors.GrayText;
            this.Cmb_PLD.DisplayLayout.GroupByBox.PromptAppearance = appearance223;
            this.Cmb_PLD.DisplayLayout.MaxColScrollRegions = 1;
            this.Cmb_PLD.DisplayLayout.MaxRowScrollRegions = 1;
            appearance224.BackColor = System.Drawing.SystemColors.Window;
            appearance224.ForeColor = System.Drawing.SystemColors.ControlText;
            this.Cmb_PLD.DisplayLayout.Override.ActiveCellAppearance = appearance224;
            appearance225.BackColor = System.Drawing.SystemColors.Highlight;
            appearance225.ForeColor = System.Drawing.SystemColors.HighlightText;
            this.Cmb_PLD.DisplayLayout.Override.ActiveRowAppearance = appearance225;
            this.Cmb_PLD.DisplayLayout.Override.BorderStyleCell = Infragistics.Win.UIElementBorderStyle.Dotted;
            this.Cmb_PLD.DisplayLayout.Override.BorderStyleRow = Infragistics.Win.UIElementBorderStyle.Dotted;
            appearance226.BackColor = System.Drawing.SystemColors.Window;
            this.Cmb_PLD.DisplayLayout.Override.CardAreaAppearance = appearance226;
            appearance227.BorderColor = System.Drawing.Color.Silver;
            appearance227.TextTrimming = Infragistics.Win.TextTrimming.EllipsisCharacter;
            this.Cmb_PLD.DisplayLayout.Override.CellAppearance = appearance227;
            this.Cmb_PLD.DisplayLayout.Override.CellClickAction = Infragistics.Win.UltraWinGrid.CellClickAction.EditAndSelectText;
            this.Cmb_PLD.DisplayLayout.Override.CellPadding = 0;
            appearance228.BackColor = System.Drawing.SystemColors.Control;
            appearance228.BackColor2 = System.Drawing.SystemColors.ControlDark;
            appearance228.BackGradientAlignment = Infragistics.Win.GradientAlignment.Element;
            appearance228.BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal;
            appearance228.BorderColor = System.Drawing.SystemColors.Window;
            this.Cmb_PLD.DisplayLayout.Override.GroupByRowAppearance = appearance228;
            appearance229.TextHAlign = Infragistics.Win.HAlign.Left;
            this.Cmb_PLD.DisplayLayout.Override.HeaderAppearance = appearance229;
            this.Cmb_PLD.DisplayLayout.Override.HeaderClickAction = Infragistics.Win.UltraWinGrid.HeaderClickAction.SortMulti;
            this.Cmb_PLD.DisplayLayout.Override.HeaderStyle = Infragistics.Win.HeaderStyle.WindowsXPCommand;
            appearance230.BackColor = System.Drawing.SystemColors.Window;
            appearance230.BorderColor = System.Drawing.Color.Silver;
            this.Cmb_PLD.DisplayLayout.Override.RowAppearance = appearance230;
            this.Cmb_PLD.DisplayLayout.Override.RowSelectors = Infragistics.Win.DefaultableBoolean.False;
            appearance231.BackColor = System.Drawing.SystemColors.ControlLight;
            this.Cmb_PLD.DisplayLayout.Override.TemplateAddRowAppearance = appearance231;
            this.Cmb_PLD.DisplayLayout.ScrollBounds = Infragistics.Win.UltraWinGrid.ScrollBounds.ScrollToFill;
            this.Cmb_PLD.DisplayLayout.ScrollStyle = Infragistics.Win.UltraWinGrid.ScrollStyle.Immediate;
            this.Cmb_PLD.DisplayLayout.ViewStyleBand = Infragistics.Win.UltraWinGrid.ViewStyleBand.OutlookGroupBy;
            this.Cmb_PLD.DisplayMember = "";
            this.Cmb_PLD.DropDownStyle = Infragistics.Win.UltraWinGrid.UltraComboStyle.DropDownList;
            this.Cmb_PLD.FlatMode = true;
            this.Cmb_PLD.Location = new System.Drawing.Point(836, 28);
            this.Cmb_PLD.Name = "Cmb_PLD";
            this.Cmb_PLD.Size = new System.Drawing.Size(98, 19);
            this.Cmb_PLD.TabIndex = 44;
            this.Cmb_PLD.ValueMember = "";
            // 
            // Ops_SendType
            // 
            this.Ops_SendType.BackColor = System.Drawing.Color.Transparent;
            this.Ops_SendType.CheckedIndex = 0;
            this.Ops_SendType.FlatMode = true;
            this.Ops_SendType.ItemAppearance = appearance232;
            valueListItem9.DataValue = "0";
            valueListItem9.DisplayText = "正常发运";
            valueListItem10.DataValue = "1";
            valueListItem10.DisplayText = "内部转运";
            this.Ops_SendType.Items.Add(valueListItem9);
            this.Ops_SendType.Items.Add(valueListItem10);
            this.Ops_SendType.Location = new System.Drawing.Point(780, 7);
            this.Ops_SendType.Name = "Ops_SendType";
            this.Ops_SendType.Size = new System.Drawing.Size(152, 18);
            this.Ops_SendType.TabIndex = 43;
            this.Ops_SendType.Text = "正常发运";
            this.Ops_SendType.ValueChanged += new System.EventHandler(this.Ops_SendType_ValueChanged);
            // 
            // Chk_ForceSend
            // 
            appearance233.BackColor = System.Drawing.Color.Red;
            this.Chk_ForceSend.Appearance = appearance233;
            this.Chk_ForceSend.FlatMode = true;
            this.Chk_ForceSend.Location = new System.Drawing.Point(862, 52);
            this.Chk_ForceSend.Name = "Chk_ForceSend";
            this.Chk_ForceSend.Size = new System.Drawing.Size(72, 16);
            this.Chk_ForceSend.TabIndex = 42;
            this.Chk_ForceSend.Text = "强行发运";
            this.Chk_ForceSend.CheckedChanged += new System.EventHandler(this.Chk_ForceSend_CheckedChanged);
            // 
            // 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.Visible = false;
            this.Btn_GetListCoding.Click += new System.EventHandler(this.Btn_GetListCoding_Click);
            // 
            // Btn_SendBillet
            // 
            this.Btn_SendBillet.Location = new System.Drawing.Point(940, 44);
            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);
            // 
            // Btn_Add
            // 
            appearance234.ForeColor = System.Drawing.Color.Red;
            this.Btn_Add.Appearance = appearance234;
            this.Btn_Add.Location = new System.Drawing.Point(940, 70);
            this.Btn_Add.Name = "Btn_Add";
            this.Btn_Add.Size = new System.Drawing.Size(72, 24);
            this.Btn_Add.TabIndex = 16;
            this.Btn_Add.Text = "整吊登记";
            this.Btn_Add.Click += new System.EventHandler(this.Btn_Add_Click);
            // 
            // Txt_Billet
            // 
            appearance235.BackColor = System.Drawing.Color.LightCyan;
            this.Txt_Billet.Appearance = appearance235;
            this.Txt_Billet.AutoSize = true;
            this.Txt_Billet.FlatMode = true;
            this.Txt_Billet.Location = new System.Drawing.Point(450, 52);
            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, 54);
            this.ultraLabel9.Name = "ultraLabel9";
            this.ultraLabel9.Size = new System.Drawing.Size(54, 16);
            this.ultraLabel9.TabIndex = 19;
            this.ultraLabel9.Text = "发运序号";
            // 
            // Txt_Condole
            // 
            appearance236.BackColor = System.Drawing.Color.LightCyan;
            this.Txt_Condole.Appearance = appearance236;
            this.Txt_Condole.AutoSize = true;
            this.Txt_Condole.FlatMode = true;
            this.Txt_Condole.Location = new System.Drawing.Point(450, 28);
            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, 30);
            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
            // 
            appearance237.BackColor = System.Drawing.Color.LightCyan;
            this.Dte_SendTime.Appearance = appearance237;
            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, 74);
            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, 76);
            this.ultraLabel8.Name = "ultraLabel8";
            this.ultraLabel8.Size = new System.Drawing.Size(54, 16);
            this.ultraLabel8.TabIndex = 15;
            this.ultraLabel8.Text = "发运时间";
            // 
            // Txt_Remark
            // 
            appearance238.BackColor = System.Drawing.Color.LightCyan;
            this.Txt_Remark.Appearance = appearance238;
            this.Txt_Remark.AutoSize = true;
            this.Txt_Remark.FlatMode = true;
            this.Txt_Remark.Location = new System.Drawing.Point(628, 75);
            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(574, 78);
            this.ultraLabel19.Name = "ultraLabel19";
            this.ultraLabel19.Size = new System.Drawing.Size(54, 16);
            this.ultraLabel19.TabIndex = 13;
            this.ultraLabel19.Text = "发运备注";
            // 
            // Txt_ListCodingTop
            // 
            appearance239.BackColor = System.Drawing.Color.LightCyan;
            this.Txt_ListCodingTop.Appearance = appearance239;
            this.Txt_ListCodingTop.AutoSize = true;
            this.Txt_ListCodingTop.FlatMode = true;
            this.Txt_ListCodingTop.Location = new System.Drawing.Point(1049, 50);
            this.Txt_ListCodingTop.Name = "Txt_ListCodingTop";
            this.Txt_ListCodingTop.Size = new System.Drawing.Size(42, 19);
            this.Txt_ListCodingTop.TabIndex = 3;
            this.Txt_ListCodingTop.Text = "FN7";
            this.Txt_ListCodingTop.Visible = false;
            this.Txt_ListCodingTop.Enter += new System.EventHandler(this.Dte_SendTime_Enter);
            this.Txt_ListCodingTop.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Dte_SendTime_KeyDown);
            // 
            // Cmb_ClassTeam
            // 
            appearance240.BackColor = System.Drawing.Color.LightCyan;
            this.Cmb_ClassTeam.Appearance = appearance240;
            this.Cmb_ClassTeam.CalcManager = this.Calc_Manager;
            this.Cmb_ClassTeam.CharacterCasing = System.Windows.Forms.CharacterCasing.Normal;
            appearance241.BackColor = System.Drawing.SystemColors.Window;
            appearance241.BorderColor = System.Drawing.SystemColors.InactiveCaption;
            this.Cmb_ClassTeam.DisplayLayout.Appearance = appearance241;
            this.Cmb_ClassTeam.DisplayLayout.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid;
            this.Cmb_ClassTeam.DisplayLayout.CaptionVisible = Infragistics.Win.DefaultableBoolean.False;
            appearance242.BackColor = System.Drawing.SystemColors.ActiveBorder;
            appearance242.BackColor2 = System.Drawing.SystemColors.ControlDark;
            appearance242.BackGradientStyle = Infragistics.Win.GradientStyle.Vertical;
            appearance242.BorderColor = System.Drawing.SystemColors.Window;
            this.Cmb_ClassTeam.DisplayLayout.GroupByBox.Appearance = appearance242;
            appearance243.ForeColor = System.Drawing.SystemColors.GrayText;
            this.Cmb_ClassTeam.DisplayLayout.GroupByBox.BandLabelAppearance = appearance243;
            this.Cmb_ClassTeam.DisplayLayout.GroupByBox.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid;
            appearance244.BackColor = System.Drawing.SystemColors.ControlLightLight;
            appearance244.BackColor2 = System.Drawing.SystemColors.Control;
            appearance244.BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal;
            appearance244.ForeColor = System.Drawing.SystemColors.GrayText;
            this.Cmb_ClassTeam.DisplayLayout.GroupByBox.PromptAppearance = appearance244;
            this.Cmb_ClassTeam.DisplayLayout.MaxColScrollRegions = 1;
            this.Cmb_ClassTeam.DisplayLayout.MaxRowScrollRegions = 1;
            appearance245.BackColor = System.Drawing.SystemColors.Window;
            appearance245.ForeColor = System.Drawing.SystemColors.ControlText;
            this.Cmb_ClassTeam.DisplayLayout.Override.ActiveCellAppearance = appearance245;
            appearance246.BackColor = System.Drawing.SystemColors.Highlight;
            appearance246.ForeColor = System.Drawing.SystemColors.HighlightText;
            this.Cmb_ClassTeam.DisplayLayout.Override.ActiveRowAppearance = appearance246;
            this.Cmb_ClassTeam.DisplayLayout.Override.BorderStyleCell = Infragistics.Win.UIElementBorderStyle.Dotted;
            this.Cmb_ClassTeam.DisplayLayout.Override.BorderStyleRow = Infragistics.Win.UIElementBorderStyle.Dotted;
            appearance247.BackColor = System.Drawing.SystemColors.Window;
            this.Cmb_ClassTeam.DisplayLayout.Override.CardAreaAppearance = appearance247;
            appearance248.BorderColor = System.Drawing.Color.Silver;
            appearance248.TextTrimming = Infragistics.Win.TextTrimming.EllipsisCharacter;
            this.Cmb_ClassTeam.DisplayLayout.Override.CellAppearance = appearance248;
            this.Cmb_ClassTeam.DisplayLayout.Override.CellClickAction = Infragistics.Win.UltraWinGrid.CellClickAction.EditAndSelectText;
            this.Cmb_ClassTeam.DisplayLayout.Override.CellPadding = 0;
            appearance249.BackColor = System.Drawing.SystemColors.Control;
            appearance249.BackColor2 = System.Drawing.SystemColors.ControlDark;
            appearance249.BackGradientAlignment = Infragistics.Win.GradientAlignment.Element;
            appearance249.BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal;
            appearance249.BorderColor = System.Drawing.SystemColors.Window;
            this.Cmb_ClassTeam.DisplayLayout.Override.GroupByRowAppearance = appearance249;
            appearance250.TextHAlign = Infragistics.Win.HAlign.Left;
            this.Cmb_ClassTeam.DisplayLayout.Override.HeaderAppearance = appearance250;
            this.Cmb_ClassTeam.DisplayLayout.Override.HeaderClickAction = Infragistics.Win.UltraWinGrid.HeaderClickAction.SortMulti;
            this.Cmb_ClassTeam.DisplayLayout.Override.HeaderStyle = Infragistics.Win.HeaderStyle.WindowsXPCommand;
            appearance251.BackColor = System.Drawing.SystemColors.Window;
            appearance251.BorderColor = System.Drawing.Color.Silver;
            this.Cmb_ClassTeam.DisplayLayout.Override.RowAppearance = appearance251;
            this.Cmb_ClassTeam.DisplayLayout.Override.RowSelectors = Infragistics.Win.DefaultableBoolean.False;
            appearance252.BackColor = System.Drawing.SystemColors.ControlLight;
            this.Cmb_ClassTeam.DisplayLayout.Override.TemplateAddRowAppearance = appearance252;
            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
            // 
            appearance253.BackColor = System.Drawing.Color.LightCyan;
            this.Cmb_ClassOrder.Appearance = appearance253;
            this.Cmb_ClassOrder.CalcManager = this.Calc_Manager;
            this.Cmb_ClassOrder.CharacterCasing = System.Windows.Forms.CharacterCasing.Normal;
            appearance254.BackColor = System.Drawing.SystemColors.Window;
            appearance254.BorderColor = System.Drawing.SystemColors.InactiveCaption;
            this.Cmb_ClassOrder.DisplayLayout.Appearance = appearance254;
            this.Cmb_ClassOrder.DisplayLayout.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid;
            this.Cmb_ClassOrder.DisplayLayout.CaptionVisible = Infragistics.Win.DefaultableBoolean.False;
            appearance255.BackColor = System.Drawing.SystemColors.ActiveBorder;
            appearance255.BackColor2 = System.Drawing.SystemColors.ControlDark;
            appearance255.BackGradientStyle = Infragistics.Win.GradientStyle.Vertical;
            appearance255.BorderColor = System.Drawing.SystemColors.Window;
            this.Cmb_ClassOrder.DisplayLayout.GroupByBox.Appearance = appearance255;
            appearance256.ForeColor = System.Drawing.SystemColors.GrayText;
            this.Cmb_ClassOrder.DisplayLayout.GroupByBox.BandLabelAppearance = appearance256;
            this.Cmb_ClassOrder.DisplayLayout.GroupByBox.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid;
            appearance257.BackColor = System.Drawing.SystemColors.ControlLightLight;
            appearance257.BackColor2 = System.Drawing.SystemColors.Control;
            appearance257.BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal;
            appearance257.ForeColor = System.Drawing.SystemColors.GrayText;
            this.Cmb_ClassOrder.DisplayLayout.GroupByBox.PromptAppearance = appearance257;
            this.Cmb_ClassOrder.DisplayLayout.MaxColScrollRegions = 1;
            this.Cmb_ClassOrder.DisplayLayout.MaxRowScrollRegions = 1;
            appearance258.BackColor = System.Drawing.SystemColors.Window;
            appearance258.ForeColor = System.Drawing.SystemColors.ControlText;
            this.Cmb_ClassOrder.DisplayLayout.Override.ActiveCellAppearance = appearance258;
            appearance259.BackColor = System.Drawing.SystemColors.Highlight;
            appearance259.ForeColor = System.Drawing.SystemColors.HighlightText;
            this.Cmb_ClassOrder.DisplayLayout.Override.ActiveRowAppearance = appearance259;
            this.Cmb_ClassOrder.DisplayLayout.Override.BorderStyleCell = Infragistics.Win.UIElementBorderStyle.Dotted;
            this.Cmb_ClassOrder.DisplayLayout.Override.BorderStyleRow = Infragistics.Win.UIElementBorderStyle.Dotted;
            appearance260.BackColor = System.Drawing.SystemColors.Window;
            this.Cmb_ClassOrder.DisplayLayout.Override.CardAreaAppearance = appearance260;
            appearance261.BorderColor = System.Drawing.Color.Silver;
            appearance261.TextTrimming = Infragistics.Win.TextTrimming.EllipsisCharacter;
            this.Cmb_ClassOrder.DisplayLayout.Override.CellAppearance = appearance261;
            this.Cmb_ClassOrder.DisplayLayout.Override.CellClickAction = Infragistics.Win.UltraWinGrid.CellClickAction.EditAndSelectText;
            this.Cmb_ClassOrder.DisplayLayout.Override.CellPadding = 0;
            appearance262.BackColor = System.Drawing.SystemColors.Control;
            appearance262.BackColor2 = System.Drawing.SystemColors.ControlDark;
            appearance262.BackGradientAlignment = Infragistics.Win.GradientAlignment.Element;
            appearance262.BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal;
            appearance262.BorderColor = System.Drawing.SystemColors.Window;
            this.Cmb_ClassOrder.DisplayLayout.Override.GroupByRowAppearance = appearance262;
            appearance263.TextHAlign = Infragistics.Win.HAlign.Left;
            this.Cmb_ClassOrder.DisplayLayout.Override.HeaderAppearance = appearance263;
            this.Cmb_ClassOrder.DisplayLayout.Override.HeaderClickAction = Infragistics.Win.UltraWinGrid.HeaderClickAction.SortMulti;
            this.Cmb_ClassOrder.DisplayLayout.Override.HeaderStyle = Infragistics.Win.HeaderStyle.WindowsXPCommand;
            appearance264.BackColor = System.Drawing.SystemColors.Window;
            appearance264.BorderColor = System.Drawing.Color.Silver;
            this.Cmb_ClassOrder.DisplayLayout.Override.RowAppearance = appearance264;
            this.Cmb_ClassOrder.DisplayLayout.Override.RowSelectors = Infragistics.Win.DefaultableBoolean.False;
            appearance265.BackColor = System.Drawing.SystemColors.ControlLight;
            this.Cmb_ClassOrder.DisplayLayout.Override.TemplateAddRowAppearance = appearance265;
            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
            // 
            appearance266.BackColor = System.Drawing.Color.LightCyan;
            this.Cmb_SendMan.Appearance = appearance266;
            this.Cmb_SendMan.CalcManager = this.Calc_Manager;
            this.Cmb_SendMan.CharacterCasing = System.Windows.Forms.CharacterCasing.Normal;
            appearance267.BackColor = System.Drawing.SystemColors.Window;
            appearance267.BorderColor = System.Drawing.SystemColors.InactiveCaption;
            this.Cmb_SendMan.DisplayLayout.Appearance = appearance267;
            this.Cmb_SendMan.DisplayLayout.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid;
            this.Cmb_SendMan.DisplayLayout.CaptionVisible = Infragistics.Win.DefaultableBoolean.False;
            appearance268.BackColor = System.Drawing.SystemColors.ActiveBorder;
            appearance268.BackColor2 = System.Drawing.SystemColors.ControlDark;
            appearance268.BackGradientStyle = Infragistics.Win.GradientStyle.Vertical;
            appearance268.BorderColor = System.Drawing.SystemColors.Window;
            this.Cmb_SendMan.DisplayLayout.GroupByBox.Appearance = appearance268;
            appearance269.ForeColor = System.Drawing.SystemColors.GrayText;
            this.Cmb_SendMan.DisplayLayout.GroupByBox.BandLabelAppearance = appearance269;
            this.Cmb_SendMan.DisplayLayout.GroupByBox.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid;
            appearance270.BackColor = System.Drawing.SystemColors.ControlLightLight;
            appearance270.BackColor2 = System.Drawing.SystemColors.Control;
            appearance270.BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal;
            appearance270.ForeColor = System.Drawing.SystemColors.GrayText;
            this.Cmb_SendMan.DisplayLayout.GroupByBox.PromptAppearance = appearance270;
            this.Cmb_SendMan.DisplayLayout.MaxColScrollRegions = 1;
            this.Cmb_SendMan.DisplayLayout.MaxRowScrollRegions = 1;
            appearance271.BackColor = System.Drawing.SystemColors.Window;
            appearance271.ForeColor = System.Drawing.SystemColors.ControlText;
            this.Cmb_SendMan.DisplayLayout.Override.ActiveCellAppearance = appearance271;
            appearance272.BackColor = System.Drawing.SystemColors.Highlight;
            appearance272.ForeColor = System.Drawing.SystemColors.HighlightText;
            this.Cmb_SendMan.DisplayLayout.Override.ActiveRowAppearance = appearance272;
            this.Cmb_SendMan.DisplayLayout.Override.BorderStyleCell = Infragistics.Win.UIElementBorderStyle.Dotted;
            this.Cmb_SendMan.DisplayLayout.Override.BorderStyleRow = Infragistics.Win.UIElementBorderStyle.Dotted;
            appearance273.BackColor = System.Drawing.SystemColors.Window;
            this.Cmb_SendMan.DisplayLayout.Override.CardAreaAppearance = appearance273;
            appearance274.BorderColor = System.Drawing.Color.Silver;
            appearance274.TextTrimming = Infragistics.Win.TextTrimming.EllipsisCharacter;
            this.Cmb_SendMan.DisplayLayout.Override.CellAppearance = appearance274;
            this.Cmb_SendMan.DisplayLayout.Override.CellClickAction = Infragistics.Win.UltraWinGrid.CellClickAction.EditAndSelectText;
            this.Cmb_SendMan.DisplayLayout.Override.CellPadding = 0;
            appearance275.BackColor = System.Drawing.SystemColors.Control;
            appearance275.BackColor2 = System.Drawing.SystemColors.ControlDark;
            appearance275.BackGradientAlignment = Infragistics.Win.GradientAlignment.Element;
            appearance275.BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal;
            appearance275.BorderColor = System.Drawing.SystemColors.Window;
            this.Cmb_SendMan.DisplayLayout.Override.GroupByRowAppearance = appearance275;
            appearance276.TextHAlign = Infragistics.Win.HAlign.Left;
            this.Cmb_SendMan.DisplayLayout.Override.HeaderAppearance = appearance276;
            this.Cmb_SendMan.DisplayLayout.Override.HeaderClickAction = Infragistics.Win.UltraWinGrid.HeaderClickAction.SortMulti;
            this.Cmb_SendMan.DisplayLayout.Override.HeaderStyle = Infragistics.Win.HeaderStyle.WindowsXPCommand;
            appearance277.BackColor = System.Drawing.SystemColors.Window;
            appearance277.BorderColor = System.Drawing.Color.Silver;
            this.Cmb_SendMan.DisplayLayout.Override.RowAppearance = appearance277;
            this.Cmb_SendMan.DisplayLayout.Override.RowSelectors = Infragistics.Win.DefaultableBoolean.False;
            appearance278.BackColor = System.Drawing.SystemColors.ControlLight;
            this.Cmb_SendMan.DisplayLayout.Override.TemplateAddRowAppearance = appearance278;
            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
            // 
            appearance279.BackColor = System.Drawing.Color.LightCyan;
            this.Txt_ListCoding.Appearance = appearance279;
            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
            // 
            appearance280.BackColor = System.Drawing.Color.LightCyan;
            this.Txt_VecihleNO.Appearance = appearance280;
            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
            // 
            appearance281.BackColor = System.Drawing.Color.LightCyan;
            this.Txt_AskPlan.Appearance = appearance281;
            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;
            ultraTab5.Key = "STORAGE";
            ultraTab5.TabPage = this.ultraTabPageControl1;
            ultraTab5.Text = "可发信息";
            ultraTab6.Key = "SEND";
            ultraTab6.TabPage = this.ultraTabPageControl2;
            ultraTab6.Text = "已发信息";
            ultraTab7.Key = "HBSEND";
            ultraTab7.TabPage = this.ultraTabPageControl3;
            ultraTab7.Text = "厚板发运信息";
            ultraTab7.Visible = false;
            ultraTab8.Key = "ZBSEND";
            ultraTab8.TabPage = this.ultraTabPageControl4;
            ultraTab8.Text = "中板发运信息";
            ultraTab8.Visible = false;
            this.Tab_Match.Tabs.AddRange(new Infragistics.Win.UltraWinTabControl.UltraTab[] {
            ultraTab5,
            ultraTab6,
            ultraTab7,
            ultraTab8});
            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
            // 
            appearance322.BackColor = System.Drawing.Color.LightCyan;
            this.Dte_EndTime.Appearance = appearance322;
            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
            // 
            appearance323.BackColor = System.Drawing.Color.LightCyan;
            this.Dte_BeginTime.Appearance = appearance323;
            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_IncepName
            // 
            appearance324.BackColor = System.Drawing.Color.LightCyan;
            this.Txt_IncepName.Appearance = appearance324;
            this.Txt_IncepName.AutoSize = true;
            this.Txt_IncepName.Enabled = false;
            this.Txt_IncepName.FlatMode = true;
            this.Txt_IncepName.Location = new System.Drawing.Point(236, 6);
            this.Txt_IncepName.Name = "Txt_IncepName";
            this.Txt_IncepName.Size = new System.Drawing.Size(98, 19);
            this.Txt_IncepName.TabIndex = 71;
            this.Txt_IncepName.Tag = "";
            // 
            // Chk_IncpName
            // 
            this.Chk_IncpName.FlatMode = true;
            this.Chk_IncpName.Location = new System.Drawing.Point(188, 8);
            this.Chk_IncpName.Name = "Chk_IncpName";
            this.Chk_IncpName.Size = new System.Drawing.Size(46, 14);
            this.Chk_IncpName.TabIndex = 70;
            this.Chk_IncpName.Text = "单位";
            this.Chk_IncpName.CheckedChanged += new System.EventHandler(this.Chk_IncpName_CheckedChanged);
            // 
            // Txt_Station
            // 
            appearance325.BackColor = System.Drawing.Color.LightCyan;
            this.Txt_Station.Appearance = appearance325;
            this.Txt_Station.AutoSize = true;
            this.Txt_Station.Enabled = false;
            this.Txt_Station.FlatMode = true;
            this.Txt_Station.Location = new System.Drawing.Point(236, 28);
            this.Txt_Station.Name = "Txt_Station";
            this.Txt_Station.Size = new System.Drawing.Size(98, 19);
            this.Txt_Station.TabIndex = 74;
            this.Txt_Station.Tag = "";
            // 
            // Chk_Station
            // 
            this.Chk_Station.FlatMode = true;
            this.Chk_Station.Location = new System.Drawing.Point(188, 30);
            this.Chk_Station.Name = "Chk_Station";
            this.Chk_Station.Size = new System.Drawing.Size(46, 14);
            this.Chk_Station.TabIndex = 73;
            this.Chk_Station.Tag = "";
            this.Chk_Station.Text = "到站";
            this.Chk_Station.CheckedChanged += new System.EventHandler(this.Chk_Station_CheckedChanged);
            // 
            // Txt_PactNO
            // 
            appearance326.BackColor = System.Drawing.Color.LightCyan;
            this.Txt_PactNO.Appearance = appearance326;
            this.Txt_PactNO.AutoSize = true;
            this.Txt_PactNO.Enabled = false;
            this.Txt_PactNO.FlatMode = true;
            this.Txt_PactNO.Location = new System.Drawing.Point(412, 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(350, 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
            // 
            appearance327.BackColor = System.Drawing.Color.LightCyan;
            this.Txt_PlanNO.Appearance = appearance327;
            this.Txt_PlanNO.AutoSize = true;
            this.Txt_PlanNO.Enabled = false;
            this.Txt_PlanNO.FlatMode = true;
            this.Txt_PlanNO.Location = new System.Drawing.Point(412, 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(350, 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
            // 
            appearance328.BackColor = System.Drawing.Color.LightCyan;
            this.txt_AskPlanID.Appearance = appearance328;
            this.txt_AskPlanID.AutoSize = true;
            this.txt_AskPlanID.Enabled = false;
            this.txt_AskPlanID.FlatMode = true;
            this.txt_AskPlanID.Location = new System.Drawing.Point(586, 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(524, 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
            // 
            appearance329.BackColor = System.Drawing.Color.LightCyan;
            this.txt_ListCode.Appearance = appearance329;
            this.txt_ListCode.AutoSize = true;
            this.txt_ListCode.Enabled = false;
            this.txt_ListCode.FlatMode = true;
            this.txt_ListCode.Location = new System.Drawing.Point(586, 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(524, 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
            // 
            appearance330.BackColor = System.Drawing.Color.LightCyan;
            this.txt_RollNOEnd.Appearance = appearance330;
            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
            // 
            appearance331.BackColor = System.Drawing.Color.LightCyan;
            this.txt_RollNOBegin.Appearance = appearance331;
            this.txt_RollNOBegin.AutoSize = true;
            this.txt_RollNOBegin.Enabled = false;
            this.txt_RollNOBegin.FlatMode = true;
            this.txt_RollNOBegin.Location = new System.Drawing.Point(757, 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;
            // 
            // txt_RollNOTop
            // 
            appearance332.BackColor = System.Drawing.Color.LightCyan;
            this.txt_RollNOTop.Appearance = appearance332;
            this.txt_RollNOTop.AutoSize = true;
            this.txt_RollNOTop.Enabled = false;
            this.txt_RollNOTop.FlatMode = true;
            this.txt_RollNOTop.Location = new System.Drawing.Point(1125, 6);
            this.txt_RollNOTop.Name = "txt_RollNOTop";
            this.txt_RollNOTop.Size = new System.Drawing.Size(22, 19);
            this.txt_RollNOTop.TabIndex = 94;
            this.txt_RollNOTop.Text = "Z7";
            this.txt_RollNOTop.Visible = false;
            // 
            // chk_RollNO
            // 
            this.chk_RollNO.FlatMode = true;
            this.chk_RollNO.Location = new System.Drawing.Point(700, 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);
            // 
            // ultraLabel11
            // 
            appearance333.TextVAlign = Infragistics.Win.VAlign.Middle;
            this.ultraLabel11.Appearance = appearance333;
            this.ultraLabel11.BackColor = System.Drawing.Color.Red;
            this.ultraLabel11.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.ultraLabel11.Location = new System.Drawing.Point(1033, 26);
            this.ultraLabel11.Name = "ultraLabel11";
            this.ultraLabel11.Size = new System.Drawing.Size(174, 20);
            this.ultraLabel11.TabIndex = 98;
            this.ultraLabel11.Text = "颜色表示不满足交货需求";
            // 
            // chk_BJB
            // 
            this.chk_BJB.FlatMode = true;
            this.chk_BJB.Location = new System.Drawing.Point(1019, 5);
            this.chk_BJB.Name = "chk_BJB";
            this.chk_BJB.Size = new System.Drawing.Size(100, 14);
            this.chk_BJB.TabIndex = 99;
            this.chk_BJB.Text = "是否清库";
            // 
            // chk_Print
            // 
            this.chk_Print.FlatMode = true;
            this.chk_Print.Location = new System.Drawing.Point(893, 32);
            this.chk_Print.Name = "chk_Print";
            this.chk_Print.Size = new System.Drawing.Size(100, 14);
            this.chk_Print.TabIndex = 100;
            this.chk_Print.Text = "是否销售下车";
            // 
            // chk_AllowFilter
            // 
            this.chk_AllowFilter.Location = new System.Drawing.Point(988, 30);
            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);
            // 
            // Cmb_SendType
            // 
            this.Cmb_SendType.AutoSize = true;
            this.Cmb_SendType.Enabled = false;
            valueListItem11.DataValue = "0";
            valueListItem11.DisplayText = "正常发运";
            valueListItem12.DataValue = "1";
            valueListItem12.DisplayText = "内部转运";
            this.Cmb_SendType.Items.Add(valueListItem11);
            this.Cmb_SendType.Items.Add(valueListItem12);
            this.Cmb_SendType.Location = new System.Drawing.Point(780, 27);
            this.Cmb_SendType.Name = "Cmb_SendType";
            this.Cmb_SendType.Size = new System.Drawing.Size(100, 21);
            this.Cmb_SendType.TabIndex = 213;
            // 
            // chk_SendType
            // 
            this.chk_SendType.FlatMode = true;
            this.chk_SendType.Location = new System.Drawing.Point(700, 30);
            this.chk_SendType.Name = "chk_SendType";
            this.chk_SendType.Size = new System.Drawing.Size(80, 14);
            this.chk_SendType.TabIndex = 214;
            this.chk_SendType.Text = "发运类型";
            this.chk_SendType.CheckedChanged += new System.EventHandler(this.chk_SendType_CheckedChanged);
            // 
            // chk_NZLX
            // 
            this.chk_NZLX.FlatMode = true;
            this.chk_NZLX.Location = new System.Drawing.Point(833, 7);
            this.chk_NZLX.Name = "chk_NZLX";
            this.chk_NZLX.Size = new System.Drawing.Size(80, 14);
            this.chk_NZLX.TabIndex = 216;
            this.chk_NZLX.Text = "业务类型";
            this.chk_NZLX.CheckedChanged += new System.EventHandler(this.chk_NZLX_CheckedChanged);
            // 
            // cmb_NZLX
            // 
            appearance334.BackColor = System.Drawing.Color.LightCyan;
            this.cmb_NZLX.Appearance = appearance334;
            this.cmb_NZLX.CalcManager = this.Calc_Manager;
            this.cmb_NZLX.CharacterCasing = System.Windows.Forms.CharacterCasing.Normal;
            appearance335.BackColor = System.Drawing.SystemColors.Window;
            appearance335.BorderColor = System.Drawing.SystemColors.InactiveCaption;
            this.cmb_NZLX.DisplayLayout.Appearance = appearance335;
            this.cmb_NZLX.DisplayLayout.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid;
            this.cmb_NZLX.DisplayLayout.CaptionVisible = Infragistics.Win.DefaultableBoolean.False;
            appearance336.BackColor = System.Drawing.SystemColors.ActiveBorder;
            appearance336.BackColor2 = System.Drawing.SystemColors.ControlDark;
            appearance336.BackGradientStyle = Infragistics.Win.GradientStyle.Vertical;
            appearance336.BorderColor = System.Drawing.SystemColors.Window;
            this.cmb_NZLX.DisplayLayout.GroupByBox.Appearance = appearance336;
            appearance337.ForeColor = System.Drawing.SystemColors.GrayText;
            this.cmb_NZLX.DisplayLayout.GroupByBox.BandLabelAppearance = appearance337;
            this.cmb_NZLX.DisplayLayout.GroupByBox.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid;
            appearance338.BackColor = System.Drawing.SystemColors.ControlLightLight;
            appearance338.BackColor2 = System.Drawing.SystemColors.Control;
            appearance338.BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal;
            appearance338.ForeColor = System.Drawing.SystemColors.GrayText;
            this.cmb_NZLX.DisplayLayout.GroupByBox.PromptAppearance = appearance338;
            this.cmb_NZLX.DisplayLayout.MaxColScrollRegions = 1;
            this.cmb_NZLX.DisplayLayout.MaxRowScrollRegions = 1;
            appearance339.BackColor = System.Drawing.SystemColors.Window;
            appearance339.ForeColor = System.Drawing.SystemColors.ControlText;
            this.cmb_NZLX.DisplayLayout.Override.ActiveCellAppearance = appearance339;
            appearance340.BackColor = System.Drawing.SystemColors.Highlight;
            appearance340.ForeColor = System.Drawing.SystemColors.HighlightText;
            this.cmb_NZLX.DisplayLayout.Override.ActiveRowAppearance = appearance340;
            this.cmb_NZLX.DisplayLayout.Override.BorderStyleCell = Infragistics.Win.UIElementBorderStyle.Dotted;
            this.cmb_NZLX.DisplayLayout.Override.BorderStyleRow = Infragistics.Win.UIElementBorderStyle.Dotted;
            appearance341.BackColor = System.Drawing.SystemColors.Window;
            this.cmb_NZLX.DisplayLayout.Override.CardAreaAppearance = appearance341;
            appearance342.BorderColor = System.Drawing.Color.Silver;
            appearance342.TextTrimming = Infragistics.Win.TextTrimming.EllipsisCharacter;
            this.cmb_NZLX.DisplayLayout.Override.CellAppearance = appearance342;
            this.cmb_NZLX.DisplayLayout.Override.CellClickAction = Infragistics.Win.UltraWinGrid.CellClickAction.EditAndSelectText;
            this.cmb_NZLX.DisplayLayout.Override.CellPadding = 0;
            appearance343.BackColor = System.Drawing.SystemColors.Control;
            appearance343.BackColor2 = System.Drawing.SystemColors.ControlDark;
            appearance343.BackGradientAlignment = Infragistics.Win.GradientAlignment.Element;
            appearance343.BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal;
            appearance343.BorderColor = System.Drawing.SystemColors.Window;
            this.cmb_NZLX.DisplayLayout.Override.GroupByRowAppearance = appearance343;
            appearance344.TextHAlign = Infragistics.Win.HAlign.Left;
            this.cmb_NZLX.DisplayLayout.Override.HeaderAppearance = appearance344;
            this.cmb_NZLX.DisplayLayout.Override.HeaderClickAction = Infragistics.Win.UltraWinGrid.HeaderClickAction.SortMulti;
            this.cmb_NZLX.DisplayLayout.Override.HeaderStyle = Infragistics.Win.HeaderStyle.WindowsXPCommand;
            appearance345.BackColor = System.Drawing.SystemColors.Window;
            appearance345.BorderColor = System.Drawing.Color.Silver;
            this.cmb_NZLX.DisplayLayout.Override.RowAppearance = appearance345;
            this.cmb_NZLX.DisplayLayout.Override.RowSelectors = Infragistics.Win.DefaultableBoolean.False;
            appearance346.BackColor = System.Drawing.SystemColors.ControlLight;
            this.cmb_NZLX.DisplayLayout.Override.TemplateAddRowAppearance = appearance346;
            this.cmb_NZLX.DisplayLayout.ScrollBounds = Infragistics.Win.UltraWinGrid.ScrollBounds.ScrollToFill;
            this.cmb_NZLX.DisplayLayout.ScrollStyle = Infragistics.Win.UltraWinGrid.ScrollStyle.Immediate;
            this.cmb_NZLX.DisplayLayout.ViewStyleBand = Infragistics.Win.UltraWinGrid.ViewStyleBand.OutlookGroupBy;
            this.cmb_NZLX.DisplayMember = "";
            this.cmb_NZLX.Enabled = false;
            this.cmb_NZLX.FlatMode = true;
            this.cmb_NZLX.Location = new System.Drawing.Point(904, 3);
            this.cmb_NZLX.Name = "cmb_NZLX";
            this.cmb_NZLX.Size = new System.Drawing.Size(108, 19);
            this.cmb_NZLX.TabIndex = 217;
            this.cmb_NZLX.ValueMember = "";
            // 
            // btn_SendID
            // 
            this.btn_SendID.FlatMode = true;
            this.btn_SendID.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.btn_SendID.Location = new System.Drawing.Point(178, 5);
            this.btn_SendID.Name = "btn_SendID";
            this.btn_SendID.Size = new System.Drawing.Size(36, 19);
            this.btn_SendID.TabIndex = 66;
            this.btn_SendID.Text = "……";
            this.btn_SendID.Visible = false;
            this.btn_SendID.Click += new System.EventHandler(this.btn_SendID_Click);
            // 
            // 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.Cmb_Txt_ListCodingTop)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.Txt_Lodlist)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.cmb_PrimerSupply)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.cmb_PriMarName)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.Txt_SendPactNO)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.Txt_MaterialNO)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.Txt_IncpName)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.Txt_Certificate)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.Cmb_PLD)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.Ops_SendType)).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.Txt_ListCodingTop)).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_IncepName)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.Txt_Station)).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_RollNOTop)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.Cmb_SendType)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.cmb_NZLX)).EndInit();
            this.ResumeLayout(false);

		}
		#endregion

		#region "Init"

        private void FrmTurnoffSendList_Load(object sender, System.EventArgs e)
        {
            try
            {
                //Txt_ListCodingTop.Text = "FN" + System.DateTime.Now.ToString("yy");
                
                //Txt_Lodlist.Value.ToString() = "1";
                strlx = this.Key.Split('@')[3];
                if (ClientCommon._UserInfo.UserRoleID.ToString() == "pszxck" && strlx == "YL")
                {
                    Ops_SendType.Enabled = false;
                    Ops_SendType.Value = "1";
                    btn_SendID.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.Cmb_PLD.Value = "4001HB1";
                this.Dte_SendTime.DateTime = System.DateTime.Now.Date;
                Dte_BeginTime.DateTime = System.DateTime.Now;
                Dte_EndTime.DateTime = System.DateTime.Now;
                Cmb_SendType.Value = "0";
                if (strlx == "YL" || strlx == "2" || strlx == "3")
                {
                    if (ClientCommon._UserInfo.UserRoleID.ToString() == "pszxck")
                    {
                        Btn_GetListCoding.Visible = true;
                    }
                   
                    ultraLabel13.Visible = false;
                    Txt_Certificate.Visible = false;
                    ultraLabel15.Visible = false;
                    ultraLabel16.Visible = false;
                    cmb_PriMarName.Visible = false;
                    cmb_PrimerSupply.Visible = false;
                    
                }
                else
                {
                    ultraLabel13.Visible = true;
                    Txt_Certificate.Visible = true;
                    ultraLabel15.Visible = true;
                    ultraLabel16.Visible = true;
                    cmb_PriMarName.Visible = true;
                    cmb_PrimerSupply.Visible = true;
                }



                if (strlx == "2" )
                { btn_Edit.Visible = false;
                ultraLabel12.Visible = false;
                Cmb_PLD.Visible = false;
                Ops_SendType.Enabled = false;
                Btn_GetListCoding.Visible = true;
              
           
                }
                else if (strlx == "3")
                {
                    btn_Edit.Visible = false;
                    ultraLabel12.Visible = false;
                    Cmb_PLD.Visible = false;
                    Ops_SendType.Enabled = false;
                    Btn_GetListCoding.Visible = true;
                    chk_BJB.Visible = false;
                    chk_Print.Visible = false;
                    chk_NZLX.Visible = false;
                    cmb_NZLX.Visible = false;
               
                }
                else
                {
                    btn_Edit.Visible = true;
                    ultraLabel12.Visible = true;
                    Cmb_PLD.Visible = true;
                   
                    if (ClientCommon._UserInfo.UserRoleID.ToString() == "pszxck")
                    {
                        Btn_GetListCoding.Visible = true;
                    }
                    else
                    {
                        Btn_GetListCoding.Visible = false;
                        
                        Ops_SendType.Enabled = true;
                    }
                    
                    chk_BJB.Checked = false;
                    chk_Clear.Checked = false;
                }

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

                Comm.Init_ComboControl(this.cmb_PriMarName, "KCJ_BASEDATA", "NAME_", "ID_", ref ds);

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

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

                Comm.Init_ComboControl(this.cmb_NZLX, "KCJ_BASEDATA", "NAME_", "ID_", ref ds);

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

                Comm.Init_ComboControl(this.cmb_PrimerSupply, "KCJ_BASEDATA", "NAME_", "ID_", ref ds);

                if (strlx == "2" || strlx == "3")
                {
                    sql = "SELECT ID_, NAME_ FROM KCJ_BASEDATA WHERE SORT_CODE = '514010'";
                    ds.Clear();
                    ds = (DataSet)ClientCommon._RemotingHelp.ExecuteMethod("JStuffManager", "Core.XgMes.Server.JGKC.StuffManager.Common", "GetDataSet", new object[] { sql }, out strOut);
                    ds.Tables[0].TableName = "KCJ_BASEDATA";

                    Comm.Init_ComboControl(this.Cmb_SendMan, "KCJ_BASEDATA", "NAME_", "ID_", ref ds);
                }


                if (ClientCommon._UserInfo.UserRoleID == "bjbck")
                {
                    sql = "SELECT ID_, NAME_ FROM KCJ_BASEDATA WHERE ID_ IN ( '808901','808902','808912','808914','808915','808923','808929')";
                    ds.Clear();
                    ds = (DataSet)ClientCommon._RemotingHelp.ExecuteMethod("JStuffManager", "Core.XgMes.Server.JGKC.StuffManager.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);
                    Cmb_Txt_ListCodingTop.Value = "808923";
                }

                else if (strlx == "YL")
                {
                    if (ClientCommon._UserInfo.UserRoleID.ToString() == "pszxck")
                    {
                        sql = "SELECT ID_, NAME_ FROM KCJ_BASEDATA WHERE ID_ IN ( '808932')";
                        ds.Clear();
                        ds = (DataSet)ClientCommon._RemotingHelp.ExecuteMethod("JStuffManager", "Core.XgMes.Server.JGKC.StuffManager.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);
                        Cmb_Txt_ListCodingTop.Value = "808932";
                    }
                    else
                    {
                        sql = "SELECT ID_, NAME_ FROM KCJ_BASEDATA WHERE ID_ IN ( '808916','808931')";
                        ds.Clear();
                        ds = (DataSet)ClientCommon._RemotingHelp.ExecuteMethod("JStuffManager", "Core.XgMes.Server.JGKC.StuffManager.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);
                        Cmb_Txt_ListCodingTop.Value = "808931";
                    }
                }
                else if (strlx == "2" || strlx == "3")
                {
                    sql = "SELECT ID_, NAME_ FROM KCJ_BASEDATA WHERE ID_ IN ( '808917','808919','808920','808932','808934','808935')";
                    ds.Clear();
                    ds = (DataSet)ClientCommon._RemotingHelp.ExecuteMethod("JStuffManager", "Core.XgMes.Server.JGKC.StuffManager.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);
                    Cmb_Txt_ListCodingTop.Value = "808932";
                }
                else
                {
                    sql = "SELECT ID_, NAME_ FROM KCJ_BASEDATA WHERE ID_ IN ( '808905','808909','808903','808907','808921','808922','808926','808924','808936','808937')";
                    ds.Clear();
                    ds = (DataSet)ClientCommon._RemotingHelp.ExecuteMethod("JStuffManager", "Core.XgMes.Server.JGKC.StuffManager.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);
                    Cmb_Txt_ListCodingTop.Value = "808924";
                }
            }
            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,"KCZ_TURNOFFBUTTRESSLIST_VIEW",new string[]{"KCZ_TURNOFFBUTTRESSLIST_VIEW"});
				StorageGridHelper.SetGrid(this.Grd_Send,ref this._FrmDataSet,"KCJ_TURNOFFSENDLIST",new string[]{"KCJ_TURNOFFSENDLIST"});
				StorageGridHelper.SetGrid(this.Grd_HBSend,ref this._FrmDataSet,"KCH_TURNOFFSENDLIST",new string[]{"KCH_TURNOFFSENDLIST"});
				StorageGridHelper.SetGrid(this.Grd_ZBSend,ref this._FrmDataSet,"KCZ_TURNOFFSENDLIST",new string[]{"KCZ_TURNOFFSENDLIST"});
				this.Grd_HCSendPlan.DisplayLayout.Override.RowSelectors = Infragistics.Win.DefaultableBoolean.False;
				//this.Grd_Storage.DisplayLayout.Override.RowSelectors = Infragistics.Win.DefaultableBoolean.False;
				this.Grd_Send.DisplayLayout.Override.RowSelectors = Infragistics.Win.DefaultableBoolean.False;
				this.Grd_HBSend.DisplayLayout.Override.RowSelectors = Infragistics.Win.DefaultableBoolean.False;
				this.Grd_ZBSend.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_PLD,"PLD|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_IncpName_CheckedChanged(object sender, System.EventArgs e)
		{
			this.Txt_IncepName.Enabled = this.Chk_IncpName.Checked;
		}

		private void Chk_Station_CheckedChanged(object sender, System.EventArgs e)
		{
			this.Txt_Station.Enabled = this.Chk_Station.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_RollNOTop.Enabled = this.txt_RollNOBegin.Enabled = this.txt_RollNOEnd.Enabled = this.chk_RollNO.Checked;
		}
		private void Chk_ForceSend_CheckedChanged(object sender, System.EventArgs e)
		{
			if(this.Chk_ForceSend.Checked)
				this.Chk_AutoMatch.Checked = false;
		}
		private void Chk_AutoMatch_CheckedChanged(object sender, System.EventArgs e)
		{
			if(this.Chk_AutoMatch.Checked)
				this.Chk_ForceSend.Checked = false;
		}
		#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 ="";
                        if(chk_BJB.Checked==true)
                        {
                            if (ClientCommon._UserInfo.UserRoleID.ToString() == "pszxck")
                            {
                                where = " AND A.DLIV_DIRNO='" + e.Row.Cells["ASKPLAN_ID"].Value.ToString() + "' AND C.LISTNUMBER LIKE 'PC%'";
                            }
                            else
                            {
                                where = " AND A.DLIV_DIRNO='" + e.Row.Cells["ASKPLAN_ID"].Value.ToString() + "' AND C.LISTNUMBER NOT LIKE 'PC%' ";
                            }
                        }
                        else
                        {
                            if (ClientCommon._UserInfo.UserRoleID.ToString() == "pszxck")
                            {
                                where = " AND A.ASKPLAN_ID='" + e.Row.Cells["ASKPLAN_ID"].Value.ToString() + "' AND C.LISTNUMBER LIKE 'PC%' ";
                            }
                            else
                            { where = " AND A.ASKPLAN_ID='" + e.Row.Cells["ASKPLAN_ID"].Value.ToString() + "' AND C.LISTNUMBER NOT LIKE 'PC%' "; }
                        }
						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"]);
							this.Txt_SendPactNO.Text = e.Row.Cells["PACTNO"].Value.ToString();
							//this.Txt_Certificate.Text = StorageBaseClass.CheckNullStr(this._FrmDataSet.Tables["KCJ_TURNOFFSENDLIST"].Rows[0]["CLASSTEAM"]);
							//this.Txt_PriMarName.Text = StorageBaseClass.CheckNullStr(this._FrmDataSet.Tables["KCJ_TURNOFFSENDLIST"].Rows[0]["CLASSTEAM"]);
							//this.Txt_PrimerSupply.Text = StorageBaseClass.CheckNullStr(this._FrmDataSet.Tables["KCJ_TURNOFFSENDLIST"].Rows[0]["CLASSTEAM"]);
						}
						else
						{
							this.Txt_AskPlan.Text = e.Row.Cells["ASKPLAN_ID"].Value.ToString();
                            this.Txt_SendPactNO.Text = e.Row.Cells["PACTNO"].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;
						}
//						if(StorageBaseClass.CheckNullStr(e.Row.Cells["ISHB"].Value) == "√")
//						{
//							GetHBSendList(where);
//							GetZBSendList(where);
//						}
						this._FrmDataSet.Tables["KCZ_TURNOFFBUTTRESSLIST_VIEW"].Clear();
						this._FrmDataSet.Tables["KCZ_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 GetZBSendList(string where)
		{
			try
			{
				string err = "";
				//this._FrmDataSet.Tables["KCZ_TURNOFFSENDLIST"].Clear();
				object obj = Core.Mes.ClientFrameWork.ClientCommon._RemotingHelp.ExecuteMethod("JBFYManager","Core.XgMes.Server.JGKC.TurnoffSendManager.SendListManager",
					"GetSendListData",new object[]{where},out err);
				if(obj!=null)
				{
					this._FrmDataSet.Merge(obj as System.Data.DataSet);
					this._FrmDataSet.AcceptChanges();
				}
				this._FrmDataSet.Tables["KCZ_TURNOFFSENDLIST"].AcceptChanges();
			}
			catch(System.Exception ex)
			{
				System.Diagnostics.Debug.WriteLine(ex.ToString());
			}
		}
		private void GetHBSendList(string where)
		{
			try
			{
				string err = "";
				this._FrmDataSet.Tables["KCH_TURNOFFSENDLIST"].Clear();
				object obj = Core.Mes.ClientFrameWork.ClientCommon._RemotingHelp.ExecuteMethod("JBFYManager","Core.XgMes.Server.JGKC.TurnoffSendManager.SendListManager",
					"GetHBSendListData",new object[]{where},out err);
				if(obj!=null)
				{
					this._FrmDataSet.Merge(obj as System.Data.DataSet);
					this._FrmDataSet.AcceptChanges();
				}
				this._FrmDataSet.Tables["KCH_TURNOFFSENDLIST"].AcceptChanges();
			}
			catch(System.Exception ex)
			{
				System.Diagnostics.Debug.WriteLine(ex.ToString());
			}
		}
        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();
                if (strlx != "2" && strlx != "3")
                {
                    if (chk_BJB.Checked == true)
                    {
                        obj = Core.Mes.ClientFrameWork.ClientCommon._RemotingHelp.ExecuteMethod("JBFYManager", "Core.XgMes.Server.JGKC.TurnoffSendManager.SendListManager",
                             "GetBJBSendListData", new object[] { where }, out err);
                    }
                    else if (strlx == "YL")
                    {
                        obj = Core.Mes.ClientFrameWork.ClientCommon._RemotingHelp.ExecuteMethod("JBFYManager", "Core.XgMes.Server.JGKC.TurnoffSendManager.SendListManager",
                            "GetYLSendListData", new object[] { where, strRolid }, out err);
                    }
                    else
                    {
                        obj = Core.Mes.ClientFrameWork.ClientCommon._RemotingHelp.ExecuteMethod("JBFYManager", "Core.XgMes.Server.JGKC.TurnoffSendManager.SendListManager",
                           "GetJBSendListData", new object[] { where }, out err);
                    }

                }

                else if (strlx == "2")
                {
                    obj = Core.Mes.ClientFrameWork.ClientCommon._RemotingHelp.ExecuteMethod("JBFYManager", "Core.XgMes.Server.JGKC.TurnoffSendManager.SendListManager",
                       "GetYLSendListData", new object[] { where, strRolid }, out err);
                }
                else if (strlx == "3")
                {
                    obj = Core.Mes.ClientFrameWork.ClientCommon._RemotingHelp.ExecuteMethod("JBFYManager", "Core.XgMes.Server.JGKC.TurnoffSendManager.SendListManager",
                     "GetPSSendListGXData", new object[] { where }, 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 void GetTurnoffList(string PlanNO,string PactNO,string ISClear)
		{
			try
			{
				string err = "";
				this._FrmDataSet.Tables["KCH_TURNOFFBUTTRESSLIST_VIEW"].Clear();
				object obj = Core.Mes.ClientFrameWork.ClientCommon._RemotingHelp.ExecuteMethod("ZBFYManager","Core.XgMes.Server.ZBKC.TurnoffSendManager.SendListManager",
					"GetTurnoffListData",new object[]{PlanNO,PactNO,ISClear},out err);
				if(obj!=null)
				{
					this._FrmDataSet.Merge(obj as System.Data.DataSet);
					this._FrmDataSet.AcceptChanges();
				}
				this._FrmDataSet.Tables["KCH_TURNOFFBUTTRESSLIST_VIEW"].AcceptChanges();
			}
			catch(System.Exception ex)
			{
				System.Diagnostics.Debug.WriteLine(ex.ToString());
			}
		}
		private bool GetTurnoffList(string where)
		{
			try
			{
				string err = "";
				this._FrmDataSet.Tables["KCZ_TURNOFFBUTTRESSLIST_VIEW"].Clear();
				object obj = Core.Mes.ClientFrameWork.ClientCommon._RemotingHelp.ExecuteMethod("JBFYManager","Core.XgMes.Server.JGKC.TurnoffSendManager.SendListManager",
					"GetCanSendList",new object[]{where,ClientCommon._UserInfo.UserRoleID.ToString()},out err);
				if(obj!=null)
				{
					this._FrmDataSet.Merge(obj as System.Data.DataSet);
					this._FrmDataSet.AcceptChanges();
					this._FrmDataSet.Tables["KCZ_TURNOFFBUTTRESSLIST_VIEW"].AcceptChanges();
					CheckBillet();
					return true;
				}
				this._FrmDataSet.Tables["KCZ_TURNOFFBUTTRESSLIST_VIEW"].AcceptChanges();
				return false;
			}
			catch(System.Exception ex)
			{
				System.Diagnostics.Debug.WriteLine(ex.ToString());
				return false;
			}
		}


        private bool GetTurnoffList_YL(string where)
        {
            try
            {
                string err = "";
                this._FrmDataSet.Tables["KCZ_TURNOFFBUTTRESSLIST_VIEW"].Clear();
                object obj = Core.Mes.ClientFrameWork.ClientCommon._RemotingHelp.ExecuteMethod("JBFYManager", "Core.XgMes.Server.JGKC.TurnoffSendManager.SendListManager",
                    "GetCanSendListYL", new object[] { where, ClientCommon._UserInfo.UserRoleID.ToString() }, out err);
                if (obj != null)
                {
                    this._FrmDataSet.Merge(obj as System.Data.DataSet);
                    this._FrmDataSet.AcceptChanges();
                    this._FrmDataSet.Tables["KCZ_TURNOFFBUTTRESSLIST_VIEW"].AcceptChanges();
                    CheckBillet();
                    return true;
                }
                this._FrmDataSet.Tables["KCZ_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")
				{
                    if (chk_BJB.Checked == true)
                    {
                        rtnStr = " AND A.DLIV_DIR_DATE >= '" + this.Dte_BeginTime.DateTime.ToString("yyyyMMdd") + "' "
                                + " AND A.DLIV_DIR_DATE <= '" + this.Dte_EndTime.DateTime.ToString("yyyyMMdd") + "'";
                    }
                    else
                    {
                        rtnStr = " AND A.PLANDATE BETWEEN TO_DATE('" + this.Dte_BeginTime.DateTime.ToString("yyyy-MM-dd") + "','YYYY-MM-DD') "
                                  + " AND TO_DATE('" + this.Dte_EndTime.DateTime.ToString("yyyy-MM-dd") + "','YYYY-MM-DD') ";
                    }
				}
				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_IncepName.Enabled && this.Txt_IncepName.Text.Length>0)
			{
				rtnStr = rtnStr + " AND B.INCEPTCORPNAME LIKE '" + this.Txt_IncepName.Text +"%' ";
			}
       
			if(this.Txt_Station.Enabled && this.Txt_Station.Text.Length>0)
			{
				if(type=="PLAN")
				{
					rtnStr = rtnStr + " AND C.STATIONNAME LIKE '" + this.Txt_Station.Text +"%' ";
				}
				else
				{
					rtnStr = rtnStr + " AND D.STATIONNAME LIKE '" + this.Txt_Station.Text +"%' ";
				}
			}
			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")
				{
                    if (chk_BJB.Checked == true)
                    {
                    }
                    else
                    {
                        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)
			{
                if (chk_BJB.Checked == true)
                {
                    rtnStr = rtnStr + " AND A.DLIV_DIRNO LIKE '" + this.txt_AskPlanID.Text + "%' ";
                }
                else
                { 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 +"%' ";
				}
                if (this.Cmb_SendType.Enabled && this.Cmb_SendType.Text.Length > 0)
                {
                    rtnStr = rtnStr + " AND C.SENDTYPE = '" + this.Cmb_SendType.Value.ToString() + "' ";
                }
				string rollno = "";
				if(this.chk_RollNO.Checked)
				{
					rollno = " AND SUBSTR(C.ROLLNO,1,INSTR(C.ROLLNO,'-')-1)='"+this.txt_RollNOTop.Text.Trim()+"' ";
					if(this.txt_RollNOBegin.Text.Trim().Length==5 && this.txt_RollNOEnd.Text.Trim().Length<5)
					{
						rollno = rollno + " AND SUBSTR(C.ROLLNO,INSTR(C.ROLLNO,'-')+1,5)='"+this.txt_RollNOBegin.Text.Trim()+"'";
					}
					if(this.txt_RollNOBegin.Text.Trim().Length<5 && this.txt_RollNOEnd.Text.Trim().Length==5)
					{
						rollno = rollno + " AND SUBSTR(C.ROLLNO,INSTR(C.ROLLNO,'-')+1,5)<='"+this.txt_RollNOEnd.Text.Trim()+"'";
					}
					if(this.txt_RollNOBegin.Text.Trim().Length==5 && this.txt_RollNOEnd.Text.Trim().Length==5)
					{
						rollno = rollno + " AND SUBSTR(C.ROLLNO,INSTR(C.ROLLNO,'-')+1,5)<='"+this.txt_RollNOEnd.Text.Trim()+"'"
							+ " AND SUBSTR(C.ROLLNO,INSTR(C.ROLLNO,'-')+1,5)>='"+this.txt_RollNOBegin.Text.Trim()+"'";
					}
                    rollno = " AND C.SERIALNUMBER LIKE '" + this.txt_RollNOBegin.Text + "%' ";
				}
				rtnStr = rtnStr + rollno;
			}
			if(rtnStr.Length == 0)
			{
				if(type=="PLAN")
				{
                    if (chk_BJB.Checked == true)
                    {
                        rtnStr = " AND A.DLIV_DIR_DATE >= '" + System.DateTime.Now.AddDays(-1).ToString("yyyyMMdd") + "' "
                              + " AND A.DLIV_DIR_DATE <= '" + System.DateTime.Now.ToString("yyyyMMdd") + "'";
                        
                    }
                    else
                    {
                        rtnStr = " AND A.PLANDATE 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 SendType = StorageBaseClass.CheckNullStr(this.Ops_SendType.Value);
				string SuperType = this.Chk_ForceSend.Checked?"1":"0";
				string AutoMatch = this.Chk_AutoMatch.Checked?"1":"0";
                string SRole = ClientCommon._UserInfo.UserRoleID.ToString();
				string strerr = "";
				object obj = Core.Mes.ClientFrameWork.ClientCommon._RemotingHelp.ExecuteMethod("JBFYManager","Core.XgMes.Server.JGKC.TurnoffSendManager.SendListManager",
                    "CommitAddSendList", new object[] { Billets, SendInfo, SendType, SuperType, AutoMatch, strlx, SRole }, 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["KCZ_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["KCZ_TURNOFFBUTTRESSLIST_VIEW"].AcceptChanges();
					SetDataErrorRow(this._FrmDataSet.Tables["KCZ_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_Certificate.Text.Trim().Length==0)
//			{
//				MessageBox.Show("请您确认质证书号",StorageBaseClass.MsgCaption);
//				return false;
//			}
			if(this.Txt_IncepName.Text.Trim().Length==0)
			{
				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;
						}
						if(StorageBaseClass.CheckNullStr(row.Cells["DETERMINANTCARDNUMBER"].Value)!=StorageBaseClass.CheckNullStr(row.Cells["OSTEEL"].Value))
						{
							row.Cells["DETERMINANTCARDNUMBER"].Appearance.BackColor = System.Drawing.Color.Red;
						}
						if(StorageBaseClass.CheckNullStr(row.Cells["OHEATDEAL"].Value)=="√" && StorageBaseClass.CheckNullStr(row.Cells["HEATDEAL"].Value)!="√")
						{
							row.Cells["HEATDEAL"].Appearance.BackColor = System.Drawing.Color.Red;
						}
						if(StorageBaseClass.CheckNullStr(row.Cells["OSTANDROLLERROLL"].Value)=="√" && StorageBaseClass.CheckNullStr(row.Cells["STANDROLLERROLL"].Value)!="√")
						{
							row.Cells["STANDROLLERROLL"].Appearance.BackColor = System.Drawing.Color.Red;
						}
						if(StorageBaseClass.CheckNullStr(row.Cells["OTMCP"].Value)=="√" && StorageBaseClass.CheckNullStr(row.Cells["TMCP"].Value)!="√")
						{
							row.Cells["TMCP"].Appearance.BackColor = System.Drawing.Color.Red;
						}
						if(StorageBaseClass.CheckNullStr(row.Cells["OHEATROLL"].Value)=="√" && StorageBaseClass.CheckNullStr(row.Cells["HEATROLL"].Value)!="√")
						{
							row.Cells["HEATROLL"].Appearance.BackColor = System.Drawing.Color.Red;
						}
						if(StorageBaseClass.CheckNullStr(row.Cells["OCONTROLROLL"].Value)=="√" && StorageBaseClass.CheckNullStr(row.Cells["CONTROLROLL"].Value)!="√")
						{
							row.Cells["CONTROLROLL"].Appearance.BackColor = System.Drawing.Color.Red;
						}
						if(StorageBaseClass.CheckNullStr(row.Cells["OISHEATROLL"].Value)=="√" && StorageBaseClass.CheckNullStr(row.Cells["ISHEATROLL"].Value)!="√")
						{
							row.Cells["ISHEATROLL"].Appearance.BackColor = System.Drawing.Color.Red;
						}
						CheckStorageSpet(row);
						
						CheckStorageDetectMar(row);

						CheckProcessData(row);
					}
				}
			}
			catch(System.Exception ex)
			{
				System.Diagnostics.Debug.WriteLine(ex.ToString());
			}
		}
		//板块规格和订单校验
		private void CheckStorageSpet(Infragistics.Win.UltraWinGrid.UltraGridRow row)
		{
			try
			{
				string Role = StorageBaseClass.CheckNullStr(row.Cells["ORULE"].Value);
				if(Role.Length == 0)
					return;
				if(Role=="102201")//单定定长
				{
					if(StorageBaseClass.CheckDecimal(row.Cells["PLY"].Value)!=StorageBaseClass.CheckDecimal(row.Cells["OPLY"].Value))
					{
						row.Cells["PLY"].Appearance.BackColor = System.Drawing.Color.Red;
					}
					if(StorageBaseClass.CheckDecimal(row.Cells["LENGTH"].Value)!=StorageBaseClass.CheckDecimal(row.Cells["OLENGTH"].Value))
					{
						row.Cells["LENGTH"].Appearance.BackColor = System.Drawing.Color.Red;
					}
				}
				if(Role=="102202")//单定定宽
				{
					if(StorageBaseClass.CheckDecimal(row.Cells["PLY"].Value)!=StorageBaseClass.CheckDecimal(row.Cells["OPLY"].Value))
					{
						row.Cells["PLY"].Appearance.BackColor = System.Drawing.Color.Red;
					}
					if(StorageBaseClass.CheckDecimal(row.Cells["WIDTH"].Value)!=StorageBaseClass.CheckDecimal(row.Cells["OWIDTH"].Value))
					{
						row.Cells["WIDTH"].Appearance.BackColor = System.Drawing.Color.Red;
					}
				}
				if(Role=="102203")//双定
				{
					if(StorageBaseClass.CheckDecimal(row.Cells["PLY"].Value)!=StorageBaseClass.CheckDecimal(row.Cells["OPLY"].Value))
					{
						row.Cells["PLY"].Appearance.BackColor = System.Drawing.Color.Red;
					}
					if(StorageBaseClass.CheckDecimal(row.Cells["WIDTH"].Value)!=StorageBaseClass.CheckDecimal(row.Cells["OWIDTH"].Value))
					{
						row.Cells["WIDTH"].Appearance.BackColor = System.Drawing.Color.Red;
					}
					if(StorageBaseClass.CheckDecimal(row.Cells["LENGTH"].Value)!=StorageBaseClass.CheckDecimal(row.Cells["OLENGTH"].Value))
					{
						row.Cells["LENGTH"].Appearance.BackColor = System.Drawing.Color.Red;
					}
				}
			}
			catch(System.Exception ex)
			{
				System.Diagnostics.Debug.WriteLine(ex.ToString());
			}
		}
		//探伤结果和订单校验
		private void CheckStorageDetectMar(Infragistics.Win.UltraWinGrid.UltraGridRow row)
		{
			try
			{
				string SDetectMar = StorageBaseClass.CheckNullStr(row.Cells["KDETECT"].Value);
				string ODetectMar = StorageBaseClass.CheckNullStr(row.Cells["ODETECT"].Value);
				if(ODetectMar.Trim().Length==0 | ODetectMar=="401900")
					return;
				if(SDetectMar.Trim().Length>6 | SDetectMar.Trim().Length==0)
				{
					row.Cells["DETECTMARBOOKIN"].Appearance.BackColor = System.Drawing.Color.Red;
				}
				if(StorageBaseClass.CheckNullInt(SDetectMar)<StorageBaseClass.CheckNullInt(ODetectMar))
				{
					row.Cells["DETECTMARBOOKIN"].Appearance.BackColor = System.Drawing.Color.Red;
				}
			}
			catch(System.Exception ex)
			{
				System.Diagnostics.Debug.WriteLine(ex.ToString());
			}
		}
		//校验板材加工信息是否合格
		private void CheckProcessData(Infragistics.Win.UltraWinGrid.UltraGridRow row)
		{
			try
			{
				string [] ColumnNames = new string[]{"SURFACETREATMENT","SURFACEROUGHNESS","COATTHICKNESS","DRYINGTIME"};
				foreach(string Column in ColumnNames)
				{
					if(StorageBaseClass.CheckNullStr(row.Cells[Column].Value).Length>0)
					{
						if(StorageBaseClass.CheckNullStr(row.Cells[Column].Value).IndexOf("×")>0)
						{
							row.Cells[Column].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},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_Certificate.Text = StorageBaseClass.CheckNullStr((obj as System.Data.DataSet).Tables[0].Rows[0]["CERTIFICATENO"]);
					this.Txt_SendPactNO.Text = StorageBaseClass.CheckNullStr((obj as System.Data.DataSet).Tables[0].Rows[0]["PACTNO"]);
					this.cmb_PriMarName.Text = StorageBaseClass.CheckNullStr((obj as System.Data.DataSet).Tables[0].Rows[0]["PRIMERNAME"]);
					this.cmb_PrimerSupply.Text = StorageBaseClass.CheckNullStr((obj as System.Data.DataSet).Tables[0].Rows[0]["PRIMERSUPPLY"]);
					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;
				}
                if (StorageBaseClass.CheckNullStr(this.Ops_SendType.Value) == "1")
                {
                    if (Txt_AskPlan.Text.Substring(0, 1) != "N")
                    {
                        MessageBox.Show("发运号不对，请检查再进行发运", StorageBaseClass.MsgCaption);
                        this.Txt_AskPlan.Focus();
                        return;
                    }
                }
				System.Data.DataRow[] rows;
				if(!this.Chk_ForceSend.Checked)
				{
					rows = this._FrmDataSet.Tables["KCZ_TURNOFFBUTTRESSLIST_VIEW"].Select("CONDOLENUMBER='"+this.Txt_Condole.Text+"' AND SENDFLAG NOT LIKE '1%'");
				}
				else
				{
					rows = this._FrmDataSet.Tables["KCZ_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(this.Ops_SendType.Value));//9
					SendInfo.Add(Core.Mes.ClientFrameWork.ClientCommon._UserInfo.UserName);//10
					SendInfo.Add(StorageBaseClass.CheckNullStr(this.Cmb_PLD.Value));//11
					SendInfo.Add(StorageBaseClass.CheckNullStr(this.Txt_Certificate.Text.Trim()));//12
					SendInfo.Add(StorageBaseClass.CheckNullStr(this.Txt_IncpName.Text.Trim()));//13
					SendInfo.Add(StorageBaseClass.CheckNullStr(this.cmb_PriMarName.Text.Trim()));//14
					SendInfo.Add(StorageBaseClass.CheckNullStr(this.cmb_PrimerSupply.Text.Trim()));//15
					SendInfo.Add(StorageBaseClass.CheckNullStr(this.Txt_MaterialNO.Text));//16
					SendInfo.Add(StorageBaseClass.CheckNullStr(this.Txt_SendPactNO.Text));//17
					//2008-03-26 ZW
					if(this.chk_Clear.Checked)
					{
						SendInfo.Add("1");
					}
					else
					{
						SendInfo.Add("0");//18
					}
					//2008-04-12 ZW
					if(this.chk_Cb.Checked)
					{
						SendInfo.Add("1");
					}
					else
					{
						SendInfo.Add("0");//19
					}
                    if (Chk_ForceSend.Checked == true)
                    {
                        DialogResult dialo;
                        dialo = MessageBox.Show("是否强行发运", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button2);
                        if (dialo == DialogResult.Yes)
                        {
                            SendInfo.Add("1");
                        }

                    }
                    else
                    {
                        SendInfo.Add("0");//20
                    }
                    SendInfo.Add(Core.Mes.ClientFrameWork.ClientCommon._UserInfo.UserName);//21
                    SendInfo.Add(strlx);//22
					AddSendList(Billets,SendInfo,"CONDOLE",rows);

				}
				this.Chk_ForceSend.Checked = false;

			}
			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;
                //if(!this.Chk_ForceSend.Checked)
                //{
                //    rows = this._FrmDataSet.Tables["KCZ_TURNOFFBUTTRESSLIST_VIEW"].Select("BILLETID='"+this.Txt_Billet.Text+"' AND SENDFLAG NOT LIKE '1%'");
                //}
                //else
                //{
					rows = this._FrmDataSet.Tables["KCZ_TURNOFFBUTTRESSLIST_VIEW"].Select("BILLETID='"+this.Txt_Billet.Text+"'");
                //}
                    if (StorageBaseClass.CheckNullStr(this.Ops_SendType.Value) == "1")
                    {
                        if (Txt_AskPlan.Text.Substring(0, 1) != "N")
                        {
                            MessageBox.Show("发运号不对，请检查再进行发运", StorageBaseClass.MsgCaption);
                            this.Txt_AskPlan.Focus();
                            return;
                        }
                    }

				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.Txt_ListCodingTop.Text.Trim()+"-"+this.Txt_ListCoding.Text.Trim());
                    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.Ops_SendType.Value));//9
					SendInfo.Add(Core.Mes.ClientFrameWork.ClientCommon._UserInfo.UserRoleID);//10
					SendInfo.Add(StorageBaseClass.CheckNullStr(this.Cmb_PLD.Value));//11
					SendInfo.Add(StorageBaseClass.CheckNullStr(this.Txt_Certificate.Text.Trim()));//12
					SendInfo.Add(StorageBaseClass.CheckNullStr(this.Txt_IncpName.Text));//13
					SendInfo.Add(StorageBaseClass.CheckNullStr(this.cmb_PriMarName.Text.Trim()));//14
					SendInfo.Add(StorageBaseClass.CheckNullStr(this.cmb_PrimerSupply.Text.Trim()));//15
					SendInfo.Add(StorageBaseClass.CheckNullStr(this.Txt_MaterialNO.Text));//16
					SendInfo.Add(StorageBaseClass.CheckNullStr(this.Txt_SendPactNO.Text));//17
					//2008-03-26 ZW
					if(this.chk_Clear.Checked==true)
					{
						SendInfo.Add("1");
					}
					else
					{
						SendInfo.Add("0");//18
					}
					//2008-04-12 ZW
					if(this.chk_Cb.Checked==true)
					{
						SendInfo.Add("1");
					}
					else
					{
						SendInfo.Add("0");//19
					}
                    if (Chk_ForceSend.Checked == true)
                    {
                        DialogResult dialo;
                        dialo = MessageBox.Show("是否强行发运", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button2);
                        if (dialo == DialogResult.Yes)
                        {
                            SendInfo.Add("1");
                        }
                        
                    }
                    else
                    {
                        SendInfo.Add("0");//20
                    }
                    SendInfo.Add(Core.Mes.ClientFrameWork.ClientCommon._UserInfo.UserName);//21
                    SendInfo.Add(strlx);//22
					AddSendList(Billets,SendInfo,"",rows);
				}
               
				this.Chk_ForceSend.Checked = false;
			}
			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(3, 1);
				string strerr = "";
                object obj = Core.Mes.ClientFrameWork.ClientCommon._RemotingHelp.ExecuteMethod("JBFYManager", "Core.XgMes.Server.JGKC.TurnoffSendManager.SendListManager",
					"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(StorageBaseClass.CheckNullStr(this.Ops_SendType.Value) == "4")
						{
							where = where + " AND B.BUTTRESS<>'虚拟堆位' ";
						}
                        if (strlx == "YL" || strlx == "2")
                        {
                            if (!GetTurnoffList_YL(where))
                            {
                                MessageBox.Show("吊号" + this.Txt_Condole.Text + "的板块无库存！", StorageBaseClass.MsgCaption);
                                this.Txt_Condole.SelectAll();
                                return;
                            }
                        }
                        else
                        { 
						if(!GetTurnoffList(where))
						{
							MessageBox.Show("吊号" + this.Txt_Condole.Text + "的板块无库存！",StorageBaseClass.MsgCaption);
							this.Txt_Condole.SelectAll();
							return;
						}
                    }
						this.Btn_Add.Focus();
						return;
					}
                    if (((System.Windows.Forms.Control)sender).Name == "Txt_Billet")
                    {
                        if (Ops_SendType.Value == "1")
                        {
                            try
                            {
                                string err = "";
                                object obj = new object();
                                if (strlx == "YL")
                                {
                                    obj = Core.Mes.ClientFrameWork.ClientCommon._RemotingHelp.ExecuteMethod("JBFYManager", "Core.XgMes.Server.JGKC.TurnoffSendManager.SendListManager",
                                       "GetListOrderDataYL", new object[] { Txt_Billet.Text }, out err);
                                }
                                else
                                {
                                    obj = Core.Mes.ClientFrameWork.ClientCommon._RemotingHelp.ExecuteMethod("JBFYManager", "Core.XgMes.Server.JGKC.TurnoffSendManager.SendListManager",
                                       "GetListOrderData", new object[] { Txt_Billet.Text }, 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(StorageBaseClass.CheckNullStr(this.Ops_SendType.Value) == "4")
						{
							where = where + " AND B.BUTTRESS<>'虚拟堆位' ";
						}
                        if (strlx != "YL" && strlx != "2")
                        {
                            if (!GetTurnoffList(where))
                            {
                                MessageBox.Show("序号" + this.Txt_Billet.Text + "的板块无库存！", StorageBaseClass.MsgCaption);
                                this.Txt_Billet.SelectAll();
                                return;
                            }
                            this.Btn_SendBillet.Focus();
                        }
                        else
                        {
                            if (!GetTurnoffList_YL(where))
                            {
                                MessageBox.Show("序号" + this.Txt_Billet.Text + "的板块无库存！", StorageBaseClass.MsgCaption);
                                this.Txt_Billet.SelectAll();
                                return;
                            }
                            this.Btn_SendBillet.Focus();
                        }
						return;
					}

                    if (((System.Windows.Forms.Control)sender).Name == "Txt_ListCoding")
					{
                        GetListData(Cmb_Txt_ListCodingTop.Text + "-" + Txt_ListCoding.Text);
					}
					System.Windows.Forms.SendKeys.Send("{TAB}");
				}
			}
			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();
				//this._FrmDataSet.Tables["SEL_ASKVEHICLEPLAN_P"].Clear();
				string where = GetWhere("PLAN");
                object obj = null;
                if (strlx == "3")
                {
                    obj = Core.Mes.ClientFrameWork.ClientCommon._RemotingHelp.ExecuteMethod("JBFYManager", "Core.XgMes.Server.JGKC.TurnoffSendManager.SendListManager",
                              "GetAskPlanData_PS", new object[] { where }, out err);
                }
                else if (strlx == "2")
                {
                    obj = Core.Mes.ClientFrameWork.ClientCommon._RemotingHelp.ExecuteMethod("JBFYManager", "Core.XgMes.Server.JGKC.TurnoffSendManager.SendListManager",
                              "GetAskPlanData_PS_BC", new object[] { where }, out err);
                }
                else
                {
                    if (chk_BJB.Checked == true)
                    {
                        obj = Core.Mes.ClientFrameWork.ClientCommon._RemotingHelp.ExecuteMethod("JBFYManager", "Core.XgMes.Server.JGKC.TurnoffSendManager.SendListManager",
                              "GetAskPlanData_BJB", new object[] { where }, out err);
                    }
                    else if (ClientCommon._UserInfo.UserRoleID.ToString() == "pszxck")
                    {
                        obj = Core.Mes.ClientFrameWork.ClientCommon._RemotingHelp.ExecuteMethod("JBFYManager", "Core.XgMes.Server.JGKC.TurnoffSendManager.SendListManager",
                                                   "GetAskPlanData_PSYL", new object[] { where }, out err);
                    }
                    else
                    {
                        obj = Core.Mes.ClientFrameWork.ClientCommon._RemotingHelp.ExecuteMethod("JBFYManager", "Core.XgMes.Server.JGKC.TurnoffSendManager.SendListManager",
                           "GetAskPlanData", new object[] { where }, out err);
                    }
                }
				if(obj!=null)
				{
					this._FrmDataSet.Merge(obj as System.Data.DataSet);
				}
				this._FrmDataSet.AcceptChanges();
				//StorageBaseClass.SetGridSumArea(this.Grd_HCSendPlan);
			}
			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;
                if (strlx != "2" &&  strlx != "3")
                {
                    if (chk_BJB.Checked == true)
                    {
                        obj = Core.Mes.ClientFrameWork.ClientCommon._RemotingHelp.ExecuteMethod("JBFYManager", "Core.XgMes.Server.JGKC.TurnoffSendManager.SendListManager",
                             "GetBJBSendListData", new object[] { where }, out err);
                    }
                    else if (strlx == "YL")
                    {
                        obj = Core.Mes.ClientFrameWork.ClientCommon._RemotingHelp.ExecuteMethod("JBFYManager", "Core.XgMes.Server.JGKC.TurnoffSendManager.SendListManager",
                            "GetYLSendListData", new object[] { where, strRolid }, out err);
                    }
                    else
                    {
                        obj = Core.Mes.ClientFrameWork.ClientCommon._RemotingHelp.ExecuteMethod("JBFYManager", "Core.XgMes.Server.JGKC.TurnoffSendManager.SendListManager",
                           "GetJBSendListData", new object[] { where }, out err);
                    }
                
                }
                
                else if (strlx == "2" )
                {
                    obj = Core.Mes.ClientFrameWork.ClientCommon._RemotingHelp.ExecuteMethod("JBFYManager", "Core.XgMes.Server.JGKC.TurnoffSendManager.SendListManager",
                       "GetYLSendListData", new object[] { where, strRolid }, out err);
                }
                else if (strlx == "3")
                {
                    obj = Core.Mes.ClientFrameWork.ClientCommon._RemotingHelp.ExecuteMethod("JBFYManager", "Core.XgMes.Server.JGKC.TurnoffSendManager.SendListManager",
                     "GetPSSendListGXData", new object[] { where }, 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;
				}
                if (txt_ListCode.Text.ToString().Substring(0, 1) == "X" && chk_Print.Checked == false || txt_ListCode.Text.ToString().Substring(0, 3) == "BJB" )
                {
                    obj = Core.Mes.ClientFrameWork.ClientCommon._RemotingHelp.ExecuteMethod("JBFYManager", "Core.XgMes.Server.JGKC.TurnoffSendManager.SendListManager",
                          "GetPrintData_BJB", new object[] { this.txt_ListCode.Text }, out strerr);
                    if (strlx == "2")
                    {
                        rtp._rtpFileName = @"PSSendListBC.rpt";
                    }
                    else
                    {
                        rtp._rtpFileName = @"JBSendListZArea_BJB.rpt";
                    }
                }
             
                else
                {
                    obj = Core.Mes.ClientFrameWork.ClientCommon._RemotingHelp.ExecuteMethod("JBFYManager", "Core.XgMes.Server.JGKC.TurnoffSendManager.SendListManager",
                          "GetPrintData", new object[] { this.txt_ListCode.Text, strlx, strRole }, out strerr);
                    if (strlx == "3")
                    {
                        rtp._rtpFileName = @"PSSendListXC.rpt";
                    }
                    else if (strlx == "2")
                    {
                        rtp._rtpFileName = @"PSSendListBC.rpt";
                    }
                    else
                    {
                        rtp._rtpFileName = @"JBSendListZArea.rpt";
                    }
                }
                if (strlx == "2" || strlx == "3")
                {
                }
                else
                {
                    if (obj == null)
                    {
                        MessageBox.Show("请您确认输写的发运明细编号是否正确", StorageBaseClass.MsgCaption);
                        return;
                    }
                }
				
                //if((obj as System.Data.DataSet).Tables["DATA"].Columns.Contains("AREA") )
                //{
                //    rtp._rtpFileName = @"JBSendListZArea.rpt";
                //}
                //else if((obj as System.Data.DataSet).Tables["DATA"].Rows.Count >37)
                //{
                //    rtp._rtpFileName = @"JBSendList2.rpt";
                //}
                //else
                //{
                //    rtp._rtpFileName = @"JBSendList1.rpt";
                //}
                
				//(obj as System.Data.DataSet).Tables["DATA"].Clear();
				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);
                string strRole = ClientCommon._UserInfo.UserRoleID.ToString();
				string strerr = "";
				object obj = Core.Mes.ClientFrameWork.ClientCommon._RemotingHelp.ExecuteMethod("JBFYManager","Core.XgMes.Server.JGKC.TurnoffSendManager.SendListManager",
                    "DelSendList", new object[] { BilletInfo, SendInfo, strlx, strRole }, 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
        public void ExportPC()
        {
            try
            {
                string filename = @"排车信息.xls";
                base.ultraGridExcelExporter.Export(this.Grd_HCSendPlan, 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());
            }
        }
		#region "Text"
		private void Txt_Condole_TextChanged(object sender, System.EventArgs e)
		{
			try
			{
				//				this.Grd_Storage.DisplayLayout.Bands[0].ColumnFilters["CONDOLENUMBER"].FilterConditions.Clear();
				//				if(StorageBaseClass.CheckNullStr(this.Txt_Condole.Text).Length>0)
				//				{
				//					this.Grd_Storage.DisplayLayout.Bands[0].ColumnFilters["CONDOLENUMBER"].FilterConditions.Add(Infragistics.Win.UltraWinGrid.FilterComparisionOperator.Like,StorageBaseClass.CheckNullStr(this.Txt_Condole.Text));
				//				}
                
				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.Grd_Storage.DisplayLayout.Bands[0].ColumnFilters["BILLETID"].FilterConditions.Clear();
				//				if(StorageBaseClass.CheckNullStr(this.Txt_Billet.Text).Length>0)
				//				{
				//					this.Grd_Storage.DisplayLayout.Bands[0].ColumnFilters["BILLETID"].FilterConditions.Add(Infragistics.Win.UltraWinGrid.FilterComparisionOperator.Like,StorageBaseClass.CheckNullStr(this.Txt_Billet.Text));
				//				}
                
				this.Txt_Billet.Focus();
			}
			catch(System.Exception ex)
			{
				System.Diagnostics.Debug.WriteLine(ex.ToString());
			}
		}
		#endregion

		#region "Ops"
		private void Ops_SendType_ValueChanged(object sender, System.EventArgs e)
		{
			try
			{
				switch(StorageBaseClass.CheckNullStr(this.Ops_SendType.Value))
				{
					case "0":
                        this.Cmb_Txt_ListCodingTop.Text = "FB" + System.DateTime.Now.ToString("yy").Substring(1, 1);
						this.Txt_AskPlan.Text = "";
						this.btn_NSendID.Visible=false;
						this.Txt_AskPlan.Enabled = false;
						break;
					case "1":
                        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;
                        
						break;
					case "4":
                        this.Cmb_Txt_ListCodingTop.Text = "FX" + System.DateTime.Now.ToString("yy").Substring(1, 1);
						this.Txt_AskPlan.Text = "X" + System.DateTime.Now.ToString("yyyyMMddHHmmss");
						this.Txt_AskPlan.Enabled = true;
						this.btn_NSendID.Visible=true;
						break;
				
					case "7":
                        this.Cmb_Txt_ListCodingTop.Text = "TF" + System.DateTime.Now.ToString("yy").Substring(1, 1);
						this.Txt_AskPlan.Text = "F" + System.DateTime.Now.ToString("yyyyMMddHHmmss");
						this.Txt_AskPlan.Enabled = true;
						this.btn_NSendID.Visible=true;
						break;
				  

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

		private void btn_NSendID_Click(object sender, System.EventArgs e)
		{
			switch(StorageBaseClass.CheckNullStr(this.Ops_SendType.Value))
			{
				case "1":
					this.Txt_AskPlan.Text = "N" + System.DateTime.Now.ToString("yyyyMMddHHmmss");
					break;
				case "7":
					this.Txt_AskPlan.Text = "F" + System.DateTime.Now.ToString("yyyyMMddHHmmss");
					break;

			}
		}

		private void chk_Clear_CheckedChanged(object sender, System.EventArgs e)
		{
			if(this.chk_Clear.Checked)
			{
				Chk_AutoMatch.Checked = false;
				Chk_ForceSend.Checked = false;
			}
		}

		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 chk_SendType_CheckedChanged(object sender, EventArgs e)
        {
            if (chk_SendType.Checked == true)
            {
                this.Cmb_SendType.Enabled = chk_SendType.Checked;
            }
        }

        private void chk_NZLX_CheckedChanged(object sender, EventArgs e)
        {
            cmb_NZLX.Enabled = chk_NZLX.Checked;
        }

        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;
        }




		

		
	}
}
