select * 
from rpt.frm30R3_19_2105_pg( 
$1, 
$2, 
cast($3 as bigint), 
cast($4 as bigint), 
cast($5 as bigint), 
cast($6 as bigint), 
cast(to_timestamp($7,'dd.mm.yyyy') as timestamp), 
cast(to_timestamp($8,'dd.mm.yyyy') as timestamp),
cast($9 as bigint), 
cast($10 as bigint), 
cast($11 as bigint), 
cast($12 as bigint), 
cast($13 as bigint), 
cast($14 as bigint), 
cast($15 as bigint))
