Ejemplo n.º 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     _sferaService = new SferaService();
     IList<RataSoggettoDTO> rate = _sferaService.GetRataByPersonaUnitaImmobiliari(479, 5375, null, new Gipasoft.Business.Sfera.Repository.UserInfo(12, 1));
     listaRate.DataSource = rate;
     listaRate.DataBind();
 }
Ejemplo n.º 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     _sferaService = new SferaService();
     VersamentoFilter filter = new VersamentoFilter(null, 1, null, 479, null, null, 5375);
     IList<VersamentoSoggettoDTO> versamenti = _sferaService.GetVersamentiByFilter(filter, false, new Gipasoft.Business.Sfera.Repository.UserInfo(12, 1));
     listaVersamenti.DataSource = versamenti;
     listaVersamenti.DataBind();
 }
Ejemplo n.º 3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            _sferaService = new SferaService();
            menu.Rate = _sferaService.GetRataByPersonaUnitaImmobiliari(479, 5375, null, new Gipasoft.Business.Sfera.Repository.UserInfo(12, 1));

            VersamentoFilter filter = new VersamentoFilter(null, 1, null, 479, null, null, 5375);
            menu.Versamenti = _sferaService.GetVersamentiByFilter(filter, false, new Gipasoft.Business.Sfera.Repository.UserInfo(12, 1));

            rate.Rate = menu.Rate;
        }
Ejemplo n.º 4
0
        private DocumentoFileName getDocumentoFileName(string idStr, ISferaService service, UserInfo info)
        {
            string fileName;
            DocumentoDTO documento;
            int id;
            if (int.TryParse(idStr, out id))
            {
                documento = service.GetDocumentoById(id, info);
                if (!string.IsNullOrEmpty(documento.IdentificativoArchiviazioneOttica))
                    fileName = "documenti/" + documento.IdentificativoArchiviazioneOttica.Trim() + ".pdf";
                else
                    fileName = "documenti/" + documento.FileName;

                fileName = addDocumentoExtension(documento, fileName);
            }
            else
            {
                fileName = $"documenti/{idStr}.pdf";
                documento = new DocumentoDTO { FileName = idStr, Descrizione = idStr };
            }

            return new DocumentoFileName(documento, fileName);
        }
Ejemplo n.º 5
0
 private DocumentInfo getDocumentInfo(DocumentoDTO documento, ISferaService service, UserInfo info)
 {
     return documento.ID > 0 ? service.GetDocument(documento.ID, TipoDocumentoArchiviazione.Contratto, info) : service.GetDocumentInfoByIdentificativo(documento.FileName, TipoDocumentoArchiviazione.FatturaPassiva, info);
 }