Browse Source

需求单No.139401 修改过磅相关单据

master
yibo 7 years ago
parent
commit
206f29d765
1 changed files with 37 additions and 2 deletions
  1. +37
    -2
      B3QingDaoWanFu.Web/Pages/B3QingDaoWanFu/Overlays/StatPayEdit_Ext.cs

+ 37
- 2
B3QingDaoWanFu.Web/Pages/B3QingDaoWanFu/Overlays/StatPayEdit_Ext.cs View File

@ -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<Weigh_FarmerDetail>(() => 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();
}
}
}

Loading…
Cancel
Save