You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

51 lines
1.7 KiB

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