예제 #1
0
        private void InitializeComboProcessiFirma()
        {
            if (!string.IsNullOrEmpty(DocsPAWA.utils.InitConfigurationKeys.GetValue("0", "FE_LIBRO_FIRMA")) && DocsPAWA.utils.InitConfigurationKeys.GetValue("0", "FE_LIBRO_FIRMA").Equals("1"))
            {
                this.PnlProcessiFirma.Visible = true;
            }

            string[] amministrazione       = ((string)Session["AMMDATASET"]).Split('@');
            string   codiceAmministrazione = amministrazione[0];
            string   idAmministrazione     = DocsPAWA.Utils.getIdAmmByCod(codiceAmministrazione, this);

            DocsPaWR.DocsPaWebService ws            = DocsPAWA.ProxyManager.getWS();
            DocsPaWR.ProcessoFirma[]  listaProcessi = ws.GetProcessiDiFirmaByIdAmm(idAmministrazione);
            if (listaProcessi != null && listaProcessi.Length > 0)
            {
                this.DdlProcessoFirma.Items.Clear();
                this.DdlProcessoFirma.Items.Add(new ListItem(""));
                ListItem item;
                foreach (DocsPaWR.ProcessoFirma p in listaProcessi)
                {
                    item       = new ListItem();
                    item.Value = p.idProcesso;
                    item.Text  = p.IsProcessModel ? p.nome + " [MODELLO]" : p.nome;
                    this.DdlProcessoFirma.Items.Add(item);
                }

                if (!string.IsNullOrEmpty(st.ID_PROCESSO_FIRMA))
                {
                    this.DdlProcessoFirma.SelectedValue = st.ID_PROCESSO_FIRMA;
                }
            }
        }
예제 #2
0
        /// <summary>
        /// Creazione di un elemento contenente gli attributi
        /// di un corrispondente docspa da inviare a rubrica comune
        /// </summary>
        /// <param name="infoUtente"></param>
        /// <param name="idElemento">
        /// Id dell'elemento docspa da inviare a rubrica comune
        /// </param>
        /// <param name="tipo">
        /// Tipo di elemento da salvare
        /// </param>
        /// <returns></returns>
        public static RC.Proxy.Elementi.ElementoRubrica NuovoElementoRubrica(DocsPaWR.InfoUtente infoUtente, string idElemento, Tipo tipo)
        {
            RC.Proxy.Elementi.ElementoRubrica elementoRubrica = null;

            DocsPaWR.ElementoRC elementoDaInviare = null;

            switch (tipo)
            {
                case Tipo.UO:
                    elementoDaInviare = new DocsPaWR.DocsPaWebService().GetElementoRubricaUO(infoUtente, idElemento);
                    break;
                case Tipo.RF:
                    elementoDaInviare = new DocsPaWR.DocsPaWebService().GetElementoRubricaRF(infoUtente, idElemento);
                    break;
            }

            if (elementoDaInviare != null)
            {
                // UO ancora non presente in rubrica comune
                elementoRubrica = new RC.Proxy.Elementi.ElementoRubrica();

                elementoRubrica.Codice = elementoDaInviare.CodiceRubrica;
                elementoRubrica.Descrizione = elementoDaInviare.DescrizioneRubrica;

                ExtractDetails(elementoRubrica, elementoDaInviare, tipo);
            }

            return elementoRubrica;
        }
예제 #3
0
        private bool RifiutaDocumento(string notaRifiuto, string IDTrasmUtente, string idTrasmissione, string idPeople)
        {
            bool retValue = false;

            DocsPaWR.DocsPaWebService ws = new DocsPaWR.DocsPaWebService();
            if (retValue = ws.RifiutaDocumento(notaRifiuto, IDTrasmUtente, idTrasmissione, idPeople, RoleManager.GetRoleInSession(), UserManager.GetInfoUser()))
            {
                // creazione oggetto TrasmissioneUtente per la gestione del ritorno al mitt della trasm. rifiutata
                this.FillMittenteSmistamento();

                DocsPaWR.TrasmissioneUtente objTrasmUt = new DocsPaWR.TrasmissioneUtente();
                objTrasmUt.systemId = IDTrasmUtente;

                DocsPaWR.Utente objUtente = new DocsPaWR.Utente();
                objTrasmUt.utente                   = objUtente;
                objTrasmUt.utente.idPeople          = this._mittenteSmistamento.IDPeople;
                objTrasmUt.utente.idAmministrazione = this._mittenteSmistamento.IDAmministrazione;

                DocsPaWR.Ruolo objRuolo = new DocsPaWR.Ruolo();
                objRuolo.systemId          = this._mittenteSmistamento.IDCorrGlobaleRuolo;
                objTrasmUt.utente.ruoli    = new DocsPaWR.Ruolo[1];
                objTrasmUt.utente.ruoli[0] = objRuolo;

                DocsPaWR.InfoUtente infoUtente = UserManager.GetInfoUser();

                // ws.RitornaAlMittTrasmUt(objTrasmUt, infoUtente);
            }
            return(retValue);
        }
예제 #4
0
        /// <summary>
        ///
        /// </summary>
        protected virtual void PerformActionStampaRicevutaPdf()
        {
            DocsPaWR.DocsPaWebService ws = ProxyManager.getWS();



            DocsPaWR.FileDocumento content = ws.StampaRicevutaProtocolloPdf(UserManager.getInfoUtente(), this.IdDocument);

            if (content != null)
            {
                System.IO.MemoryStream memStream = new System.IO.MemoryStream(content.content);
                //Response.Clear();
                //Response.ContentType = "application/pdf";
                //Response.AddHeader("content-disposition", "inline;filename=Ricevuta.pdf");
                //Response.AddHeader("content-length", content.content.Length.ToString());
                //Response.BinaryWrite(content.content);
                //Response.Flush();
                //Response.End();

                Response.AppendHeader("content-disposition", "inline;filename=Ricevuta.pdf");
                Response.AppendHeader("Content-Length", memStream.Length.ToString());
                Response.ContentType = "application/pdf";
                Response.BinaryWrite(memStream.ToArray());
                Response.Flush();
                memStream.Close();
            }
        }
예제 #5
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="item"></param>
        /// <returns></returns>
        protected bool IncludiDestinatarioInSpedizione(DocsPaWR.Destinatario item)
        {
            DocsPaWR.DocsPaWebService ws = new DocsPaWR.DocsPaWebService();
            if (item is DocsPaWR.DestinatarioEsterno && !(item as DocsPaWR.DestinatarioEsterno).Interoperante)
            {
                return(false);
            }

            if (item is DocsPaWR.DestinatarioEsterno)
            {
                DocsPaWR.DestinatarioEsterno destinatarioEsterno = item as DocsPaWR.DestinatarioEsterno;
                if ((!DocsPAWA.utils.MultiCasellaManager.RoleIsAuthorizedSend(this.Page, "E") &&
                     destinatarioEsterno.DatiDestinatari[0].canalePref != null &&
                     (destinatarioEsterno.DatiDestinatari[0].canalePref.descrizione.Equals("MAIL") ||
                      destinatarioEsterno.DatiDestinatari[0].canalePref.descrizione.Equals("INTEROPERABILITA"))) ||
                    (destinatarioEsterno.DatiDestinatari[0].tipoIE != null && destinatarioEsterno.DatiDestinatari[0].tipoIE.Equals("I") && ws.IsEnabledInteropInterna() &&
                     !DocsPAWA.utils.MultiCasellaManager.RoleIsAuthorizedSend(this.Page, "I")))
                {
                    return(false);
                }
            }
            if (item is DocsPaWR.DestinatarioInterno)
            {
                DocsPaWR.DestinatarioInterno destinatarioInterno = item as DocsPaWR.DestinatarioInterno;
                if (destinatarioInterno != null && destinatarioInterno.DisabledTrasm)
                {
                    return(false);
                }
            }
            return(item.IncludiInSpedizione);
        }
예제 #6
0
 public void Seleziona(int id, out string gridTempId)
 {
     logger.Debug("SchedaRicerca.Seleziona");
     DocsPaWR.SearchItem item = null;
     try
     {
         gridTempId = string.Empty;
         DocsPaWR.DocsPaWebService docspaws = ProxyManager.getWS();
         logger.Debug("SchedaRicerca.Seleziona - Sto per cercare la ricerca: " + id);
         item = docspaws.RecuperaRicerca(id);
         if (item == null)
         {
             logger.Debug("SchedaRicerca.Seleziona - Ricerca non trovata");
             throw new Exception("Ricerca non trovata");
         }
         else
         {
             logger.Debug("SchedaRicerca.Seleziona - Ricerca trovata");
             if (!string.IsNullOrEmpty(item.gridId))
             {
                 gridTempId = item.gridId;
             }
             logger.Debug("SchedaRicerca.Seleziona - Deserializzazione dei filtri");
             filters = SchedaRicerca.StringToFilters(item.filtri);
             logger.Debug("SchedaRicerca.Seleziona - Filtri deserializzati");
         }
     }
     catch (Exception ex)
     {
         logger.Debug("SchedaRicerca.Seleziona - Errore nella selezione della ricerca: " + ex.Message);
         throw ex;
     }
 }
예제 #7
0
 protected void btnRefreshChiaviConfig_Click(object sender, EventArgs e)
 {
     try
     {
         DocsPaWR.DocsPaWebService      ws = new DocsPaWR.DocsPaWebService();
         DocsPaWR.InfoAmministrazione[] amministrazioni = ws.AmmGetListAmministrazioni();
         if (amministrazioni.Length > 0)
         {
             foreach (DocsPaWR.InfoAmministrazione amm in amministrazioni)
             {
                 NttDataWA.Utils.InitConfigurationKeys.remove(amm.IDAmm);
                 ws.clearHashTableChiaviConfig(amm.IDAmm);
                 NttDataWA.Utils.InitConfigurationKeys.getInstance(amm.IDAmm);
                 this.lbl_esito_refresh_chiavi.Visible = true;
                 this.lbl_esito_refresh_chiavi.Text    = "Refresh delle chiavi effettuato con successo.";
             }
         }
     }
     catch (Exception ex)
     {
         logger.Error(ex);
         this.lbl_esito_refresh_chiavi.Visible = true;
         this.lbl_esito_refresh_chiavi.Text    = ex.Message;
     }
 }
예제 #8
0
        protected void btn_RefreshQlistandBEKeys_Click(object sender, EventArgs e)
        {
            try
            {
                DocsPaWR.DocsPaWebService docsPaWS = Utils.ProxyManager.GetWS();

                if (docsPaWS == null)
                {
                    docsPaWS = new DocsPaWR.DocsPaWebService();
                }

                bool retval = docsPaWS.RefreshQueryList("beatoATe");

                if (retval)
                {
                    this.Label2.Visible = true;
                    this.Label2.Text    = "Refresh delle QL e CHIAVI e Grids effettuato con successo.";
                }
                else
                {
                    throw new Exception("Refresh delle QL e CHIAVI e Grids non effettuato.");
                }
            }
            catch (Exception ex)
            {
                logger.Error(ex);
                this.Label2.Visible = true;
                this.Label2.Text    = ex.Message;
            }
        }
예제 #9
0
        public static DocsPaWR.DocsPaWebService getWSForCache(string url)
        {
            DocsPaWR.DocsPaWebService docsPaWS = new DocsPaWR.DocsPaWebService();

            #region Gestione del timeout di connessione
            try
            {
                int timeOut        = Int32.Parse(ConfigSettings.getKey(ConfigSettings.KeysENUM.EXECUTIONTIMEOUT));
                int l_timeOutLimit = 3600 * 1000 * 24;
                if (timeOut > l_timeOutLimit)
                {
                    ConfigSettings.setKey(ConfigSettings.KeysENUM.EXECUTIONTIMEOUT, l_timeOutLimit.ToString());
                }

                if (timeOut > docsPaWS.Timeout)
                {
                    docsPaWS.Timeout = timeOut;
                }
                docsPaWS.Timeout = System.Threading.Timeout.Infinite;
            }
            catch (System.Exception ex)
            {
                UIManager.AdministrationManager.DiagnosticError(ex);
                return(null);
            }
            #endregion

            #region Gestione del proxy
            try
            {
                string proxy = ConfigSettings.getKey(ConfigSettings.KeysENUM.PROXY, "0");
                if (proxy.Equals("1"))
                {
                    string proxyUrl = ConfigSettings.getKey(url);
                    if (!proxyUrl.ToLower().StartsWith("http://"))
                    {
                        proxyUrl = "http://" + proxyUrl;
                    }
                    IWebProxy proxyObject = new WebProxy(proxyUrl, true);
                    if (ConfigSettings.getKey(ConfigSettings.KeysENUM.PROXYCREDENTIALS).Equals("1"))
                    {
                        string            username = ConfigSettings.getKey(ConfigSettings.KeysENUM.PROXYUSERNAME);
                        string            password = ConfigSettings.getKey(ConfigSettings.KeysENUM.PROXYPASSWORD);
                        string            domain   = ConfigSettings.getKey(ConfigSettings.KeysENUM.PROXYDOMAIN);
                        NetworkCredential myCred   = new NetworkCredential(username, password, domain);
                        proxyObject.Credentials = myCred;
                    }
                    docsPaWS.Proxy = proxyObject;
                }
            }
            catch (System.Exception ex)
            {
                UIManager.AdministrationManager.DiagnosticError(ex);
                return(null);
            }
            #endregion

            return(docsPaWS);
        }
예제 #10
0
        private bool ScartaDocumentoSP(DocsPaWR.InfoUtente infoUtente, string idOggetto, string tipoOggetto, string idTrasmissione, string idTrasmSingola, DocsPaWR.MittenteSmistamento mittente, DocsPaWR.RuoloSmistamento ruolo)
        {
            bool retValue = false;

            DocsPaWR.DocsPaWebService ws = new DocsPaWR.DocsPaWebService();
            retValue = ws.ScartaDocumento(infoUtente, idOggetto, tipoOggetto, idTrasmissione, idTrasmSingola, mittente, ruolo);
            return(retValue);
        }
예제 #11
0
        /// <summary>
        /// verifica l'esistenza delle ragioni di trasmissione: COMPETENZA e CONOSCENZA
        /// </summary>
        /// <param name="infoUtente"></param>
        /// <returns>TRUE: esistono le ragioni di trasmissione per lo smistamento; FALSE: non esistono</returns>
        private bool verificaRagTrasmSmistamento(DocsPaWR.InfoUtente infoUtente)
        {
            bool retValue = false;

            this._infoUtente = infoUtente;
            DocsPaWR.DocsPaWebService ws = new DocsPaWR.DocsPaWebService();

            retValue = ws.VerificaRagTrasmSmista(this._infoUtente.idAmministrazione);

            return(retValue);
        }
예제 #12
0
        private DocsPaWR.RagioneTrasmissione[] SmistamentoGetListaRagioni(DocsPaWR.InfoUtente infoUtente)
        {
            DocsPaWR.RagioneTrasmissione[] listaRagSmista;

            this._infoUtente = infoUtente;
            DocsPaWR.DocsPaWebService ws = new DocsPaWR.DocsPaWebService();

            listaRagSmista = ws.SmistamentoGetRagioniTrasmissione(this._infoUtente.idAmministrazione);

            return(listaRagSmista);
        }
예제 #13
0
        private void controlloCbConsolidamento()
        {
            DocsPaWR.DocsPaWebService ws = SAAdminTool.ProxyManager.getWS();

            this.pnl_consolidamento.Visible = ws.IsConsolidationEnabled();

            if (this.pnl_consolidamento.Visible)
            {
                this.cb_consolidamento.SelectedValue = ((int)st.STATO_CONSOLIDAMENTO).ToString();
            }
        }
예제 #14
0
        protected void LoadKeys()
        {
            if (!string.IsNullOrEmpty(System.Configuration.ConfigurationManager.AppSettings[WebConfigKeys.FILE_ACQ_SIZE_MAX.ToString()]))
            {
                this.FileAcquisitionSizeMax = int.Parse(System.Configuration.ConfigurationManager.AppSettings[WebConfigKeys.FILE_ACQ_SIZE_MAX.ToString()]) * 1024;
            }

            if (!string.IsNullOrEmpty(System.Configuration.ConfigurationManager.AppSettings[WebConfigKeys.ADOBE_ACROBAT_INTEGRATION.ToString()]) && System.Configuration.ConfigurationManager.AppSettings[WebConfigKeys.ADOBE_ACROBAT_INTEGRATION.ToString()] == "1")
            {
                this.IsAdobeIntegrationActive = true;
            }

            if (!string.IsNullOrEmpty(System.Configuration.ConfigurationManager.AppSettings[WebConfigKeys.ADOBE_ACROBAT_INTEGRATION_CLASS_ID.ToString()]))
            {
                this.AcrobatIntegrationClassId = System.Configuration.ConfigurationManager.AppSettings[WebConfigKeys.ADOBE_ACROBAT_INTEGRATION_CLASS_ID.ToString()].ToString();
            }

            if (!string.IsNullOrEmpty(System.Configuration.ConfigurationManager.AppSettings[WebConfigKeys.SCAN_WITH_ADOBE_ACROBAT_INTEGRATION.ToString()]) && System.Configuration.ConfigurationManager.AppSettings[WebConfigKeys.SCAN_WITH_ADOBE_ACROBAT_INTEGRATION.ToString()] == "1")
            {
                this.ScanWithAcrobatIntegration = true;
            }

            if (!string.IsNullOrEmpty(System.Configuration.ConfigurationManager.AppSettings[WebConfigKeys.DOCUMENT_PDF_CONVERT_ENABLED.ToString()]) && System.Configuration.ConfigurationManager.AppSettings[WebConfigKeys.DOCUMENT_PDF_CONVERT_ENABLED.ToString()] == "true")
            {
                this.DocumentPdfConvertEnabled = true;
            }

            if (!string.IsNullOrEmpty(System.Configuration.ConfigurationManager.AppSettings[WebConfigKeys.ENABLE_CONVERT_PDF_ON_SIGN.ToString()]) && System.Configuration.ConfigurationManager.AppSettings[WebConfigKeys.ENABLE_CONVERT_PDF_ON_SIGN.ToString()] == "true")
            {
                this.EnableConvertPdfOnSign = true;
            }

            //ABBA - PDF CONVERSION
            DocsPaWR.DocsPaWebService          ws      = NttDataWA.Utils.ProxyManager.GetWS();
            DocsPaWR.SmartClientConfigurations smcConf = ws.GetSmartClientConfigurationsPerUser(UserManager.GetInfoUser());
            if (smcConf.ApplyPdfConvertionOnScan)
            {
                this.PdfConversionSynchronousLC = true;
            }
            else
            {
                if (!string.IsNullOrEmpty(Utils.InitConfigurationKeys.GetValue(UserManager.GetInfoUser().idAmministrazione, DBKeys.CONVERSIONE_PDF_SINCRONA_LC.ToString())) && Utils.InitConfigurationKeys.GetValue(UserManager.GetInfoUser().idAmministrazione, DBKeys.CONVERSIONE_PDF_SINCRONA_LC.ToString()).Equals("1"))
                {
                    this.PdfConversionSynchronousLC = true;
                }
            }
            //FINE

            if (!string.IsNullOrEmpty(Utils.InitConfigurationKeys.GetValue(UserManager.GetInfoUser().idAmministrazione, DBKeys.CONVERSIONE_PDF_LATO_SERVER.ToString())) && Utils.InitConfigurationKeys.GetValue(UserManager.GetInfoUser().idAmministrazione, DBKeys.CONVERSIONE_PDF_LATO_SERVER.ToString()).Equals("1"))
            {
                this.PdfConvertServerSide = true;
            }
        }
예제 #15
0
 public List <string> GetIdDestinatariTrasmDocInUo(string idUo, string docnumber)
 {
     DocsPaWR.DocsPaWebService ws = new DocsPaWR.DocsPaWebService();
     try
     {
         return(ws.GetIdDestinatariTrasmDocInUo(idUo, docnumber).ToList());
     }
     catch (Exception e)
     {
         return(null);
     }
 }
예제 #16
0
        /// <summary>
        /// Prende i dati esistenti per le etichette dei protocolli (Inserita da Fabio)
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void getLettereProtocolli()
        {
            DocsPaWR.DocsPaWebService wws        = new DocsPaWR.DocsPaWebService();
            DocsPaWR.InfoUtente       infoUtente = new DocsPaWR.InfoUtente();
            infoUtente = UserManager.GetInfoUser();
            String idAmm = UserManager.GetInfoUser().idAmministrazione;

            this.etichette = wws.getEtichetteDocumenti(infoUtente, idAmm);
            this.arrivo    = etichette[0].Descrizione; //Valore A
            this.partenza  = etichette[1].Descrizione; //Valore P
            this.interno   = etichette[2].Descrizione; //Valore I
            this.grigio    = etichette[3].Descrizione; //Valore G
        }
예제 #17
0
 private void creaGerarchia(DocsPaWR.UOSmistamento UoInferiore)
 {
     DocsPaWR.DocsPaWebService ws    = new DocsPaWR.DocsPaWebService();
     DocsPaWR.UOSmistamento[]  UoInf = ws.GetUOInferiori(UoInferiore.ID, this._mittenteSmistamento);
     UoInferiore.UoInferiori = UoInf;
     if (UoInferiore.UoInferiori != null && UoInferiore.UoInferiori.Length > 0)
     {
         foreach (DocsPaWR.UOSmistamento uo in UoInferiore.UoInferiori)
         {
             creaGerarchia(uo);
         }
     }
 }
예제 #18
0
        private void ReadListaReport()
        {
            DocsPaWR.DocsPaWebService docsPaSvr = new DocsPaWR.DocsPaWebService();
            //recupero filtri da UI
            DocsPaWR.FiltriReportSpedizioni filters = new FiltriReportSpedizioni();

            filters = getFiltersFromGui();

            // filtro per singolo documento
            if (!string.IsNullOrEmpty(IdDocumento))
            {
                filters.IdDocumento = IdDocumento;
                // nasconde altri filtri
                pnlAltriFiltri.Visible = false;
                // nasconde pannello esito complessivo spedizione
                filtriEsito.Visible = false;

                pnlRegistroCasella.Visible = false;
            }
            else
            {
                // visualizza filtro altri filtri
                pnlAltriFiltri.Visible = true;
                // visualizza pannello esito complessivo spedizione
                filtriEsito.Visible = true;

                pnlRegistroCasella.Visible = true;
            }
            try
            {
                List <DocsPaWR.InfoDocumentoSpedito> listSpedizioni = docsPaSvr.GetReportSpedizioni(filters, UserManager.GetInfoUser()).ToList();
                if (listSpedizioni.Count > 0 && string.IsNullOrEmpty(IdDocumento))
                {
                    this.tblEspandiChiudi.Visible = true;
                    this.lblNumDocTrovati.Text    = listSpedizioni.Count.ToString();
                }
                else
                {
                    this.tblEspandiChiudi.Visible = false;
                }

                gvlistaDocumenti.DataSource = listSpedizioni;
                gvlistaDocumenti.DataBind();
                UpPnlDest.Update();
                gvlistaDocumenti.Visible = true;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
예제 #19
0
        public void BindGrid()
        {
            DocsPaWR.DocsPaWebService     ws             = new DocsPaWR.DocsPaWebService();
            DocsPaWR.RegistroRepertorio[] listaRegRepert = ws.GetRegistriesWithAooOrRf(null, UserManager.getInfoUtente().idGruppo);

            if (listaRegRepert != null && listaRegRepert.Length > 0)
            {
                string stato        = string.Empty;
                string responsabile = string.Empty;
                string dtaLastPrint = string.Empty;
                Dt_elem = new ArrayList();
                string img_stato = "";
                for (int i = 0; i < listaRegRepert.Length; i++)
                {
                    string descrTipoDocumento = listaRegRepert[i].TipologyDescription;
                    string counterID          = listaRegRepert[i].CounterId;

                    if (listaRegRepert[i].SingleSettings != null && listaRegRepert[i].SingleSettings.Length > 0)
                    {
                        foreach (DocsPaWR.RegistroRepertorioSingleSettings regRep in listaRegRepert[i].SingleSettings)
                        {
                            stato        = regRep.CounterState.ToString().Equals("O") ? "Aperto" : "Chiuso";
                            stato        = GetImageStato(stato);
                            responsabile = regRep.RoleAndUserDescription;
                            dtaLastPrint = regRep.DateLastPrint.ToShortDateString();
                            if (!string.IsNullOrEmpty(regRep.RegistryId))
                            {
                                Dt_elem.Add(new ColsRF(descrTipoDocumento, counterID, regRep.RegistryOrRfDescription, "Registro", regRep.RegistryId, "", stato, responsabile, dtaLastPrint));
                            }
                            else if (!string.IsNullOrEmpty(regRep.RFId))
                            {
                                Dt_elem.Add(new ColsRF(descrTipoDocumento, counterID, regRep.RegistryOrRfDescription, "RF", "", regRep.RFId, stato, responsabile, dtaLastPrint));
                            }
                            else
                            {
                                Dt_elem.Add(new ColsRF(descrTipoDocumento, counterID, string.Empty, string.Empty, string.Empty, string.Empty, stato, responsabile, dtaLastPrint));
                            }
                        }
                    }
                    else
                    {
                        Dt_elem.Add(new ColsRF(descrTipoDocumento, counterID, string.Empty, string.Empty, string.Empty, string.Empty, stato, string.Empty, string.Empty));
                    }
                }
                if (Dt_elem.Count > 0)
                {
                    this.DataGrid2.DataSource = Dt_elem;
                    this.DataGrid2.DataBind();
                }
            }
        }
예제 #20
0
        /// <summary>
        /// Reperimento di un elemento rubrica corrispondente ad un Raggruppamento Funzionale
        /// </summary>
        /// <param name="infoUtente">Informazioni sul richiedente</param>
        /// <param name="idRf">Id dell'RF</param>
        /// <returns>Informazioni sull'RF</returns>
        public static RC.Proxy.Elementi.ElementoRubrica GetElementoRubricaRF(DocsPaWR.InfoUtente infoUtente, string idRf)
        {
            RC.Proxy.Elementi.ElementoRubrica elementoRubrica = null;

            DocsPaWR.ElementoRubricaRF elementoRF = new DocsPaWR.DocsPaWebService().GetElementoRubricaRF(infoUtente, idRf);

            if (elementoRF != null)
            {
                // Ricerca dell'elemento in rubrica comune
                elementoRubrica = GetElementiRubricaServiceInstance(infoUtente).SearchSingle(elementoRF.CodiceRubrica, global::RubricaComune.Proxy.Elementi.TipiRicercaParolaEnum.ParolaIntera);
            }

            return elementoRubrica;
        }
예제 #21
0
        /// <summary>
        /// Caricamento dati delle spedizioni effettuate per il documento
        /// </summary>
        /// <param name="infoSpedizione"></param>
        protected void FetchData(DocsPaWR.SpedizioneDocumento infoSpedizione)
        {
            // Carico la lista dei registri e degli RF per non caricarla per ogni destinatario esterno
            NttDataWA.DocsPaWR.Registro[]   rf            = RegistryManager.getListaRegistriWithRF("1", RegistryManager.GetRegistryInSession().systemId);
            NttDataWA.DocsPaWR.Registro[]   registri      = RegistryManager.getListaRegistriWithRF("0", RegistryManager.GetRegistryInSession().systemId);
            DocsPaWR.DocsPaWebService       ws            = new DocsPaWR.DocsPaWebService();
            NttDataWA.DocsPaWR.StatoInvio[] listaSped_opt = ws.GetListaSpedizioni(DocumentManager.getSelectedRecord().systemId);

            // Caricamento dati nei singoli usercontrol
            this.listaDestinatariInterni.FetchData(infoSpedizione, CorrespondentTypeEnum.Interno, rf, registri, "INTERNO", listaSped_opt);
            this.listaDestinatariInteroperanti.FetchData(infoSpedizione, CorrespondentTypeEnum.Esterno, rf, registri, "INTEROP", listaSped_opt);
            this.listaDestinatariNonInteroperanti.FetchData(infoSpedizione, CorrespondentTypeEnum.EsternoNonInteroperante, rf, registri, "NONINTEROP", listaSped_opt);
            this.listaDestinatatiInteropSempl.FetchData(infoSpedizione, CorrespondentTypeEnum.SimplifiedInteroperability, rf, registri, "IS", listaSped_opt);
        }
예제 #22
0
 public DocsPaWR.EsitoSmistamentoDocumento[] SmistaDocumento()
 {
     DocsPaWR.DocsPaWebService ws = new DocsPaWR.DocsPaWebService();
     //Andrea - Evita lancio eccezione per lo scadere del timeout
     //ws.Timeout = System.Threading.Timeout.Infinite;
     //End Andrea
     return(ws.SmistaDocumento(
                this._mittenteSmistamento,
                this._infoUtente,
                this._currentDocument,
                (DocsPaWR.DatiTrasmissioneDocumento) this._datiDocumentiTrasmessi[this.GetCurrentDocumentPosition() - 1],
                this._uoAppartenenza,
                this._uoInferiori,
                utils.getHttpFullPath()));
 }
예제 #23
0
        protected void Page_Load(object sender, EventArgs e)
        {
            DocsPaWR.DocsPaWebService ws   = ProxyManager.getWS();
            DocsPaWR.Diagnostics      diag = ws.A1GetDiagnostics();
            String InfoBK  = String.Empty;
            String InfoDB  = String.Empty;
            String InfoDOC = String.Empty;
            String InfoURL = String.Empty;
            String InfoFE  = String.Empty;

            InfoBK += String.Format("Titolo Applicativo <b>{0}</b><br/>", diag.TitoloSGD);
            InfoBK += String.Format("Orario del Backend <b>{0}</b><br/>", diag.BackedTime.ToLocalTime().ToString());
            InfoBK += String.Format("Versione Backend <b>{0}</b><br/>", diag.VersioneWS);
            InfoBK += String.Format("Path Backend <b>{0}</b><br/>", diag.PathWS);
            InfoBK += String.Format("AppPool Backend <b>{0}</b><br/>", diag.AppPoolWS);
            InfoBK += String.Format("Server Backend <b>{0}</b><br/>", diag.WSServerName);

            InfoDB += String.Format("Tipo DB <b>{0}</b><br/>", diag.TipoDB);
            InfoDB += String.Format("Nome Utente DB <b>{0}</b><br/>", diag.NomeUtenteDb);
            InfoDB += String.Format("Nome Database <b>{0}</b><br/>", diag.NomeDb);
            InfoDB += String.Format("IL DB è collegato <b>{0}</b><br/>", diag.DBok);

            InfoDOC += String.Format("Tipo Documentale <b>{0}</b><br/>", diag.TipoDocumentale);
            InfoDOC += String.Format("Info Documentale <b>{0}</b><br/>", diag.InfoDocumentale);

            InfoURL += String.Format("Url Convertitore PDF <b>{0}</b><br/>", diag.UrlConvertitorePDF);
            InfoURL += String.Format("Url Centro Notifiche <b>{0}</b><br/>", diag.UrlCentroNotifiche);
            InfoURL += String.Format("Url Rubrica Comune <b>{0}</b><br/>", diag.UrlRubricaComune);


            InfoFE += String.Format("Orario del Frontend <b>{0}</b><br/>", DateTime.Now.ToLocalTime().ToString());
            InfoFE += String.Format("Path Url al BE <b>{0}</b><br/>", ws.Url);
            InfoFE += String.Format("Path Frontend <b>{0}</b><br/>", Server.MapPath("~"));
            InfoFE += String.Format("AppPool Frontend <b>{0}</b><br/>", Request.ServerVariables["APP_POOL_ID"]);
            InfoFE += String.Format("Server Frontend <b>{0}</b><br/>", Server.MachineName);


            InfoBackend.Text     = InfoBK;
            ImpostazioniDB.Text  = InfoDB;
            ImpostazioniDoc.Text = InfoDOC;
            ImpostazioniUrl.Text = InfoURL;
            InfoFrontend.Text    = InfoFE;
            string adminLink = new Uri(Request.Url, ".").ToString() + "login.htm";
            string LoginLink = new Uri(Request.Url, "..").ToString() + "login.htm";

            LinkAdmin.NavigateUrl = adminLink;
            LinkLogin.NavigateUrl = LoginLink;
        }
예제 #24
0
        public bool verificaNomeModifica(string nomeRicerca, SAAdminTool.DocsPaWR.InfoUtente infoUtente, string pagina, string idRicerca)
        {
            bool retValue = false;

            try
            {
                DocsPaWR.DocsPaWebService docspaws = ProxyManager.getWS();
                retValue = docspaws.verificaNomeRicercaModifica(nomeRicerca, infoUtente, pagina, idRicerca);
            }
            catch (Exception e)
            {
                logger.Debug("SchedaRicerca.verificaNomeRicerca - Errore nella verifica univocità del nome della ricerca: " + e.Message);
                throw e;
            }
            return(retValue);
        }
예제 #25
0
 public void Cancella(int id)
 {
     logger.Debug("SchedaRicerca.Cancella");
     try
     {
         DocsPaWR.DocsPaWebService docspaws = ProxyManager.getWS();
         logger.Debug("SchedaRicerca.Cancella - Sto per cancellare la ricerca: " + id);
         bool ok = docspaws.CancellaRicerca(id);
         logger.Debug("SchedaRicerca.Cancella - Ricerca cancellata");
     }
     catch (Exception ex)
     {
         logger.Debug("SchedaRicerca.Cancella - Errore nella cancellazione della ricerca: " + ex.Message);
         throw ex;
     }
 }
예제 #26
0
        public SearchProperties()
        {
            message        = null;
            docProperties  = new DocProperties();
            protProperties = new ProtProperties();

            DocsPaWR.Ruolo ruolo = UserManager.getRuolo();
            protProperties.Registri = new SearchRegistry[ruolo.registri.Length];
            for (int i = 0; i < ruolo.registri.Length; i++)
            {
                SearchRegistry sr = new SearchRegistry();
                sr.Id          = ruolo.registri[i].systemId;
                sr.Codice      = ruolo.registri[i].codRegistro;
                sr.Descrizione = ruolo.registri[i].descrizione;
                sr.Selezionato = (UserManager.getRegistroSelezionato(new Page()).systemId == sr.Id);

                protProperties.Registri[i] = sr;
            }

            try
            {
                //this.protin=this.IsEnabledProtocolloInterno();

                ArrayList aux_td = new ArrayList();
                DocsPaWR.DocsPaWebService DocsPaWS = ProxyManager.getWS();

                if (System.Configuration.ConfigurationManager.AppSettings["ProfilazioneDinamica"] != null &&
                    System.Configuration.ConfigurationManager.AppSettings["ProfilazioneDinamica"] == "1")
                {
                    string idAmm = UserManager.getInfoUtente().idAmministrazione;
                    aux_td.AddRange(DocsPaWS.GetTipologiaAttoProfDin(idAmm));
                }
                else
                {
                    aux_td.AddRange(DocsPaWS.DocumentoGetTipologiaAtto());
                }

                DocsPaWR.TipologiaAtto all = new DocsPAWA.DocsPaWR.TipologiaAtto();
                all.systemId    = string.Empty;
                all.descrizione = "(Tutti)";
                aux_td.Insert(0, all);

                tipidoc = new DocsPAWA.DocsPaWR.TipologiaAtto[aux_td.Count];
                aux_td.CopyTo(tipidoc);
            }
            catch (Exception ex) { Console.WriteLine(ex.Message); }
        }
예제 #27
0
        public bool HSM_Sign(FileRequest fr, bool cofirma, bool timestamp, tipoFirma TipoFirma, String AliasCertificato, String DominioCertificato, String OtpFirma, String PinCertificato, bool ConvertPdf, out DocsPaWR.FirmaResult esito)
        {
            InfoUtente infoUt = NttDataWA.UIManager.UserManager.GetInfoUser();

            esito = new FirmaResult();
            DocsPaWR.DocsPaWebService docsPaWS = ProxyManager.GetWS();
            try
            {
                string tipoFirmaSTR = TipoFirma.ToString();
                return(docsPaWS.HSM_SignConEsito(infoUt, fr, cofirma, timestamp, tipoFirmaSTR, AliasCertificato, DominioCertificato, OtpFirma, PinCertificato, ConvertPdf, out esito));
            }
            catch (System.Exception ex)
            {
                //UIManager.AdministrationManager.DiagnosticError(ex);
                return(false);
            }
        }
예제 #28
0
        protected void btn_gest_Click(object sender, System.EventArgs e)
        {
            int msgRtn;

            System.Web.UI.WebControls.CommandEventArgs ev = (System.Web.UI.WebControls.CommandEventArgs)e;
            try
            {
                if (ev.CommandArgument.Equals("GEST_FAX"))
                {
                    DocsPaWR.DocsPaWebService WS = ProxyManager.getWS();
                    infoUt    = UserManager.getInfoUtente(this);
                    userRuolo = UserManager.getRuolo(this);
                    userReg   = userRuolo.registri[0];
                    msgRtn    = WS.FaxProcessaCasella(Utils.getHttpFullPath(this), infoUt, userRuolo, userReg);
                    if (msgRtn < 0)
                    {
                        logger.Error("Errore nella testata (GEST_FAX)");
                        throw new Exception();
                    }
                    switch (msgRtn)
                    {
                    case 0:
                        Response.Write("<script>alert('Nelle caselle Fax controllate,\\nnon risultano nuovi Fax da Processare ')</script>");
                        break;

                    case 1:
                        Response.Write("<script>alert('Trovato " + msgRtn.ToString() + " Fax,\\nconsultare la lista COSE DA FARE per vedere la trasmissione ad esso relativa.')</script>");
                        break;

                    default:
                        Response.Write("<script >alert('Trovati " + msgRtn.ToString() + " Fax,\\nconsultare la lista COSE DA FARE per vedere le trasmissioni ad essi relativa.')</script>");
                        break;
                    }
                }
                GestManager.removeRegistroSel(this);
                CleanSessionMemoria();
            }
            catch (Exception ex)
            {
                string f = ex.Message.ToString();
                ErrorManager.redirectToErrorPage(this, ex);
            }

            this.btn_gest.DisabledUrl = "images/testata/btn_gestione_on.gif";
        }
예제 #29
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="item"></param>
        /// <returns></returns>
        protected bool IncludiDestinatarioInSpedizione(DocsPaWR.Destinatario item, NttDataWA.DocsPaWR.Registro[] rf, NttDataWA.DocsPaWR.Registro[] registri)
        {
            bool resultValue = true;

            try
            {
                resultValue = item.IncludiInSpedizione;

                DocsPaWR.DocsPaWebService ws = new DocsPaWR.DocsPaWebService();
                if (item is DocsPaWR.DestinatarioEsterno && !(item as DocsPaWR.DestinatarioEsterno).Interoperante)
                {
                    resultValue = false;
                }

                if (item is DocsPaWR.DestinatarioEsterno)
                {
                    DocsPaWR.DestinatarioEsterno destinatarioEsterno = item as DocsPaWR.DestinatarioEsterno;
                    if ((!MultiBoxManager.RoleIsAuthorizedSend("E", rf, registri) &&
                         destinatarioEsterno.DatiDestinatari[0].canalePref != null &&
                         (destinatarioEsterno.DatiDestinatari[0].canalePref.descrizione.Equals("MAIL") ||
                          destinatarioEsterno.DatiDestinatari[0].canalePref.descrizione.Equals("INTEROPERABILITA"))) ||
                        (destinatarioEsterno.DatiDestinatari[0].tipoIE != null && destinatarioEsterno.DatiDestinatari[0].tipoIE.Equals("I") && ws.IsEnabledInteropInterna() &&
                         !MultiBoxManager.RoleIsAuthorizedSend("I", rf, registri)))
                    {
                        resultValue = false;
                    }
                }
                if (item is DocsPaWR.DestinatarioInterno)
                {
                    DocsPaWR.DestinatarioInterno destinatarioInterno = item as DocsPaWR.DestinatarioInterno;
                    if (destinatarioInterno != null && destinatarioInterno.DisabledTrasm)
                    {
                        resultValue = false;
                    }
                }
            }
            catch (Exception ex)
            {
                resultValue = false;
            }

            return(resultValue);
        }
예제 #30
0
        /// <summary>
        ///
        /// </summary>
        protected void WriteContatoreStampeEffettuate() //se la stampa multipla è abilitata allora gestisco l'aggiornamento del contatore prints_num
        {
            string abilita_multi_stampa_etichetta = utils.InitConfigurationKeys.GetValue("0", "FE_MULTI_STAMPA_ETICHETTA");

            if (abilita_multi_stampa_etichetta.Equals("1"))
            {
                DocsPaWR.SchedaDocumento  schedaDocumento = DocumentManager.getDocumentoSelezionato();
                DocsPaWR.DocsPaWebService ws = ProxyManager.getWS();
                try
                {
                    ws.updateStampeDocumentoEffettuate(UserManager.getInfoUtente(),
                                                       this.NumeroStampeEffettuate,
                                                       this.NumeroStampeDaEffettuare,
                                                       schedaDocumento.systemId);
                }
                catch (Exception e) { }
                string numStampe = (this.NumeroStampeEffettuate + this.NumeroStampeDaEffettuare).ToString();
                schedaDocumento.protocollo.stampeEffettuate = numStampe;
            }
        }