2025-03-28 09:49:56 +08:00

71 lines
2.8 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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.Seller.Running
{
/// <summary>
/// T_SELLERCOMMODITY_商户商品管理 的WebUserControl
/// <summary>
public partial class SELLERCOMMODITY : UserControl<Business.SELLERCOMMODITY>
{
protected void Page_Load(object sender, EventArgs e)
{
}
//在此加入界面的数据初始化(Page_Load之前)如DropDownList的数据源绑定等
public override void InitializeWebControl()
{
//商品单位
COMMODITY_UNIT.Clear();
DictionaryHelper.BindingDropDownList("COMMODITY_UNIT", COMMODITY_UNIT.Items, this.Transaction);
//进价税率
DUTY_PARAGRAPH.Clear();
DictionaryHelper.BindingDropDownList("DUTY_PARAGRAPH", DUTY_PARAGRAPH.Items, this.Transaction);
//是否散装
ISBULK.Clear();
DictionaryHelper.BindingDropDownList("ISBULK", ISBULK.Items, this.Transaction);
//称重方式
METERINGMETHOD.Clear();
DictionaryHelper.BindingDropDownList("METERINGMETHOD", METERINGMETHOD.Items, this.Transaction);
//配送类型1拆零配送0批发配送
DELIVER_TYPE.Clear();
DictionaryHelper.BindingDropDownList("DELIVER_TYPE", DELIVER_TYPE.Items, this.Transaction);
//采购状态1允许采购0不允许采购
PURCHASE_STATE.Clear();
DictionaryHelper.BindingDropDownList("PURCHASE_STATE", PURCHASE_STATE.Items, this.Transaction);
}
//载入数据
public override bool LoadData()
{
//如果是工作流组件请自行修改载入的逻辑,以下是功能模块的默认代码
if (!String.IsNullOrEmpty(Request["ID"]))
{
CurrObject.SELLERCOMMODITY_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.SELLERCOMMODITY> e)
{
base.OnDataAction_BeforeSave(e);
}
}
}