示例#1
0
        public PaperDetailViewModel TmpDetailById(string Id)
        {
            PaperDetailViewModel paperDetailViewModel = new PaperDetailViewModel();
            DataTable            dtPaperDetail        = paperDAL.SearchTmpDetailById(Id);

            // DataTable dtImgList = paperDAL.SearchPaperImgListById(Id);


            paperDetailViewModel.paperTmpPage = dtPaperDetail.toList <TemplateDownloadInfo>();
            DataTable dtSearchPaperHotListBytype = paperDAL.SearchPaperHotListBytype(null);
            DataTable dtSearchNewList            = paperDAL.SearchNewList();

            paperDetailViewModel.HotList = dtSearchPaperHotListBytype.toList <PaperList>();
            paperDetailViewModel.NewList = dtSearchNewList.toList <PaperList>();
            DataTable dtFootLink = paperDAL.SearchFootLink();

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

            paperDetailViewModel.menuModelList = dtMenu.toList <MenuModel>();
            return(paperDetailViewModel);
        }