protected override void AddQueryControls(VLayoutPanel vPanel) { var layout = new LayoutManager("Main", mDFInfo, mQueryContainer); layout.Add("ID", mQueryContainer.Add(new DFTextBox(mDFInfo.Fields["ID"]), "ID")); layout["ID"].NotAutoAddToContainer = true; layout.Add("AccountingUnit_ID", new SimpleLabel("会计单位"), QueryCreator.DFChoiceBoxEnableMultiSelection(mDFInfo.Fields["AccountingUnit_ID"], mQueryContainer, "AccountingUnit_ID", B3FrameworksConsts.DataSources.授权会计单位全部)); layout["AccountingUnit_ID"].NotAutoAddToContainer = true; layout.Add("Department_ID", new SimpleLabel("部门"), QueryCreator.DFChoiceBoxEnableMultiSelection(mDFInfo.Fields["Department_ID"], mQueryContainer, "Department_ID", "授权部门")); layout["Department_ID"].NotAutoAddToContainer = true; layout.Add("Employee_ID", new SimpleLabel("经办人"), QueryCreator.DFChoiceBoxEnableMultiSelection(mDFInfo.Fields["Employee_ID"], mQueryContainer, "Employee_ID", "授权员工")); layout["Employee_ID"].NotAutoAddToContainer = true; layout.Add("ProductionUnit_ID", new SimpleLabel("生产单位"), QueryCreator.DFChoiceBoxEnableMultiSelection(mDFInfo.Fields["ProductionUnit_ID"], mQueryContainer, "ProductionUnit_ID", B3ProduceUnitedInfosDataSources.生产单位全部)); layout["ProductionUnit_ID"].NotAutoAddToContainer = true; layout.Add("Goods_ID", new SimpleLabel("存货"), QueryCreator.DFChoiceBoxEnableMultiSelection(mDFInfo.Fields["ID"], mQueryContainer, "Goods_ID", B3UnitedInfosConsts.DataSources.存货)); layout["Goods_ID"].NotAutoAddToContainer = true; layout.Add("GoodsProperty_ID", new SimpleLabel("存货属性"), QueryCreator.DFChoiceBoxEnableMultiSelection(mDFInfo.Fields["ID"], mQueryContainer, "GoodsProperty_ID", B3UnitedInfosConsts.DataSources.存货属性全部)); layout["GoodsProperty_ID"].NotAutoAddToContainer = true; layout.Add("BrandItem_ID", new SimpleLabel("品牌项"), QueryCreator.DFChoiceBoxEnableMultiSelection(mDFInfo.Fields["ID"], mQueryContainer, "BrandItem_ID", B3UnitedInfosConsts.DataSources.品牌项)); layout["BrandItem_ID"].NotAutoAddToContainer = true; layout.Add("ProductLine_ID", new SimpleLabel("产品线"), QueryCreator.DFChoiceBoxEnableMultiSelection(mDFInfo.Fields["ID"], mQueryContainer, "ProductLine_ID", B3UnitedInfosConsts.DataSources.产品线全部)); layout["ProductLine_ID"].NotAutoAddToContainer = true; layout.Add("Date", new SimpleLabel("生产日期"), QueryCreator.TimeRange(mDFInfo.Fields["Date"], mQueryContainer, "MinDate", "MaxDate")); layout["Date"].NotAutoAddToContainer = true; var state = mQueryContainer.Add(B3ButcheryCustomInputCreator.一般单据状态(mDFInfo.Fields["BillState"], true, false, true, true), "BillState"); ((ChoiceBox)state).Value = 单据状态.已审核.Value.ToString() + "|"; state.DisplayValue = "已审核;"; state.EnableInputArgument = true; layout.Add("BillState", state); layout["BillState"].NotAutoAddToContainer = true; var config = new AutoLayoutConfig { Cols = 2 }; config.Add("ID"); config.Add("AccountingUnit_ID"); config.Add("Department_ID"); config.Add("Employee_ID"); config.Add("ProductionUnit_ID"); config.Add("Goods_ID"); config.Add("GoodsProperty_ID"); config.Add("BrandItem_ID"); config.Add("ProductLine_ID"); config.Add("Date"); config.Add("BillState"); layout.Config = config; vPanel.Add(layout.CreateLayout()); }
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); }
void CreateDataRangePanel(HLayoutPanel hPanel) { hPanel.Add(new SimpleLabel(mainInfo.Fields["InStoreDate"].Prompt)); hPanel.Add(QueryCreator.TimeRange(mainInfo.Fields["InStoreDate"], mQueryContainer, "MinInStoreDate", "MaxInStoreDate")); }