Esempio n. 1
0
        public ActionResult GetElectricFence(ElectricFenceSearchModel model, int searchPage)
        {
            SearchDataWithPagedDatas <ElectricFenceSearchModel, ElectricFenceListModel> result = new SearchDataWithPagedDatas <ElectricFenceSearchModel, ElectricFenceListModel>();

            result.SearchModel = model;
            result.PagedDatas  = ElectricFenceBLL.GetPagedElectricFences(result.SearchModel, searchPage, this.PageSize, base.CurrentStrucID);
            return(PartialView("_ElectricFencePagedGrid", result));
        }
Esempio n. 2
0
        //
        // GET: /Admin/ElectricFence/
        #region  查询
        public ActionResult ElectricFenceSetting()
        {
            SearchDataWithPagedDatas <ElectricFenceSearchModel, ElectricFenceListModel> model = new SearchDataWithPagedDatas <ElectricFenceSearchModel, ElectricFenceListModel>();

            model.SearchModel = new ElectricFenceSearchModel();
            //model.SearchModel.AlarmType = -1;
            model.SearchModel.FenceType     = -1;
            model.SearchModel.SearchStrucID = -1;
            model.PagedDatas = ElectricFenceBLL.GetPagedElectricFences(model.SearchModel, 1, this.PageSize, base.CurrentStrucID);
            return(PartialView("_ElectricFenceSetting", model));
        }