public void AnalysisMessage(string xml, ConcurrentDictionary <int, JobStepInfoDTOModel> currentStepInfo) { var ccs = _XMLConvertHelper.Deserialize <ROCReport>(xml); int.TryParse(ccs.WorkOrder, out int workOrderId); int.TryParse(ccs.Crane, out int craneId); if (ccs.Status == "ASSIGNED") { this._jobStepRepository.SetStepInfo(workOrderId, xml, WorkOrderJobStep.Assigned, WorkOrderJobStepStatus.Start); } else if (ccs.Status == "PICKED") { this._jobStepRepository.SetStepInfo(workOrderId, xml, WorkOrderJobStep.Picked, WorkOrderJobStepStatus.End); } }
public void AnalysisMessage(string xml, ConcurrentDictionary <int, JobStepInfoDTOModel> currentStepInfo) { var ccs = _XMLConvertHelper.Deserialize <CCSWorkOrderStatusUpdateNotification>(xml); int.TryParse(ccs.WorkOrder, out int workOrderId); int.TryParse(ccs.Crane, out int craneId); if (ccs.Status == "ASSIGNED") { this._jobStepRepository.SetStepInfo(workOrderId, xml, WorkOrderJobStep.Assigned, WorkOrderJobStepStatus.Start); this.UpdateCurrentStepInfo(currentStepInfo, workOrderId, craneId); } else if (ccs.Status == "PICKED") { this._jobStepRepository.SetStepInfo(workOrderId, xml, WorkOrderJobStep.Picked, WorkOrderJobStepStatus.End); // 客戶要求,收到 Pick 後,要把前面的狀態也設定會結束 // Train to Buffer 結束 Requesting RC // Buffer to Buffer 結束 Requesting Res //this._jobStepRepository.SetStepInfo(workOrderId, xml, WorkOrderJobStep.RequestingRCDesk, WorkOrderJobStepStatus.End); } }