|
|
using BWP.B3ProduceUnitedInfos.NamedValueTemplate;
|
|
|
using BWP.B3SheepButcherManage;
|
|
|
using BWP.B3SheepButcherManage.BL;
|
|
|
using BWP.B3SheepButcherManage.BO;
|
|
|
using BWP.Web.CustomPageLayout;
|
|
|
using BWP.Web.Layout;
|
|
|
using BWP.Web.Utils;
|
|
|
using BWP.Web.WebControls;
|
|
|
using System;
|
|
|
using System.Collections.Generic;
|
|
|
using System.Linq;
|
|
|
using System.Text;
|
|
|
using TSingSoft.WebControls2;
|
|
|
|
|
|
namespace BWP.Web.Pages.B3SheepButcherManage.BaseInfos.Livestock_
|
|
|
{
|
|
|
class LivestockEdit : BaseInfoEditPage<Livestock, ILivestockBL>
|
|
|
{
|
|
|
|
|
|
protected override void BuildBasePropertiesEditor(TitlePanel titlePanel, PageLayoutSection pageLayoutSection)
|
|
|
{
|
|
|
var layoutManager = new LayoutManager("", mDFInfo, mDFContainer);
|
|
|
layoutManager.Add("GoodsProperty_ID", InputCreator.DFChoiceBox(B3SheepButcherManageConsts.DataSources.可屠宰存货属性, "GoodsProperty_Name"));
|
|
|
var config = new AutoLayoutConfig();
|
|
|
layoutManager.Config = config;
|
|
|
config.Add("GoodsProperty_ID");
|
|
|
config.Add("Name");
|
|
|
config.Add("Code");
|
|
|
config.Add("LiveVarieties_ID");
|
|
|
|
|
|
config.Add("PrintShortName");
|
|
|
config.Add("Spec");
|
|
|
config.Add("Feature");
|
|
|
config.Add("Origin");
|
|
|
config.Add("Brand");
|
|
|
config.Add("TaxRate");
|
|
|
config.Add("MainUnit");
|
|
|
config.Add("SecondUnit");
|
|
|
|
|
|
config.Add("Remark");
|
|
|
|
|
|
pageLayoutSection.SetRequired("GoodsProperty_ID", "Name", "Code");
|
|
|
pageLayoutSection.ApplyLayout(layoutManager, config, mPageLayoutManager, mDFInfo);
|
|
|
|
|
|
titlePanel.Controls.Add(layoutManager.CreateLayout());
|
|
|
layoutManager.EnsureInputControlCreated<DFChoiceBox>("LiveVarieties_ID").CodeArgument = 生物资产属性.羊.Value.ToString();
|
|
|
}
|
|
|
|
|
|
}
|
|
|
}
|
|
|
|