43 lines
1.6 KiB
C#
43 lines
1.6 KiB
C#
using System;
|
||
using System.Collections.Generic;
|
||
using System.Linq;
|
||
using System.Web;
|
||
using System.Web.UI;
|
||
using System.Web.UI.WebControls;
|
||
using SuperMap.RealEstate.CoreFrameWork;
|
||
using SuperMap.RealEstate.Web.UI;
|
||
using SuperMap.RealEstate.Web.UI.WebControls;
|
||
using Business = SuperMap.RealEstate.CoreFrameWork.Dictionary.Business;
|
||
|
||
namespace SuperMap.RealEstate.Personnel.Modules.Dictionary
|
||
{
|
||
public partial class Post1 : UserControl<Business.FieldEnum>
|
||
{
|
||
protected void Page_Load(object sender, EventArgs e)
|
||
{
|
||
if (IsPostBack) return;
|
||
Business.FieldExplain _FieldExplain = DictionaryHelper.GetFieldExplain("POST", Transaction);
|
||
FIELDEXPLAIN_ID.Text = _FieldExplain.FieldExplain_ID.ToString();
|
||
}
|
||
|
||
//在此加入界面的数据初始化(Page_Load之前),如DropDownList的数据源绑定等
|
||
public override void InitializeWebControl()
|
||
{
|
||
FIELDENUM_STATUS.Clear();
|
||
DictionaryHelper.BindingDropDownList("ISVALID", FIELDENUM_STATUS.Items, Transaction);
|
||
}
|
||
|
||
//载入数据
|
||
public override bool LoadData()
|
||
{
|
||
//如果是工作流组件请自行修改载入的逻辑,以下是功能模块的默认代码
|
||
if (!String.IsNullOrEmpty(Request["ID"]))
|
||
{
|
||
CurrObject.FieldEnum_ID_Encrypt = Request["ID"];
|
||
return this.Select();
|
||
}
|
||
//默认返回值,工作流组件返回True,功能模块返回False。
|
||
return (WorkFlowPage != null);
|
||
}
|
||
}
|
||
} |