Esempio n. 1
0
 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);
     }
 }
Esempio n. 2
0
 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); }
 }