Problemas con interface para generar reporte incluyendo cfdiv y radio button
Publicado por irma santiago (1 intervención) el 16/06/2015 19:21:38
Este es mi codigo
CON ESTE CODIGO NO LOGRO ENVIAR LOS DATOS AL ARCHIVO DE PARAMETROS.CFM PARA ENVARLOS AL REPORTE.CFR.
ALGUIEN ME PUEDE AYUDAR..
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<link rel="stylesheet" href="../css/style.css" type="text/css">
<link rel="stylesheet" type="text/css" href="../css/box.css">
<style type="text/css">
<!--
.Estilo1 {color: #EEEEEE}
-->
</style>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<script language="javascript" src="../js/jquery.js"></script>
<script language="javascript" src="../js/funciones.js"></script>
<script type="text/javascript" src="../calendario/calendar.js"></script>
<script type="text/javascript" src="../calendario/calendar-setup.js"></script>
<script type="text/javascript" src="../calendario/lang/calendar-es.js"></script>
<style type="text/css"> @import url("../calendario/calendar-blue2.css");</style>
<!--- Calendario --->
<script language= "JavaScript">
function activaGrupos()
{
$x('fh_Inicial').disabled= '';
$x('fh_Final').disabled= '';
$x('fh_Corte').disabled= 'true';
form1.action='rpt_Clientes_Cobranza_Parametros.cfm';
}
function desactivaGrupos()
{
$x('fh_Inicial').disabled= 'true';
$x('fh_Final').disabled= 'true';
$x('fh_Corte').disabled= '';
form1.action='rpt_Clientes_Cobranza_Parametros.cfm';
}
function cambiarChecadoTodas(checar){
if (checar)
checarTodas();
else
deschecarTodas();
}
function checarTodas(){
var chks=$("input:checkbox");
chks.attr('checked', 'true');
}
function deschecarTodas()
{
var chks=$("input:checkbox");
chks.attr('checked', '');
}
function checkTrue()
{
$x('de_Parametros').value='';
// obtiene todos los check con valor true
$("input:checkbox:checked").each(function(index)
{
if($(this).attr("value") == 'TipoVivienda')
{
$x('de_Parametros').value= $x('de_Parametros').value + $(this).attr("name") +',';
}
});
}
</script>
</head>
<body onLoad="form1.id_Obra.focus();">
<cfinclude template="../vivienda/menu.cfm">
<table width="700px" align="center">
<tr class="titulo">
<td align="center">REPORTE DE COBRANZA DE CLIENTES</td>
</tr>
</table>
<table width="700px" cellpadding="0" cellspacing="0" align="center">
<tr><td class="x-box-tl" width="1px"></td><td class="x-box-tc"></td><td class="x-box-tr" width="1px"></td></tr>
<tr><td class="x-box-ml"></td><td class="x-box-mc" width="99%">
<table width="700px" align="center">
<cfform name="form1" method="get" action="rpt_ReporteClientesCobranza.cfr" target="_blank">
<tr valign="baseline">
<td nowrap align="right">Obra:</td>
<td>
<cfinput type="text" name="id_Obra" validate="integer" class="contenido_numerico" id="id_Obra" onBlur="$('##de_Obra_lab').html(html_imagen_descarga);" size="8">
<cftextarea bind="cfc:inmobiliaria.componentes.obras.getObraPorID(#Session.id_Empresa#,{id_Obra@blur})" bindonload="yes" id="de_Obra_lab" name="de_Obra_lab" rows="1" cols="41" class="contenido_readOnly" style="overflow:hidden;" required="no" message="La Clave de Obra no es válida."></cftextarea>
<button type="button" id="btnBuscarObra" onClick="javascript:AbrirPopUpBusqueda('id_Obra', 'pop_obras_busqueda.cfm', 'id_Empresa=<cfoutput>#Session.id_Empresa#</cfoutput>', '700px', '600px')" class="boton_popup" value=""><img src="../images/buscar_gris.png" width="24"></button>
</td>
</tr>
<tr valign="baseline" title="Click Para Seleccionar Todas; Doble Clikc Para DesSeleccionar">
<tr>
<input type="checkbox" onClick="javascript:cambiarChecadoTodas(this.checked);">Selección
</tr>
<td colspan="2">
<div align="center" style="overflow:hidden; overflow-x:hidden; width:59em; overflow-y:auto; overflow-x:scroll; height:15em; font-size:11px;">
<cfajaximport tags="cfform">
<cfdiv id="div_TiposVivienda" bind="url:TiposVivienda.cfm?id_Obra={id_Obra@blur}">
</div>
</td>
</tr>
<tr valign="baseline">
<td nowrap align="right"></td>
<td align="left" nowrap bordercolor="#F0F0F0">
<input type="radio" name="plantilla_reporte" id="cl_tipo" value="rpt_Clientes_Cobranza_Parametros.cfm" checked="checked" onclick="desactivaGrupos();form1.destino.value=this.value"/>
Vencidas a la fecha
<cfinput type="text" name="fh_Corte" size="15" mask="99/99/9999" validate="eurodate" class="contenido" value="#DateFormat(Now(),'dd/mm/yyyy')#">
<input type="button" id="lanzador3" value="..." / class="boton" onKeyDown="javascript:escanear_enter();">
</td>
</tr>
<tr valign="baseline">
<td nowrap align="right"></td>
<td nowrap align="left">
<input type="radio" name="plantilla_reporte" id="cl_tipo2" value="rpt_Clientes_Cobranza_Parametros.cfm" onclick="activaGrupos();form1.destino.value=this.value"/>
Por vencer
</td>
</tr>
<tr>
<td width="200px" align="right">Fecha Inicial:</td>
<td width="500px">
<cfinput type="text" name="fh_Inicial" size="15" mask="99/99/9999" validate="eurodate" class="contenido" value="01#DateFormat(Now(),'/01/yyyy')#">
<input type="button" id="lanzador" value="..." / class="boton" onKeyDown="javascript:escanear_enter();">
</td>
</tr>
<tr>
<td width="200px" align="right">Fecha Final:</td>
<td width="500px">
<cfinput type="text" name="fh_Final" size="15" mask="99/99/9999" validate="eurodate" class="contenido" value="#DateFormat(Now(),'dd/mm/yyyy')#">
<input type="button" id="lanzador2" value="..." / class="boton" onKeyDown="javascript:escanear_enter();">
</td>
</tr>
<tr>
<td colspan="2" align="center">
<!---<button type="submit" class="boton_menu_superior">
<img src="../images/imprimir.png" alt="Clic para imprimir reporte" width="24" border="0">
</button> --->
<button type="submit" class="boton_menu_superior" onClick="$x('plantilla_reporte').value='pdf';checkTrue();"><img src="../images/imprimir.png" title="Vista Previa de Reporte"></button>
</td>
</tr>
<cfinput type="hidden" name="de_Parametros" visible="no" id="de_Parametros" >
<cfinput type="hidden" name="sn_Mostrar" value="S">
<cfinput type="hidden" name="id_Empresa" value="#Session.id_Empresa#">
<cfinput type="hidden" name="plantilla_reporte">
</cfform>
</table>
</td><td class="x-box-mr"></td></tr><tr><td class="x-box-bl" width="1px"></td><td class="x-box-bc"></td><td class="x-box-br" width="1px"></td>
</tr>
</table>
<!--Lanzador Fecha-->
<script type="text/javascript">
Calendar.setup({
inputField : "fh_Inicial", // id del campo de texto
ifFormat : "%d/%m/%Y", // formato de la fecha, cuando se escriba en el campo de texto
button : "lanzador" // el id del botón que lanzará el calendario
});
</script>
<!--Lanzador Fecha-->
<script type="text/javascript">
Calendar.setup({
inputField : "fh_Final", // id del campo de texto
ifFormat : "%d/%m/%Y", // formato de la fecha, cuando se escriba en el campo de texto
button : "lanzador2" // el id del botón que lanzará el calendario
});
</script>
<!--Lanzador Fecha-->
<script type="text/javascript">
Calendar.setup({
inputField : "fh_Corte", // id del campo de texto
ifFormat : "%d/%m/%Y", // formato de la fecha, cuando se escriba en el campo de texto
button : "lanzador3" // el id del botón que lanzará el calendario
});
</script>
</body>
</html>
CON ESTE CODIGO NO LOGRO ENVIAR LOS DATOS AL ARCHIVO DE PARAMETROS.CFM PARA ENVARLOS AL REPORTE.CFR.
ALGUIEN ME PUEDE AYUDAR..
Valora esta pregunta


0