Ejemplo n.º 1
0
 public void StopCaseManagerScan(string pxeFile)
 {
     if (_cargoHostEndPoint.IsHostAvailable && _cargoHostEndPoint.IsScanAreaScanning())
     {
         XCase xcase = _cargoHostEndPoint.GetCase(_cargoHostEndPoint.GetScanAreaScanningCase());
         xcase.addImage(pxeFile);
         _cargoHostEndPoint.ScanAreaStopScan();
     }
 }
Ejemplo n.º 2
0
        public string GetCaseManagerScanCaseId()
        {
            if (_cargoHostEndPoint.IsHostAvailable && _cargoHostEndPoint.IsScanAreaScanning())
            {
                XCase xcase = _cargoHostEndPoint.GetCase(_cargoHostEndPoint.GetScanAreaScanningCase());
                return(xcase.getId());
            }

            return(null);
        }
Ejemplo n.º 3
0
    public void LinkCases(string rootCaseId, string childCaseId)
    {
        try
        {
            XCase currentCase = _cargoHostEndPoint.GetCase(rootCaseId);

            currentCase.setLinkedCase(childCaseId);
        }
        catch (Exception e1)
        {
            _logger.LogError("OM - " + e1.Message);
        }
    }
Ejemplo n.º 4
0
    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);
        }
    }
Ejemplo n.º 5
0
    /// <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);
    }
Ejemplo n.º 6
0
    /// <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);
    }
Ejemplo n.º 7
0
    /// <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);
    }
Ejemplo n.º 8
0
    /// <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);
    }
Ejemplo n.º 9
0
    /// <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);
    }
Ejemplo n.º 10
0
 public virtual void onCaseUpdated(XCase c)
 {
 }
Ejemplo n.º 11
0
 public virtual void onCaseDeleted(XCase c)
 {
 }
Ejemplo n.º 12
0
 public virtual void onCaseAdded(XCase c)
 {
 }
Ejemplo n.º 13
0
 public virtual void onCaseUpdated (XCase c)
 {
 }
Ejemplo n.º 14
0
 public virtual void onCaseDeleted (XCase c)
 {
 }
Ejemplo n.º 15
0
 public virtual void onCaseAdded(XCase c)
 {
 }