function jsaEliminarPoliza($clave) { $xPol = new cPoliza(false); $xPol->setPorCodigo($clave); $xPol->init(); $xPol->setDeletePoliza(); return $xPol->getMessages(OUT_HTML); }
$persona = parametro("idsocio", $persona, MQL_INT); $credito = parametro("credito", DEFAULT_CREDITO, MQL_INT); $credito = parametro("idsolicitud", $credito, MQL_INT); $credito = parametro("solicitud", $credito, MQL_INT); $cuenta = parametro("cuenta", DEFAULT_CUENTA_CORRIENTE, MQL_INT); $cuenta = parametro("idcuenta", $cuenta, MQL_INT); $jscallback = parametro("callback"); $tiny = parametro("tiny"); $form = parametro("form"); $action = parametro("action", SYS_NINGUNO); $xHP->init("initComponents()"); $xFRM = new cHForm("frm", "poliza_movimientos.frm.php"); $msg = ""; $xPol = new cPoliza(false); $xPol->setPorCodigo($poliza); $xPol->init(); $xFRM->addHElem($xPol->getFicha()); $comp = "<table class='mvtoscontables'><td class=\"cuenta\"><input type='text' id='idcuenta' onkeyup='jsKeyAction(event, this)' list='listadocuentas' placeholder='numero de cuenta' autocomplete='off' onfocus='this.select()' onblur='jsaGetNombreCuenta()' /></td>"; $comp .= "<th class=\"nombrecuenta\"><input type='text' id='idnombrecuenta' disabled /></td>"; $comp .= "<td class=\"cargos\"><input type='number' id='idcargo' value='0' onfocus='this.select()' onchange='setFMonto(this)' onfocus='setFMonto(this)' /></td>"; $comp .= "<td class=\"abonos\"><input type='number' id='idabono' value='0' onfocus='this.select()' onchange='setFMonto(this)' onfocus='setFMonto(this)' /></td>"; $comp .= "<td class=\"referencia\"><input type='text' id='idreferencia' onfocus='this.select()' /></td>"; $comp .= "<td class=\"concepto\"><input type='text' id='idconcepto' onfocus='this.select()' onblur='jsSaveMvto()' /></td></table>"; $xFRM->addDivSolo($comp, "", "tx34", "txt14", array(1 => array("id" => "idagregados"))); $xFRM->addDivSolo(" ", "", "tx34", "txt14", array(1 => array("id" => "idlistado"))); $xFRM->addCerrar(); $xFRM->addRefrescar("jsaGetListadoDeMovimientos()"); $xFRM->OButton("TR.Eliminar", "jsEliminarPoliza()", $xFRM->ic()->ELIMINAR); $xFRM->OButton("TR.Imprimir", "jsImprimirPoliza()", "imprimir"); $xFRM->OButton("TR.Finalizar", "jsFinalizarPoliza()", "guardar"); $xFRM->addAviso($poliza);