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 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); } }