Example #1
0
        private void AmmModUtente(DocsPAWA.DocsPaWR.OrgUtente utente, string idAmminstrazione)
        {
            AmmUtils.WebServiceLink ws = new AmmUtils.WebServiceLink();
            this._esitoOperazione = ws.AmmModUtente(utente, idAmminstrazione);

            ws = null;
        }
Example #2
0
        private void AmmEliminaUtente(DocsPAWA.DocsPaWR.OrgUtente utente)
        {
            AmmUtils.WebServiceLink ws = new AmmUtils.WebServiceLink();
            this._esitoOperazione = ws.AmmEliminaUtente(utente);

            ws = null;
        }
Example #3
0
        private void AmmInsUtente(DocsPAWA.DocsPaWR.OrgUtente utente, string idAmm)
        {
            //string idAmm = AmmUtils.UtilsXml.GetAmmDataSession((string)Session["AMMDATASET"], "3");
            AmmUtils.WebServiceLink ws = new AmmUtils.WebServiceLink();
            this._esitoOperazione = ws.AmmInsUtente(utente, idAmm);

            ws = null;
        }
Example #4
0
        /// <summary>
        /// Dati utente
        /// </summary>
        /// <param name="idCorrGlob"></param>
        private void AmmGetDatiUtente(string idCorrGlob)
        {
            AmmUtils.WebServiceLink ws = new AmmUtils.WebServiceLink();

            this._datiUtente = ws.AmmGetDatiUtente(idCorrGlob);

            ws = null;
        }
Example #5
0
        private void GetListaMenu(string idAmm, string idCorrGlob)
        {
            try
            {
                Amministrazione.Manager.UtentiManager theManager = new Amministrazione.Manager.UtentiManager();
                theManager.MenuUtente(idCorrGlob, idAmm);
                if (theManager.getMenuUtente() != null && theManager.getMenuUtente().Count > 0)
                {
                    /* Andrea De Marco - Recupero utente per verificare i diritti di Amministratore:
                     * 1: System Administrator
                     * 0: No Administrator
                     * 2: Super Administrator
                     * 3: User Administrator
                     */
                    DocsPaWR.DocsPaWebService   ws     = new DocsPaWR.DocsPaWebService();
                    DocsPAWA.DocsPaWR.OrgUtente utente = ws.AmmGetDatiUtente(idCorrGlob);
                    //End Andrea De Marco
                    InitializeDataSetMenu();
                    DataRow row;
                    int     i = 1;
                    foreach (DocsPAWA.DocsPaWR.Menu VoceMenu in theManager.getMenuUtente())
                    {
                        //Andrea De Marco - Solo in caso di System Administrator deve essere visibile la Gestione Chiavi di Configurazione.
                        if (utente != null && !string.IsNullOrEmpty(utente.Amministratore) && !utente.Amministratore.Equals("1"))
                        {
                            if ((!string.IsNullOrEmpty(VoceMenu.Codice) && VoceMenu.Codice.Equals("Gestione Chiavi Config")) ||
                                (!string.IsNullOrEmpty(VoceMenu.IDMenu) && VoceMenu.IDMenu.Equals("24")))
                            {
                                continue;
                            }
                        }
                        //End Andrea De Marco
                        //controllo il valore delle voci di menĂ¹ che non devono essere viste
                        if (isMenuVisibile(VoceMenu.Visibilita))
                        {
                            if (VoceMenu.Codice.ToUpper().Equals("FE_ABILITA_POLICY_CONSERVAZIONE"))
                            {
                                if (this.IsConservazionePARER())
                                {
                                    continue;
                                }
                            }
                            if (VoceMenu.Codice.ToUpper().Equals("GESTIONE POLICY PARER"))
                            {
                                if (!this.IsConservazionePARER())
                                {
                                    continue;
                                }
                            }
                            row                      = dsMenu.Tables[0].NewRow();
                            row["IDMenu"]            = VoceMenu.IDMenu;
                            row["Codice"]            = VoceMenu.Codice;
                            row["Descrizione"]       = VoceMenu.Descrizione;
                            row["IDAmministrazione"] = idAmm;
                            row["IDCorrGlob"]        = idCorrGlob;
                            if (VoceMenu.Associato != null && VoceMenu.Associato != String.Empty)
                            {
                                row["Sel"] = "true";
                            }
                            else
                            {
                                row["Sel"] = "false";
                            }

                            dsMenu.Tables["MENU"].Rows.Add(row);
                            i++;
                        }
                    }

                    DataView dv = dsMenu.Tables["MENU"].DefaultView;
                    //dv.Sort = "Descrizione ASC";
                    this.dg_menu.DataSource = dv;
                    this.dg_menu.DataBind();

                    this.GUI("Ok");
                }
                else
                {
                    this.GUI("NoDataFound");
                }
            }
            catch
            {
                this.GUI("Errore");
            }
        }
Example #6
0
 public void ModUtente(DocsPAWA.DocsPaWR.OrgUtente utente, string idAmministrazione)
 {
     this.AmmModUtente(utente, idAmministrazione);
 }
Example #7
0
 public void VerificaEliminazioneUtente(DocsPAWA.DocsPaWR.OrgUtente utente)
 {
     this.AmmVerificaEliminazioneUtente(utente);
 }
Example #8
0
 public void EliminaUtente(DocsPAWA.DocsPaWR.OrgUtente utente)
 {
     this.AmmEliminaUtente(utente);
 }
Example #9
0
 public void InsUtente(DocsPAWA.DocsPaWR.OrgUtente utente, string idAmm)
 {
     this.AmmInsUtente(utente, idAmm);
 }