예제 #1
0
        protected override void InitializeForm()
        {
            _SummaryView  = new DevGridView(gvSummary);//每个业务窗体必需给这个变量赋值.
            _ClassView    = new DevGridView(gridProfileClass);
            _ActiveEditor = ucClassFNumber;
            //_KeyEditor = txtDataCode;
            _DetailGroupControl = gcDetailEditor;
            _ClassDetial        = gcItemClassEditor;
            _ActiveEditor       = gcAttributeEditor;
            _BLL = new bllDatabaseSet();
            //_BLL = new bllCommonDataDict(); //业务逻辑实例
            gvSummary.DoubleClick      += new EventHandler(OnGridViewDoubleClick); //主表DoubleClict
            gcProfileClass.DoubleClick += gcProfileClass_DoubleClick;
            //绑定相关缓存数据
            ucClassCTable.lookUpEdit.Properties.Columns.Add(new DevExpress.XtraEditors.Controls.LookUpColumnInfo("TBNAME", (int)(ucClassCTable.Width - ucClassCTable.LabelWidth), "数据库"));
            ucClassTable.lookUpEdit.Properties.Columns.Add(new DevExpress.XtraEditors.Controls.LookUpColumnInfo("TBNAME", (int)(ucClassTable.Width - ucClassTable.LabelWidth), "数据库"));
            DataBinder.BindingLookupEditDataSource(ucClassCTable.lookUpEdit, bllComDataBaseTool.getTable("t_%"), "TBNAME", "TBNAME");
            DataBinder.BindingLookupEditDataSource(ucClassTable.lookUpEdit, bllComDataBaseTool.getTable("t_%"), "TBNAME", "TBNAME");

            ShowSummary();

            if (_FormMenuName != string.Empty)
            {
                this._FunctionID = bllComDataBaseTool.GetFunctionID(this._FormMenuName);
            }
            this.Tag = this._FunctionID;
            base.InitializeForm();
        }
예제 #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       = txtCode;
            _KeyEditor          = txtCode;
            _DetailGroupControl = gcDetailEditor;

            _BLL = new bllWMS_StockHistory(); //业务逻辑实例
            base.InitializeForm();

            frmGridCustomize.RegisterGrid(gvSummary);
            //frmGridCustomize.AddMenuItem(gvSummary, "创建出库任务", null, OnCreateOutClick, true);

            BindingSummarySearchPanel(btnQuery, btnEmpty, panelSearch);//绑定搜索面板

            //DataBinder.BindingLookupEditDataSource(repositoryItemLookUpEdit1, DataDictCache.Cache.StockType, tb_CommonDataDict.NativeName, tb_CommonDataDict.DataCode);

            //DataTable dt = DataDictCache.Cache.StockType.Clone();
            //DataRow dr1 = dt.NewRow();
            //dr1["DataCode"] = "3";
            //dr1["NativeName"] = "入库记录";
            //DataRow dr2 = dt.NewRow();
            //dr2["DataCode"] = "4";
            //dr2["NativeName"] = "出库记录";
            //dt.Rows.Add(dr1);
            //dt.Rows.Add(dr2);
            //DataBinder.BindingLookupEditDataSource(repositoryItemLookUpEdit1, dt, tb_CommonDataDict.NativeName, tb_CommonDataDict.DataCode);
            //DataBinder.BindingLookupEditDataSource(lookUpEdit3,dt, tb_CommonDataDict.NativeName, tb_CommonDataDict.DataCode);
            //DataBinder.BindingLookupEditDataSource(repositoryItemLookUpEdit2, DataDictCache.Cache.StockStatus, tb_CommonDataDict.NativeName, tb_CommonDataDict.DataCode);
            //DataBinder.BindingLookupEditDataSource(lookUpEdit1, DataDictCache.Cache.StockStatus, tb_CommonDataDict.NativeName, tb_CommonDataDict.DataCode);
            //DataBinder.BindingLookupEditDataSource(lookUpEdit_PalletSpec, DataDictCache.Cache.PalletSpec, tb_CommonDataDict.NativeName, tb_CommonDataDict.DataCode);
            //DataBinder.BindingLookupEditDataSource(lookUpEditInvType, dt, tb_CommonDataDict.NativeName, tb_CommonDataDict.DataCode);

            gvSummary.DoubleClick += new EventHandler(OnGridViewDoubleClick); //主表DoubleClict;
        }
예제 #4
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
        }
예제 #5
0
        protected override void InitializeForm()
        {
            _SummaryView  = new DevGridView(gvSummary);//每个业务窗体必需给这个变量赋值.
            _ClassView    = new DevGridView(gridProfileClass);
            _ActiveEditor = txtNativeName;
            //_KeyEditor = txtDataCode;
            _DetailGroupControl = gcDetailEditor;
            _BLL = new bllCommonDataDict();                                   //业务逻辑实例
            gvSummary.DoubleClick += new EventHandler(OnGridViewDoubleClick); //主表DoubleClict
            //绑定相关缓存数据
            //DataBinder.BindingLookupEditDataSource(txt_CommonType, DataDictCache.Cache.CommonDataDictType, "TypeName", "DataType");
            DataBinder.BindingLookupEditDataSource(txtDataType, DataDictCache.Cache.CommonDataDictType, "FTYPENAME", "FID");

            //DataBinder.BindingLookupEditDataSource(colDataType.ColumnEdit as RepositoryItemLookUpEdit,
            //    DataDictCache.Cache.CommonDataDictType, "FTYPENAME", "FID");

            gcSummary.DataSource      = DataDictCache.Cache.CommonDataDict;
            gcProfileClass.DataSource = DataDictCache.Cache.CommonDataDictType;
            if (_FormMenuName != string.Empty)
            {
                this._FunctionID = bllComDataBaseTool.GetFunctionID(this._FormMenuName);
            }
            this.Tag = this._FunctionID;
            base.InitializeForm();
        }
예제 #6
0
        protected override void InitializeForm()
        {
            _SummaryView        = new DevGridView(gvSummary);//每个业务窗体必需给这个变量赋值.
            _ActiveEditor       = txtCode;
            _KeyEditor          = txtCode;
            _DetailGroupControl = gcDetailEditor;
            _BLL         = new bllSUPPLIERCUSTOMER();   //业务逻辑实例
            _BllCustomer = _BLL as bllSUPPLIERCUSTOMER; //本窗体引用

            base.InitializeForm();

            //绑定相关缓存数据
            //search
            DataBinder.BindingLookupEditDataSource(txt_Attr, DataDictCache.GetCacheConfigData("COMPANYTYPE"), "NAME", "ID");

            //summary
            DataBinder.BindingLookupEditDataSource(LookUpEdit_TYPE_CFG, DataDictCache.GetCacheConfigData("COMPANYTYPE"), "NAME", "ID");
            DataBinder.BindingLookupEditDataSource(LookUpEdit_WAREHOUSEID, DataDictCache.GetCacheTableData("WAREHOUSE"), "NAME", "ID");
            DataBinder.BindingLookupEditDataSource(LookUpEdit_COMPANYID, DataDictCache.GetCacheTableData("COMPANY"), "NAME", "ID");

            //detail
            DataBinder.BindingLookupEditDataSource(lookUpEdit1_typecfg, DataDictCache.GetCacheConfigData("COMPANYTYPE"), "NAME", "ID");
            DataBinder.BindingLookupEditDataSource(lookUpEdit1_warehouse, DataDictCache.GetCacheTableData("WAREHOUSE"), "NAME", "ID");
            DataBinder.BindingLookupEditDataSource(lookUpEdit1_company, DataDictCache.GetCacheTableData("COMPANY"), "NAME", "ID");
        }
예제 #7
0
        protected override void InitializeForm()
        {
            _SummaryView        = new DevGridView(gvSummary);//给成员变量赋值.每个业务窗体必需给这个变量赋值.
            _ActiveEditor       = txtCode;
            _DetailGroupControl = gcDetailEditor;
            _BLL = new bllPerson();

            base.InitializeForm();
        }
예제 #8
0
        protected override void InitializeForm()
        {
            _SummaryView        = new DevGridView(gvSummary);//给成员变量赋值.每个业务窗体必需给这个变量赋值.
            _ActiveEditor       = txtCode;
            _DetailGroupControl = gcDetailEditor;
            _BLL = new bllPALLETSPEC();

            base.InitializeForm();

            BindingSummarySearchPanel(btnQuery, btnEmpty, panelSearch);//绑定搜索面板
        }
예제 #9
0
        protected override void InitializeForm()
        {
            _SummaryView        = new DevGridView(gvSummary);//每个业务窗体必需给这个变量赋值.
            _ActiveEditor       = txtPcode;
            _KeyEditor          = txtPcode;
            _DetailGroupControl = gcDetailEditor;
            _BLL         = new bllProduct();   //业务逻辑实例
            _BllInstance = _BLL as bllProduct; //本窗体引用

            base.InitializeForm();
        }
예제 #10
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);
 }
예제 #11
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
        }
예제 #12
0
        protected override void InitializeForm()
        {
            _SummaryView        = new DevGridView(gvSummary);//给成员变量赋值.每个业务窗体必需给这个变量赋值.
            _ActiveEditor       = txtCode;
            _DetailGroupControl = gcDetailEditor;
            _BLL = new bllPORT();

            base.InitializeForm();

            BindingSummarySearchPanel(btnQuery, btnEmpty, panelSearch);//绑定搜索面板

            //DataBinder.BindingLookupEditDataSource(S_ROADWAYID, DataDictCache.GetCacheTableData("ROADWAY"), "NAME", "ID");
            //DataBinder.BindingLookupEditDataSource(E_ROADWAYID, DataDictCache.GetCacheTableData("ROADWAY"), "NAME", "ID");
            //DataBinder.BindingLookupEditDataSource(R_ROADWAYID, DataDictCache.GetCacheTableData("ROADWAY"), "NAME", "ID");
        }
예제 #13
0
        protected override void InitializeForm()
        {
            _SummaryView        = new DevGridView(gvSummary); //指定Grid.
            _ActiveEditor       = txtCode;                    //首先获得焦点框
            _KeyEditor          = txtCode;                    //新增时不能修改框
            _DetailGroupControl = gcDetailEditor;             //数据列表区主容器
            _BLL         = new bllCustomer();                 //业务逻辑实例
            _BllCustomer = _BLL as bllCustomer;               //本窗体引用

            base.InitializeForm();

            //绑定相关缓存数据   下拉框 选择列表
            DataBinder.BindingLookupEditDataSource(txt_Attr, DataDictCache.Cache.CustomerAttributes, "NativeName", "AttributeCode");
            DataBinder.BindingLookupEditDataSource(txtBank, DataDictCache.Cache.Bank, "NativeName", "DataCode");
            ucCusAttributes.BindingDataSource(DataDictCache.Cache.CustomerAttributes, "AttributeCode", "NativeName");
        }
예제 #14
0
        //初始化窗体
        protected override void InitializeForm()
        {
            _DetailGroupControl = pnlDetail;
            _SummaryView        = new DevGridView(gvMenus);

            _BLL = new bllMenuMgr();
            _BLL.GetSummaryData(true);
            gcMenus.DataSource = _BLL.SummaryTable;

            tpSummary.PageVisible      = true;
            tpDetail.PageVisible       = false;
            tcBusiness.ShowTabHeader   = DefaultBoolean.False;
            tcBusiness.SelectedTabPage = tpSummary;

            base.InitializeForm();
        }
예제 #15
0
        protected override void InitializeForm()
        {
            _SummaryView  = new DevGridView(gvSummary);//每个业务窗体必需给这个变量赋值.
            _ActiveEditor = txtNativeName;
            // _KeyEditor = txtDataCode;
            _DetailGroupControl = gcDetailEditor;
            _BLL = new bllCommonDataDict(); //业务逻辑实例

            //绑定相关缓存数据
            DataBinder.BindingLookupEditDataSource(txt_CommonType, DataDictCache._DataDictType, "NAME", "ID");
            DataBinder.BindingLookupEditDataSource(txtDataType, DataDictCache._DataDictType, "NAME", "ID");

            DataBinder.BindingLookupEditDataSource(repositoryItemLookUpEdit1 as RepositoryItemLookUpEdit,
                                                   DataDictCache._DataDictType, "NAME", "ID");

            base.InitializeForm();
        }
예제 #16
0
        protected override void InitializeForm()
        {
            _SummaryView        = new DevGridView(gvSummary);//每个业务窗体必需给这个变量赋值.
            _ActiveEditor       = txtCODE;
            _KeyEditor          = txtCODE;
            _DetailGroupControl = gcDetailEditor;
            _BLL         = new bllZONE();   //业务逻辑实例
            _BllInstance = _BLL as bllZONE; //本窗体引用

            base.InitializeForm();

            BindingSummarySearchPanel(btnQuery, btnEmpty, panelSearch);//绑定搜索面板

            DataBinder.BindingLookupEditDataSource(S_WAREHOUSEID, DataDictCache.GetCacheTableData("WAREHOUSE"), "NAME", "ID");
            DataBinder.BindingLookupEditDataSource(lookUpEdit1, DataDictCache.GetCacheTableData("WAREHOUSE"), "NAME", "ID");
            DataBinder.BindingLookupEditDataSource(repositoryItemLookUpEdit1, DataDictCache.GetCacheTableData("WAREHOUSE"), "NAME", "ID");
        }
예제 #17
0
        protected override void InitializeForm()
        {
            _SummaryView        = new DevGridView(gvSummary);//每个业务窗体必需给这个变量赋值.
            _ActiveEditor       = txtPcode;
            _KeyEditor          = txtPcode;
            _DetailGroupControl = gcDetailEditor;

            _BLL         = new bllITEM();   //业务逻辑实例
            _BllInstance = _BLL as bllITEM; //本窗体引用

            base.InitializeForm();


            DataBinder.BindingLookupEditDataSource(repositoryItemLookUpEdit_W, DataDictCache.GetCacheTableData("WAREHOUSE"), "NAME", "ID");
            DataBinder.BindingLookupEditDataSource(repositoryItemLookUpEdit_C, DataDictCache.GetCacheTableData("COMPANY"), "NAME", "ID");
            DataBinder.BindingLookupEditDataSource(lookUpEdit1_warehouse, DataDictCache.GetCacheTableData("WAREHOUSE"), "NAME", "ID");
            DataBinder.BindingLookupEditDataSource(lookUpEdit1_company, DataDictCache.GetCacheTableData("COMPANY"), "NAME", "ID");
        }
        protected override void InitializeForm()
        {
            _SummaryView = new DevGridView(gvSummary);//每个业务窗体必需给这个变量赋值.
            //_ActiveEditor = txtCODE;
            //_KeyEditor = txtCODE;
            _DetailGroupControl = gcDetailEditor;
            _BLL         = new bllITEM_PALLET_CAPACITY();   //业务逻辑实例
            _BllInstance = _BLL as bllITEM_PALLET_CAPACITY; //本窗体引用

            base.InitializeForm();

            BindingSummarySearchPanel(btnQuery, btnEmpty, panelSearch);//绑定搜索面板

            DataBinder.BindingLookupEditDataSource(S_PALLETSPECID, DataDictCache.GetCacheTableData("PALLETSPEC"), "NAME", "ID");
            DataBinder.BindingLookupEditDataSource(E_PALLETSPECID, DataDictCache.GetCacheTableData("PALLETSPEC"), "NAME", "ID");
            DataBinder.BindingLookupEditDataSource(R_PALLETSPECID, DataDictCache.GetCacheTableData("PALLETSPEC"), "NAME", "ID");
            DataBinder.BindingLookupEditDataSource(E_ITEMID, DataDictCache.GetCacheTableData("ITEM"), "NAME", "ID");
            DataBinder.BindingLookupEditDataSource(S_ITEMID, DataDictCache.GetCacheTableData("ITEM"), "NAME", "ID");
            DataBinder.BindingLookupEditDataSource(R_ITEMID, DataDictCache.GetCacheTableData("ITEM"), "NAME", "ID");
        }
예제 #19
0
        /// <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
        }
예제 #20
0
        protected override void InitializeForm()
        {
            _SummaryView        = new DevGridView(gvSummary);//给成员变量赋值.每个业务窗体必需给这个变量赋值.
            _ActiveEditor       = txtCode;
            _DetailGroupControl = gcDetailEditor;
            _BLL = new bllPALLET();

            base.InitializeForm();

            BindingSummarySearchPanel(btnQuery, btnEmpty, panelSearch);//绑定搜索面板

            DataBinder.BindingLookupEditDataSource(txt_Spec, DataDictCache.GetCacheTableData("PALLETSPEC"), "NAME", "ID");
            DataBinder.BindingLookupEditDataSource(rItemLookUpEdit_Spec, DataDictCache.GetCacheTableData("PALLETSPEC"), "NAME", "ID");
            DataBinder.BindingLookupEditDataSource(lookUpEdit1, DataDictCache.GetCacheTableData("PALLETSPEC"), "NAME", "ID");
            DataBinder.BindingLookupEditDataSource(lookUpEdit8, DataDictCache.GetCacheTableData("PALLETSPEC"), "NAME", "ID");

            DataBinder.BindingLookupEditDataSource(lookUpEdit2, DataDictCache.GetCacheConfigData("PALLET_STATUS"), "NAME", "ID");
            DataBinder.BindingLookupEditDataSource(txtPalletStatus, DataDictCache.GetCacheConfigData("PALLET_STATUS"), "NAME", "ID");
            DataBinder.BindingLookupEditDataSource(rItemLookUpEdit_status, DataDictCache.GetCacheConfigData("PALLET_STATUS"), "NAME", "ID");

            labelAdmin.Visible = Loginer.CurrentUser.IsAdmin();
        }
예제 #21
0
        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); }
        }
예제 #22
0
        //初始化窗体
        protected override void InitializeForm()
        {
            _DetailGroupControl = pnlDetail;
            _SummaryView        = new DevGridView(gvprofile);

            _BLL = new bllSystemProfile();
            _BLL.GetSystemProfile();
            gcProfileClass.DataSource = _BLL._SysClass;
            gcprofile.DataSource      = _BLL.SummaryTable;
            _ClassView = new DevGridView(gridProfileClass);
            //绑定从表
            DataRow dr = _ClassView.GetDataRow(_ClassView.FocusedRowHandle);

            BindGvprofile(dr[tb_sys_SystemProfile.FCategory].ToString());
            gvprofile.Columns[2].OptionsColumn.AllowEdit = false;

            tpSummary.PageVisible      = true;
            tpDetail.PageVisible       = false;
            tcBusiness.ShowTabHeader   = DefaultBoolean.False;
            tcBusiness.SelectedTabPage = tpSummary;

            base.InitializeForm();
        }
예제 #23
0
        protected override void InitializeForm()
        {
            _SummaryView        = new DevGridView(gvSummary);//每个业务窗体必需给这个变量赋值.
            _ActiveEditor       = txtCODE;
            _KeyEditor          = txtCODE;
            _DetailGroupControl = gcDetailEditor;
            _BLL         = new bllWARECELL();   //业务逻辑实例
            _BllInstance = _BLL as bllWARECELL; //本窗体引用
            base.InitializeForm();

            BindingSummarySearchPanel(btnQuery, btnEmpty, panelSearch);//绑定搜索面板


            DataBinder.BindingLookupEditDataSource(R_PALLETID, DataDictCache.GetCacheTableData("PALLET"), "NAME", "ID");
            DataBinder.BindingLookupEditDataSource(R_ROADWAYID, DataDictCache.GetCacheTableData("ROADWAY"), "NAME", "ID");
            DataBinder.BindingLookupEditDataSource(R_STATUS_CFG, DataDictCache.GetCacheConfigData("WARECELL_STATUS"), "NAME", "ID");
            DataBinder.BindingLookupEditDataSource(R_WARECELLSPECID, DataDictCache.GetCacheTableData("WARECELLSPEC"), "NAME", "ID");
            DataBinder.BindingLookupEditDataSource(R_ZONEID, DataDictCache.GetCacheTableData("ZONE"), "NAME", "ID");

            DataBinder.BindingLookupEditDataSource(S_PALLETID, DataDictCache.GetCacheTableData("PALLET"), "NAME", "ID");
            DataBinder.BindingLookupEditDataSource(S_ROADWAYID, DataDictCache.GetCacheTableData("ROADWAY"), "NAME", "ID");
            DataBinder.BindingLookupEditDataSource(S_STATUS_CFG, DataDictCache.GetCacheConfigData("WARECELL_STATUS"), "NAME", "ID");
            DataBinder.BindingLookupEditDataSource(S_WARECELLSPECID, DataDictCache.GetCacheTableData("WARECELLSPEC"), "NAME", "ID");
            DataBinder.BindingLookupEditDataSource(S_ZONEID, DataDictCache.GetCacheTableData("ZONE"), "NAME", "ID");

            DataBinder.BindingLookupEditDataSource(E_PALLETID, DataDictCache.GetCacheTableData("PALLET"), "NAME", "ID");
            DataBinder.BindingLookupEditDataSource(E_ROADWAYID, DataDictCache.GetCacheTableData("ROADWAY"), "NAME", "ID");
            DataBinder.BindingLookupEditDataSource(E_STATUS_CFG, DataDictCache.GetCacheConfigData("WARECELL_STATUS"), "NAME", "ID");
            DataBinder.BindingLookupEditDataSource(E_WARECELLSPECID, DataDictCache.GetCacheTableData("WARECELLSPEC"), "NAME", "ID");
            DataBinder.BindingLookupEditDataSource(E_ZONEID, DataDictCache.GetCacheTableData("ZONE"), "NAME", "ID");


            DataBinder.BindingLookupEditDataSource(P_WARECELLSPECID, DataDictCache.GetCacheTableData("WARECELLSPEC"), "NAME", "ID");
            DataBinder.BindingLookupEditDataSource(P_ZONEID, DataDictCache.GetCacheTableData("ZONE"), "NAME", "ID");

            labelAdmin.Visible = Loginer.CurrentUser.IsAdmin();
        }
예제 #24
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); }
        }
예제 #25
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
        }
예제 #26
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
        }