$ls_usuasiche = $la_usuasiche[$li_i - 1];
         $lb_checked = $la_emitidos[$li_i - 1];
         $object[$li_i][1] = "<input type=text name=txtnumcheasi" . $li_i . "  value='" . $ls_numche . "'    id=txtnumcheasi" . $li_i . "  class=sin-borde style=text-align:center size=30 maxlength=15 readonly>";
         $object[$li_i][2] = "<input type=text name=txtcodusuasi" . $li_i . "  value='" . $ls_usuasiche . "' id=txtcodusuasi" . $li_i . "  class=sin-borde style=text-align:left   size=35 maxlength=30 readonly>";
         if ($lb_checked == 'true') {
             $object[$li_i][3] = "<input type=checkbox name=chkasi" . $li_i . " value=0 id=chkasi" . $li_i . " class=sin-borde checked disabled>";
         } elseif (!empty($ls_usuasiche)) {
             $object[$li_i][3] = "<input type=checkbox name=chkasi" . $li_i . " value=1 id=chkasi" . $li_i . " class=sin-borde onClick='javascript:uf_asignar_usuario({$li_i});' checked>";
         } else {
             $object[$li_i][3] = "<input type=checkbox name=chkasi" . $li_i . " value=1 id=chkasi" . $li_i . " class=sin-borde onClick='javascript:uf_asignar_usuario({$li_i});'>";
         }
     }
     // fin del for
 } else {
     require_once "sigesp_scb_c_chequera.php";
     $in_classchequera = new sigesp_scb_c_chequera($la_security);
     $in_classchequera->uf_buscar_cheques($as_codban, $as_ctaban, $as_chequera, &$aa_cheques);
     $li_i = 0;
     for ($li_i = 1; $li_i <= $li_totrowche; $li_i++) {
         $ls_numcheque = $aa_cheques[$li_i]["numche"];
         $ls_codusuche = $aa_cheques[$li_i]["codusu"];
         $li_status = $aa_cheques[$li_i]["estche"];
         if ($li_status == 1) {
             $lb_checked = "checked";
         } else {
             $lb_checked = "";
         }
         $object[$li_i][1] = "<input type=text name=txtnumcheasi" . $li_i . "  value='" . $ls_numcheque . "'    id=txtnumcheasi" . $li_i . "  class=sin-borde style=text-align:center size=30 maxlength=15 readonly>";
         $object[$li_i][2] = "<input type=text name=txtcodusuasi" . $li_i . "  value='" . $ls_codusuche . "' id=txtcodusuasi" . $li_i . "  class=sin-borde style=text-align:left   size=35 maxlength=30 readonly>";
         if ($lb_checked == 'checked') {
             $object[$li_i][3] = "<input type=checkbox name=chkasi" . $li_i . " value=0 id=chkasi" . $li_i . " class=sin-borde checked disabled>";
Ejemplo n.º 2
0
    $li_lastrow = 0;
    $li_totrowusu = 1;
    $i = 1;
    //Object que contiene los objetos y valores	iniciales del grid.
    $object[1][1] = "<input type=text name=txtnumrefche1  value='' id=txtnumrefche1  class=sin-borde style=text-align:center size=30 maxlength=15 onKeyUp=javascript:ue_validarnumero(this); onBlur=javascript:rellenar_cad(this.value,15,this);>";
    $object[1][2] = "<input type=text name=txtcodusuche1  value='' id=txtcodusuche1  class=sin-borde style=text-align:left   size=35 maxlength=30 readonly>";
    $object[1][3] = "<input name=chk1 type=checkbox       value=1  id=chk1           class=sin-borde onClick='return false;'>";
    $object[1][4] = "<a href=javascript:uf_delete_dt('1');><img src=../../shared/imagebank/tools15/eliminar.gif alt=Eliminar Cheque width=15 height=15 border=0></a>";
    $object_usu[1][1] = "<input type=text name=txtcodusu1 value='' id=txtcodusu1  class=sin-borde style=text-align:left size=35 maxlength=30  readonly>";
    $object_usu[1][2] = "<input type=text name=txtnomusu1 value='' id=txtnomusu1  class=sin-borde style=text-align:left size=30 maxlength=30  readonly>";
    $object_usu[1][3] = "<input type=text name=txtapeusu1 value='' id=txtapeusu1  class=sin-borde style=text-align:left size=26 maxlength=35  readonly>";
    $object_usu[1][4] = "<a href=javascript:uf_delete_dt_usu('1');><img src=../../shared/imagebank/tools15/eliminar.gif alt=Eliminar Usuario width=15 height=15 border=0></a>";
}
if ($ls_operacion == "CARGAR") {
    require_once "sigesp_scb_c_chequera.php";
    $in_classchequera = new sigesp_scb_c_chequera($la_security);
    $in_classchequera->uf_cargar_cheques($ls_codban, $ls_ctaban, $ls_chequera, $ls_empresa, $li_totrowche, $object, $li_totrowusu, $object_usu);
    if ($li_totrowche >= 1 && $li_totrowusu > 1) {
        $ls_status = 'G';
        //Para simular que la carga de los Cheques proviene del Catálogo.
    }
}
if ($ls_operacion == "DELETE_DT_USU") {
    $li_totrowche = $_POST["total"];
    for ($li_i = 1; $li_i <= $li_totrowche; $li_i++) {
        $ls_numrefche = $_POST["txtnumrefche" . $li_i];
        $ls_codusuche = $_POST["txtcodusuche" . $li_i];
        $ls_estche = uf_obtenervalor("chk" . $li_i, 0);
        $object[$li_i][1] = "<input type=text name=txtnumrefche" . $li_i . "   value='" . $ls_numrefche . "' id=txtnumrefche" . $li_i . "   class=sin-borde style=text-align:center size=50 maxlength=15 onKeyUp=javascript:ue_validarnumero(this); onBlur=javascript:rellenar_cad(this.value,15,this);>";
        $object[$li_i][2] = "<input type=text name=txtcodusuche" . $li_i . "   value='" . $ls_codusuche . "' id=txtcodusuche" . $li_i . "   class=sin-borde style=text-align:left   size=35 maxlength=30 readonly>";
        if ($ls_estche == '0') {