From 206f29d765f96d518383771815e928df7b858be8 Mon Sep 17 00:00:00 2001 From: yibo <361071264@qq.com> Date: Sun, 8 Apr 2018 21:46:59 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9C=80=E6=B1=82=E5=8D=95No.139401=20?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=BF=87=E7=A3=85=E7=9B=B8=E5=85=B3=E5=8D=95?= =?UTF-8?q?=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Overlays/StatPayEdit_Ext.cs | 39 ++++++++++++++++++- 1 file changed, 37 insertions(+), 2 deletions(-) diff --git a/B3QingDaoWanFu.Web/Pages/B3QingDaoWanFu/Overlays/StatPayEdit_Ext.cs b/B3QingDaoWanFu.Web/Pages/B3QingDaoWanFu/Overlays/StatPayEdit_Ext.cs index 9616f01..2ad6c60 100644 --- a/B3QingDaoWanFu.Web/Pages/B3QingDaoWanFu/Overlays/StatPayEdit_Ext.cs +++ b/B3QingDaoWanFu.Web/Pages/B3QingDaoWanFu/Overlays/StatPayEdit_Ext.cs @@ -1,9 +1,13 @@ -using BWP.Web.Pages.B3ButcherManage.Bills.StatPay_; +using BWP.B3ButcherManage.BO; +using BWP.Web.Pages.B3ButcherManage.Bills.StatPay_; +using BWP.Web.WebControls; +using Forks.EnterpriseServices.DataForm; using System; using System.Collections.Generic; using System.Linq; using System.Text; -using System.Threading.Tasks; +using System.Web.UI.WebControls; +using TSingSoft.WebControls2; namespace BWP.Web.Pages.B3QingDaoWanFu.Overlays { @@ -15,5 +19,36 @@ namespace BWP.Web.Pages.B3QingDaoWanFu.Overlays if (tag != null) tag.Key = "WeightSumRate2"; } + + DFEditGrid _farmerGrid; + protected override void AddFarmerDetail(System.Web.UI.Control control) + { + var panel = control.EAdd(new TitlePanel("养殖户信息", "养殖户信息")); + var editor = new DFCollectionEditor(() => Dmo.FarmerDetails); + editor.AllowDeletionFunc = () => false; + + editor.CanDeleteFunc = detail => false; + editor.IsEditableFunc = (field, detail) => false; + + _farmerGrid = panel.EAdd(new DFEditGrid(editor) { Width = Unit.Percentage(100), ShowLineNo = true }); + _farmerGrid.Columns.Add(new DFEditGridColumn("Farmer_Name")); + _farmerGrid.Columns.Add(new DFEditGridColumn("Farmer_IDCard")); + _farmerGrid.Columns.Add(new DFEditGridColumn("Farmer_BankAccount")); + _farmerGrid.Columns.Add(new DFEditGridColumn("Farmer_Address")); + _farmerGrid.Columns.Add(new DFEditGridColumn("Farmer_Tel")); + _farmerGrid.Columns.Add(new DFEditGridColumn("Number")); + _farmerGrid.Columns.Add(new DFEditGridColumn("Weight")); + _farmerGrid.Columns.Add(new DFEditGridColumn("Money")); + + var section4 = mPageLayoutManager.AddSection("detailColumns4", "养殖户信息"); + section4.ApplyLayout(_farmerGrid, mPageLayoutManager, DFInfo.Get(typeof(Weigh_FarmerDetail))); + panel.SetPageLayoutSetting(mPageLayoutManager, section4.Name); + } + + public override void AppToUI() + { + base.AppToUI(); + _farmerGrid.DataBind(); + } } }