1
wankeda
2025-03-07 b55d324f4b7465f9a7dc50e999346697f5cc35a2
WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/TaskService.cs
@@ -159,29 +159,29 @@
            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
                };
@@ -210,7 +210,7 @@
                        return content = WebResponseContent.Instance.OK();
                    }
                }
                return content = WebResponseContent.Instance.Error();*/
                return content = WebResponseContent.Instance.Error();
            }
            catch (Exception ex)
            {