| | |
| | | using System.Drawing; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Channels; |
| | | using System.Threading.Tasks; |
| | | using WIDESEAWCS_Common; |
| | | using WIDESEAWCS_Common.TaskEnum; |
| | |
| | | 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) |
| | | { |
| | |
| | | _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)) |
| | | { |
| | |
| | | #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); |