From: Diego <tit...@us...> - 2004-09-29 17:46:41
|
Update of /cvsroot/facturalux/modulos/formacion/flforma/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20135/scripts Modified Files: masteraccionesformativas.qs Log Message: Index: masteraccionesformativas.qs =================================================================== RCS file: /cvsroot/facturalux/modulos/formacion/flforma/scripts/masteraccionesformativas.qs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** masteraccionesformativas.qs 29 Sep 2004 16:14:21 -0000 1.3 --- masteraccionesformativas.qs 29 Sep 2004 17:46:30 -0000 1.4 *************** *** 9,13 **** function ImprimirFormaciones() { ! var f = new FLFormSearchDB("accionesformativas_imp"); var cursor = f.cursor(); --- 9,13 ---- function ImprimirFormaciones() { ! var f = new FLFormSearchDB("imprimiracciones"); var cursor = f.cursor(); *************** *** 37,45 **** function ImprimirCertificados() { ! var q = new FLSqlQuery("certificado"); ! var rptViewer = new FLReportViewer(); ! rptViewer.setReportTemplate("certificado"); ! rptViewer.setReportData(q); ! rptViewer.renderReport(); ! rptViewer.exec(); } --- 37,62 ---- function ImprimirCertificados() { ! var f = new FLFormSearchDB("imprimircertificados"); ! var cursor = f.cursor(); ! ! cursor.setActivatedCheckIntegrity(false); ! cursor.select(); ! if (!cursor.first()) ! cursor.setModeAccess(0); ! else ! cursor.setModeAccess(1); ! ! f.setMainWidget(); ! cursor.refreshBuffer(); ! var acpt = f.exec("asistencia"); ! if (acpt) { ! cursor.commitBuffer(); ! var q = new FLSqlQuery("certificado"); ! q.setValueParam("asistencia", cursor.valueBuffer("asistencia")); ! var rptViewer = new FLReportViewer(); ! rptViewer.setReportTemplate("certificado"); ! rptViewer.setReportData(q); ! rptViewer.renderReport(); ! rptViewer.exec(); ! } } |