예제 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (CoreCache.GetCache("SysUserCode") == null)
            {
                TimeOut.ExecTimeOut(this);
                return;
            }
            string usertype = CoreCache.GetCache("SysUserType").ToString();

            XtmMenu menu = new XtmMenu();

            menu.SysKey = Request.QueryString["Action"].ToString();

            menu = WebUiProcess.Get(menu);
            if (errmsg != "")
            {
                Response.Write("加载页面出错:" + errmsg);
                Response.End();
                return;
            }
            if (menu.Pri == "n" && usertype != "man")
            {
                Response.Write("您没有操作该页面的权限,请和管理员联系!");
                Response.End();
            }
            else
            {
                string strurl = "../" + menu.MenuConfig;
                Navigate(strurl, menu.MenuCode);
            }
        }
예제 #2
0
파일: Top.aspx.cs 프로젝트: yvan317/FqProj1
 protected void butModifyPwd_Click(object sender, EventArgs e)
 {
     if (CoreCache.GetCache("SysUserCode") == null)
     {
         TimeOut.ExecTimeOut(this);
         return;
     }
     Page.ClientScript.RegisterStartupScript(this.GetType(), "Close", "<script language=JavaScript>open('../Index/ModifyPwd.aspx','modifyPwd','height=200,width=300,top=0,left=0,toolbar=no,menubar=no,scrollbars=no, resizable=no,location=no, status=no'); </script>");
 }
예제 #3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (CoreCache.GetCache("SysUserCode") == null)
     {
         TimeOut.ExecTimeOut(this);
         return;
     }
     if (!IsPostBack)
     {
         InitTree();
     }
 }
예제 #4
0
        private void InitTree()
        {
            string usertype = CoreCache.GetCache("SysUserType").ToString();

            switch (usertype)
            {
            case "man":
                InitSMTree();
                break;

            default:
                InitPTTree();
                break;
            }
        }
예제 #5
0
파일: Top.aspx.cs 프로젝트: yvan317/FqProj1
        protected void Page_Load(object sender, EventArgs e)
        {
            if (CoreCache.GetCache("SysUserCode") == null)
            {
                TimeOut.ExecTimeOut(this);
                return;
            }
            this.labUserName.Text = CoreCache.GetCache("SysUserName").ToString();
            switch (CoreCache.GetCache("SysUserType").ToString())
            {
            case "man":
                this.labUserType.Text = "管理员";
                break;

            case "ywy":
                this.labUserType.Text = "业务员";
                break;

            case "yh":
                this.labUserType.Text = "普通用户";
                break;
            }
        }