Esempio n. 1
0
        public virtual ActionResult Create(string id = "")
        {
            ViewBag.ID  = id;
            ViewBag.DAL = dal;
            DocInformationView model = dal.GetCreateFormDefaultValue();

            model = dal.GetModelShowValue(model);
            string formPath = SiteCommon.GetCustomPage("~/Areas/Doc/Views/DocInformationView/_/Create.cshtml");

            return(View(formPath, model));
        }
Esempio n. 2
0
        public virtual ActionResult Show(string id = "")
        {
            ViewBag.ID  = id;
            ViewBag.DAL = dal;
            DocCatalog model = dal.GetModelByID(id);

            model = dal.GetModelShowValue(model);
            string formPath = SiteCommon.GetCustomPage("~/Areas/Doc/Views/DocCatalog/_/Show.cshtml");

            return(View(formPath, model));
        }
Esempio n. 3
0
        public ActionResult Index(string m, string filterId)
        {
            int    userId  = CookieHelper.GetCookieInt("UserID");
            string roleIds = CookieHelper.GetCookie("RoleIDList");
            string cityId  = CookieHelper.GetCookie("CityID");
            string menuId  = RequestHelper.GetRequestString("Menu");

            ViewBag.DAL = new DocInformationViewDAL();
            RolePurviewDAL rolePurviewDal = new RolePurviewDAL();
            ArrayList      purviewList    = rolePurviewDal.GetPurviewListByRoleID(roleIds);
            ToolBarDAL     toolBarDal     = new ToolBarDAL();
            List <ToolBar> toolbarList    = toolBarDal.GetMyToolBarList(cityId, menuId, purviewList);

            ViewBag.ToolbarColumnList = toolbarList.Where(o => o.ToolbarType == "GridItem").ToList();
            ViewBag.ToolbarList       = toolbarList.Where(o => ((o.ToolbarType == "Toolbar") || (o.ToolbarType == "CommonToolbar"))).ToList();

            string formPath = string.Format("~/Areas/Doc/Views/DocInformationView/_/{0}.cshtml", m);

            formPath = SiteCommon.GetCustomPage(formPath);
            return(View(formPath));
        }