private void ChangePasswordOperation(bool multiAdministrator = false) { DocsPaWR.ValidationResultInfo result = null; if (!multiAdministrator) { result = LoginManager.UserChangePassword(LoginManager.CreateUserLoginCurrentUser(this.TxtConfirmPassword.Text, false), string.Empty); } else { result = LoginManager.UserChangePassword(LoginManager.CreateUserLoginCurrentUser(this.hdnMultiAdmNewPass.Value.ToString(), true), string.Empty); } string errorMessage = string.Empty; if (!result.Value) { errorMessage = result.BrokenRules[0].Description; for (int i = 1; result.BrokenRules.Count() > i; i++) { errorMessage += " - " + result.BrokenRules[i].Description; } //ScriptManager.RegisterStartupScript(this, this.GetType(), "ajaxDialogModal3", "ajaxDialogModal('ErrorChangePassword', 'error', '','" + errorMessage + "');", true); ScriptManager.RegisterStartupScript(this, this.GetType(), "ajaxDialogModal3", "if (parent.fra_main) {parent.fra_main.ajaxDialogModal('ErrorChangePassword', 'error', '','" + HttpUtility.UrlEncode(errorMessage) + "');} else {parent.parent.ajaxDialogModal('ErrorChangePassword', 'error', '','" + HttpUtility.UrlEncode(errorMessage) + "');}", true); } else { UserLogin ut = LoginManager.CreateUserLoginCurrentUser(this.TxtConfirmPassword.Text, true); // Il metodo utilizzato di seguito CANCELLA le password se non è presente un utente con id_amm = 0, quindi lo tolgo //if (multiAdministrator) //{ // this.ModificaPasswordUtenteMultiAmm(ut.UserName.ToUpper(), ut.IdAmministrazione); //} ScriptManager.RegisterStartupScript(this, this.GetType(), "ajaxDialogModal2", "if (parent.fra_main) {parent.fra_main.ajaxDialogModal('CheckChangePassword', 'check');} else {parent.parent.ajaxDialogModal('CheckChangePassword', 'check');}", true); //ScriptManager.RegisterStartupScript(this, this.GetType(), "ajaxDialogModal2", "ajaxDialogModal('CheckChangePassword', 'check', '','');", true); } }
/// <summary> /// Validazione dati correnti /// </summary> /// <param name="firstInvalidControl"></param> /// <returns></returns> private DocsPaWR.ValidationResultInfo ValidateData(out Control firstInvalidControl) { List <DocsPaWR.BrokenRule> brokenRuleList = new List <DocsPaWR.BrokenRule>(); DocsPaWR.ValidationResultInfo retValue = new DocsPaWR.ValidationResultInfo(); firstInvalidControl = null; bool almostOneChecked = false; foreach (DataGridItem item in this.grdDocumentiFascicolazione.Items) { HtmlInputCheckBox chkDocumentoCartaceo = this.GetCheckDocumentoCartaceo(item); HtmlInputCheckBox chkInsFascCartaceo = this.GetCheckInsFascCartaceo(item); almostOneChecked = (!chkDocumentoCartaceo.Disabled && chkDocumentoCartaceo.Checked || chkInsFascCartaceo.Checked); if (almostOneChecked) { firstInvalidControl = null; break; } else if (firstInvalidControl == null) { firstInvalidControl = chkDocumentoCartaceo; } } if (!almostOneChecked) { DocsPaWR.BrokenRule brokenRule = new DocsPaWR.BrokenRule(); brokenRule.ID = "NESSUN_DOCUMENTO_SELEZIONATO"; brokenRule.Description = "Nessun documento selezionato"; brokenRule.Level = DocsPaWR.BrokenRuleLevelEnum.Error; brokenRuleList.Add(brokenRule); } retValue.BrokenRules = brokenRuleList.ToArray(); retValue.Value = (retValue.BrokenRules.Length == 0); return(retValue); }
/// <summary> /// /// </summary> /// <param name="validationItems"></param> /// <param name="firstInvalidControl"></param> /// <returns></returns> protected DocsPaWR.ValidationResultInfo ValidateFilters(out Control firstInvalidControl) { List <DocsPaWR.BrokenRule> brokenRules = new List <DocsPaWR.BrokenRule>(); DocsPaWR.ValidationResultInfo result = new DocsPaWR.ValidationResultInfo(); firstInvalidControl = null; if (this.SnapshotId == -1) { // Validazione tipo documento if (!this.chkDocumentiGrigi.Checked && !this.chkProtocolliIngresso.Checked && !this.chkProtocolliInterno.Checked && !this.chkProtocolliPartenza.Checked) { brokenRules.Add(this.CreateBrokenRule("TIPO_DOCUMENTO", "Tipo documento non impostato")); firstInvalidControl = this.chkProtocolliIngresso; } // Validazione data creazione if (this.GetCalendarControl("txtInitDataCreazione").txt_Data.Text.Trim() == string.Empty) { brokenRules.Add(this.CreateBrokenRule("DATA_CREAZIONE", "Data creazione non impostata")); if (firstInvalidControl == null) { firstInvalidControl = this.GetCalendarControl("txtInitDataCreazione").txt_Data; } } else if (!this.IsValidDate(this.GetCalendarControl("txtInitDataCreazione").txt_Data)) { brokenRules.Add(this.CreateBrokenRule("DATA_CREAZIONE", "Data creazione non valida")); if (firstInvalidControl == null) { firstInvalidControl = this.GetCalendarControl("txtInitDataCreazione").txt_Data; } } // this.ValidateDateRange("Data creazione", this.txtInitDataCreazione, this.txtEndDataCreazione, brokenRules, ref firstInvalidControl); } result.BrokenRules = (brokenRules.ToArray()); result.Value = (result.BrokenRules.Length == 0); return(result); }
/// <summary> /// Operazione di scarto di un documento non cartaceo /// </summary> /// <param name="documento"></param> protected void DiscardDocument(DocsPaWR.DocumentoFascicolazione documento) { if (!documento.Cartaceo) { int fascicoliScartati; DocsPaWR.ValidationResultInfo result = this.WebServiceInstance.FascCartaceaScartaDocumentoNonCartaceo(this.InfoUtente, this.IdSnapshot, documento, out fascicoliScartati); if (!result.Value) { // Operazione non andata a buon fine, visualizzazione del messaggio di errore this.ShowValidationMessage(result.BrokenRules); } else { this.TotalRecordCount -= fascicoliScartati; // Se almeno un documento è stato inserito in fascicolo cartaceo, // vengono ricaricati i documenti per la pagina corrente int page = this.grdDocumentiFascicolazione.CurrentPageIndex + 1; if (page > 1) { int newPageCount = (this.TotalRecordCount / this.grdDocumentiFascicolazione.PageSize); if ((this.TotalRecordCount % this.grdDocumentiFascicolazione.PageSize) > 0) { newPageCount++; } if (page > newPageCount) { this.grdDocumentiFascicolazione.CurrentPageIndex = newPageCount - 1; } } this.Fetch(); } } }
/// <summary> /// /// </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) { // Inserimento nuova password DocsPaWR.DocsPaWebService ws = new DocsPAWA.DocsPaWR.DocsPaWebService(); DocsPaWR.ValidationResultInfo result = ws.UserChangePassword(this.CreateUserLogin(), this.OldPassword); retValue = (result.Value); if (!retValue) { failDetails = result.BrokenRules[0].Description; } } return(retValue); }
/// <summary> /// Azione di ricerca /// </summary> private void PerformSearch() { Control firstInvalidControl; DocsPaWR.ValidationResultInfo result = this.ValidateFilters(out firstInvalidControl); if (result.Value) { // Impostazione filtri correnti SessionManager.Filtri = this.GetCurrentFilters(); this.DocumentiFascicolazione1.Search(this.SnapshotId); } else { this.ShowValidationMessage(result.BrokenRules); if (firstInvalidControl != null) { // impostazione del focus sul primo controllo non valido firstInvalidControl.Focus(); } } }
/// <summary> /// Save dei documenti selezionati /// </summary> public void Save() { DocsPaWR.ValidationResultInfo result = null; Control firstInvalidControl; result = this.ValidateData(out firstInvalidControl); if (result.Value) { List <DocsPaWR.DocumentoFascicolazione> dirtyDocuments = new List <DocsPaWR.DocumentoFascicolazione>(); foreach (DataGridItem item in this.grdDocumentiFascicolazione.Items) { HtmlInputCheckBox chkDocumentoCartaceo = this.GetCheckDocumentoCartaceo(item); HtmlInputCheckBox chkInsFascCartaceo = this.GetCheckInsFascCartaceo(item); DocsPaWR.DocumentoFascicolazione documento = this.GetDocumento(item); if (chkInsFascCartaceo.Checked && !documento.InsertInFascicoloCartaceo) { // Il documento deve essere inserito in fascicolo cartaceo documento.InsertInFascicoloCartaceo = true; documento.IsDirty = true; } else if (chkDocumentoCartaceo.Checked && !documento.Cartaceo) { // Il documento ha un corrispondente documento cartaceo documento.Cartaceo = true; documento.IsDirty = true; } if (documento.IsDirty) { // Inserimento del documento tra quelli modificati dirtyDocuments.Add(documento); } } if (dirtyDocuments.Count > 0) { DocsPaWR.DocumentoFascicolazione[] documenti = dirtyDocuments.ToArray(); result = this.WebServiceInstance.FascCartaceaSaveDocumentiFascicolazione(this.InfoUtente, this.IdSnapshot, ref documenti); // Verifica del numero di documenti inseriti in fascicolo cartaceo int countInserted = 0; foreach (DocsPaWR.DocumentoFascicolazione documento in documenti) { if (documento.IdFascicolazione > 0) { countInserted++; } } // Visualizzazione messaggi di errore if (result.BrokenRules.Length > 0) { this.ShowValidationMessage(result.BrokenRules); } if (countInserted > 0) { // Se il numero di documenti inseriti in fascicolo cartaceo è > 0, // è necessario ricaricare la lista dei documenti per la pagina dal server this.TotalRecordCount -= countInserted; // Se almeno un documento è stato inserito in fascicolo cartaceo, // vengono ricaricati i documenti per la pagina corrente int page = this.grdDocumentiFascicolazione.CurrentPageIndex + 1; if (page > 1) { int newPageCount = (this.TotalRecordCount / this.grdDocumentiFascicolazione.PageSize); if ((this.TotalRecordCount % this.grdDocumentiFascicolazione.PageSize) > 0) { newPageCount++; } if (page > newPageCount) { this.grdDocumentiFascicolazione.CurrentPageIndex = newPageCount - 1; } } } this.Fetch(); } } else { this.ShowValidationMessage(result.BrokenRules); // impostazione del focus sul primo controllo non valido if (firstInvalidControl != null) { firstInvalidControl.Focus(); } } }
/// <summary> /// /// </summary> protected virtual void ExecuteChangePassword() { bool isUserMultiAmm = false; bool continua = true; string pwdUser = string.Empty; if (Session["ok_multiAmm"] != null) { this.txt_vecchiaPWD.Text = Session["oldPwd"].ToString(); Session.Remove("oldPwd"); this.txt_nuovaPWD.Text = Session["newPwd"].ToString(); Session.Remove("newPwd"); this.txt_confermaPWD.Text = Session["confPwd"].ToString(); Session.Remove("confPwd"); } //sono stati inseriti entrambi i campi if (this.txt_vecchiaPWD.Text.Trim().Equals(string.Empty) || this.txt_nuovaPWD.Text.Trim().Equals(string.Empty) || this.txt_confermaPWD.Text.Trim().Equals(string.Empty)) { if (!this.Page.IsStartupScriptRegistered("alertJS")) { string scriptString = "<SCRIPT>alert('Inserire valori per tutti i campi!');</SCRIPT>"; this.Page.RegisterStartupScript("alertJS", scriptString); } } else { // inserita Vecchia Password errata DocsPaWR.LoginResult loginResult; string ipaddress = ""; DocsPaWR.Utente utente = UserManager.login(this, this.CreateUserLogin(), out loginResult, out ipaddress); if (loginResult == DocsPAWA.DocsPaWR.LoginResult.UNKNOWN_USER) { if (!this.Page.IsStartupScriptRegistered("alertJS")) { string scriptString = "<SCRIPT>alert('La vecchia password risulta essere errata!');</SCRIPT>"; this.Page.RegisterStartupScript("alertJS", scriptString); } } else { // i campi sono uguali if (!this.txt_confermaPWD.Text.Trim().Equals(this.txt_nuovaPWD.Text.Trim())) { if (!this.Page.IsStartupScriptRegistered("alertJS")) { string scriptString = "<SCRIPT>alert('La nuova password e la sua conferma non coincidono!');</SCRIPT>"; this.Page.RegisterStartupScript("alertJS", scriptString); } } else { DocsPaWR.UserLogin ut = UserManager.CreateUserLoginCurrentUser(this.txt_confermaPWD.Text); isUserMultiAmm = (VerificaUtenteMultiAmministrazioneMod(ut.UserName)); if (Session["ok_multiAmm"] == null) { if (isUserMultiAmm) { //TODO SHOW ALERT MESSAGE.... continua = false; Session.Add("ok_multiAmm", ut); Session.Add("oldPwd", this.txt_vecchiaPWD.Text); Session.Add("newPwd", this.txt_nuovaPWD.Text); Session.Add("confPwd", this.txt_confermaPWD.Text); msg_modifica.Confirm("E’ presente almeno un utente con stessa UserID in un’altra amministrazione, vuoi procedere con la modifica? Attenzione: l’eventuale modifica della password verrà ereditata dagli altri utenti."); } } else { Session.Remove("ok_multiAmm"); } if (continua) { DocsPaWR.DocsPaWebService ws = new DocsPAWA.DocsPaWR.DocsPaWebService(); DocsPaWR.ValidationResultInfo result = ws.UserChangePassword(UserManager.CreateUserLoginCurrentUser(this.txt_confermaPWD.Text, true), string.Empty); if (!result.Value) { string errorMessage = result.BrokenRules[0].Description; // Se la modifica password non è andata a buon fine this.lbl_message.Text = errorMessage; //this.lbl_message.Text = "<br><font color='#ff0000'>attenzione!<br>errore durante la procedura di cambia password!</font><br>"; } else { if (isUserMultiAmm) { this.ModificaPasswordUtenteMultiAmm(ut.UserName.ToUpper(), ut.IdAmministrazione); } this.lbl_message.Text = "<br>Aggiornamento avvenuto con successo<br><br><br><br>"; this.lbl_oggetto.Visible = false; this.Label3.Visible = false; this.Label2.Visible = false; this.txt_nuovaPWD.Visible = false; this.txt_confermaPWD.Visible = false; this.txt_vecchiaPWD.Visible = false; this.btn_OK.Visible = false; } this.lbl_message.Visible = true; } } } } }
protected void btn_salva_dimensioni_Click(object sender, EventArgs e) { #region OldCode //int num_docs, dim_istanza; //if (string.IsNullOrEmpty(tb_num_docs.Text) || string.IsNullOrEmpty(tb_dim_istanza.Text) || !Int32.TryParse(tb_num_docs.Text, out num_docs) || !Int32.TryParse(tb_dim_istanza.Text, out dim_istanza)) //{ // ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "alt_valori", "alert('Inserire i valori richiesti, in formato numerico!');", true); //} //else //{ // if (configString == null) // { // configString = new DocsPaWR.ChiaveConfigurazione // { // Codice = "BE_CONSERVAZIONE_MAX_DIM_ISTANZA", // TipoChiave = "B", // IDAmministrazione = IdAmministrazione.ToString(), // Modificabile = "0", // Visibile = "0", // IsGlobale = "0", // Descrizione = "Chiave di configurazione per definire la massima dimensione delle istanze di conservazione.", // Valore = "0" // }; // DocsPaWR.DocsPaWebService ws = new DocsPAWA.DocsPaWR.DocsPaWebService(); // ws.addChiaveConfigurazione(configString); // this.Clear(IdAmministrazione.ToString()); // configString = GetChiaveConfigurazione("BE_CONSERVAZIONE_MAX_DIM_ISTANZA", IdAmministrazione.ToString()); // } // configString.Valore = string.Format("{0}§{1}", tb_num_docs.Text, tb_dim_istanza.Text); // DocsPaWR.ValidationResultInfo result = null; // result = UpdateChiaveConfig(ref configString); // if (!result.Value) // { // // this.ShowValidationMessage(result); // // // // MEV CS 1.3 - LOG Dimensione istanze // try // { // DocsPAWA.AdminTool.Manager.SessionManager sessionManager = new DocsPAWA.AdminTool.Manager.SessionManager(); // DocsPaWR.DocsPaWebService ws = new DocsPAWA.DocsPaWR.DocsPaWebService(); // ws.WriteLog(sessionManager.getUserAmmSession(), "AMM_DIMENSIONI_ISTANZE", string.Empty, "Definizione dimensioni massime istanze per Ente " + AmmUtils.UtilsXml.GetAmmDataSession((string)Session["AMMDATASET"], "0"), false); // } // catch (Exception ex) // { // } // // End MEV CS 1.3 - LOG Dimensione istanze // // // } // else // { // this.Clear(IdAmministrazione.ToString()); // // // // MEV CS 1.3 - LOG Dimensione istanze // try // { // DocsPAWA.AdminTool.Manager.SessionManager sessionManager = new DocsPAWA.AdminTool.Manager.SessionManager(); // DocsPaWR.DocsPaWebService ws = new DocsPAWA.DocsPaWR.DocsPaWebService(); // ws.WriteLog(sessionManager.getUserAmmSession(), "AMM_DIMENSIONI_ISTANZE", string.Empty, "Definizione dimensioni massime istanze per Ente " + AmmUtils.UtilsXml.GetAmmDataSession((string)Session["AMMDATASET"], "0"), true); // } // catch (Exception ex) // { // } // // End MEV CS 1.3 - LOG Dimensione istanze // // // } //} #endregion #region MEV CS 1.5 - F03_01 - NewCode int num_docs, dim_istanza, perc_Toll; if (string.IsNullOrEmpty(tb_num_docs.Text) || string.IsNullOrEmpty(tb_dim_istanza.Text) || string.IsNullOrEmpty(tb_perc.Text) || !Int32.TryParse(tb_num_docs.Text, out num_docs) || !Int32.TryParse(tb_dim_istanza.Text, out dim_istanza) || !Int32.TryParse(tb_perc.Text, out perc_Toll) ) { ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "alt_valori", "alert('Inserire i valori richiesti, in formato numerico!');", true); } else { if (configString == null) { configString = new DocsPaWR.ChiaveConfigurazione { Codice = "BE_CONSERVAZIONE_MAX_DIM_ISTANZA", TipoChiave = "B", IDAmministrazione = IdAmministrazione.ToString(), Modificabile = "0", Visibile = "0", IsGlobale = "0", Descrizione = "Chiave di configurazione per definire la massima dimensione delle istanze di conservazione.", Valore = "0" }; DocsPaWR.DocsPaWebService ws = new DocsPAWA.DocsPaWR.DocsPaWebService(); ws.addChiaveConfigurazione(configString); this.Clear(IdAmministrazione.ToString()); configString = GetChiaveConfigurazione("BE_CONSERVAZIONE_MAX_DIM_ISTANZA", IdAmministrazione.ToString()); } configString.Valore = string.Format("{0}§{1}", tb_num_docs.Text, tb_dim_istanza.Text); DocsPaWR.ValidationResultInfo result = null; result = UpdateChiaveConfig(ref configString); if (!result.Value) { // this.ShowValidationMessage(result); // // MEV CS 1.3 - LOG Dimensione istanze try { DocsPAWA.AdminTool.Manager.SessionManager sessionManager = new DocsPAWA.AdminTool.Manager.SessionManager(); DocsPaWR.DocsPaWebService ws = new DocsPAWA.DocsPaWR.DocsPaWebService(); ws.WriteLog(sessionManager.getUserAmmSession(), "AMM_DIMENSIONI_ISTANZE", string.Empty, "Definizione dimensioni massime istanze per Ente " + AmmUtils.UtilsXml.GetAmmDataSession((string)Session["AMMDATASET"], "0"), false); } catch (Exception ex) { } // End MEV CS 1.3 - LOG Dimensione istanze // } else { this.Clear(IdAmministrazione.ToString()); // // MEV CS 1.3 - LOG Dimensione istanze try { DocsPAWA.AdminTool.Manager.SessionManager sessionManager = new DocsPAWA.AdminTool.Manager.SessionManager(); DocsPaWR.DocsPaWebService ws = new DocsPAWA.DocsPaWR.DocsPaWebService(); ws.WriteLog(sessionManager.getUserAmmSession(), "AMM_DIMENSIONI_ISTANZE", string.Empty, "Definizione dimensioni massime istanze per Ente " + AmmUtils.UtilsXml.GetAmmDataSession((string)Session["AMMDATASET"], "0"), true); } catch (Exception ex) { } // End MEV CS 1.3 - LOG Dimensione istanze // } #region Percentuale di Tolleranza if (configString_percToller == null) { configString_percToller = new DocsPaWR.ChiaveConfigurazione { Codice = "BE_CONS_PERC_TOLL_MAX_DIM_IST", TipoChiave = "B", IDAmministrazione = IdAmministrazione.ToString(), Modificabile = "0", Visibile = "0", IsGlobale = "0", Descrizione = "Chiave di configurazione per definire la percentuale di tolleranza delle istanze di conservazione.", Valore = "0" }; DocsPaWR.DocsPaWebService ws = new DocsPAWA.DocsPaWR.DocsPaWebService(); ws.addChiaveConfigurazione(configString_percToller); this.Clear(IdAmministrazione.ToString()); configString_percToller = GetChiaveConfigurazione("BE_CONS_PERC_TOLL_MAX_DIM_IST", IdAmministrazione.ToString()); } if (configString_percToller != null) { configString_percToller.Valore = tb_perc.Text; DocsPaWR.ValidationResultInfo result_percToll = null; result_percToll = UpdateChiaveConfig(ref configString_percToller); if (!result_percToll.Value) { // this.ShowValidationMessage(result); } else { this.Clear(IdAmministrazione.ToString()); } } #endregion } #endregion }
protected void btn_salva_scheduler_Click(object sender, EventArgs e) { if (configString == null) { configString = new DocsPaWR.ChiaveConfigurazione { Codice = "BE_CONSERVAZIONE_AUTOTEST_JOB", TipoChiave = "B", IDAmministrazione = IdAmministrazione.ToString(), Modificabile = "0", Visibile = "0", IsGlobale = "0", Descrizione = "Chiave di configurazione per gestire i controlli automatici della conservazione", Valore = "0" }; DocsPaWR.DocsPaWebService ws = new DocsPAWA.DocsPaWR.DocsPaWebService(); ws.addChiaveConfigurazione(configString); this.Clear(IdAmministrazione.ToString()); configString = GetChiaveConfigurazione("BE_CONSERVAZIONE_AUTOTEST_JOB", IdAmministrazione.ToString()); } if (this.Enabled.Checked == false) { configString.Valore = "0"; } else { configString.Valore = GetExecutionConfigurations(); } DocsPaWR.ValidationResultInfo result = null; result = UpdateChiaveConfig(ref configString); if (!result.Value) { // this.ShowValidationMessage(result); // // MEV CS 1.3 - LOG controlli automatici try { DocsPAWA.AdminTool.Manager.SessionManager sessionManager = new DocsPAWA.AdminTool.Manager.SessionManager(); DocsPaWR.DocsPaWebService ws = new DocsPAWA.DocsPaWR.DocsPaWebService(); ws.WriteLog(sessionManager.getUserAmmSession(), "AMM_CONTROLLI_AUTOMATICI", string.Empty, "Attivazione controlli automatici per Ente " + AmmUtils.UtilsXml.GetAmmDataSession((string)Session["AMMDATASET"], "0"), false); } catch (Exception ex) { } // End MEV CS 1.3 - LOG controlli automatici // } else { // Pulizia della cache //pulizia della cache sul backend e sul frontend this.Clear(IdAmministrazione.ToString()); //ricalcolo delle chiavi //this.FillListChiaviConfig(); // // MEV CS 1.3 - LOG controlli automatici try { DocsPAWA.AdminTool.Manager.SessionManager sessionManager = new DocsPAWA.AdminTool.Manager.SessionManager(); DocsPaWR.DocsPaWebService ws = new DocsPAWA.DocsPaWR.DocsPaWebService(); ws.WriteLog(sessionManager.getUserAmmSession(), "AMM_CONTROLLI_AUTOMATICI", string.Empty, "Attivazione controlli automatici per Ente " + AmmUtils.UtilsXml.GetAmmDataSession((string)Session["AMMDATASET"], "0"), true); } catch (Exception ex) { } // End MEV CS 1.3 - LOG controlli automatici // } }