2025-03-27 15:05:14 +08:00

32 lines
1.1 KiB
C#
Raw 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 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);
}
}
}