Indentacion
This commit is contained in:
parent
6fe44d8f65
commit
e464e4a486
|
|
@ -395,7 +395,7 @@ private String descategoria;
|
||||||
Request request = this.callerhelper.getRequest();
|
Request request = this.callerhelper.getRequest();
|
||||||
request.setQueryTables(mtables);
|
request.setQueryTables(mtables);
|
||||||
request.put("queryalias", "ARMASCOMPLETE");
|
request.put("queryalias", "ARMASCOMPLETE");
|
||||||
|
System.out.println("========> PUTO QUERY ARMAS " + sqlFinal);
|
||||||
Response resp = this.callerhelper.executeQuery(request);
|
Response resp = this.callerhelper.executeQuery(request);
|
||||||
|
|
||||||
if (resp.getResponseCode().compareTo(Response.RESPONSE_OK) != 0) {
|
if (resp.getResponseCode().compareTo(Response.RESPONSE_OK) != 0) {
|
||||||
|
|
@ -1218,7 +1218,6 @@ private String descategoria;
|
||||||
cc.init();
|
cc.init();
|
||||||
cc.recperpage = 5000;
|
cc.recperpage = 5000;
|
||||||
cc.addFilter("cregistro", registrocode);
|
cc.addFilter("cregistro", registrocode);
|
||||||
|
|
||||||
cc.querydatabase();
|
cc.querydatabase();
|
||||||
|
|
||||||
if ((cc.lrecord != null) && !cc.lrecord.isEmpty()) {
|
if ((cc.lrecord != null) && !cc.lrecord.isEmpty()) {
|
||||||
|
|
|
||||||
|
|
@ -349,13 +349,13 @@ public class AuxArmasController extends AbstractController<TarmArmas> {
|
||||||
DtoQuery dto = this.getDtoQuery(true);
|
DtoQuery dto = this.getDtoQuery(true);
|
||||||
SubQuery subqueryPersonCode = new SubQuery("TarmRegistroArmas", "personcode", "personcode", "i.pk=t.cregistro");
|
SubQuery subqueryPersonCode = new SubQuery("TarmRegistroArmas", "personcode", "personcode", "i.pk=t.cregistro");
|
||||||
dto.addSubQuery(subqueryPersonCode);
|
dto.addSubQuery(subqueryPersonCode);
|
||||||
|
|
||||||
dto.setOrderby("pk");
|
dto.setOrderby("pk");
|
||||||
HashMap<String, DtoQuery> mtables = new HashMap<String, DtoQuery>();
|
HashMap<String, DtoQuery> mtables = new HashMap<String, DtoQuery>();
|
||||||
mtables.put(this.beanalias, dto); // permite adicionar mas de una tabla.
|
mtables.put(this.beanalias, dto); // permite adicionar mas de una tabla.
|
||||||
Request request = this.callerhelper.getRequest();
|
Request request = this.callerhelper.getRequest();
|
||||||
request.setQueryTables(mtables);
|
request.setQueryTables(mtables);
|
||||||
Response resp = this.callerhelper.executeQuery(request);
|
Response resp = this.callerhelper.executeQuery(request);
|
||||||
|
|
||||||
if (resp.getResponseCode().compareTo(Response.RESPONSE_OK) != 0) {
|
if (resp.getResponseCode().compareTo(Response.RESPONSE_OK) != 0) {
|
||||||
this.lrecord = new ArrayList<TarmArmas>();
|
this.lrecord = new ArrayList<TarmArmas>();
|
||||||
MessageHelper.setMessageError(resp);
|
MessageHelper.setMessageError(resp);
|
||||||
|
|
|
||||||
|
|
@ -718,7 +718,6 @@ public class IngresoFichaTecnicaArmasController extends AbstractController<TarmA
|
||||||
*/
|
*/
|
||||||
public void reporteFichaArmas() throws Exception {
|
public void reporteFichaArmas() throws Exception {
|
||||||
String gradoUsuario = "";
|
String gradoUsuario = "";
|
||||||
System.out.println("=======> QUE ES " + tramiteingresado);
|
|
||||||
String path = "armas/reports/fichaTecArmas";
|
String path = "armas/reports/fichaTecArmas";
|
||||||
if (tramiteingresado != null && !tramiteingresado.trim().isEmpty() && tramiteingresado.trim().equals("NOLETAL")) {
|
if (tramiteingresado != null && !tramiteingresado.trim().isEmpty() && tramiteingresado.trim().equals("NOLETAL")) {
|
||||||
path = "armas/reports/fichaTecArmasNoLetales";
|
path = "armas/reports/fichaTecArmasNoLetales";
|
||||||
|
|
@ -1067,7 +1066,6 @@ public class IngresoFichaTecnicaArmasController extends AbstractController<TarmA
|
||||||
System.err.println("ERROR " + ex);
|
System.err.println("ERROR " + ex);
|
||||||
ex.printStackTrace(System.err);
|
ex.printStackTrace(System.err);
|
||||||
}
|
}
|
||||||
System.out.println("=========> TIPO TRAMITE " + tramiteingresado);
|
|
||||||
if ("Y".equals(record.getAptituddisparo()) && "Y".equals(record.getVainastestigo()) && "Y".equals(record.getBalastestigo())) {
|
if ("Y".equals(record.getAptituddisparo()) && "Y".equals(record.getVainastestigo()) && "Y".equals(record.getBalastestigo())) {
|
||||||
record.setApruebaevaluacion("Y");
|
record.setApruebaevaluacion("Y");
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
|
|
@ -938,11 +938,6 @@ public class RecepcionArmasController extends AbstractController<TarmSolicitudAr
|
||||||
parameters.put("codigoQR", (sol != null ? sol.getNumerosolicitud() : "") + " " + fechaActualSB.toString() + " " + gradoUsuario);
|
parameters.put("codigoQR", (sol != null ? sol.getNumerosolicitud() : "") + " " + fechaActualSB.toString() + " " + gradoUsuario);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
System.err.println("==========> PARAMETROS " + parameters);
|
|
||||||
System.err.println("========>\t" + path);
|
|
||||||
System.err.println("========>\t" + format);
|
|
||||||
System.err.println("========>\t" + filename);
|
|
||||||
System.err.println("========>\t" + this.getLoginController());
|
|
||||||
this.xpathflujo = this.getRutaDocumento();
|
this.xpathflujo = this.getRutaDocumento();
|
||||||
InputStream report = this.reportController.jaspertoInputstream(path, parameters, format, filename, this.getLoginController());
|
InputStream report = this.reportController.jaspertoInputstream(path, parameters, format, filename, this.getLoginController());
|
||||||
this.alfrescoController.uploadFile(report, filename + ".pdf", this.xpathflujo);
|
this.alfrescoController.uploadFile(report, filename + ".pdf", this.xpathflujo);
|
||||||
|
|
|
||||||
|
|
@ -150,7 +150,6 @@ public class TramiteArmasController extends AbstractController<AbstractDataTrans
|
||||||
*/
|
*/
|
||||||
private List<TgeneCatalogDetail> ltipoidenti;
|
private List<TgeneCatalogDetail> ltipoidenti;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Lista de tipos de trámite.
|
* Lista de tipos de trámite.
|
||||||
*/
|
*/
|
||||||
|
|
@ -164,7 +163,6 @@ public class TramiteArmasController extends AbstractController<AbstractDataTrans
|
||||||
/**
|
/**
|
||||||
* Lista de origen de tipos de pagos
|
* Lista de origen de tipos de pagos
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Lista de provincias
|
* Lista de provincias
|
||||||
*/
|
*/
|
||||||
|
|
@ -481,7 +479,7 @@ public class TramiteArmasController extends AbstractController<AbstractDataTrans
|
||||||
this.responsableCentroControl = new TcustPersonDetail();
|
this.responsableCentroControl = new TcustPersonDetail();
|
||||||
this.tsafeUserDetailUsuario = new TsafeUserDetail();
|
this.tsafeUserDetailUsuario = new TsafeUserDetail();
|
||||||
tipoDocumento = CatalogDetailController.find("IDENTIFICATION");
|
tipoDocumento = CatalogDetailController.find("IDENTIFICATION");
|
||||||
listaPersonasDetailVen = new HashSet<TcustPersonDetail>();
|
listaPersonasDetailVen = new HashSet<>();
|
||||||
tcustPersonDetailVendedor = null;
|
tcustPersonDetailVendedor = null;
|
||||||
codigoRuc = codigos("CODIGO.RUC");
|
codigoRuc = codigos("CODIGO.RUC");
|
||||||
codigoCedula = codigos("CODIGO.CEDULA");
|
codigoCedula = codigos("CODIGO.CEDULA");
|
||||||
|
|
@ -1331,7 +1329,10 @@ public class TramiteArmasController extends AbstractController<AbstractDataTrans
|
||||||
this.mostrarIngresoArmas = Boolean.FALSE;
|
this.mostrarIngresoArmas = Boolean.FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/***/
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
public void executeTipoPago() {
|
public void executeTipoPago() {
|
||||||
|
|
||||||
TarmTramite tramite = this.solicitud.getRecord().getCtramite() != null ? TarmTramiteController.find(this.solicitud.getRecord().getCtramite().toString()) : null;
|
TarmTramite tramite = this.solicitud.getRecord().getCtramite() != null ? TarmTramiteController.find(this.solicitud.getRecord().getCtramite().toString()) : null;
|
||||||
|
|
@ -1413,6 +1414,7 @@ public class TramiteArmasController extends AbstractController<AbstractDataTrans
|
||||||
this.armas.getRecord().getModifiedData().put("clase", clase.getDescription());
|
this.armas.getRecord().getModifiedData().put("clase", clase.getDescription());
|
||||||
this.armas.setClase(clase.getPk().getCatalog());
|
this.armas.setClase(clase.getPk().getCatalog());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* MODIFICAR EL NUMERO DE SOLICITUD POR TIPO DE TRAMITE
|
* MODIFICAR EL NUMERO DE SOLICITUD POR TIPO DE TRAMITE
|
||||||
*/
|
*/
|
||||||
|
|
@ -1422,6 +1424,7 @@ public class TramiteArmasController extends AbstractController<AbstractDataTrans
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Regresa del LOV para cargar valores
|
* Regresa del LOV para cargar valores
|
||||||
*
|
*
|
||||||
|
|
@ -1758,19 +1761,17 @@ public class TramiteArmasController extends AbstractController<AbstractDataTrans
|
||||||
mostrarFiltroAUCP = Boolean.TRUE;
|
mostrarFiltroAUCP = Boolean.TRUE;
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
listaPersonasDetailVen = new HashSet<TcustPersonDetail>();
|
listaPersonasDetailVen = new HashSet<>();
|
||||||
Set<String> listaCodigos = new HashSet<String>();
|
Set<String> listaCodigos = new HashSet<>();
|
||||||
for (TarmArmas arma : armas.getLrecord()) {
|
for (TarmArmas arma : armas.getLrecord()) {
|
||||||
if (arma.getLote() == null) {
|
if (arma.getLote() == null) {
|
||||||
arma.setLote(" ");
|
arma.setLote(" ");
|
||||||
}
|
}
|
||||||
//carga los posibles vendedoeres
|
//carga los posibles vendedoeres
|
||||||
if (this.guiaLibreTransito) {
|
if (this.guiaLibreTransito) {
|
||||||
System.err.println("guiaLibreTransito " + guiaLibreTransito);
|
|
||||||
List<TarmArmas> listaArmas = AuxArmasController.findListXCodigoArma(arma.getCodigoarma());
|
List<TarmArmas> listaArmas = AuxArmasController.findListXCodigoArma(arma.getCodigoarma());
|
||||||
if (listaArmas != null && listaArmas.size() > 0) {
|
if (listaArmas != null && !listaArmas.isEmpty()) {
|
||||||
for (TarmArmas tarmArmasVendedor : listaArmas) {
|
for (TarmArmas tarmArmasVendedor : listaArmas) {
|
||||||
System.out.println("arma.getCregistro(): " + tarmArmasVendedor.getModifiedData().get("personcode"));
|
|
||||||
if (tarmArmasVendedor.getModifiedData().get("personcode") != null
|
if (tarmArmasVendedor.getModifiedData().get("personcode") != null
|
||||||
&& !listaCodigos.contains(tarmArmasVendedor.getModifiedData().get("personcode").toString())) {
|
&& !listaCodigos.contains(tarmArmasVendedor.getModifiedData().get("personcode").toString())) {
|
||||||
listaCodigos.add(tarmArmasVendedor.getModifiedData().get("personcode").toString());
|
listaCodigos.add(tarmArmasVendedor.getModifiedData().get("personcode").toString());
|
||||||
|
|
@ -2220,6 +2221,7 @@ public class TramiteArmasController extends AbstractController<AbstractDataTrans
|
||||||
if (armas.getLrecord() == null) {
|
if (armas.getLrecord() == null) {
|
||||||
armas.setLrecord(new ArrayList<TarmArmas>());
|
armas.setLrecord(new ArrayList<TarmArmas>());
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -2301,7 +2303,10 @@ public class TramiteArmasController extends AbstractController<AbstractDataTrans
|
||||||
public TcustPersonDetail buscarPersonaMaia(String numeroDocumento, String tipoDocumento) {
|
public TcustPersonDetail buscarPersonaMaia(String numeroDocumento, String tipoDocumento) {
|
||||||
return PersonDetailController.findxidentification(numeroDocumento, tipoDocumento);
|
return PersonDetailController.findxidentification(numeroDocumento, tipoDocumento);
|
||||||
}
|
}
|
||||||
/** ============================= buscar EstadoTramite =============================*/
|
|
||||||
|
/**
|
||||||
|
* ============================= buscar EstadoTramite =============================
|
||||||
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Método para obtener los codigos
|
* Método para obtener los codigos
|
||||||
|
|
@ -2316,8 +2321,9 @@ public class TramiteArmasController extends AbstractController<AbstractDataTrans
|
||||||
*
|
*
|
||||||
* @param documento
|
* @param documento
|
||||||
*/
|
*/
|
||||||
/** ================= GENERAR SQL =================== */
|
/**
|
||||||
|
* ================= GENERAR SQL ===================
|
||||||
|
*/
|
||||||
public TcustPersonDetail buscarPersonaSnap(String documento, String tipoDocumento) {
|
public TcustPersonDetail buscarPersonaSnap(String documento, String tipoDocumento) {
|
||||||
if (tipoDocumento.equals(codigoCedula)) {
|
if (tipoDocumento.equals(codigoCedula)) {
|
||||||
Cedula cedula = ClienteCedula.obtenerCedula(documento);
|
Cedula cedula = ClienteCedula.obtenerCedula(documento);
|
||||||
|
|
@ -2364,7 +2370,9 @@ public class TramiteArmasController extends AbstractController<AbstractDataTrans
|
||||||
return ltipoidenti;
|
return ltipoidenti;
|
||||||
}
|
}
|
||||||
|
|
||||||
/************** AGREGADOS PARA EL TIPO DE PAGO ************ */
|
/**
|
||||||
|
* ************ AGREGADOS PARA EL TIPO DE PAGO ************
|
||||||
|
*/
|
||||||
public List<TgeneCatalogDetail> getLtipopago() {
|
public List<TgeneCatalogDetail> getLtipopago() {
|
||||||
return ltipopago;
|
return ltipopago;
|
||||||
}
|
}
|
||||||
|
|
@ -2373,9 +2381,6 @@ public class TramiteArmasController extends AbstractController<AbstractDataTrans
|
||||||
this.ltipopago = ltipopago;
|
this.ltipopago = ltipopago;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Entrega el valor de: ltipotramite
|
* Entrega el valor de: ltipotramite
|
||||||
*
|
*
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue