| | |
| | | using Quartz; |
| | | using HslCommunication; |
| | | using Microsoft.EntityFrameworkCore; |
| | | using Newtonsoft.Json; |
| | | using OfficeOpenXml.FormulaParsing.Excel.Functions.Text; |
| | | using Quartz; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Threading; |
| | | using System.Threading.Tasks; |
| | | using WIDESEA_Common; |
| | | using WIDESEA_Core.EFDbContext; |
| | | using WIDESEA_Entity.DomainModels; |
| | | using WIDESEA_Services.Repositories; |
| | | using WIDESEA_Services.IRepositories; |
| | | using WIDESEA_WCS.Jobs; |
| | | using WIDESEA_WCS.WCSClient; |
| | | using static System.Collections.Specialized.BitVector32; |
| | | using System.Threading; |
| | | using Microsoft.EntityFrameworkCore; |
| | | using Newtonsoft.Json; |
| | | using WIDESEA_Core.Extensions; |
| | | using HslCommunication; |
| | | using WIDESEA_Services; |
| | | using WIDESEA_Core.Utilities; |
| | | using WIDESEA_Services.Services; |
| | | using WIDESEA_Common.TaskEnum; |
| | | using WIDESEA_WCS.Jobs.ConveyorLine; |
| | | using WIDESEA_Common.LogEnum; |
| | | using WIDESEA_Common.TaskEnum; |
| | | using WIDESEA_Common.Tools; |
| | | using WIDESEA_Core.EFDbContext; |
| | | using WIDESEA_Core.Extensions; |
| | | using WIDESEA_Core.Utilities; |
| | | using WIDESEA_Entity.DomainModels; |
| | | using WIDESEA_Services; |
| | | using WIDESEA_Services.IRepositories; |
| | | using WIDESEA_Services.Repositories; |
| | | using WIDESEA_Services.Services; |
| | | using WIDESEA_WCS.Jobs; |
| | | using WIDESEA_WCS.Jobs.ConveyorLine; |
| | | using WIDESEA_WCS.Jobs.ConveyorLine.InboundArea; |
| | | using WIDESEA_WCS.Jobs.ConveyorLine.OutboundArea; |
| | | using WIDESEA_WCS.WCSClient; |
| | | using static System.Collections.Specialized.BitVector32; |
| | | |
| | | namespace WIDESEA_WCS |
| | | { |
| | |
| | | |
| | | public string Run(IJobExecutionContext context) |
| | | { |
| | | |
| | | using (VOLContext dbCcontext = new VOLContext()) |
| | | { |
| | | IDt_PLCinfoHeadRepository _PLCinfoHeadRepository = new Dt_PLCinfoHeadRepository(dbCcontext); |
| | |
| | | bool modelResult1 = bool.Parse(client.ReadValue(CLineInfoDBName.R_System_Normal_Model.ToString(), "System").ToString()); |
| | | if (modelResult1) |
| | | { |
| | | //å
¥åºå£ |
| | | InboundAreaDispatch.InboundRequestStationAction(taskWCSinfoRepository, client, "InBound"); |
| | | //æµéç«å°é»è¾ 10301 |
| | | InboundAreaDispatch.MeasureStationAction(taskWCSinfoRepository, client, "Measure_B"); |
| | |
| | | |
| | | //ç§°éç«å°è°åº¦ 20201 |
| | | InboundAreaDispatch.InboundWeighAction(taskWCSinfoRepository, client); |
| | | //åºåºRFID确认 |
| | | InboundAreaDispatch.CheckBarcodeAction(taskWCSinfoRepository, client, "30301"); |
| | | InboundAreaDispatch.CheckBarcodeAction(taskWCSinfoRepository, client, "30302"); |
| | | //åºåºRFID确认(æµé) |
| | | InboundAreaDispatch.CheckBarcodeAction(taskWCSinfoRepository, client, "30301"); // ä¸é¢ç ä»è¿éåºå» |
| | | InboundAreaDispatch.CheckBarcodeAction(taskWCSinfoRepository, client, "30302"); // ä¸é¢ç ä»è¿éè¿å» |
| | | |
| | | } |
| | | //è¯´ææ¯åºåºåºçè°åº¦ï¼æ¥çå
¥åºåºçº¿ä½çè¿è¡æ¨¡å¼ |
| | |
| | | { |
| | | //åºåºåºåè°åº¦ |
| | | OutboundAreaDispatch.OutboundAreaDispathAction(taskWCSinfoRepository, taskRGVinfoRepository, client); |
| | | OutboundAreaDispatch.OutboundAreaJZ(taskWCSinfoRepository, taskRGVinfoRepository, client); // åºåºåºåæ ¡å |
| | | } |
| | | else if (modelResult == 2) |
| | | { |
| | | client.WriteValue(CLineInfoDBName.W_System_RGVState.ToString(), true); |
| | | } |
| | | } |
| | | |
| | | } |
| | | return ""; |
| | | } |