Example #1
0
        private void setDataToDoList()
        {
            this.getFiltriTrasm();
            DocsPaWR.InfoUtente infoUtente = UserManager.getInfoUtente();

            SAAdminTool.DocsPaWR.Registro[] reg = UserManager.getRuolo().registri;
            string registri = "0";

            if (reg.Length > 0)
            {
                foreach (SAAdminTool.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);
            }
        }
Example #2
0
        /// <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);
            }
        }
Example #3
0
        /// <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);
            }
        }
Example #4
0
 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);
     }
 }
Example #5
0
        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);
            }
        }
Example #6
0
        /// <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 = SAAdminTool.DocsPaWR.ExportDataFormatEnum.Excel;
                }

                DocsPaWR.DocsPaWebService ws = new SAAdminTool.DocsPaWR.DocsPaWebService();
                this._file = ws.FascCartaceaExportListFilters(UserManager.getInfoUtente(), format, filtri, this._titolo);

                if (this._file != null)
                {
                    exportDatiSessionManager session = new exportDatiSessionManager();
                    session.SetSessionExportFile(this._file);
                }
            }
        }
Example #7
0
        /// <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 SAAdminTool.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);
                }
            }
        }
Example #8
0
        /// <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 = SAAdminTool.UserManager.getRegistroSelezionato(null);

            bool enableUfficioRef = (SAAdminTool.ConfigSettings.getKey(SAAdminTool.ConfigSettings.KeysENUM.ENABLE_UFFICIO_REF) != null &&
                                     SAAdminTool.ConfigSettings.getKey(SAAdminTool.ConfigSettings.KeysENUM.ENABLE_UFFICIO_REF).Equals("1"));

            bool enableChilds = SAAdminTool.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, true);

            ws = null;
            if (this._file != null)
            {
                exportDatiSessionManager session = new exportDatiSessionManager();
                session.SetSessionExportFile(this._file);
            }
        }