コード例 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            DocsPAWA.DocsPaWR.FileDocumento result = null;
            Response.Expires = -1;

            FirmaDigitale.FirmaDigitaleMng  firmaDigitaleMng = new FirmaDigitale.FirmaDigitaleMng();
            DocsPAWA.DocsPaWR.FileDocumento fileFirmato      = firmaDigitaleMng.GetSignedDocument(this);
            firmaDigitaleMng = null;

            // Se ho un file fisico da poter convertire
            if (fileFirmato != null)
            {
                // procedo con la conversione sincrona
                result = new DocsPAWA.DocsPaWR.DocsPaWebService().GeneratePDFInSyncMod(fileFirmato);
            }

            if (result != null)
            {
                this.Response.ContentType = "application/pdf";
                this.Response.AddHeader("content-length", result.content.Length.ToString());
                this.Response.BinaryWrite(result.content);
            }
            else
            {
                this.Response.StatusCode        = 500;
                this.Response.StatusDescription = "Non è stato possibile convertire il documento in PDF lato server";
            }
        }
コード例 #2
0
        private void caricaDdlSegnatura(string idAmm)
        {
            DocsPAWA.DocsPaWR.DocsPaWebService ws = new DocsPAWA.DocsPaWR.DocsPaWebService();
            //System.Web.UI.WebControls.ListItem list = new System.Web.UI.WebControls.ListItem();
            //list.Value = "0";
            //list.Text = "Nero";
            //ddl_segnatura.Items.Add(list);

            //list.Value = "1";
            //list.Text = "Blu";
            //ddl_segnatura.Items.Add(list);

            //list.Value = "2";
            //list.Text = "Rosso";
            //ddl_segnatura.Items.Add(list);

            string segnAmm = ws.getSegnAmm(idAmm);

            if (segnAmm != null && !segnAmm.Equals(""))
            {
                this.ddl_segnatura.SelectedIndex = Convert.ToInt32(segnAmm);
            }
            else
            {
                this.ddl_segnatura.SelectedIndex = 0;
            }
        }
コード例 #3
0
        /// <summary>
        /// Reperimento di tutti i registri disponibili per il ruolo corrente
        /// </summary>
        /// <returns></returns>
        public DocsPAWA.DocsPaWR.Registro[] GetRegistri()
        {
            ProtocollazioneIngresso.Login.LoginMng loginMng = new ProtocollazioneIngresso.Login.LoginMng(this._page);

            DocsPAWA.DocsPaWR.DocsPaWebService ws = new DocsPAWA.DocsPaWR.DocsPaWebService();
            return(ws.UtenteGetRegistri(loginMng.GetInfoUtente().idCorrGlobali));
        }
コード例 #4
0
        public bool setDatiAmm(string idAmm)
        {
            DocsPaWR.DocsPaWebService wws = new DocsPAWA.DocsPaWR.DocsPaWebService();
            bool result = wws.setNews(idAmm, this.news.Text, this.enable_news.Checked);

            return(result);
        }
コード例 #5
0
        /// <summary>
        /// Page_Load
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Page_Load(object sender, System.EventArgs e)
        {
            //----- CONTROLLO DELL'UTENTE AMMINISTRATORE CONNESSO -----------

            if (!ws.CheckSession(Session.SessionID))
            {
                Response.Redirect("../Exit.aspx?FROM=ABORT");
            }

            if (!IsPostBack)
            {
                DocsPAWA.DocsPaWR.DocsPaWebService wws = new DocsPAWA.DocsPaWR.DocsPaWebService();
                string idAmm = AmmUtils.UtilsXml.GetAmmDataSession((string)Session["AMMDATASET"], "3");

                string verifica = wws.VerificaDocErrati(idAmm);

                if (!string.IsNullOrEmpty(verifica))
                {
                    if (verifica.Contains("^"))
                    {
                        string[] lista = verifica.Split('^');
                        this.lbl_doc_no_dest.Text = lista[0];
                        this.lbl_doc_no_mitt.Text = lista[1];
                        this.lbl_doc_cc.Text      = lista[2];
                    }
                }
            }
        }
コード例 #6
0
        private void caricaDdlTema(string idAmm)
        {
            DocsPAWA.DocsPaWR.DocsPaWebService ws = new DocsPAWA.DocsPaWR.DocsPaWebService();
            ArrayList temi = new ArrayList(ws.getListaTemi());

            System.Web.UI.WebControls.ListItem list = new System.Web.UI.WebControls.ListItem();
            list.Value = "0";
            list.Text  = "";
            ddl_TemaAmministraz.Items.Add(list);

            for (int i = 0; i < temi.Count; i++)
            {
                System.Web.UI.WebControls.ListItem li = new System.Web.UI.WebControls.ListItem();
                string[] valori = temi[i].ToString().Split('^');
                li.Value = valori[0];
                li.Text  = valori[1];
                ddl_TemaAmministraz.Items.Add(li);
            }

            string temaAmmin = ws.getCssAmministrazione(idAmm);

            if (temaAmmin != null && !temaAmmin.Equals(""))
            {
                string[] realTema = temaAmmin.Split('^');
                this.ddl_TemaAmministraz.SelectedIndex = Convert.ToInt32(realTema[1]);
            }
            else
            {
                this.ddl_TemaAmministraz.SelectedIndex = 0;
            }
        }
コード例 #7
0
        private bool RifiutaDocumento(string notaRifiuto, string IDTrasmUtente, string idTrasmissione, string idPeople)
        {
            bool retValue = false;

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

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

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

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

                DocsPAWA.DocsPaWR.InfoUtente infoUtente = UserManager.getInfoUtente();

                retValue = ws.RitornaAlMittTrasmUt(objTrasmUt, infoUtente);
            }
            return(retValue);
        }
コード例 #8
0
        //private bool ScartaDocumento(string IDTrasmUtente, bool trasmConWorkflow, string idPeople, string idTrasmissione)
        //{
        //    bool retValue = false;
        //    DocsPaWR.DocsPaWebService ws=new DocsPAWA.DocsPaWR.DocsPaWebService();
        //    retValue = ws.ScartaDocumento(IDTrasmUtente, trasmConWorkflow, idPeople, idTrasmissione);
        //    return retValue;
        //}

        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 DocsPAWA.DocsPaWR.DocsPaWebService();
            retValue = ws.ScartaDocumento(infoUtente, idOggetto, tipoOggetto, idTrasmissione, idTrasmSingola, mittente, ruolo);
            return(retValue);
        }
コード例 #9
0
        protected void btn_importa_Click(object sender, EventArgs e)
        {
            //Controllo la selezione file
            if (uploadFile.Value == "" || uploadFile.Value == null)
            {
                ClientScript.RegisterStartupScript(this.GetType(), "selezioneNonValida_1", "alert('Selezionare un file valido.');", true);
                return;
            }

            //Controllo che sia un file Excel
            if (uploadFile.Value != "")
            {
                if (uploadFile.Value != null)
                {
                    string[] path = uploadFile.Value.Split('.');
                    if (path.Length != 0 && path[path.Length - 1] != "xls")
                    {
                        ClientScript.RegisterStartupScript(this.GetType(), "selezioneNonValida_2", "alert('I files validi sono solo quelli con estensione *.xls');", true);
                        return;
                    }
                }
            }

            //Inizio importazione
            HttpPostedFile p  = uploadFile.PostedFile;
            Stream         fs = p.InputStream;

            byte[] dati = new byte[fs.Length];
            fs.Read(dati, 0, (int)fs.Length);
            fs.Close();
            bool esitoImport = true;

            DocsPAWA.DocsPaWR.DocsPaWebService ws = new DocsPAWA.DocsPaWR.DocsPaWebService();
            ws.Timeout = System.Threading.Timeout.Infinite;
            switch (listeDistr)
            {
            case "1":     // Liste di distribuzione abilitate
                flagListe = 1;
                break;

            case "0":     // Liste di distribuzione disabilitate
                flagListe = 0;
                break;
            }

            esitoImport = ws.ImportaRubrica(UserManager.getInfoUtente(), dati, flagListe, "importRubrica.xls", ref corrInseriti, ref corrAggiornati, ref corrRimossi, ref corrNonInseriti, ref corrNonAggiornati, ref corrNonRimossi);
            if (!esitoImport)
            {
                ClientScript.RegisterStartupScript(this.GetType(), "errore", "alert('ERRORE : controllare che il modello del file sia corretto.');", true);
                lbl_avviso.Text = "ERRORE nell'importazione !";
                btn_log.Visible = true;
                return;
            }

            lbl_avviso.Text = String.Format("Corrispondenti Inseriti: {0}<br />Corrispondenti Aggiornati: {1}<br />Corrispondenti Rimossi: {2}<br />Corrispondenti NON Inseriti: {3}<br />Corrispondenti NON Aggiornati: {4}<br />Corrispondenti NON Rimossi: {5}",
                                            corrInseriti, corrAggiornati, corrRimossi, corrNonInseriti, corrNonAggiornati, corrNonRimossi);
            btn_log.Visible = true;
        }
コード例 #10
0
        /// <summary>
        /// Reperisce la lista di tutti gli RF disponibile e abilitati
        /// </summary>
        private void getRF()
        {
            DocsPAWA.DocsPaWR.DocsPaWebService    ws      = new DocsPAWA.DocsPaWR.DocsPaWebService();
            DocsPAWA.DocsPaWR.InfoAmministrazione infoAmm = new DocsPAWA.DocsPaWR.InfoAmministrazione();

            infoAmm = ws.AmmGetInfoAmmCorrente(this.hd_idAmm.Value);

            this._RFList = ws.AmmGetRegistri(infoAmm.Codice, "1");
        }
コード例 #11
0
        protected void btn_importa_Click(object sender, EventArgs e)
        {
            //Controllo la selezione file
            if (uploadFile.Value == "" || uploadFile.Value == null)
            {
                ClientScript.RegisterStartupScript(this.GetType(), "selezioneNonValida_1", "alert('Selezionare un file valido.');", true);
                return;
            }

            //Controllo che sia un file Excel
            if (uploadFile.Value != "")
            {
                if (uploadFile.Value != null)
                {
                    string[] path = uploadFile.Value.Split('.');
                    if (path.Length != 0 && path[path.Length - 1] != "xls")
                    {
                        ClientScript.RegisterStartupScript(this.GetType(), "selezioneNonValida_2", "alert('I files validi sono solo quelli con estensione *.xls');", true);
                        return;
                    }
                }
            }

            //Inizio importazione
            HttpPostedFile p  = uploadFile.PostedFile;
            Stream         fs = p.InputStream;

            byte[] dati = new byte[fs.Length];
            fs.Read(dati, 0, (int)fs.Length);
            fs.Close();
            bool esitoImport = true;

            DocsPAWA.DocsPaWR.DocsPaWebService ws = new DocsPAWA.DocsPaWR.DocsPaWebService();
            string[] amministrazione = ((string)Session["AMMDATASET"]).Split('@');
            string   codiceAmm       = amministrazione[0];

            ws.Timeout = System.Threading.Timeout.Infinite;

            DocsPAWA.AdminTool.Manager.SessionManager sessionManager = new DocsPAWA.AdminTool.Manager.SessionManager();

            esitoImport = ws.importaOggettario(dati, "importOggettario.xls", codiceAmm, this.ckb_update.Checked, ref oggInseriti, ref oggAggiornati, ref oggErrati);

            if (!esitoImport)
            {
                ClientScript.RegisterStartupScript(this.GetType(), "errore", "alert('ERRORE : controllare che il modello del file sia corretto.');", true);
                lbl_avviso.Text = "ERRORE nell'importazione !";
                btn_log.Visible = true;
                return;
            }

            //ClientScript.RegisterStartupScript(this.GetType(), "importazioneAvvenuta", "alert('Importazione completata correttamente.');", true);

            Session.Add("ImportazioneAvvenuta", "ImportazioneAvvenuta");

            lbl_avviso.Text = "Oggetti Inseriti : " + oggInseriti + " Oggetti Aggiornati : " + oggAggiornati + " Oggetti Errati : " + oggErrati;
            btn_log.Visible = true;
        }
コード例 #12
0
        /// <summary>
        /// Modifica dello stato del registro
        /// </summary>
        /// <param name="registro"></param>
        public void CambiaStatoRegistroCorrente()
        {
            DocsPAWA.DocsPaWR.DocsPaWebService ws = new DocsPAWA.DocsPaWR.DocsPaWebService();

            ProtocollazioneIngresso.Login.LoginMng loginMng = new ProtocollazioneIngresso.Login.LoginMng(this._page);
            DocsPAWA.DocsPaWR.Registro             registro = ws.RegistriCambiaStato(loginMng.GetInfoUtente(), this.GetRegistroCorrente());

            this.SetRegistroCorrente(registro);
        }
コード例 #13
0
        public DocsPaWR.EsitoOperazione svuotaTDL(string dataImpostata, DocsPAWA.DocsPaWR.FiltroRicerca[] filtri)
        {
            DocsPaWR.EsitoOperazione  esito = new DocsPAWA.DocsPaWR.EsitoOperazione();
            DocsPaWR.DocsPaWebService ws    = new DocsPAWA.DocsPaWR.DocsPaWebService();
            ws.Timeout = System.Threading.Timeout.Infinite;
            esito      = ws.SvuotaTDL(this._infoUtente, this._ruoloUtente, dataImpostata, this._tipoObjTrasm, this._noWF, filtri);

            return(esito);
        }
コード例 #14
0
        public bool isNoticeActived(out string _noticeDays, out string _countTxOverNoticeDays, out string _datePost)
        {
            _noticeDays            = string.Empty;
            _countTxOverNoticeDays = string.Empty;
            _datePost = string.Empty;
            DocsPaWR.DocsPaWebService ws = new DocsPAWA.DocsPaWR.DocsPaWebService();

            return(ws.isNoticeActivedTDL(this._infoUtente, this._ruoloUtente, this._tipoObjTrasm, out _noticeDays, out _countTxOverNoticeDays, out _datePost));
        }
コード例 #15
0
 /// <summary>
 ///  gestione dell'evento del messaggio di conferma
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void msg_elimina_GetMessageBoxResponse(object sender, Utilities.MessageBox.MessageBoxEventHandler e)
 {
     if (e.ButtonPressed == Utilities.MessageBox.MessageBoxEventHandler.Button.Ok)
     {
         DocsPAWA.DocsPaWR.DocsPaWebService ws = new DocsPAWA.DocsPaWR.DocsPaWebService();
         ws.deleteConfigurazioneCache(hd_idAmm.Value);
         clearCampi();
     }
 }
コード例 #16
0
        /// <summary>
        /// Verifica se, per l'amministrazione, la gestione scadenza password è abilitata o meno
        /// </summary>
        /// <returns></returns>
        protected bool IsSupportedPasswordConfig()
        {
            if (this.ViewState["IsSupportedPasswordConfig"] == null)
            {
                DocsPAWA.DocsPaWR.DocsPaWebService ws = new DocsPAWA.DocsPaWR.DocsPaWebService();
                this.ViewState["IsSupportedPasswordConfig"] = ws.AdminIsSupportedPasswordConfig();
            }

            return(Convert.ToBoolean(this.ViewState["IsSupportedPasswordConfig"]));
        }
コード例 #17
0
        /// <summary>
        /// funzione che inizializza la web form
        /// </summary>
        protected void Initialize()
        {
            if (ws == null)
            {
                ws = new DocsPAWA.DocsPaWR.DocsPaWebService();
            }
            string idAmm = hd_idAmm.Value;

            DocsPAWA.DocsPaWR.CacheConfig info = ws.getConfigurazioneCache(idAmm);
            if (info != null)
            {
                if (info.massima_dimensione_caching != -1.0)
                {
                    txt_dim_cache.Text = (info.massima_dimensione_caching / mbyte).ToString();
                    txt_dim_cache.Style["text-align"] = "right";
                    ck_dim_cache_infinito.Checked     = false;
                }
                else
                {
                    txt_dim_cache.Text            = " ";
                    ck_dim_cache_infinito.Checked = true;
                }

                if (info.massima_dimensione_file != -1.0)
                {
                    txt_dim_file.Text = (info.massima_dimensione_file / kbyte).ToString();
                    txt_dim_file.Style["text-align"] = "right";
                    ck_dim_file_infinito.Checked     = false;
                }
                else
                {
                    txt_dim_file.Text            = " ";
                    ck_dim_file_infinito.Checked = true;
                }
                txt_ora_fine.Text    = info.ora_fine_cache.Substring(0, 2);
                txt_ora_start.Text   = info.ora_inizio_cache.Substring(0, 2);
                txt_min_fine.Text    = info.ora_fine_cache.Substring(3, 2);
                txt_min_start.Text   = info.ora_inizio_cache.Substring(3, 2);
                txt_doc_root.Text    = info.doc_root_server;
                cb_cache.Checked     = info.caching;
                btn_salva.Text       = "Modifica";
                btn_elimina.Visible  = true;
                btn_annulla.Visible  = false;
                hd_idAmm.Value       = info.idAmministrazione;
                txt_ws_generale.Text = info.urlwscaching;
                txt_docLocale.Text   = info.doc_root_server_locale;
                txt_wsLocale.Text    = info.url_ws_caching_locale;
            }
            else
            {
                clearCampi();
                btn_salva.Text = "Salva";
            }
        }
コード例 #18
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btn_find_Click(object sender, System.Web.UI.ImageClickEventArgs e)
        {
            try
            {
                ViewState["risultatoRicerca"] = null;
                GestionePannello("con_ricerca");
                lbl_msg.Text = "";
                lbl_td.Text  = "";

                string myHtml      = "";
                string codice      = txt_find_cod.Text.Trim();
                string descrizione = txt_find_desc.Text.Trim();
                string note        = txt_note.Text;
                string indice      = txt_indice.Text;

                if (codice != "" || descrizione != "" || note != "" || indice != "")
                {
                    DocsPaWR.Ruolo ru    = UserManager.getRuolo(this.Page);
                    string         idAmm = ru.idAmministrazione;

                    DocsPaWR.DocsPaWebService ws = new DocsPAWA.DocsPaWR.DocsPaWebService();
                    string xmlStream             = ws.filtroRicercaTitDocspa(codice, descrizione, note, indice, idAmm, ru.idGruppo, (UserManager.getRegistroSelezionato(this)).systemId, idTitolario);
                    if (xmlStream == "<NewDataSet />")
                    {
                        lbl_msg.Text = "Nessun risultato trovato!";
                    }
                    else
                    {
                        XmlDocument doc = new XmlDocument();
                        doc.LoadXml(xmlStream);

                        XmlNode lista = doc.SelectSingleNode("NewDataSet");
                        if (lista.ChildNodes.Count > 0)
                        {
                            foreach (XmlNode nodo in lista.ChildNodes)
                            {
                                myHtml += "<TR bgColor=#FAFAFA>";
                                myHtml += "<TD class=testo_grigio_scuro><a href='titolario.aspx?azione=ricerca&idrecord=" + nodo.SelectSingleNode("ID").InnerText + "&idparent=" + nodo.SelectSingleNode("IDPARENT").InnerText + "&livello=" + nodo.SelectSingleNode("LIVELLO").InnerText + "&isFasc=" + Request.QueryString["isFasc"] + "&idTit=" + idTitolario + "' class='testo_grigio_scuro'>" + nodo.SelectSingleNode("CODICE").InnerText + "</a></TD>";
                                myHtml += "<TD class=testo_grigio>" + nodo.SelectSingleNode("DESCRIZIONE").InnerText.Replace("'", "&#39;").Replace("\"", "&quot;") + "</TD>";
                                myHtml += "<TD align=center class=testo_grigio>" + nodo.SelectSingleNode("LIVELLO").InnerText + "</TD>";
                                myHtml += "</TR>";
                            }

                            lbl_td.Text = myHtml;
                            Page.Session["risultatoRicerca"] = myHtml;
                        }
                    }
                }
            }
            catch
            {
                lbl_msg.Text = "Attenzione! si è verificato un errore di caricamento della pagina.";
            }
        }
コード例 #19
0
        /// <summary>
        /// Conversione in dataset dell'oggetto MailCheckResponse
        /// </summary>
        /// <param name="checkResponse"></param>
        /// <returns></returns>
        private DataSet ToDataSet(DocsPAWA.DocsPaWR.SendDocumentResponse sendResponse)
        {
            DataSet dataSet = new DataSet("sendResponseDataSet");

            DataTable mailSendTable = new DataTable("MailSendList");

            mailSendTable.Columns.Add("MailAddress", typeof(string));
            mailSendTable.Columns.Add("Adressee", typeof(string));
            mailSendTable.Columns.Add("SendResultBoolean", typeof(bool));
            mailSendTable.Columns.Add("SendResult", typeof(string));
            mailSendTable.Columns.Add("NoInterop", typeof(string));

            dataSet.Tables.Add(mailSendTable);

            DocsPaWR.DocsPaWebService ws = new DocsPAWA.DocsPaWR.DocsPaWebService();
            bool interopInterna          = ws.IsEnabledInteropInterna();

            foreach (DocsPAWA.DocsPaWR.SendDocumentMailResponse sendMailResponse in sendResponse.SendDocumentMailResponseList)
            {
                DataRow newRow = mailSendTable.NewRow();

                if (interopInterna)
                {
                    DocsPAWA.DocsPaWR.Corrispondente corr = (DocsPAWA.DocsPaWR.Corrispondente)sendMailResponse.Destinatari[0];
                    if ((corr.tipoIE == null && corr.tipoCorrispondente != null && corr.tipoCorrispondente == "O") ||
                        (corr.tipoIE != null && corr.tipoIE == "E"))
                    {
                        newRow["MailAddress"] = sendMailResponse.MailAddress;
                    }
                    else
                    {
                        newRow["MailAddress"] = ((DocsPAWA.DocsPaWR.Corrispondente)sendMailResponse.Destinatari[0]).codiceAOO;
                    }
                }
                else
                {
                    newRow["MailAddress"] = sendMailResponse.MailAddress;
                }
                newRow["Adressee"]          = this.GetAdressee(sendMailResponse.Destinatari);
                newRow["SendResultBoolean"] = sendMailResponse.SendSucceded;

                string errorMessage = "Inviato";
                if (!sendMailResponse.SendSucceded)
                {
                    errorMessage = sendMailResponse.SendErrorMessage;
                }
                newRow["SendResult"] = errorMessage;
                newRow["NoInterop"]  = sendMailResponse.MailNonInteroperante.ToString();

                mailSendTable.Rows.Add(newRow);
            }

            return(dataSet);
        }
コード例 #20
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         string[] amministrazione       = ((string)Session["AMMDATASET"]).Split('@');
         string   codiceAmministrazione = amministrazione[0];
         ws             = new DocsPAWA.DocsPaWR.DocsPaWebService();
         hd_idAmm.Value = ws.getIdAmmByCod(codiceAmministrazione);
         Initialize();
     }
 }
コード例 #21
0
        /// <summary>
        /// Forza la scadenza di tutte le password di tutti gli utenti dell'amministrazione
        /// </summary>
        protected void ExpireAllPassword()
        {
            if (this.IsSupportedPasswordConfig())
            {
                DocsPAWA.DocsPaWR.DocsPaWebService ws = new DocsPAWA.DocsPaWR.DocsPaWebService();

                DocsPAWA.AdminTool.Manager.SessionManager sessionManager = new DocsPAWA.AdminTool.Manager.SessionManager();

                ws.AdminExpireAllPassword(sessionManager.getUserAmmSession(), this.GetIdAmministrazione());
            }
        }
コード例 #22
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(DocsPAWA.DocsPaWR.InfoUtente infoUtente)
        {
            bool retValue = false;

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

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

            return(retValue);
        }
コード例 #23
0
        private DocsPaWR.RagioneTrasmissione[] SmistamentoGetListaRagioni(DocsPAWA.DocsPaWR.InfoUtente infoUtente)
        {
            DocsPaWR.RagioneTrasmissione[] listaRagSmista;

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

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

            return(listaRagSmista);
        }
コード例 #24
0
 private void getLettereProtocolli()
 {
     DocsPAWA.DocsPaWR.DocsPaWebService wws = new DocsPAWA.DocsPaWR.DocsPaWebService();
     DocsPAWA.DocsPaWR.InfoUtente       infoUtente;
     infoUtente = UserManager.getInfoUtente(this);
     DocsPAWA.DocsPaWR.EtichettaInfo[] etichette = wws.getEtichetteDocumenti(infoUtente, infoUtente.idAmministrazione);
     if (etichette != null)
     {
         this.eti_prot_ingresso = "Prot. " + etichette[0].Etichetta; //Valore A
         this.eti_prot_partenza = "Prot. " + etichette[1].Etichetta; //Valore P
     }
 }
コード例 #25
0
        private TreeNodeTitolario CreateNewTreeNodeTitolario(DocsPAWA.DocsPaWR.OrgNodoTitolario nodoTitolario)
        {
            TreeNodeTitolario retValue = new TreeNodeTitolario();

            DocsPaWR.DocsPaWebService ws = new DocsPAWA.DocsPaWR.DocsPaWebService();

            bool ruoloAssociato = (ws.AmmGetVisibNodoTit_InRuolo(nodoTitolario.ID, this.hd_idGruppo.Value) != null);

            ((TreeNodeTitolario)retValue).SetNodoTitolario(nodoTitolario, ruoloAssociato);

            return(retValue);
        }
コード例 #26
0
        public static DocsPAWA.DocsPaWR.DocsPaWebService getWSForCache(string url)
        {
            DocsPaWR.DocsPaWebService docsPaWS = new DocsPAWA.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 (Exception) { }
            #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 (Exception) { }
            #endregion

            return(docsPaWS);
        }
コード例 #27
0
        //INSERITA DA FABIO PRENDE LE ETICHETTE DEI PROTOCOLLI
        private void getLettereProtocolli()
        {
            DocsPAWA.DocsPaWR.DocsPaWebService        wws     = new DocsPAWA.DocsPaWR.DocsPaWebService();
            DocsPAWA.AdminTool.Manager.SessionManager session = new DocsPAWA.AdminTool.Manager.SessionManager();
            DocsPAWA.DocsPaWR.InfoUtente infoUtente           = session.getUserAmmSession();
            String idAmm = null;

            if (UserManager.getInfoUtente() != null && !string.IsNullOrEmpty(UserManager.getInfoUtente().idAmministrazione))
            {
                idAmm = UserManager.getInfoUtente().idAmministrazione;
            }
            this.etichette = wws.getEtichetteDocumenti(infoUtente, idAmm);
        }
コード例 #28
0
 private void creaGerarchia(DocsPaWR.UOSmistamento UoInferiore)
 {
     DocsPaWR.DocsPaWebService ws    = new DocsPAWA.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);
         }
     }
 }
コード例 #29
0
        /// <summary>
        /// Reperimento scheda del documento da firmare digitalmente
        /// </summary>
        /// <param name="idDocumento"></param>
        /// <returns></returns>
        public DocsPaWR.SchedaDocumento GetSchedaDocumento(string idDocumento)
        {
            if (string.IsNullOrEmpty(idDocumento))
            {
                return(DocumentManager.getDocumentoSelezionato());
            }
            else
            {
                DocsPAWA.DocsPaWR.DocsPaWebService ws = DocsPAWA.ProxyManager.getWS();

                return(ws.DocumentoGetDettaglioDocumentoNoDataVista(DocsPAWA.UserManager.getInfoUtente(), idDocumento, idDocumento));
            }
        }
コード例 #30
0
        /// <summary>
        /// Reperimento del documento firmato
        /// </summary>
        /// <param name="page"></param>
        /// <param name="fileRequest"></param>
        /// <returns></returns>
        public DocsPAWA.DocsPaWR.FileDocumento GetSignedDocument(System.Web.UI.Page page, DocsPaWR.FileRequest fileRequest)
        {
            DocsPAWA.DocsPaWR.DocsPaWebService ws = DocsPAWA.ProxyManager.getWS();

            DocsPAWA.DocsPaWR.FileDocumento retValue = ws.DocumentoGetFileFirmato(fileRequest, DocsPAWA.UserManager.getInfoUtente());

            if (retValue == null)
            {
                throw new ApplicationException("Attenzione! il file non è visualizzabile.<br><br>Verificare:<br>&bull;&nbsp;l'esistenza del file in:<br>" + fileRequest.docServerLoc + fileRequest.path + fileRequest.fileName + "<br><br>&bull;&nbsp;la stringa di Impronta sulla base dati.");
            }

            return(retValue);
        }