// $ByEstado = $xT->cBool($todas) == true ? "" : " AND `estado_en_sistema`= " . SYS_UNO; $ByEstado .= setNoMenorQueCero($tipo) <= 0 ? "" : " AND (`aml_risk_catalog`.`tipo_de_riesgo` ={$tipo}) "; $fecha_inicial = $xF->getFechaISO($fecha_inicial); $fecha_final = $xF->getFechaISO($fecha_final); $sql = $xlistas->getListadoDeAlertas(false, false, false, false, $ByEstado); $xT = new cTabla($sql); $xT->setWithMetaData(); $xT->OButton("TR.Dictaminar", "jsModificarEstatus(_REPLACE_ID_)", $xT->ODicIcons()->REPORTE); $xT->OButton("TR.Panel", "jsToPanel(_REPLACE_ID_)", $xT->ODicIcons()->EJECUTAR); $xT->setKeyField($xAl->getKey()); $xT->setKeyTable($xAl->get()); return $xT->Show(); } $jxc->exportFunction('jsaGetListadoDeAvisos', array('idtipoderiesgoaml', 'idfecha-1', 'idfecha-2', 'idactivas'), "#lstalertas"); $jxc->process(); $clave = parametro("id", SYS_TODAS); $xHP->init("jsGetListadoAvisos()"); $jsb = new jsBasicForm(""); $xFRM = new cHForm("frm_alertas", "./"); $xBtn = new cHButton(); $xTxt = new cHText(); $xDate = new cHDate(); $xSel = new cHSelect(); $jsb->setNameForm($xFRM->getName()); $selcat = $xSel->getListaDeTipoDeRiesgoEnAML(); $selcat->addEvent("onblur", "jsGetListadoAvisos()"); $selcat->addEvent("onchange", "jsGetListadoAvisos()"); $selcat->addEspOption(SYS_TODAS); $selcat->setOptionSelect(SYS_TODAS); $xFRM->OHidden("idfecha-1", "", "");
$row = mysql_fetch_array($result); $grupo = $row[0]; $agrupacion_contable = $row[1]; $grupo_input = "<input type='text' value='{$grupo}' size='50' name='grupo' id='grupo' class='obligatorio'> *"; $tab = new TinyAjaxBehavior(); // $tab->add( TabInnerHtml::getBehavior("g_cont", $grupo_input)); $tab->add(TabEval::getBehavior("cambiarComboAgrupacion({$agrupacion_contable})")); $tab->add(TabEval::getBehavior("cambiarFieldGrupo('{$grupo}')")); // $tab->add( TabAlert::getBehavior("Hola")); // $tab->add( TabSetValue::getBehaviour("grupo", $grupo)); return $tab->getString(); } $ajax = new TinyAjax(); $ajax->showLoading(); $ajax->exportFunction("updateGroupFields", array("id_grupo")); $ajax->process(); ?> <html> <head> <title>North Sails - Sistema de Control de Stock</title> <link rel="stylesheet" type="text/css" href="north.css" /> <script type="text/javascript"> var old_agrup_contable; function setfocus() { document.<?php echo $var['focus'];