| | |
| | | } |
| | | |
| | | |
| | | //ç®æ è´§ä½æ¥æ¾åºä½æ¯å¦æè´§ |
| | | Dt_StockInfo dt_StockCurren = _stockService.StockInfoService.Repository.QueryFirst(x => x.LocationCode == newLocation.LocationCode); |
| | | if (dt_StockCurren != null) return content = WebResponseContent.Instance.Error($"å
¥åºå¤±è´¥ï¼æçæ¡ç ï¼{dt_StockInfo.PalletCode}ï¼æ¥æ¾åºçè´§ä½ä¿¡æ¯å¯¹åºå·²æåºå"); |
| | | |
| | | Dt_Task taskcurren = BaseDal.QueryFirst(x => x.TargetAddress == newLocation.LocationCode); |
| | | if (taskcurren != null) return content = WebResponseContent.Instance.Error($"å
¥åºå¤±è´¥ï¼æçæ¡ç ï¼{dt_StockInfo.PalletCode}ï¼æ¥æ¾åºçè´§ä½ä¿¡æ¯å·²æå
¥åºä»»å¡"); |
| | | |
| | | bool crutaskthy = _taskHtyService.CrueeTaskHty(newLocation.LocationCode); |
| | | if (crutaskthy) return content = WebResponseContent.Instance.Error($"å
¥åºå¤±è´¥ï¼æçæ¡ç ï¼{dt_StockInfo.PalletCode}ï¼æ¥æ¾åºçè´§ä½å¨ä»»å¡åå²ä¿¡æ¯ä¸ï¼æå
¥åºæç§»åºä¿¡æ¯"); |
| | | |
| | | |
| | | if (newLocation != null) |
| | | { |
| | | Dt_Task dt_Task = new() |
| | |
| | | for (int i = 0; i < saveModel.DelKeys.Count; i++) |
| | | { |
| | | Dt_StockInfo stockt = _stockService.StockInfoService.Repository.QueryFirst(x => x.PalletCode == saveModel.DelKeys[i].ToString()); |
| | | if (stockt.StockStatus == (int)StockStatusEmun.å·²å
¥åº && (stockt.Wlstatus == (int)InventoryMaterialStatus.åæ ¼ || stockt.Wlstatus == (int)InventoryMaterialStatus.è¿å·¥)) |
| | | if (stockt.StockStatus == (int)StockStatusEmun.å·²å
¥åº && (stockt.Wlstatus == (int)InventoryMaterialStatus.åæ ¼ || stockt.Wlstatus == (int)InventoryMaterialStatus.è¿å·¥ || stockt.Wlstatus == (int)InventoryMaterialStatus.ç¹é) ) |
| | | { |
| | | if(stockt.MaterialType != (int)InventoryMaterialType.åææ) |
| | | { |
| | |
| | | } |
| | | else |
| | | { |
| | | return content = WebResponseContent.Instance.Error($"åºåºå¤±è´¥ï¼è¯·éæ©å·²å
¥åºä¸åæ ¼çç©æåºåºï¼ï¼ï¼ï¼åºåºæ¡ç ï¼{saveModel.DelKeys[i].ToString()}"); |
| | | return content = WebResponseContent.Instance.Error($"åºåºå¤±è´¥ï¼è¯·éæ©å·²å
¥åºä¸ï¼åæ ¼ï¼è¿å·¥ï¼ç¹éï¼çç©æåºåºï¼ï¼ï¼ï¼åºåºæ¡ç ï¼{saveModel.DelKeys[i].ToString()}"); |
| | | } |
| | | |
| | | } |