--"set dateformat dmy select *  from [rpt].[EMC_EvnUslugaDiag] ("+params["paramLpu"].value+",'"+params["paramBegDate"].value+"','" + params["paramEndDate"].value + "') 
select *
from rpt.emc_evnuslugadiag_pg(
cast($1 as int8), 
cast(to_timestamp($2,'dd.mm.yyyy') as timestamp), 
cast(to_timestamp($3,'dd.mm.yyyy') as timestamp))
order by "ROWNUMBER"
