コード例 #1
0
ファイル: UtentiManager.cs プロジェクト: sebbalex/PITre
        private void AmmModUtente(SAAdminTool.DocsPaWR.OrgUtente utente, string idAmminstrazione)
        {
            AmmUtils.WebServiceLink ws = new AmmUtils.WebServiceLink();
            this._esitoOperazione = ws.AmmModUtente(utente, idAmminstrazione);

            ws = null;
        }
コード例 #2
0
ファイル: UtentiManager.cs プロジェクト: sebbalex/PITre
        private void AmmEliminaUtente(SAAdminTool.DocsPaWR.OrgUtente utente)
        {
            AmmUtils.WebServiceLink ws = new AmmUtils.WebServiceLink();
            this._esitoOperazione = ws.AmmEliminaUtente(utente);

            ws = null;
        }
コード例 #3
0
ファイル: UtentiManager.cs プロジェクト: sebbalex/PITre
        private void AmmInsUtente(SAAdminTool.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;
        }
コード例 #4
0
ファイル: UtentiManager.cs プロジェクト: sebbalex/PITre
        /// <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;
        }
コード例 #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();
                    SAAdminTool.DocsPaWR.OrgUtente utente = ws.AmmGetDatiUtente(idCorrGlob);
                    //End Andrea De Marco
                    InitializeDataSetMenu();
                    DataRow row;
                    int     i = 1;
                    foreach (SAAdminTool.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))
                        {
                            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");
            }
        }
コード例 #6
0
ファイル: UtentiManager.cs プロジェクト: sebbalex/PITre
 public void ModUtente(SAAdminTool.DocsPaWR.OrgUtente utente, string idAmministrazione)
 {
     this.AmmModUtente(utente, idAmministrazione);
 }
コード例 #7
0
ファイル: UtentiManager.cs プロジェクト: sebbalex/PITre
 public void VerificaEliminazioneUtente(SAAdminTool.DocsPaWR.OrgUtente utente)
 {
     this.AmmVerificaEliminazioneUtente(utente);
 }
コード例 #8
0
ファイル: UtentiManager.cs プロジェクト: sebbalex/PITre
 public void EliminaUtente(SAAdminTool.DocsPaWR.OrgUtente utente)
 {
     this.AmmEliminaUtente(utente);
 }
コード例 #9
0
ファイル: UtentiManager.cs プロジェクト: sebbalex/PITre
 public void InsUtente(SAAdminTool.DocsPaWR.OrgUtente utente, string idAmm)
 {
     this.AmmInsUtente(utente, idAmm);
 }