| | |
| | | //{ |
| | | // throw new Exception($"æ´å½¢æºå¤©è½¦æ¾æ¿ä¿¡å·ä¸ºfalse"); |
| | | //} |
| | | var location = _locationRepository.QueryFirst(v => v.LocationCode == wei); |
| | | if (location.LocationType != (int)LocationTypeEnum.Flat) |
| | | { |
| | | return content.OK("5"); |
| | | } |
| | | //æ¥è¯¢å½å任塿± 䏿¯å¦åå¨åºåºä»»å¡ï¼åºåºä»»å¡åªè½åå¨ä¸æ¡ |
| | | var oldtask = _dt_taskRepositiry.QueryFirst(v => v.TaskType == (int)TaskOutboundTypeEnum.Outbound); |
| | | if (oldtask != null) |
| | |
| | | //{ |
| | | // throw new Exception($"è§æ´æºå餿¶å坿¾æ¿æåé¤ä¸ææ¨¡å¼ä¿¡å·ä¸ºfalse"); |
| | | //} |
| | | //æ¥è¯¢å½å任塿± 䏿¯å¦åå¨åºåºä»»å¡ï¼åºåºä»»å¡åªè½åå¨ä¸æ¡ |
| | | var oldtask = _dt_taskRepositiry.QueryFirst(v => v.TaskType == (int)TaskOutboundTypeEnum.Outbound); |
| | | var isout = _outStockRepository.QueryFirst(v => v.Id == 1); |
| | | if (isout.isout == 0) |
| | | { |
| | | var oldtask = _dt_taskRepositiry.QueryFirst(v => v.TaskType == (int)TaskOutboundTypeEnum.Outbound); |
| | | var location = _locationRepository.QueryFirst(v => v.LocationCode == wei); |
| | | if(location.LocationType != (int)LocationTypeEnum.Cube) |
| | | { |
| | | return content.OK("5"); |
| | | } |
| | | if (oldtask != null) |
| | | { |
| | | throw new Exception($"å½å任塿± ä¸å·²åå¨ä¸æ¡åºåºä»»å¡"); |
| | |
| | | var isout = _outStockRepository.QueryFirst(v => v.Id == 1); |
| | | if (isout.isout == 0) |
| | | { |
| | | var location = _locationRepository.QueryFirst(v => v.LocationCode == wei); |
| | | if (location.LocationType != (int)LocationTypeEnum.Cube) |
| | | { |
| | | return content.OK("5"); |
| | | } |
| | | //夿åºåæ¯å¦æè´§ |
| | | //æ¥è¯¢è´§ä½ |
| | | Dt_LocationInfo huo = _LocationInfoRepository.QueryFirst(v => v.LocationCode == wei); |