Advertisement
JAntonio

mas js

Feb 23rd, 2016
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function colorize(){
  2.     // Check Valids Fields
  3.     $('input[name=f13]').each(function( index ) {
  4.         var parent = $(this).closest("tr");
  5.         var cant = $("#"+this.id.replace("f13", "f02")).html();
  6.         var childs = $(parent).children('td[headers="CODIGO DE BARRA SURTIDO"]')
  7.         parent.attr("style","border:2px;bordercolor:gray;");
  8.  
  9.         if ($( this ).val() != '' && cant != "0") {
  10.             childs.addClass("Rows-Valid");
  11.         }
  12.         else{
  13.             if (cant == "0"){
  14.                 childs.addClass("Zero-Rows");
  15.             }
  16.             else{
  17.                 childs.addClass("Rows");  
  18.             }
  19.         }
  20.     });
  21. }
  22.  
  23.  
  24. function init_tabular(){
  25.     // Hide ID Column
  26.     $("#ID").hide();
  27.     $('td[headers=ID]').hide();
  28.  
  29.     $('#report_tabular_id').removeClass("t-Report--rowHighlight").removeClass("t-Report--altRowsDefault");
  30.    
  31.     colorize();
  32. }
  33.  
  34. function refresh_labels(){
  35.     var cant_det = parseInt($("#P94_MENSAJE_SURTIDO_DISPLAY").html().replace("Total de claves surtidas: ","")) + 1;
  36.     $("#P94_MENSAJE_SURTIDO_DISPLAY").html("Total de claves surtidas: "+cant_det);    
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement