´úÂë¹ÜÀí/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/AGV/ZH_AGVController.cs
@@ -133,10 +133,10 @@ { var content = PutFinish(task.NextAddress); if (!content.Status) throw new Exception(content.Message); Dt_StationManger dt_Station = _stationMangerRepository.QueryFirst(x => x.AGVStationCode == task.NextAddress); Dt_StationManger dt_Station = _stationMangerRepository.QueryFirst(x => x.StationCode == task.NextAddress); if (dt_Station == null) { throw new Exception($"{task.NextAddress}AGVç«å°æªå®ä¹"); throw new Exception($"{task.NextAddress}ç«å°æªå®ä¹"); } task.CurrentAddress = dt_Station.StationCode; task.NextAddress = ""; ´úÂë¹ÜÀí/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/×躸²Ö/AGV_ZHExtend.cs
@@ -90,13 +90,14 @@ var WaitToTasks = _taskService.Db.Queryable<Dt_Task>().Where(x => x.TaskState == TaskStatusEnum.AGV_WaitToExecute.ObjToInt() && nameof(AGV_ZHJob).Contains(x.DeviceCode)).ToList().OrderBy(x => x.Grade).ThenBy(x => x.CreateDate).ToList(); foreach (var WaitToTask in WaitToTasks) { AgvSecureReplyDTO replyDTO = new AgvSecureReplyDTO(); if (WaitToTask.TaskType.GetTaskTypeGroup() == TaskTypeGroup.InboundGroup) { if (WaitToTasks.FirstOrDefault(x => x.TaskState == TaskStatusEnum.AGV_Puting.ObjToInt() || x.TaskState == TaskStatusEnum.Finish.ObjToInt()) != null) { continue; } Dt_StationManger stationManger = _stationMangerRepository.QueryFirst(x => x.AGVStationCode == WaitToTask.NextAddress); Dt_StationManger stationManger = _stationMangerRepository.QueryFirst(x => x.StationCode == WaitToTask.NextAddress); if (stationManger == null) { continue; @@ -119,6 +120,14 @@ continue; } otherDevice.SetValue(GroundStationDBName.W_PutPalletType, WaitToTask.PalletType, stationManger.StationCode); replyDTO.ReqCode = Guid.NewGuid().ToString().Replace("-", "");//WaitToTask.TaskNum.ToString(), replyDTO.taskCode = WaitToTask.AgvTaskNum; replyDTO.nextPositionCode = new CodePath() { type="00", positionCode= stationManger.AGVStationCode }; } else { @@ -144,13 +153,9 @@ { continue; } replyDTO.ReqCode = Guid.NewGuid().ToString().Replace("-", "");//WaitToTask.TaskNum.ToString(), replyDTO.taskCode = WaitToTask.AgvTaskNum; } AgvSecureReplyDTO replyDTO = new AgvSecureReplyDTO() { ReqCode = Guid.NewGuid().ToString().Replace("-", ""), //WaitToTask.TaskNum.ToString(), taskCode = WaitToTask.AgvTaskNum, }; WebResponseContent content = _taskService.AgvSecureReply(replyDTO); if (content.Status && WaitToTask.TaskType.GetTaskTypeGroup() == TaskTypeGroup.InboundGroup) { ´úÂë¹ÜÀí/WMS/WIDESEA_WMSServer/WIDESEA_DTO/Stock/MaterielnfoStatisticsDTO.cs
@@ -33,13 +33,13 @@ /// åºåæ°é /// </summary> [ExporterHeader(DisplayName = "åºåæ°é")] public float StockQuantity { get; set; } public decimal StockQuantity { get; set; } /// <summary> /// åºåºæ°é /// </summary> [ExporterHeader(DisplayName = "åºåºæ°é")] public float OutboundQuantity { get; set; } public decimal OutboundQuantity { get; set; } /// <summary> /// åºåç¶æ ´úÂë¹ÜÀí/WMS/WIDESEA_WMSServer/WIDESEA_StockService/MaterielnfoStatisticsService.cs
@@ -95,8 +95,8 @@ WarehouseId = a.WarehouseId, MaterielCode = b.MaterielCode, MaterielName = b.MaterielName, StockQuantity = b.StockQuantity, OutboundQuantity = b.OutboundQuantity, StockQuantity =(decimal) b.StockQuantity, OutboundQuantity =(decimal) b.OutboundQuantity, StockStatus = a.StockStatus, Unit = b.Unit, Remark = a.Remark, @@ -109,10 +109,11 @@ var groupedData = new Dictionary<string, MaterielnfoStatisticsDTO>(); foreach (var item in allData) { // ç¡®ä¿åå§å¼ä¸ºdecimalç±»å if (groupedData.ContainsKey(item.MaterielCode)) { groupedData[item.MaterielCode].StockQuantity += item.StockQuantity; groupedData[item.MaterielCode].OutboundQuantity += item.OutboundQuantity; groupedData[item.MaterielCode].StockQuantity += Convert.ToDecimal(item.StockQuantity); groupedData[item.MaterielCode].OutboundQuantity += Convert.ToDecimal(item.OutboundQuantity); } else { @@ -121,8 +122,8 @@ WarehouseId = item.WarehouseId, MaterielCode = item.MaterielCode, MaterielName = item.MaterielName, StockQuantity = item.StockQuantity, OutboundQuantity = item.OutboundQuantity, StockQuantity = Convert.ToDecimal(item.StockQuantity), OutboundQuantity = Convert.ToDecimal(item.OutboundQuantity), StockStatus = item.StockStatus, Unit = item.Unit, Remark = item.Remark @@ -224,8 +225,8 @@ WarehouseId = a.WarehouseId, MaterielCode = b.MaterielCode, MaterielName = b.MaterielName, StockQuantity = b.StockQuantity, OutboundQuantity = b.OutboundQuantity, StockQuantity = (decimal)b.StockQuantity, OutboundQuantity =(decimal) b.OutboundQuantity, StockStatus = a.StockStatus, Unit = b.Unit, Remark = a.Remark,