a:13:{i:0;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:38:"fv2_dye_grpcs_keyoff_multiform_restore";s:4:"nome";s:14:"Remove_onClick";s:4:"tipo";s:1:"A";s:5:"parms";s:0:"";s:6:"codigo";s:141:"$vardo=[var_do];
if({dye_order}<>$vardo)
{	
	$do_change=$vardo;
	;
}
else
	{
	$do_change=''			;
		}
{dye_order}=$do_change;

	
	";}i:1;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:38:"fv2_dye_grpcs_keyoff_multiform_restore";s:4:"nome";s:13:"onAfterDelete";s:4:"tipo";s:1:"E";s:5:"parms";s:0:"";s:6:"codigo";s:17:"update_master3();";}i:2;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:38:"fv2_dye_grpcs_keyoff_multiform_restore";s:4:"nome";s:16:"onAfterDeleteAll";s:4:"tipo";s:1:"E";s:5:"parms";s:0:"";s:6:"codigo";s:17:"update_master3();";}i:3;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:38:"fv2_dye_grpcs_keyoff_multiform_restore";s:4:"nome";s:13:"onAfterInsert";s:4:"tipo";s:1:"E";s:5:"parms";s:0:"";s:6:"codigo";s:17:"update_master3();";}i:4;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:38:"fv2_dye_grpcs_keyoff_multiform_restore";s:4:"nome";s:16:"onAfterInsertAll";s:4:"tipo";s:1:"E";s:5:"parms";s:0:"";s:6:"codigo";s:17:"update_master3();";}i:5;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:38:"fv2_dye_grpcs_keyoff_multiform_restore";s:4:"nome";s:13:"onAfterUpdate";s:4:"tipo";s:1:"E";s:5:"parms";s:0:"";s:6:"codigo";s:17:"update_master3();";}i:6;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:38:"fv2_dye_grpcs_keyoff_multiform_restore";s:4:"nome";s:16:"onAfterUpdateAll";s:4:"tipo";s:1:"E";s:5:"parms";s:0:"";s:6:"codigo";s:17:"update_master3();";}i:7;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:38:"fv2_dye_grpcs_keyoff_multiform_restore";s:4:"nome";s:14:"onBeforeInsert";s:4:"tipo";s:1:"E";s:5:"parms";s:0:"";s:6:"codigo";N;}i:8;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:38:"fv2_dye_grpcs_keyoff_multiform_restore";s:4:"nome";s:17:"onBeforeInsertAll";s:4:"tipo";s:1:"E";s:5:"parms";s:0:"";s:6:"codigo";N;}i:9;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:38:"fv2_dye_grpcs_keyoff_multiform_restore";s:4:"nome";s:9:"onLoadAll";s:4:"tipo";s:1:"E";s:5:"parms";s:0:"";s:6:"codigo";N;}i:10;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:38:"fv2_dye_grpcs_keyoff_multiform_restore";s:4:"nome";s:8:"onRecord";s:4:"tipo";s:1:"E";s:5:"parms";s:0:"";s:6:"codigo";N;}i:11;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:38:"fv2_dye_grpcs_keyoff_multiform_restore";s:4:"nome";s:10:"onValidate";s:4:"tipo";s:1:"E";s:5:"parms";s:0:"";s:6:"codigo";N;}i:12;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:38:"fv2_dye_grpcs_keyoff_multiform_restore";s:4:"nome";s:14:"update_master3";s:4:"tipo";s:1:"M";s:5:"parms";s:0:"";s:6:"codigo";s:340:"$po={p_o_number};

$check_sql = "SELECT SUM(lbs_recd) FROM grpcs
WHERE grpcs.dye_order = '{p_o_number}'";
sc_lookup(erg,$check_sql);

if(isset({erg[0][0]}))
{
$new_lbs={erg[0][0]};
$update_phrase = "
UPDATE dyeorder
set gr_lbs_o = '{$new_lbs}'
WHERE dyeorder.p_o_number = '{p_o_number}'
";
sc_exec_sql($update_phrase);
}	

";}}