public ActionResult LoadRegionVehicleTable(int RegionType, string[] Vehicles, int SearchPage) { var model = new SearchDataWithPagedDatas <int, MapRegionSettingModel>(); if (RegionType < 1 || RegionType > 3 || Vehicles == null || Vehicles.Length == 0 || SearchPage <= 0)//非法请求 { model.PagedDatas = new AsiatekPagedList <MapRegionSettingModel>( new List <MapRegionSettingModel>(), 1, 5, 5 ); return(PartialView("Regions_DataTable", model)); } ViewBag.SubView = "Regions"; ViewBag.SubViewData = null; ViewBag.TreeViewShowCheckBox = true; var PlaterNums = new List <string>(); var PlaterNumAndTerminalCodes = new List <Tuple <string, string> >(); foreach (var v in Vehicles) { // Vehicles当中的记录为 PlateNum#TerminalCode string[] PlateNumAndTerminalCode = v.Split('#'); PlaterNums.Add(PlateNumAndTerminalCode[0]); PlaterNumAndTerminalCodes.Add(new Tuple <string, string>(PlateNumAndTerminalCode[0], PlateNumAndTerminalCode[1])); } var data = TerminalSettingsBLL.QueryMapRegionSettingsByUserID(base.CurrentUserID, SearchPage, RegionType, PlaterNums.ToArray()); model.PagedDatas = new AsiatekPagedList <MapRegionSettingModel>(data.Item1, SearchPage, 5, (int)data.Item2); return(PartialView("Regions_DataTable", model)); }
public ActionResult MapRegionsSetting() { SearchDataWithPagedDatas <MapRegionsSearchModel, MapRegionsListModel> model = new SearchDataWithPagedDatas <MapRegionsSearchModel, MapRegionsListModel>(); model.SearchModel = new MapRegionsSearchModel(); List <SelectListItem> liRegionsType = new List <SelectListItem>(); liRegionsType.Add(new SelectListItem { Text = "全部", Value = "0", Selected = true }); liRegionsType.Add(new SelectListItem { Text = "圆", Value = "1" }); liRegionsType.Add(new SelectListItem { Text = "矩形", Value = "2" }); liRegionsType.Add(new SelectListItem { Text = "多边形", Value = "3" }); model.SearchModel.RegionsTypeSelectList = liRegionsType; model.PagedDatas = MapRegionsBLL.GetPagedMapRegions(model.SearchModel, 1, this.PageSize); return(PartialView("_MapRegionsSetting", model)); }
public ActionResult LoadLogs(TerminalSetupLogs_QueryModel conditions, int?searchPage) { var model = new SearchDataWithPagedDatas <TerminalSetupLogs_QueryModel, TerminalSetupLogs_DataModel>(); model.SearchModel = conditions; if (searchPage == null) { searchPage = 1; } var result = TerminalSettingsBLL.QueryTerminalSetupLogs( conditions.CompanyName, conditions.PlateNumber, conditions.TerminalCode, conditions.SettingType, conditions.StartTime, conditions.EndTime, searchPage.Value ); model.PagedDatas = result.Item1.ToPagedList(searchPage.Value, 10, result.Item2); ViewBag.Settings = ""; return(PartialView("Logs_DataTable", model)); }
public ActionResult GetServiceProviderInfo(ServiceProviderSeachModel model, int searchPage) { var result = new SearchDataWithPagedDatas <ServiceProviderSeachModel, ServiceProviderListModel>(); result.SearchModel = model; result.PagedDatas = ServiceProviderTypeBLL.GetPagedServiceProviderType(model, searchPage, this.PageSize); return(PartialView("_ServiceProviderGrid", result)); }
public ActionResult SeachServiceProvider() { var model = new SearchDataWithPagedDatas <ServiceProviderSeachModel, ServiceProviderListModel>(); model.SearchModel = new ServiceProviderSeachModel(); model.PagedDatas = ServiceProviderTypeBLL.GetPagedServiceProviderType(model.SearchModel, 1, this.PageSize); return(PartialView("_SeachServiceProviderType", model)); }
public ActionResult GetTemperatureAlarmRules(TemperatureAlarmRuleSearchModel model, int searchPage) { var result = new SearchDataWithPagedDatas <TemperatureAlarmRuleSearchModel, TemperatureAlarmRuleListModel>(); result.SearchModel = model; result.PagedDatas = TemperatureAlarmRuleBLL.GetPagedTemperatureAlarmRules(model, base.CurrentStrucID, searchPage, this.PageSize); return(PartialView("_TemperatureAlarmRulePagedGrid", result)); }
public ActionResult GetMapLines(MapLinesSearchModel model, int searchPage) { SearchDataWithPagedDatas <MapLinesSearchModel, MapLinesListModel> result = new SearchDataWithPagedDatas <MapLinesSearchModel, MapLinesListModel>(); result.SearchModel = model; result.PagedDatas = MapLinesBLL.GetPagedMapLines(result.SearchModel, searchPage, this.PageSize); return(PartialView("_MapLinesPagedGrid", result)); }
public ActionResult GetVehicleElectricFence(EFVehicleSearchModel model, int searchPage) { SearchDataWithPagedDatas <EFVehicleSearchModel, EFVehicleListModel> result = new SearchDataWithPagedDatas <EFVehicleSearchModel, EFVehicleListModel>(); result.SearchModel = model; ViewData["fenceID"] = model.id; result.PagedDatas = ElectricFenceBLL.GetPagedCustomerVehicle(model.id, result.SearchModel, searchPage, this.PageSize, base.CurrentStrucID); return(PartialView("_ElectricFenceVehiclePagedGrid", result)); }
public ActionResult GetEmployeeInfo(EmployeeInfoFindModel model, int searchPage) { SearchDataWithPagedDatas <EmployeeInfoFindModel, EmployeeInfoPageModel> result = new SearchDataWithPagedDatas <EmployeeInfoFindModel, EmployeeInfoPageModel>(); result.SearchModel = model; //result.PagedDatas = EmployeeInfoBLL.GetPagedEmployeeInfo(result.SearchModel, searchPage, this.PageSize); result.PagedDatas = EmployeeInfoBLL.GetPagedEmployeeInfo_New(result.SearchModel, searchPage, this.PageSize, base.CurrentStrucID); return(PartialView("_EmployeeInfoPagedGrid", result)); }
public ActionResult GetVehicleTypeInfo(VehicleTypeSearchModel model, int searchPage) { SearchDataWithPagedDatas <VehicleTypeSearchModel, VehicleTypeListModel> result = new SearchDataWithPagedDatas <VehicleTypeSearchModel, VehicleTypeListModel>(); result.SearchModel = model; result.PagedDatas = VehicleMaintainBLL.GetPagedVehicleType(model, searchPage, this.PageSize); return(PartialView("_VehicleTypesGrid", result)); }
public ActionResult SelectVehicleType() { SearchDataWithPagedDatas <VehicleTypeSearchModel, VehicleTypeListModel> model = new SearchDataWithPagedDatas <VehicleTypeSearchModel, VehicleTypeListModel>(); model.SearchModel = new VehicleTypeSearchModel(); model.PagedDatas = VehicleMaintainBLL.GetPagedVehicleType(model.SearchModel, 1, this.PageSize); return(PartialView("_SelectVehicleType", model)); }
private ActionResult GetControllerPagedGridPV(ControllerSearchModel model, int searchPage) { SearchDataWithPagedDatas <ControllerSearchModel, ControllerListModel> result = new SearchDataWithPagedDatas <ControllerSearchModel, ControllerListModel>(); result.SearchModel = model; result.SearchPage = searchPage; result.PagedDatas = ControllerBLL.GetPagedControllerInfo(result.SearchModel, result.SearchPage, this.PageSize); return(PartialView("_ControllerPagedGrid", result)); }
public ActionResult GetTerminalInfo(TerminalSearchModel model, int searchPage) { SearchDataWithPagedDatas <TerminalSearchModel, TerminalListModel> result = new SearchDataWithPagedDatas <TerminalSearchModel, TerminalListModel>(); result.SearchModel = model; result.PagedDatas = TerminalBLL.GetPagedTerminals(model, searchPage, this.PageSize); return(PartialView("_TerminalPagedGrid", result)); }
public ActionResult GetSimCodeInfo(SimCodeSearchModels model, int searchPage) { SearchDataWithPagedDatas <SimCodeSearchModels, SimCodeListModels> result = new SearchDataWithPagedDatas <SimCodeSearchModels, SimCodeListModels>(); result.SearchModel = model; result.PagedDatas = SimCodeBLL.GetPagedSimCode(model, searchPage, this.PageSize); return(PartialView("_SimCodePagedGrid", result)); }
public ActionResult RepairRecordDetail() { SearchDataWithPagedDatas <RepairRecordSearchModel, RepairRecordModel> model = new SearchDataWithPagedDatas <RepairRecordSearchModel, RepairRecordModel>(); model.SearchModel = new RepairRecordSearchModel(); model.PagedDatas = RepairRecordBLL.GetPagedRepairRecord(model.SearchModel, 1, this.PageSize, this.CurrentStrucID); return(PartialView("_RepairRecordDetail", model)); }
// #region 查询 // public ActionResult SeachSensorType() // { // SearchDataWithPagedDatas<SensorSearchModel, SensorListModels> model = // new SearchDataWithPagedDatas<SensorSearchModel, SensorListModels>(); // model.SearchModel = new SensorSearchModel(); // model.PagedDatas = SensorBLL.GetPagedSensor(model.SearchModel, 1, this.PageSize); // return PartialView("_SeachSensorType", model); // } // [AsiatekSubordinateFunction("SeachSensorType")] // public ActionResult GetSensorInfo(SensorSearchModel model, int searchPage) // { // SearchDataWithPagedDatas<SensorSearchModel, SensorListModels> result = //new SearchDataWithPagedDatas<SensorSearchModel, SensorListModels>(); // result.SearchModel = model; // result.PagedDatas = SensorBLL.GetPagedSensor(model, searchPage, this.PageSize); // return PartialView("_SensorPagedGrid", result); // } // #endregion // #region 新增 // [AsiatekSubordinateFunction("SeachSensorType")] // public ActionResult AddSensorTypes() // { // return PartialView("_AddSensorType"); // } // [HttpPost, ValidateAntiForgeryToken] // [AsiatekSubordinateFunction("SeachSensorType")] // public ActionResult AddSensorTypes(SensorAddModel model) // { // if (ModelState.IsValid) // { // var result = SensorBLL.AddSensorType(model,base.UserIDForLog); // base.DoLog(OperationTypeEnum.Add, result, "SensorCode:" + model.SensorCode); // return Json(result); // } // else // { // return PartialView("_AddSensorType", model); // } // } // [HttpPost, AsiatekSubordinateFunction("SeachSensorType")] // public ActionResult CheckAddTypeNameExists(string SensorName) // { // return Json(!SensorBLL.CheckTypeNameExists(SensorName)); // } // [HttpPost, AsiatekSubordinateFunction("SeachSensorType")] // public ActionResult CheckAddSensorCodeExists(string sensorCode) // { // return Json(!SensorBLL.CheckAddSensorCodeExists(sensorCode)); // } // #endregion // #region 编辑 // [AsiatekSubordinateFunction("SeachSensorType")] // public ActionResult EditSensorTypes(int id) // { // var result = SensorBLL.GetSensorTypeID(id); // if (result.DataResult == null) // { // return Content(result.Message); // } // var model = result.DataResult; // return PartialView("_EditSensorType", model); // } // [HttpPost, ValidateAntiForgeryToken] // [AsiatekSubordinateFunction("SeachSensorType")] // public ActionResult EditSensorTypes(SensorEditModel model) // { // if (ModelState.IsValid) // { // var result = SensorBLL.EditSensorType(model,base.UserIDForLog); // base.DoLog(OperationTypeEnum.Edit, result, "TypeID:" + model.TypeID); // return Json(result); // } // else // { // return PartialView("_EditSensorType", model); // } // } // [HttpPost, AsiatekSubordinateFunction("SeachSensorType")] // public ActionResult CheckEditTypeNameExists(string SensorName) // { // return Json(!SensorBLL.CheckTypeNameExists(SensorName)); // } // #endregion // #region 删除 // [HttpPost, ValidateAntiForgeryToken] // [AsiatekSubordinateFunction("SeachSensorType")] // public ActionResult DeleteSensor(FormCollection fc) // { // string[] ids = fc["tid"].Split(','); // var result = SensorBLL.DeleteSensor(ids); // base.DoLog(OperationTypeEnum.Delete, result, fc["tid"]); // return Json(result); // } // #endregion #region 查询 public ActionResult SeachSensorType() { SearchDataWithPagedDatas <SensorSearchModel, SensorListModels> model = new SearchDataWithPagedDatas <SensorSearchModel, SensorListModels>(); model.SearchModel = new SensorSearchModel(); model.PagedDatas = SensorBLL.GetPagedSensor(model.SearchModel, 1, this.PageSize); return(PartialView("_SeachSensorType", model)); }
public ActionResult GetSensorInfo(SensorSearchModel model, int searchPage) { SearchDataWithPagedDatas <SensorSearchModel, SensorListModels> result = new SearchDataWithPagedDatas <SensorSearchModel, SensorListModels>(); result.SearchModel = model; result.PagedDatas = SensorBLL.GetPagedSensor(model, searchPage, this.PageSize); return(PartialView("_SensorPagedGrid", result)); }
public ActionResult MapLinesSetting() { SearchDataWithPagedDatas <MapLinesSearchModel, MapLinesListModel> model = new SearchDataWithPagedDatas <MapLinesSearchModel, MapLinesListModel>(); model.SearchModel = new MapLinesSearchModel(); model.PagedDatas = MapLinesBLL.GetPagedMapLines(model.SearchModel, 1, this.PageSize); return(PartialView("_MapLinesSetting", model)); }
public ActionResult TemperatureAlarmRuleSetting() { var model = new SearchDataWithPagedDatas <TemperatureAlarmRuleSearchModel, TemperatureAlarmRuleListModel>(); model.SearchModel = new TemperatureAlarmRuleSearchModel(); model.SearchModel.AffiliatedStrucID = -1; model.PagedDatas = TemperatureAlarmRuleBLL.GetPagedTemperatureAlarmRules(model.SearchModel, base.CurrentStrucID, 1, this.PageSize); return(PartialView("_TemperatureAlarmRuleSetting", model)); }
private ActionResult GetAreaPagedGridPV(AreaSearchModel model, int searchPage) { SearchDataWithPagedDatas <AreaSearchModel, AreaModel> result = new SearchDataWithPagedDatas <AreaSearchModel, AreaModel>(); result.SearchPage = searchPage; result.SearchModel = model; result.PagedDatas = AreaBLL.GetPagedAreaInfo(result.SearchModel, result.SearchPage, this.PageSize); return(PartialView("_AreaPagedGrid", result)); }
public ActionResult GetNightBanInfo(NightBanSearchModel model, int searchPage) { SearchDataWithPagedDatas <NightBanSearchModel, NightBanListModel> result = new SearchDataWithPagedDatas <NightBanSearchModel, NightBanListModel>(); result.SearchModel = model; result.PagedDatas = NightBanBLL.GetPagedNightBan(model, searchPage, this.PageSize); return(PartialView("_NightBanPagedGrid", result)); }
public ActionResult GetUserInfo(UserSearchModel model, int searchPage) { SearchDataWithPagedDatas <UserSearchModel, UserListModel> result = new SearchDataWithPagedDatas <UserSearchModel, UserListModel>(); result.SearchModel = model; result.PagedDatas = UserBLL.GetPagedUserInfo(model, searchPage, this.PageSize, base.IsSuperAdmin); return(PartialView("_UserPagedGrid", result)); }
/// <summary> /// GET: /TerminalSetting/TerminalSetup/Logs/ /// 终端参数设置操作日志 /// </summary> public ActionResult Logs() { var model = new SearchDataWithPagedDatas <TerminalSetupLogs_QueryModel, TerminalSetupLogs_DataModel>(); model.PagedDatas = new AsiatekPagedList <TerminalSetupLogs_DataModel>( new List <TerminalSetupLogs_DataModel>(), 1, 10, 0 ); return(PartialView("Logs", model)); }
public ActionResult GetRepairRecordInfo(RepairRecordSearchModel model, int searchPage) { SearchDataWithPagedDatas <RepairRecordSearchModel, RepairRecordModel> result = new SearchDataWithPagedDatas <RepairRecordSearchModel, RepairRecordModel>(); result.SearchModel = model; //时间搜索设置不正确直接返回count为0 result.PagedDatas = RepairRecordBLL.GetPagedRepairRecord(model, searchPage, this.PageSize, this.CurrentStrucID); return(PartialView("_RepairRecordPageGrid", result)); }
//public ActionResult EmployeeInfoSetting() //{ // SearchDataWithPagedDatas<EmployeeInfoSearchModel, EmployeeInfoListModel> model = new SearchDataWithPagedDatas<EmployeeInfoSearchModel, EmployeeInfoListModel>(); // model.SearchModel = new EmployeeInfoSearchModel(); // model.SearchModel.DriveLicenseStateSelectList = EmployeeInfoBLL.GetDriveLicenseStates().ToSelectListWithAll(m => GetSelectListItem(m.DriveLicenseStateID, m.DriveLicenseStateName)); // model.SearchModel.DriveLicenseStateID = -1; // model.PagedDatas = EmployeeInfoBLL.GetPagedEmployeeInfos(model.SearchModel, 1, this.PageSize); // return PartialView("_EmployeeInfoSetting", model); //} //[AsiatekSubordinateFunction("EmployeeInfoSetting")] //public ActionResult GetEmployeeInfo(EmployeeInfoSearchModel model, int searchPage) //{ // SearchDataWithPagedDatas<EmployeeInfoSearchModel, EmployeeInfoListModel> result = new SearchDataWithPagedDatas<EmployeeInfoSearchModel, EmployeeInfoListModel>(); // result.SearchModel = model; // result.PagedDatas = EmployeeInfoBLL.GetPagedEmployeeInfos(result.SearchModel, searchPage, this.PageSize); // return PartialView("_EmployeeInfoPagedGrid", result); //} #endregion #region 查询 新版 public ActionResult EmployeeInfoSetting() { SearchDataWithPagedDatas <EmployeeInfoFindModel, EmployeeInfoPageModel> model = new SearchDataWithPagedDatas <EmployeeInfoFindModel, EmployeeInfoPageModel>(); model.SearchModel = new EmployeeInfoFindModel(); model.SearchModel.IsCarriers = -1; model.SearchModel.IsDrivers = -1; //model.PagedDatas = EmployeeInfoBLL.GetPagedEmployeeInfo(model.SearchModel, 1, this.PageSize); model.PagedDatas = EmployeeInfoBLL.GetPagedEmployeeInfo_New(model.SearchModel, 1, this.PageSize, base.CurrentStrucID); return(PartialView("_EmployeeInfoSetting", model)); }
public ActionResult AreaInfo() { SearchDataWithPagedDatas <AreaSearchModel, AreaModel> model = new SearchDataWithPagedDatas <AreaSearchModel, AreaModel>(); model.SearchModel = new AreaSearchModel(); model.SearchModel.AreaName = string.Empty; model.SearchPage = 1; model.PagedDatas = AreaBLL.GetPagedAreaInfo(model.SearchModel, model.SearchPage, this.PageSize); return(PartialView("_AreaInfo", model)); }
public ActionResult NightBanSetting() { SearchDataWithPagedDatas <NightBanSearchModel, NightBanListModel> model = new SearchDataWithPagedDatas <NightBanSearchModel, NightBanListModel>(); model.SearchModel = new NightBanSearchModel(); model.SearchModel.IsEnabled = -1; model.PagedDatas = NightBanBLL.GetPagedNightBan(model.SearchModel, 1, this.PageSize); return(PartialView("_NightBanSetting", model)); }
//电子围栏绑定车辆 #region 绑定车辆 /// <summary> /// 加载车辆,带分页,附带电子围栏信息 /// </summary> /// <param name="id"></param> /// <param name="fenceName"></param> /// <returns></returns> public ActionResult VehicleElectricFenceSetting(int id, string fenceName) { SearchDataWithPagedDatas <EFVehicleSearchModel, EFVehicleListModel> model = new SearchDataWithPagedDatas <EFVehicleSearchModel, EFVehicleListModel>(); model.SearchModel = new EFVehicleSearchModel(); model.SearchModel.id = id; model.SearchModel.FenceName = fenceName; ViewData["fenceID"] = id; ViewData["FenceName"] = fenceName; model.PagedDatas = ElectricFenceBLL.GetPagedCustomerVehicle(id, model.SearchModel, 1, this.PageSize, base.CurrentStrucID); return(PartialView("_ElectricFenceVehicleSetting", model)); }
/// <summary> /// GET: /TerminalSetting/TerminalSetup/Regions/ /// 下发区域设置页面 /// </summary> public ActionResult Regions() { ViewBag.SubView = "Regions"; ViewBag.SubViewData = null; ViewBag.TreeViewShowCheckBox = true; var model = new SearchDataWithPagedDatas <int, MapRegionSettingModel>(); model.PagedDatas = new AsiatekPagedList <MapRegionSettingModel>( new List <MapRegionSettingModel>(), 1, 5, 5 ); return(PartialView("Main", model)); }
public ActionResult UserSetting() { SearchDataWithPagedDatas <UserSearchModel, UserListModel> model = new SearchDataWithPagedDatas <UserSearchModel, UserListModel>(); model.SearchModel = new UserSearchModel(); //model.SearchModel.SubordinateStrucSelectList = StructureBLL.GetStructures().ToSelectListWithAll(m => GetSelectListItem(m.ID, m.StrucName)); model.SearchModel.StrucID = -1; model.SearchModel.VehicleViewMode = -1; model.PagedDatas = UserBLL.GetPagedUserInfo(model.SearchModel, 1, this.PageSize, base.IsSuperAdmin); return(PartialView("_UserSetting", model)); }