| | |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using WIDESEAWCS_Common.TaskEnum; |
| | | using WIDESEAWCS_Core; |
| | | using WIDESEAWCS_Core.BaseServices; |
| | | using WIDESEAWCS_Core.Helper; |
| | | using WIDESEAWCS_ITaskInfoRepository; |
| | | using WIDESEAWCS_ITaskInfoService; |
| | | using WIDESEAWCS_Model.Models; |
| | |
| | | /// <param name="Task">浠诲姟</param> |
| | | /// <param name="OperateType">鎿嶄綔绫诲瀷</param> |
| | | /// <returns></returns> |
| | | public WebResponseContent AddTask_Hty(Dt_Task Task, string OperateType) |
| | | public WebResponseContent AddTask_Hty(Dt_Task Task, TaskOperateTypeEnum OperateType) |
| | | { |
| | | WebResponseContent content = new WebResponseContent(); |
| | | try |
| | | { |
| | | Dt_Task_Hty task_Hty = _mapper.Map<Dt_Task_Hty>(Task); |
| | | task_Hty.SourceId = Task.TaskId; |
| | | task_Hty.OperateType = OperateType; |
| | | task_Hty.OperateType = OperateType.ToString(); |
| | | content.Status = BaseDal.AddData(task_Hty) > 0; |
| | | } |
| | | catch (Exception ex) |