Example #1
0
        public ActionResult WikiDocListAllStatus()
        {
            if (SessionData.CurrentUser == null)
            {
                return(Redirect("/account/dang-xuat"));
            }
            List <WikiDoc_Info> lstObj = new List <WikiDoc_Info>();
            int _Status = 0;

            if (RouteData.Values.ContainsKey("id"))
            {
                _Status            = Convert.ToInt32(RouteData.Values["id"]);
                ViewBag.CurrStatus = _Status;
            }
            try
            {
                var _WikiCataBL = new WikiCatalogue_BL();
                var ObjBL       = new WikiDoc_BL();
                lstObj         = ObjBL.WikiDoc_Search("ALL|ALL|ALL" + "|" + SessionData.CurrentUser.Username);
                ViewBag.Paging = ObjBL.GetPagingHtml();
                List <WikiCatalogues_Info> lstOjects = _WikiCataBL.WikiCatalogueGetAll();
                ViewBag.ListCata = lstOjects;
            }
            catch (Exception ex)
            {
                Logger.LogException(ex);
            }
            return(PartialView("/Areas/Wiki/Views/WikiDoc/ListDicAllStatus.cshtml", lstObj));
        }
Example #2
0
        public ActionResult WikiDocListByCatalogue()
        {
            if (SessionData.CurrentUser == null)
            {
                return(Redirect("/"));
            }
            List <WikiDoc_Info> lstObj  = new List <WikiDoc_Info>();
            decimal             _Cataid = 0;

            if (RouteData.Values.ContainsKey("id"))
            {
                _Cataid = Convert.ToInt32(RouteData.Values["id"]);
                var _ObjectInfo       = new WikiCatalogues_Info();
                var _WikiCatalogue_BL = new WikiCatalogue_BL();
                _ObjectInfo      = _WikiCatalogue_BL.WikiCatalogue_GetByID(_Cataid);
                ViewBag.CataInfo = _ObjectInfo;
            }
            try
            {
                var _WikiCataBL = new WikiCatalogue_BL();
                var ObjBL       = new WikiDoc_BL();
                lstObj         = ObjBL.WikiDoc_Search(CommonWiki.Stt_daduyet.ToString() + "|" + _Cataid.ToString() + "|" + "|" + SessionData.CurrentUser.Username);
                ViewBag.Paging = ObjBL.GetPagingHtml();
                List <WikiCatalogues_Info> lstOjects = _WikiCataBL.WikiCatalogueGetAll();
                ViewBag.ListCata = lstOjects;
            }
            catch (Exception ex)
            {
                Logger.LogException(ex);
            }
            return(PartialView("/Areas/Wiki/Views/WikiDoc/WikiListByCatalogue.cshtml", lstObj));
        }
Example #3
0
        public ActionResult FindOject(string keysSearch, string options)
        {
            var lstOjects = new List <WikiDoc_Info>();

            try
            {
                var _WikiDoc_BL = new WikiDoc_BL();
                lstOjects      = _WikiDoc_BL.WikiDoc_Search(keysSearch + "|" + SessionData.CurrentUser.Username, options);
                ViewBag.Paging = _WikiDoc_BL.GetPagingHtml();
            }
            catch (Exception ex)
            {
                Logger.LogException(ex);
            }
            return(PartialView("~/Areas/Wiki/Views/WikiDoc/_PartialDocData.cshtml", lstOjects));
        }