wangxinhui
9 天以前 834294889ab62bafaf034b1b87c2ead961c33476
项目代码/WCS/WCSServices/WIDESEAWCS_Tasks/成品仓/ConveyorLineJob_CPH.cs
@@ -8,6 +8,7 @@
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Channels;
using System.Threading.Tasks;
using WIDESEAWCS_Common;
using WIDESEAWCS_Common.TaskEnum;
@@ -42,6 +43,10 @@
        private readonly IRouterExtension _routerExtension;
        private readonly List<Dt_WarehouseDevice> warehouseDevices;
        private static object lockObj = 0;//
        private static int Channel = 0;
        private static int Long = 0;
        private static int Wide = 0;
        private static int High = 0;
        public ConveyorLineJob_CPH(ICacheService cacheService, ITaskService taskService, ITaskExecuteDetailService taskExecuteDetailService, ITaskRepository taskRepository, IStationMangerRepository stationMangerRepository, IRouterRepository routerRepository, IRouterService routerService, IRouterExtension routerExtension)
        {
@@ -53,6 +58,13 @@
            _routerRepository = routerRepository;
            _routerService = routerService;
            _routerExtension = routerExtension;
            if (!AppSettings.Get("Channel").IsNullOrEmpty())
            {
                Channel = AppSettings.Get("Channel").ObjToInt();
                Long= AppSettings.Get("Long").ObjToInt();
                Wide = AppSettings.Get("Wide").ObjToInt();
                High = AppSettings.Get("High").ObjToInt();
            }
            string? warehouseDevicesStr = _cacheService.Get<string>(nameof(Dt_WarehouseDevice));
            if (!string.IsNullOrEmpty(warehouseDevicesStr))
            {
@@ -98,10 +110,10 @@
                                                #region todo:涓存椂閫昏緫
                                                //鍐欏叆鎵ц鏁版嵁
                                                device.SetValue(W_CLineCPHDB.W_TaskNo, 100 + 5, RequestIn.StationCode);
                                                device.SetValue(W_CLineCPHDB.W_Channel, 14, RequestIn.StationCode);
                                                device.SetValue(W_CLineCPHDB.W_Long, 485, RequestIn.StationCode);
                                                device.SetValue(W_CLineCPHDB.W_Wide, 460, RequestIn.StationCode);
                                                device.SetValue(W_CLineCPHDB.W_High, 420, RequestIn.StationCode);
                                                device.SetValue(W_CLineCPHDB.W_Channel, Channel, RequestIn.StationCode);
                                                device.SetValue(W_CLineCPHDB.W_Long, Long, RequestIn.StationCode);
                                                device.SetValue(W_CLineCPHDB.W_Wide, Wide, RequestIn.StationCode);
                                                device.SetValue(W_CLineCPHDB.W_High, High, RequestIn.StationCode);
                                                device.SetValue(W_CLineCPHDB.W_TMID, conveyorLineInfoRead.R_BoxCode, RequestIn.StationCode);
                                                device.SetValue(W_CLineCPHDB.W_Request, 1, RequestIn.StationCode);
                                                WebResponseContent content = _taskService.MESBoxCodeNotice(conveyorLineInfoRead.R_BoxCode);