| | |
| | | (bool, string) result = CheckRequestInbound(lineDTO.stationCode, lineDTO.Barcode, true, stockInfo); |
| | | if (!result.Item1) return content = WebResponseContent.Instance.Error(result.Item2); |
| | | |
| | | Dt_StockInfoDetail stockInfoDetail = stockInfo.Details.FirstOrDefault(); |
| | | Dt_StockInfoDetail? stockInfoDetail = stockInfo.Details.FirstOrDefault(); |
| | | |
| | | if (/*lineDTO.Spec != 1 ||*/ lineDTO.Weight > 1500)//æ£æµæ¡ä»¶éæ´æ¹ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ |
| | | { |
| | | //task.NextAddress = "101"; |
| | | task.TaskState = (int)InTaskStatusEnum.InException; |
| | | //task.TaskState = (int)InTaskStatusEnum.InException; |
| | | task.Remark = $"æç[{lineDTO.Barcode}]è¶
é"; |
| | | //task.Remark = $"æç[{lineDTO.Barcode}]ä¿¡æ¯ä¸åæ ¼"; |
| | | //stockInfo.StockStatus = StockStatusEmun.å
¥åºæ¤é.ObjToInt(); |
| | |
| | | task.Remark = string.Empty; |
| | | task.TaskState = (int)InTaskStatusEnum.Line_InExecuting; |
| | | stockInfo.StockStatus = StockStatusEmun.å
¥åºç¡®è®¤.ObjToInt(); |
| | | stockInfoDetail.Status = StockStatusEmun.å
¥åºç¡®è®¤.ObjToInt(); |
| | | if (stockInfoDetail != null) stockInfoDetail.Status = StockStatusEmun.å
¥åºç¡®è®¤.ObjToInt(); |
| | | } |
| | | |
| | | #region äºå¡ |
| | | Db.Ado.BeginTran(); |
| | | BaseDal.UpdateData(task); |
| | | _stockService.StockInfoService.Repository.UpdateData(stockInfo); |
| | | _stockService.StockInfoDetailService.Repository.UpdateData(stockInfoDetail); |
| | | if (stockInfoDetail != null) _stockService.StockInfoDetailService.Repository.UpdateData(stockInfoDetail); |
| | | //Db.Updateable(stockInfo).ExecuteCommand(); |
| | | Db.Ado.CommitTran(); |
| | | #endregion |