
            with myvars as (
                select localtimestamp as curtime
            )
            select
                error_code as "Error_Code",
                error_message as "Error_Msg",
                TimetableGraf_id as "TimetableGraf_id"
            from dbo.p_TimetableGraf_ins(
                TimetableGraf_id := NULL,
                RecClass_id := 1,
                TimetableGraf_IsDop := 1,
                TimetableType_id := 1,
                TimetableGraf_Time := 0,
                TimetableGraf_begTime := NULL,
                TimetableGraf_factTime := '2023-07-29 09:14',
                TimetableGraf_Day := 45135,
                EvnDirection_id := NULL,
                Evn_id := NULL,
                MedStaffFact_id := '50101000059859',
                Person_id := '1675593',
                pmUser_id := '377285893642'
            )
        
