Exemplo n.º 1
0
        private void AddQueryControl(VLayoutPanel vPanel)
        {
            var mDFInfo = DFInfo.Get(typeof(Goods_Accounting_Store));
            var manager = new LayoutManager("", mDFInfo, _mQueryContainer);

            manager.Add("Goods_ID", QueryCreator.DFChoiceBox(mDFInfo.Fields["Goods_ID"], B3UnitedInfosConsts.DataSources.存货全部));

            manager.Add("Store_ID", QueryCreator.DFChoiceBox(mDFInfo.Fields["Store_ID"], B3FrameworksConsts.DataSources.授权仓库));

            manager.Add("AccountingUnit_ID", QueryCreator.DFChoiceBox(mDFInfo.Fields["AccountingUnit_ID"], B3FrameworksConsts.DataSources.授权会计单位));

            manager.Add("GoodsPropertyCatalog_ID", new SimpleLabel("存货属性分类"), _goodsPropertyCatalogBox = QueryCreator.DFChoiceBox(mDFInfo.Fields["AccountingUnit_ID"], B3UnitedInfosConsts.DataSources.存货属性分类));

            manager.Add("GoodsProperty_ID", new SimpleLabel("存货属性"), QueryCreator.DFChoiceBox(mDFInfo.Fields["AccountingUnit_ID"], B3UnitedInfosConsts.DataSources.存货属性全部));

            var config = new AutoLayoutConfig
            {
                Cols = 8,
                DefaultLabelWidth = 4,
            };

            config.Add("Goods_ID");
            config.Add("Store_ID");
            config.Add("AccountingUnit_ID");
            config.Add("GoodsPropertyCatalog_ID");
            config.Add("GoodsProperty_ID");
            manager.Config = config;
            vPanel.Add(manager.CreateLayout());
            var hPanel = vPanel.Add(new HLayoutPanel());

            hPanel.Add(new TSButton("开始查询", delegate { StartQuery(); }));
            hPanel.Add(new RedirectTSButton("清除条件"));
        }
Exemplo n.º 2
0
        protected override void CreateQuery(VLayoutPanel vPanel)
        {
            var layoutManager = new LayoutManager("", mDFInfo, mQueryContainer);

            layoutManager.Add("存货属性分类", new SimpleLabel("属性分类"), QueryCreator.DFChoiceBox(mDFInfo.Fields["ID"], B3UnitedInfosConsts.DataSources.存货属性分类));
            layoutManager.Add("ProductLine_ID", mQueryContainer.Add(QueryCreator.DFChoiceBox(mDFInfo.Fields["ProductLine_ID"], B3UnitedInfosConsts.DataSources.产品线全部), "ProductLine_ID"));
            layoutManager["ProductLine_ID"].NotAutoAddToContainer = true;
            var config = new AutoLayoutConfig {
                Cols = 8, DefaultLabelWidth = 4
            };

            config.Add("Name");
            config.Add("Spec");
            config.Add("Code");
            config.Add("GoodsProperty_ID");
            config.Add("存货属性分类");
            config.Add("ProductLine_ID");
            layoutManager.Config = config;

            var section = mPageLayoutManager.AddSection(B3FrameworksConsts.PageLayouts.QueryConditions, B3FrameworksConsts.PageLayouts.QueryConditions_DisplayName);

            section.ApplyLayout(layoutManager, config, mPageLayoutManager, mDFInfo as DFInfo);
            vPanel.Add(layoutManager.CreateLayout());
            base.CreateQuery(vPanel);
        }
Exemplo n.º 3
0
 protected override void AddQueryControls(VLayoutPanel vPanel)
 {
     vPanel.Add(CreateDefaultBaseInfoQueryControls((panel, config) =>
     {
         panel.Add("ProductLine_ID", QueryCreator.DFChoiceBox(mDFInfo.Fields["ProductLine_ID"], B3ButcheryDataSource.生产线));
         panel.Add("ChargePerson_ID", QueryCreator.DFChoiceBox(mDFInfo.Fields["ChargePerson_ID"], DataKind.授权员工全部));
         config.AddBefore("ProductLine_ID", "Remark");
         config.AddBefore("ChargePerson_ID", "ProductLine_ID");
     }));
 }
Exemplo n.º 4
0
 protected override void AddQueryControls(VLayoutPanel vPanel)
 {
     vPanel.Add(CreateDefaultBaseInfoQueryControls((layoutManager, config) =>
     {
         layoutManager.Add("存货属性分类", new SimpleLabel("属性分类"), QueryCreator.DFChoiceBox(mDFInfo.Fields["ID"], B3UnitedInfosConsts.DataSources.存货属性分类));
         config.AddAfter("GoodsProperty_ID", "ID");
         config.AddBefore("存货属性分类", "GoodsProperty_ID");
         config.Add("ProductShift_ID");
         config.Add("PackageModel");
     }));
 }
Exemplo n.º 5
0
        protected override void AddQueryControls(VLayoutPanel vPanel)
        {
            var customPanel = new LayoutManager("Main", mainInfo, mQueryContainer);

            customPanel.Add("ID", QueryCreator.DFTextBox(mainInfo.Fields["ID"]));
            customPanel.Add("AccountingUnit_ID", QueryCreator.DFChoiceBoxEnableMultiSelection(mainInfo.Fields["AccountingUnit_ID"], mQueryContainer, "AccountingUnit_ID", DataKind.授权会计单位全部));
            customPanel["AccountingUnit_ID"].NotAutoAddToContainer = true;
            customPanel.Add("Department_ID", QueryCreator.DFChoiceBoxEnableMultiSelection(mainInfo.Fields["Department_ID"], mQueryContainer, "Department_ID", DataKind.授权部门全部));
            customPanel["Department_ID"].NotAutoAddToContainer = true;
            customPanel.Add("Store_ID", _storeInput            = QueryCreator.DFChoiceBoxEnableMultiSelection(mainInfo.Fields["Store_ID"], mQueryContainer, "Store_ID", DataKind.授权仓库全部), false);
            customPanel["Store_ID"].NotAutoAddToContainer      = true;
            customPanel.Add("InStoreType_ID", QueryCreator.DFChoiceBoxEnableMultiSelection(mainInfo.Fields["InStoreType_ID"], mQueryContainer, "InStoreType_ID", B3ButcheryDataSource.屠宰分割入库类型全部));
            customPanel["InStoreType_ID"].NotAutoAddToContainer = true;
            customPanel.Add("CheckDate", QueryCreator.DateRange(mainInfo.Fields["CheckDate"], mQueryContainer, "MinCheckDate", "MaxCheckDate"));

            customPanel.Add("InStoreDate", new SimpleLabel("生产日期"), QueryCreator.DateRange(detailInfo.Fields["ProductionDate"], mQueryContainer, "MinProductionDate", "MaxProductionDate"));
            customPanel.Add("ProductPlan_ID", new SimpleLabel("生产计划号"), QueryCreator.DFChoiceBoxEnableMultiSelection(detailInfo.Fields["ProductPlan_ID"], mQueryContainer, "ProductPlan_ID", B3ButcheryDataSource.计划号));
            customPanel["ProductPlan_ID"].NotAutoAddToContainer = true;
            customPanel.Add("Remark", QueryCreator.DFTextBox(mainInfo.Fields["Remark"]));
            DFChoiceBox goodsInput;

            customPanel.Add("Goods_ID", new SimpleLabel("存货名称"), goodsInput = QueryCreator.DFChoiceBoxEnableMultiSelection(detailInfo.Fields["Goods_ID"], mQueryContainer, "Goods_ID", B3ButcheryDataSource.存货带编号全部));
            goodsInput.PlaceHolder = "名称 编号 简拼";
            customPanel["Goods_ID"].NotAutoAddToContainer = true;
            customPanel.Add("Origin", new SimpleLabel("存货产地"), goodsOrigin   = QueryCreator.DFTextBox(detailInfo.Fields["Goods_Code"]));
            customPanel.Add("Goods_Name", new SimpleLabel("存货名称"), goodsName = QueryCreator.DFTextBox(detailInfo.Fields["Goods_Name"]));
            customPanel.Add("Goods_Code", new SimpleLabel("存货编号"), QueryCreator.DFTextBox(detailInfo.Fields["Goods_Code"]));
            customPanel.Add("Goods_Brand", new SimpleLabel("存货品牌"), QueryCreator.DFChoiceBox(detailInfo.Fields["Goods_Name"], B3ButcheryDataSource.存货品牌));
            customPanel.Add("GoodsProperty_ID", new SimpleLabel("存货属性"), QueryCreator.DFChoiceBox(detailInfo.Fields["ID"], B3UnitedInfos.B3UnitedInfosConsts.DataSources.存货属性全部));
            customPanel.Add("PropertyCatalog_ID", new SimpleLabel("属性分类"), QueryCreator.DFChoiceBox(detailInfo.Fields["ID"], B3UnitedInfos.B3UnitedInfosConsts.DataSources.存货属性分类全部));
            customPanel.Add("DRemark", new SimpleLabel("备注"), QueryCreator.DFTextBox(detailInfo.Fields["Remark"]));
            customPanel.Add("CargoSpace_ID", new SimpleLabel("货位"), cargoSpaceName = QueryCreator.DFChoiceBoxEnableMultiSelection(detailInfo.Fields["CargoSpace_ID"], mQueryContainer, "CargoSpace_ID", B3ButcheryDataSource.货位), false);
            customPanel["CargoSpace_ID"].NotAutoAddToContainer = true;

            customPanel.Add("ProductLine_ID", new SimpleLabel("产品线"), _productLine = QueryCreator.DFChoiceBoxEnableMultiSelection(detailInfo.Fields["ID"], mQueryContainer, "ProductLine_ID", B3UnitedInfosConsts.DataSources.产品线全部));
            customPanel["ProductLine_ID"].NotAutoAddToContainer = true;

            customPanel.Add("ProductLineCategory_ID", new SimpleLabel("产品线分类"), _producttypeLine = QueryCreator.DFChoiceBoxEnableMultiSelection(detailInfo.Fields["ID"], mQueryContainer, "ProductLineCategory_ID", B3UnitedInfosConsts.DataSources.产品线分类));
            customPanel["ProductLineCategory_ID"].NotAutoAddToContainer = true;



            AddOtherQuery(customPanel, mainInfo);
            customPanel.Add("BillState", QueryCreator.一般单据状态(mainInfo.Fields["BillState"]));
            if (_useBrand)
            {
                customPanel.Add("BrandItem_ID", new SimpleLabel("品牌项"), QueryCreator.DFChoiceBoxEnableMultiSelection(detailInfo.Fields["ID"], B3UnitedInfosConsts.DataSources.品牌项));
            }
            var config = customPanel.CreateDefaultConfig(4);

            config.Expand = false;
            TagWebUtil.AddTagQueryInput(mDmoTypeID, customPanel, config, mQueryContainer);
            vPanel.Add(customPanel.CreateLayout());
        }
Exemplo n.º 6
0
 protected override void AddQueryControls(VLayoutPanel vPanel)
 {
     vPanel.Add(CreateDefaultBillQueryControls((panel, config) =>
     {
         panel.Add("AccountingUnit_ID", QueryCreator.DFChoiceBox(mDFInfo.Fields["AccountingUnit_ID"], B3FrameworksConsts.DataSources.授权会计单位全部));
         panel.Add("Department_ID", QueryCreator.DFChoiceBox(mDFInfo.Fields["Department_ID"], B3FrameworksConsts.DataSources.授权部门全部));
         panel.Add("Store_ID", QueryCreator.DFChoiceBox(mDFInfo.Fields["Store_ID"], B3FrameworksConsts.DataSources.授权仓库));
         config.AddAfter("AccountingUnit_ID", "ID");
         config.AddAfter("Department_ID", "AccountingUnit_ID");
         config.AddAfter("StartDate", "Department_ID");
         config.AddAfter("Store_ID", "StartDate");
     }));
 }
Exemplo n.º 7
0
        protected override void AddQueryControls(VLayoutPanel vPanel)
        {
            vPanel.Add(CreateDefaultBillQueryControls((panel, config) =>
            {
                panel.Add("Time", QueryCreator.DateRange(mDFInfo.Fields["Time"], mQueryContainer, "MinTime", "MaxTime"));
                panel.Add("AccountingUnit_ID", QueryCreator.DFChoiceBox(mDFInfo.Fields["AccountingUnit_ID"], DataKind.授权会计单位全部));
                panel.Add("Department_ID", QueryCreator.DFChoiceBox(mDFInfo.Fields["Department_ID"], DataKind.授权部门全部));
                panel.Add("Employee_ID", QueryCreator.DFChoiceBox(mDFInfo.Fields["Employee_ID"], DataKind.授权员工全部));

                config.AddAfter("Time", "ID");
                config.AddAfter("AccountingUnit_ID", "Time");
                config.AddAfter("Department_ID", "AccountingUnit_ID");
                config.AddAfter("Employee_ID", "Department_ID");
            }));
        }
Exemplo n.º 8
0
        private void AddQueryControl(VLayoutPanel vPanel)
        {
            var manager = new LayoutManager("", mDFInfo, mQueryContainer);

            manager.Add("ID", new SimpleLabel("存货属性分类"), QueryCreator.DFChoiceBox(mDFInfo.Fields["ID"], B3UnitedInfos.B3UnitedInfosConsts.DataSources.存货属性分类));
            manager.Add("GoodsProperty_ID", QueryCreator.DFChoiceBox(mDFInfo.Fields["GoodsProperty_ID"], B3UnitedInfos.B3UnitedInfosConsts.DataSources.存货属性全部));
            var config = new AutoLayoutConfig
            {
                Cols = 8,
                DefaultLabelWidth = 4
            };

            config.Add("ID");
            config.Add("GoodsProperty_ID");
            config.Add("Name");
            config.Add("Code");
            manager.Config = config;
            vPanel.Add(manager.CreateLayout());
            var hParnel = vPanel.Add(new HLayoutPanel());

            hParnel.Add(new TSButton("开始查询", delegate { grid.Query = GetQueryDom(); grid.DataBind(); }));
            hParnel.Add(new RedirectTSButton("清空条件"));
        }
Exemplo n.º 9
0
        private void AddQueryControl(VLayoutPanel vPanel)
        {
            var mDFInfo = DFInfo.Get(typeof(Goods));
            var manager = new LayoutManager("", mDFInfo, _mQueryContainer);

            manager.Add("ID", new SimpleLabel("存货ID"), QueryCreator.DFTextBox(mDFInfo.Fields["ID"]));

            manager.Add("Name", QueryCreator.DFTextBox(mDFInfo.Fields["Name"]));

            manager.Add("Code", QueryCreator.DFTextBox(mDFInfo.Fields["Code"]));

            manager.Add("GoodsPropertyCatalog_ID", new SimpleLabel("存货属性分类"), _goodsPropertyCatalogBox = QueryCreator.DFChoiceBox(mDFInfo.Fields["ID"], B3UnitedInfosConsts.DataSources.存货属性分类));

            manager.Add("GoodsProperty_ID", new SimpleLabel("存货属性"), QueryCreator.DFChoiceBox(mDFInfo.Fields["ID"], B3UnitedInfosConsts.DataSources.存货属性全部));
            _checkBox = new DFCheckBox {
                Text = "隐藏已设置的存货", Checked = true
            };
            manager.Add("Stopped", _checkBox, false, true);
            var config = new AutoLayoutConfig
            {
                Cols = 8,
                DefaultLabelWidth = 4,
            };

            config.Add("ID");
            config.Add("Name");
            config.Add("Code");
            config.Add("GoodsPropertyCatalog_ID");
            config.Add("GoodsProperty_ID");
            config.Add("Stopped");
            manager.Config = config;
            vPanel.Add(manager.CreateLayout());
            var hPanel = vPanel.Add(new HLayoutPanel());

            hPanel.Add(new TSButton("开始查询", delegate { StartQuery(); }));
            hPanel.Add(new RedirectTSButton("清除条件"));
        }
Exemplo n.º 10
0
        protected override void CreateQuery(VLayoutPanel vPanel)
        {
            var layoutManager = new LayoutManager("", mDFInfo, mQueryContainer);

            layoutManager.Add("BrandItem_ID", new SimpleLabel("品牌"), QueryCreator.DFChoiceBox(mDFInfo.Fields["ID"], B3UnitedInfosConsts.DataSources.品牌项));
            layoutManager.Add("ProduceRequest", new SimpleLabel("工艺描述"), QueryCreator.DFTextBox(mDFInfo.Fields["Remark"]));
            layoutManager.Add("ProduceDate", new SimpleLabel("生产日期"), QueryCreator.TimeRange(mDFInfo.Fields["Date"], mQueryContainer, "MinProduceDate", "MaxProduceDate"));
            layoutManager.Add("DeliveryDate", new SimpleLabel("交付日期"), QueryCreator.TimeRange(mDFInfo.Fields["Date"], mQueryContainer, "MinDeliveryDate", "MaxDeliveryDate"));
            var config = new AutoLayoutConfig {
                Cols = 8, DefaultLabelWidth = 4
            };

            config.Add("ID");
            config.Add("CreateUser_Name");
            config.Add("CheckUser_Name");
            config.Add("AccountingUnit_ID");
            config.Add("Employee_ID");
            config.Add("Customer_ID");
            config.Add("Date");
            config.Add("ProductionUnit_ID");
            config.Add("BrandItem_ID");
            config.Add("ProduceRequest");
            config.Add("ProduceDate");
            config.Add("DeliveryDate");
            layoutManager.Config = config;

            var section = mPageLayoutManager.AddSection(B3FrameworksConsts.PageLayouts.QueryConditions, B3FrameworksConsts.PageLayouts.QueryConditions_DisplayName);

            section.ApplyLayout(layoutManager, config, mPageLayoutManager, mDFInfo as DFInfo);
            vPanel.Add(layoutManager.CreateLayout());
            _hideFinishedBill         = new DFCheckBox();
            _hideFinishedBill.Text    = "隐藏已转完工存货";
            _hideFinishedBill.Checked = true;
            vPanel.Add(_hideFinishedBill);
            base.CreateQuery(vPanel);
        }