protected void Page_Load(object sender, EventArgs e)
 {
     B_User.CheckIsLogged("/Office");
     //string roleid = buser.GetLogin().UserRole;
     if (!IsPostBack)
     {
         M_UserInfo mu = buser.GetLogin();
         userNameL.Text = mu.HoneyName;
         userGNL.Text   = strBll.SelNameByUid(mu.UserID);
         Work_L.Text    = mu.WorkNum;
         faceImg.Src    = mu.UserFace;
         ucMod          = ucBll.SelModelByUserID(mu.UserID);
         if (ucMod != null)//为空则不检测
         {
             calendarDiv.Visible = ucMod.HasAuth(ucMod.LeftChk, "leftChk1");
             //leftChk2.Visible = ucMod.HasAuth(ucMod.LeftChk, "leftChk2");
             //leftChk3.Visible = ucMod.HasAuth(ucMod.LeftChk, "leftChk3");
             //leftChk4.Visible = ucMod.HasAuth(ucMod.LeftChk, "leftChk4");
             leftChk5.Visible = ucMod.HasAuth(ucMod.LeftChk, "leftChk5");
             if (!ucMod.HasAuth(ucMod.LeftChk, "leftChk0"))
             {
                 Page.ClientScript.RegisterStartupScript(this.GetType(), "", "hiddendiv1();", true);
             }
         }
         string ulId = Request.QueryString["leftul"];
         if (!string.IsNullOrEmpty("left_ul_1_1"))
         {
             function.Script(this, "$('#" + ulId + "').show();");
         }
     }
 }
Beispiel #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         NodeDPBind();
         TypeDataBind();
         if (!string.IsNullOrEmpty(Request.QueryString["NodeID"]))
         {
             nodeDP.SelectedValue = Request.QueryString["NodeID"];
         }
         if (string.IsNullOrEmpty(Request.QueryString["gid"]))
         {
             nodeNameL.Text  = GetNodeName(Request.QueryString["NodeID"]);
             nodeNameL2.Text = nodeNameL.Text;
             userNameT.Text  = buser.GetLogin().HoneyName;
             userGroupL.Text = strBll.SelNameByUid(buser.GetLogin().UserID);
             CreateTime.Text = DateTime.Now.ToString("yyyy年MM月dd日 hh:mm");
         }
         else //修改
         {
             BindText(Convert.ToInt32(Request.QueryString["Gid"]));
         }
     }
 }