77 lines
3.0 KiB
C#
77 lines
3.0 KiB
C#
using System;
|
||
using System.Data;
|
||
using System.Linq;
|
||
using System.Web.UI;
|
||
using System.Web.UI.WebControls;
|
||
using SuperMap.RealEstate.CoreFrameWork;
|
||
using SuperMap.RealEstate.ServiceModel;
|
||
using SuperMap.RealEstate.Utility;
|
||
using SuperMap.RealEstate.Web.UI;
|
||
using SuperMap.RealEstate.Web.UI.WebControls;
|
||
using SuperMap.RealEstate.Web.Utility;
|
||
|
||
namespace SuperMap.RealEstate.Coop.Merchant
|
||
{
|
||
/// <summary>
|
||
/// T_COMMODITY_ 的WebUserControl
|
||
/// <summary>
|
||
public partial class COMMODITY : UserControl<Business.COMMODITY>
|
||
{
|
||
protected void Page_Load(object sender, EventArgs e)
|
||
{
|
||
}
|
||
|
||
//在此加入界面的数据初始化(Page_Load之前),如DropDownList的数据源绑定等
|
||
public override void InitializeWebControl()
|
||
{
|
||
//省份编码
|
||
PROVINCE_CODE.Clear();
|
||
DictionaryHelper.BindingDropDownList("PROVINCE_CODE", PROVINCE_CODE.Items, this.Transaction);
|
||
//商品单位
|
||
COMMODITY_UNIT.Clear();
|
||
DictionaryHelper.BindingDropDownList("COMMODITY_UNIT", COMMODITY_UNIT.Items, this.Transaction);
|
||
//商品属性
|
||
COMMODITY_NATURE.Clear();
|
||
DictionaryHelper.BindingDropDownList("COMMODITY_NATURE", COMMODITY_NATURE.Items, this.Transaction);
|
||
//商品业态
|
||
BUSINESSTYPE.Clear();
|
||
DictionaryHelper.BindingDropDownList("BUSINESSTYPE", BUSINESSTYPE.Items, this.Transaction);
|
||
//是否散称
|
||
ISBULK.Clear();
|
||
DictionaryHelper.BindingDropDownList("ISBULK", ISBULK.Items, this.Transaction);
|
||
//称重方式
|
||
METERINGMETHOD.Clear();
|
||
DictionaryHelper.BindingDropDownList("METERINGMETHOD", METERINGMETHOD.Items, this.Transaction);
|
||
//消费模式【1000:余额消费,2000:积分兑换】
|
||
PAY_METHOD.Clear();
|
||
DictionaryHelper.BindingDropDownList("PAY_METHOD", PAY_METHOD.Items, this.Transaction);
|
||
//销售税率
|
||
DUTY_PARAGRAPH.Clear();
|
||
DictionaryHelper.BindingDropDownList("DUTY_PARAGRAPH", DUTY_PARAGRAPH.Items, this.Transaction);
|
||
|
||
}
|
||
|
||
//载入数据
|
||
public override bool LoadData()
|
||
{
|
||
//如果是工作流组件请自行修改载入的逻辑,以下是功能模块的默认代码
|
||
if (!String.IsNullOrEmpty(Request["ID"]))
|
||
{
|
||
CurrObject.COMMODITY_ID_Encrypt = Request["ID"];
|
||
return this.Select();
|
||
}
|
||
//默认返回值,工作流组件返回True,功能模块返回False。
|
||
return (WorkFlowPage != null);
|
||
}
|
||
|
||
//OnDataAction_XXXXX 有一个系列可用,在此加入界面的逻辑处理
|
||
//e.CancelDataAction 来处理是否取消该动作;
|
||
//失败的原因可以用Page.Alert()传递到页面
|
||
public override void OnDataAction_BeforeSave(DataActionEventArgs<Business.COMMODITY> e)
|
||
{
|
||
base.OnDataAction_BeforeSave(e);
|
||
}
|
||
|
||
}
|
||
}
|