Exemplo n.º 1
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");
        }
Exemplo n.º 2
0
        private void frmModifyLog_Load(object sender, EventArgs e)
        {
            this.InitButtons();

            txtDateTo.DateTime = DateTime.Today;
            DataTable BusinessTables = DataDictCache.GetCacheTableData("BUSINESSTABLE");

            DataBinder.BindingLookupEditDataSource(cbBusiness, BusinessTables, "FormCaption", "FormName");
        }
Exemplo n.º 3
0
        protected override void InitializeForm()
        {
            _SummaryView        = new DevGridView(gvSummary);//给成员变量赋值.每个业务窗体必需给这个变量赋值.
            _ActiveEditor       = txtCode;
            _DetailGroupControl = gcDetailEditor;
            _BLL = new bllSTACKER();

            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");
        }
Exemplo n.º 4
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");
        }
Exemplo n.º 5
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");
        }
Exemplo n.º 7
0
        private string GetAttributeName(string attributeCodes)
        {
            string[] codes = attributeCodes.Split(new string[] { "," }, StringSplitOptions.RemoveEmptyEntries);

            string        item;
            StringBuilder sb = new StringBuilder();

            foreach (string code in codes)
            {
                item = code;
                string    filter = tb_CustomerAttribute.AttributeCode + "='" + code + "'";
                DataRow[] rows   = DataDictCache.GetCacheTableData("COMPANYTYPE").Select(filter);
                if (rows.Length > 0)
                {
                    item = item + "=" + rows[0][tb_CustomerAttribute.NativeName].ToString();
                }
                sb.Append(item + ",");
            }

            return(sb.ToString());
        }
Exemplo n.º 8
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();
        }
Exemplo n.º 9
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();
        }