Ejemplo n.º 1
0
        public ActionResult FuncSelectMenu()
        {
            string logid = NG3.AppInfoBase.LoginID;
            string json  = MenuConfigProxy.LoadEnFuncTreeRight();

            ViewBag.LoadEnFuncTreeRight = json;
            ViewBag.UserType            = AppInfoBase.UserType;
            return(View("FuncSelectMenu"));
        }
Ejemplo n.º 2
0
 //[PageAuthorize(RightKey = 39842)]
 public ActionResult Index()
 {
     try
     {
         IMenuConfigFacade MenuConfigProxy = AopObjectProxy.GetObject <IMenuConfigFacade>(new MenuConfigFacade());
         string            json            = MenuConfigProxy.LoadEnFuncTreeRight();
         ViewBag.LoadEnFuncTreeRight = json;
         ViewBag.UserType            = NG3.AppInfoBase.UserType;
     }
     catch { }
     return(View("FuncIconManager"));
 }
Ejemplo n.º 3
0
        public ActionResult ShortcutMenu()
        {
            string isweb = System.Web.HttpContext.Current.Request.Params["isweb"];
            string logid = NG3.AppInfoBase.LoginID;

            string json = MenuConfigProxy.LoadEnFuncTreeRight();

            ViewBag.LoadEnFuncTreeRight = json;
            ViewBag.UserType            = NG3.AppInfoBase.UserType;
            ViewBag.isweb = isweb;//是否为web版请求
            return(View("ShortcutMenu"));
        }
Ejemplo n.º 4
0
 public ActionResult Index()
 {
     try
     {
         IMenuConfigFacade MenuConfigProxy = AopObjectProxy.GetObject <IMenuConfigFacade>(new MenuConfigFacade());
         string            json            = MenuConfigProxy.LoadEnFuncTreeRight();
         ViewBag.LoadEnFuncTreeRight = json;
         proxy.InitMyDesktopData();
     }
     catch { }
     return(View("MyDesktopSet"));
 }
Ejemplo n.º 5
0
        public ActionResult IndividualNavigationChart()
        {
            string text            = System.Web.HttpContext.Current.Request.Params["text"];
            string currentNodePhid = System.Web.HttpContext.Current.Request.Params["currentNodePhid"];
            string myid            = System.Web.HttpContext.Current.Request.Params["myid"];
            string json            = MenuConfigProxy.LoadEnFuncTreeRight();

            ViewBag.LoadEnFuncTreeRight = json;
            ViewBag.Text            = text;
            ViewBag.currentNodePhid = currentNodePhid;
            ViewBag.UserType        = AppInfoBase.UserType;
            if (myid != "" && myid != null)
            {
                ViewBag.Myid = myid;
            }
            else
            {
                ViewBag.Myid = "";
            }
            return(View("IndividualNavigationChart"));
        }
Ejemplo n.º 6
0
        //系统功能树
        public ActionResult MainFrameView()
        {
            long   userid   = AppInfoBase.UserID;
            string usertype = AppInfoBase.UserType;
            //把用户自定义添加的管理对象,从数据库取出,以viewbag传到页面
            string ExistId = MenuConfigProxy.Load(userid);

            ViewBag.ExistId = ExistId;
            //把系统的全部管理对象,从配置文件取出,以viewbag传到页面
            string logid   = NG3.AppInfoBase.LoginID;
            string xmlFile = AppDomain.CurrentDomain.BaseDirectory + @"/NG3Config/TabPageChoose.xml";
            //string xmlFile = "TabPageChoose.xml";
            DataSet   ds = MenuConfigProxy.ConvertXMLToDataSet(xmlFile); //路径怎么破
            DataTable dt = ds.Tables[0];
            //i6s没有合同树套件
            string product = AppInfoBase.UP.Product;
            string series  = AppInfoBase.UP.Series;

            //i8 15.1 去掉合同和文档
            DataRow[] dr = dt.Select("TabPageID = 'TabPageContractManage'");
            if (dr.Length > 0)
            {
                dt.Rows.Remove(dr[0]);
            }
            dr = dt.Select("TabPageID = 'tabPageWmDocTree'");
            if (dr.Length > 0)
            {
                dt.Rows.Remove(dr[0]);
            }
            dr = dt.Select("TabPageID = 'tabPageNavigation'");
            if (dr.Length > 0)
            {
                dt.Rows.Remove(dr[0]);
            }

            ViewBag.ProductId = product + series;
            int    totalRecord = 0;
            string json        = DataConverterHelper.ToJson(dt, totalRecord);

            ViewBag.DT = json;
            //把企业功能树是否启用、是否显示,系统功能树是否显示,从数据库读出,以viewbag传到页面
            //系统管理员固定显示系统功能树和我的功能树
            if (String.Compare(usertype, UserType.System, true) == 0)
            {
                ViewBag.LoadEnFuncTreeRight = "001";
            }
            else
            {
                json = MenuConfigProxy.LoadEnFuncTreeRight();
                ViewBag.LoadEnFuncTreeRight = json;
            }


            //把页面隐藏与否的状态从数据库读出,以viewbag传到页面
            json = MenuConfigProxy.GetDockControl(userid);
            ViewBag.isDockControl = json;

            //把页面换肤的主题状态从数据库读出,以viewbag传到页面
            json            = MenuConfigProxy.GetUITheme(userid);
            ViewBag.UITheme = json;

            //把用户类型传到页面,控制是否显示管理对象栏
            ViewBag.UserType = AppInfoBase.UserType;
            return(View("MainFrameView"));
        }