Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function colorize(){
- // Check Valids Fields
- $('input[name=f13]').each(function( index ) {
- var parent = $(this).closest("tr");
- var cant = $("#"+this.id.replace("f13", "f02")).html();
- var childs = $(parent).children('td[headers="CODIGO DE BARRA SURTIDO"]')
- parent.attr("style","border:2px;bordercolor:gray;");
- if ($( this ).val() != '' && cant != "0") {
- childs.addClass("Rows-Valid");
- }
- else{
- if (cant == "0"){
- childs.addClass("Zero-Rows");
- }
- else{
- childs.addClass("Rows");
- }
- }
- });
- }
- function init_tabular(){
- // Hide ID Column
- $("#ID").hide();
- $('td[headers=ID]').hide();
- $('#report_tabular_id').removeClass("t-Report--rowHighlight").removeClass("t-Report--altRowsDefault");
- colorize();
- }
- function refresh_labels(){
- var cant_det = parseInt($("#P94_MENSAJE_SURTIDO_DISPLAY").html().replace("Total de claves surtidas: ","")) + 1;
- $("#P94_MENSAJE_SURTIDO_DISPLAY").html("Total de claves surtidas: "+cant_det);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement