public void ModifyCaseList(l3.cargo.corba.XCase xCase) { base.caseList.Modify(xCase.getId(), xCase.getContainerId(), xCase.getConveyanceId(), string.Empty, string.Empty, 0, xCase.getCaseDir(), false, (Int32)WorkstationDecision.Unknown, DateTime.Now, false, null, DateTime.Parse(xCase.getCreateTime()), xCase.getCurrentArea(), false, string.Empty, false); CaseListUpdateEvent(xCase.getId(), String.Empty, xCase.getCurrentArea(), true); }
public void AddAttachment(string caseId, string filename, string type, string username, string createtime) { try { l3.cargo.corba.Attachment attach = new l3.cargo.corba.Attachment(filename, type, username, createtime); l3.cargo.corba.XCase xc = GetHost().getCaseManager().getLiveCase(caseId); xc.addAttachment(attach); } catch (l3.cargo.corba.CargoException ex) { throw new Exception(ex.error_msg, ex.InnerException); } catch (omg.org.CORBA.INTERNAL ex) { throw new Exception(ex.Message, ex.InnerException); } catch (System.Reflection.TargetInvocationException ex) { throw new Exception(ex.Message, ex.InnerException); } catch (AbstractCORBASystemException ex) { throw new Exception(ex.Message, ex.InnerException); } }
public override void onCaseDeleted(l3.cargo.corba.XCase c) { if (m_WSServer != null) { m_WSServer.DeleteFromCaseList(c); } }
public override void onCaseAdded(l3.cargo.corba.XCase c) { if (m_WSServer != null) { m_WSServer.AddToCaseList(c); } }
public void DeleteFromCaseList(l3.cargo.corba.XCase xCase) { lock (_updateCaseAssignmentLock) { base.caseList.Delete(xCase.getId()); CaseListUpdateEvent(xCase.getId(), String.Empty, xCase.getCurrentArea(), false); } }
public override void onCaseAdded(l3.cargo.corba.XCase xc) { if (m_WSServer != null) { m_WSServer.ModifyCaseList(xc); } base.onCaseAdded(xc); }
public override void onCaseAdded(l3.cargo.corba.XCase xc) { if (m_WSServer != null) { m_WSServer.ModifyCaseList(xc); m_WSServer.AutoVerifyManualCodingCaseEnabled = m_WSServer.AutoVerifyCaseEnabled; } base.onCaseAdded(xc); }
public void ReleaseCase(string caseId) { try { l3.cargo.corba.XCase xc = GetHost().getCaseManager().getLiveCase(caseId); l3.cargo.corba.WorkstationArea area; switch (xc.getCurrentArea()) { case "Analyst": area = l3.cargo.corba.WorkstationArea.AWS; break; case "EWS": area = l3.cargo.corba.WorkstationArea.EWS; break; case "Inspector": area = l3.cargo.corba.WorkstationArea.IWS; break; case "ManualCoding": area = l3.cargo.corba.WorkstationArea.MCS; break; case "Supervisor": area = l3.cargo.corba.WorkstationArea.SWS; break; default: area = l3.cargo.corba.WorkstationArea.AREA_UNKNOWN; break; } GetHost().getWorkstationManager(area).releaseCase(caseId); } catch (l3.cargo.corba.CargoException ex) { throw new Exception(ex.error_msg, ex.InnerException); } catch (omg.org.CORBA.INTERNAL ex) { throw new Exception(ex.Message, ex.InnerException); } catch (System.Reflection.TargetInvocationException ex) { throw new Exception(ex.Message, ex.InnerException); } catch (AbstractCORBASystemException ex) { throw new Exception(ex.Message, ex.InnerException); } }
public void SetResult(string caseId, l3.cargo.corba.Result result) { try { l3.cargo.corba.XCase xc = GetHost().getCaseManager().getLiveCase(caseId); xc.addResult(result); } catch (l3.cargo.corba.CargoException ex) { throw new Exception(ex.error_msg, ex.InnerException); } catch (omg.org.CORBA.INTERNAL ex) { throw new Exception(ex.Message, ex.InnerException); } catch (System.Reflection.TargetInvocationException ex) { throw new Exception(ex.Message, ex.InnerException); } catch (AbstractCORBASystemException ex) { throw new Exception(ex.Message, ex.InnerException); } }
public void LinkCases(string caseId, string linkedCase) { try { l3.cargo.corba.XCase xcase = GetHost().getCaseManager().getLiveCase(caseId); xcase.setLinkedCase(linkedCase); } catch (l3.cargo.corba.CargoException ex) { throw new Exception(ex.error_msg, ex.InnerException); } catch (omg.org.CORBA.INTERNAL ex) { throw new Exception(ex.Message, ex.InnerException); } catch (System.Reflection.TargetInvocationException ex) { throw new Exception(ex.Message, ex.InnerException); } catch (AbstractCORBASystemException ex) { throw new Exception(ex.Message, ex.InnerException); } }