| | |
| | | //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 |