| | |
| | | try |
| | | { |
| | | //task.CurrentAddress = _PlatformStationService.GetSCName(task.Roadway); |
| | | Dt_Task taskDTO = new Dt_Task() |
| | | { |
| | | TaskNum = Convert.ToInt32(DateTime.Now.ToString("HHmmss")), |
| | | Grade = 1, |
| | | PalletCode = palletCode, |
| | | Roadway = "SC04", |
| | | SourceAddress = "R04-002-0037-001-01", |
| | | TargetAddress = "R04-001-0036-001-01", |
| | | TaskState = (int)TaskInStatusEnum.InNew, |
| | | TaskType = (int)TaskInboundTypeEnum.Inbound, |
| | | CurrentAddress = sourceAddress, |
| | | NextAddress = "1019", |
| | | WMSId=0, |
| | | Creater="system", |
| | | //PalletCodequantity= GoodsType, |
| | | PalletCodequantity= 1, |
| | | Station_storey=1 |
| | | }; |
| | | BaseDal.AddData(taskDTO); |
| | | //ReceiveWMSTask(new List<Dt_Task> { taskDTO }); |
| | | return content = content = WebResponseContent.Instance.OK(); |
| | | //Dt_Task taskDTO = new Dt_Task() |
| | | //{ |
| | | // TaskNum = Convert.ToInt32(DateTime.Now.ToString("HHmmss")), |
| | | // Grade = 1, |
| | | // PalletCode = palletCode, |
| | | // Roadway = "SC04", |
| | | // SourceAddress = "R04-002-0037-001-01", |
| | | // TargetAddress = "R04-001-0036-001-01", |
| | | // TaskState = (int)TaskInStatusEnum.InNew, |
| | | // TaskType = (int)TaskInboundTypeEnum.Inbound, |
| | | // CurrentAddress = sourceAddress, |
| | | // NextAddress = "1019", |
| | | // WMSId=0, |
| | | // Creater="system", |
| | | // //PalletCodequantity= GoodsType, |
| | | // PalletCodequantity= 1, |
| | | // Station_storey=1 |
| | | //}; |
| | | //BaseDal.AddData(taskDTO); |
| | | ////ReceiveWMSTask(new List<Dt_Task> { taskDTO }); |
| | | //return content = content = WebResponseContent.Instance.OK(); |
| | | |
| | | /*GenerateInv generate = new GenerateInv() |
| | | GenerateInv generate = new GenerateInv() |
| | | { |
| | | PalletCode = palletCode |
| | | }; |
| | |
| | | return content = WebResponseContent.Instance.OK(); |
| | | } |
| | | } |
| | | return content = WebResponseContent.Instance.Error();*/ |
| | | return content = WebResponseContent.Instance.Error(); |
| | | } |
| | | catch (Exception ex) |
| | | { |