public ActionResult ExportLaudryRecordList([DataSourceRequest] DataSourceRequest request, Lau_LaundryRecordSearchNewModel model) { var listModel = GetListData<Lau_LaundryRecordModel, LMS_LaundryRecordEntity, Lau_LaundryRecordSearchNewModel>(request, model, ConstantSql.hrm_lau_sp_get_LaundryRecord, ref status); Dictionary<string, string> formatFields = new Dictionary<string, string>(); formatFields.Add(Lau_LaundryRecordModel.FieldNames.TimeLog, ConstantFormat.HRM_Format_DayMonthYear); formatFields.Add(Lau_LaundryRecordModel.FieldNames.Hour, ConstantFormat.HRM_Format_Grid_ShortTime); formatFields.Add(Lau_LaundryRecordModel.FieldNames.Amount, ConstantFormat.HRM_Format_Money); status = ExportService.Export(listModel, model.GetPropertyValue("ValueFields").TryGetValue<string>().Split(','), formatFields); return Json(status); //return ExportAllAndReturn<Lau_LaundryRecordEntity, Lau_LaundryRecordModel, Lau_LaundryRecordSearchNewModel>(request, model, ConstantSql.hrm_lau_sp_get_LaundryRecord); }
public ActionResult GetLaundryRecordList([DataSourceRequest] DataSourceRequest request, Lau_LaundryRecordSearchNewModel model) { if (model.DateFrom != null) { model.DateFrom = model.DateFrom.Value.Date; } if (model.DateTo != null) { model.DateTo = model.DateTo.Value.Date.AddDays(1).AddMilliseconds(-1); } if (model.ProfileIDs != null) { model.ProfileIDs = Common.DotNetToOracle(model.ProfileIDs); } return GetListDataAndReturn<Lau_LaundryRecordModel, LMS_LaundryRecordEntity, Lau_LaundryRecordSearchNewModel>(request, model, ConstantSql.hrm_lau_sp_get_LaundryRecord); }