Compare commits
10 Commits
351dd7dcb4
...
1b9489ca3b
| Author | SHA1 | Date |
|---|---|---|
|
|
1b9489ca3b | |
|
|
9032d81e5a | |
|
|
bf5bfeffa3 | |
|
|
252e1d981d | |
|
|
5f6f78434f | |
|
|
0c85d4700e | |
|
|
55e813ad42 | |
|
|
72d3128c5d | |
|
|
b5732f1ead | |
|
|
9956a2df61 |
|
|
@ -29,12 +29,12 @@ public class ColaImpresion extends QueryRule {
|
|||
|
||||
private static final long serialVersionUID = -3993166768741911054L;
|
||||
private static final String QUERY_USUARIO_ID = "SELECT o FROM TsafeUserDetail o WHERE o.pk.usercode=:usercode AND o.pk.dateto=:dateto";
|
||||
private static final String QUERY_COLA_IMPRESION = "SELECT o.cdocumento, o.estadoimpresion, o.estadoimpresioncode, o.cimpresion, o.fechaimpresion, o.fecharegistro, o.codigotarjeta "
|
||||
+ "FROM TarmColadeImpresion o "
|
||||
+ "inner join tarmdocumentohabilitante i on o.cdocumento = i.cdocumento "
|
||||
+ "inner join tarmsolicituddocumento n on n.cdocumento = o.cdocumento "
|
||||
+ "inner join tarmsolicitud k on i.csolicitud = k.csolicitud"
|
||||
+ "WHERE o.estadoimpresion=:estado and i.ccentrocontrol = :ccentrocontrol and coalesce(k.estado,'APB') IN ('APB','FIN')";
|
||||
private static final String QUERY_COLA_IMPRESION = "SELECT o.cdocumento, o.estadoimpresion, o.estadoimpresioncode, o.cimpresion, o.fechaimpresion, o.fecharegistro, o.codigotarjeta"
|
||||
+ " FROM TarmColadeImpresion o"
|
||||
+ " inner join tarmdocumentohabilitante i on o.cdocumento = i.cdocumento"
|
||||
+ " inner join tarmsolicituddocumento n on n.cdocumento = o.cdocumento"
|
||||
+ " inner join tarmsolicitud k on i.csolicitud = k.csolicitud"
|
||||
+ " WHERE o.estadoimpresion=:estado and i.ccentrocontrol = :ccentrocontrol and coalesce(k.estado,'APB') IN ('APB','FIN')";
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
|
|
|
|||
107
frontend/pom.xml
107
frontend/pom.xml
|
|
@ -13,7 +13,7 @@
|
|||
<dependency>
|
||||
<groupId>log4j</groupId>
|
||||
<artifactId>log4j</artifactId>
|
||||
<version>1.2.16</version>
|
||||
<version>1.2.17</version>
|
||||
<!-- solo para jboss provide-->
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
|
|
@ -426,6 +426,7 @@
|
|||
</dependencies>
|
||||
|
||||
<build>
|
||||
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
|
|
@ -441,35 +442,107 @@
|
|||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-resources-plugin</artifactId>
|
||||
<version>2.4.3</version>
|
||||
<version>2.6</version>
|
||||
<configuration>
|
||||
<encoding>${project.build.sourceEncoding}</encoding>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-war-plugin</artifactId>
|
||||
<version>2.0.2</version>
|
||||
<configuration>
|
||||
<webResources>
|
||||
<resource>
|
||||
<directory>src</directory>
|
||||
<targetPath>WEB-INF</targetPath>
|
||||
<includes>
|
||||
<include>jax-ws-catalog.xml</include>
|
||||
<include>wsdl/**</include>
|
||||
</includes>
|
||||
</resource>
|
||||
<resource>
|
||||
<directory>src</directory>
|
||||
<targetPath>WEB-INF/classes/META-INF</targetPath>
|
||||
<includes>
|
||||
<include>jax-ws-catalog.xml</include>
|
||||
<include>wsdl/**</include>
|
||||
</includes>
|
||||
</resource>
|
||||
</webResources>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.jvnet.jax-ws-commons</groupId>
|
||||
<artifactId>jaxws-maven-plugin</artifactId>
|
||||
<version>2.3</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<goals>
|
||||
<goal>wsimport</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<wsdlFiles>
|
||||
<wsdlFile>172.17.26.183_8090/sincoar-services.wsdl</wsdlFile>
|
||||
</wsdlFiles>
|
||||
<packageName>com.fp.frontend.webservices.dinardap</packageName>
|
||||
<vmArgs>
|
||||
<vmArg>-Djavax.xml.accessExternalSchema=all</vmArg>
|
||||
</vmArgs>
|
||||
<wsdlLocation>http://172.17.26.183:8090/sincoar-services?wsdl</wsdlLocation>
|
||||
<staleFile>${project.build.directory}/jaxws/stale/sincoar-services.stale</staleFile>
|
||||
</configuration>
|
||||
<id>wsimport-generate-sincoar-services</id>
|
||||
<phase>generate-sources</phase>
|
||||
</execution>
|
||||
</executions>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>javax.xml</groupId>
|
||||
<artifactId>webservices-api</artifactId>
|
||||
<version>2.0</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<configuration>
|
||||
<sourceDestDir>${project.build.directory}/generated-sources/jaxws-wsimport</sourceDestDir>
|
||||
<xnocompile>true</xnocompile>
|
||||
<verbose>true</verbose>
|
||||
<extension>true</extension>
|
||||
<catalog>${basedir}/src/jax-ws-catalog.xml</catalog>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
<finalName>maia</finalName>
|
||||
</build>
|
||||
|
||||
|
||||
<!-- <repositories>
|
||||
<repositories>
|
||||
|
||||
<repository>
|
||||
<id>maven2-repository.jboss.com</id>
|
||||
<name>Jboss Repository for Maven</name>
|
||||
<url>http://repository.jboss.com/maven2</url>
|
||||
</repository>
|
||||
<repository>
|
||||
<id>prime-repo</id>
|
||||
<name>Prime Technology Maven Repository</name>
|
||||
<url>http://repository.primefaces.org</url>
|
||||
<id>central</id>
|
||||
<name>Maven Repository</name>
|
||||
<layout>default</layout>
|
||||
<url>https://repo.maven.apache.org/maven2</url>
|
||||
<snapshots>
|
||||
<enabled>false</enabled>
|
||||
</snapshots>
|
||||
</repository>
|
||||
<repository>
|
||||
<id>maven2-repository.dev.java.net</id>
|
||||
<name>Java.net Repository for Maven</name>
|
||||
<url>http://download.java.net/maven/2/</url>
|
||||
</repositories>
|
||||
<pluginRepositories>
|
||||
<pluginRepository>
|
||||
<id>central</id>
|
||||
<name>Maven Plugin Repository</name>
|
||||
<url>https://repo.maven.apache.org/maven2</url>
|
||||
<layout>default</layout>
|
||||
</repository>
|
||||
</repositories> -->
|
||||
<snapshots>
|
||||
<enabled>false</enabled>
|
||||
</snapshots>
|
||||
<releases>
|
||||
<updatePolicy>never</updatePolicy>
|
||||
</releases>
|
||||
</pluginRepository>
|
||||
</pluginRepositories>
|
||||
<properties>
|
||||
<project.build.sourceEncoding>windows-1252</project.build.sourceEncoding>
|
||||
</properties>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,4 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog" prefer="system">
|
||||
<system systemId="http://172.17.26.183:8090/sincoar-services?wsdl" uri="wsdl/172.17.26.183_8090/sincoar-services.wsdl"/>
|
||||
</catalog>
|
||||
|
|
@ -34,6 +34,9 @@ import com.fp.frontend.helper.MessageHelper;
|
|||
import com.fp.frontend.utility.MsgControlArmas;
|
||||
import com.fp.frontend.utility.Utilidades;
|
||||
import com.fp.frontend.utility.ValidateIdentification;
|
||||
import com.fp.frontend.webservices.dinardap.CedulaDNP;
|
||||
import com.fp.frontend.webservices.dinardap.DinardapClient;
|
||||
import com.fp.frontend.webservices.dinardap.RucDNP;
|
||||
import com.fp.frontend.webservices.snap.cedula.ClienteCedula;
|
||||
import com.fp.frontend.webservices.snap.ruc.ClienteRUC;
|
||||
import com.fp.persistence.parmas.eval.TarmEvaluacion;
|
||||
|
|
@ -173,19 +176,14 @@ public class EvaluacionController extends AbstractController<TarmEvaluacion> {
|
|||
MessageHelper.setMessageError(MsgControlArmas.getProperty("msg_error_nodocumentoinvalido"));
|
||||
return;
|
||||
}
|
||||
//TODO: evaluar casos, salto de validacion por error servicio SNAP
|
||||
personafiltroSNAP = PersonDetailController.findxidentification(personafiltro.getIdentification(), personafiltro.getIdentificationcatalog());
|
||||
// personafiltroSNAP = buscarPersonaSnap(personafiltro.getIdentification(), personafiltro.getIdentificationcatalog());
|
||||
|
||||
personafiltroSNAP = buscarPersonaSnap(personafiltro.getIdentification(), personafiltro.getIdentificationcatalog());
|
||||
} else if (personafiltro.getIdentificationcatalog().equals("RUC")) {
|
||||
// valido validez RUC
|
||||
if (!ValidateIdentification.ruc(personafiltro.getIdentification())) {
|
||||
MessageHelper.setMessageError(MsgControlArmas.getProperty("msg_error_nodocumentoinvalido"));
|
||||
return;
|
||||
}
|
||||
//TODO: evaluar casos, salto de validacion por error servicio SNAP
|
||||
personafiltroSNAP = PersonDetailController.findxidentification(personafiltro.getIdentification(), personafiltro.getIdentificationcatalog());
|
||||
// personafiltroSNAP = buscarPersonaSnap(personafiltro.getIdentification(), personafiltro.getIdentificationcatalog());
|
||||
personafiltroSNAP = buscarPersonaSnap(personafiltro.getIdentification(), personafiltro.getIdentificationcatalog());
|
||||
} else {
|
||||
// PASAPORTE
|
||||
personafiltroSNAP = new TcustPersonDetail();
|
||||
|
|
@ -995,9 +993,8 @@ public class EvaluacionController extends AbstractController<TarmEvaluacion> {
|
|||
return;
|
||||
}
|
||||
//envia a buscar en la SNAP
|
||||
// tcustPersonDetailPsicologo = buscarPersonaSnap(this.getRecord().getNumdocpsicologo(), this.getRecord().getTipdocpsicologo());
|
||||
//TODO: evaluar casos, salto de validacion por error servicio SNAP
|
||||
tcustPersonDetailPsicologo = PersonDetailController.findxidentification(personafiltro.getIdentification(), personafiltro.getIdentificationcatalog());
|
||||
tcustPersonDetailPsicologo = buscarPersonaSnap(this.getRecord().getNumdocpsicologo(), this.getRecord().getTipdocpsicologo());
|
||||
|
||||
} else if (this.getRecord().getTipdocpsicologo().equals(codigoRuc)) {
|
||||
// SI ES RUC
|
||||
if (!ValidateIdentification.ruc(this.getRecord().getNumdocpsicologo())) {
|
||||
|
|
@ -1005,9 +1002,8 @@ public class EvaluacionController extends AbstractController<TarmEvaluacion> {
|
|||
return;
|
||||
}
|
||||
// envia a buscar en la snap
|
||||
// tcustPersonDetailPsicologo = buscarPersonaSnap(this.getRecord().getNumdocpsicologo(), this.getRecord().getTipdocpsicologo());
|
||||
//TODO: evaluar casos, salto de validacion por error servicio SNAP
|
||||
tcustPersonDetailPsicologo = PersonDetailController.findxidentification(personafiltro.getIdentification(), personafiltro.getIdentificationcatalog());
|
||||
tcustPersonDetailPsicologo = buscarPersonaSnap(this.getRecord().getNumdocpsicologo(), this.getRecord().getTipdocpsicologo());
|
||||
|
||||
}
|
||||
if (tcustPersonDetailPsicologo != null) {
|
||||
this.record.setPsicologoresponsable(tcustPersonDetailPsicologo.getName());
|
||||
|
|
@ -1018,13 +1014,15 @@ public class EvaluacionController extends AbstractController<TarmEvaluacion> {
|
|||
}
|
||||
|
||||
/**
|
||||
* Método para buscar a la persona en la snap
|
||||
* Método para buscar a la persona en Dinardap
|
||||
*
|
||||
* @param documento
|
||||
* @param tipoDocumento
|
||||
* @return
|
||||
*/
|
||||
public TcustPersonDetail buscarPersonaSnap(String documento, String tipoDocumento) {
|
||||
if (tipoDocumento.equals("CED")) {
|
||||
Cedula cedula = ClienteCedula.obtenerCedula(documento);
|
||||
CedulaDNP cedula = new DinardapClient().getCedula(documento);
|
||||
if (cedula != null) {
|
||||
TcustPersonDetail detail = new TcustPersonDetail();
|
||||
detail.setName(cedula.getNombre());
|
||||
|
|
@ -1036,11 +1034,11 @@ public class EvaluacionController extends AbstractController<TarmEvaluacion> {
|
|||
return null;
|
||||
}
|
||||
} else {
|
||||
Contribuyente contribuyente = ClienteRUC.obtenerRUC(documento);
|
||||
RucDNP contribuyente = new DinardapClient().getRuc(documento);
|
||||
if (contribuyente != null) {
|
||||
TcustPersonDetail detail = new TcustPersonDetail();
|
||||
detail.setName(contribuyente.getRazonSocial());
|
||||
detail.setIdentification(contribuyente.getNumeroRuc());
|
||||
detail.setIdentification(documento);
|
||||
detail.setIdentificationcatalog("RUC");
|
||||
detail.setIdentificationcatalogcode("IDENTIFICATION");
|
||||
return detail;
|
||||
|
|
@ -1050,6 +1048,33 @@ public class EvaluacionController extends AbstractController<TarmEvaluacion> {
|
|||
}
|
||||
}
|
||||
|
||||
// public TcustPersonDetail buscarPersonaSnap(String documento, String tipoDocumento) {
|
||||
// if (tipoDocumento.equals("CED")) {
|
||||
// Cedula cedula = ClienteCedula.obtenerCedula(documento);
|
||||
// if (cedula != null) {
|
||||
// TcustPersonDetail detail = new TcustPersonDetail();
|
||||
// detail.setName(cedula.getNombre());
|
||||
// detail.setIdentification(cedula.getCedula());
|
||||
// detail.setIdentificationcatalog("CED");
|
||||
// detail.setIdentificationcatalogcode("IDENTIFICATION");
|
||||
// return detail;
|
||||
// } else {
|
||||
// return null;
|
||||
// }
|
||||
// } else {
|
||||
// Contribuyente contribuyente = ClienteRUC.obtenerRUC(documento);
|
||||
// if (contribuyente != null) {
|
||||
// TcustPersonDetail detail = new TcustPersonDetail();
|
||||
// detail.setName(contribuyente.getRazonSocial());
|
||||
// detail.setIdentification(contribuyente.getNumeroRuc());
|
||||
// detail.setIdentificationcatalog("RUC");
|
||||
// detail.setIdentificationcatalogcode("IDENTIFICATION");
|
||||
// return detail;
|
||||
// } else {
|
||||
// return null;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
public Boolean getAprobado() {
|
||||
return aprobado;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -167,6 +167,9 @@ public class TestConocimientosController extends AbstractController<AbstractData
|
|||
// evaluadoSNAP = buscarPersonaSnap(evaluado.getIdentification(), evaluado.getIdentificationcatalog());
|
||||
//TODO: evaluar casos, salto de validacion por error servicio SNAP
|
||||
evaluadoSNAP = PersonDetailController.findxidentification(evaluado.getIdentification(), evaluado.getIdentificationcatalog());
|
||||
if (evaluadoSNAP == null) {
|
||||
evaluadoSNAP = PersonDetailController.buscarLocal(evaluado.getIdentification());
|
||||
}
|
||||
|
||||
} else if (evaluado.getIdentificationcatalog().equals("RUC")) {
|
||||
// valido validez RUC
|
||||
|
|
@ -177,6 +180,9 @@ public class TestConocimientosController extends AbstractController<AbstractData
|
|||
// evaluadoSNAP = buscarPersonaSnap(evaluado.getIdentification(), evaluado.getIdentificationcatalog());
|
||||
//TODO: evaluar casos, salto de validacion por error servicio SNAP
|
||||
evaluadoSNAP = PersonDetailController.findxidentification(evaluado.getIdentification(), evaluado.getIdentificationcatalog());
|
||||
if (evaluadoSNAP == null) {
|
||||
evaluadoSNAP = PersonDetailController.buscarLocal(evaluado.getIdentification());
|
||||
}
|
||||
} else {
|
||||
// PASAPORTE
|
||||
evaluadoSNAP = new TcustPersonDetail();
|
||||
|
|
|
|||
|
|
@ -54,6 +54,9 @@ import com.fp.frontend.controller.pgeneral.gene.ProvinceController;
|
|||
import com.fp.frontend.helper.MessageHelper;
|
||||
import com.fp.frontend.utility.MsgControlArmas;
|
||||
import com.fp.frontend.utility.ValidateIdentification;
|
||||
import com.fp.frontend.webservices.dinardap.CedulaDNP;
|
||||
import com.fp.frontend.webservices.dinardap.DinardapClient;
|
||||
import com.fp.frontend.webservices.dinardap.RucDNP;
|
||||
import com.fp.frontend.webservices.snap.cedula.ClienteCedula;
|
||||
import com.fp.frontend.webservices.snap.ruc.ClienteRUC;
|
||||
import com.fp.persistence.parmas.param.TarmCentroControl;
|
||||
|
|
@ -218,8 +221,7 @@ public class DecomisoMaterialController extends AbstractController<AbstractDataT
|
|||
private boolean sinDocumento;
|
||||
|
||||
/**
|
||||
* Variables de tipo boolean para habilitar el boton crear en el lov
|
||||
* registro material
|
||||
* Variables de tipo boolean para habilitar el boton crear en el lov registro material
|
||||
*/
|
||||
private boolean habilitaNoDecomiso;
|
||||
/**
|
||||
|
|
@ -347,8 +349,7 @@ public class DecomisoMaterialController extends AbstractController<AbstractDataT
|
|||
*/
|
||||
private String direccionGoogleMap;
|
||||
/**
|
||||
* Propiedad que premite controlar operaciones de cargar archivos al
|
||||
* Alfresco
|
||||
* Propiedad que premite controlar operaciones de cargar archivos al Alfresco
|
||||
*/
|
||||
@ManagedProperty(value = "#{alfrescoController}")
|
||||
private AlfrescoController alfrescoController;
|
||||
|
|
@ -357,8 +358,7 @@ public class DecomisoMaterialController extends AbstractController<AbstractDataT
|
|||
*/
|
||||
private UploadedFile uploadedFile;
|
||||
/**
|
||||
* tipoMapa permite visualizar la posicion del mapa por direccion o por
|
||||
* coordenadas
|
||||
* tipoMapa permite visualizar la posicion del mapa por direccion o por coordenadas
|
||||
*/
|
||||
private String tipoMapa;
|
||||
/**
|
||||
|
|
@ -400,8 +400,7 @@ public class DecomisoMaterialController extends AbstractController<AbstractDataT
|
|||
}
|
||||
|
||||
/**
|
||||
* Incializa variables del controlador, cuando se esta utilizando una pagina
|
||||
* que utliza el controlador.
|
||||
* Incializa variables del controlador, cuando se esta utilizando una pagina que utliza el controlador.
|
||||
*/
|
||||
public void init() {
|
||||
try {
|
||||
|
|
@ -923,8 +922,7 @@ public class DecomisoMaterialController extends AbstractController<AbstractDataT
|
|||
}
|
||||
|
||||
/**
|
||||
* Método para inicializar la lista de las armas y validacién
|
||||
* de los datos del portador
|
||||
* Método para inicializar la lista de las armas y validacién de los datos del portador
|
||||
*/
|
||||
public void registrarMaterial() {
|
||||
if (!sinPortador && !sinDocumento) {
|
||||
|
|
@ -973,8 +971,7 @@ public class DecomisoMaterialController extends AbstractController<AbstractDataT
|
|||
}
|
||||
|
||||
/**
|
||||
* Método que se ejecuta al pulsar el boton aceptar del dialog que
|
||||
* lista las armas a seleccionar Valida si selecciono algun registro si no
|
||||
* Método que se ejecuta al pulsar el boton aceptar del dialog que lista las armas a seleccionar Valida si selecciono algun registro si no
|
||||
* le obliga a seleccionar
|
||||
*/
|
||||
public void armasSeleccionada() {
|
||||
|
|
@ -1019,8 +1016,7 @@ public class DecomisoMaterialController extends AbstractController<AbstractDataT
|
|||
}
|
||||
|
||||
/**
|
||||
* Método que valida la persona portadora del arma o explosivo en las
|
||||
* tablas de maia y en la snap
|
||||
* Método que valida la persona portadora del arma o explosivo en las tablas de maia y en la snap
|
||||
*
|
||||
*/
|
||||
public void validarPortador() {
|
||||
|
|
@ -1101,33 +1097,33 @@ public class DecomisoMaterialController extends AbstractController<AbstractDataT
|
|||
}
|
||||
|
||||
/**
|
||||
* Método para buscar a la persona en la snap
|
||||
* Método para buscar a la persona en Dinardap
|
||||
*
|
||||
* @param documento
|
||||
* @param tipoDocumento
|
||||
* @return
|
||||
*/
|
||||
public TcustPersonDetail buscarPersonaSnap(String documento, String tipoDocumento) {
|
||||
if (tipoDocumento.equals(codigoCedula)) {
|
||||
Cedula cedula = ClienteCedula.obtenerCedula(documento);
|
||||
if (tipoDocumento.equals("CED")) {
|
||||
CedulaDNP cedula = new DinardapClient().getCedula(documento);
|
||||
if (cedula != null) {
|
||||
TcustPersonDetail detail = new TcustPersonDetail();
|
||||
detail.setName(cedula.getNombre());
|
||||
detail.setIdentification(cedula.getCedula());
|
||||
detail.setIdentificationcatalog("CED");
|
||||
detail.setIdentificationcatalogcode("IDENTIFICATION");
|
||||
detail.setDatefrom(new Timestamp(System.currentTimeMillis()));
|
||||
return detail;
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
} else {
|
||||
Contribuyente contribuyente = ClienteRUC.obtenerRUC(documento);
|
||||
RucDNP contribuyente = new DinardapClient().getRuc(documento);
|
||||
if (contribuyente != null) {
|
||||
TcustPersonDetail detail = new TcustPersonDetail();
|
||||
detail.setName(contribuyente.getRazonSocial());
|
||||
detail.setIdentification(contribuyente.getNumeroRuc());
|
||||
detail.setIdentification(documento);
|
||||
detail.setIdentificationcatalog("RUC");
|
||||
detail.setIdentificationcatalogcode("IDENTIFICATION");
|
||||
detail.setDatefrom(new Timestamp(System.currentTimeMillis()));
|
||||
return detail;
|
||||
} else {
|
||||
return null;
|
||||
|
|
@ -1135,9 +1131,42 @@ public class DecomisoMaterialController extends AbstractController<AbstractDataT
|
|||
}
|
||||
}
|
||||
|
||||
// /**
|
||||
// * Método para buscar a la persona en la snap
|
||||
// *
|
||||
// * @param documento
|
||||
// */
|
||||
// public TcustPersonDetail buscarPersonaSnap(String documento, String tipoDocumento) {
|
||||
// if (tipoDocumento.equals(codigoCedula)) {
|
||||
// Cedula cedula = ClienteCedula.obtenerCedula(documento);
|
||||
// if (cedula != null) {
|
||||
// TcustPersonDetail detail = new TcustPersonDetail();
|
||||
// detail.setName(cedula.getNombre());
|
||||
// detail.setIdentification(cedula.getCedula());
|
||||
// detail.setIdentificationcatalog("CED");
|
||||
// detail.setIdentificationcatalogcode("IDENTIFICATION");
|
||||
// detail.setDatefrom(new Timestamp(System.currentTimeMillis()));
|
||||
// return detail;
|
||||
// } else {
|
||||
// return null;
|
||||
// }
|
||||
// } else {
|
||||
// Contribuyente contribuyente = ClienteRUC.obtenerRUC(documento);
|
||||
// if (contribuyente != null) {
|
||||
// TcustPersonDetail detail = new TcustPersonDetail();
|
||||
// detail.setName(contribuyente.getRazonSocial());
|
||||
// detail.setIdentification(contribuyente.getNumeroRuc());
|
||||
// detail.setIdentificationcatalog("RUC");
|
||||
// detail.setIdentificationcatalogcode("IDENTIFICATION");
|
||||
// detail.setDatefrom(new Timestamp(System.currentTimeMillis()));
|
||||
// return detail;
|
||||
// } else {
|
||||
// return null;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
/**
|
||||
* Método para manejar el evento change en el CheckBox Arma a
|
||||
* decomisar
|
||||
* Método para manejar el evento change en el CheckBox Arma a decomisar
|
||||
*
|
||||
* @throws Exception
|
||||
*/
|
||||
|
|
@ -1230,8 +1259,7 @@ public class DecomisoMaterialController extends AbstractController<AbstractDataT
|
|||
}
|
||||
|
||||
/**
|
||||
* Método para actualizar el motivo del decomiso del arma arma
|
||||
* existente se ejecuta en el botón del formulario del motivo de
|
||||
* Método para actualizar el motivo del decomiso del arma arma existente se ejecuta en el botón del formulario del motivo de
|
||||
* decomiso
|
||||
*/
|
||||
public void actualizarDecomiso() {
|
||||
|
|
@ -1248,8 +1276,7 @@ public class DecomisoMaterialController extends AbstractController<AbstractDataT
|
|||
}
|
||||
|
||||
/**
|
||||
* Método para actualizar el arma cuando ya llena los datos en el
|
||||
* formulario de crear arma
|
||||
* Método para actualizar el arma cuando ya llena los datos en el formulario de crear arma
|
||||
*
|
||||
* @throws Exception
|
||||
*/
|
||||
|
|
@ -1344,8 +1371,7 @@ public class DecomisoMaterialController extends AbstractController<AbstractDataT
|
|||
}
|
||||
|
||||
/**
|
||||
* Método para recorreer los combos y setear las descripciones de lo
|
||||
* q se escoge para la vista
|
||||
* Método para recorreer los combos y setear las descripciones de lo q se escoge para la vista
|
||||
*
|
||||
* @param list
|
||||
* @param codigo
|
||||
|
|
@ -1471,8 +1497,7 @@ public class DecomisoMaterialController extends AbstractController<AbstractDataT
|
|||
}
|
||||
|
||||
/**
|
||||
* Método para inicilalizar los campos segun la unidad de medida
|
||||
* (unidad, kg)
|
||||
* Método para inicilalizar los campos segun la unidad de medida (unidad, kg)
|
||||
*
|
||||
* @param cantidad
|
||||
*/
|
||||
|
|
@ -1482,8 +1507,7 @@ public class DecomisoMaterialController extends AbstractController<AbstractDataT
|
|||
}
|
||||
|
||||
/**
|
||||
* Método para inicilalizar los campos segun la unidad de medida
|
||||
* (unidad, kg)
|
||||
* Método para inicilalizar los campos segun la unidad de medida (unidad, kg)
|
||||
*
|
||||
* @param peso
|
||||
*/
|
||||
|
|
@ -1649,8 +1673,7 @@ public class DecomisoMaterialController extends AbstractController<AbstractDataT
|
|||
}
|
||||
|
||||
/**
|
||||
* Metodo que retorna la extencion del comprobante de deposito que se desea
|
||||
* subir al alfresco
|
||||
* Metodo que retorna la extencion del comprobante de deposito que se desea subir al alfresco
|
||||
*/
|
||||
public String getExtension(String filename) {
|
||||
int index = filename.lastIndexOf('.');
|
||||
|
|
@ -1676,8 +1699,7 @@ public class DecomisoMaterialController extends AbstractController<AbstractDataT
|
|||
}
|
||||
|
||||
/**
|
||||
* Carga el archivo a grabar en la memoria para su posterior persistencia en
|
||||
* el Alfresco
|
||||
* Carga el archivo a grabar en la memoria para su posterior persistencia en el Alfresco
|
||||
*/
|
||||
public void handleUpload(FileUploadEvent event) {
|
||||
uploadedFile = event.getFile();
|
||||
|
|
@ -1688,8 +1710,7 @@ public class DecomisoMaterialController extends AbstractController<AbstractDataT
|
|||
}
|
||||
|
||||
/**
|
||||
* Metodo que permite setear los datos de coordenadas relacionados a la
|
||||
* entidad TarmDecomiso, una vez seleccionado un punto en el Map desde
|
||||
* Metodo que permite setear los datos de coordenadas relacionados a la entidad TarmDecomiso, una vez seleccionado un punto en el Map desde
|
||||
* pantalla
|
||||
*/
|
||||
public void evento() {
|
||||
|
|
@ -1739,8 +1760,7 @@ public class DecomisoMaterialController extends AbstractController<AbstractDataT
|
|||
}
|
||||
|
||||
/**
|
||||
* Permite inicializar los campos de longitud y lalitud y cargar a los datos
|
||||
* de coordenadas relacionados a la entidad TarmDecomiso
|
||||
* Permite inicializar los campos de longitud y lalitud y cargar a los datos de coordenadas relacionados a la entidad TarmDecomiso
|
||||
*/
|
||||
public void openMapPorCoordenandas() {
|
||||
setLatitud("");
|
||||
|
|
@ -1753,8 +1773,7 @@ public class DecomisoMaterialController extends AbstractController<AbstractDataT
|
|||
}
|
||||
|
||||
/**
|
||||
* Metodo que permite transformar de Coordenadas Hexadecimales a Coordenadas
|
||||
* en Grados, Minutos y Seguntos
|
||||
* Metodo que permite transformar de Coordenadas Hexadecimales a Coordenadas en Grados, Minutos y Seguntos
|
||||
*
|
||||
* @param coordenada
|
||||
* @return vector con las Coordenadas en Grados, Minutos y Seguntos
|
||||
|
|
@ -1769,8 +1788,7 @@ public class DecomisoMaterialController extends AbstractController<AbstractDataT
|
|||
}
|
||||
|
||||
/**
|
||||
* Metodo que permite transformar de coordenadas en Grados, Minutos y
|
||||
* Seguntos a Coordenadas Hexadecimales
|
||||
* Metodo que permite transformar de coordenadas en Grados, Minutos y Seguntos a Coordenadas Hexadecimales
|
||||
*
|
||||
* @param grados
|
||||
* @param minutos
|
||||
|
|
@ -1787,8 +1805,7 @@ public class DecomisoMaterialController extends AbstractController<AbstractDataT
|
|||
}
|
||||
|
||||
/**
|
||||
* Muestra un mensaje de error siempre y cuando sea un error de componente y
|
||||
* se lo muestra como general
|
||||
* Muestra un mensaje de error siempre y cuando sea un error de componente y se lo muestra como general
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -16,7 +16,10 @@ import com.fp.dto.query.SubQuery;
|
|||
import com.fp.dto.save.DtoSave;
|
||||
import com.fp.frontend.controller.AbstractController;
|
||||
import com.fp.frontend.helper.MessageHelper;
|
||||
import com.fp.persistence.commondb.PersistenceHelper;
|
||||
import com.fp.persistence.pcustomer.gene.TcustPersonDetail;
|
||||
import java.sql.Timestamp;
|
||||
import javax.persistence.Query;
|
||||
|
||||
/**
|
||||
* Clase controladora del bean TcustPersonDetail.
|
||||
|
|
@ -42,8 +45,7 @@ public class PersonDetailController extends AbstractController<TcustPersonDetail
|
|||
}
|
||||
|
||||
/**
|
||||
* Incializa el controlador, cuando se esta utilizando una pagina que utliza
|
||||
* el controlador.
|
||||
* Incializa el controlador, cuando se esta utilizando una pagina que utliza el controlador.
|
||||
*/
|
||||
private void init() {
|
||||
try {
|
||||
|
|
@ -209,8 +211,7 @@ public class PersonDetailController extends AbstractController<TcustPersonDetail
|
|||
*
|
||||
* @param identificacion
|
||||
* @param tipoidentificacion
|
||||
* @return Find para encontrar una persona por su identificacion y tipo de
|
||||
* identificacion
|
||||
* @return Find para encontrar una persona por su identificacion y tipo de identificacion
|
||||
*/
|
||||
public static TcustPersonDetail findxidentification(String identificacion, String tipoidentificacion) {
|
||||
try {
|
||||
|
|
@ -231,6 +232,32 @@ public class PersonDetailController extends AbstractController<TcustPersonDetail
|
|||
}
|
||||
}
|
||||
|
||||
public static TcustPersonDetail buscarLocal(String identificacion) {
|
||||
TcustPersonDetail detail = null;
|
||||
if (identificacion == null || identificacion.isEmpty() || identificacion.trim().length() < 10) {
|
||||
return detail;
|
||||
}
|
||||
try {
|
||||
String select = "select identificacion,id_rep_legal,rep_legal,nombre,razon_social,direccion,profesion,estado_civil,genero,descripcion"
|
||||
+ " from comaco.tmp_identificaciones where identificacion=:identificacion";
|
||||
Query query = PersistenceHelper.getEntityManager().createQuery(select);
|
||||
query.setParameter("identificacion", identificacion);
|
||||
List<Object[]> temp = query.getResultList();
|
||||
for (Object[] fila : temp) {
|
||||
detail = new TcustPersonDetail();
|
||||
detail.setIdentification((String) fila[0]);
|
||||
detail.setName(identificacion.length() == 13 ? (String) fila[4] : (String) fila[3]);
|
||||
detail.setIdentificationcatalog(identificacion.length() == 10 ? "CED" : "RUC");
|
||||
detail.setIdentificationcatalogcode("IDENTIFICATION");
|
||||
detail.setDatefrom(new Timestamp(System.currentTimeMillis()));
|
||||
break;
|
||||
}
|
||||
} catch (Throwable e) {
|
||||
MessageHelper.setMessageError(e);
|
||||
}
|
||||
return detail;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param identificacion
|
||||
* @param tipoidentificacion
|
||||
|
|
|
|||
|
|
@ -0,0 +1,65 @@
|
|||
/*
|
||||
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
|
||||
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
|
||||
*/
|
||||
package com.fp.frontend.webservices.dinardap;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author james
|
||||
*/
|
||||
public class CedulaDNP {
|
||||
|
||||
public final static String VAR_CEDULA = "cedula";
|
||||
public final static String VAR_CIVIL = "estadoCivil";
|
||||
public final static String VAR_PROFESION = "profesion";
|
||||
public final static String VAR_LUGAR = "lugarNacimiento";
|
||||
public final static String VAR_NOMBRE = "nombre";
|
||||
|
||||
private String cedula;
|
||||
private String estadoCivil;
|
||||
private String profesion;
|
||||
private String lugarNacimiento;
|
||||
private String nombre;
|
||||
|
||||
public String getCedula() {
|
||||
return cedula;
|
||||
}
|
||||
|
||||
public void setCedula(String cedula) {
|
||||
this.cedula = cedula;
|
||||
}
|
||||
|
||||
public String getEstadoCivil() {
|
||||
return estadoCivil;
|
||||
}
|
||||
|
||||
public void setEstadoCivil(String estadoCivil) {
|
||||
this.estadoCivil = estadoCivil;
|
||||
}
|
||||
|
||||
public String getProfesion() {
|
||||
return profesion;
|
||||
}
|
||||
|
||||
public void setProfesion(String profesion) {
|
||||
this.profesion = profesion;
|
||||
}
|
||||
|
||||
public String getLugarNacimiento() {
|
||||
return lugarNacimiento;
|
||||
}
|
||||
|
||||
public void setLugarNacimiento(String lugarNacimiento) {
|
||||
this.lugarNacimiento = lugarNacimiento;
|
||||
}
|
||||
|
||||
public String getNombre() {
|
||||
return nombre;
|
||||
}
|
||||
|
||||
public void setNombre(String nombre) {
|
||||
this.nombre = nombre;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,57 @@
|
|||
package com.fp.frontend.webservices.dinardap;
|
||||
|
||||
import com.fp.frontend.webservices.dinardap.*;
|
||||
import javax.xml.bind.annotation.XmlAccessType;
|
||||
import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Clase Java para consultaCedula complex type.
|
||||
*
|
||||
* <p>
|
||||
* El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase.
|
||||
*
|
||||
* <pre>
|
||||
* <complexType name="consultaCedula">
|
||||
* <complexContent>
|
||||
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
|
||||
* <sequence>
|
||||
* <element name="cedula" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
|
||||
* </sequence>
|
||||
* </restriction>
|
||||
* </complexContent>
|
||||
* </complexType>
|
||||
* </pre>
|
||||
*
|
||||
*
|
||||
*/
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
@XmlType(name = "consultaCedula", propOrder = {
|
||||
"cedula"
|
||||
})
|
||||
public class ConsultaCedula {
|
||||
|
||||
protected String cedula;
|
||||
|
||||
/**
|
||||
* Obtiene el valor de la propiedad cedula.
|
||||
*
|
||||
* @return possible object is {@link String }
|
||||
*
|
||||
*/
|
||||
public String getCedula() {
|
||||
return cedula;
|
||||
}
|
||||
|
||||
/**
|
||||
* Define el valor de la propiedad cedula.
|
||||
*
|
||||
* @param value allowed object is {@link String }
|
||||
*
|
||||
*/
|
||||
public void setCedula(String value) {
|
||||
this.cedula = value;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,57 @@
|
|||
package com.fp.frontend.webservices.dinardap;
|
||||
|
||||
import com.fp.frontend.webservices.dinardap.*;
|
||||
import javax.xml.bind.annotation.XmlAccessType;
|
||||
import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Clase Java para consultaCedulaResponse complex type.
|
||||
*
|
||||
* <p>
|
||||
* El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase.
|
||||
*
|
||||
* <pre>
|
||||
* <complexType name="consultaCedulaResponse">
|
||||
* <complexContent>
|
||||
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
|
||||
* <sequence>
|
||||
* <element name="response" type="{http://service.sincoar.qsoft.com/}respuesta" minOccurs="0"/>
|
||||
* </sequence>
|
||||
* </restriction>
|
||||
* </complexContent>
|
||||
* </complexType>
|
||||
* </pre>
|
||||
*
|
||||
*
|
||||
*/
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
@XmlType(name = "consultaCedulaResponse", propOrder = {
|
||||
"response"
|
||||
})
|
||||
public class ConsultaCedulaResponse {
|
||||
|
||||
protected Respuesta response;
|
||||
|
||||
/**
|
||||
* Obtiene el valor de la propiedad response.
|
||||
*
|
||||
* @return possible object is {@link Respuesta }
|
||||
*
|
||||
*/
|
||||
public Respuesta getResponse() {
|
||||
return response;
|
||||
}
|
||||
|
||||
/**
|
||||
* Define el valor de la propiedad response.
|
||||
*
|
||||
* @param value allowed object is {@link Respuesta }
|
||||
*
|
||||
*/
|
||||
public void setResponse(Respuesta value) {
|
||||
this.response = value;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,57 @@
|
|||
package com.fp.frontend.webservices.dinardap;
|
||||
|
||||
import com.fp.frontend.webservices.dinardap.*;
|
||||
import javax.xml.bind.annotation.XmlAccessType;
|
||||
import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Clase Java para consultaRuc complex type.
|
||||
*
|
||||
* <p>
|
||||
* El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase.
|
||||
*
|
||||
* <pre>
|
||||
* <complexType name="consultaRuc">
|
||||
* <complexContent>
|
||||
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
|
||||
* <sequence>
|
||||
* <element name="ruc" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
|
||||
* </sequence>
|
||||
* </restriction>
|
||||
* </complexContent>
|
||||
* </complexType>
|
||||
* </pre>
|
||||
*
|
||||
*
|
||||
*/
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
@XmlType(name = "consultaRuc", propOrder = {
|
||||
"ruc"
|
||||
})
|
||||
public class ConsultaRuc {
|
||||
|
||||
protected String ruc;
|
||||
|
||||
/**
|
||||
* Obtiene el valor de la propiedad ruc.
|
||||
*
|
||||
* @return possible object is {@link String }
|
||||
*
|
||||
*/
|
||||
public String getRuc() {
|
||||
return ruc;
|
||||
}
|
||||
|
||||
/**
|
||||
* Define el valor de la propiedad ruc.
|
||||
*
|
||||
* @param value allowed object is {@link String }
|
||||
*
|
||||
*/
|
||||
public void setRuc(String value) {
|
||||
this.ruc = value;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,57 @@
|
|||
package com.fp.frontend.webservices.dinardap;
|
||||
|
||||
import com.fp.frontend.webservices.dinardap.*;
|
||||
import javax.xml.bind.annotation.XmlAccessType;
|
||||
import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Clase Java para consultaRucResponse complex type.
|
||||
*
|
||||
* <p>
|
||||
* El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase.
|
||||
*
|
||||
* <pre>
|
||||
* <complexType name="consultaRucResponse">
|
||||
* <complexContent>
|
||||
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
|
||||
* <sequence>
|
||||
* <element name="response" type="{http://service.sincoar.qsoft.com/}respuesta" minOccurs="0"/>
|
||||
* </sequence>
|
||||
* </restriction>
|
||||
* </complexContent>
|
||||
* </complexType>
|
||||
* </pre>
|
||||
*
|
||||
*
|
||||
*/
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
@XmlType(name = "consultaRucResponse", propOrder = {
|
||||
"response"
|
||||
})
|
||||
public class ConsultaRucResponse {
|
||||
|
||||
protected Respuesta response;
|
||||
|
||||
/**
|
||||
* Obtiene el valor de la propiedad response.
|
||||
*
|
||||
* @return possible object is {@link Respuesta }
|
||||
*
|
||||
*/
|
||||
public Respuesta getResponse() {
|
||||
return response;
|
||||
}
|
||||
|
||||
/**
|
||||
* Define el valor de la propiedad response.
|
||||
*
|
||||
* @param value allowed object is {@link Respuesta }
|
||||
*
|
||||
*/
|
||||
public void setResponse(Respuesta value) {
|
||||
this.response = value;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,93 @@
|
|||
/*
|
||||
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
|
||||
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
|
||||
*/
|
||||
package com.fp.frontend.webservices.dinardap;
|
||||
|
||||
import java.util.HashSet;
|
||||
import javax.xml.ws.BindingProvider;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author james
|
||||
*/
|
||||
public class DinardapClient {
|
||||
|
||||
private final static String ERROR_OK = "0";
|
||||
|
||||
public static void main(String[] args) {
|
||||
System.out.println("========= CONSULTAR =============");
|
||||
CedulaDNP ced = new DinardapClient().getCedula("1715060073");
|
||||
System.out.println(ced.getCedula());
|
||||
System.out.println(ced.getEstadoCivil());
|
||||
System.out.println(ced.getProfesion());
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ruc
|
||||
* @return
|
||||
*/
|
||||
public RucDNP getRuc(String ruc) {
|
||||
RucDNP result = null;
|
||||
SincoarServices services = new SincoarServices_Service().getSincoarServicesPort();
|
||||
((BindingProvider) services).getRequestContext().put("javax.xml.ws.client.connectionTimeout", "5000");
|
||||
((BindingProvider) services).getRequestContext().put("javax.xml.ws.client.receiveTimeout", "5000");
|
||||
|
||||
Respuesta respuesta = services.consultaCedula(ruc);
|
||||
if (respuesta.getCodigoError().equals(ERROR_OK)) {
|
||||
result = new RucDNP();
|
||||
result.setActividades(new HashSet<>(respuesta.getActividad()));
|
||||
for (Respuesta.Datos.Entry e : respuesta.getDatos().getEntry()) {
|
||||
switch (e.getKey()) {
|
||||
case RucDNP.VAR_NOMBRE:
|
||||
result.setRazonSocial(e.getValue());
|
||||
break;
|
||||
case RucDNP.VAR_TIPO:
|
||||
result.setPersonaSociedad(e.getValue());
|
||||
break;
|
||||
case RucDNP.VAR_UBICACION:
|
||||
result.setUbicacionGeo(e.getValue());
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param cedula
|
||||
* @return
|
||||
*/
|
||||
public CedulaDNP getCedula(String cedula) {
|
||||
CedulaDNP result = null;
|
||||
SincoarServices services = new SincoarServices_Service().getSincoarServicesPort();
|
||||
((BindingProvider) services).getRequestContext().put("javax.xml.ws.client.connectionTimeout", "5000");
|
||||
((BindingProvider) services).getRequestContext().put("javax.xml.ws.client.receiveTimeout", "5000");
|
||||
|
||||
Respuesta respuesta = services.consultaCedula(cedula);
|
||||
if (respuesta.getCodigoError().equals(ERROR_OK)) {
|
||||
result = new CedulaDNP();
|
||||
for (Respuesta.Datos.Entry e : respuesta.getDatos().getEntry()) {
|
||||
switch (e.getKey()) {
|
||||
case CedulaDNP.VAR_CEDULA:
|
||||
result.setCedula(e.getValue());
|
||||
break;
|
||||
case CedulaDNP.VAR_NOMBRE:
|
||||
result.setNombre(e.getValue());
|
||||
break;
|
||||
case CedulaDNP.VAR_CIVIL:
|
||||
result.setEstadoCivil(e.getValue());
|
||||
break;
|
||||
case CedulaDNP.VAR_LUGAR:
|
||||
result.setLugarNacimiento(e.getValue());
|
||||
break;
|
||||
case CedulaDNP.VAR_PROFESION:
|
||||
result.setProfesion(e.getValue());
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,125 @@
|
|||
package com.fp.frontend.webservices.dinardap;
|
||||
|
||||
import com.fp.frontend.webservices.dinardap.*;
|
||||
import javax.xml.bind.JAXBElement;
|
||||
import javax.xml.bind.annotation.XmlElementDecl;
|
||||
import javax.xml.bind.annotation.XmlRegistry;
|
||||
import javax.xml.namespace.QName;
|
||||
|
||||
/**
|
||||
* This object contains factory methods for each Java content interface and Java element interface generated in the
|
||||
* com.fp.frontend.webservices.dinardap package.
|
||||
* <p>
|
||||
* An ObjectFactory allows you to programatically construct new instances of the Java representation for XML content. The Java representation of XML
|
||||
* content can consist of schema derived interfaces and classes representing the binding of schema type definitions, element declarations and model
|
||||
* groups. Factory methods for each of these are provided in this class.
|
||||
*
|
||||
*/
|
||||
@XmlRegistry
|
||||
public class ObjectFactory {
|
||||
|
||||
private final static QName _ConsultaCedula_QNAME = new QName("http://service.sincoar.qsoft.com/", "consultaCedula");
|
||||
private final static QName _ConsultaRucResponse_QNAME = new QName("http://service.sincoar.qsoft.com/", "consultaRucResponse");
|
||||
private final static QName _ConsultaRuc_QNAME = new QName("http://service.sincoar.qsoft.com/", "consultaRuc");
|
||||
private final static QName _ConsultaCedulaResponse_QNAME = new QName("http://service.sincoar.qsoft.com/", "consultaCedulaResponse");
|
||||
|
||||
/**
|
||||
* Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: com.fp.frontend.webservices.dinardap
|
||||
*
|
||||
*/
|
||||
public ObjectFactory() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link Respuesta }
|
||||
*
|
||||
*/
|
||||
public Respuesta createRespuesta() {
|
||||
return new Respuesta();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link Respuesta.Datos }
|
||||
*
|
||||
*/
|
||||
public Respuesta.Datos createRespuestaDatos() {
|
||||
return new Respuesta.Datos();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link ConsultaCedula }
|
||||
*
|
||||
*/
|
||||
public ConsultaCedula createConsultaCedula() {
|
||||
return new ConsultaCedula();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link ConsultaRucResponse }
|
||||
*
|
||||
*/
|
||||
public ConsultaRucResponse createConsultaRucResponse() {
|
||||
return new ConsultaRucResponse();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link ConsultaRuc }
|
||||
*
|
||||
*/
|
||||
public ConsultaRuc createConsultaRuc() {
|
||||
return new ConsultaRuc();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link ConsultaCedulaResponse }
|
||||
*
|
||||
*/
|
||||
public ConsultaCedulaResponse createConsultaCedulaResponse() {
|
||||
return new ConsultaCedulaResponse();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link Respuesta.Datos.Entry }
|
||||
*
|
||||
*/
|
||||
public Respuesta.Datos.Entry createRespuestaDatosEntry() {
|
||||
return new Respuesta.Datos.Entry();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link JAXBElement }{@code <}{@link ConsultaCedula }{@code >}}
|
||||
*
|
||||
*/
|
||||
@XmlElementDecl(namespace = "http://service.sincoar.qsoft.com/", name = "consultaCedula")
|
||||
public JAXBElement<ConsultaCedula> createConsultaCedula(ConsultaCedula value) {
|
||||
return new JAXBElement<ConsultaCedula>(_ConsultaCedula_QNAME, ConsultaCedula.class, null, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link JAXBElement }{@code <}{@link ConsultaRucResponse }{@code >}}
|
||||
*
|
||||
*/
|
||||
@XmlElementDecl(namespace = "http://service.sincoar.qsoft.com/", name = "consultaRucResponse")
|
||||
public JAXBElement<ConsultaRucResponse> createConsultaRucResponse(ConsultaRucResponse value) {
|
||||
return new JAXBElement<ConsultaRucResponse>(_ConsultaRucResponse_QNAME, ConsultaRucResponse.class, null, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link JAXBElement }{@code <}{@link ConsultaRuc }{@code >}}
|
||||
*
|
||||
*/
|
||||
@XmlElementDecl(namespace = "http://service.sincoar.qsoft.com/", name = "consultaRuc")
|
||||
public JAXBElement<ConsultaRuc> createConsultaRuc(ConsultaRuc value) {
|
||||
return new JAXBElement<ConsultaRuc>(_ConsultaRuc_QNAME, ConsultaRuc.class, null, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link JAXBElement }{@code <}{@link ConsultaCedulaResponse }{@code >}}
|
||||
*
|
||||
*/
|
||||
@XmlElementDecl(namespace = "http://service.sincoar.qsoft.com/", name = "consultaCedulaResponse")
|
||||
public JAXBElement<ConsultaCedulaResponse> createConsultaCedulaResponse(ConsultaCedulaResponse value) {
|
||||
return new JAXBElement<ConsultaCedulaResponse>(_ConsultaCedulaResponse_QNAME, ConsultaCedulaResponse.class, null, value);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,300 @@
|
|||
package com.fp.frontend.webservices.dinardap;
|
||||
|
||||
import com.fp.frontend.webservices.dinardap.*;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import javax.xml.bind.annotation.XmlAccessType;
|
||||
import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlElement;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Clase Java para respuesta complex type.
|
||||
*
|
||||
* <p>
|
||||
* El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase.
|
||||
*
|
||||
* <pre>
|
||||
* <complexType name="respuesta">
|
||||
* <complexContent>
|
||||
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
|
||||
* <sequence>
|
||||
* <element name="actividad" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
|
||||
* <element name="codigoError" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
|
||||
* <element name="datos">
|
||||
* <complexType>
|
||||
* <complexContent>
|
||||
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
|
||||
* <sequence>
|
||||
* <element name="entry" maxOccurs="unbounded" minOccurs="0">
|
||||
* <complexType>
|
||||
* <complexContent>
|
||||
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
|
||||
* <sequence>
|
||||
* <element name="key" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
|
||||
* <element name="value" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
|
||||
* </sequence>
|
||||
* </restriction>
|
||||
* </complexContent>
|
||||
* </complexType>
|
||||
* </element>
|
||||
* </sequence>
|
||||
* </restriction>
|
||||
* </complexContent>
|
||||
* </complexType>
|
||||
* </element>
|
||||
* <element name="mensajeError" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
|
||||
* </sequence>
|
||||
* </restriction>
|
||||
* </complexContent>
|
||||
* </complexType>
|
||||
* </pre>
|
||||
*
|
||||
*
|
||||
*/
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
@XmlType(name = "respuesta", propOrder = {
|
||||
"actividad",
|
||||
"codigoError",
|
||||
"datos",
|
||||
"mensajeError"
|
||||
})
|
||||
public class Respuesta {
|
||||
|
||||
@XmlElement(nillable = true)
|
||||
protected List<String> actividad;
|
||||
protected String codigoError;
|
||||
@XmlElement(required = true)
|
||||
protected Respuesta.Datos datos;
|
||||
protected String mensajeError;
|
||||
|
||||
/**
|
||||
* Gets the value of the actividad property.
|
||||
*
|
||||
* <p>
|
||||
* This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be
|
||||
* present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the actividad property.
|
||||
*
|
||||
* <p>
|
||||
* For example, to add a new item, do as follows:
|
||||
* <pre>
|
||||
* getActividad().add(newItem);
|
||||
* </pre>
|
||||
*
|
||||
*
|
||||
* <p>
|
||||
* Objects of the following type(s) are allowed in the list {@link String }
|
||||
*
|
||||
*
|
||||
*/
|
||||
public List<String> getActividad() {
|
||||
if (actividad == null) {
|
||||
actividad = new ArrayList<String>();
|
||||
}
|
||||
return this.actividad;
|
||||
}
|
||||
|
||||
/**
|
||||
* Obtiene el valor de la propiedad codigoError.
|
||||
*
|
||||
* @return possible object is {@link String }
|
||||
*
|
||||
*/
|
||||
public String getCodigoError() {
|
||||
return codigoError;
|
||||
}
|
||||
|
||||
/**
|
||||
* Define el valor de la propiedad codigoError.
|
||||
*
|
||||
* @param value allowed object is {@link String }
|
||||
*
|
||||
*/
|
||||
public void setCodigoError(String value) {
|
||||
this.codigoError = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Obtiene el valor de la propiedad datos.
|
||||
*
|
||||
* @return possible object is {@link Respuesta.Datos }
|
||||
*
|
||||
*/
|
||||
public Respuesta.Datos getDatos() {
|
||||
return datos;
|
||||
}
|
||||
|
||||
/**
|
||||
* Define el valor de la propiedad datos.
|
||||
*
|
||||
* @param value allowed object is {@link Respuesta.Datos }
|
||||
*
|
||||
*/
|
||||
public void setDatos(Respuesta.Datos value) {
|
||||
this.datos = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Obtiene el valor de la propiedad mensajeError.
|
||||
*
|
||||
* @return possible object is {@link String }
|
||||
*
|
||||
*/
|
||||
public String getMensajeError() {
|
||||
return mensajeError;
|
||||
}
|
||||
|
||||
/**
|
||||
* Define el valor de la propiedad mensajeError.
|
||||
*
|
||||
* @param value allowed object is {@link String }
|
||||
*
|
||||
*/
|
||||
public void setMensajeError(String value) {
|
||||
this.mensajeError = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Clase Java para anonymous complex type.
|
||||
*
|
||||
* <p>
|
||||
* El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase.
|
||||
*
|
||||
* <pre>
|
||||
* <complexType>
|
||||
* <complexContent>
|
||||
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
|
||||
* <sequence>
|
||||
* <element name="entry" maxOccurs="unbounded" minOccurs="0">
|
||||
* <complexType>
|
||||
* <complexContent>
|
||||
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
|
||||
* <sequence>
|
||||
* <element name="key" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
|
||||
* <element name="value" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
|
||||
* </sequence>
|
||||
* </restriction>
|
||||
* </complexContent>
|
||||
* </complexType>
|
||||
* </element>
|
||||
* </sequence>
|
||||
* </restriction>
|
||||
* </complexContent>
|
||||
* </complexType>
|
||||
* </pre>
|
||||
*
|
||||
*
|
||||
*/
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
@XmlType(name = "", propOrder = {
|
||||
"entry"
|
||||
})
|
||||
public static class Datos {
|
||||
|
||||
protected List<Respuesta.Datos.Entry> entry;
|
||||
|
||||
/**
|
||||
* Gets the value of the entry property.
|
||||
*
|
||||
* <p>
|
||||
* This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be
|
||||
* present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the entry property.
|
||||
*
|
||||
* <p>
|
||||
* For example, to add a new item, do as follows:
|
||||
* <pre>
|
||||
* getEntry().add(newItem);
|
||||
* </pre>
|
||||
*
|
||||
*
|
||||
* <p>
|
||||
* Objects of the following type(s) are allowed in the list {@link Respuesta.Datos.Entry }
|
||||
*
|
||||
*
|
||||
*/
|
||||
public List<Respuesta.Datos.Entry> getEntry() {
|
||||
if (entry == null) {
|
||||
entry = new ArrayList<Respuesta.Datos.Entry>();
|
||||
}
|
||||
return this.entry;
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Clase Java para anonymous complex type.
|
||||
*
|
||||
* <p>
|
||||
* El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase.
|
||||
*
|
||||
* <pre>
|
||||
* <complexType>
|
||||
* <complexContent>
|
||||
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
|
||||
* <sequence>
|
||||
* <element name="key" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
|
||||
* <element name="value" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
|
||||
* </sequence>
|
||||
* </restriction>
|
||||
* </complexContent>
|
||||
* </complexType>
|
||||
* </pre>
|
||||
*
|
||||
*
|
||||
*/
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
@XmlType(name = "", propOrder = {
|
||||
"key",
|
||||
"value"
|
||||
})
|
||||
public static class Entry {
|
||||
|
||||
protected String key;
|
||||
protected String value;
|
||||
|
||||
/**
|
||||
* Obtiene el valor de la propiedad key.
|
||||
*
|
||||
* @return possible object is {@link String }
|
||||
*
|
||||
*/
|
||||
public String getKey() {
|
||||
return key;
|
||||
}
|
||||
|
||||
/**
|
||||
* Define el valor de la propiedad key.
|
||||
*
|
||||
* @param value allowed object is {@link String }
|
||||
*
|
||||
*/
|
||||
public void setKey(String value) {
|
||||
this.key = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Obtiene el valor de la propiedad value.
|
||||
*
|
||||
* @return possible object is {@link String }
|
||||
*
|
||||
*/
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Define el valor de la propiedad value.
|
||||
*
|
||||
* @param value allowed object is {@link String }
|
||||
*
|
||||
*/
|
||||
public void setValue(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,56 @@
|
|||
/*
|
||||
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
|
||||
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
|
||||
*/
|
||||
package com.fp.frontend.webservices.dinardap;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author james
|
||||
*/
|
||||
public class RucDNP {
|
||||
|
||||
public final static String VAR_TIPO = "personaSociedad";
|
||||
public final static String VAR_UBICACION = "descripcionUbicacionGeo";
|
||||
final static String VAR_NOMBRE = "razonSocial";
|
||||
|
||||
private String personaSociedad;
|
||||
private String ubicacionGeo;
|
||||
private String razonSocial;
|
||||
private Set<String> actividades;
|
||||
|
||||
public String getPersonaSociedad() {
|
||||
return personaSociedad;
|
||||
}
|
||||
|
||||
public void setPersonaSociedad(String personaSociedad) {
|
||||
this.personaSociedad = personaSociedad;
|
||||
}
|
||||
|
||||
public String getUbicacionGeo() {
|
||||
return ubicacionGeo;
|
||||
}
|
||||
|
||||
public void setUbicacionGeo(String ubicacionGeo) {
|
||||
this.ubicacionGeo = ubicacionGeo;
|
||||
}
|
||||
|
||||
public String getRazonSocial() {
|
||||
return razonSocial;
|
||||
}
|
||||
|
||||
public void setRazonSocial(String razonSocial) {
|
||||
this.razonSocial = razonSocial;
|
||||
}
|
||||
|
||||
public Set<String> getActividades() {
|
||||
return actividades;
|
||||
}
|
||||
|
||||
public void setActividades(Set<String> actividades) {
|
||||
this.actividades = actividades;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,46 @@
|
|||
package com.fp.frontend.webservices.dinardap;
|
||||
|
||||
import com.fp.frontend.webservices.dinardap.*;
|
||||
import javax.jws.WebMethod;
|
||||
import javax.jws.WebParam;
|
||||
import javax.jws.WebResult;
|
||||
import javax.jws.WebService;
|
||||
import javax.xml.bind.annotation.XmlSeeAlso;
|
||||
import javax.xml.ws.RequestWrapper;
|
||||
import javax.xml.ws.ResponseWrapper;
|
||||
|
||||
/**
|
||||
* This class was generated by the JAX-WS RI. JAX-WS RI 2.2.8 Generated source version: 2.2
|
||||
*
|
||||
*/
|
||||
@WebService(name = "SincoarServices", targetNamespace = "http://service.sincoar.qsoft.com/")
|
||||
@XmlSeeAlso({
|
||||
ObjectFactory.class
|
||||
})
|
||||
public interface SincoarServices {
|
||||
|
||||
/**
|
||||
*
|
||||
* @param cedula
|
||||
* @return returns com.fp.frontend.webservices.dinardap.Respuesta
|
||||
*/
|
||||
@WebMethod
|
||||
@WebResult(name = "response", targetNamespace = "")
|
||||
@RequestWrapper(localName = "consultaCedula", targetNamespace = "http://service.sincoar.qsoft.com/", className = "com.fp.frontend.webservices.dinardap.ConsultaCedula")
|
||||
@ResponseWrapper(localName = "consultaCedulaResponse", targetNamespace = "http://service.sincoar.qsoft.com/", className = "com.fp.frontend.webservices.dinardap.ConsultaCedulaResponse")
|
||||
public Respuesta consultaCedula(
|
||||
@WebParam(name = "cedula", targetNamespace = "") String cedula);
|
||||
|
||||
/**
|
||||
*
|
||||
* @param ruc
|
||||
* @return returns com.fp.frontend.webservices.dinardap.Respuesta
|
||||
*/
|
||||
@WebMethod
|
||||
@WebResult(name = "response", targetNamespace = "")
|
||||
@RequestWrapper(localName = "consultaRuc", targetNamespace = "http://service.sincoar.qsoft.com/", className = "com.fp.frontend.webservices.dinardap.ConsultaRuc")
|
||||
@ResponseWrapper(localName = "consultaRucResponse", targetNamespace = "http://service.sincoar.qsoft.com/", className = "com.fp.frontend.webservices.dinardap.ConsultaRucResponse")
|
||||
public Respuesta consultaRuc(
|
||||
@WebParam(name = "ruc", targetNamespace = "") String ruc);
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,88 @@
|
|||
package com.fp.frontend.webservices.dinardap;
|
||||
|
||||
import com.fp.frontend.webservices.dinardap.*;
|
||||
import java.net.MalformedURLException;
|
||||
import java.net.URL;
|
||||
import javax.xml.namespace.QName;
|
||||
import javax.xml.ws.Service;
|
||||
import javax.xml.ws.WebEndpoint;
|
||||
import javax.xml.ws.WebServiceClient;
|
||||
import javax.xml.ws.WebServiceException;
|
||||
import javax.xml.ws.WebServiceFeature;
|
||||
|
||||
/**
|
||||
* This class was generated by the JAX-WS RI. JAX-WS RI 2.2.8 Generated source version: 2.2
|
||||
*
|
||||
*/
|
||||
@WebServiceClient(name = "SincoarServices", targetNamespace = "http://service.sincoar.qsoft.com/", wsdlLocation = "http://172.17.26.183:8090/sincoar-services?wsdl")
|
||||
public class SincoarServices_Service
|
||||
extends Service {
|
||||
|
||||
private final static URL SINCOARSERVICES_WSDL_LOCATION;
|
||||
private final static WebServiceException SINCOARSERVICES_EXCEPTION;
|
||||
private final static QName SINCOARSERVICES_QNAME = new QName("http://service.sincoar.qsoft.com/", "SincoarServices");
|
||||
|
||||
static {
|
||||
URL url = null;
|
||||
WebServiceException e = null;
|
||||
try {
|
||||
url = new URL("http://172.17.26.183:8090/sincoar-services?wsdl");
|
||||
} catch (MalformedURLException ex) {
|
||||
e = new WebServiceException(ex);
|
||||
}
|
||||
SINCOARSERVICES_WSDL_LOCATION = url;
|
||||
SINCOARSERVICES_EXCEPTION = e;
|
||||
}
|
||||
|
||||
public SincoarServices_Service() {
|
||||
super(__getWsdlLocation(), SINCOARSERVICES_QNAME);
|
||||
}
|
||||
|
||||
public SincoarServices_Service(WebServiceFeature... features) {
|
||||
super(__getWsdlLocation(), SINCOARSERVICES_QNAME, features);
|
||||
}
|
||||
|
||||
public SincoarServices_Service(URL wsdlLocation) {
|
||||
super(wsdlLocation, SINCOARSERVICES_QNAME);
|
||||
}
|
||||
|
||||
public SincoarServices_Service(URL wsdlLocation, WebServiceFeature... features) {
|
||||
super(wsdlLocation, SINCOARSERVICES_QNAME, features);
|
||||
}
|
||||
|
||||
public SincoarServices_Service(URL wsdlLocation, QName serviceName) {
|
||||
super(wsdlLocation, serviceName);
|
||||
}
|
||||
|
||||
public SincoarServices_Service(URL wsdlLocation, QName serviceName, WebServiceFeature... features) {
|
||||
super(wsdlLocation, serviceName, features);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @return returns SincoarServices
|
||||
*/
|
||||
@WebEndpoint(name = "SincoarServicesPort")
|
||||
public SincoarServices getSincoarServicesPort() {
|
||||
return super.getPort(new QName("http://service.sincoar.qsoft.com/", "SincoarServicesPort"), SincoarServices.class);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param features A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in the <code>features</code>
|
||||
* parameter will have their default values.
|
||||
* @return returns SincoarServices
|
||||
*/
|
||||
@WebEndpoint(name = "SincoarServicesPort")
|
||||
public SincoarServices getSincoarServicesPort(WebServiceFeature... features) {
|
||||
return super.getPort(new QName("http://service.sincoar.qsoft.com/", "SincoarServicesPort"), SincoarServices.class, features);
|
||||
}
|
||||
|
||||
private static URL __getWsdlLocation() {
|
||||
if (SINCOARSERVICES_EXCEPTION != null) {
|
||||
throw SINCOARSERVICES_EXCEPTION;
|
||||
}
|
||||
return SINCOARSERVICES_WSDL_LOCATION;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
@javax.xml.bind.annotation.XmlSchema(namespace = "http://service.sincoar.qsoft.com/")
|
||||
package com.fp.frontend.webservices.dinardap;
|
||||
|
|
@ -24,13 +24,14 @@ public class ClienteCedula {
|
|||
CedulaServicioService cedulaServicioService = new CedulaServicioService();
|
||||
cedulaResult = cedulaServicioService.getCedulaServicioPort().consultarCedula(cedula);
|
||||
} catch (Throwable e) {
|
||||
APPLogger.getLogger().error(e.getMessage(), e);
|
||||
System.err.println("ERROR " + e);
|
||||
e.printStackTrace(System.err);
|
||||
}
|
||||
return cedulaResult;
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
Cedula ced = obtenerCedula("1716178676");
|
||||
Cedula ced = obtenerCedula("1715060073");
|
||||
System.out.println(" .. " + ced);
|
||||
System.out.println(" .. " + ced.getNombre());
|
||||
System.out.println(" .. " + ced.getCalleDomicilio());
|
||||
|
|
|
|||
|
|
@ -0,0 +1,99 @@
|
|||
<wsdl:definitions xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://service.sincoar.qsoft.com/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:ns1="http://schemas.xmlsoap.org/soap/http" name="SincoarServices" targetNamespace="http://service.sincoar.qsoft.com/">
|
||||
<wsdl:types>
|
||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://service.sincoar.qsoft.com/" elementFormDefault="unqualified" targetNamespace="http://service.sincoar.qsoft.com/" version="1.0">
|
||||
<xs:element name="consultaCedula" type="tns:consultaCedula"/>
|
||||
<xs:element name="consultaCedulaResponse" type="tns:consultaCedulaResponse"/>
|
||||
<xs:element name="consultaRuc" type="tns:consultaRuc"/>
|
||||
<xs:element name="consultaRucResponse" type="tns:consultaRucResponse"/>
|
||||
<xs:complexType name="consultaCedula">
|
||||
<xs:sequence>
|
||||
<xs:element minOccurs="0" name="cedula" type="xs:string"/>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
<xs:complexType name="consultaCedulaResponse">
|
||||
<xs:sequence>
|
||||
<xs:element minOccurs="0" name="response" type="tns:respuesta"/>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
<xs:complexType name="respuesta">
|
||||
<xs:sequence>
|
||||
<xs:element maxOccurs="unbounded" minOccurs="0" name="actividad" nillable="true" type="xs:string"/>
|
||||
<xs:element minOccurs="0" name="codigoError" type="xs:string"/>
|
||||
<xs:element name="datos">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element maxOccurs="unbounded" minOccurs="0" name="entry">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element minOccurs="0" name="key" type="xs:string"/>
|
||||
<xs:element minOccurs="0" name="value" type="xs:string"/>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element minOccurs="0" name="mensajeError" type="xs:string"/>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
<xs:complexType name="consultaRuc">
|
||||
<xs:sequence>
|
||||
<xs:element minOccurs="0" name="ruc" type="xs:string"/>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
<xs:complexType name="consultaRucResponse">
|
||||
<xs:sequence>
|
||||
<xs:element minOccurs="0" name="response" type="tns:respuesta"/>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:schema>
|
||||
</wsdl:types>
|
||||
<wsdl:message name="consultaCedula">
|
||||
<wsdl:part element="tns:consultaCedula" name="parameters"> </wsdl:part>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="consultaRucResponse">
|
||||
<wsdl:part element="tns:consultaRucResponse" name="parameters"> </wsdl:part>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="consultaRuc">
|
||||
<wsdl:part element="tns:consultaRuc" name="parameters"> </wsdl:part>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="consultaCedulaResponse">
|
||||
<wsdl:part element="tns:consultaCedulaResponse" name="parameters"> </wsdl:part>
|
||||
</wsdl:message>
|
||||
<wsdl:portType name="SincoarServices">
|
||||
<wsdl:operation name="consultaCedula">
|
||||
<wsdl:input message="tns:consultaCedula" name="consultaCedula"> </wsdl:input>
|
||||
<wsdl:output message="tns:consultaCedulaResponse" name="consultaCedulaResponse"> </wsdl:output>
|
||||
</wsdl:operation>
|
||||
<wsdl:operation name="consultaRuc">
|
||||
<wsdl:input message="tns:consultaRuc" name="consultaRuc"> </wsdl:input>
|
||||
<wsdl:output message="tns:consultaRucResponse" name="consultaRucResponse"> </wsdl:output>
|
||||
</wsdl:operation>
|
||||
</wsdl:portType>
|
||||
<wsdl:binding name="SincoarServicesSoapBinding" type="tns:SincoarServices">
|
||||
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
|
||||
<wsdl:operation name="consultaCedula">
|
||||
<soap:operation soapAction="" style="document"/>
|
||||
<wsdl:input name="consultaCedula">
|
||||
<soap:body use="literal"/>
|
||||
</wsdl:input>
|
||||
<wsdl:output name="consultaCedulaResponse">
|
||||
<soap:body use="literal"/>
|
||||
</wsdl:output>
|
||||
</wsdl:operation>
|
||||
<wsdl:operation name="consultaRuc">
|
||||
<soap:operation soapAction="" style="document"/>
|
||||
<wsdl:input name="consultaRuc">
|
||||
<soap:body use="literal"/>
|
||||
</wsdl:input>
|
||||
<wsdl:output name="consultaRucResponse">
|
||||
<soap:body use="literal"/>
|
||||
</wsdl:output>
|
||||
</wsdl:operation>
|
||||
</wsdl:binding>
|
||||
<wsdl:service name="SincoarServices">
|
||||
<wsdl:port binding="tns:SincoarServicesSoapBinding" name="SincoarServicesPort">
|
||||
<soap:address location="http://172.17.26.183:8090/sincoar-services"/>
|
||||
</wsdl:port>
|
||||
</wsdl:service>
|
||||
</wsdl:definitions>
|
||||
|
|
@ -1,105 +0,0 @@
|
|||
###################################################
|
||||
##### S\u00edmbolos unicode
|
||||
#####\u00e1 -> á
|
||||
#####\u00e9 -> é
|
||||
#####\u00ed -> í
|
||||
#####\u00f3 -> ó
|
||||
#####\u00fa -> ú
|
||||
#####\u00c1 -> Á
|
||||
#####\u00c9 -> É
|
||||
#####\u00cd -> Í
|
||||
#####\u00d3 -> Ó
|
||||
#####\u00da -> Ú
|
||||
#####\u00f1 -> ñ
|
||||
#####\u00d1 -> Ñ
|
||||
#####\u0020 -> Espacio en blanco
|
||||
###################################################
|
||||
|
||||
#Botones
|
||||
btn_view_flow=Ver flujo
|
||||
btn_cancell=Cancelar
|
||||
btn_controlcambios=Existe cambios pendientes (YES) perder\u00E1 las modificaciones (NO) permite grabar
|
||||
btn_create=Crear
|
||||
btn_delete=
|
||||
btn_edit=
|
||||
btn_next=
|
||||
btn_previous=
|
||||
btn_query=
|
||||
btn_save=Grabar
|
||||
btn_update=Actualizar
|
||||
btn_reload=Recargar
|
||||
btn_detail=Detalle
|
||||
btn_asign=Asignar
|
||||
btn_accept=Aceptar
|
||||
btn_exit=Salir
|
||||
btn_initFlow=Iniciar flujo
|
||||
btn_completeTask=Competar tarea
|
||||
btn_sent=Enviar
|
||||
|
||||
#Cabecera de tablas
|
||||
htbl_monitoring=MONITOREO
|
||||
htbl_groups=GRUPOS
|
||||
htbl_users=USUARIOS
|
||||
htbl_fields=CAMPOS
|
||||
htbl_flows=FLUJOS
|
||||
htbl_fieldTransaction=CAMPOS POR TRANSACCI\u00D3N
|
||||
htbl_fieldMapping=MAPEO DE CAMPOS
|
||||
htbl_flowsRules=FLUJOS / REGLAS
|
||||
|
||||
lvh_groups=GRUPOS
|
||||
|
||||
|
||||
#Etiquetas
|
||||
lbl_origin_flow_transaction=Transacci\u00F3n originadora del flujo
|
||||
lbl_selected_activity=Actividad seleccionada
|
||||
lbl_waiting_time=Tiempo de espera
|
||||
lbl_real_time=Tiempo real
|
||||
lbl_comment=Comentario
|
||||
lbl_commentate=Comentar
|
||||
lbl_task_detail=Detalle tarea
|
||||
lbl_code=C\u00F3digo
|
||||
lbl_groups=Grupos
|
||||
lbl_group=Grupo
|
||||
lbl_description=Descripci\u00F3n
|
||||
lbl_mail=Correo electr\u00F3nico
|
||||
lbl_user=Usuario
|
||||
lbl_field=Campo
|
||||
lbl_experesion=Expresi\u00F3n lenguaje
|
||||
lbl_package=Paquete
|
||||
lbl_image=Imagen
|
||||
lbl_message=Mensaje
|
||||
lbl_type=Tipo
|
||||
lbl_active=Activo
|
||||
lbl_asociation=Asociaci\u00F3n
|
||||
lbl_path=Ruta
|
||||
lbl_filetype=Tipo archivo
|
||||
lbl_todate=Fecha creaci\u00F3n hasta
|
||||
lbl_fromdate=Fecha creaci\u00F3n desde
|
||||
lbl_creation=Fecha creaci\u00F3n
|
||||
lbl_ended=Fecha final
|
||||
lbl_duration=Duraci\u00F3n
|
||||
lbl_module=M\u00F3dulo
|
||||
lbl_transaction=Transacci\u00F3n
|
||||
lbl_version=Versi\u00F3n
|
||||
lbl_name=Nombre
|
||||
lbl_activityname=Actividad del flujo
|
||||
lbl_created=Creaci\u00F3n
|
||||
lbl_expectedtime=Tiempo de espera
|
||||
lbl_realtime=Tiempo real
|
||||
lbl_observation=Observaciones
|
||||
lbl_response=Respuesta
|
||||
lbl_userassign=Usuario asignado
|
||||
lbl_branch=Sucursal
|
||||
lbl_detail=Detalle
|
||||
lbl_email=Correo electr\u00F3nico
|
||||
lbl_office=Oficina
|
||||
lbl_fieldscreen=Campo pantalla
|
||||
lbl_task=Tarea
|
||||
lbl_observations=Observaciones
|
||||
lbl_notifyto=Notificar a
|
||||
lbl_process=Proceso
|
||||
lbl_registerdate=Fecha registro
|
||||
lbl_resolution=Resoluci\u00F3n
|
||||
|
||||
#Mensajes
|
||||
msg_grouprequird=GRUPO REQUERIDO
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue