| | |
| | | *.bin |
| | | *.2 |
| | | *.2 |
| | | /代ç 管ç/WCS/WIDESEAWCS_Server/.vs/WIDESEAWCS_Server/config/applicationhost.config |
| | | /代ç 管ç/WCS/WIDESEAWCS_Server/WIDESEAWCS_BasicInfoRepository/WIDESEAWCS_BasicInfoRepository.csproj |
| | | /代ç 管ç/WCS/WIDESEAWCS_Server/WIDESEAWCS_BasicInfoService/WIDESEAWCS_BasicInfoService.csproj |
| | | /代ç 管ç/WCS/WIDESEAWCS_Server/WIDESEAWCS_Common/WIDESEAWCS_Common.csproj |
| | |
| | | |
| | | namespace WIDESEAWCS_Common.TaskEnum |
| | | { |
| | | public enum TaskTypeEnum |
| | | { |
| | | /// <summary> |
| | | /// æåå
¥åº |
| | | /// </summary> |
| | | [Description("æåå
¥åº")] |
| | | CPInbound = 1, |
| | | /// <summary> |
| | | /// æååºåº |
| | | /// </summary> |
| | | [Description("æååºåº")] |
| | | CPOutbound, |
| | | /// <summary> |
| | | /// 颿å
¥åº |
| | | /// </summary> |
| | | [Description("颿å
¥åº")] |
| | | MLInbound, |
| | | /// <summary> |
| | | /// 颿åºåº |
| | | /// </summary> |
| | | [Description("颿åºåº")] |
| | | MLOutbound, |
| | | /// <summary> |
| | | /// 跨楼å±è¿è¾ |
| | | /// </summary> |
| | | [Description("跨楼å±è¿è¾")] |
| | | Carry, |
| | | /// <summary> |
| | | /// è£åªéè´§ |
| | | /// </summary> |
| | | [Description("è£åªéè´§")] |
| | | CJCarry, |
| | | /// <summary> |
| | | /// è£åªå
¥åº |
| | | /// </summary> |
| | | [Description("è£åªå
¥åº")] |
| | | CJInbound, |
| | | /// <summary> |
| | | /// è£åªåºåº |
| | | /// </summary> |
| | | [Description("è£åªåºåº")] |
| | | CJOutbound, |
| | | } |
| | | |
| | | public enum TaskInboundTypeEnum |
| | | { |
| | | /// <summary> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | |
| | | namespace WIDESEAWCS_DTO.TaskInfo |
| | | { |
| | | public class WMSTasksDTO |
| | | { |
| | | /// <summary> |
| | | /// ä»»å¡ç±»å |
| | | /// 1æåå
¥åº |
| | | ///2æååºåº |
| | | ///3 颿å
¥åº |
| | | ///4 颿åºåº |
| | | ///5跨楼å±è¿è¾ |
| | | ///6 è£åªéè´§ |
| | | ///7è£åªå
¥åº |
| | | ///8 è£åªåºåº |
| | | /// </summary> |
| | | public int taskType { get; set; } |
| | | /// <summary> |
| | | /// ä»»å¡ç»å· |
| | | /// </summary> |
| | | public string taskGroupCode { get; set; } |
| | | public string groupPriority { get; set; } |
| | | public List<TaskDTO> tasks { get; set; } |
| | | } |
| | | |
| | | public class TaskDTO |
| | | { |
| | | /// <summary> |
| | | /// ä»»å¡å· |
| | | /// </summary> |
| | | public string taskCode { get; set; } |
| | | /// <summary> |
| | | /// ä»»å¡ç级 |
| | | /// </summary> |
| | | public int taskPriority { get; set; } |
| | | /// <summary> |
| | | /// æç®±å· |
| | | /// </summary> |
| | | public string containerCode { get; set;} |
| | | /// <summary> |
| | | /// æç®±ç±»å |
| | | /// </summary> |
| | | public string containerType { get; set;} |
| | | |
| | | public string storageTag { get; set;} |
| | | /// <summary> |
| | | /// èµ·ç¹ä½ç½® |
| | | /// </summary> |
| | | public string fromLocationCode { get; set;} |
| | | /// <summary> |
| | | /// ç»ç¹åºå |
| | | /// </summary> |
| | | public string toAreaCode { get; set;} |
| | | /// <summary> |
| | | /// ç»ç¹ä½ç½® |
| | | /// </summary> |
| | | public string toLocationCode { get; set;} |
| | | } |
| | | } |
| | |
| | | |
| | | <ItemGroup> |
| | | <Folder Include="BasicInfo\" /> |
| | | <Folder Include="WMS\" /> |
| | | <Folder Include="RGV\" /> |
| | | <Folder Include="AGV\" /> |
| | | </ItemGroup> |
| | | |
| | | </Project> |
| | |
| | | using WIDESEAWCS_Model.Models; |
| | | using WIDESEAWCS_Common.TaskEnum; |
| | | using WIDESEAWCS_Core.BaseRepository; |
| | | using Microsoft.AspNetCore.Mvc; |
| | | |
| | | namespace WIDESEAWCS_ITaskInfoService |
| | | { |
| | |
| | | /// </summary> |
| | | /// <param name="taskDTOs">WMSä»»å¡å¯¹è±¡éå</param> |
| | | /// <returns>è¿åå¤çç»æ</returns> |
| | | WebResponseContent ReceiveWMSTask([FromBody] List<WMSTasksDTO> taskDTOs); |
| | | WebResponseContent ReceiveWMSTask([NotNull] List<WMSTaskDTO> taskDTOs); |
| | | |
| | | /// <summary> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | using SqlSugar; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using WIDESEAWCS_Core.DB.Models; |
| | | |
| | | namespace WIDESEAWCS_Model.Models |
| | | { |
| | | [SugarTable(nameof(Dt_ApiInfo), "æ¥å£ä¿¡æ¯")] |
| | | public class Dt_ApiInfo : BaseEntity |
| | | { |
| | | /// <summary> |
| | | /// ä¸»é® |
| | | /// </summary> |
| | | [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "主é®")] |
| | | public int Id { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æ¥å£ç¼å· |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "æ¥å£ç¼å·")] |
| | | public string ApiCode { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æ¥å£åç§° |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = true, Length = 50, ColumnDescription = "æ¥å£åç§°")] |
| | | public string ApiName { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æ¥å£å°å |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = false, Length = 200, ColumnDescription = "æ¥å£å°å")] |
| | | public string ApiAddress { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 夿³¨ |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = true, Length = 50, ColumnDescription = "夿³¨")] |
| | | public string Remark { get; set; } |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | using SqlSugar; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using WIDESEAWCS_Core.DB.Models; |
| | | |
| | | namespace WIDESEAWCS_Model.Models |
| | | { |
| | | /// <summary> |
| | | /// 海康货ä½ä¿¡æ¯ |
| | | /// </summary> |
| | | [SugarTable(nameof(Dt_HKLocationInfo), "海康货ä½ä¿¡æ¯")] |
| | | public class Dt_HKLocationInfo : BaseEntity |
| | | { |
| | | /// <summary> |
| | | /// ä¸»é® |
| | | /// </summary> |
| | | [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "主é®")] |
| | | public int Id { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ä»åºç¼å· |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = false, ColumnDescription = "ä»åºç¼å·")] |
| | | public int WarehouseId { get; set; } |
| | | |
| | | /// <summary> |
| | | /// è´§ä½ç¼å· |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = true, Length = 30, ColumnDescription = "è´§ä½ç¼å·")] |
| | | public string LocationCode { get; set; } |
| | | |
| | | /// <summary> |
| | | /// è´§ä½åç§° |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = true, Length = 50, ColumnDescription = "è´§ä½åç§°")] |
| | | public string LocationName { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å··éç¼å· |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = true, Length = 20, ColumnDescription = "å··éç¼å·")] |
| | | public string RoadwayNo { get; set; } |
| | | |
| | | /// <summary> |
| | | /// è´§ä½è¡ |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = true, ColumnDescription = "è´§ä½è¡")] |
| | | public int Row { get; set; } |
| | | |
| | | /// <summary> |
| | | /// è´§ä½å |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = true, ColumnDescription = "è´§ä½å")] |
| | | public int Column { get; set; } |
| | | |
| | | /// <summary> |
| | | /// è´§ä½å± |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = true, ColumnDescription = "è´§ä½å±")] |
| | | public int Layer { get; set; } |
| | | |
| | | /// <summary> |
| | | /// è´§ä½æ·±åº¦ |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = true, ColumnDescription = "è´§ä½æ·±åº¦")] |
| | | public int Depth { get; set; } |
| | | |
| | | /// <summary> |
| | | /// è´§ä½ç±»å |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = true, ColumnDescription = "è´§ä½ç±»å")] |
| | | public int LocationType { get; set; } |
| | | |
| | | /// <summary> |
| | | /// è´§ä½ç¶æ |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = true, DefaultValue = "0", ColumnDescription = "è´§ä½ç¶æ")] |
| | | public int LocationStatus { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ç¦ç¨ç¶æ |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = true, DefaultValue = "0", ColumnDescription = "ç¦ç¨ç¶æ")] |
| | | public int EnableStatus { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 夿³¨ |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = true, Length = 200, ColumnDescription = "夿³¨")] |
| | | public string Remark { get; set; } |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | using SqlSugar; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using WIDESEAWCS_Core.DB.Models; |
| | | |
| | | namespace WIDESEAWCS_Model.Models |
| | | { |
| | | /// <summary> |
| | | /// å¯ä¹å£«è´§ä½ä¿¡æ¯ |
| | | /// </summary> |
| | | [SugarTable(nameof(Dt_KLSLocationInfo), "å¯ä¹å£«è´§ä½ä¿¡æ¯")] |
| | | public class Dt_KLSLocationInfo : BaseEntity |
| | | { |
| | | /// <summary> |
| | | /// ä¸»é® |
| | | /// </summary> |
| | | [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "主é®")] |
| | | public int Id { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ä»åºç¼å· |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = false, ColumnDescription = "ä»åºç¼å·")] |
| | | public int WarehouseId { get; set; } |
| | | |
| | | /// <summary> |
| | | /// è´§ä½ç¼å· |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = true, Length = 30, ColumnDescription = "è´§ä½ç¼å·")] |
| | | public string LocationCode { get; set; } |
| | | |
| | | /// <summary> |
| | | /// è´§ä½åç§° |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = true, Length = 50, ColumnDescription = "è´§ä½åç§°")] |
| | | public string LocationName { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å··éç¼å· |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = true, Length = 20, ColumnDescription = "å··éç¼å·")] |
| | | public string RoadwayNo { get; set; } |
| | | |
| | | /// <summary> |
| | | /// è´§ä½è¡ |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = true, ColumnDescription = "è´§ä½è¡")] |
| | | public int Row { get; set; } |
| | | |
| | | /// <summary> |
| | | /// è´§ä½å |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = true, ColumnDescription = "è´§ä½å")] |
| | | public int Column { get; set; } |
| | | |
| | | /// <summary> |
| | | /// è´§ä½å± |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = true, ColumnDescription = "è´§ä½å±")] |
| | | public int Layer { get; set; } |
| | | |
| | | /// <summary> |
| | | /// è´§ä½æ·±åº¦ |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = true, ColumnDescription = "è´§ä½æ·±åº¦")] |
| | | public int Depth { get; set; } |
| | | |
| | | /// <summary> |
| | | /// è´§ä½ç±»å |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = true, ColumnDescription = "è´§ä½ç±»å")] |
| | | public int LocationType { get; set; } |
| | | |
| | | /// <summary> |
| | | /// è´§ä½ç¶æ |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = true, DefaultValue = "0", ColumnDescription = "è´§ä½ç¶æ")] |
| | | public int LocationStatus { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ç¦ç¨ç¶æ |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = true, DefaultValue = "0", ColumnDescription = "ç¦ç¨ç¶æ")] |
| | | public int EnableStatus { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 夿³¨ |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = true, Length = 200, ColumnDescription = "夿³¨")] |
| | | public string Remark { get; set; } |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | using SqlSugar; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using WIDESEAWCS_Core.DB.Models; |
| | | |
| | | namespace WIDESEAWCS_Model.Models |
| | | { |
| | | /// <summary> |
| | | /// ååç©¿æ¢è½¦è´§ä½ä¿¡æ¯ |
| | | /// </summary> |
| | | [SugarTable(nameof(Dt_RGVLocationInfo), "åå车货ä½ä¿¡æ¯")] |
| | | public class Dt_RGVLocationInfo : BaseEntity |
| | | { |
| | | /// <summary> |
| | | /// ä¸»é® |
| | | /// </summary> |
| | | [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "主é®")] |
| | | public int Id { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ä»åºç¼å· |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = false, ColumnDescription = "ä»åºç¼å·")] |
| | | public int WarehouseId { get; set; } |
| | | |
| | | /// <summary> |
| | | /// è´§ä½ç¼å· |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = true, Length = 30, ColumnDescription = "è´§ä½ç¼å·")] |
| | | public string LocationCode { get; set; } |
| | | |
| | | /// <summary> |
| | | /// è´§ä½åç§° |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = true, Length = 50, ColumnDescription = "è´§ä½åç§°")] |
| | | public string LocationName { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å··éç¼å· |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = true, Length = 20, ColumnDescription = "å··éç¼å·")] |
| | | public string RoadwayNo { get; set; } |
| | | |
| | | /// <summary> |
| | | /// è´§ä½è¡ |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = true, ColumnDescription = "è´§ä½è¡")] |
| | | public int Row { get; set; } |
| | | |
| | | /// <summary> |
| | | /// è´§ä½å |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = true, ColumnDescription = "è´§ä½å")] |
| | | public int Column { get; set; } |
| | | |
| | | /// <summary> |
| | | /// è´§ä½å± |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = true, ColumnDescription = "è´§ä½å±")] |
| | | public int Layer { get; set; } |
| | | |
| | | /// <summary> |
| | | /// è´§ä½æ·±åº¦ |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = true, ColumnDescription = "è´§ä½æ·±åº¦")] |
| | | public int Depth { get; set; } |
| | | |
| | | /// <summary> |
| | | /// è´§ä½ç±»å |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = true, ColumnDescription = "è´§ä½ç±»å")] |
| | | public int LocationType { get; set; } |
| | | |
| | | /// <summary> |
| | | /// è´§ä½ç¶æ |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = true, DefaultValue = "0", ColumnDescription = "è´§ä½ç¶æ")] |
| | | public int LocationStatus { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ç¦ç¨ç¶æ |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = true, DefaultValue = "0", ColumnDescription = "ç¦ç¨ç¶æ")] |
| | | public int EnableStatus { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 夿³¨ |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = true, Length = 200, ColumnDescription = "夿³¨")] |
| | | public string Remark { get; set; } |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | using SqlSugar; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using WIDESEAWCS_Core.DB.Models; |
| | | |
| | | namespace WIDESEAWCS_Model.Models |
| | | { |
| | | [SugarTable(nameof(Dt_StationManger), "ç«å°è¡¨")] |
| | | public class Dt_StationManger : BaseEntity |
| | | { |
| | | /// <summary> |
| | | /// ä¸»é® |
| | | /// </summary> |
| | | [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "主é®")] |
| | | public int Id { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ç«å°ç¼å· |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "ç«å°ç¼å·")] |
| | | public string StationCode { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ç«å°åç§° |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = true, Length = 50, ColumnDescription = "ç«å°åç§°")] |
| | | public string StationName { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ç«å°ç±»å <br/> |
| | | /// 1ï¼åªå
¥ <br/> |
| | | /// 2ï¼åªåº <br/> |
| | | /// 3ï¼å¯å
¥å¯åº |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = false, ColumnDescription = "ç«å°ç±»å")] |
| | | public int StationType { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 对åºå åæºæ-å-å± |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "对åºå åæºæ-å-å±")] |
| | | public string StackerCraneStationCode { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ç«å°è®¾å¤ç¼å· |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "ç«å°è®¾å¤ç¼å·")] |
| | | public string StationDeviceCode { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å åæºç¼å· |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "å åæºç¼å·")] |
| | | public string StackerCraneCode { get; set; } |
| | | |
| | | /// <summary> |
| | | /// AGVç«å°ç¼å· |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = true, Length = 50, ColumnDescription = "AGVç«å°ç¼å·")] |
| | | public string? AGVStationCode { get; set; } |
| | | /// <summary> |
| | | /// ç«å°æ¯å¦å¯ç¨ <br/> |
| | | /// 0ï¼å¯ç¨ <br/> |
| | | /// 1ï¼å ç¨ <br/> |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = false, ColumnDescription = "ç«å°æ¯å¦å¯ç¨")] |
| | | public int IsOccupied { get; set; } |
| | | /// <summary> |
| | | /// 夿³¨ |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = true, Length = 50, ColumnDescription = "夿³¨")] |
| | | public string Remark { get; set; } |
| | | } |
| | | } |
| | |
| | | public int TaskNum { get; set; } |
| | | |
| | | /// <summary> |
| | | /// WMSä»»å¡å· |
| | | /// </summary> |
| | | [ImporterHeader(Name = "WMSä»»å¡å·")] |
| | | [ExporterHeader(DisplayName = "WMSä»»å¡å·")] |
| | | [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "WMSä»»å¡å·")] |
| | | public string WMSTaskNum { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æçç¼å· |
| | | /// </summary> |
| | | [ImporterHeader(Name = "æçç¼å·")] |
| | |
| | | <ProjectReference Include="..\WIDESEAWCS_Common\WIDESEAWCS_Common.csproj" /> |
| | | </ItemGroup> |
| | | |
| | | <ItemGroup> |
| | | <Folder Include="Models\BasicInfo\" /> |
| | | </ItemGroup> |
| | | |
| | | </Project> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | using Microsoft.AspNetCore.Http; |
| | | using Microsoft.AspNetCore.Mvc; |
| | | |
| | | namespace WIDESEAWCS_Server.Controllers.AGV |
| | | { |
| | | [Route("api/[controller]")] |
| | | [ApiController] |
| | | public class KHAGVController : ControllerBase |
| | | { |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | using Microsoft.AspNetCore.Http; |
| | | using Microsoft.AspNetCore.Mvc; |
| | | |
| | | namespace WIDESEAWCS_Server.Controllers.AGV |
| | | { |
| | | [Route("api/[controller]")] |
| | | [ApiController] |
| | | public class KLSAGVController : ControllerBase |
| | | { |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | using Microsoft.AspNetCore.Http; |
| | | using Microsoft.AspNetCore.Mvc; |
| | | |
| | | namespace WIDESEAWCS_Server.Controllers.RGV |
| | | { |
| | | [Route("api/[controller]")] |
| | | [ApiController] |
| | | public class RGVController : ControllerBase |
| | | { |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | using Autofac.Core; |
| | | using Microsoft.AspNetCore.Authorization; |
| | | using Microsoft.AspNetCore.Http; |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using WIDESEAWCS_Core; |
| | | using WIDESEAWCS_DTO.TaskInfo; |
| | | using WIDESEAWCS_ITaskInfoService; |
| | | |
| | | namespace WIDESEAWCS_Server.Controllers.WMS |
| | | { |
| | | [Route("api/[controller]")] |
| | | [ApiController] |
| | | public class WMSController : ControllerBase |
| | | { |
| | | private readonly ITaskService _taskService; |
| | | public WMSController(ITaskService taskService) |
| | | { |
| | | _taskService = taskService; |
| | | } |
| | | /// <summary> |
| | | /// WMSä¸åä»»å¡ |
| | | /// </summary> |
| | | /// <param name="taskDTOs"></param> |
| | | /// <returns></returns> |
| | | [HttpPost, Route("ReceiveTask"), AllowAnonymous] |
| | | public WebResponseContent ReceiveWMSTask([FromBody] List<WMSTasksDTO> taskDTOs) |
| | | { |
| | | return _taskService.ReceiveWMSTask(taskDTOs); |
| | | } |
| | | } |
| | | } |
| | |
| | | </Content> |
| | | </ItemGroup> |
| | | |
| | | <ItemGroup> |
| | | <Folder Include="Controllers\WMS\" /> |
| | | <Folder Include="Controllers\RGV\" /> |
| | | <Folder Include="Controllers\AGV\" /> |
| | | </ItemGroup> |
| | | |
| | | </Project> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using WIDESEAWCS_Model.Models; |
| | | using WIDESEAWCS_Core; |
| | | using WIDESEAWCS_DTO.TaskInfo; |
| | | |
| | | namespace WIDESEAWCS_TaskInfoService |
| | | { |
| | | public partial class TaskService |
| | | { |
| | | /// <summary> |
| | | /// å建å
¥åºä»»å¡ |
| | | /// </summary> |
| | | /// <param name="taskDTO"></param> |
| | | /// <returns></returns> |
| | | public WebResponseContent CreateNewInTask(TaskDTO taskDTO) |
| | | { |
| | | try |
| | | { |
| | | //è·åè´§ä½ä¿¡æ¯ |
| | | //List<Dt_KLSLocationInfo> kLSLocationInfos= |
| | | return WebResponseContent.Instance.OK(); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | return WebResponseContent.Instance.Error(ex.Message); |
| | | } |
| | | } |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using WIDESEAWCS_Core; |
| | | using WIDESEAWCS_Core.Helper; |
| | | using WIDESEAWCS_DTO.TaskInfo; |
| | | |
| | | namespace WIDESEAWCS_TaskInfoService |
| | | { |
| | | public class TaskHelpMethods |
| | | { |
| | | public static WebResponseContent isOkTaskInfo(TaskDTO taskDTO, bool isfrom, bool isType) |
| | | { |
| | | WebResponseContent content = new WebResponseContent().OK(); |
| | | try |
| | | { |
| | | if (taskDTO.containerCode.IsNullOrEmpty()) throw new Exception("æç®±å·ä¸è½ä¸ºç©º"); |
| | | if (taskDTO.toAreaCode.IsNullOrEmpty() || taskDTO.toLocationCode.IsNullOrEmpty()) throw new Exception("ç»ç¹åºåæç»ç¹ä½ç½®ä¸è½ä¸ºç©º"); |
| | | if (isType) if (taskDTO.containerType.IsNullOrEmpty()) throw new Exception("æç®±å·ä¸è½ä¸ºç©º"); |
| | | if (isfrom) if (taskDTO.fromLocationCode.IsNullOrEmpty()) throw new Exception("èµ·ç¹ä½ç½®ä¸è½ä¸ºç©º"); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | content.Error(ex.Message); |
| | | } |
| | | return content; |
| | | } |
| | | } |
| | | } |
| | |
| | | using WIDESEAWCS_Core; |
| | | using WIDESEAWCS_Core.BaseRepository; |
| | | using WIDESEAWCS_Core.BaseServices; |
| | | using WIDESEAWCS_Core.Helper; |
| | | using WIDESEAWCS_DTO.TaskInfo; |
| | | using WIDESEAWCS_ITaskInfoService; |
| | | using WIDESEAWCS_Model.Models; |
| | |
| | | |
| | | namespace WIDESEAWCS_TaskInfoService |
| | | { |
| | | public class TaskService : ServiceBase<Dt_Task, IRepository<Dt_Task>>, ITaskService |
| | | public partial class TaskService : ServiceBase<Dt_Task, IRepository<Dt_Task>>, ITaskService |
| | | { |
| | | private readonly IRouterService _routerService; |
| | | private readonly ITaskExecuteDetailService _taskExecuteDetailService; |
| | |
| | | _taskExecuteDetailRepository = taskExecuteDetailRepository; |
| | | _mapper = mapper; |
| | | } |
| | | |
| | | public WebResponseContent ReceiveWMSTask([NotNull] List<WMSTasksDTO> taskDTOs) |
| | | { |
| | | WebResponseContent content = new WebResponseContent(); |
| | | try |
| | | { |
| | | foreach (var item in taskDTOs) |
| | | { |
| | | if (item.taskType == TaskTypeEnum.MLInbound.ObjToInt()) |
| | | { |
| | | foreach (var task in item.tasks) |
| | | { |
| | | content = TaskHelpMethods.isOkTaskInfo(task, true, true); |
| | | if (!content.Status) throw new Exception(content.Message); |
| | | if (BaseDal.QueryFirst(x => x.WMSTaskNum == task.taskCode || x.PalletCode == task.containerCode) != null) |
| | | { |
| | | continue; |
| | | } |
| | | CreateNewInTask(task); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | content.Error(ex.Message); |
| | | } |
| | | return content; |
| | | } |
| | | /// <summary> |
| | | /// æ¥æ¶WMSä»»å¡ä¿¡æ¯ |
| | | /// </summary> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | åå»ºå®¹å¨æ¬è¿ä»»å¡ï¼ä»»å¡åªè½ä¸ä¸ªä¸ä¸ªä¸åï¼ |
| | | ç«ç¹å®¹å¨ä¸æ¶ |
| | | ç«ç¹å®¹å¨éæ¾ |
| | | æ´æ°ä»»å¡ä¼å
级 |
| | | ä»»å¡ç¶ææ´æ°æ¶æ¯ |
| | | å¨ä½ç¶ææ´æ° |
| | | æ¹éè·åé»ç¢æçå
³ç³»ï¼æå®ï¼ |
| | | |
| | | |
| | | |
| | | åå车åºåºä»»å¡å¯è½åå¨é»ç¢æçï¼éè¦ç§»åºï¼å¦ææå®åºåºæ²¡å¯æ¾ä½ç½®æ¶å°±ä¼ç§»å°å
¶ä»åºåºå»ï¼ï¼ï¼ |