32 lines
1.1 KiB
C#
32 lines
1.1 KiB
C#
using System;
|
||
using SuperMap.RealEstate.Web.UI;
|
||
using SuperMap.RealEstate.ServiceModel;
|
||
using Business = SuperMap.RealEstate.FrameWork.Business;
|
||
|
||
namespace Personnel.WebSite.Modules.Roles
|
||
{
|
||
/// T_Role 的WebUserControl
|
||
public partial class Role : UserControl<Business.Role>
|
||
{
|
||
protected void Page_Load(object sender, EventArgs e)
|
||
{
|
||
|
||
}
|
||
|
||
public override void OnDataAction_BeforeSave(DataActionEventArgs<Business.Role> e)
|
||
{
|
||
if (String.IsNullOrEmpty(e.CurrObject.Role_Guid))
|
||
e.CurrObject.Role_Guid = Guid.NewGuid().ToString();
|
||
}
|
||
|
||
//在此加入界面的数据初始化,如DropDownList的数据源绑定等
|
||
public override void InitializeWebControl()
|
||
{
|
||
RoleType_ID.Items.Clear();
|
||
Business.RoleType _RoleType = new Business.RoleType(Transaction);
|
||
_RoleType.BindingDropDownList(RoleType_ID.Items, string.Empty);
|
||
Role_Guid.Text = Guid.NewGuid().ToString();
|
||
SetControlDefaultValue(RoleType_ID, Role_Index);
|
||
}
|
||
}
|
||
} |