Esempio n. 1
0
 public ActionResult Index(NewSearchModel model, Grid <NewsModel> gridview)
 {
     _gridInfo = gridview;
     filter    = model;
     Session[INFOMATION_MODEL]        = _gridInfo;
     Session[INFOMATION_SEARCH_MODEL] = filter;
     _gridInfo.ProcessAction();
     UpdateGridInfomation();
     return(PartialView("_ListData", _gridInfo));
 }
Esempio n. 2
0
        public ActionResult New()
        {
            var model = new NewSearchModel
            {
                BlastExecutables    = new List <string>(new string[] { "blastp", "blastn", "blastx", "tblastn", "tblastx" }),
                VirtualMachineSizes = _configuration.GetVirtualMachineSizes(),
            };

            return(View(model));
        }
Esempio n. 3
0
        public ActionResult Index()
        {
            ViewBag.Title = "List Company Regulation";
            _gridInfo     = (Grid <NewsModel>)Session[INFOMATION_MODEL];
            if (_gridInfo == null)
            {
                _gridInfo = new Grid <NewsModel>
                            (
                    new Pager
                {
                    CurrentPage = 1,
                    PageSize    = 50,
                    Sord        = "asc",
                    Sidx        = "Header"
                }
                            );
                _gridInfo.SearchCriteria = new NewsModel();
            }

            filter = filter ?? new NewSearchModel();
            UpdateGridInfomation();
            ViewBag.Categories = newsServices.ListCatelories(NewType.Infomation);
            return(View(_gridInfo));
        }