Exemple #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (UserAcc.UserExpired() && SystemFunction.GetURL(Page.AppRelativeVirtualPath.ToString()) != "helper_indicator.aspx")
     {
         SetBodyEventOnLoad(SystemFunction.PopupLogin());
     }
     else
     {
         //var DataRole = UserAcc.GetRolePermission(UserAcc.GetObjUser().nUserID + "");
         //dvUSer.Visible = true;
         //if (DataRole.Count == 1)
         //{
         //    liChange.Visible = false;
         //    liChange2.Visible = false;
         //}
         string Url = SystemFunction.GetURL(Page.AppRelativeVirtualPath);
         if (SystemFunction.GetURL(Page.AppRelativeVirtualPath.ToString()) != "helper_indicator.aspx")
         {
             lrtMenu.Text         = SystemFunction.HTML_Menubar(Url);
             lrtNav_menu.Text     = SystemFunction.HTML_Navtab(Url);
             lrtNav_UserMenu.Text = SystemFunction.HTML_NavtabUser(Url);
         }
         else
         {
             dvUSer.Visible = false;
         }
         ltrFullName1.Text   = ltrFullName2.Text = UserAcc.GetObjUser().sFullName;
         ltrActionRole1.Text = ltrActionRole2.Text = UserAcc.GetObjUser().sActionRoleName;
     }
 }