| 代码管理/WCS/WIDESEAWCS_Server/WIDESEAWCS_DTO/WMS/WMSGetLocationInfo.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| 代码管理/WCS/WIDESEAWCS_Server/WIDESEAWCS_ITaskInfoService/ITaskService.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| 代码管理/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/WMS/WMSController.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| 代码管理/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/TaskService.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
´úÂë¹ÜÀí/WCS/WIDESEAWCS_Server/WIDESEAWCS_DTO/WMS/WMSGetLocationInfo.cs
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,29 @@ using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace WIDESEAWCS_DTO.WMS { /// <summary> /// åºä½ä¿¡æ¯æ¥è¯¢ /// </summary> public class WMSGetLocationInfo { /// <summary> /// åºåºç¼å· /// </summary> public string AreaCode { get; set; } /// <summary> /// 1ï¼æååº /// 2ï¼é¢æåº /// 3:è¾é线ç¼å /// 4ï¼è£åªåº /// 5ï¼1楼åºå ¥åºç«å° /// </summary> public int WarehouseId { get; set; } } } ´úÂë¹ÜÀí/WCS/WIDESEAWCS_Server/WIDESEAWCS_ITaskInfoService/ITaskService.cs
@@ -236,7 +236,7 @@ /// </summary> /// <param name="AreaCode">åºåå·</param> /// <returns></returns> WebResponseContent LocationInquiry(string AreaCode); WebResponseContent LocationInquiry(WMSGetLocationInfo getLocationInfo); /// <summary> ´úÂë¹ÜÀí/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/WMS/WMSController.cs
@@ -100,9 +100,9 @@ /// <param name="AreaCode">åºåå·</param> /// <returns></returns> [HttpGet, HttpPost, Route("QueryStation"), AllowAnonymous] public WMSReturn QueryStation(string AreaCode) public WMSReturn QueryStation(WMSGetLocationInfo getLocationInfo) { WebResponseContent content = _taskService.LocationInquiry(AreaCode); WebResponseContent content = _taskService.LocationInquiry(getLocationInfo); return WMSReturnMethod.ReturnWMS(content); } } ´úÂë¹ÜÀí/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/TaskService.cs
@@ -148,11 +148,11 @@ objects.Add(content.Data); break; case (int)TaskTypeEnum.CPInbound: content= CreateRGVNewInTask(task, item.taskType); content = CreateRGVNewInTask(task, item.taskType); objects.Add(content.Data); break; case (int)TaskTypeEnum.CPOutbound: content= CreateRGVNewOutTask(task, item.taskType); content = CreateRGVNewOutTask(task, item.taskType); objects.Add(content.Data); break; case (int)TaskTypeEnum.CJInbound: @@ -1067,14 +1067,51 @@ /// <param name="AreaCode"></param> /// <returns></returns> /// <exception cref="NotImplementedException">åºåå·</exception> public WebResponseContent LocationInquiry(string AreaCode) public WebResponseContent LocationInquiry(WMSGetLocationInfo getLocationInfo) { if (AreaCode == null) WebResponseContent content = new WebResponseContent(); List<object> list = new List<object>(); try { //æ¥è¯¢è¾é线空æç¼åä¿¡æ¯æ¶è¿åç©ºä½æ°é } return WebResponseContent.Instance.OK(); if (getLocationInfo == null) throw new Exception("请æ±åæ°ä¸è½ä¸ºç©ºï¼"); if (getLocationInfo.AreaCode == null) throw new Exception("åºåºç¼å·ä¸è½ä¸ºç©ºï¼"); if (getLocationInfo.WarehouseId == 0) throw new Exception("ä»åºIDä¸è½ä¸ºç©ºï¼"); if (getLocationInfo.WarehouseId == 1) { List<Dt_RGVLocationInfo> rGVLocationInfos = _rGVLocationInfoService.Repository.QueryData(x => x.WarehouseId == getLocationInfo.AreaCode.ObjToInt()); foreach (var item in rGVLocationInfos) { list.Add(new { LoctionCode = item.LocationCode, LocationStatus = item.LocationStatus, EnableStatus = item.EnableStatus }); } content.Data = list; } else if (getLocationInfo.WarehouseId == 2) { } else if (getLocationInfo.WarehouseId == 3) { } else if (getLocationInfo.WarehouseId == 4) { } else if (getLocationInfo.WarehouseId == 5) { } } catch (Exception ex) { content.Error(ex.Message); } return content; }