Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
ConsumoSriAutorizacion
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
GERMAN PATRICIO ROMERO QUISHPE
ConsumoSriAutorizacion
Commits
ac828c71
Commit
ac828c71
authored
a year ago
by
GERMAN PATRICIO ROMERO QUISHPE
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Consumo facturacion entidades
parent
c49a3892
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
1181 additions
and
0 deletions
+1181
-0
pom.xml
+19
-0
src/main/java/ec/edu/epn/consumosriautorizacion/controller/ConsultasFacturacionController.java
+0
-0
src/main/java/ec/edu/epn/consumosriautorizacion/controller/GeneracionFactOfflinePDF.java
+0
-0
src/main/java/ec/edu/epn/consumosriautorizacion/controller/GeneracionFactOfflineXML.java
+36
-0
src/main/java/ec/edu/epn/consumosriautorizacion/dto/ConceptoDTO.java
+171
-0
src/main/java/ec/edu/epn/consumosriautorizacion/dto/DetallefacturaDTO.java
+156
-0
src/main/java/ec/edu/epn/consumosriautorizacion/dto/FacturaDTO.java
+432
-0
src/main/java/ec/edu/epn/consumosriautorizacion/dto/FormaPagoDTO.java
+64
-0
src/main/java/ec/edu/epn/consumosriautorizacion/dto/PagosDTO.java
+140
-0
src/main/java/ec/edu/epn/consumosriautorizacion/dto/ServicioDTO.java
+78
-0
src/main/java/ec/edu/epn/consumosriautorizacion/service/conexionPostgres.java
+85
-0
No files found.
pom.xml
View file @
ac828c71
...
@@ -73,6 +73,25 @@
...
@@ -73,6 +73,25 @@
<version>
2.3.5
</version>
<version>
2.3.5
</version>
</dependency>
</dependency>
<!-- https://mvnrepository.com/artifact/com.itextpdf/itextpdf -->
<dependency>
<groupId>
com.itextpdf
</groupId>
<artifactId>
itextpdf
</artifactId>
<version>
5.5.13.3
</version>
</dependency>
<!-- https://mvnrepository.com/artifact/postgresql/postgresql -->
<!-- https://mvnrepository.com/artifact/org.postgresql/postgresql -->
<dependency>
<groupId>
org.postgresql
</groupId>
<artifactId>
postgresql
</artifactId>
<version>
9.4-1200-jdbc41
</version>
</dependency>
<!--<dependency>
<!--<dependency>
<groupId>com.sun.xml.ws</groupId>
<groupId>com.sun.xml.ws</groupId>
<artifactId>jaxws-rt</artifactId>
<artifactId>jaxws-rt</artifactId>
...
...
This diff is collapsed.
Click to expand it.
src/main/java/ec/edu/epn/consumosriautorizacion/controller/ConsultasFacturacionController.java
0 → 100644
View file @
ac828c71
This diff is collapsed.
Click to expand it.
src/main/java/ec/edu/epn/consumosriautorizacion/controller/GeneracionFactOfflinePDF.java
0 → 100644
View file @
ac828c71
This diff is collapsed.
Click to expand it.
src/main/java/ec/edu/epn/consumosriautorizacion/controller/GeneracionFactOfflineXML.java
0 → 100644
View file @
ac828c71
package
ec
.
edu
.
epn
.
consumosriautorizacion
.
controller
;
import
ec.edu.epn.facturacionDTO.FacturaDTO
;
import
java.io.BufferedWriter
;
import
java.io.File
;
import
java.io.FileWriter
;
import
java.io.IOException
;
public
class
GeneracionFactOfflineXML
{
public
String
generacionXml
(
FacturaDTO
factura
)
throws
IOException
{
String
pathXml
=
""
;
BufferedWriter
writer
=
null
;
pathXml
=
"/FacturaUtils/"
+
factura
.
getRucCli
().
trim
()
+
"-"
+
factura
.
getIdFactura
().
trim
()
+
".xml"
;
File
file
=
new
File
(
pathXml
);
try
{
writer
=
new
BufferedWriter
(
new
FileWriter
(
file
));
writer
.
write
(
factura
.
getXml
());
return
pathXml
;
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
return
""
;
}
finally
{
if
(
writer
!=
null
)
{
writer
.
close
();
}
}
}
}
This diff is collapsed.
Click to expand it.
src/main/java/ec/edu/epn/consumosriautorizacion/dto/ConceptoDTO.java
0 → 100644
View file @
ac828c71
package
ec
.
edu
.
epn
.
consumosriautorizacion
.
dto
;
import
java.math.BigDecimal
;
import
java.sql.Timestamp
;
public
class
ConceptoDTO
{
private
String
idConcepto
;
private
Integer
aux
;
private
Integer
auxIdConcepto
;
private
String
centrocostoL
;
private
String
cuenta
;
private
String
descrConcp
;
private
String
estado
;
private
String
factura
;
private
Timestamp
fechatrans
;
private
String
idPartida
;
private
Integer
idUnidad
;
private
Integer
iva
;
private
String
nombreConcp
;
private
String
nombreUsuario
;
private
float
precioS
;
private
BigDecimal
saldounidad
;
private
BigDecimal
secuencial
;
private
String
tipoconcepto
;
public
String
getIdConcepto
()
{
return
idConcepto
;
}
public
void
setIdConcepto
(
String
idConcepto
)
{
this
.
idConcepto
=
idConcepto
;
}
public
Integer
getAux
()
{
return
aux
;
}
public
void
setAux
(
Integer
aux
)
{
this
.
aux
=
aux
;
}
public
Integer
getAuxIdConcepto
()
{
return
auxIdConcepto
;
}
public
void
setAuxIdConcepto
(
Integer
auxIdConcepto
)
{
this
.
auxIdConcepto
=
auxIdConcepto
;
}
public
String
getCentrocostoL
()
{
return
centrocostoL
;
}
public
void
setCentrocostoL
(
String
centrocostoL
)
{
this
.
centrocostoL
=
centrocostoL
;
}
public
String
getCuenta
()
{
return
cuenta
;
}
public
void
setCuenta
(
String
cuenta
)
{
this
.
cuenta
=
cuenta
;
}
public
String
getDescrConcp
()
{
return
descrConcp
;
}
public
void
setDescrConcp
(
String
descrConcp
)
{
this
.
descrConcp
=
descrConcp
;
}
public
String
getEstado
()
{
return
estado
;
}
public
void
setEstado
(
String
estado
)
{
this
.
estado
=
estado
;
}
public
String
getFactura
()
{
return
factura
;
}
public
void
setFactura
(
String
factura
)
{
this
.
factura
=
factura
;
}
public
Timestamp
getFechatrans
()
{
return
fechatrans
;
}
public
void
setFechatrans
(
Timestamp
fechatrans
)
{
this
.
fechatrans
=
fechatrans
;
}
public
String
getIdPartida
()
{
return
idPartida
;
}
public
void
setIdPartida
(
String
idPartida
)
{
this
.
idPartida
=
idPartida
;
}
public
Integer
getIdUnidad
()
{
return
idUnidad
;
}
public
void
setIdUnidad
(
Integer
idUnidad
)
{
this
.
idUnidad
=
idUnidad
;
}
public
Integer
getIva
()
{
return
iva
;
}
public
void
setIva
(
Integer
iva
)
{
this
.
iva
=
iva
;
}
public
String
getNombreConcp
()
{
return
nombreConcp
;
}
public
void
setNombreConcp
(
String
nombreConcp
)
{
this
.
nombreConcp
=
nombreConcp
;
}
public
String
getNombreUsuario
()
{
return
nombreUsuario
;
}
public
void
setNombreUsuario
(
String
nombreUsuario
)
{
this
.
nombreUsuario
=
nombreUsuario
;
}
public
float
getPrecioS
()
{
return
precioS
;
}
public
void
setPrecioS
(
float
precioS
)
{
this
.
precioS
=
precioS
;
}
public
BigDecimal
getSaldounidad
()
{
return
saldounidad
;
}
public
void
setSaldounidad
(
BigDecimal
saldounidad
)
{
this
.
saldounidad
=
saldounidad
;
}
public
BigDecimal
getSecuencial
()
{
return
secuencial
;
}
public
void
setSecuencial
(
BigDecimal
secuencial
)
{
this
.
secuencial
=
secuencial
;
}
public
String
getTipoconcepto
()
{
return
tipoconcepto
;
}
public
void
setTipoconcepto
(
String
tipoconcepto
)
{
this
.
tipoconcepto
=
tipoconcepto
;
}
}
This diff is collapsed.
Click to expand it.
src/main/java/ec/edu/epn/consumosriautorizacion/dto/DetallefacturaDTO.java
0 → 100644
View file @
ac828c71
package
ec
.
edu
.
epn
.
consumosriautorizacion
.
dto
;
import
java.math.BigDecimal
;
public
class
DetallefacturaDTO
{
public
DetallefacturaDTO
()
{
}
private
String
idDetallefactura
;
private
Integer
controlUnidades
;
private
double
costoDf
;
private
double
costotDf
;
private
String
estadoServ
;
private
String
idFactura
;
private
String
idMetodo
;
private
String
idServicio
;
private
String
mesArriendo
;
private
String
nombreser
;
private
BigDecimal
porcentajeiva
;
private
double
subtotal
=
0
;
private
Integer
unidadesDf
;
private
double
valorIva
;
private
String
concepto
;
private
ConceptoDTO
conceptoDTO
;
public
String
getIdDetallefactura
()
{
return
idDetallefactura
;
}
public
void
setIdDetallefactura
(
String
idDetallefactura
)
{
this
.
idDetallefactura
=
idDetallefactura
;
}
public
Integer
getControlUnidades
()
{
return
controlUnidades
;
}
public
void
setControlUnidades
(
Integer
controlUnidades
)
{
this
.
controlUnidades
=
controlUnidades
;
}
public
double
getCostoDf
()
{
return
costoDf
;
}
public
void
setCostoDf
(
double
costoDf
)
{
this
.
costoDf
=
costoDf
;
}
public
double
getCostotDf
()
{
return
costotDf
;
}
public
void
setCostotDf
(
double
costotDf
)
{
this
.
costotDf
=
costotDf
;
}
public
String
getEstadoServ
()
{
return
estadoServ
;
}
public
void
setEstadoServ
(
String
estadoServ
)
{
this
.
estadoServ
=
estadoServ
;
}
public
String
getIdFactura
()
{
return
idFactura
;
}
public
void
setIdFactura
(
String
idFactura
)
{
this
.
idFactura
=
idFactura
;
}
public
String
getIdMetodo
()
{
return
idMetodo
;
}
public
void
setIdMetodo
(
String
idMetodo
)
{
this
.
idMetodo
=
idMetodo
;
}
public
String
getIdServicio
()
{
return
idServicio
;
}
public
void
setIdServicio
(
String
idServicio
)
{
this
.
idServicio
=
idServicio
;
}
public
String
getMesArriendo
()
{
return
mesArriendo
;
}
public
void
setMesArriendo
(
String
mesArriendo
)
{
this
.
mesArriendo
=
mesArriendo
;
}
public
String
getNombreser
()
{
return
nombreser
;
}
public
void
setNombreser
(
String
nombreser
)
{
this
.
nombreser
=
nombreser
;
}
public
BigDecimal
getPorcentajeiva
()
{
return
porcentajeiva
;
}
public
void
setPorcentajeiva
(
BigDecimal
porcentajeiva
)
{
this
.
porcentajeiva
=
porcentajeiva
;
}
public
double
getSubtotal
()
{
return
subtotal
;
}
public
void
setSubtotal
(
double
subtotal
)
{
this
.
subtotal
=
subtotal
;
}
public
Integer
getUnidadesDf
()
{
return
unidadesDf
;
}
public
void
setUnidadesDf
(
Integer
unidadesDf
)
{
this
.
unidadesDf
=
unidadesDf
;
}
public
double
getValorIva
()
{
return
valorIva
;
}
public
void
setValorIva
(
double
valorIva
)
{
this
.
valorIva
=
valorIva
;
}
public
String
getConcepto
()
{
return
concepto
;
}
public
void
setConcepto
(
String
concepto
)
{
this
.
concepto
=
concepto
;
}
public
ConceptoDTO
getConceptoDTO
()
{
return
conceptoDTO
;
}
public
void
setConceptoDTO
(
ConceptoDTO
conceptoDTO
)
{
this
.
conceptoDTO
=
conceptoDTO
;
}
}
This diff is collapsed.
Click to expand it.
src/main/java/ec/edu/epn/consumosriautorizacion/dto/FacturaDTO.java
0 → 100644
View file @
ac828c71
package
ec
.
edu
.
epn
.
consumosriautorizacion
.
dto
;
import
java.math.BigDecimal
;
import
java.sql.Timestamp
;
import
java.util.Date
;
public
class
FacturaDTO
{
public
FacturaDTO
()
{
}
private
String
idFactura
;
private
String
ambiente
;
private
String
aux
;
private
Integer
auxsecuencia
;
private
String
carreraE
;
private
String
cedulaCli
;
private
String
cedulaE
;
private
String
claveacceso
;
private
String
concepto
;
private
double
descuentoF
;
private
String
direccionCli
;
private
String
direccionE
;
private
String
emailCl
;
private
String
emision
;
private
String
estadoSri
;
private
String
estadomail
;
private
Date
fecCompromPago
;
private
Date
fecMaxNc
;
private
String
fechaautoriza
;
private
Timestamp
fechafacF
;
private
Timestamp
fechafacPend
;
private
Integer
idCaja
;
private
String
idCliente
;
private
String
idEstudiante
;
private
String
idProforma
;
private
double
ivaF
;
private
String
motivoestadoF
;
private
String
nombreCli
;
private
String
nombreE
;
private
Integer
nropagos
;
private
String
num1
;
private
String
num2
;
private
String
num3
;
private
String
numautoriza
;
private
String
path
;
private
String
pathxml
;
private
BigDecimal
porcentajeiva
;
private
String
rucCli
;
private
double
subtotalF
;
private
String
telefonoCli
;
private
String
telefonoE
;
private
String
tipoF
;
private
double
totalF
;
private
String
puntoFacturacion
;
private
String
xml
;
private
String
estadoFactura
;
public
String
getIdFactura
()
{
return
idFactura
;
}
public
void
setIdFactura
(
String
idFactura
)
{
this
.
idFactura
=
idFactura
;
}
public
String
getAmbiente
()
{
return
ambiente
;
}
public
void
setAmbiente
(
String
ambiente
)
{
this
.
ambiente
=
ambiente
;
}
public
String
getAux
()
{
return
aux
;
}
public
void
setAux
(
String
aux
)
{
this
.
aux
=
aux
;
}
public
Integer
getAuxsecuencia
()
{
return
auxsecuencia
;
}
public
void
setAuxsecuencia
(
Integer
auxsecuencia
)
{
this
.
auxsecuencia
=
auxsecuencia
;
}
public
String
getCarreraE
()
{
return
carreraE
;
}
public
void
setCarreraE
(
String
carreraE
)
{
this
.
carreraE
=
carreraE
;
}
public
String
getCedulaCli
()
{
return
cedulaCli
;
}
public
void
setCedulaCli
(
String
cedulaCli
)
{
this
.
cedulaCli
=
cedulaCli
;
}
public
String
getCedulaE
()
{
return
cedulaE
;
}
public
void
setCedulaE
(
String
cedulaE
)
{
this
.
cedulaE
=
cedulaE
;
}
public
String
getClaveacceso
()
{
return
claveacceso
;
}
public
void
setClaveacceso
(
String
claveacceso
)
{
this
.
claveacceso
=
claveacceso
;
}
public
String
getConcepto
()
{
return
concepto
;
}
public
void
setConcepto
(
String
concepto
)
{
this
.
concepto
=
concepto
;
}
public
double
getDescuentoF
()
{
return
descuentoF
;
}
public
void
setDescuentoF
(
double
descuentoF
)
{
this
.
descuentoF
=
descuentoF
;
}
public
String
getDireccionCli
()
{
return
direccionCli
;
}
public
void
setDireccionCli
(
String
direccionCli
)
{
this
.
direccionCli
=
direccionCli
;
}
public
String
getDireccionE
()
{
return
direccionE
;
}
public
void
setDireccionE
(
String
direccionE
)
{
this
.
direccionE
=
direccionE
;
}
public
String
getEmailCl
()
{
return
emailCl
;
}
public
void
setEmailCl
(
String
emailCl
)
{
this
.
emailCl
=
emailCl
;
}
public
String
getEmision
()
{
return
emision
;
}
public
void
setEmision
(
String
emision
)
{
this
.
emision
=
emision
;
}
public
String
getEstadoSri
()
{
return
estadoSri
;
}
public
void
setEstadoSri
(
String
estadoSri
)
{
this
.
estadoSri
=
estadoSri
;
}
public
String
getEstadomail
()
{
return
estadomail
;
}
public
void
setEstadomail
(
String
estadomail
)
{
this
.
estadomail
=
estadomail
;
}
public
Date
getFecCompromPago
()
{
return
fecCompromPago
;
}
public
void
setFecCompromPago
(
Date
fecCompromPago
)
{
this
.
fecCompromPago
=
fecCompromPago
;
}
public
Date
getFecMaxNc
()
{
return
fecMaxNc
;
}
public
void
setFecMaxNc
(
Date
fecMaxNc
)
{
this
.
fecMaxNc
=
fecMaxNc
;
}
public
String
getFechaautoriza
()
{
return
fechaautoriza
;
}
public
void
setFechaautoriza
(
String
fechaautoriza
)
{
this
.
fechaautoriza
=
fechaautoriza
;
}
public
Timestamp
getFechafacF
()
{
return
fechafacF
;
}
public
void
setFechafacF
(
Timestamp
fechafacF
)
{
this
.
fechafacF
=
fechafacF
;
}
public
Timestamp
getFechafacPend
()
{
return
fechafacPend
;
}
public
void
setFechafacPend
(
Timestamp
fechafacPend
)
{
this
.
fechafacPend
=
fechafacPend
;
}
public
Integer
getIdCaja
()
{
return
idCaja
;
}
public
void
setIdCaja
(
Integer
idCaja
)
{
this
.
idCaja
=
idCaja
;
}
public
String
getIdCliente
()
{
return
idCliente
;
}
public
void
setIdCliente
(
String
idCliente
)
{
this
.
idCliente
=
idCliente
;
}
public
String
getIdEstudiante
()
{
return
idEstudiante
;
}
public
void
setIdEstudiante
(
String
idEstudiante
)
{
this
.
idEstudiante
=
idEstudiante
;
}
public
String
getIdProforma
()
{
return
idProforma
;
}
public
void
setIdProforma
(
String
idProforma
)
{
this
.
idProforma
=
idProforma
;
}
public
double
getIvaF
()
{
return
ivaF
;
}
public
void
setIvaF
(
double
ivaF
)
{
this
.
ivaF
=
ivaF
;
}
public
String
getMotivoestadoF
()
{
return
motivoestadoF
;
}
public
void
setMotivoestadoF
(
String
motivoestadoF
)
{
this
.
motivoestadoF
=
motivoestadoF
;
}
public
String
getNombreCli
()
{
return
nombreCli
;
}
public
void
setNombreCli
(
String
nombreCli
)
{
this
.
nombreCli
=
nombreCli
;
}
public
String
getNombreE
()
{
return
nombreE
;
}
public
void
setNombreE
(
String
nombreE
)
{
this
.
nombreE
=
nombreE
;
}
public
Integer
getNropagos
()
{
return
nropagos
;
}
public
void
setNropagos
(
Integer
nropagos
)
{
this
.
nropagos
=
nropagos
;
}
public
String
getNum1
()
{
return
num1
;
}
public
void
setNum1
(
String
num1
)
{
this
.
num1
=
num1
;
}
public
String
getNum2
()
{
return
num2
;
}
public
void
setNum2
(
String
num2
)
{
this
.
num2
=
num2
;
}
public
String
getNum3
()
{
return
num3
;
}
public
void
setNum3
(
String
num3
)
{
this
.
num3
=
num3
;
}
public
String
getNumautoriza
()
{
return
numautoriza
;
}
public
void
setNumautoriza
(
String
numautoriza
)
{
this
.
numautoriza
=
numautoriza
;
}
public
String
getPath
()
{
return
path
;
}
public
void
setPath
(
String
path
)
{
this
.
path
=
path
;
}
public
String
getPathxml
()
{
return
pathxml
;
}
public
void
setPathxml
(
String
pathxml
)
{
this
.
pathxml
=
pathxml
;
}
public
BigDecimal
getPorcentajeiva
()
{
return
porcentajeiva
;
}
public
void
setPorcentajeiva
(
BigDecimal
porcentajeiva
)
{
this
.
porcentajeiva
=
porcentajeiva
;
}
public
String
getRucCli
()
{
return
rucCli
;
}
public
void
setRucCli
(
String
rucCli
)
{
this
.
rucCli
=
rucCli
;
}
public
double
getSubtotalF
()
{
return
subtotalF
;
}
public
void
setSubtotalF
(
double
subtotalF
)
{
this
.
subtotalF
=
subtotalF
;
}
public
String
getTelefonoCli
()
{
return
telefonoCli
;
}
public
void
setTelefonoCli
(
String
telefonoCli
)
{
this
.
telefonoCli
=
telefonoCli
;
}
public
String
getTelefonoE
()
{
return
telefonoE
;
}
public
void
setTelefonoE
(
String
telefonoE
)
{
this
.
telefonoE
=
telefonoE
;
}
public
String
getTipoF
()
{
return
tipoF
;
}
public
void
setTipoF
(
String
tipoF
)
{
this
.
tipoF
=
tipoF
;
}
public
double
getTotalF
()
{
return
totalF
;
}
public
void
setTotalF
(
double
totalF
)
{
this
.
totalF
=
totalF
;
}
public
String
getXml
()
{
return
xml
;
}
public
void
setXml
(
String
xml
)
{
this
.
xml
=
xml
;
}
public
String
getEstadoFactura
()
{
return
estadoFactura
;
}
public
void
setEstadoFactura
(
String
estadoFactura
)
{
this
.
estadoFactura
=
estadoFactura
;
}
public
String
getPuntoFacturacion
()
{
return
puntoFacturacion
;
}
public
void
setPuntoFacturacion
(
String
puntoFacturacion
)
{
this
.
puntoFacturacion
=
puntoFacturacion
;
}
}
This diff is collapsed.
Click to expand it.
src/main/java/ec/edu/epn/consumosriautorizacion/dto/FormaPagoDTO.java
0 → 100644
View file @
ac828c71
package
ec
.
edu
.
epn
.
consumosriautorizacion
.
dto
;
public
class
FormaPagoDTO
{
public
FormaPagoDTO
()
{
}
private
String
idFormaPago
;
private
String
descrFp
;
private
String
nombreFp
;
private
String
codigoSri
;
private
String
activo
;
private
String
codigoSae
;
public
String
getIdFormaPago
()
{
return
idFormaPago
;
}
public
void
setIdFormaPago
(
String
idFormaPago
)
{
this
.
idFormaPago
=
idFormaPago
;
}
public
String
getDescrFp
()
{
return
descrFp
;
}
public
void
setDescrFp
(
String
descrFp
)
{
this
.
descrFp
=
descrFp
;
}
public
String
getNombreFp
()
{
return
nombreFp
;
}
public
void
setNombreFp
(
String
nombreFp
)
{
this
.
nombreFp
=
nombreFp
;
}
public
String
getCodigoSri
()
{
return
codigoSri
;
}
public
void
setCodigoSri
(
String
codigoSri
)
{
this
.
codigoSri
=
codigoSri
;
}
public
String
getActivo
()
{
return
activo
;
}
public
void
setActivo
(
String
activo
)
{
this
.
activo
=
activo
;
}
public
String
getCodigoSae
()
{
return
codigoSae
;
}
public
void
setCodigoSae
(
String
codigoSae
)
{
this
.
codigoSae
=
codigoSae
;
}
}
This diff is collapsed.
Click to expand it.
src/main/java/ec/edu/epn/consumosriautorizacion/dto/PagosDTO.java
0 → 100644
View file @
ac828c71
package
ec
.
edu
.
epn
.
consumosriautorizacion
.
dto
;
import
java.math.BigDecimal
;
public
class
PagosDTO
{
public
PagosDTO
()
{
}
private
String
idPagos
;
private
double
comisionTc
;
private
String
cuentaCorrientePa
;
private
String
idNc
;
private
String
idRcbCaja
;
private
BigDecimal
montoPa
;
private
String
numeroDocumentoPa
;
private
String
procedenciaPa
;
private
BigDecimal
saldoPa
;
private
Integer
idBancos
;
private
String
idFactura
;
private
String
idFormaPago
;
private
String
idTc
;
private
FormaPagoDTO
formaPagoDTO
;
public
String
getIdPagos
()
{
return
idPagos
;
}
public
void
setIdPagos
(
String
idPagos
)
{
this
.
idPagos
=
idPagos
;
}
public
double
getComisionTc
()
{
return
comisionTc
;
}
public
void
setComisionTc
(
double
comisionTc
)
{
this
.
comisionTc
=
comisionTc
;
}
public
String
getCuentaCorrientePa
()
{
return
cuentaCorrientePa
;
}
public
void
setCuentaCorrientePa
(
String
cuentaCorrientePa
)
{
this
.
cuentaCorrientePa
=
cuentaCorrientePa
;
}
public
String
getIdNc
()
{
return
idNc
;
}
public
void
setIdNc
(
String
idNc
)
{
this
.
idNc
=
idNc
;
}
public
String
getIdRcbCaja
()
{
return
idRcbCaja
;
}
public
void
setIdRcbCaja
(
String
idRcbCaja
)
{
this
.
idRcbCaja
=
idRcbCaja
;
}
public
BigDecimal
getMontoPa
()
{
return
montoPa
;
}
public
void
setMontoPa
(
BigDecimal
montoPa
)
{
this
.
montoPa
=
montoPa
;
}
public
String
getNumeroDocumentoPa
()
{
return
numeroDocumentoPa
;
}
public
void
setNumeroDocumentoPa
(
String
numeroDocumentoPa
)
{
this
.
numeroDocumentoPa
=
numeroDocumentoPa
;
}
public
String
getProcedenciaPa
()
{
return
procedenciaPa
;
}
public
void
setProcedenciaPa
(
String
procedenciaPa
)
{
this
.
procedenciaPa
=
procedenciaPa
;
}
public
BigDecimal
getSaldoPa
()
{
return
saldoPa
;
}
public
void
setSaldoPa
(
BigDecimal
saldoPa
)
{
this
.
saldoPa
=
saldoPa
;
}
public
Integer
getIdBancos
()
{
return
idBancos
;
}
public
void
setIdBancos
(
Integer
idBancos
)
{
this
.
idBancos
=
idBancos
;
}
public
String
getIdFactura
()
{
return
idFactura
;
}
public
void
setIdFactura
(
String
idFactura
)
{
this
.
idFactura
=
idFactura
;
}
public
String
getIdFormaPago
()
{
return
idFormaPago
;
}
public
void
setIdFormaPago
(
String
idFormaPago
)
{
this
.
idFormaPago
=
idFormaPago
;
}
public
String
getIdTc
()
{
return
idTc
;
}
public
void
setIdTc
(
String
idTc
)
{
this
.
idTc
=
idTc
;
}
public
FormaPagoDTO
getFormaPagoDTO
()
{
return
formaPagoDTO
;
}
public
void
setFormaPagoDTO
(
FormaPagoDTO
formaPagoDTO
)
{
this
.
formaPagoDTO
=
formaPagoDTO
;
}
}
This diff is collapsed.
Click to expand it.
src/main/java/ec/edu/epn/consumosriautorizacion/dto/ServicioDTO.java
0 → 100644
View file @
ac828c71
package
ec
.
edu
.
epn
.
consumosriautorizacion
.
dto
;
public
class
ServicioDTO
{
private
String
idServicio
;
private
String
acreditado
;
private
Integer
auxIdServicio
;
private
String
descrS
;
private
String
nombreS
;
private
float
precioS
;
private
String
laboratorio
;
private
String
tiposervicio
;
public
String
getIdServicio
()
{
return
idServicio
;
}
public
void
setIdServicio
(
String
idServicio
)
{
this
.
idServicio
=
idServicio
;
}
public
String
getAcreditado
()
{
return
acreditado
;
}
public
void
setAcreditado
(
String
acreditado
)
{
this
.
acreditado
=
acreditado
;
}
public
Integer
getAuxIdServicio
()
{
return
auxIdServicio
;
}
public
void
setAuxIdServicio
(
Integer
auxIdServicio
)
{
this
.
auxIdServicio
=
auxIdServicio
;
}
public
String
getDescrS
()
{
return
descrS
;
}
public
void
setDescrS
(
String
descrS
)
{
this
.
descrS
=
descrS
;
}
public
String
getNombreS
()
{
return
nombreS
;
}
public
void
setNombreS
(
String
nombreS
)
{
this
.
nombreS
=
nombreS
;
}
public
float
getPrecioS
()
{
return
precioS
;
}
public
void
setPrecioS
(
float
precioS
)
{
this
.
precioS
=
precioS
;
}
public
String
getLaboratorio
()
{
return
laboratorio
;
}
public
void
setLaboratorio
(
String
laboratorio
)
{
this
.
laboratorio
=
laboratorio
;
}
public
String
getTiposervicio
()
{
return
tiposervicio
;
}
public
void
setTiposervicio
(
String
tiposervicio
)
{
this
.
tiposervicio
=
tiposervicio
;
}
}
This diff is collapsed.
Click to expand it.
src/main/java/ec/edu/epn/consumosriautorizacion/service/conexionPostgres.java
0 → 100644
View file @
ac828c71
package
ec
.
edu
.
epn
.
consumosriautorizacion
.
service
;
import
java.io.Serializable
;
import
java.sql.DriverManager
;
public
class
conexionPostgres
implements
Serializable
{
/**
*
*/
private
static
final
long
serialVersionUID
=
-
6947528897763208578L
;
private
java
.
sql
.
Connection
conection
=
null
;
public
java
.
sql
.
Connection
getConection
()
{
return
conection
;
}
public
void
setConection
(
java
.
sql
.
Connection
conection
)
{
this
.
conection
=
conection
;
}
private
String
url
=
"jdbc:postgresql://"
;
private
String
serverName
=
"172.31.5.10"
;
private
String
portNumber
=
"5432"
;
private
String
databaseName
=
"bddcorpepn"
;
private
String
userName
=
"seguridad"
;
private
String
password
=
"seguridad"
;
// Constructor
public
conexionPostgres
()
{
}
public
String
getConnectionUrl
()
{
return
url
+
serverName
+
":"
+
portNumber
+
"/"
+
databaseName
;
}
public
java
.
sql
.
Connection
getConnection
()
{
try
{
Class
.
forName
(
"org.postgresql.Driver"
);
conection
=
DriverManager
.
getConnection
(
getConnectionUrl
(),
userName
,
password
);
if
(
conection
!=
null
)
System
.
out
.
println
(
"Connection Successful!"
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
System
.
out
.
println
(
"Error Trace in getConnection() : "
+
e
.
getMessage
());
}
return
conection
;
}
public
void
closeConnection
()
{
try
{
if
(
conection
!=
null
)
conection
.
close
();
conection
=
null
;
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment