屠宰场管理服务
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.

40 lines
1.3 KiB

using BWP.B3ClientService.BO;
using BWP.Web.Layout;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TSingSoft.WebControls2;
namespace BWP.Web.Pages.B3ClientService.Dialogs
{
class SelectGoodsDialogs : DmoMultiSelectDialog<Goods, ClientGoodsSet_Detail>
{
protected override void CreateQuery(VLayoutPanel vPanel)
{
var panel = new LayoutManager("", mDFInfo, mQueryContainer);
var config = new AutoLayoutConfig();
panel.Config = config;
config.Add("Name");
config.Add("Code");
vPanel.Add(panel.CreateLayout());
base.CreateQuery(vPanel);
}
protected override void CreateQueryGridColumns(TSingSoft.WebControls2.DFBrowseGrid grid)
{
grid.Columns.Add(new DFBrowseGridColumn("Name"));
grid.Columns.Add(new DFBrowseGridColumn("Code"));
grid.Columns.Add(new DFBrowseGridColumn("Spec"));
grid.Columns.Add(new DFBrowseGridColumn("MainUnit"));
}
protected override void SetResultFromDFDataRow(ClientGoodsSet_Detail dmo, Forks.EnterpriseServices.DataForm.DFDataRow row)
{
dmo.Goods_ID = (long)row["ID"];
dmo.Goods_Name = (string)row["Name"];
dmo.Goods_Code = (string)row["Code"];
dmo.Goods_Spec = (string)row["Spec"];
}
}
}