Ejemplo n.º 1
0
        /// <summary>
        /// Page Load
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Page_Load(object sender, System.EventArgs e)
        {
            Response.Expires = -1;

            //----- CONTROLLO DELL'UTENTE AMMINISTRATORE CONNESSO -----------
            if (Session.IsNewSession)
            {
                Response.Redirect("../Exit.aspx?FROM=EXPIRED");
            }

            AmmUtils.WebServiceLink ws2 = new AmmUtils.WebServiceLink();
            if (!ws2.CheckSession(Session.SessionID))
            {
                Response.Redirect("../Exit.aspx?FROM=ABORT");
            }
            // ---------------------------------------------------------------

            if (!IsPostBack)
            {
                this.Inizialize();
            }
            else
            {
                // gestione del valore di ritorno della modal Dialog (ricerca)
                if (this.hd_returnValueModal.Value != null && this.hd_returnValueModal.Value != string.Empty && this.hd_returnValueModal.Value != "undefined")
                {
                    string[] appo = this.hd_returnValueModal.Value.Split('|');

                    this.txt_ricCod.Text         = appo[0];
                    this.txt_ricDesc.Text        = appo[1];
                    this.hd_idCorrGlobDest.Value = appo[2];

                    string[] appo2 = this.hd_tiporuolo.Value.Split('-');
                    this.txt_codNewRuolo.Text  = appo2[0].Trim() + " " + this.txt_ricCod.Text;
                    this.txt_descNewRuolo.Text = appo2[1].Trim() + " " + this.txt_ricDesc.Text;

                    this.hd_returnValueModal.Value = string.Empty;
                }
            }
        }
Ejemplo n.º 2
0
        private void salvaModifiche()
        {
            AmmUtils.WebServiceLink ws = new AmmUtils.WebServiceLink();
            //prendo i dati per il salvataggio dei dati relativi alla ragione corrente

            bool allRagioniDoc  = this.ckbDoc.Checked;
            bool allRagioniFasc = this.ckbFasc.Checked;

            SAAdminTool.DocsPaWR.ValidationResultInfo result = ws.UpdateMessageNotificaRagioneTrasmissione(this.CurrentCodiceRagioneTrasmissione, idAmministrazione, this.txtMsgNotificaDoc.Text, this.txtMsgNotificaFasc.Text, allRagioniDoc, allRagioniFasc);

            if (!result.Value)
            {
                ShowValidationMessage(result);
            }
            else
            {
                this.ckbDoc.Checked  = false;
                this.ckbFasc.Checked = false;
                this.CurrentTestoNotificaDocumento = this.txtMsgNotificaDoc.Text;
                this.CurrentTestoNotificaFascicolo = this.txtMsgNotificaFasc.Text;
            }
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Gestione del codice livello del nodo
        /// </summary>
        /// <param name="codliv_padre"></param>
        /// <param name="livello"></param>
        /// <param name="codAmm"></param>
        /// <returns></returns>
        private string GetCodiceLivello(string codliv_padre, string livello, string codAmm)
        {
            string codliv = null;

            try
            {
                AmmUtils.WebServiceLink ws = new AmmUtils.WebServiceLink();

                codliv = ws.PrendeCodLiv(codliv_padre, livello, codAmm, "", "");

                int lung = codliv.Length;
                switch (lung)
                {
                case 1:
                    codliv = codliv_padre + "000" + codliv;
                    break;

                case 2:
                    codliv = codliv_padre + "00" + codliv;
                    break;

                case 3:
                    codliv = codliv_padre + "0" + codliv;
                    break;

                case 4:
                    codliv = codliv_padre + codliv;
                    break;
                }

                codliv = codliv.Replace("%", "");
            }
            catch
            {
            }

            return(codliv);
        }
Ejemplo n.º 4
0
        public void FindNodoTitolario(string idTitolario,
                                      string idParentTitolario,
                                      int livello)
        {
            try
            {
                AmmUtils.WebServiceLink ws = new AmmUtils.WebServiceLink();
                string xmlStream           = ws.RicercaNodoRoot(idTitolario, idParentTitolario, livello);

                XmlDocument doc = new XmlDocument();
                doc.LoadXml(xmlStream);

                XmlNode lista = doc.SelectSingleNode("NewDataSet");

                if (lista.ChildNodes.Count > 0)
                {
                    string parentTreeNodeIndex = "0";

                    for (int n = 1; n <= livello; n++)
                    {
                        XmlNode liv  = doc.SelectSingleNode(".//livello[text()='" + n.ToString() + "']");
                        XmlNode root = liv.ParentNode;
                        string  id   = root.ChildNodes.Item(0).InnerText;

                        // Caricamento nodi titolario figli e reperimento
                        // dell'indice del nodo del treeview
                        parentTreeNodeIndex = this.ExpandNode(id, parentTreeNodeIndex);
                    }

                    // Impostazione nodo corrente
                    trvNodiTitolario.SelectedNodeIndex = parentTreeNodeIndex;
                }
            }
            catch
            {
                this.ShowErrorMessage("Si è verificato un errore durante l'esecuzione di questa operazione.");
            }
        }
Ejemplo n.º 5
0
        private void Page_Load(object sender, System.EventArgs e)
        {
            this.Session.Abandon();

            string sessionID = Session.SessionID;

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

            AmmUtils.WebServiceLink web = new AmmUtils.WebServiceLink();
            web.Logout(sessionManager.getUserAmmSession());

            switch (Request.QueryString["FROM"])
            {
            case "ABORT":
                Response.Redirect("login.htm");
                break;

            case "EXPIRED":
                FormsAuthentication.SignOut();
                Response.Redirect("login.htm");
                break;
            }
        }
Ejemplo n.º 6
0
        /// <summary>
        ///
        /// </summary>
        private void setDataTrasm()
        {
            string tipoRicerca = (string)System.Web.HttpContext.Current.Session["tiporic"];

            if (tipoRicerca != null && (tipoRicerca.Equals("R") || tipoRicerca.Equals("E")))
            {
                this.getFiltriTrasm();

                this._user = UserManager.getUtente();

                DocsPaWR.TrasmissioneOggettoTrasm oggettoTrasm = new DocsPAWA.DocsPaWR.TrasmissioneOggettoTrasm();

                AmmUtils.WebServiceLink ws = new AmmUtils.WebServiceLink();
                this._file = ws.ExportTrasm(oggettoTrasm, tipoRicerca, this._user, this._userRuolo, this._lstFiltriTrasm, this._tipologiaExport, this._titolo, this._campiSelezionati, UserManager.getInfoUtente());
                ws         = null;

                if (this._file != null)
                {
                    exportDatiSessionManager session = new exportDatiSessionManager();
                    session.SetSessionExportFile(this._file);
                }
            }
        }
Ejemplo n.º 7
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                //----- CONTROLLO DELL'UTENTE AMMINISTRATORE CONNESSO -----------
                Session["AdminBookmark"] = "RubricaComune";

                if (Session.IsNewSession)
                {
                    Response.Redirect("../Exit.aspx?FROM=EXPIRED");
                }

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

                if (!this.IsPostBack)
                {
                    this.lbl_position.Text = "&nbsp;&bull;&nbsp;Amministrazione: " + AmmUtils.UtilsXml.GetAmmDataSession((string)Session["AMMDATASET"], "1");

                    this.grdElementiRubrica.CurrentPageIndex = 0;

                    // Inizializzazione della lista dei tipi corrispondenti
                    this.InitializeCorrType();

                    // Caricamento dati lista
                    this.FetchList();
                }
            }
            catch (Exception ex)
            {
                this.ShowErrorMessage(ex.Message);
            }
        }
Ejemplo n.º 8
0
        private void Page_Load(object sender, System.EventArgs e)
        {
            Session["AdminBookmark"] = "SbloccaDocumenti";

            //----- CONTROLLO DELL'UTENTE AMMINISTRATORE CONNESSO -----------
            if (Session.IsNewSession)
            {
                Response.Redirect("../Exit.aspx?FROM=EXPIRED");
            }

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


            this.RegisterScrollKeeper("divGrdCheckOutDocuments");

            if (!IsPostBack)
            {
                this.btnRefresh.Attributes.Add("onClick", "ShowWaitCursor()");

                try
                {
                    this.Fetch();
                }
                catch (Exception ex)
                {
                    this.SetMessage(ex.Message);
                }

                this.lbl_position.Text = "&nbsp;&bull;&nbsp;Amministrazione: " + AmmUtils.UtilsXml.GetAmmDataSession((string)Session["AMMDATASET"], "1");
            }
        }
Ejemplo n.º 9
0
        /// <summary>
        /// conta quanti record ci sono sulla tabella dei log
        /// </summary>
        public void ContaArchivio()
        {
            string result = "";

            // verifica il numero di record di log esistono sul db
            AmmUtils.WebServiceLink ws = new AmmUtils.WebServiceLink();
            result = ws.ContaArchivio(AmmUtils.UtilsXml.GetAmmDataSession((string)Session["AMMDATASET"], "0"), "Amministrazione");
            if (result.Length != 0)
            {
                int valore = Int32.Parse(result);

                this.lbl_archivio.Text = "Numero record attuali da archiviare:&nbsp;&nbsp;&nbsp;<font color='#ff0000'>" + valore + "</font>";
                this.lbl_avviso.Text   = "L'operazione potrebbe richiedere qualche minuto";

                //FilesList();  //NON UTILIZZATO AL MOMENTO!
            }
            else
            {
                this.lbl_archivio.Text    = "<font color='#ff0000'>Nessun record dei log da archiviare!</font>";
                this.btn_archivia.Visible = false;
                this.lbl_avviso.Visible   = false;
                //this.ddl_exportType.Visible = false;
            }
        }
Ejemplo n.º 10
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                AmmUtils.WebServiceLink ws = new AmmUtils.WebServiceLink();
                string tipoReport          = Request.QueryString["tipo"].ToString();
                this.lbl_cod.Text  = Request.QueryString["id"].ToString();
                this.lbl_type.Text = tipoReport;
                switch (tipoReport)
                {
                case "MACRO_FUNZ":
                    this.lbl_type_descr.Text  = "Funzione e ruoli/utenti associati al tipo funzione.";
                    this.lbl_funzione.Text    = "Tipo funzione selezionato";
                    this.lbl_description.Text = this.lbl_cod.Text + " - " + ws.GetTipoFunzioneByCod(this.lbl_cod.Text.Trim(), false).Descrizione;
                    break;

                case "MICRO_FUNZ":
                    this.lbl_type_descr.Text  = "Tipi funzione e ruoli/utenti associati alla funzione.";
                    this.lbl_funzione.Text    = "Funzione selezionata";
                    this.lbl_description.Text = this.lbl_cod.Text + " - " + ws.GetFunzioneAnagraficaReport(this.lbl_cod.Text.Trim()).Descrizione;
                    break;
                }
            }
        }
Ejemplo n.º 11
0
        /// <summary>
        /// Inserimento della nuova password per l'utente amministratore
        /// </summary>
        /// <param name="userID"></param>
        /// <param name="password"></param>
        /// <param name="passwordConfirm"></param>
        /// <param name="failDetails"></param>
        /// <returns></returns>
        protected virtual bool SetNewPassword(string userID,
                                              string pwd, string pwdConfirm,
                                              out string failDetails)
        {
            bool retValue = false;

            failDetails = string.Empty;

            // Verifica della validità della nuova password immessa
            retValue = (pwd.Trim().Length > 0 && pwdConfirm.Trim().Length > 0);

            if (!retValue)
            {
                failDetails = "Immettere la nuova password";
            }
            else if (string.Compare(pwd, pwdConfirm, false) != 0)
            {
                failDetails = "I valori immessi nei campi password e conferma password non coincidono";
                retValue    = false;
            }

            if (retValue)
            {
                AmmUtils.WebServiceLink ws = new AmmUtils.WebServiceLink();
                DocsPAWA.DocsPaWR.ValidationResultInfo result = ws.AdminChangePassword(this.txt_newPwd.Text);

                retValue = (result.Value);

                if (!retValue)
                {
                    failDetails = result.BrokenRules[0].Description;
                }
            }

            return(retValue);
        }
Ejemplo n.º 12
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Page_Load(object sender, EventArgs e)
        {
            //----- CONTROLLO DELL'UTENTE AMMINISTRATORE CONNESSO -----------
            Session["AdminBookmark"] = "FormatoDocumenti";
            if (Session.IsNewSession)
            {
                Response.Redirect("../Exit.aspx?FROM=EXPIRED");
            }

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

            this.RegisterScrollKeeper("divGrdTipiFile");

            if (!this.IsPostBack)
            {
                // Registrazione handler javascript
                this.RegisterJavaScriptEventHandlers();

                // Il dettaglio viene nascosto
                this.ShowDetail(false);

                // Caricamento dati tipi di file
                this.FetchData();

                this.lbl_position.Text = "&nbsp;&bull;&nbsp;Amministrazione: " + AmmUtils.UtilsXml.GetAmmDataSession((string)Session["AMMDATASET"], "1");
            }

            #region MEV CS 1.3
            //
            // Se la chiave di DB "PGU_FE_DISABLE_AMM_GEST_CONS" è attiva, le funzionalità di conservazione in amministrazione vengono disabilitate
            if (this.DisableAmmGestCons())
            {
                this.lblConservazione.Visible           = false;
                this.chkUseFileTypePreservation.Visible = false;
                this.lblValidazone.Visible            = false;
                this.chkUseFileTypeValidation.Visible = false;
            }

            // INTEGRAZIONE PITRE-PARER
            // Se è attiva la conservazione PARER i campi relativi alla conservazione devono essere nascosti
            if (this.IsConservazionePARER())
            {
                this.lblConservazione.Visible           = false;
                this.chkUseFileTypePreservation.Visible = false;
                this.lblValidazone.Visible            = false;
                this.chkUseFileTypeValidation.Visible = false;
                foreach (DataGridColumn col in grdTipiFile.Columns)
                {
                    if (col.HeaderText.Equals("Ammesso conservazione") || col.HeaderText.Equals("Validazione conservazione"))
                    {
                        col.Visible = false;
                    }
                }
            }

            #endregion
        }
Ejemplo n.º 13
0
 private DocsPAWA.DocsPaWR.OrgFunzione[] GetFunzioni(string idTipoFunzione)
 {
     AmmUtils.WebServiceLink ws = new AmmUtils.WebServiceLink();
     return(ws.GetFunzioni(idTipoFunzione));
 }
Ejemplo n.º 14
0
 public static bool setVisibilityHubSysExt(string idHub)
 {
     AmmUtils.WebServiceLink ws = new AmmUtils.WebServiceLink();
     return(ws.setVisibilityHubSysExt(idHub));
 }
Ejemplo n.º 15
0
 public static bool delExtSys(SAAdminTool.DocsPaWR.SistemaEsterno sysExt, SAAdminTool.DocsPaWR.InfoUtente infoUt)
 {
     AmmUtils.WebServiceLink ws = new AmmUtils.WebServiceLink();
     return(ws.delExtSys(sysExt, infoUt));
 }
Ejemplo n.º 16
0
 public static UnitaOrganizzativa getHubSistemiEsterni(string codice, string idAmm)
 {
     AmmUtils.WebServiceLink ws = new AmmUtils.WebServiceLink();
     return(ws.GetHubSistemiEsterni(codice, idAmm));
 }
Ejemplo n.º 17
0
 public static string ctrlInserimentoSistemaEsterno(string idAmm, string codUtente, string codRuolo)
 {
     AmmUtils.WebServiceLink ws = new AmmUtils.WebServiceLink();
     return(ws.ctrlInserimentoSistemaEsterno(idAmm, codUtente, codRuolo));
 }
Ejemplo n.º 18
0
 public static TipoRuolo getTipoRuoloByCode(string idAmm, string codice)
 {
     AmmUtils.WebServiceLink ws = new AmmUtils.WebServiceLink();
     return(ws.getTipoRuoloByCode(idAmm, codice));
 }
Ejemplo n.º 19
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="objSystemId">Lista dei system id dei fascicoli selezionati</param>
        private void setDataFasc(String[] objSystemId)
        {
            this.getFiltriFasc();

            this._classificazione = FascicoliManager.getClassificazioneSelezionata(null);

            this._userReg = DocsPAWA.UserManager.getRegistroSelezionato(null);

            bool enableUfficioRef = (DocsPAWA.ConfigSettings.getKey(DocsPAWA.ConfigSettings.KeysENUM.ENABLE_UFFICIO_REF) != null &&
                                     DocsPAWA.ConfigSettings.getKey(DocsPAWA.ConfigSettings.KeysENUM.ENABLE_UFFICIO_REF).Equals("1"));

            bool enableChilds = DocsPAWA.FascicoliManager.getAllClassValue(null);

            bool enableProfilazione = false;

            if (System.Configuration.ConfigurationManager.AppSettings["ProfilazioneDinamicaFasc"] != null && System.Configuration.ConfigurationManager.AppSettings["ProfilazioneDinamicaFasc"] == "1")
            {
                enableProfilazione = true;
            }

            AmmUtils.WebServiceLink ws = new AmmUtils.WebServiceLink();

            Field[] visibleArray = null;

            if (this._campiSelezionati != null)
            {
                List <Field> visibleFieldsTemplate;
                visibleFieldsTemplate = new List <Field>();

                foreach (CampoSelezionato tempCamp in this._campiSelezionati)
                {
                    Field d = (Field)GridManager.SelectedGrid.Fields.Where(f => f.FieldId.Equals(tempCamp.fieldID) && f.CustomObjectId > 0).FirstOrDefault();
                    if (d != null)
                    {
                        visibleFieldsTemplate.Add(d);
                    }
                    else
                    {
                        if (!GridManager.IsRoleEnabledToUseGrids() && !tempCamp.campoStandard.Equals("1"))
                        {
                            d                = new Field();
                            d.FieldId        = tempCamp.fieldID;
                            d.CustomObjectId = Convert.ToInt32(tempCamp.campoStandard);
                            d.OriginalLabel  = tempCamp.nomeCampo;
                            d.Label          = tempCamp.nomeCampo;
                            d.Width          = 100;
                            visibleFieldsTemplate.Add(d);
                        }
                    }
                }

                if (visibleFieldsTemplate != null && visibleFieldsTemplate.Count > 0)
                {
                    visibleArray = visibleFieldsTemplate.ToArray();
                }
            }

            this._file = ws.ExportFascCustom(this._userInfo, this._userReg, enableUfficioRef, enableProfilazione, enableChilds, this._classificazione, this._lstFiltri, this._tipologiaExport, this._titolo, this._campiSelezionati, objSystemId, visibleArray);

            ws = null;
            if (this._file != null)
            {
                exportDatiSessionManager session = new exportDatiSessionManager();
                session.SetSessionExportFile(this._file);
            }
        }
Ejemplo n.º 20
0
 public static bool modPIS(string metodi, string idSysExt)
 {
     AmmUtils.WebServiceLink ws = new AmmUtils.WebServiceLink();
     return(ws.ModificaMetodiPermessiSistemaEsterno(metodi, idSysExt));
 }
Ejemplo n.º 21
0
 public static bool modDescTknPIS(string desc, string tknTime, string idSysExt)
 {
     AmmUtils.WebServiceLink ws = new AmmUtils.WebServiceLink();
     return(ws.ModificaDescTknPerSysExt(desc, tknTime, idSysExt));
 }
Ejemplo n.º 22
0
 /// <summary>
 /// Cancellazione di un tipo funzione
 /// </summary>
 /// <param name="tipoRuolo"></param>
 /// <returns></returns>
 private DocsPAWA.DocsPaWR.ValidationResultInfo DeleteTipoFunzione(ref DocsPAWA.DocsPaWR.OrgTipoFunzione tipoFunzione)
 {
     AmmUtils.WebServiceLink ws = new AmmUtils.WebServiceLink();
     return(ws.DeleteTipoFunzione(tipoFunzione));
 }
Ejemplo n.º 23
0
        /// <summary>
        /// Caricamento dei dati utilizzabili per la stampa dell'etichetta
        /// in un'insieme di campi testo nascosti
        /// </summary>
        /// <param name="schedaDocumento"></param>
        private void FillCampiEtichetta(DocsPAWA.DocsPaWR.SchedaDocumento schedaDocumento, string txt_num_stampe)
        {
            string abilita_multi_stampa_etichetta = DocsPAWA.utils.InitConfigurationKeys.GetValue("0", "FE_MULTI_STAMPA_ETICHETTA");

            #region parametro Dispositivo Di Stampa

            //if(ConfigSettings.getKey(ConfigSettings.KeysENUM.DISPOSITIVO_STAMPA)!=null)
            //{
            //    this.hd_dispositivo.Value=ConfigSettings.getKey(ConfigSettings.KeysENUM.DISPOSITIVO_STAMPA);
            //}
            //else
            //{
            //    this.hd_dispositivo.Value="Penna";
            //}

            //this.hd_modello_dispositivo.Value = ConfigSettings.getKey(ConfigSettings.KeysENUM.MODELLO_DISPOSITIVO_STAMPA);


            AmmUtils.WebServiceLink ws  = new AmmUtils.WebServiceLink();
            var dispositivoStampaUtente = ws.AmmGetDispositivoStampaUtente(UserManager.getInfoUtente().idPeople);
            if (dispositivoStampaUtente != null)
            {
                this.hd_dispositivo.Value         = "Etichette";
                this.hd_modello_dispositivo.Value = dispositivoStampaUtente.ToString();
            }
            else
            {
                this.hd_dispositivo.Value = "Penna";
            }
            #endregion parametro Dispositivo Di Stampa

            #region parametro Descrizione Amministrazione

            string descAmm = getDescAmministrazione(this.GetLoginManager().GetUtente().idAmministrazione);

            #endregion parametro Descrizione Amministrazione

            #region parametro Classifica Primaria

            string classificaPrimaria = String.Empty;

            string classificazioneInEtichetta = System.Configuration.ConfigurationManager.AppSettings["StampaClassificazioneInEtichetta"];
            if (classificazioneInEtichetta != null)
            {
                switch (classificazioneInEtichetta)
                {
                case "1":                         // stampa il codice classifica In Etichetta
                    classificaPrimaria = getClassificaPrimaria();
                    break;

                default:
                    //massimo digregorio, non necessario se l'assegnazione avviene in dichiarazione. old: classificaPrimaria = String.Empty;
                    break;
                }
            }
            this.hd_classifica.Value = classificaPrimaria;

            #endregion parametro Classifica Primaria

            #region parametro Fascicolo primario

            string fascicoloInEtichetta = System.Configuration.ConfigurationManager.AppSettings["StampaFascicoloInEtichetta"];
            if (fascicoloInEtichetta != null)
            {
                switch (fascicoloInEtichetta)
                {
                case "1":                         // stampa il codice fascicolo In Etichetta
                    this.hd_fascicolo.Value = this.GetCodiceFascicolo();
                    break;

                default:
                    this.hd_fascicolo.Value = String.Empty;
                    break;
                }
            }

            #endregion parametro Fascicolo primario

            #region patch per cuneo

            string descAmministrInEtichetta = System.Configuration.ConfigurationManager.AppSettings["StampaDescrizioneAmministrazioneInEtichetta"];
            if (descAmministrInEtichetta != null)
            {
                switch (descAmministrInEtichetta)
                {
                case "1":                         // Stampa Descrizione Amministrazione In Etichetta
                    this.hd_amministrazioneEtichetta.Value = descAmm;
                    break;

                default:
                    this.hd_amministrazioneEtichetta.Value = String.Empty;
                    break;
                }
            }

            //aggiuto tag Hidden "hd_desAmministrazione" per ActiveX di stampa

            /* se parametro esiste ed a 0, a hd_desAmministrazione viene assegnata la classifica
             * se parametro non esiste o esiste <> 0, a hd_desAmministrazione viene assegnata la descrizione dell'amministrazione
             */
            bool BarCodeConAmministrazione = true;
            DocsPAWA.DocsPaWR.Configurazione visualizzaClassificaSopraBarCode = UserManager.getParametroConfigurazione(this.Page);

            if (visualizzaClassificaSopraBarCode != null)
            {
                if (visualizzaClassificaSopraBarCode.valore.Equals("0"))
                {
                    BarCodeConAmministrazione = false;
                }
            }

            if (BarCodeConAmministrazione)
            {
                this.hd_descrizioneAmministrazione.Value = descAmm;
            }
            else
            {
                this.hd_descrizioneAmministrazione.Value = classificaPrimaria;
            }

            #endregion patch per cuneo

            #region parametro URL File di configurazione Dispositivo di Stampa

            this.hd_UrlIniFileDispositivo.Value = ConfigSettings.getKey(ConfigSettings.KeysENUM.URL_INIFILE_DISPOSITIVO_STAMPA);

            #endregion parametro URL File di configurazione Dispositivo di Stampa

            #region parametri scheda Documento

            this.hd_signature.Value        = schedaDocumento.protocollo.segnatura;
            this.hd_num_doc.Value          = schedaDocumento.docNumber;
            this.hd_dataCreazione.Value    = schedaDocumento.dataCreazione;
            this.hd_codiceUoCreatore.Value = schedaDocumento.creatoreDocumento.uo_codiceCorrGlobali;

            //CAMBIA l'ETICHETTA PER LA STAMPA A SECONDA DEL VALORE SETTATO IN AMMINISTRAZIONE
            DocsPAWA.DocsPaWR.InfoUtente       infoUser = new DocsPAWA.DocsPaWR.InfoUtente();
            DocsPAWA.DocsPaWR.Utente           utente   = DocsPAWA.UserManager.getUtente();
            DocsPAWA.DocsPaWR.DocsPaWebService wws      = new DocsPAWA.DocsPaWR.DocsPaWebService();
            DocsPAWA.DocsPaWR.EtichettaInfo[]  eti      = wws.getEtichetteDocumenti(infoUser, utente.idAmministrazione);

            if (schedaDocumento.tipoProto.Equals("A"))
            {
                this.hd_tipo_proto.Value = eti[0].Descrizione;
            }
            else
            {
                if (schedaDocumento.tipoProto.Equals("P"))
                {
                    this.hd_tipo_proto.Value = this.hd_tipo_proto.Value = eti[1].Descrizione;
                }
                else
                {
                    this.hd_tipo_proto.Value = this.hd_tipo_proto.Value = eti[2].Descrizione;
                }
            }
            //this.hd_tipo_proto.Value = schedaDocumento.tipoProto;

            this.hd_coduo_proto.Value = String.Empty;            //è gestito sul db e sull'oggetto ruolo utente attuale, ma non nell'oggetto schedaDocumento;

            if (schedaDocumento.registro != null)
            {
                this.hd_codreg_proto.Value  = schedaDocumento.registro.codRegistro;
                this.hd_descreg_proto.Value = schedaDocumento.registro.descrizione;
            }

            if (schedaDocumento.protocollo != null)
            {
                //Celeste
                //this.hd_num_proto.Value = schedaDocumento.protocollo.numero;
                this.hd_num_proto.Value = Utils.formatProtocollo(schedaDocumento.protocollo.numero);
                //Fine Celeste
                this.hd_anno_proto.Value = schedaDocumento.protocollo.anno;

                if (abilita_multi_stampa_etichetta.Equals("1"))
                {
                    this.hd_data_proto.Value = Utils.dateLength(schedaDocumento.protocollo.dataProtocollazione);
                }
                else if (schedaDocumento.oraCreazione != null && schedaDocumento.oraCreazione != "")
                {
                    this.hd_data_proto.Value = Utils.dateLength(schedaDocumento.protocollo.dataProtocollazione) + " " + Utils.timeLength(schedaDocumento.oraCreazione);
                }
                else
                {
                    this.hd_data_proto.Value = Utils.dateLength(schedaDocumento.protocollo.dataProtocollazione);
                }

                //massimo digregorio new:
                if (schedaDocumento.protocollatore != null)
                {
                    this.hd_coduo_proto.Value = schedaDocumento.protocollatore.uo_codiceCorrGlobali;
                }
            }

            if (!string.IsNullOrEmpty(schedaDocumento.oraCreazione))
            {
                this.hd_ora_creazione.Value = Utils.timeLength(schedaDocumento.oraCreazione);
                this.hd_ora_creazione.Value = this.hd_ora_creazione.Value.Substring(0, 5);
            }
            #endregion parametri scheda Documento

            #region stampa multipla etichetta
            //preparo gli attributi per il numero di stampe effettuate finora e da effettuare ora
            if (abilita_multi_stampa_etichetta.Equals("1"))
            {
                if (!string.IsNullOrEmpty(txt_num_stampe))
                {
                    this.hd_num_stampe.Value = txt_num_stampe;
                }
                else
                {
                    this.hd_num_stampe.Value = "1";
                }
                // recupero il valore di stampa corrente da inserire nella  successiva etichetta da stampare
                int num_stampe_eff;
                if (!String.IsNullOrEmpty(schedaDocumento.protocollo.stampeEffettuate))
                {
                    num_stampe_eff = Convert.ToInt32(schedaDocumento.protocollo.stampeEffettuate) + 1;
                    this.hd_num_stampe_effettuate.Value = num_stampe_eff.ToString();
                }
                else
                {
                    this.hd_num_stampe_effettuate.Value = "1";
                }
            }
            else
            {
                this.hd_num_stampe.Value            = "1";
                this.hd_num_stampe_effettuate.Value = "1";
            }
            #endregion stampa multipla etichetta

            #region parametri Allegati (a partire dalla versione 3.5.0)

            this.hd_numeroAllegati.Value = schedaDocumento.allegati.Length.ToString();

            #endregion
        }
Ejemplo n.º 24
0
        /// <summary>
        /// LoadDataGrid
        /// </summary>
        public void LoadDataGrid()
        {
            XmlDocument xmlDoc = new XmlDocument();
            DataRow     row;

            try
            {
                AmmUtils.WebServiceLink ws = new AmmUtils.WebServiceLink();
                string xmlStream           = ws.GetXmlLog(AmmUtils.UtilsXml.GetAmmDataSession((string)Session["AMMDATASET"], "0"));

                if (xmlStream != null && xmlStream != "")
                {
                    XmlDocument doc = new XmlDocument();
                    doc.LoadXml(xmlStream);

                    //XmlNode listaAzioni = doc.SelectSingleNode("AMMINISTRAZIONE");
                    XmlNode listaAzioni = doc.SelectSingleNode("NewDataSet");
                    if (listaAzioni.ChildNodes.Count > 0)
                    {
                        IniDataSet();
                        foreach (XmlNode azione in listaAzioni.ChildNodes)
                        {
                            //carica il dataset
                            row = dataSet.Tables[0].NewRow();
                            row["descrizione"] = azione.ChildNodes[1].InnerText;
                            row["oggetto"]     = azione.ChildNodes[2].InnerText;
                            if (azione.ChildNodes[4].InnerText == "1")
                            {
                                row["attivo"] = "true";
                            }
                            else
                            {
                                row["attivo"] = "false";
                            }
                            row["codice"] = azione.ChildNodes[0].InnerText;

                            //campi per gestione notifica evento
                            row["notify"]       = azione.ChildNodes[5].InnerText;
                            row["notification"] = azione.ChildNodes[6].InnerText;
                            row["configurable"] = azione.ChildNodes[7].InnerText;
                            dataSet.Tables["AZIONI"].Rows.Add(row);
                        }

                        DataView dv = dataSet.Tables["AZIONI"].DefaultView;
                        dv.Sort = "oggetto ASC, descrizione ASC";
                        dg_AbilitaLog.DataSource = dv;
                        dg_AbilitaLog.DataBind();


                        //MEV CONS 1.3
                        //se la chiave PGU_FE_DISABLE_AMM_GEST_CONS è abilitata
                        //i log conservazione sono nascosti
                        // INTEGRAZIONE PITRE-PARER
                        // I log conservazione sono nascosti se è attiva la conservazione PARER
                        for (int i = 0; i < dg_AbilitaLog.Items.Count; i++)
                        {
                            if (((this.DisableAmmGestCons() || this.IsConservazionePARER()) && (dg_AbilitaLog.Items[i].Cells[0].Text == "CONSERVAZIONE" || dg_AbilitaLog.Items[i].Cells[0].Text == "AREA_CONSERVAZIONE")))
                            {
                                dg_AbilitaLog.Items[i].Visible = false;
                            }

                            // INTEGRAZIONE PITRE-PARER
                            // filtro aggiuntivo per i log di invio in conservazione non associati agli oggetti CONSERVAZIONE ed AREA CONSERVAZIONE
                            if (this.IsConservazionePARER() && (
                                    dg_AbilitaLog.Items[i].Cells[1].Text.Equals("Invio in conservazione del documento") ||
                                    dg_AbilitaLog.Items[i].Cells[1].Text.Equals("Documento inserito in conservazione") ||
                                    dg_AbilitaLog.Items[i].Cells[1].Text.Equals("Fascicolo inserito in conservazione")
                                    ))
                            {
                                dg_AbilitaLog.Items[i].Visible = false;
                            }
                        }
                    }
                    else
                    {
                        IniDataSet();
                        btn_modifica.Visible = false;
                    }
                }
                else
                {
                    lbl_tit.Text         = "ATTENZIONE! il file XML dei log è vuoto!";
                    btn_modifica.Visible = false;
                }
            }
            catch
            {
                lbl_tit.Text         = "ATTENZIONE! errore nel caricamento del file XML dei log!";
                btn_modifica.Visible = false;
            }
        }
Ejemplo n.º 25
0
 /// <summary>
 /// Reperimento dati dalla tabella Project
 /// </summary>
 /// <param name="campo"></param>
 /// <param name="condizione"></param>
 /// <returns></returns>
 public string getDataFromProject(string campo, string condizione)
 {
     AmmUtils.WebServiceLink ws = new AmmUtils.WebServiceLink();
     return(ws.GetDataFromProject(campo, condizione));
 }
Ejemplo n.º 26
0
 public static bool insSysExtAfterAssoc(string idAmm, string codUtente, string codRuolo, string descrizione)
 {
     AmmUtils.WebServiceLink ws = new AmmUtils.WebServiceLink();
     return(ws.InsSysExtAfterAssoc(idAmm, codUtente, codRuolo, descrizione));
 }
Ejemplo n.º 27
0
 public static DocsPaWR.SistemaEsterno[] getSistemiEsterni(string idAmm)
 {
     AmmUtils.WebServiceLink ws = new AmmUtils.WebServiceLink();
     return(ws.getSistemiEsterni(idAmm));
 }
Ejemplo n.º 28
0
 private DocsPAWA.DocsPaWR.OrgNodoTitolario[] GetNodiTitolario(string idParentTitolario, string idRegistro)
 {
     AmmUtils.WebServiceLink ws = new AmmUtils.WebServiceLink();
     return(ws.AmmGetNodiTitolario(AmmUtils.UtilsXml.GetAmmDataSession((string)Session["AMMDATASET"], "0"), idParentTitolario, idRegistro));
 }
Ejemplo n.º 29
0
        private void Page_Load(object sender, System.EventArgs e)
        {
            //----- CONTROLLO DELL'UTENTE AMMINISTRATORE CONNESSO -----------
            if (Session.IsNewSession)
            {
                Response.Redirect("../Exit.aspx?FROM=EXPIRED");
            }

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

            btn_chiudi.Attributes.Add("onclick", "javascript: window.close();");
            //Response.AddHeader("refresh", "15;URL=StatoConnUtenti.aspx");

            string codAmm = AmmUtils.UtilsXml.GetAmmDataSession((string)Session["AMMDATASET"], "0");

            try
            {
                if (Request.QueryString["loopOn"] == null || Request.QueryString["loopOn"] == Boolean.TrueString)
                {
                    // Chiamata asincrona al WS

                    string xmlStream = ws.ElencoUtentiConnessi(codAmm);

                    if (xmlStream != null && xmlStream != "")
                    {
                        string theHtml = "";

                        int numUtenti = ws.NumeroUtentiConnessi(codAmm);
                        if (numUtenti != 0)
                        {
                            theHtml += "Ci sono " + numUtenti + " Utenti connessi<br /><br />";
                        }

                        theHtml += "<table 'width=100%' class='contenitore' cellSpacing='0' cellPadding='2' align='center' BorderColor='Gray' border='1'>";
                        theHtml += "<tr bgcolor='#810D06'>";
                        theHtml += "<td align='center' class='menu_1_bianco_dg'>Utente</td>";
                        theHtml += "<td align='center' class='menu_1_bianco_dg'>Connesso dal</td>";
                        theHtml += "<td align='center' class='menu_1_bianco_dg'>Sconnetti</td></tr>";

                        XmlDocument doc = new XmlDocument();
                        doc.LoadXml(xmlStream);

                        /* struttura dell'XML:
                         *
                         * <UTENTI>
                         *		<UTENTE>
                         *			<USER_ID />
                         *			<DESCRIZIONE />
                         *			<DATAORA />
                         *		</UTENTE>
                         *		<UTENTE />
                         *		...
                         *		...
                         * </UTENTI>
                         */

                        //pulisce la lista
                        this.outputArea.InnerHtml = null;

                        XmlNode utenti = doc.SelectSingleNode("UTENTI");
                        if (utenti != null)
                        {
                            foreach (XmlNode utente in utenti)
                            {
                                theHtml += "<tr><td class='testo_grigio_scuro'>" + utente.ChildNodes[0].InnerText + " - " + utente.ChildNodes[1].InnerText + "</td>";
                                theHtml += "<td class='testo_grigio_scuro' align='center'>" + utente.ChildNodes[2].InnerText + "</td>";
                                theHtml += "<td class='testo_grigio_scuro' align='center'><a href='StatoConnUtenti.aspx?loopOn=" + Boolean.FalseString + "&user_id=" + utente.ChildNodes[0].InnerText + "' alt='Sconnetti utente " + utente.ChildNodes[1].InnerText + "'><img src='../Images/chiudi.gif' border='0'></a></td></tr>";
                            }
                        }
                        theHtml += "</table>";
                        this.outputArea.InnerHtml = theHtml;
                    }
                }
                else
                {
                    // chiamata sincrona

                    string theUserId = Request.QueryString["user_id"];
                    if (!ws.DisconnettiUtente(codAmm, theUserId))
                    {
                        lbl_msg.Text = "Errore nella disconnessione dell'utente.";
                    }
                    //this.Response.Redirect("StatoConnUtenti.aspx?loopOn=" + Boolean.TrueString);
                    if (!this.Page.IsStartupScriptRegistered("redirectJS"))
                    {
                        string scriptString = "<SCRIPT>window.location.href = 'StatoConnUtenti.aspx?loopOn=" + Boolean.TrueString + "';</SCRIPT>";
                        this.Page.RegisterStartupScript("redirectJS", scriptString);
                    }
                }
            }
            catch (Exception exception)
            {
                System.Diagnostics.Debug.Write("Errore nella lettura stato utenti connessi.\n" + exception.ToString());
                lbl_msg.Text = "Errore nella lettura stato utenti connessi.";
            }
        }
Ejemplo n.º 30
0
 public static DocsPaWR.MetodoPIS[] getPISMethods()
 {
     AmmUtils.WebServiceLink ws = new AmmUtils.WebServiceLink();
     return(ws.getPISMethods());
 }