Esempio n. 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     Module_Id = "30301000";
     UserFun   = new BLL_clsAuth().GetUserFunc(loginUser.SysUser_ID, Rc.Common.StrUtility.clsUtility.ReDoStr(loginUser.SysRole_IDs, ','), Module_Id);
     SetSearchP();
     if (!IsPostBack)
     {
         SetSearchO();
     }
 }
Esempio n. 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     Module_Id = "90100400";
     UserFun   = new BLL_clsAuth().GetUserFunc(loginUser.SysUser_ID, Rc.Common.StrUtility.clsUtility.ReDoStr(loginUser.SysRole_IDs, ','), Module_Id);
     if (!IsPostBack)
     {
         DataTable dt = new BLL_SysFilter().GetList("").Tables[0];
         if (dt.Rows.Count > 0)
         {
             this.txtKeyWord.Text = dt.Rows[0]["KeyWord"].ToString();
         }
     }
 }
Esempio n. 3
0
        protected string GetFristMenu()
        {
            //临时字符串
            string strTemp = string.Empty;
            //css样式
            string strCss = string.Empty;


            StringBuilder strMenu = new StringBuilder();
            //从缓存中读取菜单
            DataTable dt = new BLL_SysModule().GetOwenModuleListByCacheBySysCode(loginUser.SysUser_ID, Rc.Common.StrUtility.clsUtility.ReDoStr(loginUser.SysRole_IDs, ','));

            if (dt != null)
            {
                //查询出一级菜单
                var drs = dt.Select(" PARENTID='0' ");
                //最上级

                string urldefault = string.Empty;
                for (int i = 0; i < drs.Length; i++)
                {
                    if (Module_Ids.IndexOf(drs[i]["ModuleId"].ToString()) >= 0)
                    {
                        strCss = "active";
                    }
                    else
                    {
                        strCss = "";
                    }
                    strMenu.Append("<li class=\"" + strCss + "\">");

                    DataTable dtTemp = new DataTable();
                    dtTemp = new BLL_clsAuth().GetOwenTreeByCatchBySysCode(loginUser.SysUser_ID, Rc.Common.StrUtility.clsUtility.ReDoStr(loginUser.SysRole_IDs, ','), drs[i]["moduleid"].ToString().Substring(0, 2));
                    DataRow[] drTemp = dtTemp.Select("isLast='1' and url<>'#'", "DefaultOrder desc");
                    if (drTemp.Length > 0)
                    {
                        urldefault = drTemp[0]["url"].ToString();
                        //Response.Redirect("/" + drs[0]["url"].ToString());
                    }
                    else
                    {
                        //PHHC.Share.StrUtility.clsUtility.ErrorDispose(this.Page, 6, false);
                    }
                    strMenu.Append("<a href='" + Rc.Common.StrUtility.clsUtility.getHostPath() + "/" + urldefault + "'\">" + drs[i]["modulename"] + "</a></li> ");
                    //strMenu.Append("<div class=\"div_menu_split\" id=\"div_menu_split_00" + (i + 1) + "\"></div>   ");
                }
            }

            return(strMenu.ToString());
        }
Esempio n. 4
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Module_Id = "90500100";

            UserFun = new BLL_clsAuth().GetUserFunc(loginUser.SysUser_ID, Rc.Common.StrUtility.clsUtility.ReDoStr(loginUser.SysRole_IDs, ','), Module_Id);
            if (!UserFun.page)
            {
                Rc.Common.StrUtility.clsUtility.ErrorDispose(this.Page, 2, false);
            }

            this.btnAdd.Visible = UserFun.Add;
            if (!IsPostBack)
            {
            }
        }
Esempio n. 5
0
        private DataTable GetTreeData()
        {
            DataTable dt = new DataTable();

            var    newStr   = Rc.Common.StrUtility.clsUtility.ReDoStr(loginUser.SysRole_IDs, ',');
            string moduleID = null;

            if (Module_Id.Length >= 2)
            {
                moduleID = Module_Id.Substring(0, 2);
            }

            dt = new BLL_clsAuth().GetOwenTreeByCatchBySysCode(loginUser.SysUser_ID, newStr, moduleID);
            //dt = MS.Authority.clsAuth.GetOwenTreeByCatch(loginUser.DoctorInfo_ID, PHHC.Share.StrUtility.clsUtility.ReDoStr(loginUser.SysRole_IDs, ','), "4");
            return(dt);
        }