Esempio n. 1
0
        //public ActionResult GridView()
        //{
        //    string json = Request.Params["searchModel"];
        //    BL.ResourceInfo empBL = new BL.ResourceInfo();
        //    var model = empBL.GetList();
        //    SetViewBage();
        //    return PartialView("_List", model);
        //}

        public ActionResult GetList()
        {
            ViewBag.DisplayDate = BasicParam.DatetimeFormat;
            BL.ResourceInfo riBL  = new BL.ResourceInfo();
            var             model = riBL.GetList();

            return(PartialView("_List", model));
        }
Esempio n. 2
0
        //
        // GET: /SystemMaint/Resource/
        public ActionResult Index()
        {
            var model = new ResourceInfoModel();

            BL.ResourceInfo BL = new BL.ResourceInfo();
            model.List = BL.GetList();
            //if (Request.IsAjaxRequest())
            //{
            //    return PartialView("_List", model.List);
            //}
            return(View(model));
        }