private void AmmModUtente(SAAdminTool.DocsPaWR.OrgUtente utente, string idAmminstrazione) { AmmUtils.WebServiceLink ws = new AmmUtils.WebServiceLink(); this._esitoOperazione = ws.AmmModUtente(utente, idAmminstrazione); ws = null; }
private void AmmEliminaUtente(SAAdminTool.DocsPaWR.OrgUtente utente) { AmmUtils.WebServiceLink ws = new AmmUtils.WebServiceLink(); this._esitoOperazione = ws.AmmEliminaUtente(utente); ws = null; }
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; }
/// <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; }
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"); } }
public void ModUtente(SAAdminTool.DocsPaWR.OrgUtente utente, string idAmministrazione) { this.AmmModUtente(utente, idAmministrazione); }
public void VerificaEliminazioneUtente(SAAdminTool.DocsPaWR.OrgUtente utente) { this.AmmVerificaEliminazioneUtente(utente); }
public void EliminaUtente(SAAdminTool.DocsPaWR.OrgUtente utente) { this.AmmEliminaUtente(utente); }
public void InsUtente(SAAdminTool.DocsPaWR.OrgUtente utente, string idAmm) { this.AmmInsUtente(utente, idAmm); }