| | |
| | | using WIDESEAWCS_Core.BaseServices; |
| | | using WIDESEAWCS_Core.Enums; |
| | | using WIDESEAWCS_Core.Helper; |
| | | <<<<<<< HEAD |
| | | ======= |
| | | using WIDESEAWCS_DTO.TaskInfo; |
| | | >>>>>>> main |
| | | using WIDESEAWCS_IBasicInfoRepository; |
| | | using WIDESEAWCS_IPackInfoRepository; |
| | | using WIDESEAWCS_ITaskInfoRepository; |
| | |
| | | return WebResponseContent.Instance.Error(ex.Message); |
| | | } |
| | | } |
| | | <<<<<<< HEAD |
| | | ======= |
| | | /// <summary> |
| | | /// å é¤ç åä»»å¡ä¿¡æ¯ |
| | | /// </summary> |
| | | /// <param name="packTaskNum"></param> |
| | | /// <returns></returns> |
| | | /// <exception cref="NotImplementedException"></exception> |
| | | public WebResponseContent PickaixsTaskDele(int PackTaskNum) |
| | | { |
| | | WebResponseContent content = new WebResponseContent(); |
| | | try |
| | | { |
| | | |
| | | Dt_PackaxisTask packaxisTask = BaseDal.QueryFirst(x => x.PackTaskNum == PackTaskNum); |
| | | if(packaxisTask == null) |
| | | { |
| | | return WebResponseContent.Instance.Error("æªæ¾å°ä»»å¡"); |
| | | } |
| | | else |
| | | { |
| | | Dt_Packinfo packinfo = _packinfoRepository.QueryFirst(x => x.BarCode == packaxisTask.BarCode); |
| | | packinfo.PackStatus = 0; |
| | | _packinfoRepository.UpdateData(packinfo); |
| | | BaseDal.DeleteAndMoveIntoHty(packaxisTask, App.User?.UserId == 0 ? OperateTypeEnum.èªå¨å®æ : OperateTypeEnum.人工å é¤); |
| | | content.Status = true; |
| | | } |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | return WebResponseContent.Instance.Error(e.Message); |
| | | } |
| | | return content; |
| | | } |
| | | |
| | | |
| | | >>>>>>> main |
| | | } |
| | | } |