public void StopCaseManagerScan(string pxeFile) { if (_cargoHostEndPoint.IsHostAvailable && _cargoHostEndPoint.IsScanAreaScanning()) { XCase xcase = _cargoHostEndPoint.GetCase(_cargoHostEndPoint.GetScanAreaScanningCase()); xcase.addImage(pxeFile); _cargoHostEndPoint.ScanAreaStopScan(); } }
public string GetCaseManagerScanCaseId() { if (_cargoHostEndPoint.IsHostAvailable && _cargoHostEndPoint.IsScanAreaScanning()) { XCase xcase = _cargoHostEndPoint.GetCase(_cargoHostEndPoint.GetScanAreaScanningCase()); return(xcase.getId()); } return(null); }
public void LinkCases(string rootCaseId, string childCaseId) { try { XCase currentCase = _cargoHostEndPoint.GetCase(rootCaseId); currentCase.setLinkedCase(childCaseId); } catch (Exception e1) { _logger.LogError("OM - " + e1.Message); } }
public void LinkCases(string rootCaseId, string childCaseId) { try { m_Host = GetHost(); CaseManager cm = m_Host.getCaseManager(); XCase liveCase = cm.getLiveCase(rootCaseId); liveCase.setLinkedCase(childCaseId); } catch (CargoException e1) { // MessageBox.Show(e1.error_msg); m_CargoHostLogger.logError("OM - " + e1.error_msg); } }
/// <summary> /// SetVehicleRegistrationNumber. This interface function Creates new Case and returns CaseId /// /// Arguments: /// void /// Exceptions: /// none /// Return: /// Caseid /// </summary> public bool SetVehicleRegistrationNumber(string caseId, string regNumber) { try { XCase currentCase = _cargoHostEndPoint.GetCase(caseId); currentCase.setConveyanceId(regNumber); return(true); } catch (Exception e1) { _logger.LogError("OM - " + e1.Message); } return(false); }
/// <summary> /// SetContainerNumber. This interface function Creates new Case and returns CaseId /// /// Arguments: /// void /// Exceptions: /// none /// Return: /// Caseid /// </summary> public bool SetContainerNumber(string caseId, string containerCode) { try { XCase currentCase = _cargoHostEndPoint.GetCase(caseId); currentCase.setContainerCode(containerCode); return(true); } catch (Exception e1) { _logger.LogError("OM - " + e1.Message); } return(false); }
/// <summary> /// AddOCRFile. This interface function adds OCR file into case folder /// /// Arguments: /// caseid: Case id of current live case /// fileName: Absolute path of file to be added in case folder /// Exceptions: /// none /// Return: /// bool /// </summary> public bool AddOCRFile(string caseid, string fileName) { try { XCase currentCase = _cargoHostEndPoint.GetCase(caseid); Attachment att = new Attachment(fileName, "OCR", "SYSTEM", DateTime.Now.ToString()); currentCase.addAttachment(att); return(true); } catch (Exception e1) { _logger.LogError("OM - " + e1.Message); } return(false); }
/// <summary> /// CreateCase. This interface function Creates new Case and returns CaseId /// /// Arguments: /// void /// Exceptions: /// none /// Return: /// Caseid /// </summary> public string CreateCase() { string caseid = null; try { //m_XRayHost = GetXrayHost(); caseid = _cargoHostEndPoint.CreateInitAreaCase(); //caseid = m_XRayHost.makeCase(containerid); XCase currentCase = _cargoHostEndPoint.GetCase(caseid); } catch (Exception e1) { _logger.LogError("OM - " + e1.Message); } return(caseid); }
/// <summary> /// AddOCRFile. This interface function adds OCR file into case folder /// /// Arguments: /// caseid: Case id of current live case /// fileName: Absolute path of file to be added in case folder /// Exceptions: /// none /// Return: /// bool /// </summary> public bool AddOCRFile(string caseid, string fileName) { bool bRet = false; string filetype = "OCR"; try { m_Host = GetHost(); CaseManager cm = m_Host.getCaseManager(); XCase liveCase = cm.getLiveCase(caseid); liveCase.addGeneralFile(fileName, filetype); bRet = true; } catch (CargoException e1) { m_CargoHostLogger.logError("OM - " + e1.error_msg); // MessageBox.Show(e1.error_msg); } return(bRet); }
public virtual void onCaseUpdated(XCase c) { }
public virtual void onCaseDeleted(XCase c) { }
public virtual void onCaseAdded(XCase c) { }
public virtual void onCaseUpdated (XCase c) { }
public virtual void onCaseDeleted (XCase c) { }