$expPrint = new ExpertoImpresion(); $text = ""; if ($oData['listado'] == 'true') { $text = $exp->getTextForPrintListadoDeCarga($id); $expPrint->imprimir(reemplazarCaracteresEspecialesPorAscii($text)); exit; } if ($oData['presupuestos'] == 'true') { $expVta = new ExpertoVentas(); $text = $expVta->getTextForPrintVentasDeRepartoPresupuesto($id); $expPrint->imprimir(reemplazarCaracteresEspecialesPorAscii($text)); exit; } if ($oData['factb'] == 'true') { $expVta = new ExpertoVentas(); $text = $expVta->getTextForPrintVentasDeReparto_B($id); $expPrint->imprimir(reemplazarCaracteresEspecialesPorAscii($text)); exit; } if ($oData['facta'] == 'true') { $expVta = new ExpertoVentas(); $text = $expVta->getTextForPrintVentasDeReparto_A($id); $expPrint->imprimir(reemplazarCaracteresEspecialesPorAscii($text)); exit; } if ($oData['ficha'] == 'true') { $expVta = new ExpertoVentas(); $text = $expVta->getTextForPrintFichaDeReparto($id); $expPrint->imprimir(reemplazarCaracteresEspecialesPorAscii($text)); exit; }
if (!$vta) { $msge = "parent.showMsgeError(\"<div style='font-family:verdana'>Los cambios no pudieron ser aplicados</div>\");"; } else { $msge = "parent.showMsgeExito(\"<div style='font-family:verdana'>Éxito!!!</div>\");"; } break; case "imprimir": $expPrint = new ExpertoImpresion(); $text = ""; switch ($oData["tipo_vta"]) { case "A": $text = $exp->getTextForPrintVentasDeReparto_A($oData["id_reparto"], $oData["id_venta"]); $expPrint->imprimir(reemplazarCaracteresEspecialesPorAscii($text)); break; case "B": $text = $exp->getTextForPrintVentasDeReparto_B($oData["id_reparto"], $oData["id_venta"]); $expPrint->imprimir(reemplazarCaracteresEspecialesPorAscii($text)); break; case "P": $text = $exp->getTextForPrintVentasDeRepartoPresupuesto($oData["id_reparto"], $oData["id_venta"]); $expPrint->imprimir(reemplazarCaracteresEspecialesPorAscii($text)); break; case "SD": $text = $exp->getTextForPrintSaldoDeudorDeReparto($oData["id_reparto"], $oData["id_cliente"]); $expPrint->imprimir(reemplazarCaracteresEspecialesPorAscii($text)); break; } break; case "reloadListAll": $fecha_fin = $oData["fecha_fin"]; $fecha_inicio = $oData["fecha_inicio"];