private void setDataToDoList() { this.getFiltriTrasm(); DocsPaWR.InfoUtente infoUtente = UserManager.getInfoUtente(); DocsPAWA.DocsPaWR.Registro[] reg = UserManager.getRuolo().registri; string registri = "0"; if (reg.Length > 0) { foreach (DocsPAWA.DocsPaWR.Registro registro in reg) { registri = registri + "," + registro.systemId; } } AmmUtils.WebServiceLink ws = new AmmUtils.WebServiceLink(); this._file = ws.ExportToDoList(infoUtente, this._docOrFasc, this._lstFiltriTrasm, registri, this._tipologiaExport, this._titolo, this._campiSelezionati, this._objSystemId); ws = null; if (this._file != null) { exportDatiSessionManager session = new exportDatiSessionManager(); session.SetSessionExportFile(this._file); } }
/// <summary> /// ///</summary> ///<param name="selectedDocumentsId">Array con gli id dei documenti da esportare</param> private void setDataDocInFasc(String[] selectedDocumentsId) { this.getFascDocumenti(); // Reperimento filtri di ricerca correntemente immessi DocsPaWR.FiltroRicerca[][] currentFilters = ricercaDoc.FiltriRicercaDocumenti.CurrentFilterSessionStorage.GetCurrentFilter(); DocsPaWR.FiltroRicerca[][] orderFilters = ricercaDoc.FiltriRicercaDocumenti.CurrentFilterSessionOrderFilter.GetCurrentFilter(); AmmUtils.WebServiceLink ws = new AmmUtils.WebServiceLink(); Field[] visibleArray = null; if (this._campiSelezionati != null) { List <Field> visibleFieldsTemplate; visibleFieldsTemplate = new List <Field>(); foreach (CampoSelezionato tempCamp in this._campiSelezionati) { Field d = (Field)GridManager.SelectedGrid.Fields.Where(f => f.FieldId.Equals(tempCamp.fieldID) && f.CustomObjectId > 0).FirstOrDefault(); if (d != null) { visibleFieldsTemplate.Add(d); } else { if (!GridManager.IsRoleEnabledToUseGrids() && !tempCamp.campoStandard.Equals("1")) { d = new Field(); d.FieldId = tempCamp.fieldID; d.CustomObjectId = Convert.ToInt32(tempCamp.campoStandard); d.OriginalLabel = tempCamp.nomeCampo; d.Label = tempCamp.nomeCampo; d.Width = 100; visibleFieldsTemplate.Add(d); } } } if (visibleFieldsTemplate != null && visibleFieldsTemplate.Count > 0) { visibleArray = visibleFieldsTemplate.ToArray(); } } this._file = ws.ExportDocInFascCustom(this._userInfo, this._folder, this.codFasc, this._tipologiaExport, this._titolo, currentFilters, this._campiSelezionati, selectedDocumentsId, visibleArray, orderFilters); ws = null; if (this._file != null) { exportDatiSessionManager session = new exportDatiSessionManager(); session.SetSessionExportFile(this._file); } }
/// <summary> /// /// </summary> private void setDataDoc(String[] documentsSystemId) { this.getFiltriDoc(); AmmUtils.WebServiceLink ws = new AmmUtils.WebServiceLink(); Field[] visibleArray = null; if (this._campiSelezionati != null) { List <Field> visibleFieldsTemplate; visibleFieldsTemplate = new List <Field>(); if (GridManager.SelectedGrid == null) { GridManager.SelectedGrid = GridManager.GetStandardGridForUser(GridTypeEnumeration.Document); } foreach (CampoSelezionato tempCamp in this._campiSelezionati) { Field d = (Field)GridManager.SelectedGrid.Fields.Where(f => f.FieldId.Equals(tempCamp.fieldID) && f.CustomObjectId > 0).FirstOrDefault(); if (d != null) { visibleFieldsTemplate.Add(d); } else { if (!GridManager.IsRoleEnabledToUseGrids() && !tempCamp.campoStandard.Equals("1")) { d = new Field(); d.FieldId = tempCamp.fieldID; d.CustomObjectId = Convert.ToInt32(tempCamp.campoStandard); d.OriginalLabel = tempCamp.nomeCampo; d.Label = tempCamp.nomeCampo; d.Width = 100; visibleFieldsTemplate.Add(d); } } } if (visibleFieldsTemplate != null && visibleFieldsTemplate.Count > 0) { visibleArray = visibleFieldsTemplate.ToArray(); } } this._file = ws.ExportDocCustom(this._userInfo, this._lstFiltri, this._tipologiaExport, this._titolo, this._context, this._campiSelezionati, documentsSystemId, visibleArray); ws = null; if (this._file != null) { exportDatiSessionManager session = new exportDatiSessionManager(); session.SetSessionExportFile(this._file); } }
private void setDataDocInCest() { // Reperimento filtri di ricerca correntemente immessi DocsPaWR.FiltroRicerca[][] currentFilters = ricercaDoc.FiltriRicercaDocumenti.CurrentFilterSessionStorage.GetCurrentFilter(); AmmUtils.WebServiceLink ws = new AmmUtils.WebServiceLink(); this._file = ws.ExportDocInCest(this._userInfo, this._tipologiaExport, this._titolo, currentFilters, this._campiSelezionati); ws = null; if (this._file != null) { exportDatiSessionManager session = new exportDatiSessionManager(); session.SetSessionExportFile(this._file); } }
private void setDataRubrica() { //this.getFiltriDoc(); bool store = true; string registri = ""; AmmUtils.WebServiceLink ws = new AmmUtils.WebServiceLink(); this._file = ws.ExportRubrica(this._userInfo, store, registri); ws = null; if (this._file != null) { exportDatiSessionManager session = new exportDatiSessionManager(); session.SetSessionExportFile(this._file); } }
/// <summary> /// /// </summary> private void setDataArchivioCartaceo() { DocsPaWR.FiltroRicerca[] filtri = FascicolazioneCartacea.SessionManager.Filtri; if (filtri != null && filtri.Length > 0) { DocsPaWR.ExportDataFormatEnum format = DocsPaWR.ExportDataFormatEnum.Pdf; if (this._tipologiaExport.ToUpper().Equals("XLS")) { format = DocsPAWA.DocsPaWR.ExportDataFormatEnum.Excel; } DocsPaWR.DocsPaWebService ws = new DocsPAWA.DocsPaWR.DocsPaWebService(); this._file = ws.FascCartaceaExportListFilters(UserManager.getInfoUtente(), format, filtri, this._titolo); if (this._file != null) { exportDatiSessionManager session = new exportDatiSessionManager(); session.SetSessionExportFile(this._file); } } }
/// <summary> /// /// </summary> private void setDataTrasm() { string tipoRicerca = (string)System.Web.HttpContext.Current.Session["tiporic"]; if (tipoRicerca != null && (tipoRicerca.Equals("R") || tipoRicerca.Equals("E"))) { this.getFiltriTrasm(); this._user = UserManager.getUtente(); DocsPaWR.TrasmissioneOggettoTrasm oggettoTrasm = new DocsPAWA.DocsPaWR.TrasmissioneOggettoTrasm(); AmmUtils.WebServiceLink ws = new AmmUtils.WebServiceLink(); this._file = ws.ExportTrasm(oggettoTrasm, tipoRicerca, this._user, this._userRuolo, this._lstFiltriTrasm, this._tipologiaExport, this._titolo, this._campiSelezionati, UserManager.getInfoUtente()); ws = null; if (this._file != null) { exportDatiSessionManager session = new exportDatiSessionManager(); session.SetSessionExportFile(this._file); } } }
/// <summary> /// /// </summary> /// <param name="objSystemId">Lista dei system id dei fascicoli selezionati</param> private void setDataFasc(String[] objSystemId) { this.getFiltriFasc(); this._classificazione = FascicoliManager.getClassificazioneSelezionata(null); this._userReg = DocsPAWA.UserManager.getRegistroSelezionato(null); bool enableUfficioRef = (DocsPAWA.ConfigSettings.getKey(DocsPAWA.ConfigSettings.KeysENUM.ENABLE_UFFICIO_REF) != null && DocsPAWA.ConfigSettings.getKey(DocsPAWA.ConfigSettings.KeysENUM.ENABLE_UFFICIO_REF).Equals("1")); bool enableChilds = DocsPAWA.FascicoliManager.getAllClassValue(null); bool enableProfilazione = false; if (System.Configuration.ConfigurationManager.AppSettings["ProfilazioneDinamicaFasc"] != null && System.Configuration.ConfigurationManager.AppSettings["ProfilazioneDinamicaFasc"] == "1") { enableProfilazione = true; } AmmUtils.WebServiceLink ws = new AmmUtils.WebServiceLink(); Field[] visibleArray = null; if (this._campiSelezionati != null) { List <Field> visibleFieldsTemplate; visibleFieldsTemplate = new List <Field>(); foreach (CampoSelezionato tempCamp in this._campiSelezionati) { Field d = (Field)GridManager.SelectedGrid.Fields.Where(f => f.FieldId.Equals(tempCamp.fieldID) && f.CustomObjectId > 0).FirstOrDefault(); if (d != null) { visibleFieldsTemplate.Add(d); } else { if (!GridManager.IsRoleEnabledToUseGrids() && !tempCamp.campoStandard.Equals("1")) { d = new Field(); d.FieldId = tempCamp.fieldID; d.CustomObjectId = Convert.ToInt32(tempCamp.campoStandard); d.OriginalLabel = tempCamp.nomeCampo; d.Label = tempCamp.nomeCampo; d.Width = 100; visibleFieldsTemplate.Add(d); } } } if (visibleFieldsTemplate != null && visibleFieldsTemplate.Count > 0) { visibleArray = visibleFieldsTemplate.ToArray(); } } this._file = ws.ExportFascCustom(this._userInfo, this._userReg, enableUfficioRef, enableProfilazione, enableChilds, this._classificazione, this._lstFiltri, this._tipologiaExport, this._titolo, this._campiSelezionati, objSystemId, visibleArray); ws = null; if (this._file != null) { exportDatiSessionManager session = new exportDatiSessionManager(); session.SetSessionExportFile(this._file); } }