--CREATE OR REPLACE FUNCTION fn_GetScheduleItem
--(
--	"ResourceScheduleID" uuid
--,	"enumId" integer
--)
--RETURNS uuid AS
--$BODY$	
--Begin
--	return
--	(
--		select ScheduleItemID from akuz.T_SCHEDULE_ITEM where ResourceSchedule = "ResourceScheduleID" and DaysOfWeek = "enumId" 
--	);
--END $BODY$
--  LANGUAGE plpgsql volatile
--  COST 100;
--ALTER FUNCTION fn_GetScheduleItem(uuid, integer)
--  OWNER TO postgres;
