分支自 SuZhouGuanHong/TaiYuanTaiZhong

dengjunjie
2024-03-26 874ceff175a7308da045943fb7def1f6c6560a51
代码管理/PCS/WCS_Server/WIDESEA_WCS/JobsPart/Common/StationTask.cs
@@ -79,36 +79,6 @@
                            //todo 瀵绘壘鍙斁璐у鍗忔斁璐у彴
                            tasktype = "TaskType_OutsourceInbound";
                            TargetLocation = GetEmptyLocation(stationinfoRepository);
                            #region MyRegion
                            //if (TargetLocation != null)
                            //{
                            //    dt_agvtask agvtask = new dt_agvtask()
                            //    {
                            //        agv_fromaddress = item.stationCode,
                            //        agv_id = Guid.NewGuid(),
                            //        agv_tasknum = IdenxManager.GetTaskNo("KH-", "WMS"),
                            //        agv_grade = 1,
                            //        agv_createtime = DateTime.Now,
                            //        agv_taskstate = "Create",
                            //        agv_materielid = item.stationType,
                            //        agv_qty = item.quantity,
                            //        agv_tasktype = "TaskType_OutsourceInbound",
                            //        agv_toaddress = TargetLocation.stationCode,
                            //        agv_userid = "绯荤粺",
                            //        bindSN = item.bindSN,
                            //        agv_worktype = Convert.ToInt32(mesinfo.processCode),
                            //        agv_materbarcode = mesinfo.materialCode,
                            //        agv_Traytype = item.tray_type,
                            //        jobID = item.Number,
                            //        agv_TrayStatus = item.tray_status
                            //    };
                            //    agvtaskRepository.Add(agvtask, true);
                            //    TargetLocation.location_state = LocationStateEnum.Busy.ToString();
                            //    TargetLocation.stationType = agvtask.agv_materielid;
                            //    stationinfoRepository.Update(TargetLocation, true);
                            //}
                            #endregion
                        }
                        else