Esempio n. 1
0
        public PaperListViewModel PaperTypeList(string type, string flag, string key)
        {
            PaperListViewModel paperListViewModel         = new PaperListViewModel();
            DataTable          dtTypeList                 = paperDAL.SearchPaperListByType(type);
            DataTable          dtSearchRandomList         = paperDAL.SearchRandomList(type);
            DataTable          dtSearchPaperHotListBytype = paperDAL.SearchPaperHotListBytype(type);
            DataTable          dtSubPage = paperDAL.SearchPaperToolPage();
            DataTable          dtTmpPage = paperDAL.SearchPaperTmpPage(flag, key);


            PaperInfoList    PaperInfoList    = new PaperInfoList();
            TemplateDownload templateDownload = new TemplateDownload();
            ToolDownloadList toolDownloadList = new ToolDownloadList();

            paperListViewModel.paperInfoList      = PaperInfoList;
            paperListViewModel.paperTmpPage       = templateDownload;
            paperListViewModel.paperToolPage      = toolDownloadList;
            paperListViewModel.paperInfoList.rows = dtTypeList.toList <PaperInfo>();
            paperListViewModel.randomList         = dtSearchRandomList.toList <PaperList>();
            paperListViewModel.HotList            = dtSearchPaperHotListBytype.toList <PaperList>();
            paperListViewModel.paperToolPage.rows = dtSubPage.toList <ToolDownloadInfo>();
            paperListViewModel.paperTmpPage.rows  = dtTmpPage.toList <TemplateDownloadInfo>();

            DataTable dtMenu = paperDAL.SearchMenuList();

            paperListViewModel.menuModelList = dtMenu.toList <MenuModel>();
            DataTable dtFootLink = paperDAL.SearchFootLink();

            paperListViewModel.footLinkList = dtFootLink.toList <FootLinkViewModel>();

            return(paperListViewModel);
        }
Esempio n. 2
0
        public PaperInfoList getPaperList(PaperList paperList)
        {
            PaperInfoList paperInfoList = new PaperInfoList();
            DataTable     dt            = adminDAL.getPaperList(paperList);

            paperInfoList.rows  = dt.toList <PaperInfo>();
            paperInfoList.total = adminDAL.getPaperCount(paperList);
            return(paperInfoList);
        }
Esempio n. 3
0
        public ActionResult SearchPaper(PaperList paperList)
        {
            paperList.page = int.Parse(Request["page"]);
            paperList.rows = int.Parse(Request["rows"]);
            AdminBLL      adminBLL      = new AdminBLL();
            PaperInfoList paperInfoList = adminBLL.getPaperList(paperList);

            return(Json(paperInfoList, JsonRequestBehavior.AllowGet));
        }
Esempio n. 4
0
        public PaperListViewModel PaperSearchList(string key, string type)
        {
            PaperListViewModel paperListViewModel = new PaperListViewModel();
            DataTable          dtTypeList         = paperDAL.SearchPaperList(key, type);

            DataTable dtSearchRandomList = paperDAL.SearchRandomList(null);

            DataTable     dtSearchPaperHotListBytype = paperDAL.SearchPaperHotListBytype(null);
            PaperInfoList PaperInfoList = new PaperInfoList();

            paperListViewModel.paperInfoList      = PaperInfoList;
            paperListViewModel.paperInfoList.rows = dtTypeList.toList <PaperInfo>();
            paperListViewModel.randomList         = dtSearchRandomList.toList <PaperList>();
            paperListViewModel.HotList            = dtSearchPaperHotListBytype.toList <PaperList>();
            DataTable dtFootLink = paperDAL.SearchFootLink();

            paperListViewModel.footLinkList = dtFootLink.toList <FootLinkViewModel>();
            DataTable dtMenu = paperDAL.SearchMenuList();

            paperListViewModel.menuModelList = dtMenu.toList <MenuModel>();

            return(paperListViewModel);
        }