//Restituisce la lista delle deleghe assegnate da un dato utente public static SAAdminTool.DocsPaWR.InfoDelega[] GetListaDeleghe(Page page, string tipoDelega, string statoDelega, string idAmm, out int numDeleghe) { numDeleghe = 0; SAAdminTool.DocsPaWR.InfoDelega[] deleghe = null; try { SAAdminTool.DocsPaWR.InfoUtente infoUtente = null; if (tipoDelega != "tutte") { infoUtente = UserManager.getInfoUtente(page); } deleghe = docsPaWS.DelegaGetLista(infoUtente, tipoDelega, statoDelega, idAmm, out numDeleghe); if (deleghe == null) { throw new Exception(); } return(deleghe); } catch (Exception es) { ErrorManager.redirect(page, es); } return(deleghe); }
/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void Page_Load(object sender, EventArgs e) { if (!this.IsPostBack) { // Impotazione abilitazione controllo this.Enabled = (this.Enabled && !this.ReadOnly); txtAutoComplete.Enabled = false; SAAdminTool.DocsPaWR.InfoUtente info = new SAAdminTool.DocsPaWR.InfoUtente(); info = UserManager.getInfoUtente(this.Page); string valoreChiave = utils.InitConfigurationKeys.GetValue(info.idAmministrazione, "FE_MAX_LENGTH_NOTE"); if (!string.IsNullOrEmpty(valoreChiave)) { caratteriDisponibili = int.Parse(valoreChiave); } txtNote.MaxLength = caratteriDisponibili; clTesto.Value = caratteriDisponibili.ToString(); txtNote.Attributes.Add("onKeyUp", "calcTesto(this,'" + caratteriDisponibili.ToString() + " ','Descrizione Nota'," + clTesto.ClientID + ")"); txtNote.Attributes.Add("onchange", "calcTesto(this,'" + caratteriDisponibili.ToString() + " ','Descrizione Nota'," + clTesto.ClientID + ")"); if (this.PAGINA_CHIAMANTE.Equals("fascNewFascicolo")) { this.txtNote.Width = 655; this.txtAutoComplete.Width = 655; } if (this.PAGINA_CHIAMANTE.Equals("Protocollazione")) { this.txtNote.Width = 655; } } }
private void AmmEliminaUO(SAAdminTool.DocsPaWR.InfoUtente infoUtente, string idCorrGlob) { AmmUtils.WebServiceLink ws = new AmmUtils.WebServiceLink(); this._esitoOperazione = ws.AmmEliminaUO(infoUtente, idCorrGlob); ws = null; }
public static SAAdminTool.DocsPaWR.Utente EsercitaDelega(Page page, DocsPaWR.UserLogin userLogin, string id_delega, string id_ruoloDelegante, out DocsPaWR.LoginResult loginResult) { //verifica che l'utente delegante non sia connesso //chiamata al metodo che alla login riempe per la prima volta l'oggetto infoUtente; SAAdminTool.DocsPaWR.InfoUtente infoUtente = UserManager.getInfoUtente(page); SAAdminTool.DocsPaWR.Utente utente = null; utente = docsPaWS.DelegaEsercita(infoUtente, userLogin, page.Session.SessionID, id_delega, id_ruoloDelegante, out loginResult); return(utente); }
//MODELLI DI DELEGA public static SAAdminTool.DocsPaWR.ModelloDelega[] GetModelliDelega(Page page, SearchModelloDelegaInfo searchInfo, ref SearchPagingContext pagingContext) { SAAdminTool.DocsPaWR.ModelloDelega[] res = null; try { SAAdminTool.DocsPaWR.InfoUtente infoUtente = UserManager.getInfoUtente(page); infoUtente = UserManager.getInfoUtente(page); res = docsPaWS.SearchModelliDelega(infoUtente, searchInfo, ref pagingContext); } catch (Exception es) { ErrorManager.redirect(page, es); } return(res); }
public static bool ModificaDelega(Page page, SAAdminTool.DocsPaWR.InfoDelega delega, string tipoDelega, string idRuoloOld, string idUtenteOld, string dataScadenzaOld, string dataDecorrenzaOld, string idRuoloDeleganteOld) { bool retValue = false; try { SAAdminTool.DocsPaWR.InfoUtente infoUtente = UserManager.getInfoUtente(page); retValue = docsPaWS.DelegaModifica(infoUtente, delega, tipoDelega, idRuoloOld, idUtenteOld, dataScadenzaOld, dataDecorrenzaOld, idRuoloDeleganteOld); } catch (System.Exception exc) { ErrorManager.redirect(page, exc); } return(retValue); }
public static ModelloDelega[] GetModelliDelegaValidi(Page page) { SAAdminTool.DocsPaWR.ModelloDelega[] res = null; try { SAAdminTool.DocsPaWR.InfoUtente infoUtente = UserManager.getInfoUtente(page); infoUtente = UserManager.getInfoUtente(page); res = docsPaWS.GetModelliDelegaByStato(infoUtente, StatoModelloDelega.VALIDO); } catch (Exception es) { ErrorManager.redirect(page, es); } return(res); }
public static bool VerificaUnicaDelega(Page page, SAAdminTool.DocsPaWR.InfoDelega delega) { bool retValue = false; try { SAAdminTool.DocsPaWR.InfoUtente infoUtente = UserManager.getInfoUtente(page); retValue = docsPaWS.DelegaVerificaUnicaAssegnata(infoUtente, delega); } catch (System.Exception exc) { ErrorManager.redirect(page, exc); } return(retValue); }
public bool verificaNomeModifica(string nomeRicerca, SAAdminTool.DocsPaWR.InfoUtente infoUtente, string pagina, string idRicerca) { bool retValue = false; try { DocsPaWR.DocsPaWebService docspaws = ProxyManager.getWS(); retValue = docspaws.verificaNomeRicercaModifica(nomeRicerca, infoUtente, pagina, idRicerca); } catch (Exception e) { logger.Debug("SchedaRicerca.verificaNomeRicerca - Errore nella verifica univocità del nome della ricerca: " + e.Message); throw e; } return(retValue); }
public static int VerificaDelega(Page page) { int result = 0; try { SAAdminTool.DocsPaWR.InfoUtente infoUtente = UserManager.getInfoUtente(page); result = docsPaWS.DelegaCheckAttiva(infoUtente); return(result); } catch (Exception es) { ErrorManager.redirect(page, es); } return(result); }
public exportDatiManager( string oggettoExport, string tipologiaExport, string titolo, DocsPaWR.InfoUtente userInfo, DocsPaWR.Ruolo userRuolo, DocsPaWR.FullTextSearchContext context, string docOrFasc, String[] objSystemId) { this._oggettoExport = oggettoExport; // doc o fasc o trasm..... this._tipologiaExport = tipologiaExport; // PDF o XLS this._titolo = titolo; this._userInfo = userInfo; this._userRuolo = userRuolo; this._context = context; this._docOrFasc = docOrFasc; this._objSystemId = objSystemId; }
private DocsPaWR.SearchObject[] searchFasc(ObjScrollElementsList objScrollElementsList, Page page) { SAAdminTool.DocsPaWR.InfoUtente infoUtente = UserManager.getInfoUtente(page); DocsPaWR.Registro userReg = UserManager.getRegistroSelezionato(page); DocsPaWR.FascicolazioneClassificazione classificazione; //= FascicoliManager.getClassificazioneSelezionata(page); // Caricamento della classifiazione dal livello di call context inferiore (se esiste) if (CallContextStack.CallerContext.ContextState.ContainsKey("Classification")) { classificazione = CallContextStack.CallerContext.ContextState["Classification"] as DocsPaWR.FascicolazioneClassificazione; } else { classificazione = FascicoliManager.getClassificazioneSelezionata(page); } bool allClass = FascicoliManager.getAllClassValue(page); SAAdminTool.DocsPaWR.FiltroRicerca[][] listaFiltri = null; SAAdminTool.DocsPaWR.SearchObject[] listaFasc = null; // Non utilizzato SearchResultInfo[] idProjects = null; switch (objScrollElementsList.searchContext) { case ObjScrollElementsList.EmunSearchContext.RICERCA_FASCICOLI: listaFiltri = FascicoliManager.getMemoriaFiltriRicFasc(page); // Se non ci sono filtri vengono caricati quelli per la nuova ricerca if (listaFiltri == null) { listaFiltri = CallContextStack.CallerContext.ContextState["SearchFilters"] as FiltroRicerca[][]; } // listaFasc = FascicoliManager.getListaFascicoliPaging(page, classificazione, userReg, listaFiltri[0], allClass, objScrollElementsList.selectedPage + 1, out objScrollElementsList.totalNumberOfPage, out objScrollElementsList.totalNumberOfElements, objScrollElementsList.pageSize, false, out idProjects, null); listaFasc = FascicoliManager.getListaFascicoliPagingCustom(page, classificazione, userReg, listaFiltri[0], allClass, objScrollElementsList.selectedPage + 1, out objScrollElementsList.totalNumberOfPage, out objScrollElementsList.totalNumberOfElements, objScrollElementsList.pageSize, false, out idProjects, null, GridManager.IsRoleEnabledToUseGrids(), false, null, null, true); break; } return(listaFasc); }
public static bool RevocaDelega(Page page, SAAdminTool.DocsPaWR.InfoDelega[] listaDeleghe, out string msg) { msg = string.Empty; bool result = false; try { SAAdminTool.DocsPaWR.InfoUtente infoUtente = UserManager.getInfoUtente(page); result = docsPaWS.DelegaRevoca(infoUtente, listaDeleghe, out msg); //if (!result) //{ // //throw new Exception(); //} return(result); } catch (Exception es) { ErrorManager.redirect(page, es); } return(result); }
public exportDatiManager( string oggettoExport, string tipologiaExport, string titolo, DocsPaWR.InfoUtente userInfo, DocsPaWR.Ruolo userRuolo, DocsPaWR.FullTextSearchContext context, string docOrFasc, ArrayList campiSelezionati, String[] objSystemId) { this._oggettoExport = oggettoExport; // doc o fasc o trasm..... this._tipologiaExport = tipologiaExport; // PDF o XLS this._titolo = titolo; this._userInfo = userInfo; this._userRuolo = userRuolo; this._context = context; this._docOrFasc = docOrFasc; this._campiSelezionati = campiSelezionati; // Impostazione della lista dei system id degli oggetti selezionati this._objSystemId = objSystemId; }
public bool verificaNome(string nomeRicerca, SAAdminTool.DocsPaWR.InfoUtente infoUtente, string pagina, string adl) { bool retValue = false; try { //Permette di non fare il controllo sul nome della ricerca salvata if (utils.InitConfigurationKeys.GetValue("0", "FE_VERIFICA_NOME") != null && utils.InitConfigurationKeys.GetValue("0", "FE_VERIFICA_NOME").Equals("1")) { retValue = false; } else { DocsPaWR.DocsPaWebService docspaws = ProxyManager.getWS(); retValue = docspaws.verificaNomeRicerca(nomeRicerca, infoUtente, pagina, adl); } } catch (Exception e) { logger.Debug("SchedaRicerca.verificaNomeRicerca - Errore nella verifica univocità del nome della ricerca: " + e.Message); throw e; } return(retValue); }
public static SAAdminTool.DocsPaWR.InfoDelega[] SearchDeleghe(Page page, SearchDelegaInfo searchInfo, ref SearchPagingContext pagingContext) { SAAdminTool.DocsPaWR.InfoDelega[] deleghe = null; try { SAAdminTool.DocsPaWR.InfoUtente infoUtente = null; if (searchInfo.TipoDelega != "tutte") { infoUtente = UserManager.getInfoUtente(page); } deleghe = docsPaWS.DelegaSearch(infoUtente, searchInfo, ref pagingContext); if (deleghe == null) { throw new Exception(); } return(deleghe); } catch (Exception es) { ErrorManager.redirect(page, es); } return(deleghe); }
public static bool delExtSys(SAAdminTool.DocsPaWR.SistemaEsterno sysExt, SAAdminTool.DocsPaWR.InfoUtente infoUt) { AmmUtils.WebServiceLink ws = new AmmUtils.WebServiceLink(); return(ws.delExtSys(sysExt, infoUt)); }
private DocsPaWR.SearchObject[] searchDoc(ObjScrollElementsList objScrollElementsList, Page page) { SAAdminTool.DocsPaWR.InfoUtente infoUtente = UserManager.getInfoUtente(page); SAAdminTool.DocsPaWR.FiltroRicerca[][] listaFiltri = null; SAAdminTool.DocsPaWR.SearchObject[] listaDoc = null; SearchResultInfo[] idProfilesList; switch (objScrollElementsList.searchContext) { case ObjScrollElementsList.EmunSearchContext.RICERCA_DOCUMENTI: listaFiltri = (SAAdminTool.DocsPaWR.FiltroRicerca[][])SiteNavigation.CallContextStack.CallerContext.SessionState["ricDoc.listaFiltri"]; // Se non ci sono filtri vengono caricati quelli per la nuova ricerca if (listaFiltri == null) { listaFiltri = CallContextStack.CallerContext.ContextState["SearchFilters"] as FiltroRicerca[][]; } // listaDoc = DocumentManager.getQueryInfoDocumentoPaging(infoUtente.idGruppo, infoUtente.idPeople, page, listaFiltri, objScrollElementsList.selectedPage + 1, out objScrollElementsList.totalNumberOfPage, out objScrollElementsList.totalNumberOfElements, false, false, true, false, out idProfilesList); listaDoc = DocumentManager.getQueryInfoDocumentoPagingCustom(infoUtente, page, listaFiltri, objScrollElementsList.selectedPage + 1, out objScrollElementsList.totalNumberOfPage, out objScrollElementsList.totalNumberOfElements, true, false, GridManager.IsRoleEnabledToUseGrids(), objScrollElementsList.pageSize, false, null, null, out idProfilesList); break; case ObjScrollElementsList.EmunSearchContext.RICERCA_DOC_IN_FASC: listaFiltri = ricercaDoc.FiltriRicercaDocumenti.CurrentFilterSessionStorage.GetCurrentFilter(); // Se non ci sono filtri vengono caricati quelli per la nuova ricerca if (listaFiltri == null) { listaFiltri = CallContextStack.CallerContext.ContextState["SearchFilters"] as FiltroRicerca[][]; } DocsPaWR.Folder folder; // Se nel call context è salvato un fascicolo selezionato viene caricato il folder relativo altrimenti viene prelevato // dal call context il folder salvato dalla pagina di ricerca documenti in fascicolo if (SiteNavigation.CallContextStack.CallerContext.SessionState.ContainsKey("FascicoloSelezionato")) { folder = FascicoliManager.getFolder( page, (DocsPaWR.Fascicolo)SiteNavigation.CallContextStack.CallerContext.SessionState["FascicoloSelezionato"]); } else { folder = CallContextStack.CallerContext.ContextState["Folder"] as Folder; } FascicoliManager.SetProtoDocsGridPaging(page, objScrollElementsList.selectedPage); FascicolazioneClassificazione a = new FascicolazioneClassificazione(); SearchResultInfo[] idProfiles; if (folder != null) { if (listaFiltri == null) { // listaDoc = FascicoliManager.getListaDocumentiPaging(page, folder, objScrollElementsList.selectedPage + 1, out objScrollElementsList.totalNumberOfPage, out objScrollElementsList.totalNumberOfElements, false, out idProfiles); //listaDoc = FascicoliManager.getListaFascicoliPagingCustom(page, a, UserManager.getRegistroSelezionato(page), listaFiltri, false, objScrollElementsList.selectedPage + 1, out objScrollElementsList.totalNumberOfPage, out objScrollElementsList.totalNumberOfElements, objScrollElementsList.pageSize, false, out idProfilesList, null, GridManager.IsRoleEnabledToUseGrids(), false, null, null); listaDoc = FascicoliManager.getListaDocumentiPagingCustom(page, folder, listaFiltri, objScrollElementsList.selectedPage + 1, out objScrollElementsList.totalNumberOfPage, out objScrollElementsList.totalNumberOfElements, false, GridManager.IsRoleEnabledToUseGrids(), false, null, null, objScrollElementsList.pageSize, FiltriRicercaDocumenti.CurrentFilterSessionOrderFilter.GetCurrentFilter(), out idProfiles); } else { // listaDoc = FascicoliManager.getListaDocumentiPaging(page, folder, listaFiltri, objScrollElementsList.selectedPage + 1, out objScrollElementsList.totalNumberOfPage, out objScrollElementsList.totalNumberOfElements, false, out idProfiles); listaDoc = FascicoliManager.getListaDocumentiPagingCustom(page, folder, listaFiltri, objScrollElementsList.selectedPage + 1, out objScrollElementsList.totalNumberOfPage, out objScrollElementsList.totalNumberOfElements, false, GridManager.IsRoleEnabledToUseGrids(), false, null, null, objScrollElementsList.pageSize, FiltriRicercaDocumenti.CurrentFilterSessionOrderFilter.GetCurrentFilter(), out idProfiles); } } break; } return(listaDoc); }