Пример #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     mu = buser.GetLogin();
     if (!IsPostBack)
     {
         ucMod = ucBll.SelModelByUserID(mu.UserID);
         if (ucMod == null)//无对应权限,则是默认权限
         {
         }
         else//拥有权限
         {
             SetChk();
         }
         uinfoMod      = buser.GetUserBaseByuserid(mu.UserID);
         TrueName.Text = mu.HoneyName;
         if (uinfoMod.UserSex)
         {
             UserSex.SelectedValue = "1";
         }
         else
         {
             UserSex.SelectedValue = "2";
         }
         UserPhone.Text = uinfoMod.Mobile;
         UserTel.Text   = uinfoMod.HomePhone;
         Branch.Text    = groupBll.GetGroupNameByIDS(mu.GroupID.ToString());
         StatusT.Text   = mu.State == 0 ? "在职" : "离职";
     }
 }