| | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 获取设备模糊列表 |
| | | /// </summary> |
| | | public List<Tuple<Model.RepairTaskForm, Model.RepairRequestForm>> GetFluzzyListOfEquipmentIds |
| | | ( |
| | | List<long> EquipmentIds, |
| | | long? RepairUserID, |
| | | eTaskStatus? FormStatus, |
| | | eUrgency? Urgency, |
| | | string FormNo, |
| | | DateTime? StartTime, |
| | | DateTime? EndTime |
| | | ) |
| | | { |
| | | if (EquipmentIds == null || EquipmentIds.Count < 1) |
| | | { |
| | | return default; |
| | | } |
| | | var entityList = _dal.GetFluzzyListOfEquipmentIds |
| | | (EquipmentIds, RepairUserID, (int?)FormStatus, (int?)Urgency, FormNo, StartTime, EndTime); |
| | | var modelList = entityList?.Select(x => new Tuple<Model.RepairTaskForm, Model.RepairRequestForm>(Entity2Model(x.Item1), Entity2Model(x.Item2))).ToList(); |
| | | return modelList; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 获取分页列表 |
| | | /// </summary> |
| | | public List<Tuple<Model.RepairTaskForm, Model.RepairRequestForm>> GetPageList |
| | |
| | | ) |
| | | { |
| | | var entityList = _dal.GetPageList |
| | | (EquipmentIds, RepairUserID, (int?)FormStatus, (int?)Urgency, FormNo, StartTime, EndTime, PageIndex, PageSize, ref Total); |
| | | var modelList = entityList?.Select(x => new Tuple<Model.RepairTaskForm, Model.RepairRequestForm>(Entity2Model(x.Item1), Entity2Model(x.Item2))).ToList(); |
| | | return modelList; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 获取设备分页列表 |
| | | /// </summary> |
| | | public List<Tuple<Model.RepairTaskForm, Model.RepairRequestForm>> GetPageListOfEquipmentIds |
| | | ( |
| | | List<long> EquipmentIds, |
| | | long? RepairUserID, |
| | | eTaskStatus? FormStatus, |
| | | eUrgency? Urgency, |
| | | string FormNo, |
| | | DateTime? StartTime, |
| | | DateTime? EndTime, |
| | | int PageIndex, |
| | | int PageSize, |
| | | ref int Total |
| | | ) |
| | | { |
| | | if (EquipmentIds == null || EquipmentIds.Count < 1) |
| | | { |
| | | return default; |
| | | } |
| | | var entityList = _dal.GetPageListOfEquipmentIds |
| | | (EquipmentIds, RepairUserID, (int?)FormStatus, (int?)Urgency, FormNo, StartTime, EndTime, PageIndex, PageSize, ref Total); |
| | | var modelList = entityList?.Select(x => new Tuple<Model.RepairTaskForm, Model.RepairRequestForm>(Entity2Model(x.Item1), Entity2Model(x.Item2))).ToList(); |
| | | return modelList; |
| | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 获取设备进行中的分页列表 |
| | | /// </summary> |
| | | public List<Tuple<Model.RepairTaskForm, Model.RepairRequestForm>> GetProgressPageListOfEquipmentIds |
| | | ( |
| | | List<long> EquipmentIds, |
| | | long? RepairUserID, |
| | | eUrgency? Urgency, |
| | | string FormNo, |
| | | DateTime? StartTime, |
| | | DateTime? EndTime, |
| | | int PageIndex, |
| | | int PageSize, |
| | | ref int Total |
| | | ) |
| | | { |
| | | if (EquipmentIds == null || EquipmentIds.Count < 1) |
| | | { |
| | | return default; |
| | | } |
| | | var entityList = _dal.GetProgressPageListOfEquipmentIds |
| | | (EquipmentIds, RepairUserID, (int?)Urgency, FormNo, StartTime, EndTime, PageIndex, PageSize, ref Total); |
| | | var modelList = entityList?.Select(x => new Tuple<Model.RepairTaskForm, Model.RepairRequestForm>(Entity2Model(x.Item1), Entity2Model(x.Item2))).ToList(); |
| | | return modelList; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 获取已完成的分页列表 |
| | | /// </summary> |
| | | public List<Tuple<Model.RepairTaskForm, Model.RepairRequestForm>> GetHasFinishedPageList |
| | |
| | | return modelList; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 获取设备已完成的分页列表 |
| | | /// </summary> |
| | | public List<Tuple<Model.RepairTaskForm, Model.RepairRequestForm>> GetHasFinishedPageListOfEquipmentIds |
| | | ( |
| | | List<long> EquipmentIds, |
| | | long? RepairUserID, |
| | | eUrgency? Urgency, |
| | | string FormNo, |
| | | DateTime? StartTime, |
| | | DateTime? EndTime, |
| | | int PageIndex, |
| | | int PageSize, |
| | | ref int Total |
| | | ) |
| | | { |
| | | if (EquipmentIds == null || EquipmentIds.Count < 1) |
| | | { |
| | | return default; |
| | | } |
| | | var entityList = _dal.GetHasFinishedPageListOfEquipmentIds |
| | | (EquipmentIds, RepairUserID, (int?)Urgency, FormNo, StartTime, EndTime, PageIndex, PageSize, ref Total); |
| | | var modelList = entityList?.Select(x => new Tuple<Model.RepairTaskForm, Model.RepairRequestForm>(Entity2Model(x.Item1), Entity2Model(x.Item2))).ToList(); |
| | | return modelList; |
| | | } |
| | | |
| | | |
| | | #endregion |
| | | |