コード例 #1
0
        /// <summary>
        /// 初始化窗体///
        /// </summary>
        protected override void InitializeForm()
        {
            _BLL                = new bllIC();//业务逻辑层实例
            _SummaryView        = new DevGridView(gvSummary);
            _ActiveEditor       = txtICNO;
            _DetailGroupControl = pcEdit;

            base.InitializeForm(); //这行代码放到初始化变量后最好

            frmGridCustomize.RegisterGrid(gvSummary);
            DevStyle.SetGridControlLayout(gcSummary, false); //表格设置
            DevStyle.SetGridControlLayout(gcDetail, true);   //表格设置
            DevStyle.SetSummaryGridViewLayout(gvSummary);
            DevStyle.SetDetailGridViewLayout(gvDetail);

            BindingSummaryNavigator(controlNavigatorSummary, gcSummary); //Summary导航条.
            BindingSummarySearchPanel(btnQuery, btnEmpty, gcFindGroup);

            gcDetail.EmbeddedNavigator.ButtonClick += new NavigatorButtonClickEventHandler(this.OnEmbeddedNavigatorButtonClick); //表格按钮事件
            gvDetail.CellValueChanged += new DevExpress.XtraGrid.Views.Base.CellValueChangedEventHandler(OnCellValueChanged);    //表格值改变
            gvSummary.DoubleClick     += new EventHandler(OnGridViewDoubleClick);                                                //主表DoubleClict

            txt_DocDateTo.DateTime = DateTime.Today;                                                                             //查询条件

            DataBinder.BindingLookupEditDataSource(txtDocUser, DataDictCache.Cache.User, TUser.UserName, TUser.Account);
            DataBinder.BindingLookupEditDataSource(txtAppUser, DataDictCache.Cache.User, TUser.UserName, TUser.Account);
            DataBinder.BindingLookupEditDataSource(colD_LocationID.ColumnEdit as RepositoryItemLookUpEdit, DataDictCache.Cache.Location, tb_Location.LocationName, tb_Location.LocationID);

            (colD_StockCode.ColumnEdit as RepositoryItemButtonEdit).ButtonClick += new ButtonPressedEventHandler(OnStockCode_ButtonClick);
            (colD_StockCode.ColumnEdit as RepositoryItemButtonEdit).Validating  += new CancelEventHandler(OnStockCode_Validating);

            _BLL.GetBusinessByKey("-", true); //加载一个空的业务对象.

            ShowSummaryPage(true);            //一切初始化完毕后显示SummaryPage
        }
コード例 #2
0
ファイル: frmAR.cs プロジェクト: iot369/CSFramework
        /// <summary>
        /// 初始化窗体
        /// </summary>
        protected override void InitializeForm()
        {
            _BLL                = new bllAR();// 业务逻辑层实例
            _SummaryView        = new DevGridView(gvSummary);
            _ActiveEditor       = txtReceivedDate;
            _DetailGroupControl = panel1;

            base.InitializeForm(); //这行代码放到初始化变量后最好

            frmGridCustomize.RegisterGrid(gvSummary);
            DevStyle.SetGridControlLayout(gcSummary, false); //表格设置
            DevStyle.SetGridControlLayout(gcDetail, true);   //表格设置
            DevStyle.SetSummaryGridViewLayout(gvSummary);
            DevStyle.SetDetailGridViewLayout(gvDetail);

            BindingSummaryNavigator(controlNavigatorSummary, gcSummary); //Summary导航条.
            BindingSummarySearchPanel(btnQuery, btnEmpty, gcFindGroup);

            gcDetail.EmbeddedNavigator.ButtonClick += new NavigatorButtonClickEventHandler(this.OnEmbeddedNavigatorButtonClick); //表格按钮事件

            txt_DocDateTo.DateTime = DateTime.Today;                                                                             //查询条件截止日期

            DataBinder.BindingLookupEditDataSource(txtCreatedBy, DataDictCache.Cache.User, TUser.UserName, TUser.Account);
            DataBinder.BindingLookupEditDataSource(txtChequeBank, DataDictCache.Cache.Bank, tb_CommonDataDict.NativeName, tb_CommonDataDict.DataCode);
            DataBinder.BindingLookupEditDataSource(txtAppUser, DataDictCache.Cache.User, TUser.UserName, TUser.Account);
            DataBinder.BindingLookupEditDataSource((colD_Currency.ColumnEdit as RepositoryItemLookUpEdit), DataDictCache.Cache.Currency, tb_Currency.CurrencyName, tb_Currency.Currency);

            (colD_InvoiceNo.ColumnEdit as RepositoryItemButtonEdit).ButtonClick += new ButtonPressedEventHandler(OnInvoiceNo_ButtonClick);
            (colD_InvoiceNo.ColumnEdit as RepositoryItemButtonEdit).Validating  += new CancelEventHandler(OnInvoiceNo_Validating);

            _BLL.GetBusinessByKey("-", true); //加载一个空的业务对象.

            ShowSummaryPage(true);            //一切初始化完毕后显示SummaryPage
        }
コード例 #3
0
 /// <summary>
 /// 初始化窗体
 /// </summary>
 protected override void InitializeForm()
 {
     _SummaryView           = new DevGridView(gvSummary);
     _ActiveEditor          = txtGroupNum;
     _DataProxy             = new bllGroupAuthority(this.treeAuthority, txtGroupNum);
     _DetailGroupControl    = groupControl3;
     gvSummary.DoubleClick += new EventHandler(OnGridViewDoubleClick); //主表DoubleClict
     this.BindingSummaryNavigator(this.controlNavigatorSummary, gcSummary);
     frmGridCustomize.RegisterGrid(gvSummary);
     DevStyle.SetGridControlLayout(gcSummary, false);//表格设置
     DevStyle.SetSummaryGridViewLayout(gvSummary);
 }
コード例 #4
0
        /// <summary>
        /// 初始化窗体///
        /// </summary>
        protected override void InitializeForm()
        {
            //_BLL = new bllWMS_Bill();// 业务逻辑层实例
            _BLL                = new bllWMS_BillAdjust();
            _SummaryView        = new DevGridView(gvSummary);
            _ActiveEditor       = txtINNO;
            _DetailGroupControl = panelControl1;

            base.InitializeForm(); //这行代码放到初始化变量后最好

            frmGridCustomize.RegisterGrid(gvSummary);
            DevStyle.SetGridControlLayout(gcSummary, false); //表格设置
            DevStyle.SetGridControlLayout(gcDetail, true);   //表格设置
            DevStyle.SetSummaryGridViewLayout(gvSummary);
            DevStyle.SetDetailGridViewLayout(gvDetail);
            //主表
            BindingSummaryNavigator(controlNavigatorSummary, gcSummary); //Summary导航条.
            BindingSummarySearchPanel(btnQuery, btnEmpty, gcFindGroup);
            //从表
            gcDetail.EmbeddedNavigator.ButtonClick += new NavigatorButtonClickEventHandler(this.OnEmbeddedNavigatorButtonClick); //表格按钮事件
            gvDetail.CellValueChanged += new DevExpress.XtraGrid.Views.Base.CellValueChangedEventHandler(OnCellValueChanged);    //表格值改变
            gvSummary.DoubleClick     += new EventHandler(OnGridViewDoubleClick);                                                //主表DoubleClict

            txt_DocDateFrom.DateTime = DateTime.Today.AddDays(-7);
            txt_DocDateTo.DateTime   = DateTime.Today; //查询条件

            DataBinder.BindingLookupEditDataSource(txtDocUser, DataDictCache.Cache.User, TUser.UserName, TUser.Account);
            DataBinder.BindingLookupEditDataSource(txtAppUser, DataDictCache.Cache.User, TUser.UserName, TUser.Account);
            DataBinder.BindingLookupEditDataSource(txtDeliver, DataDictCache.Cache.User, TUser.UserName, TUser.Account);//交货人,也可以用tb_Person表取数
            // DataBinder.BindingLookupEditDataSource(txtLocationID, DataDictCache.Cache.Location, tb_Location.LocationName, tb_Location.LocationID);
            DataBinder.BindingLookupEditDataSource(LookUpEditWarehouseId, DataDictCache.Cache.Location, tb_WMS_Warehouse.Warehouse_Name, tb_WMS_Warehouse.Warehouse_Id);

            DataBinder.BindingLookupEditDataSource(txtDepartment, DataDictCache.Cache.DepartmentData, tb_CommonDataDict.NativeName, tb_CommonDataDict.DataCode);
            DataBinder.BindingLookupEditDataSource(lookUpEditDocType, DataDictCache.Cache.DocType_Out, tb_CommonDataDict.NativeName, tb_CommonDataDict.DataCode);
            DataBinder.BindingLookupEditDataSource(lookUpEditDocType1, DataDictCache.Cache.DocType_Out, tb_CommonDataDict.NativeName, tb_CommonDataDict.DataCode);
            DataBinder.BindingLookupEditDataSource(lookUpEditDocStatus, DataDictCache.Cache.DocStatus_OUT, tb_CommonDataDict.NativeName, tb_CommonDataDict.DataCode);
            //DataBinder.BindingLookupEditDataSource(colBillWareHouseID.ColumnEdit as RepositoryItemLookUpEdit, DataDictCache.Cache.Location, tb_WMS_Warehouse.Warehouse_Name, tb_WMS_Warehouse.Warehouse_Id);
            DataBinder.BindingLookupEditDataSource(colBillType.ColumnEdit as RepositoryItemLookUpEdit, DataDictCache.Cache.DocType_Out, tb_CommonDataDict.NativeName, tb_CommonDataDict.DataCode);

            DataBinder.BindingLookupEditDataSource(colBillWorkStatus.ColumnEdit as RepositoryItemLookUpEdit, DataDictCache.Cache.DocStatus_OUT, tb_CommonDataDict.NativeName, tb_CommonDataDict.DataCode);

            DataBinder.BindingLookupEditDataSource(DocCheck, DataDictCache.Cache.DocStatus_OUT, tb_CommonDataDict.NativeName, tb_CommonDataDict.DataCode);

            (colBillDtlMaterialCode.ColumnEdit as RepositoryItemButtonEdit).ButtonClick += new ButtonPressedEventHandler(OnStockCode_ButtonClick);
            (colBillDtlMaterialCode.ColumnEdit as RepositoryItemButtonEdit).Validating  += new CancelEventHandler(OnStockCode_Validating);

            _BLL.GetBusinessByKey("-", true); //加载一个空的业务对象.

            ShowSummaryPage(true);            //一切初始化完毕后显示SummaryPage
        }
コード例 #5
0
ファイル: YIEMsgForm.cs プロジェクト: wulinacha/XK3190_New
 void FormInitial()
 {
     //注册窗口空间和事件
     SummaryView = new DevSummary(gridView1);
     DataSearch.UserInit();
     DataSearch.SearchDate     += new EventHandler(DataSearch_SearchDate);
     DataSearch.ADD_Clicked    += new EventHandler(DataSearch_ADD_Clicked);
     DataSearch.Edit_Clicked   += new EventHandler(DataSearch_Edit_Clicked);
     DataSearch.Delete_Clicked += new EventHandler(DataSearch_Delete_Clicked);
     //设置样式
     DevStyle.SetDetailGridViewLayout(gridView1);
     DevStyle.SetGridControlLayout(gridControl1, false);
     DevStyle.DrawRowIndicator(gridView1, 40);
     frmGridCustomize.RegisterGrid(gridView1);
 }
コード例 #6
0
ファイル: frmSO.cs プロジェクト: zzpgeorge/HH-Client-CS
        /// <summary>
        /// 初始化窗体///
        /// </summary>
        protected override void InitializeForm()
        {
            _BLL                = new bllSO();// 业务逻辑管理类
            _SummaryView        = new DevGridView(gvSummary);
            _ActiveEditor       = txtSONO;
            _DetailGroupControl = panelControl1;

            base.InitializeForm(); //这行代码放到初始化变量后最好

            frmGridCustomize.RegisterGrid(gvSummary);
            DevStyle.SetGridControlLayout(gcSummary, false); //表格设置
            DevStyle.SetGridControlLayout(gcDetail, true);   //表格设置
            DevStyle.SetSummaryGridViewLayout(gvSummary);
            DevStyle.SetDetailGridViewLayout(gvDetail);

            BindingSummaryNavigator(controlNavigatorSummary, gcSummary); //Summary导航条.
            BindingSummarySearchPanel(btnQuery, btnEmpty, gcFindGroup);

            gcDetail.EmbeddedNavigator.ButtonClick += new NavigatorButtonClickEventHandler(this.OnEmbeddedNavigatorButtonClick); //表格按钮事件
            gvDetail.CellValueChanged += new DevExpress.XtraGrid.Views.Base.CellValueChangedEventHandler(OnCellValueChanged);    //表格值改变
            gvSummary.DoubleClick     += new EventHandler(OnGridViewDoubleClick);                                                //主表DoubleClict

            txt_DocDateTo.DateTime        = DateTime.Today;                                                                      //查询条件
            ucAttachment1.StorateStrategy = new AttachmentStorage_SQL();                                                         //附件存储策略
            ucAttachment1.ImmediatelyPost = false;

            DataBinder.BindingLookupEditDataSource(txtCreatedBy, DataDictCache.Cache.User, "UserName", "Account");
            DataBinder.BindingLookupEditDataSource(txtAppUser, DataDictCache.Cache.User, "UserName", "Account");
            DataBinder.BindingLookupEditDataSource(txtSalesman, DataDictCache.Cache.Person, "SalesName", "SalesCode");
            DataBinder.BindingLookupEditDataSource(txtPayType, DataDictCache.Cache.PayType, "TypeName", "PayType");
            DataBinder.BindingLookupEditDataSource(txtCurrency, DataDictCache.Cache.Currency, "CurrencyName", "Currency");

            (colD_StockCode.ColumnEdit as RepositoryItemButtonEdit).ButtonClick += new ButtonPressedEventHandler(OnStockCode_ButtonClick);
            (colD_StockCode.ColumnEdit as RepositoryItemButtonEdit).Validating  += new CancelEventHandler(OnStockCode_Validating);

            _BLL.GetBusinessByKey("-", true); //加载一个空的业务对象.

            ShowSummaryPage(true);            //一切初始化完毕后显示SummaryPage
        }
コード例 #7
0
ファイル: frmDbLink.cs プロジェクト: wuhuayun/JieLi_Cord
        protected override void InitializeForm()
        {
            try
            {
                _SummaryView           = new DevGridView(gvSummary);
                _ActiveEditor          = txtNum;
                _DetailGroupControl    = gcDetailEditor;
                gvSummary.DoubleClick += new EventHandler(OnGridViewDoubleClick); //主表DoubleClict

                frmGridCustomize.RegisterGrid(gvSummary);
                //frmGridCustomize.AddMenuItem(gvSummary, "测试连接", null, OnTestConnect, true);

                DevStyle.SetGridControlLayout(gcSummary, false);//表格设置
                DevStyle.SetSummaryGridViewLayout(gvSummary);



                ShowSummary();                                               //下载显示数据.
                BindingSummaryNavigator(controlNavigatorSummary, gcSummary); //Summary导航条.
                ShowSummaryPage(true);                                       //一切初始化完毕後显示SummaryPage
            }
            catch (Exception ex) { Msg.ShowException(ex); }
        }
コード例 #8
0
        protected override void InitializeForm()
        {
            try
            {
                _SummaryView           = new DevGridView(gvSummary);
                _ActiveEditor          = txtAccount;
                _DetailGroupControl    = gcDetailEditor;
                gvSummary.DoubleClick += new EventHandler(OnGridViewDoubleClick); //主表DoubleClict

                frmGridCustomize.RegisterGrid(gvSummary);
                frmGridCustomize.AddMenuItem(gvSummary, "修改密码", null, OnChangePwdClick, true);

                DevStyle.SetGridControlLayout(gcSummary, false);//表格设置
                DevStyle.SetSummaryGridViewLayout(gvSummary);

                DataTable data = CommonData.GetSystemDataSet();
                ucDataSets.BindingDataSource(data, tb_DataSet.DataSetID, tb_DataSet.DataSetName);

                ShowSummary();                                               //下载显示数据.
                BindingSummaryNavigator(controlNavigatorSummary, gcSummary); //Summary导航条.
                ShowSummaryPage(true);                                       //一切初始化完毕後显示SummaryPage
            }
            catch (Exception ex) { Msg.ShowException(ex); }
        }
コード例 #9
0
        /// <summary>
        /// 初始化窗体///
        /// </summary>
        protected override void InitializeForm()
        {
            // //_BLL = new bllWMS_Bill();// 业务逻辑层实例
            _BLL                = new bllWMS_Task();
            _SummaryView        = new DevGridView(gvSummary);
            _ActiveEditor       = textTaskId;
            _DetailGroupControl = panelControl1;

            base.InitializeForm(); //这行代码放到初始化变量后最好

            frmGridCustomize.RegisterGrid(gvSummary);
            frmGridCustomize.AddMenuItem(gvSummary, "入库任务新建", null, OnTaskAllInNewClick, true);
            frmGridCustomize.AddMenuItem(gvSummary, "任务下发", null, OnTaskAssignClick2, true);
            frmGridCustomize.AddMenuItem(gvSummary, "入库口入库", null, OnTaskArrivalPort_InClick, true);
            frmGridCustomize.AddMenuItem(gvSummary, "到达入库站台", null, OnTaskArrivalStation_InClick, true);
            frmGridCustomize.AddMenuItem(gvSummary, "堆垛机接收任务", null, OnTaskScReceiveClick, true);
            frmGridCustomize.AddMenuItem(gvSummary, "堆垛机完成任务", null, OnTaskScFinishClick, true);
            frmGridCustomize.AddMenuItem(gvSummary, "达到出库站台", null, OnTaskArrivalStation_OutClick, true);
            frmGridCustomize.AddMenuItem(gvSummary, "达到出库口", null, OnTaskArrivalPort_OutClick, true);
            frmGridCustomize.AddMenuItem(gvSummary, "任务过账", null, OnTaskFinishTaskClick, true);
            #region
            //if (SystemAuthentication.ButtonAuthorized("MenuItemTaskAssign"))
            //{
            //    frmGridCustomize.AddMenuItem(gvSummary, "任务下发", null, OnTaskAssignClick, true);
            //}
            //if (SystemAuthentication.ButtonAuthorized("MenuItemTaskCancel"))
            //{
            //    frmGridCustomize.AddMenuItem(gvSummary, "任务取消", null, OnTaskCancelClick, true);
            //}
            //if (SystemAuthentication.ButtonAuthorized("MenuItemTaskManualAccount"))
            //{
            //    frmGridCustomize.AddMenuItem(gvSummary, "手动过账", null, OnTaskAccountByManualClick, true);
            //}
            //if (SystemAuthentication.ButtonAuthorized("MenuItemTaskStatusModify"))
            //{
            //    frmGridCustomize.AddMenuItem(gvSummary, "状态修改", null, OnTaskStatusModifyClick, true);
            //}
            //if (SystemAuthentication.ButtonAuthorized("MenuItemTaskStationModify"))
            //{
            //    frmGridCustomize.AddMenuItem(gvSummary, "站台修改", null, OnTaskStationModifyClick, true);
            //}
            //if (SystemAuthentication.ButtonAuthorized("MenuItemTaskPortModify"))
            //{
            //    frmGridCustomize.AddMenuItem(gvSummary, "出库口修改", null, OnTaskPortNumModifyClick, true);
            //}
            //if (SystemAuthentication.ButtonAuthorized("MenuItemTaskPriorityModify"))
            //{
            //    frmGridCustomize.AddMenuItem(gvSummary, "优先级修改", null, OnTaskPriorityModifyClick, true);
            //}
            #endregion


            DevStyle.SetGridControlLayout(gcSummary, false); //表格设置
            DevStyle.SetGridControlLayout(gcDetail, true);   //表格设置
            DevStyle.SetSummaryGridViewLayout(gvSummary);
            DevStyle.SetDetailGridViewLayout(gvDetail);
            //主表
            BindingSummaryNavigator(controlNavigatorSummary, gcSummary); //Summary导航条.
            BindingSummarySearchPanel(btnQuery, btnEmpty, gcFindGroup);

            gvSummary.DoubleClick   += new EventHandler(OnSeeTask); //主表DoubleClict
            txt_DocDateFrom.DateTime = DateTime.Today.AddDays(-7);
            txt_DocDateTo.DateTime   = DateTime.Today.AddDays(1);   //查询条件


            DataBinder.BindingLookupEditDataSource(lookUpEditDocType, DataDictCache.Cache.TaskType, tb_CommonDataDict.NativeName, tb_CommonDataDict.DataCode);
            DataBinder.BindingLookupEditDataSource(lookUpEditDocStatus, DataDictCache.Cache.TaskStatus, tb_CommonDataDict.NativeName, tb_CommonDataDict.DataCode);
            DataBinder.BindingLookupEditDataSource(repositoryItemLookUpEditDocType, DataDictCache.Cache.TaskType, tb_CommonDataDict.NativeName, tb_CommonDataDict.DataCode);
            DataBinder.BindingLookupEditDataSource(repositoryItemLookUpEditDocStatus, DataDictCache.Cache.TaskStatus, tb_CommonDataDict.NativeName, tb_CommonDataDict.DataCode);

            _BLL.GetBusinessByKey("-", true); //加载一个空的业务对象.
            DoSearchSummary();
            ShowSummaryPage(true);            //一切初始化完毕后显示SummaryPage
        }
コード例 #10
0
        /// <summary>
        /// 初始化窗体///
        /// </summary>
        protected override void InitializeForm()
        {
            // //_BLL = new bllWMS_Bill();// 业务逻辑层实例
            _BLL                = new bllWMS_Task();
            _SummaryView        = new DevGridView(gvSummary);
            _ActiveEditor       = txtTaskId;
            _DetailGroupControl = panelControl1;

            base.InitializeForm(); //这行代码放到初始化变量后最好

            frmGridCustomize.RegisterGrid(gvSummary);
            if (SystemAuthentication.ButtonAuthorized("MenuItemTaskSee"))
            {
                frmGridCustomize.AddMenuItem(gvSummary, "任务查看", null, OnTaskSeeClick, true);
            }
            if (SystemAuthentication.ButtonAuthorized("MenuItemTaskAssign"))
            {
                frmGridCustomize.AddMenuItem(gvSummary, "任务下发", null, OnTaskAssignClick, true);
            }
            if (SystemAuthentication.ButtonAuthorized("MenuItemTaskCancel"))
            {
                frmGridCustomize.AddMenuItem(gvSummary, "任务取消", null, OnTaskCancelClick, true);
            }
            if (SystemAuthentication.ButtonAuthorized("MenuItemTaskManualAccount"))
            {
                frmGridCustomize.AddMenuItem(gvSummary, "手动过账", null, OnTaskAccountByManualClick, true);
            }
            if (SystemAuthentication.ButtonAuthorized("MenuItemTaskStatusModify"))
            {
                frmGridCustomize.AddMenuItem(gvSummary, "状态修改", null, OnTaskStatusModifyClick, true);
            }
            if (SystemAuthentication.ButtonAuthorized("MenuItemTaskStationModify"))
            {
                frmGridCustomize.AddMenuItem(gvSummary, "站台修改", null, OnTaskStationModifyClick, true);
            }
            if (SystemAuthentication.ButtonAuthorized("MenuItemTaskPortModify"))
            {
                frmGridCustomize.AddMenuItem(gvSummary, "出库口修改", null, OnTaskPortNumModifyClick, true);
            }
            if (SystemAuthentication.ButtonAuthorized("MenuItemTaskPriorityModify"))
            {
                frmGridCustomize.AddMenuItem(gvSummary, "优先级修改", null, OnTaskPriorityModifyClick, true);
            }



            DevStyle.SetGridControlLayout(gcSummary, false); //表格设置
            DevStyle.SetGridControlLayout(gcDetail, true);   //表格设置
            DevStyle.SetSummaryGridViewLayout(gvSummary);
            DevStyle.SetDetailGridViewLayout(gvDetail);
            //主表
            BindingSummaryNavigator(controlNavigatorSummary, gcSummary); //Summary导航条.
            BindingSummarySearchPanel(btnQuery, btnEmpty, gcFindGroup);
            // //从表
            // gcDetail.EmbeddedNavigator.ButtonClick += new NavigatorButtonClickEventHandler(this.OnEmbeddedNavigatorButtonClick); //表格按钮事件
            // gvDetail.CellValueChanged += new DevExpress.XtraGrid.Views.Base.CellValueChangedEventHandler(OnCellValueChanged); //表格值改变
            // gvSummary.DoubleClick += new EventHandler(OnGridViewDoubleClick); //主表DoubleClict
            txt_DocDateFrom.DateTime = DateTime.Today.AddDays(-7);
            txt_DocDateTo.DateTime   = DateTime.Today.AddDays(1); //查询条件


            DataBinder.BindingLookupEditDataSource(lookUpEditDocType, DataDictCache.Cache.TaskType, tb_CommonDataDict.NativeName, tb_CommonDataDict.DataCode);
            DataBinder.BindingLookupEditDataSource(lookUpEditDocStatus, DataDictCache.Cache.TaskStatus, tb_CommonDataDict.NativeName, tb_CommonDataDict.DataCode);
            DataBinder.BindingLookupEditDataSource(repositoryItemLookUpEditDocType, DataDictCache.Cache.TaskType, tb_CommonDataDict.NativeName, tb_CommonDataDict.DataCode);
            DataBinder.BindingLookupEditDataSource(repositoryItemLookUpEditDocStatus, DataDictCache.Cache.TaskStatus, tb_CommonDataDict.NativeName, tb_CommonDataDict.DataCode);



            // (colIsId.ColumnEdit as RepositoryItemButtonEdit).ButtonClick += new ButtonPressedEventHandler(OnStockCode_ButtonClick);
            // (colIsId.ColumnEdit as RepositoryItemButtonEdit).Validating += new CancelEventHandler(OnStockCode_Validating);
            //sqlConst=string.Format(" and Task_CreatorDate between '{0}' and '{1}'",txt_DocDateFrom.DateTime,txt_DocDateTo.DateTime);
            //((bllWMS_Task)_BLL).GetTask(sqlConst);
            _BLL.GetBusinessByKey("-", true); //加载一个空的业务对象.

            ShowSummaryPage(true);            //一切初始化完毕后显示SummaryPage
        }