47 lines
1.7 KiB
C#
47 lines
1.7 KiB
C#
using System;
|
|
using System.Data;
|
|
using System.Configuration;
|
|
using System.Collections;
|
|
using System.Web;
|
|
using System.Web.Security;
|
|
using System.Web.UI;
|
|
using System.Web.UI.WebControls;
|
|
using System.Web.UI.WebControls.WebParts;
|
|
using System.Web.UI.HtmlControls;
|
|
|
|
public partial class SystemManage_SystemJiaoSeView : System.Web.UI.Page
|
|
{
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
if (!Page.IsPostBack)
|
|
{
|
|
ZWL.Common.PublicMethod.CheckSession();
|
|
|
|
//加载节点进入CheCkBoxList中
|
|
ZWL.Common.PublicMethod.AddItmesInCheCKList(this.CheckBoxList1);
|
|
|
|
ZWL.BLL.ERPJiaoSe MyModel = new ZWL.BLL.ERPJiaoSe();
|
|
MyModel.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
|
|
this.Label1.Text = MyModel.JiaoSeName;
|
|
this.Label2.Text = MyModel.BackInfo;
|
|
ZWL.Common.PublicMethod.GetCheckList(this.CheckBoxList1, MyModel.QuanXian);
|
|
|
|
//写系统日志
|
|
ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi();
|
|
MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName");
|
|
MyRiZhi.DoSomething = "用户查看角色信息(" + this.Label1.Text + ")";
|
|
MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
|
|
MyRiZhi.Add();
|
|
|
|
for (int i = 0; i < this.CheckBoxList1.Items.Count; i++)
|
|
{
|
|
if (this.CheckBoxList1.Items[i].Text.Trim() == "")
|
|
{
|
|
this.CheckBoxList1.Items[i].Enabled = false;
|
|
this.CheckBoxList1.Items[i].Attributes.CssStyle.Add("DISPLAY", "none");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|