ÏîÄ¿´úÂë/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/ProductionLineJob/CommonProductionLineJob.cs
@@ -4,12 +4,14 @@
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WIDESEAWCS_DTO.WMSInfo;
using WIDESEAWCS_ITaskInfoRepository;
using WIDESEAWCS_ITaskInfoService;
using WIDESEAWCS_QuartzJob;
using WIDESEAWCS_QuartzJob.Service;
using WIDESEAWCS_Tasks.ProductionLineJob;
using WIDESEAWCS_Tasks.StackerCraneJob;
using static System.Collections.Specialized.BitVector32;
namespace WIDESEAWCS_Tasks
{
@@ -33,9 +35,29 @@
            try
            {
                OtherDevice ProductionLine = (OtherDevice)context.JobDetail.JobDataMap.Get("JobParams");
                short[] shorts = { 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4 };
                ProductionLineDTO MaterielGroupDTO = new ProductionLineDTO()
                {
                    Barcode = "A1001",
                    batchNo = "20241212001T1",
                    stationCode = "Z1",
                    productQty = string.Join(",", shorts),
                    traytype = 4
                };
                ProductionLineToWMSRequest(MaterielGroupDTO);
                if (ProductionLine != null)
                {
                    ProductionLineExtend(ProductionLine);
                    switch (ProductionLine.DeviceName)
                    {
                        case "入库产线":
                            ProductionLineIn(ProductionLine);
                            break;
                        case "出库产线":
                            ProductionLineOut(ProductionLine);
                            break;
                        default:
                            throw new Exception("未定义产线");
                    }
                }
            }
            catch (Exception ex)