Ejemplo n.º 1
0
        public static InteropCreazioneDocResponse InteropCreazioneDoc(InteropCreazioneDocRequest request)
        {
            Registro reg   = RegistriManager.getRegistro(request.IdRegistro);
            Utente   ut    = UserManager.getUtente(request.InfoUtente.IdPeople);
            Ruolo    ruolo = UserManager.getRuolo(request.Ruolo.Id);
            InteropSchedaDocHandler  handler           = new InteropSchedaDocHandler(request);
            MailAccountCheckResponse mailCheckResponse = null;
            bool result = InteroperabilitaRicezione.interopRiceviMethodProtocollazione(request.ServerName, reg, ut, ruolo, handler, out mailCheckResponse);
            InteropCreazioneDocResponse response = new InteropCreazioneDocResponse();

            response.Code         = (result) ? InteropCreazioneDocResponseCode.OK : InteropCreazioneDocResponseCode.KO;
            response.ErrorMessage = mailCheckResponse.ErrorMessage;
            return(response);
        }
Ejemplo n.º 2
0
 public InteropSchedaDocHandler(InteropCreazioneDocRequest request)
 {
     try
     {
         _template = ProfilazioneDocumenti.getTemplateById(request.StatusTemplate.IdTemplate);
         logger.Debug("template " + _template.DESCRIZIONE + " trovato");
         OggettoCustom oc = _template.ELENCO_OGGETTI.Cast <OggettoCustom>().Single(e => request.StatusTemplate.StatusTemplateFieldName.Equals(e.DESCRIZIONE));
         logger.Debug("Oggetto custom trovato " + oc.DESCRIZIONE);
         oc.VALORE_DATABASE = request.StatusTemplate.StatusNotProcessedValue;
         _processor         = new MailProcessor(request.FiltriMail);
     }
     catch (Exception e)
     {
         logger.Debug("Errore nella costruzione del template: " + e.Message);
     }
 }
Ejemplo n.º 3
0
 public InteropCreazioneDocResponse InteropCreazioneDoc(InteropCreazioneDocRequest request)
 {
     return(SanitaManager.InteropCreazioneDoc(request));
 }