/// <summary> /// Aggiornamento di una chiave /// </summary> /// <param name="tipoRuolo"></param> /// <returns></returns> private DocsPAWA.DocsPaWR.ValidationResultInfo UpdateChiaveConfig(ref DocsPAWA.DocsPaWR.ChiaveConfigurazione chiaveConfig) { //Undo Modifiche Lorusso 22-10-2012 ////DocsPaWR.DocsPaWebService ws = new DocsPAWA.DocsPaWR.DocsPaWebService(); AmmUtils.WebServiceLink wsl = new AmmUtils.WebServiceLink(); return(wsl.updateChiaveConfig(chiaveConfig)); //End Undo //DocsPaWR.DocsPaWebService ws = new DocsPAWA.DocsPaWR.DocsPaWebService(); //return ws.updateChiaveConfig(chiaveConfig); }
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 // } }