Compare commits
No commits in common. 'main' and 'develop' have entirely different histories.
@ -1,477 +0,0 @@ |
||||
## Ignore Visual Studio temporary files, build results, and |
||||
## files generated by popular Visual Studio add-ons. |
||||
## |
||||
## Get latest from https://github.com/github/gitignore/blob/main/VisualStudio.gitignore |
||||
|
||||
# User-specific files |
||||
*.rsuser |
||||
*.suo |
||||
*.user |
||||
*.userosscache |
||||
*.sln.docstates |
||||
|
||||
# User-specific files (MonoDevelop/Xamarin Studio) |
||||
*.userprefs |
||||
|
||||
# Mono auto generated files |
||||
mono_crash.* |
||||
|
||||
# Build results |
||||
[Dd]ebug/ |
||||
[Dd]ebugPublic/ |
||||
[Rr]elease/ |
||||
[Rr]eleases/ |
||||
x64/ |
||||
x86/ |
||||
[Ww][Ii][Nn]32/ |
||||
[Aa][Rr][Mm]/ |
||||
[Aa][Rr][Mm]64/ |
||||
bld/ |
||||
[Bb]in/ |
||||
[Oo]bj/ |
||||
[Ll]og/ |
||||
[Ll]ogs/ |
||||
|
||||
# Visual Studio 2015/2017 cache/options directory |
||||
.vs/ |
||||
# Uncomment if you have tasks that create the project's static files in wwwroot |
||||
#wwwroot/ |
||||
|
||||
# Visual Studio 2017 auto generated files |
||||
Generated\ Files/ |
||||
|
||||
# MSTest test Results |
||||
[Tt]est[Rr]esult*/ |
||||
[Bb]uild[Ll]og.* |
||||
|
||||
# NUnit |
||||
*.VisualState.xml |
||||
TestResult.xml |
||||
nunit-*.xml |
||||
|
||||
# Build Results of an ATL Project |
||||
[Dd]ebugPS/ |
||||
[Rr]eleasePS/ |
||||
dlldata.c |
||||
|
||||
# Benchmark Results |
||||
BenchmarkDotNet.Artifacts/ |
||||
|
||||
# .NET |
||||
project.lock.json |
||||
project.fragment.lock.json |
||||
artifacts/ |
||||
|
||||
# Tye |
||||
.tye/ |
||||
|
||||
# ASP.NET Scaffolding |
||||
ScaffoldingReadMe.txt |
||||
|
||||
# StyleCop |
||||
StyleCopReport.xml |
||||
|
||||
# Files built by Visual Studio |
||||
*_i.c |
||||
*_p.c |
||||
*_h.h |
||||
*.ilk |
||||
*.meta |
||||
*.obj |
||||
*.iobj |
||||
*.pch |
||||
*.pdb |
||||
*.ipdb |
||||
*.pgc |
||||
*.pgd |
||||
*.rsp |
||||
*.sbr |
||||
*.tlb |
||||
*.tli |
||||
*.tlh |
||||
*.tmp |
||||
*.tmp_proj |
||||
*_wpftmp.csproj |
||||
*.log |
||||
*.tlog |
||||
*.vspscc |
||||
*.vssscc |
||||
.builds |
||||
*.pidb |
||||
*.svclog |
||||
*.scc |
||||
|
||||
# Chutzpah Test files |
||||
_Chutzpah* |
||||
|
||||
# Visual C++ cache files |
||||
ipch/ |
||||
*.aps |
||||
*.ncb |
||||
*.opendb |
||||
*.opensdf |
||||
*.sdf |
||||
*.cachefile |
||||
*.VC.db |
||||
*.VC.VC.opendb |
||||
|
||||
# Visual Studio profiler |
||||
*.psess |
||||
*.vsp |
||||
*.vspx |
||||
*.sap |
||||
|
||||
# Visual Studio Trace Files |
||||
*.e2e |
||||
|
||||
# TFS 2012 Local Workspace |
||||
$tf/ |
||||
|
||||
# Guidance Automation Toolkit |
||||
*.gpState |
||||
|
||||
# ReSharper is a .NET coding add-in |
||||
_ReSharper*/ |
||||
*.[Rr]e[Ss]harper |
||||
*.DotSettings.user |
||||
|
||||
# TeamCity is a build add-in |
||||
_TeamCity* |
||||
|
||||
# DotCover is a Code Coverage Tool |
||||
*.dotCover |
||||
|
||||
# AxoCover is a Code Coverage Tool |
||||
.axoCover/* |
||||
!.axoCover/settings.json |
||||
|
||||
# Coverlet is a free, cross platform Code Coverage Tool |
||||
coverage*.json |
||||
coverage*.xml |
||||
coverage*.info |
||||
|
||||
# Visual Studio code coverage results |
||||
*.coverage |
||||
*.coveragexml |
||||
|
||||
# NCrunch |
||||
_NCrunch_* |
||||
.*crunch*.local.xml |
||||
nCrunchTemp_* |
||||
|
||||
# MightyMoose |
||||
*.mm.* |
||||
AutoTest.Net/ |
||||
|
||||
# Web workbench (sass) |
||||
.sass-cache/ |
||||
|
||||
# Installshield output folder |
||||
[Ee]xpress/ |
||||
|
||||
# DocProject is a documentation generator add-in |
||||
DocProject/buildhelp/ |
||||
DocProject/Help/*.HxT |
||||
DocProject/Help/*.HxC |
||||
DocProject/Help/*.hhc |
||||
DocProject/Help/*.hhk |
||||
DocProject/Help/*.hhp |
||||
DocProject/Help/Html2 |
||||
DocProject/Help/html |
||||
|
||||
# Click-Once directory |
||||
publish/ |
||||
|
||||
# Publish Web Output |
||||
*.[Pp]ublish.xml |
||||
*.azurePubxml |
||||
# Note: Comment the next line if you want to checkin your web deploy settings, |
||||
# but database connection strings (with potential passwords) will be unencrypted |
||||
*.pubxml |
||||
*.publishproj |
||||
|
||||
# Microsoft Azure Web App publish settings. Comment the next line if you want to |
||||
# checkin your Azure Web App publish settings, but sensitive information contained |
||||
# in these scripts will be unencrypted |
||||
PublishScripts/ |
||||
|
||||
# NuGet Packages |
||||
*.nupkg |
||||
# NuGet Symbol Packages |
||||
*.snupkg |
||||
# The packages folder can be ignored because of Package Restore |
||||
**/[Pp]ackages/* |
||||
# except build/, which is used as an MSBuild target. |
||||
!**/[Pp]ackages/build/ |
||||
# Uncomment if necessary however generally it will be regenerated when needed |
||||
#!**/[Pp]ackages/repositories.config |
||||
# NuGet v3's project.json files produces more ignorable files |
||||
*.nuget.props |
||||
*.nuget.targets |
||||
|
||||
# Microsoft Azure Build Output |
||||
csx/ |
||||
*.build.csdef |
||||
|
||||
# Microsoft Azure Emulator |
||||
ecf/ |
||||
rcf/ |
||||
|
||||
# Windows Store app package directories and files |
||||
AppPackages/ |
||||
BundleArtifacts/ |
||||
Package.StoreAssociation.xml |
||||
_pkginfo.txt |
||||
*.appx |
||||
*.appxbundle |
||||
*.appxupload |
||||
|
||||
# Visual Studio cache files |
||||
# files ending in .cache can be ignored |
||||
*.[Cc]ache |
||||
# but keep track of directories ending in .cache |
||||
!?*.[Cc]ache/ |
||||
|
||||
# Others |
||||
ClientBin/ |
||||
~$* |
||||
*~ |
||||
*.dbmdl |
||||
*.dbproj.schemaview |
||||
*.jfm |
||||
*.pfx |
||||
*.publishsettings |
||||
orleans.codegen.cs |
||||
|
||||
# Including strong name files can present a security risk |
||||
# (https://github.com/github/gitignore/pull/2483#issue-259490424) |
||||
#*.snk |
||||
|
||||
# Since there are multiple workflows, uncomment next line to ignore bower_components |
||||
# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) |
||||
#bower_components/ |
||||
|
||||
# RIA/Silverlight projects |
||||
Generated_Code/ |
||||
|
||||
# Backup & report files from converting an old project file |
||||
# to a newer Visual Studio version. Backup files are not needed, |
||||
# because we have git ;-) |
||||
_UpgradeReport_Files/ |
||||
Backup*/ |
||||
UpgradeLog*.XML |
||||
UpgradeLog*.htm |
||||
ServiceFabricBackup/ |
||||
*.rptproj.bak |
||||
|
||||
# SQL Server files |
||||
*.mdf |
||||
*.ldf |
||||
*.ndf |
||||
|
||||
# Business Intelligence projects |
||||
*.rdl.data |
||||
*.bim.layout |
||||
*.bim_*.settings |
||||
*.rptproj.rsuser |
||||
*- [Bb]ackup.rdl |
||||
*- [Bb]ackup ([0-9]).rdl |
||||
*- [Bb]ackup ([0-9][0-9]).rdl |
||||
|
||||
# Microsoft Fakes |
||||
FakesAssemblies/ |
||||
|
||||
# GhostDoc plugin setting file |
||||
*.GhostDoc.xml |
||||
|
||||
# Node.js Tools for Visual Studio |
||||
.ntvs_analysis.dat |
||||
node_modules/ |
||||
|
||||
# Visual Studio 6 build log |
||||
*.plg |
||||
|
||||
# Visual Studio 6 workspace options file |
||||
*.opt |
||||
|
||||
# Visual Studio 6 auto-generated workspace file (contains which files were open etc.) |
||||
*.vbw |
||||
|
||||
# Visual Studio 6 auto-generated project file (contains which files were open etc.) |
||||
*.vbp |
||||
|
||||
# Visual Studio 6 workspace and project file (working project files containing files to include in project) |
||||
*.dsw |
||||
*.dsp |
||||
|
||||
# Visual Studio 6 technical files |
||||
*.ncb |
||||
*.aps |
||||
|
||||
# Visual Studio LightSwitch build output |
||||
**/*.HTMLClient/GeneratedArtifacts |
||||
**/*.DesktopClient/GeneratedArtifacts |
||||
**/*.DesktopClient/ModelManifest.xml |
||||
**/*.Server/GeneratedArtifacts |
||||
**/*.Server/ModelManifest.xml |
||||
_Pvt_Extensions |
||||
|
||||
# Paket dependency manager |
||||
.paket/paket.exe |
||||
paket-files/ |
||||
|
||||
# FAKE - F# Make |
||||
.fake/ |
||||
|
||||
# CodeRush personal settings |
||||
.cr/personal |
||||
|
||||
# Python Tools for Visual Studio (PTVS) |
||||
__pycache__/ |
||||
*.pyc |
||||
|
||||
# Cake - Uncomment if you are using it |
||||
# tools/** |
||||
# !tools/packages.config |
||||
|
||||
# Tabs Studio |
||||
*.tss |
||||
|
||||
# Telerik's JustMock configuration file |
||||
*.jmconfig |
||||
|
||||
# BizTalk build output |
||||
*.btp.cs |
||||
*.btm.cs |
||||
*.odx.cs |
||||
*.xsd.cs |
||||
|
||||
# OpenCover UI analysis results |
||||
OpenCover/ |
||||
|
||||
# Azure Stream Analytics local run output |
||||
ASALocalRun/ |
||||
|
||||
# MSBuild Binary and Structured Log |
||||
*.binlog |
||||
|
||||
# NVidia Nsight GPU debugger configuration file |
||||
*.nvuser |
||||
|
||||
# MFractors (Xamarin productivity tool) working folder |
||||
.mfractor/ |
||||
|
||||
# Local History for Visual Studio |
||||
.localhistory/ |
||||
|
||||
# Visual Studio History (VSHistory) files |
||||
.vshistory/ |
||||
|
||||
# BeatPulse healthcheck temp database |
||||
healthchecksdb |
||||
|
||||
# Backup folder for Package Reference Convert tool in Visual Studio 2017 |
||||
MigrationBackup/ |
||||
|
||||
# Ionide (cross platform F# VS Code tools) working folder |
||||
.ionide/ |
||||
|
||||
# Fody - auto-generated XML schema |
||||
FodyWeavers.xsd |
||||
|
||||
# VS Code files for those working on multiple tools |
||||
.vscode/* |
||||
!.vscode/settings.json |
||||
!.vscode/tasks.json |
||||
!.vscode/launch.json |
||||
!.vscode/extensions.json |
||||
*.code-workspace |
||||
|
||||
# Local History for Visual Studio Code |
||||
.history/ |
||||
|
||||
# Windows Installer files from build outputs |
||||
*.cab |
||||
*.msi |
||||
*.msix |
||||
*.msm |
||||
*.msp |
||||
|
||||
# JetBrains Rider |
||||
*.sln.iml |
||||
|
||||
## |
||||
## Visual studio for Mac |
||||
## |
||||
|
||||
|
||||
# globs |
||||
Makefile.in |
||||
*.userprefs |
||||
*.usertasks |
||||
config.make |
||||
config.status |
||||
aclocal.m4 |
||||
install-sh |
||||
autom4te.cache/ |
||||
*.tar.gz |
||||
tarballs/ |
||||
test-results/ |
||||
|
||||
# Mac bundle stuff |
||||
*.dmg |
||||
*.app |
||||
|
||||
# content below from: https://github.com/github/gitignore/blob/master/Global/macOS.gitignore |
||||
# General |
||||
.DS_Store |
||||
.AppleDouble |
||||
.LSOverride |
||||
|
||||
# Icon must end with two \r |
||||
Icon |
||||
|
||||
|
||||
# Thumbnails |
||||
._* |
||||
|
||||
# Files that might appear in the root of a volume |
||||
.DocumentRevisions-V100 |
||||
.fseventsd |
||||
.Spotlight-V100 |
||||
.TemporaryItems |
||||
.Trashes |
||||
.VolumeIcon.icns |
||||
.com.apple.timemachine.donotpresent |
||||
|
||||
# Directories potentially created on remote AFP share |
||||
.AppleDB |
||||
.AppleDesktop |
||||
Network Trash Folder |
||||
Temporary Items |
||||
.apdisk |
||||
|
||||
# content below from: https://github.com/github/gitignore/blob/master/Global/Windows.gitignore |
||||
# Windows thumbnail cache files |
||||
Thumbs.db |
||||
ehthumbs.db |
||||
ehthumbs_vista.db |
||||
|
||||
# Dump file |
||||
*.stackdump |
||||
|
||||
# Folder config file |
||||
[Dd]esktop.ini |
||||
|
||||
# Recycle Bin used on file shares |
||||
$RECYCLE.BIN/ |
||||
|
||||
# Windows Installer files |
||||
*.cab |
||||
*.msi |
||||
*.msix |
||||
*.msm |
||||
*.msp |
||||
|
||||
# Windows shortcuts |
||||
*.lnk |
@ -1,9 +0,0 @@ |
||||
using CORRESPONSALBackend.DTO.ArchivoElectronico; |
||||
using GEMCO.Backend.Models.Reportes; |
||||
|
||||
namespace CORRESPONSALBackend.Contracts.ArchivoElectronico{ |
||||
public interface IArchivoElectronicoRepository |
||||
{ |
||||
public Task<List<RptPedimentosPagadosAEO>> getRptPedimentoPagadosAEO(DTOAEPeriodo dTOData); |
||||
} |
||||
} |
@ -1,5 +0,0 @@ |
||||
namespace CORRESPONSALBackend.Contracts.ArchivoElectronico{ |
||||
public interface IArchivoElectronicoService{ |
||||
|
||||
} |
||||
} |
@ -1,5 +0,0 @@ |
||||
namespace CORRESPONSALBackend.Contracts.Auth{ |
||||
public interface IAuthService{ |
||||
public Task<string> RefreshAgenteFacturacionToken(); |
||||
} |
||||
} |
@ -1,12 +0,0 @@ |
||||
using CORRESPONSALBackend.DTO; |
||||
using CORRESPONSALBackend.Models.Catalogos; |
||||
|
||||
namespace CORRESPONSALBackend.Contracts.Catalogos |
||||
{ |
||||
public interface ICatCentrosCostosRepository |
||||
{ |
||||
public Task<IEnumerable<DTOCentrosCostos>> GetAll(); |
||||
public Task<IEnumerable<DTOCentrosCostos>> Append(CatCentrosCostos centroCostos); |
||||
public Task<CatCentrosCostos> Get(int idCliente); |
||||
} |
||||
} |
@ -1,9 +0,0 @@ |
||||
using CORRESPONSALBackend.Models.Catalogos; |
||||
|
||||
namespace CORRESPONSALBackend.Contracts.Catalogos |
||||
{ |
||||
public interface ICatClavesPedimentosRepository |
||||
{ |
||||
public Task<IEnumerable<CatClavesPedimentos>> GetAll(); |
||||
} |
||||
} |
@ -1,7 +0,0 @@ |
||||
using CORRESPONSALBackend.Models.Catalogos; |
||||
|
||||
namespace CORRESPONSALBackend.Contracts.Catalogos{ |
||||
public interface ICatTiposContenedoresRepository{ |
||||
public Task<IEnumerable<CatTiposContenedores>> Get(); |
||||
} |
||||
} |
@ -1,8 +0,0 @@ |
||||
using CORRESPONSALBackend.Models.Catalogos; |
||||
|
||||
namespace CORRESPONSALBackend.Contracts.Catalogos |
||||
{ |
||||
public interface ITiposMercanciaRepository{ |
||||
public Task<IEnumerable<CatTiposMercancia>> GetAll(); |
||||
} |
||||
} |
@ -1,7 +0,0 @@ |
||||
using CORRESPONSALBackend.DTO.Corresponsales; |
||||
|
||||
namespace CORRESPONSALBackend.Contracts.Corresponsalias.Anticipos{ |
||||
public interface ICorresponsaliasAnticiposService{ |
||||
public Task<byte[]> GetPdf(DTOPdfAnticipo anticipo, string imageFile); |
||||
} |
||||
} |
@ -1,9 +0,0 @@ |
||||
using CORRESPONSALBackend.Models.Corresponsales; |
||||
|
||||
namespace CORRESPONSALBackend.Contracts.Corresponsalias{ |
||||
public interface ICorresponsaliasPedimentosConsolidadosRepository{ |
||||
public Task<IEnumerable<CorresponsalPedimentosConsolidados>> GetAll(int IdTrafico); |
||||
public Task<CorresponsalPedimentosConsolidados> Append(CorresponsalPedimentosConsolidados pedimento); |
||||
public Task Delete(int id); |
||||
} |
||||
} |
@ -1,11 +0,0 @@ |
||||
using CORRESPONSALBackend.DTO.Corresponsales; |
||||
using CORRESPONSALBackend.Models.Corresponsales; |
||||
|
||||
namespace CORRESPONSALBackend.Contracts.Corresponsalias{ |
||||
public interface ICorresponsaliasSolicitudesRepository{ |
||||
public Task<ITraficoSolicitud> AppendSolicitudReapertura(ITraficoSolicitud solicitud); |
||||
public Task<DTOTraficoSolicitud> GetSolicitudReapertura(int idTrafico); |
||||
public Task<ITraficoSolicitud> AppendSolicitudEliminarReferencia(ITraficoSolicitud solicitud); |
||||
public Task<DTOTraficoSolicitud> GetSolicitudEliminarReferencia(int idTrafico); |
||||
} |
||||
} |
@ -1,7 +0,0 @@ |
||||
using CORRESPONSALBackend.Models.Corresponsales; |
||||
|
||||
namespace CORRESPONSALBackend.Contracts.Corresponsalias.Services{ |
||||
public interface ICorresponsaliasFacturasService{ |
||||
public Task<MemoryStream> GetFacturasExcel(IEnumerable<CorresponsalFacturas> facturas, string folioGemco); |
||||
} |
||||
} |
@ -1,6 +0,0 @@ |
||||
namespace CORRESPONSALBackend.Contracts.Corresponsalias.Services{ |
||||
public interface ICorresponsaliasTraficosService{ |
||||
public Task<List<string[]>> ReadTxtFacturasAlen(int fileId); |
||||
public Task<string> GetTxtFacturacionData(int idTrafico); |
||||
} |
||||
} |
@ -1,16 +0,0 @@ |
||||
using CORRESPONSALBackend.DTO.Reportes.Alen; |
||||
using CORRESPONSALBackend.Models.Clientes.Alen; |
||||
|
||||
namespace CORRESPONSALBackend.Contracts.Reportes.Alen{ |
||||
public interface IEstadosCuentaAlenRepository{ |
||||
public Task ClearData(); |
||||
public Task<IEnumerable<DTOEstadosCuentaAlen>> GetAll(DTOEstadosCuentaAlenFilters filters); |
||||
public Task<EstadosCuenta> Append (EstadosCuenta data); |
||||
|
||||
public Task<EstadosCuenta> GetByFolio (string Folio); |
||||
|
||||
public Task<EstadosCuenta> MarkAsProgramado (string NoMovimiento, string NoSerie); |
||||
public Task<EstadosCuenta> AppendOrdenCompra(DTOEstadosCuentaAlen data); |
||||
public Task<EstadosCuenta> AppendObservaciones(DTOEstadosCuentaAlen data); |
||||
} |
||||
} |
@ -1,5 +0,0 @@ |
||||
namespace CORRESPONSALBackend.Contracts.Reportes.Alen{ |
||||
public interface IReportesAlenRepository{ |
||||
public Task<IEnumerable<DTOReporteFacturasTraficosConsolidados>> GetFacturasTraficoConsolidado(int idTrafico, string referencia); |
||||
} |
||||
} |
@ -1,8 +0,0 @@ |
||||
using CORRESPONSALBackend.Models.Corresponsales; |
||||
|
||||
namespace CORRESPONSALBackend.Contracts.Reportes.Alen{ |
||||
public interface IReportesAlenService{ |
||||
public Task<MemoryStream> GetRelacionFacturas(ITrafico trafico, IEnumerable<CorresponsalFacturas> facturas, IEnumerable<CorresponsalesContenedores> contenedores); |
||||
public Task<MemoryStream> GetReporteFacturasTraficoConsolidado(string referencia); |
||||
} |
||||
} |
@ -1,7 +0,0 @@ |
||||
using CORRESPONSALBackend.DTO.Reportes.CuentasCerradas; |
||||
|
||||
namespace CORRESPONSALBackend.Contracts.Reportes.CuentasCerradas{ |
||||
public interface IReporteCuentasCerradasRepository{ |
||||
public Task<IEnumerable<DTOCuentasCerradas>> GetCuentasCerradas(string Inicio, string Fin, int TipoOperacion, int NoCliente, int IdCorresponsal); |
||||
} |
||||
} |
@ -1,7 +0,0 @@ |
||||
using CORRESPONSALBackend.DTO.Reportes.CuentasCerradas; |
||||
|
||||
namespace CORRESPONSALBackend.Contracts.Reportes.CuentasCerradas{ |
||||
public interface IReporteCuentasCerradasService{ |
||||
public Task<MemoryStream> GetExcel(IEnumerable<DTOCuentasCerradas> cuentas); |
||||
} |
||||
} |
@ -1,9 +0,0 @@ |
||||
using CORRESPONSALBackend.DTO.Reportes.Embarques; |
||||
|
||||
namespace CORRESPONSALBackend.Contracts.Reportes.Embarques{ |
||||
public interface IReportesEmbarquesRepository { |
||||
public Task<IEnumerable<DTOEmbarquesPorImportar>> GetReporteEmbarquesPorImportar(); |
||||
public Task<IEnumerable<DTOEmbarquesDespachados>> GetReporteEmbarquesDespachados(DateTime inicio, DateTime fin); |
||||
public Task<IEnumerable<DTOBuscarEmbarques>> BuscarEmbarques(string filtro); |
||||
} |
||||
} |
@ -1,9 +0,0 @@ |
||||
using CORRESPONSALBackend.DTO.Reportes.Embarques; |
||||
|
||||
namespace CORRESPONSALBackend.Contracts.Reportes.Embarques{ |
||||
public interface IReportesEmbarquesService{ |
||||
public Task<MemoryStream> GetExcelEmbarquesPorImportar(IEnumerable<DTOEmbarquesPorImportar> embarques, string filePath); |
||||
public Task<MemoryStream> GetExcelEmbarquesDespachados(IEnumerable<DTOEmbarquesDespachados> embarques, string filePath); |
||||
public Task<MemoryStream> GetExcelBusquedaEmbarques(IEnumerable<DTOBuscarEmbarques> embarques, string filePath); |
||||
} |
||||
} |
@ -1,8 +0,0 @@ |
||||
using CORRESPONSALBackend.DTO.Reportes; |
||||
using CORRESPONSALBackend.DTO.Reportes.Facturacion; |
||||
|
||||
namespace CORRESPONSALBackend.Contracts.Reportes.Facturacion{ |
||||
public interface IReportesFacturacionRepository{ |
||||
public Task<IEnumerable<DTOReporteGeneralFacturacion>> GetCuentasFacturadas(DTOReporteCorresponsales data); |
||||
} |
||||
} |
@ -1,9 +0,0 @@ |
||||
using CORRESPONSALBackend.DTO.Corresponsales; |
||||
using CORRESPONSALBackend.DTO.Reportes; |
||||
using CORRESPONSALBackend.DTO.Reportes.GC50; |
||||
|
||||
namespace CORRESPONSALBackend.Contracts.Reportes.GC50{ |
||||
public interface IReporteGC50Repository{ |
||||
public Task<IEnumerable<DTOReporteGC50>> GetAllCorresponsalesTraficos(DTOReporteCorresponsales data); |
||||
} |
||||
} |
@ -1,7 +0,0 @@ |
||||
using CORRESPONSALBackend.DTO.Reportes.GC50; |
||||
|
||||
namespace CORRESPONSALBackend.Contracts.Reportes.GC50{ |
||||
public interface IReporteGC50Service{ |
||||
public Task<MemoryStream> GetExcel(IEnumerable<DTOReporteGC50> traficos); |
||||
} |
||||
} |
@ -1,7 +0,0 @@ |
||||
using CORRESPONSALBackend.DTO.Corresponsales; |
||||
|
||||
namespace CORRESPONSALBackend.Contracts.Reportes{ |
||||
public interface ITraficosClientesService{ |
||||
public Task<MemoryStream> GetExcel(IEnumerable<DTOCorresponsalTrafico> traficos); |
||||
} |
||||
} |
@ -1,13 +0,0 @@ |
||||
namespace CORRESPONSALBackend.Contracts.Reportes.Newell.Mensual |
||||
{ |
||||
public interface IReporteMensualRepository |
||||
{ |
||||
public Task CrearTablasReporteMensual(); |
||||
public Task<DTOTrailas> PopulateTrailasTable(DTOTrailas record); |
||||
public Task<DTOOperacionesCdAcuna> PopulateOperacionesCdAcunaTable(DTOOperacionesCdAcuna record); |
||||
public Task<DTOOperacionesLazaroCardenas> PopulateOperacionesLazaroCardenasTable(DTOOperacionesLazaroCardenas record); |
||||
public Task<IEnumerable<DTOReporteMensualCdAcuna>> GetRptMensualCdAcuna(); |
||||
public Task<IEnumerable<DTOOperacionesLazaroCardenas>> GetRptMensualLazaroCardenas(); |
||||
public Task DropTempTables(); |
||||
} |
||||
} |
@ -1,5 +0,0 @@ |
||||
namespace CORRESPONSALBackend.Contracts.Reportes.Newell.Mensual{ |
||||
public interface IReporteMensualService{ |
||||
public Task<MemoryStream> GetReporteMensual(int idTrailasFile, int idRptCdAcunaFile, int idRptLazaroCardenasFile); |
||||
} |
||||
} |
@ -1,5 +0,0 @@ |
||||
namespace CORRESPONSALBackend.Contracts.Reportes.Newell.Semanal{ |
||||
public interface IReporteSemanalService{ |
||||
public Task<MemoryStream> GetReporteSemanal(int idRptSemanalFile); |
||||
} |
||||
} |
@ -1,40 +0,0 @@ |
||||
using CORRESPONSALBackend.Contracts.Catalogos; |
||||
using CORRESPONSALBackend.DTO; |
||||
using CORRESPONSALBackend.Models.Catalogos; |
||||
using Microsoft.AspNetCore.Authorization; |
||||
using Microsoft.AspNetCore.Mvc; |
||||
|
||||
namespace CORRESPONSALBackend.Controllers.Catalogos |
||||
{ |
||||
[Authorize] |
||||
[Route("api/Catalogos/[controller]")]
|
||||
public class CatCentrosCostosController : Controller |
||||
{ |
||||
private readonly ICatCentrosCostosRepository _repo; |
||||
|
||||
public CatCentrosCostosController(ICatCentrosCostosRepository repo){ |
||||
_repo = repo; |
||||
} |
||||
[HttpGet("GetAll")] |
||||
public async Task<IEnumerable<DTOCentrosCostos>> GetAll(){ |
||||
var centrosCostos = await _repo.GetAll(); |
||||
return centrosCostos; |
||||
} |
||||
|
||||
[HttpGet] |
||||
public async Task<CatCentrosCostos> Get([FromQuery] int idCliente){ |
||||
var centroCostos = await _repo.Get(idCliente); |
||||
return centroCostos; |
||||
} |
||||
|
||||
[HttpPost("Append")] |
||||
public async Task<IEnumerable<DTOCentrosCostos>> Append([FromBody] CatCentrosCostos centroCostos){ |
||||
try{ |
||||
var centrosCostos = await _repo.Append(centroCostos); |
||||
return centrosCostos; |
||||
}catch(Exception ex){ |
||||
throw new Exception(ex.Message); |
||||
} |
||||
} |
||||
} |
||||
} |
@ -1,23 +0,0 @@ |
||||
using CORRESPONSALBackend.Contracts.Catalogos; |
||||
using CORRESPONSALBackend.Models.Catalogos; |
||||
using Microsoft.AspNetCore.Authorization; |
||||
using Microsoft.AspNetCore.Mvc; |
||||
|
||||
namespace CORRESPONSALBackend.Controllers.Catalogos{ |
||||
|
||||
[Authorize] |
||||
[Route("api/Catalogos/[controller]")]
|
||||
public class CatClavesPedimentosController : Controller{ |
||||
private readonly ICatClavesPedimentosRepository _repo; |
||||
|
||||
public CatClavesPedimentosController(ICatClavesPedimentosRepository repo){ |
||||
_repo = repo; |
||||
} |
||||
|
||||
[HttpGet("GetAll")] |
||||
public async Task<IEnumerable<CatClavesPedimentos>> GetAll(){ |
||||
var claves = await _repo.GetAll(); |
||||
return claves; |
||||
} |
||||
} |
||||
} |
@ -1,22 +0,0 @@ |
||||
using CORRESPONSALBackend.Contracts.Catalogos; |
||||
using CORRESPONSALBackend.Models.Catalogos; |
||||
using Microsoft.AspNetCore.Authorization; |
||||
using Microsoft.AspNetCore.Mvc; |
||||
|
||||
namespace CORRESPONSALBackend.Controllers.Catalogos{ |
||||
[Authorize] |
||||
[Route("api/Catalogos/[controller]")]
|
||||
public class CatTiposContenedoresController : Controller{ |
||||
private readonly ICatTiposContenedoresRepository _repo; |
||||
|
||||
public CatTiposContenedoresController(ICatTiposContenedoresRepository repo){ |
||||
_repo = repo; |
||||
} |
||||
|
||||
[HttpGet] |
||||
public async Task<IEnumerable<CatTiposContenedores>> Get(){ |
||||
var tipos = await _repo.Get(); |
||||
return tipos; |
||||
} |
||||
} |
||||
} |
@ -1,25 +0,0 @@ |
||||
using CORRESPONSALBackend.Models.Catalogos; |
||||
using CORRESPONSALBackend.Contracts.Catalogos; |
||||
using Microsoft.AspNetCore.Mvc; |
||||
using Microsoft.AspNetCore.Authorization; |
||||
|
||||
namespace CORRESPONSALBackend.Controllers.Catalogos |
||||
{ |
||||
[Authorize] |
||||
[Route("api/Catalogos/[controller]")]
|
||||
public class TiposMercanciaController : ControllerBase |
||||
{ |
||||
private readonly IConfiguration _config; |
||||
private readonly ITiposMercanciaRepository _repo; |
||||
public TiposMercanciaController(IConfiguration config, ITiposMercanciaRepository repo){ |
||||
_config = config; |
||||
_repo = repo; |
||||
} |
||||
|
||||
[HttpGet] |
||||
public async Task<IEnumerable<CatTiposMercancia>> GetAll(){ |
||||
var tipos = await _repo.GetAll(); |
||||
return tipos; |
||||
} |
||||
} |
||||
} |
@ -1,42 +0,0 @@ |
||||
using CORRESPONSALBackend.Contracts.Corresponsalias; |
||||
using CORRESPONSALBackend.Models.Corresponsales; |
||||
using Microsoft.AspNetCore.Authorization; |
||||
using Microsoft.AspNetCore.Mvc; |
||||
|
||||
namespace CORRESPONSALBackend.Controllers.Corresponsalias{ |
||||
[Authorize] |
||||
[Route("api/Corresponsalias/[controller]")]
|
||||
[ApiController] |
||||
public class PedimentosConsolidados : ControllerBase{ |
||||
private readonly ICorresponsaliasPedimentosConsolidadosRepository _repo; |
||||
public PedimentosConsolidados(ICorresponsaliasPedimentosConsolidadosRepository repo){ |
||||
_repo = repo; |
||||
} |
||||
|
||||
[HttpPost("Append")] |
||||
public async Task<IActionResult> Append([FromBody] CorresponsalPedimentosConsolidados data){ |
||||
try{ |
||||
var entrada = await _repo.Append(data); |
||||
return Ok(entrada); |
||||
}catch(Exception ex){ |
||||
return BadRequest(ex.Message); |
||||
} |
||||
} |
||||
|
||||
[HttpGet("GetAll")] |
||||
public async Task<IEnumerable<CorresponsalPedimentosConsolidados>> GetAll([FromQuery] int IdTrafico){ |
||||
var entrada = await _repo.GetAll(IdTrafico); |
||||
return entrada; |
||||
} |
||||
|
||||
[HttpDelete("Delete/{id}")] |
||||
public async Task<IActionResult> Delete(int id){ |
||||
try{ |
||||
await _repo.Delete(id); |
||||
return new OkObjectResult(new { respuesta = "Se elimino el registro" }); |
||||
}catch(Exception ex){ |
||||
return BadRequest(ex.Message); |
||||
} |
||||
} |
||||
} |
||||
} |
@ -1,57 +0,0 @@ |
||||
using CORRESPONSALBackend.Contracts.Corresponsalias; |
||||
using CORRESPONSALBackend.Models.Corresponsales; |
||||
using Microsoft.AspNetCore.Authorization; |
||||
using Microsoft.AspNetCore.Mvc; |
||||
|
||||
namespace CORRESPONSALBackend.Controllers.Corresponsalias{ |
||||
[Authorize] |
||||
[Route("api/Corresponsalias/[controller]")]
|
||||
[ApiController] |
||||
public class SolicitudesController : ControllerBase |
||||
{ |
||||
private readonly ICorresponsaliasSolicitudesRepository _Repo; |
||||
public SolicitudesController(ICorresponsaliasSolicitudesRepository Repo){ |
||||
_Repo = Repo; |
||||
} |
||||
|
||||
[HttpPost("Reapertura/Append")] |
||||
public async Task<IActionResult> AppendSolicitudReapertura([FromBody] ITraficoSolicitud solicitud){ |
||||
try{ |
||||
var response = await _Repo.AppendSolicitudReapertura(solicitud); |
||||
return Ok(response); |
||||
}catch(Exception ex){ |
||||
return BadRequest(ex.Message); |
||||
} |
||||
} |
||||
|
||||
[HttpGet("Reapertura/Get")] |
||||
public async Task<IActionResult> GetSolicitudReapertura([FromQuery] int idTrafico){ |
||||
try{ |
||||
var solicitud = await _Repo.GetSolicitudReapertura(idTrafico); |
||||
return Ok(solicitud); |
||||
}catch(Exception ex){ |
||||
return BadRequest(ex.Message); |
||||
} |
||||
} |
||||
|
||||
[HttpPost("EliminarCuenta/Append")] |
||||
public async Task<IActionResult> AppendSolicitudEliminarCuenta([FromBody] ITraficoSolicitud solicitud){ |
||||
try{ |
||||
var response = await _Repo.AppendSolicitudEliminarReferencia(solicitud); |
||||
return Ok(response); |
||||
}catch(Exception ex){ |
||||
return BadRequest(ex.Message); |
||||
} |
||||
} |
||||
|
||||
[HttpGet("EliminarCuenta/Get")] |
||||
public async Task<IActionResult> GetSolicitudEliminarCuenta([FromQuery] int idTrafico){ |
||||
try{ |
||||
var solicitud = await _Repo.GetSolicitudEliminarReferencia(idTrafico); |
||||
return Ok(solicitud); |
||||
}catch(Exception ex){ |
||||
return BadRequest(ex.Message); |
||||
} |
||||
} |
||||
} |
||||
} |
@ -1,252 +0,0 @@ |
||||
using System.Globalization; |
||||
using CORRESPONSALBackend.Contracts.Reportes.Alen; |
||||
using CORRESPONSALBackend.Contracts.Utils; |
||||
using CORRESPONSALBackend.DTO.Reportes.Alen; |
||||
using CORRESPONSALBackend.Models.Clientes.Alen; |
||||
using CORRESPONSALBackend.Models.Utils; |
||||
using Microsoft.AspNetCore.Authorization; |
||||
using Microsoft.AspNetCore.Mvc; |
||||
using OfficeOpenXml; |
||||
using OfficeOpenXml.Style; |
||||
using OfficeOpenXml.Table; |
||||
|
||||
namespace CORRESPONSALBackend.Controllers.Reportes.Alen{ |
||||
[Authorize] |
||||
[ApiController] |
||||
[Route("api/[controller]")]
|
||||
public class ReporteEstadosCuentaAlenController : ControllerBase{ |
||||
|
||||
private readonly IFileManagerRepository _Repo; |
||||
private readonly IFilePaths4ProcessRepository _RepoRelativePath; |
||||
private readonly IConfiguration _config; |
||||
private readonly string RootPathCorresponsales; |
||||
private readonly IEstadosCuentaAlenRepository _EstadosCuentaAlenRepo; |
||||
public ReporteEstadosCuentaAlenController(IFilePaths4ProcessRepository RepoRelativePath, IConfiguration config, IFileManagerRepository Repo, IEstadosCuentaAlenRepository EstadosCuentaAlenRepo){ |
||||
_Repo = Repo; |
||||
_RepoRelativePath = RepoRelativePath; |
||||
_config = config; |
||||
RootPathCorresponsales = _config.GetValue<string>("AllFiles"); |
||||
_EstadosCuentaAlenRepo = EstadosCuentaAlenRepo; |
||||
} |
||||
|
||||
[HttpPost("Append")] |
||||
public async Task<IActionResult> Append(IFormFile file){ |
||||
try{ |
||||
await _EstadosCuentaAlenRepo.ClearData(); |
||||
//Obtener la ruta del archivo |
||||
//Se obtiene la ruta del archivo |
||||
//FileManager recFound = await _Repo.getFileById(45); |
||||
FilePaths4Process RelativePath = await _RepoRelativePath.getPaths4ProcessById(45); |
||||
|
||||
if(!System.IO.Directory.Exists(RootPathCorresponsales + RelativePath.Path)){ |
||||
System.IO.Directory.CreateDirectory(RootPathCorresponsales + RelativePath.Path); |
||||
} |
||||
|
||||
string filePath = RootPathCorresponsales + RelativePath.Path + file.FileName; |
||||
if(System.IO.File.Exists(filePath)){ |
||||
System.IO.File.Delete(filePath); |
||||
} |
||||
//Si es un archivo nuevo se guarda |
||||
using(var stream = System.IO.File.Create(filePath)){ |
||||
await file.CopyToAsync(stream); |
||||
} |
||||
//Leer el archivo con epplus |
||||
ExcelPackage.LicenseContext = LicenseContext.NonCommercial; |
||||
using(ExcelPackage package = new ExcelPackage(filePath)){ |
||||
var worksheet = package.Workbook.Worksheets.FirstOrDefault(); |
||||
int rowCount = 2; |
||||
worksheet.Column(18).Style.Numberformat.Format = "yyyy-mm-dd"; |
||||
worksheet.Column(19).Style.Numberformat.Format = "yyyy-mm-dd"; |
||||
worksheet.Column(20).Style.Numberformat.Format = "yyyy-mm-dd"; |
||||
while(string.IsNullOrWhiteSpace(worksheet?.Cells[rowCount, 4].Value?.ToString()) == false){ |
||||
EstadosCuenta estadoCuenta = new EstadosCuenta(){ |
||||
id=0, |
||||
TipoMovimiento = worksheet.Cells[rowCount, 1].Value != null ? worksheet.Cells[rowCount, 1].Value?.ToString() : "", |
||||
NoSerie = worksheet.Cells[rowCount, 2].Value != null ? worksheet.Cells[rowCount, 2].Value?.ToString() : "", |
||||
NoMovimiento = worksheet.Cells[rowCount, 3].Value != null ? worksheet.Cells[rowCount, 3].Value?.ToString() : "", |
||||
Trafico = worksheet.Cells[rowCount, 4].Value != null ? worksheet.Cells[rowCount, 4].Value?.ToString() : "", |
||||
Impexp = worksheet.Cells[rowCount, 5].Value != null ? worksheet.Cells[rowCount, 5].Value?.ToString() : "", |
||||
Aduana = worksheet.Cells[rowCount, 6].Value != null ? worksheet.Cells[rowCount, 6].Value?.ToString() : "", |
||||
Patente = worksheet.Cells[rowCount, 7].Value != null ? worksheet.Cells[rowCount, 7].Value?.ToString() : "", |
||||
Pedimento = worksheet.Cells[rowCount, 8].Value != null ? worksheet.Cells[rowCount, 8].Value?.ToString() : "", |
||||
Clave = worksheet.Cells[rowCount, 9].Value != null ? worksheet.Cells[rowCount, 9].Value?.ToString() : "", |
||||
NoCliente = worksheet.Cells[rowCount, 10].Value != null ? worksheet.Cells[rowCount, 10].Value?.ToString() : "", |
||||
NoCentro = worksheet.Cells[rowCount, 11].Value != null ? worksheet.Cells[rowCount, 11].Value?.ToString() : "", |
||||
SubCentro = worksheet.Cells[rowCount, 12].Value != null ? worksheet.Cells[rowCount, 12].Value?.ToString() : "", |
||||
Nombre = worksheet.Cells[rowCount, 13].Value != null ? worksheet.Cells[rowCount, 13].Value?.ToString() : "", |
||||
SubCtaNombre = worksheet.Cells[rowCount, 14].Value != null ? worksheet.Cells[rowCount, 14].Value?.ToString() : "", |
||||
TipoRangos = worksheet.Cells[rowCount, 15].Value != null ? worksheet.Cells[rowCount, 15].Value?.ToString() : "", |
||||
Cargos = worksheet.Cells[rowCount, 16].Value != null ? worksheet.Cells[rowCount, 16].Value?.ToString() : "", |
||||
Abonos = worksheet.Cells[rowCount, 17].Value != null ? worksheet.Cells[rowCount, 17].Value?.ToString() : "", |
||||
Fecha = worksheet.Cells[rowCount, 18].Value != null ? StringToDateTime(worksheet.Cells[rowCount, 18].Value?.ToString().Substring(0,10)) : "", |
||||
FechaPedimento = worksheet.Cells[rowCount, 19].Value != null ? StringToDateTime(worksheet.Cells[rowCount, 19].Value?.ToString().Substring(0,10)) : "", |
||||
FechaRev = worksheet.Cells[rowCount, 20].Value != null ? StringToDateTime(worksheet.Cells[rowCount, 20].Value?.ToString().Substring(0,10)) : "", |
||||
DiasPedimCta = worksheet.Cells[rowCount, 21].Value != null ? worksheet.Cells[rowCount, 21].Value?.ToString() : "", |
||||
DiasCtaRev = worksheet.Cells[rowCount, 22].Value != null ? worksheet.Cells[rowCount, 22].Value?.ToString() : "", |
||||
DiasRev = worksheet.Cells[rowCount, 23].Value != null ? worksheet.Cells[rowCount, 23].Value?.ToString() : "", |
||||
IvaAl = worksheet.Cells[rowCount, 24].Value != null ? worksheet.Cells[rowCount, 24].Value?.ToString() : "", |
||||
TotalFacturado = worksheet.Cells[rowCount, 25].Value != null ? worksheet.Cells[rowCount, 25].Value?.ToString() : "", |
||||
SaldoFinal = worksheet.Cells[rowCount, 26].Value != null ? worksheet.Cells[rowCount, 26].Value?.ToString() : "", |
||||
Anticipo = worksheet.Cells[rowCount, 27].Value != null ? worksheet.Cells[rowCount, 27].Value?.ToString() : "", |
||||
UUID = worksheet.Cells[rowCount, 28].Value != null ? worksheet.Cells[rowCount, 28].Value?.ToString() : "", |
||||
Descripcion = worksheet.Cells[rowCount, 29].Value != null ? worksheet.Cells[rowCount, 29].Value?.ToString() : "", |
||||
Remitente = worksheet.Cells[rowCount, 30].Value != null ? worksheet.Cells[rowCount, 30].Value?.ToString() : "", |
||||
Pedido = worksheet.Cells[rowCount, 31].Value != null ? worksheet.Cells[rowCount, 31].Value?.ToString() : "", |
||||
TipoMercancia = worksheet.Cells[rowCount, 32].Value != null ? worksheet.Cells[rowCount, 32].Value?.ToString() : "", |
||||
CampoAdicional5 = worksheet.Cells[rowCount, 33].Value != null ? worksheet.Cells[rowCount, 33].Value?.ToString() : "", |
||||
}; |
||||
var resp = await _EstadosCuentaAlenRepo.Append(estadoCuenta); |
||||
rowCount++; |
||||
} |
||||
} |
||||
return Ok(); |
||||
}catch(Exception ex){ |
||||
return BadRequest(ex.Message); |
||||
} |
||||
} |
||||
|
||||
private string StringToDateTime(string s){ |
||||
return DateTime.ParseExact(s, "dd/MM/yyyy",CultureInfo.InvariantCulture).ToString("yyyy-MM-dd"); |
||||
} |
||||
|
||||
[HttpGet("GetAll")] |
||||
public async Task<IActionResult> GetAll([FromQuery] DTOEstadosCuentaAlenFilters filters){ |
||||
try{ |
||||
var estados = await _EstadosCuentaAlenRepo.GetAll(filters); |
||||
return Ok(estados); |
||||
}catch(Exception ex){ |
||||
return BadRequest(ex.Message); |
||||
} |
||||
} |
||||
|
||||
[HttpPost("Export")] |
||||
public async Task<IActionResult> Export([FromBody] DTOEstadosCuentaAlen[] estados){ |
||||
try{ |
||||
ExcelPackage.LicenseContext = LicenseContext.NonCommercial; |
||||
using (ExcelPackage excelPackage = new ExcelPackage()){ |
||||
var worksheet = excelPackage.Workbook.Worksheets.Add("sheet1"); |
||||
int rowCount = 2; |
||||
worksheet.Cells[$"A1"].Value = "Serie"; |
||||
worksheet.Cells[$"B1"].Value = "Movimiento"; |
||||
worksheet.Cells[$"C1"].Value = "Fecha"; |
||||
worksheet.Cells[$"D1"].Value = "Trafico"; |
||||
worksheet.Cells[$"E1"].Value = "Aduana"; |
||||
worksheet.Cells[$"F1"].Value = "Patente"; |
||||
worksheet.Cells[$"G1"].Value = "Pedimento"; |
||||
worksheet.Cells[$"H1"].Value = "Cve. Pedim."; |
||||
worksheet.Cells[$"I1"].Value = "Impo/Expo"; |
||||
worksheet.Cells[$"J1"].Value = "No. Cte."; |
||||
worksheet.Cells[$"K1"].Value = "Nombre Cliente"; |
||||
worksheet.Cells[$"L1"].Value = "Cargos"; |
||||
worksheet.Cells[$"M1"].Value = "Abonos"; |
||||
worksheet.Cells[$"N1"].Value = "SaldoFinal"; |
||||
worksheet.Cells[$"O1"].Value = "% IVA"; |
||||
worksheet.Cells[$"P1"].Value = "Descripcion"; |
||||
worksheet.Cells[$"Q1"].Value = "Remitente"; |
||||
worksheet.Cells[$"R1"].Value = "Pedido"; |
||||
worksheet.Cells[$"S1"].Value = "Orden Compra"; |
||||
worksheet.Cells[$"T1"].Value = "Tipo Mcia"; |
||||
foreach (var estado in estados){ |
||||
worksheet.Cells[$"A{rowCount}"].Value = estado.Serie; |
||||
worksheet.Cells[$"B{rowCount}"].Value = estado.NoMovimiento; |
||||
worksheet.Cells[$"C{rowCount}"].Value = estado.Fecha; |
||||
worksheet.Cells[$"D{rowCount}"].Value = estado.Trafico; |
||||
worksheet.Cells[$"E{rowCount}"].Value = estado.Aduana; |
||||
worksheet.Cells[$"F{rowCount}"].Value = estado.Patente; |
||||
worksheet.Cells[$"G{rowCount}"].Value = estado.Pedimento; |
||||
worksheet.Cells[$"H{rowCount}"].Value = estado.Clave; |
||||
worksheet.Cells[$"I{rowCount}"].Value = estado.Impexp; |
||||
worksheet.Cells[$"J{rowCount}"].Value = estado.NoCliente; |
||||
worksheet.Cells[$"K{rowCount}"].Value = estado.Nombre; |
||||
worksheet.Cells[$"L{rowCount}"].Value = estado.Cargos; |
||||
worksheet.Cells[$"M{rowCount}"].Value = estado.Abonos; |
||||
worksheet.Cells[$"N{rowCount}"].Value = estado.SaldoFinal; |
||||
worksheet.Cells[$"O{rowCount}"].Value = estado.IvaAl; |
||||
worksheet.Cells[$"P{rowCount}"].Value = estado.Descripcion; |
||||
worksheet.Cells[$"Q{rowCount}"].Value = estado.Remitente; |
||||
worksheet.Cells[$"R{rowCount}"].Value = estado.Pedido; |
||||
worksheet.Cells[$"S{rowCount}"].Value = estado.OrdenCompra; |
||||
worksheet.Cells[$"T{rowCount}"].Value = estado.TipoMercancia; |
||||
rowCount++; |
||||
} |
||||
ExcelRange range = worksheet.Cells[1, 1,estados.Count() + 1, 20]; |
||||
ExcelTable tab = worksheet.Tables.Add(range, "Table1"); |
||||
tab.TableStyle = TableStyles.Light1; |
||||
worksheet.Cells[worksheet.Dimension.Address].AutoFitColumns(); |
||||
worksheet.Cells[worksheet.Dimension.Address].Style.VerticalAlignment = ExcelVerticalAlignment.Center; |
||||
excelPackage.Workbook.Calculate(); |
||||
var stream = new MemoryStream(); |
||||
excelPackage.SaveAs(stream); |
||||
if(stream.Length > 0){ |
||||
stream.Position = 0; |
||||
return File(stream,"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml", $"Reporte_Operaciones.xlsx"); |
||||
}else{ |
||||
throw new Exception("Ocurrio un error al generar el reporte, intentelo de nuevo"); |
||||
} |
||||
} |
||||
}catch(Exception ex){ |
||||
return BadRequest(ex.Message); |
||||
} |
||||
} |
||||
|
||||
[HttpPost("AppendProgramacionesPago")] |
||||
public async Task<IActionResult> AppendProgramacionesPago(IFormFile file){ |
||||
try{ |
||||
FilePaths4Process RelativePath = await _RepoRelativePath.getPaths4ProcessById(46); |
||||
|
||||
if(!System.IO.Directory.Exists(RootPathCorresponsales + RelativePath.Path)){ |
||||
System.IO.Directory.CreateDirectory(RootPathCorresponsales + RelativePath.Path); |
||||
} |
||||
|
||||
string filePath = RootPathCorresponsales + RelativePath.Path + file.FileName; |
||||
if(System.IO.File.Exists(filePath)){ |
||||
System.IO.File.Delete(filePath); |
||||
} |
||||
//Si es un archivo nuevo se guarda |
||||
using(var stream = System.IO.File.Create(filePath)){ |
||||
await file.CopyToAsync(stream); |
||||
} |
||||
//Leer el archivo con epplus |
||||
ExcelPackage.LicenseContext = LicenseContext.NonCommercial; |
||||
using(ExcelPackage package = new ExcelPackage(filePath)){ |
||||
var worksheet = package.Workbook.Worksheets.FirstOrDefault(); |
||||
int rowCount = 3; |
||||
while(string.IsNullOrWhiteSpace(worksheet?.Cells[rowCount, 2].Value?.ToString()) == false){ |
||||
//Quitar el prefijo de la serie del numero de cuenta. |
||||
string folio = worksheet.Cells[rowCount, 2].Value != null ? worksheet.Cells[rowCount, 2].Value?.ToString().Substring(1,5) : ""; |
||||
//Buscar el registro de la cuenta |
||||
var cuenta = await _EstadosCuentaAlenRepo.GetByFolio(folio); |
||||
if(cuenta.id != 0){ |
||||
//Hacer la llamada a al base de datos para actualizar el registro |
||||
cuenta = await _EstadosCuentaAlenRepo.MarkAsProgramado(cuenta.NoMovimiento, cuenta.NoSerie); |
||||
} |
||||
rowCount++; |
||||
} |
||||
} |
||||
return Ok(); |
||||
}catch(Exception ex){ |
||||
return BadRequest(ex.Message); |
||||
} |
||||
} |
||||
|
||||
[HttpPost("AppendOrdenCompra")] |
||||
public async Task<IActionResult> AppendOrdenCompra([FromBody] DTOEstadosCuentaAlen data){ |
||||
try{ |
||||
var trafico = await _EstadosCuentaAlenRepo.AppendOrdenCompra(data); |
||||
return Ok(trafico); |
||||
}catch(Exception ex){ |
||||
return BadRequest(ex.Message); |
||||
} |
||||
} |
||||
|
||||
[HttpPost("AppendObservaciones")] |
||||
public async Task<IActionResult> AppendObservaciones([FromBody] DTOEstadosCuentaAlen data){ |
||||
try{ |
||||
var trafico = await _EstadosCuentaAlenRepo.AppendObservaciones(data); |
||||
return Ok(trafico); |
||||
}catch(Exception ex){ |
||||
return BadRequest(ex.Message); |
||||
} |
||||
} |
||||
} |
||||
} |
@ -1,54 +0,0 @@ |
||||
using CORRESPONSALBackend.Contracts.Reportes.Facturacion; |
||||
using CORRESPONSALBackend.DTO.Reportes; |
||||
using Microsoft.AspNetCore.Authorization; |
||||
using Microsoft.AspNetCore.Mvc; |
||||
using OfficeOpenXml; |
||||
using OfficeOpenXml.Table; |
||||
|
||||
namespace CORRESPONSALBackend.Controllers.Reportes.Facturacion{ |
||||
[Authorize] |
||||
[ApiController] |
||||
[Route("api/[controller]")]
|
||||
public class ReportesFacturacionController : ControllerBase{ |
||||
private readonly IReportesFacturacionRepository _cuentasRepo; |
||||
|
||||
public ReportesFacturacionController(IReportesFacturacionRepository cuentasRepo){ |
||||
_cuentasRepo = cuentasRepo; |
||||
} |
||||
|
||||
[HttpGet("CuentasFacturadas")] |
||||
public async Task<IActionResult> GetCuentasFacturadas([FromQuery] DTOReporteCorresponsales data){ |
||||
try{ |
||||
var cuentas = await _cuentasRepo.GetCuentasFacturadas(data); |
||||
return Ok(cuentas); |
||||
}catch(Exception ex){ |
||||
return BadRequest(ex.Message); |
||||
} |
||||
} |
||||
|
||||
[HttpGet("FacturacionExcel")] |
||||
public async Task<IActionResult> GetFacturacionExcel([FromQuery] DTOReporteCorresponsales data ){ |
||||
try{ |
||||
var traficos = await _cuentasRepo.GetCuentasFacturadas(data); |
||||
var today = DateTime.Now; |
||||
ExcelPackage.LicenseContext = LicenseContext.NonCommercial; |
||||
using (ExcelPackage excelPackage = new ExcelPackage()){ |
||||
var worksheet = excelPackage.Workbook.Worksheets.Add("sheet1"); |
||||
worksheet.Cells["A1"].LoadFromCollection(traficos, true); |
||||
//Se crea la tabla en el rango de celdas donde se mostrara la inforamcion. |
||||
ExcelRange range = worksheet.Cells[1, 1,traficos.Count() + 1, 27]; |
||||
ExcelTable tab = worksheet.Tables.Add(range, "Table1"); |
||||
tab.TableStyle = TableStyles.Light1; |
||||
worksheet.Cells[worksheet.Dimension.Address].AutoFitColumns(); |
||||
excelPackage.Workbook.Calculate(); |
||||
var stream = new MemoryStream(); |
||||
excelPackage.SaveAs(stream); |
||||
stream.Position = 0; |
||||
return File(stream, "application/octet-stream", $"ReporteFacturacion_{today.Day}-{today.Month}-{today.Year}.xlsx"); |
||||
} |
||||
}catch(Exception ex){ |
||||
return BadRequest(ex.Message); |
||||
} |
||||
} |
||||
} |
||||
} |
@ -1,30 +0,0 @@ |
||||
using CORRESPONSALBackend.Contracts.Reportes.CuentasCerradas; |
||||
using Microsoft.AspNetCore.Authorization; |
||||
using Microsoft.AspNetCore.Mvc; |
||||
|
||||
namespace CORRESPONSALBackend.Controllers.Reportes{ |
||||
[Authorize] |
||||
[Route("api/[controller]")]
|
||||
[ApiController] |
||||
public class ReporteCuentasCerradasController : ControllerBase{ |
||||
private readonly IReporteCuentasCerradasService _service; |
||||
private readonly IReporteCuentasCerradasRepository _repository; |
||||
public ReporteCuentasCerradasController(IReporteCuentasCerradasService service, IReporteCuentasCerradasRepository repository){ |
||||
_service = service; |
||||
_repository = repository; |
||||
} |
||||
|
||||
[HttpGet("GetExcel")] |
||||
public async Task<IActionResult> ReporteCuentasCerradas([FromQuery] string Inicio, string Fin, int TipoOperacion, int NoCliente, int IdCorresponsal){ |
||||
try{ |
||||
var cuentas = await _repository.GetCuentasCerradas(Inicio, Fin, TipoOperacion, NoCliente, IdCorresponsal); |
||||
var stream = await _service.GetExcel(cuentas); |
||||
stream.Position = 0; |
||||
return File(stream, "application/octet-stream", $"Reporte.xlsx"); |
||||
}catch(Exception ex){ |
||||
return BadRequest(ex.Message); |
||||
} |
||||
} |
||||
|
||||
} |
||||
} |
@ -1,43 +0,0 @@ |
||||
using CORRESPONSALBackend.Contracts.Reportes.GC50; |
||||
using CORRESPONSALBackend.DTO.Corresponsales; |
||||
using CORRESPONSALBackend.DTO.Reportes; |
||||
using CORRESPONSALBackend.DTO.Reportes.GC50; |
||||
using Microsoft.AspNetCore.Authorization; |
||||
using Microsoft.AspNetCore.Mvc; |
||||
using OfficeOpenXml; |
||||
using OfficeOpenXml.Table; |
||||
|
||||
namespace CORRESPONSALBackend.Controllers.Reportes{ |
||||
[Authorize] |
||||
[Route("api/[controller]")]
|
||||
[ApiController] |
||||
public class ReporteGC50Controller : ControllerBase{ |
||||
private readonly IReporteGC50Repository _reportesRepo; |
||||
private readonly IReporteGC50Service _service; |
||||
public ReporteGC50Controller(IReporteGC50Repository reportesRepo, IReporteGC50Service service) |
||||
{ |
||||
_reportesRepo = reportesRepo; |
||||
_service = service; |
||||
} |
||||
|
||||
[HttpGet] |
||||
public async Task<IEnumerable<DTOReporteGC50>> GetAllCorresponsalesTraficos([FromQuery] DTOReporteCorresponsales data) |
||||
{ |
||||
var entrada = await _reportesRepo.GetAllCorresponsalesTraficos(data); |
||||
return entrada; |
||||
} |
||||
|
||||
[HttpGet("ExcelGc50")] |
||||
public async Task<IActionResult> GetExcelGc50([FromQuery] DTOReporteCorresponsales data ){ |
||||
try{ |
||||
var traficos = await _reportesRepo.GetAllCorresponsalesTraficos(data); |
||||
var today = DateTime.Now; |
||||
var stream = await _service.GetExcel(traficos); |
||||
stream.Position = 0; |
||||
return File(stream, "application/octet-stream", $"ReporteGC50_{today.Day}-{today.Month}-{today.Year}.xlsx"); |
||||
}catch(Exception ex){ |
||||
return BadRequest(ex.Message); |
||||
} |
||||
} |
||||
} |
||||
} |
@ -1,58 +0,0 @@ |
||||
using CORRESPONSALBackend.Contracts.Corresponsalias; |
||||
using CORRESPONSALBackend.Contracts.Reportes.Alen; |
||||
using Microsoft.AspNetCore.Authorization; |
||||
using Microsoft.AspNetCore.Mvc; |
||||
|
||||
namespace CORRESPONSALBackend.Controllers.Reportes{ |
||||
[Authorize] |
||||
[Route("api/[controller]")]
|
||||
[ApiController] |
||||
public class ReportesAlenController : ControllerBase{ |
||||
|
||||
private readonly ICorresponsaliasTraficosRepository _traficosRepository; |
||||
private readonly ICorresponsaliasFacturasRepository _facturasRepository; |
||||
private readonly ICorresponsaliasContenedoresRepository _contenedoresRepository; |
||||
private readonly IReportesAlenService _reportesAlenService; |
||||
public ReportesAlenController(ICorresponsaliasTraficosRepository traficosRepository, ICorresponsaliasFacturasRepository facturasRepository, |
||||
IReportesAlenService reportesAlenService, ICorresponsaliasContenedoresRepository contenedoresRepository){ |
||||
_traficosRepository = traficosRepository; |
||||
_facturasRepository = facturasRepository; |
||||
_contenedoresRepository = contenedoresRepository; |
||||
_reportesAlenService = reportesAlenService; |
||||
} |
||||
|
||||
[HttpGet("RelacionFacturas")] |
||||
public async Task<IActionResult> GetRelacionFacturas([FromQuery] string referencia){ |
||||
try{ |
||||
var trafico = await _traficosRepository.GetByReferencia(referencia); |
||||
var facturas = await _facturasRepository.GetAll(trafico.id); |
||||
var contenedores = await _contenedoresRepository.GetAll(trafico.id); |
||||
var stream = await _reportesAlenService.GetRelacionFacturas(trafico, facturas, contenedores); |
||||
if(stream.Length > 0){ |
||||
stream.Position = 0; |
||||
return File(stream,"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml", $"RelacionFacturas.xlsx"); |
||||
}else{ |
||||
throw new Exception("Ocurrio un error al generar el reporte, intentelo de nuevo"); |
||||
} |
||||
}catch(Exception ex){ |
||||
return BadRequest(ex.Message); |
||||
} |
||||
} |
||||
|
||||
[HttpGet("FacturasConsolidados")] |
||||
public async Task<IActionResult> FacturasConsolidados([FromQuery] string referencia){ |
||||
try{ |
||||
var trafico = await _traficosRepository.GetByReferencia(referencia); |
||||
var stream = await _reportesAlenService.GetReporteFacturasTraficoConsolidado(referencia); |
||||
if(stream.Length > 0){ |
||||
stream.Position = 0; |
||||
return File(stream,"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml", $"FacturasConsolidado_{trafico.FolioGemco}.xlsx"); |
||||
}else{ |
||||
throw new Exception("Ocurrio un error al generar el reporte, intentelo de nuevo"); |
||||
} |
||||
}catch(Exception ex){ |
||||
return BadRequest(ex.Message); |
||||
} |
||||
} |
||||
} |
||||
} |
@ -1,84 +0,0 @@ |
||||
using System.Drawing; |
||||
using CORRESPONSALBackend.Contracts.Reportes.Embarques; |
||||
using CORRESPONSALBackend.DTO.Reportes.Embarques; |
||||
using Microsoft.AspNetCore.Authorization; |
||||
using Microsoft.AspNetCore.Mvc; |
||||
using OfficeOpenXml; |
||||
using OfficeOpenXml.Drawing; |
||||
using OfficeOpenXml.Style; |
||||
using OfficeOpenXml.Table; |
||||
|
||||
namespace CORRESPONSALBackend.Controllers.Reportes{ |
||||
[Authorize] |
||||
[Route("api/[controller]")]
|
||||
[ApiController] |
||||
public class ReportesEmbarquesController : ControllerBase{ |
||||
private readonly IReportesEmbarquesRepository _repo; |
||||
private readonly IConfiguration _config; |
||||
private readonly IReportesEmbarquesService _service; |
||||
private readonly string RootPathCorresponsales; |
||||
private readonly string PathLogoGemco; |
||||
private readonly string LogoGemcoFileName = "LogoGemco.png"; |
||||
public ReportesEmbarquesController(IReportesEmbarquesRepository repo, IConfiguration config, IReportesEmbarquesService service){ |
||||
_repo = repo; |
||||
_config = config; |
||||
_service = service; |
||||
RootPathCorresponsales = _config.GetValue<string>("AllFiles"); |
||||
PathLogoGemco = _config.GetValue<string>("LogoGemco"); |
||||
} |
||||
|
||||
[HttpGet("PorImportar")] |
||||
public async Task<IEnumerable<DTOEmbarquesPorImportar>> GetReporteEmbarquesPorImportar(){ |
||||
var embarques = await _repo.GetReporteEmbarquesPorImportar(); |
||||
return embarques; |
||||
} |
||||
|
||||
[HttpGet("Despachados")] |
||||
public async Task<IEnumerable<DTOEmbarquesDespachados>> GetReporteEmbarquesDespachados([FromQuery] DateTime inicio, [FromQuery] DateTime fin){ |
||||
var embarques = await _repo.GetReporteEmbarquesDespachados(inicio, fin); |
||||
return embarques; |
||||
} |
||||
|
||||
[HttpGet("BuscarEmbarques")] |
||||
public async Task<IEnumerable<DTOBuscarEmbarques>> BuscarEmbarques([FromQuery] string filtro){ |
||||
var embarques = await _repo.BuscarEmbarques(filtro); |
||||
return embarques; |
||||
} |
||||
|
||||
[HttpGet("ExcelEmbarquesPorImportar")] |
||||
public async Task<IActionResult> GetExcelEmbarquesPorImportar(){ |
||||
try{ |
||||
var embarques = await _repo.GetReporteEmbarquesPorImportar(); |
||||
string filePath = RootPathCorresponsales + PathLogoGemco + LogoGemcoFileName; |
||||
var stream = await _service.GetExcelEmbarquesPorImportar(embarques, filePath); |
||||
return File(stream, "application/octet-stream", "ReporteEmbarquesSinImportar.xlsx"); |
||||
}catch(Exception ex){ |
||||
return BadRequest(ex.Message); |
||||
} |
||||
} |
||||
|
||||
[HttpGet("ExcelEmbarquesDespachados")] |
||||
public async Task<ActionResult> GetExcelEmbarquesDespachados([FromQuery] DateTime inicio, [FromQuery] DateTime fin){ |
||||
try{ |
||||
var embarques = await _repo.GetReporteEmbarquesDespachados(inicio, fin); |
||||
string filePath = RootPathCorresponsales + PathLogoGemco + LogoGemcoFileName; |
||||
var stream = await _service.GetExcelEmbarquesDespachados(embarques, filePath); |
||||
return File(stream, "application/octet-stream", "ReporteEmbarquesSinImportar.xlsx"); |
||||
}catch(Exception ex){ |
||||
return BadRequest(ex.Message); |
||||
} |
||||
} |
||||
|
||||
[HttpGet("ExcelBuscarEmbarques")] |
||||
public async Task<IActionResult> GetExcelBusquedaEmbarques([FromQuery] string filtro){ |
||||
try{ |
||||
var embarques = await _repo.BuscarEmbarques(filtro); |
||||
string filePath = RootPathCorresponsales + PathLogoGemco + LogoGemcoFileName; |
||||
var stream = await _service.GetExcelBusquedaEmbarques(embarques, filePath); |
||||
return File(stream, "application/octet-stream", "ReporteEmbarques.xlsx"); |
||||
}catch(Exception ex){ |
||||
return BadRequest(ex.Message); |
||||
} |
||||
} |
||||
} |
||||
} |
@ -1,54 +0,0 @@ |
||||
using Microsoft.AspNetCore.Mvc; |
||||
using Microsoft.AspNetCore.Authorization; |
||||
using CORRESPONSALBackend.Contracts.Utils; |
||||
using CORRESPONSALBackend.Models.Utils; |
||||
using OfficeOpenXml; |
||||
using OfficeOpenXml.Table; |
||||
using OfficeOpenXml.Style; |
||||
using CORRESPONSALBackend.Contracts.Reportes.Newell.Mensual; |
||||
using CORRESPONSALBackend.Contracts.Reportes.Newell.Semanal; |
||||
|
||||
namespace CORRESPONSALBackend.Controllers.Reportes{ |
||||
[Authorize] |
||||
[Route("api/[controller]")]
|
||||
[ApiController] |
||||
public class ReportesNewellController : ControllerBase |
||||
{ |
||||
private readonly IReporteMensualRepository _reporteMensualRepository; |
||||
private readonly IReporteMensualService _reporteMensualService; |
||||
private readonly IReporteSemanalService _reporteSemanalService; |
||||
public ReportesNewellController(IReporteMensualRepository reporteMensualRepository, IReporteMensualService reporteMensualService, IReporteSemanalService reporteSemanalService){ |
||||
_reporteMensualRepository = reporteMensualRepository; |
||||
_reporteMensualService = reporteMensualService; |
||||
_reporteSemanalService = reporteSemanalService; |
||||
} |
||||
|
||||
[HttpGet("ReporteMensual")] |
||||
public async Task<IActionResult> GetReporteMensual([FromQuery] int idTrailasFile, int idRptCdAcunaFile, int idRptLazaroCardenasFile){ |
||||
try{ |
||||
await _reporteMensualRepository.CrearTablasReporteMensual(); |
||||
var stream = await _reporteMensualService.GetReporteMensual(idTrailasFile, idRptCdAcunaFile, idRptLazaroCardenasFile); |
||||
if(stream.Length > 0){ |
||||
stream.Position = 0; |
||||
await _reporteMensualRepository.DropTempTables(); |
||||
return File(stream,"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml", $"ReporteMensual.xlsx"); |
||||
}else{ |
||||
throw new Exception("Ocurrio un error al generar el reporte, intentelo de nuevo"); |
||||
} |
||||
}catch(Exception ex){ |
||||
await _reporteMensualRepository.DropTempTables(); |
||||
return StatusCode(500,ex.Message); |
||||
} |
||||
} |
||||
|
||||
[HttpGet("ReporteSemanal")] |
||||
public async Task<IActionResult> GetReporteSemanal([FromQuery] int idRptSemanalFile){ |
||||
try{ |
||||
var stream = await _reporteSemanalService.GetReporteSemanal(idRptSemanalFile); |
||||
return File(stream,"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml", $"ReporteSemanal.xlsx"); |
||||
}catch(Exception ex){ |
||||
return BadRequest(ex.Message); |
||||
} |
||||
} |
||||
} |
||||
} |
@ -1,93 +0,0 @@ |
||||
using CORRESPONSALBackend.Contracts.ArchivoElectronico; |
||||
using CORRESPONSALBackend.Contracts.Corresponsalias; |
||||
using CORRESPONSALBackend.Contracts.Utils; |
||||
using CORRESPONSALBackend.DTO.ArchivoElectronico; |
||||
using CORRESPONSALBackend.Models.Utils; |
||||
using CORRESPONSALBackend.Repository.Utils; |
||||
using GEMCO.Backend.Models.Reportes; |
||||
using Microsoft.AspNetCore.Mvc; |
||||
|
||||
namespace CORRESPONSALBackend.Controllers.Utils{ |
||||
[Route("api/[controller]")]
|
||||
[ApiController] |
||||
public class ArchivoElectronicoController : ControllerBase { |
||||
|
||||
private readonly IArchivoElectronicoRepository _AERepo; |
||||
private readonly IConfiguration _config; |
||||
private readonly IFilePaths4ProcessRepository _RepoRelativePath; |
||||
private readonly string RootPathCorresponsales; |
||||
private readonly ICorresponsaliasTraficosRepository _traficosRepository; |
||||
private readonly IFileManagerRepository _fileManagerRepo; |
||||
public ArchivoElectronicoController(IArchivoElectronicoRepository AERepo, IConfiguration config, |
||||
ICorresponsaliasTraficosRepository traficosRepository, IFilePaths4ProcessRepository RepoRelativePath, |
||||
IFileManagerRepository fileManagerRepo){ |
||||
_AERepo = AERepo; |
||||
_traficosRepository = traficosRepository; |
||||
_config = config; |
||||
_RepoRelativePath = RepoRelativePath; |
||||
_fileManagerRepo = fileManagerRepo; |
||||
RootPathCorresponsales = _config.GetValue<string>("AllFiles"); |
||||
} |
||||
|
||||
[HttpGet] |
||||
[Route("RptArchivoElectronicoOficial")] |
||||
public async Task<List<RptPedimentosPagadosAEO>> GetReporteArchivElectronicoOficial([FromQuery] DTOAEPeriodo DTOData) |
||||
{ |
||||
List<RptPedimentosPagadosAEO> data = await _AERepo.getRptPedimentoPagadosAEO(DTOData); |
||||
return data; |
||||
} |
||||
|
||||
[HttpPost] |
||||
[Route("DownloadZippedArchivosOficiales")] |
||||
public async Task<IActionResult> DownloadZippedArchivosOficiales([FromBody] DTOAEPeriodoSeleccion data){ |
||||
try{ |
||||
//Se obtiene la ruta donde se alojará temporalmente el zip |
||||
FilePaths4Process tempFilesRelativePath = await _RepoRelativePath.getPaths4ProcessById(44); // Path: Corresponsales\Zips\Facturacion\Entregas\ |
||||
var tempFilesPath = RootPathCorresponsales + tempFilesRelativePath.Path;// Path: C:data\Corresponsales\Zips\Clientes\ArchivosElectronicos |
||||
string tempFolderName = "ReporteArchivosElectronicos";//Nombre del folder Temporal |
||||
string tempFolderPath= tempFilesPath + $"{tempFolderName}\\";//ruta del folder temporal Path: C:data\Corresponsales\Zips\Clientes\ArchivosElectronicos\ReporteArchivosElectronicos |
||||
string zipFileName = $"{tempFolderName}.zip";//Nombre del zip final |
||||
var zipFilePath = tempFilesPath + zipFileName;//Ruta del zip final Path: C:data\Corresponsales\Zips\Clientes\ArchivosElectronicos\ReporteArchivosElectronicos.zip |
||||
|
||||
if(System.IO.File.Exists(zipFilePath)){//Si ya existe un zip de una descarga anterior lo borra |
||||
System.IO.File.Delete(zipFilePath); |
||||
} |
||||
|
||||
if(System.IO.Directory.Exists(tempFolderPath)){//Si ya existe la carpeta temporal de una descarga anterior la borra |
||||
System.IO.Directory.Delete(tempFolderPath, true); |
||||
} |
||||
|
||||
System.IO.Directory.CreateDirectory(tempFolderPath);//Se crea el folder temporal donde se pondran los archivos oficiales |
||||
foreach(var referencia in data.Referencias){ |
||||
var trafico = await _traficosRepository.GetByReferencia(referencia); |
||||
string folderAE = tempFolderPath + $"{referencia}\\";//Se obtiene el nombre de la subcarpeta del AE de cada referencia |
||||
if(System.IO.Directory.Exists(folderAE)){//Si existe la carpeta se borra |
||||
System.IO.Directory.Delete(folderAE); |
||||
} |
||||
System.IO.Directory.CreateDirectory(folderAE);//Se crea la carpeta |
||||
//Obtener la lista de archivos de la referencia actual. |
||||
var filesLog = await _fileManagerRepo.GetTraficoFiles(trafico.id); |
||||
var filteredFilesLog = filesLog.Where(x => new List<int>(){2,10,11,12,13,14,15,19,17,18,37,38,39,41}.Contains(x.Proceso)); |
||||
foreach(var fileLog in filteredFilesLog){ |
||||
FilePaths4Process fileRelativePath = await _RepoRelativePath.getPaths4ProcessById(fileLog.Proceso);//Se obtiene la ruta relativa donde debe estar alojado el archivo |
||||
var filePath = RootPathCorresponsales + fileRelativePath.Path + fileLog!.NombreArchivo;//Ahora se obtiene la ruta completa del archivo. |
||||
if(System.IO.File.Exists(filePath)){ |
||||
var bytes = await System.IO.File.ReadAllBytesAsync(filePath); |
||||
var originalFileStream = new MemoryStream(bytes); |
||||
using(var tempFileStream = System.IO.File.Create(folderAE + fileLog.NombreArchivo)){ |
||||
await originalFileStream.CopyToAsync(tempFileStream); |
||||
} |
||||
} |
||||
} |
||||
} |
||||
System.IO.Compression.ZipFile.CreateFromDirectory(tempFolderPath, zipFilePath);//Se comprime la carpeta con los archivos electronicos de las referencias |
||||
Directory.Delete(tempFolderPath, true);//Se borra el folder temporal |
||||
var zipBytes = await System.IO.File.ReadAllBytesAsync(zipFilePath); |
||||
var zipStream = new MemoryStream(zipBytes); |
||||
return File(zipStream, "application/zip", zipFileName); |
||||
}catch(Exception ex){ |
||||
return BadRequest(ex.Message); |
||||
} |
||||
} |
||||
} |
||||
} |
@ -1,12 +0,0 @@ |
||||
namespace CORRESPONSALBackend.DTO.Corresponsales{ |
||||
public class DTOPdfAnticipo{ |
||||
public int Id {get;set;} |
||||
public string FolioGemco { get; set; } |
||||
public string Pedimento { get; set; } |
||||
public string Cliente { get; set; } |
||||
public string Producto { get; set; } |
||||
public string FechaCruce { get; set; } |
||||
public string Proveedor { get; set; } |
||||
public string Anticipo { get; set; } |
||||
} |
||||
} |
@ -1,11 +0,0 @@ |
||||
namespace CORRESPONSALBackend.DTO.Corresponsales{ |
||||
public class DTOTraficoSolicitud{ |
||||
public int Id { get; set; } |
||||
public int IdTrafico { get; set; } |
||||
public int IdUsuarioSolicita { get; set; } |
||||
public string UsuarioSolicita { get; set; } |
||||
public string FechaSolicita { get; set; } |
||||
public string MotivoSolicita { get; set; } |
||||
public int Estado { get; set; } |
||||
} |
||||
} |
@ -1,11 +0,0 @@ |
||||
namespace CORRESPONSALBackend.DTO |
||||
{ |
||||
public class DTOCentrosCostos |
||||
{ |
||||
public int id { set; get; } = 0; |
||||
public int idCliente { get; set; } |
||||
public string CentroCostos { get; set; } |
||||
public string NombreCliente {get;set;} |
||||
public int ClienteFacturacion { get; set; } |
||||
} |
||||
} |
@ -1,50 +0,0 @@ |
||||
namespace CORRESPONSALBackend.DTO.Reportes.Alen{ |
||||
public class DTOEstadosCuentaAlen{ |
||||
public int id { get; set; } |
||||
public string? TipoMovimiento { get; set; } = ""; |
||||
public string? NoSerie { get; set; } = ""; |
||||
public string? NoMovimiento {get;set;} = ""; |
||||
public string? Trafico {get;set;} = ""; |
||||
public string? Impexp {get;set;} = ""; |
||||
public string? Aduana {get;set;} = ""; |
||||
public string? Patente {get;set;} = ""; |
||||
public string? Pedimento {get;set;} = ""; |
||||
public string? Clave {get;set;} = ""; |
||||
public string? NoCliente {get;set;} = ""; |
||||
public string? NoCentro {get;set;} = ""; |
||||
public string? SubCentro {get;set;} = ""; |
||||
public string? Nombre {get;set;} = ""; |
||||
public string? SubCtaNombre {get;set;} = ""; |
||||
public string? TipoRangos {get;set;} = ""; |
||||
public string? Cargos {get;set;} = ""; |
||||
public string? Abonos {get;set;} = ""; |
||||
public string? Fecha {get;set;} = ""; |
||||
public string? FechaPedimento {get;set;} = ""; |
||||
public string? FechaRev {get;set;} = ""; |
||||
public string? DiasPedimCta {get;set;} = ""; |
||||
public string? DiasCtaRev {get;set;} = ""; |
||||
public string? DiasRev {get;set;} = ""; |
||||
public string? IvaAl {get;set;} = ""; |
||||
public string? TotalFacturado {get;set;} = ""; |
||||
public string? SaldoFinal {get;set;} = ""; |
||||
public string? Anticipo {get;set;} = ""; |
||||
public string? UUID {get;set;} = ""; |
||||
public string? Descripcion {get;set;} = ""; |
||||
public string? Remitente {get;set;} = ""; |
||||
public string? Pedido {get;set;} = ""; |
||||
public string? TipoMercancia {get;set;} = ""; |
||||
public string? CampoAdicional5 {get;set;} = ""; |
||||
public int? IdPdf {get;set;}=0; |
||||
public string? Pdf {get;set;}=""; |
||||
public int? IdXml {get;set;}=0; |
||||
public string? Xml {get;set;}=""; |
||||
public int? IdNotasCargo {get;set;}=0; |
||||
public string? NotasCargo {get;set;}=""; |
||||
public bool? Programado {get;set;} = false; |
||||
public string? Serie {get;set;} = ""; |
||||
public int? IdOrdenCompra {get;set;} = 0; |
||||
public string? OrdenCompra {get;set;} = ""; |
||||
public int? IdObservaciones {get;set;} = 0; |
||||
public string? Observaciones {get;set;} = ""; |
||||
} |
||||
} |
@ -1,13 +0,0 @@ |
||||
namespace CORRESPONSALBackend.DTO.Reportes.Alen{ |
||||
public class DTOEstadosCuentaAlenFilters{ |
||||
public string? Trafico {get;set;}=""; |
||||
public string? Impexp {get;set;}=""; |
||||
public string? Aduana {get;set;}=""; |
||||
public string? Patente {get;set;}=""; |
||||
public string? Pedimento {get;set;}=""; |
||||
public string? Inicio {get;set;}=""; |
||||
public string? Fin {get;set;}=""; |
||||
public string? Remitente {get;set;}=""; |
||||
public string? Programado {get;set;} = ""; |
||||
} |
||||
} |
@ -1,20 +0,0 @@ |
||||
public class DTOReporteFacturasTraficosConsolidados{ |
||||
public string trafico { get; set; } |
||||
public string TipoOperacion { get; set; } |
||||
public string Cliente { get; set; } |
||||
public string Proveedor { get; set; } |
||||
public string Corresponsal { get; set; } |
||||
public string Aduana { get; set; } |
||||
public int Patente { get; set; } |
||||
public string Pedimento { get; set; } |
||||
public int PedimentoMaster { get; set; } |
||||
public string Fecha { get; set; } |
||||
public string Cuenta { get; set; } |
||||
public string Factura { get; set; } |
||||
public string Descripcion { get; set; } |
||||
public string Semaforo { get; set; } |
||||
public string ClavePedimento { get; set; } |
||||
public string TipoCambio { get; set; } |
||||
public string Operacion { get; set; } |
||||
public string Contenedor { get; set; } |
||||
} |
@ -1,26 +0,0 @@ |
||||
namespace CORRESPONSALBackend.DTO.Reportes.CuentasCerradas{ |
||||
public class DTOCuentasCerradas{ |
||||
public string Trafico { get; set; } |
||||
public string TipoOperacion { get; set; } |
||||
public string Cliente { get; set; } |
||||
public string Proveedor { get; set; } |
||||
public string Corresponsal { get; set; } |
||||
public string Aduana { get; set; } |
||||
public string Patente { get; set; } |
||||
public string Pedimento { get; set; } |
||||
public string FechaPago { get; set; } |
||||
public string Facturas { get; set; } |
||||
public string Descripcion { get; set; } |
||||
public string FechaAlta { get; set; } |
||||
public string Clave { get; set; } |
||||
public string ValorMn { get; set; } |
||||
public string ValorDls { get; set; } |
||||
public string TipoCambio { get; set; } |
||||
public string ValorComercial { get; set; } |
||||
public string Fracciones { get; set; } |
||||
public string TotalPagado { get; set; } |
||||
/* public string Caja { get; set; } |
||||
public string FechaCruce {get;set;} |
||||
public string Semaforo {get;set;} */ |
||||
} |
||||
} |
@ -1,17 +0,0 @@ |
||||
namespace CORRESPONSALBackend.DTO.Reportes |
||||
{ |
||||
public class DTOFiltrosTraficosClientes |
||||
{ |
||||
public string? Inicio { get; set; } = null!; |
||||
public string? Fin { get; set; } = null!; |
||||
public int? TipoOperacion { get; set; } = 0; |
||||
public int? NoCliente { get; set; } = 0; |
||||
public int IdCorresponsal { get; set; } = 0; |
||||
public int Pedimento {get;set;} = 0; |
||||
public int Patente {get;set;} = 0; |
||||
public string Aduana {get;set;} = "0"; |
||||
public string? Referencia { get; set; } = null!; |
||||
public int IdUsuario {get;set;} = 0; |
||||
public int Estado {get;set;} = 0; |
||||
} |
||||
} |
@ -1,11 +0,0 @@ |
||||
namespace CORRESPONSALBackend.DTO.Reportes |
||||
{ |
||||
public class DTOReporteSemanalNewell{ |
||||
public string GC {get;set;} |
||||
public string Contenedor { get; set; } |
||||
public string TipoContenedor {get;set;} |
||||
public string CuentaDeGastos { get; set; } |
||||
public string Razon { get; set; } |
||||
public float Maniobras { get; set; } |
||||
} |
||||
} |
@ -1,45 +0,0 @@ |
||||
namespace CORRESPONSALBackend.DTO.Reportes.Embarques{ |
||||
public class DTOBuscarEmbarques{ |
||||
public int Id { get; set; } |
||||
public string Aduana { get; set; } |
||||
public string TipoEmbarque { get; set; } |
||||
public string Destino { get; set; } |
||||
public int DiasEnAduana { get; set; } |
||||
public string Nombre { get; set; } |
||||
public string NoPedimento { get; set; } |
||||
public string Tipo { get; set; } |
||||
public string OrdenCompra { get; set; } |
||||
public string Factura { get; set; } |
||||
public string Proveedor { get; set; } |
||||
public string DescripcionMercancia { get; set; } |
||||
public int Bultos { get; set; } |
||||
public int CantidadContenedores { get; set; } |
||||
public int PesoNeto { get; set; } |
||||
public string Incoterm { get; set; } |
||||
public string? FechaETA { get; set; } |
||||
public string Estatus { get; set; } |
||||
public string Observaciones { get; set; } |
||||
public string FechaInicioGastosAlmacenaje { get; set; } |
||||
public int CostoDiarioAlmacenaje { get; set; } |
||||
public int CostoDiarioConexion { get; set; } |
||||
public int TotalPagar { get; set; } |
||||
public int TotalPagarConexion { get; set; } |
||||
public string? FechaDespacho { get; set; } |
||||
public string NombrePaqueteria { get; set; } |
||||
public string NoGuiaEmbarqueDestino { get; set; } |
||||
public string? FechaEntregaDestinoFinal { get; set; } |
||||
public int FacturaCorresponsal { get; set; } |
||||
public int CertificadoCalidad { get; set; } |
||||
public int PackingList { get; set; } |
||||
public int HojaTecnica { get; set; } |
||||
public int BL { get; set; } |
||||
public int PedimentoInformativo { get; set; } |
||||
public int PedimentoSimplificado { get; set; } |
||||
public int DODA { get; set; } |
||||
public int Honorarios { get; set; } |
||||
public int TotalHonorarios { get; set; } |
||||
public int GastosTerceros { get; set; } |
||||
public int TotalGastosTerceros { get; set; } |
||||
public int ComprobantesGastosTerceros { get; set; } |
||||
} |
||||
} |
@ -1,69 +0,0 @@ |
||||
namespace CORRESPONSALBackend.DTO.Reportes.Embarques{ |
||||
public class DTOEmbarquesDespachados{ |
||||
public int Id { get; set; } |
||||
public string Aduana { get; set; } |
||||
public string TipoEmbarque { get; set; } |
||||
public string Destino { get; set; } |
||||
public int DiasEnAduana { get; set; } |
||||
public string Nombre { get; set; } |
||||
public string Trafico { get; set; } |
||||
public string Referencia {get;set;} |
||||
public string NoPedimento { get; set; } |
||||
public string ClavePedimento { get; set; } |
||||
public string Tipo { get; set; } |
||||
public string OrdenCompra { get; set; } |
||||
public string Factura { get; set; } |
||||
public string Proveedor { get; set; } |
||||
public string DescripcionMercancia { get; set; } |
||||
public string LineaTransportistaInternacional { get; set; } |
||||
public string LineaNaviera { get; set; } |
||||
public string MAWB { get; set; } |
||||
public string HAWB { get; set; } |
||||
public string? FechaNotificacion { get; set; } |
||||
public int Bultos { get; set; } |
||||
public int CantidadContenedores { get; set; } |
||||
public string NumerosContenedores { get; set; } |
||||
public int PesoBruto { get; set; } |
||||
public int PesoNeto { get; set; } |
||||
public string Incoterm { get; set; } |
||||
public string? FechaETA { get; set; } |
||||
public string? FechaEntrada {get;set;} |
||||
public string? FechaRevalidacionGuia { get; set; } |
||||
public double MontoUSD { get; set; } |
||||
public string Origen { get; set; } |
||||
public string FraccionArancelaria { get; set; } |
||||
public string Descripcion { get; set; } |
||||
public string PreferenciaArancelaria { get; set; } |
||||
public string Estatus { get; set; } |
||||
public string Observaciones { get; set; } |
||||
public string FechaInicioGastosAlmacenaje { get; set; } |
||||
public int CostoDiarioAlmacenaje { get; set; } |
||||
public int CostoDiarioConexion { get; set; } |
||||
public int TotalPagar { get; set; } |
||||
public int TotalPagarConexion { get; set; } |
||||
public string? FechaPagoPedimento { get; set; } |
||||
public string? FechaInstrucciones { get; set; } |
||||
public TimeSpan? HoraInstrucciones { get; set; } |
||||
public string? FechaDespacho { get; set; } |
||||
public int DiasCPPagado {get;set;} |
||||
public string? FechaSalidaContenedores { get; set; } |
||||
public string NombrePaqueteria { get; set; } |
||||
public string NoGuiaEmbarqueDestino { get; set; } |
||||
public string? FechaEntregaDestinoFinal { get; set; } |
||||
public TimeSpan? HoraEntregaDestinoFinal { get; set; } |
||||
public int FacturaCorresponsal { get; set; } |
||||
public int CertificadoCalidad { get; set; } |
||||
public int PackingList { get; set; } |
||||
public int HojaTecnica { get; set; } |
||||
public int BL { get; set; } |
||||
public int PedimentoInformativo { get; set; } |
||||
public int PedimentoSimplificado { get; set; } |
||||
public int DODA { get; set; } |
||||
public int Honorarios { get; set; } |
||||
public int TotalHonorarios { get; set; } |
||||
public int GastosTerceros { get; set; } |
||||
public int TotalGastosTerceros { get; set; } |
||||
public int ComprobantesGastosTerceros { get; set; } |
||||
public int PruebaEntrega { get; set; } |
||||
} |
||||
} |
@ -1,63 +0,0 @@ |
||||
namespace CORRESPONSALBackend.DTO.Reportes.Embarques{ |
||||
public class DTOEmbarquesPorImportar{ |
||||
public int Id { get; set; } |
||||
public string Aduana { get; set; } |
||||
public string TipoEmbarque { get; set; } |
||||
public string Destino { get; set; } |
||||
public int DiasEnAduana { get; set; } |
||||
public string Nombre { get; set; } |
||||
public string Trafico { get; set; } |
||||
public string Referencia {get;set;} |
||||
public string NoPedimento { get; set; } |
||||
public string ClavePedimento { get; set; } |
||||
public string Tipo { get; set; } |
||||
public string OrdenCompra { get; set; } |
||||
public string Factura { get; set; } |
||||
public string Proveedor { get; set; } |
||||
public string DescripcionMercancia { get; set; } |
||||
public string LineaTransportistaInternacional { get; set; } |
||||
public string LineaNaviera { get; set; } |
||||
public string MAWB { get; set; } |
||||
public string HAWB { get; set; } |
||||
public string? FechaNotificacion { get; set; } |
||||
public int Bultos { get; set; } |
||||
public int CantidadContenedores { get; set; } |
||||
public string NumerosContenedores { get; set; } |
||||
public int PesoBruto { get; set; } |
||||
public int PesoNeto { get; set; } |
||||
public string Incoterm { get; set; } |
||||
public string? FechaETA { get; set; } |
||||
public string? FechaEntrada {get;set;} |
||||
public string? FechaRevalidacionGuia { get; set; } |
||||
public double MontoUSD { get; set; } |
||||
public string Origen { get; set; } |
||||
public string FraccionArancelaria { get; set; } |
||||
public string Descripcion { get; set; } |
||||
public string PreferenciaArancelaria { get; set; } |
||||
public string Estatus { get; set; } |
||||
public string Observaciones { get; set; } |
||||
public string FechaInicioGastosAlmacenaje { get; set; } |
||||
public int CostoDiarioAlmacenaje { get; set; } |
||||
public int CostoDiarioConexion { get; set; } |
||||
public int TotalPagar { get; set; } |
||||
public int TotalPagarConexion { get; set; } |
||||
public string? FechaPagoPedimento { get; set; } |
||||
public string? FechaInstrucciones { get; set; } |
||||
public TimeSpan? HoraInstrucciones { get; set; } |
||||
public string? FechaDespacho { get; set; } |
||||
public int DiasCPPagado {get;set;} |
||||
public string? FechaSalidaContenedores { get; set; } |
||||
public string NombrePaqueteria { get; set; } |
||||
public string NoGuiaEmbarqueDestino { get; set; } |
||||
public string? FechaEntregaDestinoFinal { get; set; } |
||||
public TimeSpan? HoraEntregaDestinoFinal { get; set; } |
||||
public int FacturaCorresponsal { get; set; } |
||||
public int CertificadoCalidad { get; set; } |
||||
public int PackingList { get; set; } |
||||
public int HojaTecnica { get; set; } |
||||
public int BL { get; set; } |
||||
public int PedimentoInformativo { get; set; } |
||||
public int PedimentoSimplificado { get; set; } |
||||
public int DODA { get; set; } |
||||
} |
||||
} |
@ -1,32 +0,0 @@ |
||||
namespace CORRESPONSALBackend.DTO.Reportes.Facturacion{ |
||||
public class DTOReporteGeneralFacturacion |
||||
{ |
||||
public string Trafico { get; set; } |
||||
public string Corresponsal { get; set; } |
||||
public string Aduana { get; set; } |
||||
public int Patente { get; set; } |
||||
public string PedimentoCorreponsal { get; set; } |
||||
public string PedimentoCorresponsalR1 { get; set; } |
||||
public string FechaPago { get; set; } |
||||
public string FechaAnticipo { get; set; } |
||||
public double SumaAnticipoCorresponsalFinanciado { get; set; } |
||||
public string FechaAlta { get; set; } |
||||
public string UsuarioAlta { get; set; } |
||||
public int Cliente { get; set; } |
||||
public string Nombrecliente { get; set; } |
||||
public string Cuenta { get; set; } |
||||
public string TipoOperacion { get; set; } |
||||
public string Terminado { get; set; } |
||||
public string FechaRegistroContabilizar { get; set; } |
||||
public string FechaContabilizado { get; set; } |
||||
public string FechaFacturado { get; set; } |
||||
public string FechaFacturaCorresponsal { get; set; } |
||||
public string FechaCruce { get; set; } |
||||
public string MotivoCuentaRechazadaContabilidad { get; set; } |
||||
public string MotivoCuentaRechazadaFacturacion { get; set; } |
||||
public string MotivoSolicitaReapertura { get; set; } |
||||
public string SolicitudReaperturaAutorizada { get; set; } |
||||
public string EstatusOperacion { get; set; } |
||||
public string CargoShipper { get; set; } |
||||
} |
||||
} |
@ -1,27 +0,0 @@ |
||||
namespace CORRESPONSALBackend.DTO.Reportes.GC50{ |
||||
public class DTOReporteGC50{ |
||||
public string Trafico { get; set; } |
||||
public string Corresponsal { get; set; } |
||||
public string Aduana { get; set; } |
||||
public int Patente { get; set; } |
||||
public string PedimentoCorresponsal { get; set; } |
||||
public string PedimentoCorresponsalR1 { get; set; } |
||||
public string? FechaPago { get; set; } |
||||
public string? FechaAnticipo { get; set; } |
||||
public double SumaAnticipoCorresponsalFinanciado { get; set; } |
||||
public string? FechaAlta { get; set; } |
||||
public string UsuarioAlta { get; set; } |
||||
public int Cliente { get; set; } |
||||
public string NombreCliente { get; set; } |
||||
public string Cuenta { get; set; } |
||||
public string TipoOperacion { get; set; } |
||||
public string Terminado { get; set; } |
||||
public string? FechaTerminado { get; set; } |
||||
public string? FechaRegistroContabilizar { get; set; } |
||||
public string? FechaContabilizado { get; set; } |
||||
public string? FechaFacturaCorresponsal { get; set; } |
||||
public string MotivoCuentaRechazada { get; set; } |
||||
public string EstatusOperacion { get; set; } |
||||
public string CargoShipper { get; set; } |
||||
} |
||||
} |
@ -1,20 +0,0 @@ |
||||
public class DTOOperacionesCdAcuna{ |
||||
public string? Aduana { get; set; } |
||||
public string? Patente { get; set; } |
||||
public string? Pedimento { get; set; } |
||||
/*public DateTime? FechaEntrega { get; set; } |
||||
public DateTime? FechaPago { get; set; } |
||||
public string ValorComercialMxn { get; set; } |
||||
public string ValorComercialDlls { get; set; } |
||||
public string ValorAduana { get; set; }*/ |
||||
public string? Clave { get; set; } |
||||
/*public string Iva { get; set; } |
||||
public string Dta { get; set; } |
||||
public string Prv { get; set; } |
||||
public string Lgi { get; set; }*/ |
||||
public string? Factura { get; set; } |
||||
public string? Tc { get; set; } |
||||
public string? Proveedor { get; set; } |
||||
public string? TaxId { get; set; } |
||||
public string? Producto { get; set; } |
||||
} |
@ -1,18 +0,0 @@ |
||||
public class DTOOperacionesLazaroCardenas{ |
||||
public string? Pedimento { get; set; } |
||||
public string? NoContenedor { get; set; } |
||||
public int? CantidadContenedores { get; set; } |
||||
public string? Soia { get; set; } |
||||
public int? TiempoDespacho { get; set; } |
||||
public string? Clave { get; set; } |
||||
public string? PedimentoRectificado { get; set; } |
||||
public string? Causa { get; set; } |
||||
public string? CargoA { get; set; } |
||||
public int? TiempoProceso { get; set; } |
||||
public int? TiempoCruce { get; set; } |
||||
public string? Cumple { get; set; } |
||||
public string? NoCumple { get; set; } |
||||
public string? RazonNoCumple { get; set; } |
||||
public string? CargoDe { get; set; } |
||||
public string? MedioSalida { get; set; } |
||||
} |
@ -1,11 +0,0 @@ |
||||
public class DTOReporteMensualCdAcuna{ |
||||
public string Pedimento { get; set; } |
||||
public string Traila { get; set; } |
||||
public int NoContenedores { get; set; } |
||||
public string Soia { get; set; } |
||||
public int TiempoDespacho { get; set; } |
||||
public string Clave { get; set; } |
||||
public string PedimentoRectificado { get; set; } |
||||
public string Causa { get; set; } |
||||
public string CargoA { get; set; } |
||||
} |
@ -1,8 +0,0 @@ |
||||
public class DTOTrailas{ |
||||
public DateTime? Fecha { get; set; } |
||||
public string? Traila { get; set; } |
||||
public string? Pedimento { get; set; } |
||||
public string? Candado { get; set; } |
||||
public string? Doda { get; set; } |
||||
public string? Soia { get; set; } |
||||
} |
@ -1,10 +0,0 @@ |
||||
namespace CORRESPONSALBackend.Models.Catalogos |
||||
{ |
||||
public class CatCentrosCostos |
||||
{ |
||||
public int id { set; get; } = 0; |
||||
public int idCliente { get; set; } |
||||
public string CentroCostos { get; set; } |
||||
public int ClienteFacturacion { get; set; } |
||||
} |
||||
} |
@ -1,7 +0,0 @@ |
||||
namespace CORRESPONSALBackend.Models.Catalogos{ |
||||
public class CatClavesPedimentos{ |
||||
public int id {get;set;} |
||||
public string Clave {get;set;} |
||||
public string Descripcion {get;set;} |
||||
} |
||||
} |
@ -1,6 +0,0 @@ |
||||
namespace CORRESPONSALBackend.Models.Catalogos{ |
||||
public class CatTiposContenedores { |
||||
public int id { get; set; } |
||||
public string Descripcion { get; set; } |
||||
} |
||||
} |
@ -1,9 +0,0 @@ |
||||
namespace CORRESPONSALBackend.Models.Catalogos |
||||
{ |
||||
public class CatTiposMercancia |
||||
{ |
||||
public int id { set; get; } = 0; |
||||
public string Clave { set; get; } = null!; |
||||
public string Descripcion { set; get; } = null!; |
||||
} |
||||
} |
@ -1,39 +0,0 @@ |
||||
namespace CORRESPONSALBackend.Models.Clientes.Alen{ |
||||
public class EstadosCuenta{ |
||||
public int id { get; set; } |
||||
public string? TipoMovimiento { get; set; } = ""; |
||||
public string? NoSerie { get; set; } = ""; |
||||
public string? NoMovimiento {get;set;} = ""; |
||||
public string? Trafico {get;set;} = ""; |
||||
public string? Impexp {get;set;} = ""; |
||||
public string? Aduana {get;set;} = ""; |
||||
public string? Patente {get;set;} = ""; |
||||
public string? Pedimento {get;set;} = ""; |
||||
public string? Clave {get;set;} = ""; |
||||
public string? NoCliente {get;set;} = ""; |
||||
public string? NoCentro {get;set;} = ""; |
||||
public string? SubCentro {get;set;} = ""; |
||||
public string? Nombre {get;set;} = ""; |
||||
public string? SubCtaNombre {get;set;} = ""; |
||||
public string? TipoRangos {get;set;} = ""; |
||||
public string? Cargos {get;set;} = ""; |
||||
public string? Abonos {get;set;} = ""; |
||||
public string? Fecha {get;set;} = ""; |
||||
public string? FechaPedimento {get;set;} = ""; |
||||
public string? FechaRev {get;set;} = ""; |
||||
public string? DiasPedimCta {get;set;} = ""; |
||||
public string? DiasCtaRev {get;set;} = ""; |
||||
public string? DiasRev {get;set;} = ""; |
||||
public string? IvaAl {get;set;} = ""; |
||||
public string? TotalFacturado {get;set;} = ""; |
||||
public string? SaldoFinal {get;set;} = ""; |
||||
public string? Anticipo {get;set;} = ""; |
||||
public string? UUID {get;set;} = ""; |
||||
public string? Descripcion {get;set;} = ""; |
||||
public string? Remitente {get;set;} = ""; |
||||
public string? Pedido {get;set;} = ""; |
||||
public string? TipoMercancia {get;set;} = ""; |
||||
public string? CampoAdicional5 {get;set;} = ""; |
||||
public bool? Programado = false; |
||||
} |
||||
} |
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue