private void guardarExcel() throws Exception { compararCambioParametros(); fechaDesde = jftfFechaDesde.getText(); fechaHasta = jftfFechaHasta.getText(); nombreCuenta = jlblNombreCuentaDesde.getText(); java.util.List<String> listaCabecera = new java.util.ArrayList(); java.util.List<String> listaCuerpo = new java.util.ArrayList(); listaCabecera.add("S" + sisUsuarioEmpresaTO.getEmpRazonSocial()); listaCabecera.add("SMayor Auxiliar de cuentas"); listaCabecera.add("SCuenta Desde: " + codigoCuentaDesdeAux + " | " + nombreCuenta); listaCabecera.add("SCuenta Hasta: " + codigoCuentaHastaAux + " | " + nombreCuenta); listaCabecera.add("SDesde: " + fechaDesdeAux + " Hasta: " + fechaHastaAux); listaCabecera.add("S"); listaCuerpo.add( "SContable" + "¬" + "SCuenta" + "¬" + "SCuenta Detalle" + "¬" + "SFecha" + "¬" + "SDocumento" + "¬" + "SDebe" + "¬" + "SHaber" + "¬" + "SSaldo" + "¬" + "SObservaciones"); for (contabilidad.TO.ConMayorAuxiliarTO conMayorAuxiliarTO : contabilidadBBMayorAuxiliar1.getListaConMayorAuxiliarTO()) { listaCuerpo.add( (conMayorAuxiliarTO.getMaContable() == null ? "S" : "S" + conMayorAuxiliarTO.getMaContable().toString()) + "¬" + (conMayorAuxiliarTO.getMaCuenta() == null ? "S" : "S" + conMayorAuxiliarTO.getMaCuenta().toString()) + "¬" + (conMayorAuxiliarTO.getMaCuentaDetalle() == null ? "S" : "S" + conMayorAuxiliarTO.getMaCuentaDetalle().toString()) + "¬" + (conMayorAuxiliarTO.getMaFecha() == null ? "S" : "S" + conMayorAuxiliarTO.getMaFecha().toString()) + "¬" + (conMayorAuxiliarTO.getMaDocumento() == null ? "S" : "S" + conMayorAuxiliarTO.getMaDocumento().toString()) + "¬" + (conMayorAuxiliarTO.getMaDebe() == null ? "D" : "D" + conMayorAuxiliarTO.getMaDebe().add(cero).toString()) + "¬" + (conMayorAuxiliarTO.getMaHaber() == null ? "D" : "D" + conMayorAuxiliarTO.getMaHaber().add(cero).toString()) + "¬" + (conMayorAuxiliarTO.getMaSaldo() == null ? "D" : "D" + conMayorAuxiliarTO.getMaSaldo().add(cero).toString()) + "¬" + (conMayorAuxiliarTO.getMaObservaciones() == null ? "S" : "S" + conMayorAuxiliarTO.getMaObservaciones().toString())); } long nombreFichero = java.util.Calendar.getInstance(java.util.TimeZone.getTimeZone("America/Guayaquil")) .getTime() .getTime(); shrimp.validaciones.GenerarExcel.crearExcel( listaCabecera, listaCuerpo, "TODOCOMPU", "tmp/" + nombreFichero + ".xls"); shrimp.validaciones.Fichero.abrirFichero("tmp/" + nombreFichero + ".xls"); }
private void guardarExcel() throws Exception { java.util.List<String> listaCabecera = new java.util.ArrayList(); java.util.List<String> listaCuerpo = new java.util.ArrayList(); fechaDesde = jftfFechaDesde.getValue() == null ? "" : jftfFechaDesde.getText(); fechaHasta = jftfFechaHasta.getValue() == null ? "" : jftfFechaHasta.getText(); listaCabecera.add("S" + sisUsuarioEmpresaTO.getEmpRazonSocial()); listaCabecera.add("SReporte Consolidado de Bonos y Viáticos"); listaCabecera.add("SDesde: " + fechaDesde + " Hasta: " + fechaHasta); listaCabecera.add("S"); listaCuerpo.add( "SCat." + "¬" + "SId" + "¬" + "SNombres" + "¬" + "SBonos" + "¬" + "SBonos ND" + "¬" + "SBono Fijo" + "¬" + "SBono Fijo ND" + "¬" + "SViáticos" + "¬" + "STotal" + "¬" + "SOrden"); for (rrhh.TO.RhListaConsolidadoBonosViaticosTO rhListaConsolidadoAnticiposPrestamosTO : bbRRHHFunciones.getListaConsolidadoBonosViaticosTO()) { listaCuerpo.add( (rhListaConsolidadoAnticiposPrestamosTO.getCbvCategoria() == null ? "S" : "S" + rhListaConsolidadoAnticiposPrestamosTO.getCbvCategoria().toString()) + "¬" + (rhListaConsolidadoAnticiposPrestamosTO.getCbvId() == null ? "S" : "S" + rhListaConsolidadoAnticiposPrestamosTO.getCbvId().toString()) + "¬" + (rhListaConsolidadoAnticiposPrestamosTO.getCbvNombres() == null ? "S" : "S" + rhListaConsolidadoAnticiposPrestamosTO.getCbvNombres().toString()) + "¬" + (rhListaConsolidadoAnticiposPrestamosTO.getCbvBonos() == null ? "D" : "D" + rhListaConsolidadoAnticiposPrestamosTO.getCbvBonos().toString()) + "¬" + (rhListaConsolidadoAnticiposPrestamosTO.getCbvBonosND() == null ? "D" : "D" + rhListaConsolidadoAnticiposPrestamosTO.getCbvBonosND().toString()) + "¬" + (rhListaConsolidadoAnticiposPrestamosTO.getCbvBonoFijo() == null ? "D" : "D" + rhListaConsolidadoAnticiposPrestamosTO.getCbvBonoFijo().toString()) + "¬" + (rhListaConsolidadoAnticiposPrestamosTO.getCbvBonoFijoND() == null ? "D" : "D" + rhListaConsolidadoAnticiposPrestamosTO.getCbvBonoFijoND().toString()) + "¬" + (rhListaConsolidadoAnticiposPrestamosTO.getCbvViaticos() == null ? "D" : "D" + rhListaConsolidadoAnticiposPrestamosTO.getCbvViaticos().toString()) + "¬" + (rhListaConsolidadoAnticiposPrestamosTO.getCbvTotal() == null ? "D" : "D" + rhListaConsolidadoAnticiposPrestamosTO.getCbvTotal().toString()) + "¬" + (rhListaConsolidadoAnticiposPrestamosTO.getCbvOrden() == null ? "S" : "S" + rhListaConsolidadoAnticiposPrestamosTO.getCbvOrden().toString())); } long nombreFichero = java.util.Calendar.getInstance(java.util.TimeZone.getTimeZone("America/Guayaquil")) .getTime() .getTime(); shrimp.validaciones.GenerarExcel.crearExcel( listaCabecera, listaCuerpo, "TODOCOMPU", "tmp/" + nombreFichero + ".xls"); shrimp.validaciones.Fichero.abrirFichero("tmp/" + nombreFichero + ".xls"); }
private void guardarExcel() throws Exception { java.util.List<String> listaCabecera = new java.util.ArrayList(); java.util.List<String> listaCuerpo = new java.util.ArrayList(); listaCabecera.add("S" + sisUsuarioEmpresaTO.getEmpRazonSocial()); listaCabecera.add("SPagos Detalle"); listaCabecera.add("S"); listaCuerpo.add( "SNúmero" + "¬" + "SFecha" + "¬" + "SProveedor" + "¬" + "SValor" + "¬" + "SObservaciones" + "¬" + "SPendiente" + "¬" + "SAnulado"); for (cartera.TO.CarFunPagosDetalleTO carFunPagosDetalleTO : carBBPagosCobrosConsulta.getCarFunPagosDetalleTOs()) { boolean pendiente = carFunPagosDetalleTO.getPagPendiente() == null ? false : carFunPagosDetalleTO.getPagPendiente(); boolean anulado = carFunPagosDetalleTO.getPagAnulado() == null ? false : carFunPagosDetalleTO.getPagAnulado(); listaCuerpo.add( (carFunPagosDetalleTO.getPagNumeroSistema() == null ? "S" : "S" + carFunPagosDetalleTO.getPagNumeroSistema()) + "¬" + (carFunPagosDetalleTO.getPagFecha() == null ? "S" : "S" + carFunPagosDetalleTO.getPagFecha()) + "¬" + (carFunPagosDetalleTO.getPagProveedor() == null ? "S" : "S" + carFunPagosDetalleTO.getPagProveedor().toString()) + "¬" + (carFunPagosDetalleTO.getPagValor() == null ? "D" : "D" + carFunPagosDetalleTO.getPagValor().add(cero).toString()) + "¬" + (carFunPagosDetalleTO.getPagObservaciones() == null ? "S" : "S" + carFunPagosDetalleTO.getPagObservaciones().toString()) + "¬" + (pendiente == false ? "S" : "SPENDIENTE") + "¬" + (anulado == false ? "S" : "SANULADO") + "¬"); } long nombreFichero = java.util.Calendar.getInstance(java.util.TimeZone.getTimeZone("America/Guayaquil")) .getTime() .getTime(); shrimp.validaciones.GenerarExcel.crearExcel( listaCabecera, listaCuerpo, "TODOCOMPU", "tmp/" + nombreFichero + ".xls"); shrimp.validaciones.Fichero.abrirFichero("tmp/" + nombreFichero + ".xls"); }
private void guardarExcel() throws Exception { java.util.List<String> listaCabecera = new java.util.ArrayList(); java.util.List<String> listaCuerpo = new java.util.ArrayList(); fechaDesde = jftfFechaDesde.getValue() == null ? "" : jftfFechaDesde.getText(); fechaHasta = jftfFechaHasta.getValue() == null ? "" : jftfFechaHasta.getText(); listaCabecera.add("S" + sisUsuarioEmpresaTO.getEmpRazonSocial()); listaCabecera.add("SReporte Utilidades"); listaCabecera.add("SDesde: " + fechaDesde + " Hasta: " + fechaHasta); listaCabecera.add("S"); listaCuerpo.add( "SCategoría" + "¬" + "SSector" + "¬" + "SId" + "¬" + "SNombres" + "¬" + "SApellidos" + "¬" + "SGenero" + "¬" + "SFecha Ingreso" + "¬" + "SCargo" + "¬" + "STotal Ingreso" + "¬" + "SDías Laborados" + "¬" + "SValor Utilidades" + "¬" + "SCodigo Ministerial" + "¬" + "SPerido" + "¬" + "STipo" + "¬" + "SNumero"); for (rrhh.TO.RhFunUtilidadesConsultarTO rhFunUtilidadesConsultarTO : rRHHBBFunciones.getRhFunUtilidadesConsultarTOs()) { listaCuerpo.add( (rhFunUtilidadesConsultarTO.getUtiCategoria() == null ? "S" : "S" + rhFunUtilidadesConsultarTO.getUtiCategoria().toString()) + "¬" + (rhFunUtilidadesConsultarTO.getUtiSector() == null ? "S" : "S" + rhFunUtilidadesConsultarTO.getUtiSector().toString()) + "¬" + (rhFunUtilidadesConsultarTO.getUtiId() == null ? "S" : "S" + rhFunUtilidadesConsultarTO.getUtiId().toString()) + "¬" + (rhFunUtilidadesConsultarTO.getUtiNombres() == null ? "S" : "S" + rhFunUtilidadesConsultarTO.getUtiNombres().toString()) + "¬" + (rhFunUtilidadesConsultarTO.getUtiApellidos() == null ? "S" : "S" + rhFunUtilidadesConsultarTO.getUtiApellidos().toString()) + "¬" + (rhFunUtilidadesConsultarTO.getUtiGenero() == null ? "S" : "S" + rhFunUtilidadesConsultarTO.getUtiGenero().toString()) + "¬" + (rhFunUtilidadesConsultarTO.getUtiFechaIngreso() == null ? "S" : "S" + rhFunUtilidadesConsultarTO.getUtiFechaIngreso().toString()) + "¬" + (rhFunUtilidadesConsultarTO.getUtiCargo() == null ? "S" : "S" + rhFunUtilidadesConsultarTO.getUtiCargo().toString()) + "¬" + (rhFunUtilidadesConsultarTO.getUtiTotalIngresos() == null ? "F" : "F" + rhFunUtilidadesConsultarTO.getUtiTotalIngresos().toString()) + "¬" + (rhFunUtilidadesConsultarTO.getUtiDiasLaborados() == null ? "I" : "I" + rhFunUtilidadesConsultarTO.getUtiDiasLaborados().toString()) + "¬" + (rhFunUtilidadesConsultarTO.getUtiValorUtilidades() == null ? "F" : "F" + rhFunUtilidadesConsultarTO.getUtiValorUtilidades().toString()) + "¬" + (rhFunUtilidadesConsultarTO.getUtiCodigoMinisterial() == null ? "S" : "S" + rhFunUtilidadesConsultarTO.getUtiCodigoMinisterial().toString()) + "¬" + (rhFunUtilidadesConsultarTO.getUtiPeriodo() == null ? "S" : "S" + rhFunUtilidadesConsultarTO.getUtiPeriodo().toString()) + "¬" + (rhFunUtilidadesConsultarTO.getUtiTipo() == null ? "S" : "S" + rhFunUtilidadesConsultarTO.getUtiTipo().toString()) + "¬" + (rhFunUtilidadesConsultarTO.getUtiNumero() == null ? "S" : "S" + rhFunUtilidadesConsultarTO.getUtiNumero().toString())); } long nombreFichero = java.util.Calendar.getInstance(java.util.TimeZone.getTimeZone("America/Guayaquil")) .getTime() .getTime(); shrimp.validaciones.GenerarExcel.crearExcel( listaCabecera, listaCuerpo, "TODOCOMPU", "tmp/" + nombreFichero + ".xls"); shrimp.validaciones.Fichero.abrirFichero("tmp/" + nombreFichero + ".xls"); }