Exemplo n.º 1
0
        public ActionResult GetGateSentryRecord(GateSentryRecordSearchModel model, int searchPage)
        {
            SearchDataWithPagedDatas <GateSentryRecordSearchModel, GateSentryRecordListModel> result = new SearchDataWithPagedDatas <GateSentryRecordSearchModel, GateSentryRecordListModel>();

            result.SearchModel = model;
            result.PagedDatas  = GateSentryRecordBLL.GetPagedGateSentryRecord(result.SearchModel, searchPage, this.PageSize, CurrentStrucID);
            return(PartialView("_GateSentryRecordPagedGrid", result));
        }
Exemplo n.º 2
0
        //
        // GET: /Admin/GateSentryRecord/

        #region  查询
        public ActionResult GateSentryRecordSetting()
        {
            SearchDataWithPagedDatas <GateSentryRecordSearchModel, GateSentryRecordListModel> model = new SearchDataWithPagedDatas <GateSentryRecordSearchModel, GateSentryRecordListModel>();

            model.SearchModel = new GateSentryRecordSearchModel();
            model.PagedDatas  = GateSentryRecordBLL.GetPagedGateSentryRecord(model.SearchModel, 1, this.PageSize, CurrentStrucID);
            return(PartialView("_GateSentryRecordSetting", model));
        }
Exemplo n.º 3
0
        public ActionResult GetVehicleByName(string name)
        {
            var            list       = GateSentryRecordBLL.GetVehicleByName(name);
            List <dynamic> resultList = new List <dynamic>();

            foreach (var item in list)
            {
                resultList.Add(new { label = item.PlateNum, value = item.PlateNum, ID = item.VID });
            }
            return(Json(resultList, JsonRequestBehavior.AllowGet));
        }