當前位置: 首頁>>代碼示例>>PHP>>正文


PHP cHForm::addRefrescar方法代碼示例

本文整理匯總了PHP中cHForm::addRefrescar方法的典型用法代碼示例。如果您正苦於以下問題:PHP cHForm::addRefrescar方法的具體用法?PHP cHForm::addRefrescar怎麽用?PHP cHForm::addRefrescar使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在cHForm的用法示例。


在下文中一共展示了cHForm::addRefrescar方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: setFMonto

$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);
$xFRM->addFootElement("<input type='hidden' id='idpoliza' value='{$poliza}' />");
$xFRM->addFootElement("<datalist id='listadocuentas'></datalist>");
echo $xFRM->get();
?>
<script>
var xCont	= new ContGen();
var xG		= new Gen();
function setFMonto(obj){
	obj.select();
	var oMod	= null;
	if(obj.id == "idcargo"){ oMod = $("#idabono"); } else { oMod = $("#idcargo"); }	
開發者ID:Cywaithaka,項目名稱:S.A.F.E.-Open-Source-Microfinance-Suite,代碼行數:31,代碼來源:poliza_movimientos.frm.php

示例2: jsAgregarPoliza

$xHS = new cHSelect();
$xDiv = new cHDiv();
$xHS->addEvent("jsaGetPolizas()", "onchange");
//`contable_polizasdiarios`
$xHF->addEvents(" onchange=\"jsaGetPolizas()\" ");
$xFRM->addHElem($xHF->get("TR.Fecha"));
$xSelPol = $xHS->getListaDeTiposDePolizas();
$xSelPol->addEspOption(SYS_TODAS, $xFRM->lang("Todas"));
$xSelPol->setOptionSelect(SYS_TODAS);
$xFRM->addHElem($xSelPol->get(true));
$xFRM->addDivSolo(jsaGetPolizas(false, false), "", "tx34", "txt14", array(1 => array("id" => "idlistadopolizas")));
//fecha tipo
$xFRM->OHidden("idpolizaactiva", "", "");
$xFRM->OButton("TR.Agregar", "jsAgregarPoliza()", "agregar");
$xFRM->addCerrar();
$xFRM->addRefrescar("jsaGetPolizas()");
$xFRM->addAviso(" ");
echo $xFRM->get();
?>
<script>
var xG = new Gen();
function jsAgregarPoliza(){ xG.w({ url : "../frmcontabilidad/nueva_poliza.frm.php?", w : 640, h: 480, tiny : true  }); }
function jsAgregarMovimientos(id){	xG.w({ url : "../frmcontabilidad/poliza_movimientos.frm.php?codigo=" + id, w : 800, h: 600, tiny : true  });}
function jsImprimirPoliza(id){ var xCont	= new ContGen(); xCont.ImprimirPoliza(id);}
function jsEliminarPoliza(id){
	$("#idpolizaactiva").val(id);
	xG.confirmar({ msg: "Desea ELiminar la Poliza Contable?", callback: jsaEliminarPoliza});
}
</script>
<?php 
$jxc->drawJavaScript(false, true);
開發者ID:Cywaithaka,項目名稱:S.A.F.E.-Open-Source-Microfinance-Suite,代碼行數:31,代碼來源:frm_poliza_contable.php


注:本文中的cHForm::addRefrescar方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。