a:6:{i:0;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:23:"fv2_dye_doco_multi_form";s:4:"nome";s:0:"";s:4:"tipo";s:0:"";s:5:"parms";s:0:"";s:6:"codigo";s:328:"$check_sql = "SELECT yards,yid"
   . " FROM asst"
   . " WHERE our_order = '" . {our_order} . "'";
sc_lookup(rs, $check_sql);

if (isset({rs[0][0]}))     // Row found
{
    
	{orderyds}={rs[0][0]};
		{ydsindye}={rs[0][1]};
}
		else     // No row found
{
		    
	        {orderyds}='';
	{ydsindye}={rs[0][1]};
}
";}i:1;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:23:"fv2_dye_doco_multi_form";s:4:"nome";s:8:"firstset";s:4:"tipo";s:1:"M";s:5:"parms";s:0:"";s:6:"codigo";s:758:"$check_sql = "SELECT yards,yid,fgi"
   . " FROM asst"
   . " WHERE our_order = '" . {our_order} . "'";
sc_lookup(rs, $check_sql);

if (isset({rs[0][0]}))     // Row found
{
    
	{orderyds}={rs[0][0]};
		{ydsindye}={rs[0][1]};
			{fgiyds}={rs[0][2]};
}
		else     // No row found
{
		    
	        {orderyds}='';
	{ydsindye}='';
		{fgiyds}='';
}
$check_sql = "SELECT fyds_uallo,yds_ualloc"
   . " FROM dyeorder"
   . " WHERE p_o_number = '" . {p_o_number} . "'";
sc_lookup(rs, $check_sql);


if (isset({rs[0][0]}))     // Row found
{
if ({dostatus}=='COMP')
    {
	{available}={rs[0][0]};
}
if ({dostatus}=='OPEN')	
	{
	{available}={rs[0][1]};	
		}

}
		else     // No row founds
{
		    
	        {available}='';
}
";}i:2;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:23:"fv2_dye_doco_multi_form";s:4:"nome";s:7:"loadset";s:4:"tipo";s:1:"M";s:5:"parms";s:0:"";s:6:"codigo";s:475:"$check_sql = "SELECT our_order,bcode,yards,yid,fgi"
   . " FROM asst"
   . " WHERE our_order = '" . {order2} . "'";
sc_lookup(rs, $check_sql);

if (isset({rs[0][0]}))     // Row found
{
    {our_order} = {rs[0][0]};
	{customer} = {rs[0][1]};
	{orderyds}={rs[0][2]};
		{ydsindye}={rs[0][3]};
			{fgiyds}={rs[0][4]};
			
}
		else     // No row found
{
		    {our_order} = '';
			{customer} = '';
	        {orderyds}='';
	{ydsindye}='';
	{fgiyds}='';
	
}
";}i:3;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:23:"fv2_dye_doco_multi_form";s:4:"nome";s:9:"onLoadAll";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:23:"fv2_dye_doco_multi_form";s:4:"nome";s:8:"onRecord";s:4:"tipo";s:1:"E";s:5:"parms";s:0:"";s:6:"codigo";s:11:"firstset();";}i:5;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:23:"fv2_dye_doco_multi_form";s:4:"nome";s:15:"order2_onChange";s:4:"tipo";s:1:"A";s:5:"parms";s:0:"";s:6:"codigo";s:10:"loadset();";}}