コード例 #1
0
 protected void BandInfo(int id)
 {
     SOSOshop.BLL.Role   bll   = new SOSOshop.BLL.Role();
     SOSOshop.Model.Role model = bll.GetModelID(id);
     this.txtRoleName.Text    = model.Name;
     this.txtDescription.Text = model.Description;
     ViewState["ID"]          = model.ID;
 }
コード例 #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         SOSOshop.BLL.PromptInfo.Popedom("007002006", "对不起,您没有权限进行设置");
         int roleid = ChangeHope.WebPage.PageRequest.GetQueryInt("id");
         if (roleid > 0)
         {
             ViewState["RoleId"] = roleid;
             SOSOshop.BLL.Role   bll   = new SOSOshop.BLL.Role();
             SOSOshop.Model.Role model = bll.GetModelID(roleid);
             if (model != null)
             {
                 this.lbRoleName.Text        = model.Name;
                 this.lbRoleDescription.Text = model.Description;
                 this.BindInfo(roleid.ToString());
             }
         }
     }
 }