a:6:{i:0;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:16:"beam_TopUse_grid";s:4:"nome";s:17:"onApplicationInit";s:4:"tipo";s:1:"E";s:5:"parms";s:0:"";s:6:"codigo";s:0:"";}i:1;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:16:"beam_TopUse_grid";s:4:"nome";s:8:"onFooter";s:4:"tipo";s:1:"E";s:5:"parms";s:0:"";s:6:"codigo";s:0:"";}i:2;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:16:"beam_TopUse_grid";s:4:"nome";s:8:"onHeader";s:4:"tipo";s:1:"E";s:5:"parms";s:0:"";s:6:"codigo";s:0:"";}i:3;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:16:"beam_TopUse_grid";s:4:"nome";s:6:"onInit";s:4:"tipo";s:1:"E";s:5:"parms";s:0:"";s:6:"codigo";s:0:"";}i:4;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:16:"beam_TopUse_grid";s:4:"nome";s:8:"onRecord";s:4:"tipo";s:1:"E";s:5:"parms";s:0:"";s:6:"codigo";s:0:"";}i:5;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:16:"beam_TopUse_grid";s:4:"nome";s:8:"upMaster";s:4:"tipo";s:1:"M";s:5:"parms";s:0:"";s:6:"codigo";s:566:"sc_lookup(dataset,"SELECT SUM(top_ship)
                  FROM greigepo 
                   WHERE top_p_o_ = [var_warppo]");
$master_topship = {dataset[0][0]};
sc_lookup(dataset,"SELECT SUM(bot_ship)
                  FROM greigepo 
                   WHERE bot_p_o_ = [p_o_number]");
$master_botship = {dataset[0][0]};
$master_lbsknit = $master_topship + $master_botship;
sc_master_value('warppo.lbs_knit', $master_lbsknit); 
sc_exec_sql("UPDATE warppo
             SET lbs_knit = $master_lbsknit
             WHERE P_O_NUMBER = [var_warppo]");	



";}}