| | |
| | | var station=_dt_stationInfoRepository.QueryFirst(v=>v.msg== "ä¸è·¨æ¶å"); |
| | | task.SourceAddress = station.Row + "-" + station.Column + "-1"; |
| | | task.TargetAddress = _locationInfoService.GetInLocation(storagemode.storagemode).LocationCode; |
| | | |
| | | task.Grade = 1; |
| | | task.Remark = (int)MateTypeEnum.ZiChan; |
| | | } |
| | |
| | | { |
| | | throw new Exception($"è§æ´æºå½åä¿¡å·ä¸æ»¡è¶³å
¥åºä»»å¡çææ¡ä»¶"); |
| | | } |
| | | //æ¥æ¾ç¸é»çåºä½ |
| | | Dt_LocationInfo Towlocation = new Dt_LocationInfo(); |
| | | var Onelocation = _LocationInfoRepository.QueryFirst(v => v.LocationCode == task.TargetAddress); |
| | | if (Onelocation.Depth == 1) |
| | | { |
| | | Towlocation = _LocationInfoRepository.QueryFirst(v => v.Row == Onelocation.Row && v.Column == Onelocation.Column && v.Depth == 2); |
| | | } |
| | | else |
| | | { |
| | | Towlocation = _LocationInfoRepository.QueryFirst(v => v.Row == Onelocation.Row && v.Column == Onelocation.Column && v.Depth == 1); |
| | | } |
| | | task.NextAddress = Towlocation.LocationCode; |
| | | task.Roadway = "TC01"; |
| | | task.TaskType = (int)TaskInboundTypeEnum.Inbound; |
| | | task.TaskState = (int)TaskInStatusEnum.InNew; |
| | | |
| | | task.PalletCode = "text"; |
| | | task.CurrentAddress = "text"; |
| | | _dt_taskRepositiry.AddData(task); |
| | | |
| | | #endregion |