| @ -0,0 +1,17 @@ | |||
| using System; | |||
| using System.Collections.Generic; | |||
| using System.Linq; | |||
| using System.Text; | |||
| using BWP.Web.Pages.B3CowButcherManage.Bills.Picking_; | |||
| using TSingSoft.WebControls2; | |||
| namespace BWP.Web.Pages.Overlays | |||
| { | |||
| class PickingEdit_Ext: PickingEdit | |||
| { | |||
| protected override void AddCustomerDetailColumns(DFEditGrid detailGrid) | |||
| { | |||
| detailGrid.Columns.Add(new DFEditGridColumn<DFTextBox>("CowBatch")); | |||
| } | |||
| } | |||
| } | |||
| @ -0,0 +1,26 @@ | |||
| using System; | |||
| using System.Collections.Generic; | |||
| using System.Linq; | |||
| using System.Text; | |||
| using BWP.B3CowButcherManage; | |||
| using BWP.B3Frameworks; | |||
| using BWP.Web.Layout; | |||
| using BWP.Web.Pages.B3CowButcherManage.Reports; | |||
| using BWP.Web.Utils; | |||
| using Forks.EnterpriseServices.DataForm; | |||
| using TSingSoft.WebControls2; | |||
| namespace BWP.Web.TypeIOCs | |||
| { | |||
| [TypeIOC(typeof(InputAnalyse), typeof(InputAnalyse.BeforeAddQueryControls))] | |||
| public class InputAnalyseReportBeforeAddQueryControls : InputAnalyse.BeforeAddQueryControls | |||
| { | |||
| public void Invoke(LayoutManager panel, AutoLayoutConfig config, IDFInfo dFInfo, QueryContainer queryContainer) | |||
| { | |||
| var batch = QueryCreator.DFChoiceBoxEnableMultiSelection(dFInfo.Fields["Code"], queryContainer, "ButcherBatch", B3CowButcherManageConsts.DataSources.屠宰批次); | |||
| panel.Add("ButcherBatch", new SimpleLabel("屠宰批次"), batch); | |||
| panel["ButcherBatch"].NotAutoAddToContainer = true; | |||
| config.Add("ButcherBatch"); | |||
| } | |||
| } | |||
| } | |||
| @ -0,0 +1,26 @@ | |||
| using System; | |||
| using System.Collections.Generic; | |||
| using System.Linq; | |||
| using System.Text; | |||
| using BWP.B3CowButcherManage; | |||
| using BWP.B3Frameworks; | |||
| using BWP.Web.Layout; | |||
| using BWP.Web.Pages.B3CowButcherManage.Reports; | |||
| using BWP.Web.Utils; | |||
| using Forks.EnterpriseServices.DataForm; | |||
| using TSingSoft.WebControls2; | |||
| namespace BWP.Web.TypeIOCs | |||
| { | |||
| [TypeIOC(typeof(PickingAnalyse), typeof(PickingAnalyse.BeforeAddQueryControls))] | |||
| public class PickingAnalyseBeforeAddQueryControls : PickingAnalyse.BeforeAddQueryControls | |||
| { | |||
| public void Invoke(LayoutManager panel, AutoLayoutConfig config, IDFInfo dFInfo, QueryContainer queryContainer) | |||
| { | |||
| var batch = QueryCreator.DFChoiceBoxEnableMultiSelection(dFInfo.Fields["Code"], queryContainer, "CowBatch", B3CowButcherManageConsts.DataSources.屠宰批次); | |||
| panel.Add("CowBatch", new SimpleLabel("屠宰批次"), batch); | |||
| panel["CowBatch"].NotAutoAddToContainer = true; | |||
| config.Add("CowBatch"); | |||
| } | |||
| } | |||
| } | |||
| @ -0,0 +1,19 @@ | |||
| using System; | |||
| using System.Collections.Generic; | |||
| using System.Linq; | |||
| using System.Text; | |||
| using BWP.B3Frameworks; | |||
| using BWP.Web.Pages.B3CowButcherManage.Reports; | |||
| using BWP.Web.Utils; | |||
| namespace BWP.Web.TypeIOCs | |||
| { | |||
| [TypeIOC(typeof(PickingAnalyse), typeof(PickingAnalyse.ReportDisplayOptionHelperAddOptionItem))] | |||
| public class PickingAnalyseReportDisplayOptionHelperAddOptionItem : PickingAnalyse.ReportDisplayOptionHelperAddOptionItem | |||
| { | |||
| public void Invoke(ReportDisplayOptionHelper helper) | |||
| { | |||
| helper.AddOptionItem("屠宰批次", "detail", "CowBatch", false); | |||
| } | |||
| } | |||
| } | |||