REVOKE ALL ON VER FROM INISSOFT_ROLE;
COMMIT WORK;

SET TERM ^ ;

CREATE OR ALTER PROCEDURE ACCEPT_GIA_DTL (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE ACCEPT_GIA_PROCESS (
    I$OBJ_ID BIGINT,
    I$DEST_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    LINK_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE ACCEPT_GRADE_LIST (
    I$FROM SMALLINT,
    I$GRADE BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    CAPTION VARCHAR(1000),
    OBJ_TYPE_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE ACCESS_SELECTOR_GET RETURNS (
    MODULE_ID BIGINT,
    TASK_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE ACCESS_SELECTOR_SET (
    MODULE_ID BIGINT,
    TASK_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE ACTIVEDIR_USERS_LIST RETURNS (
    USER_ID BIGINT,
    USER_NAME VARCHAR(100),
    FIRST_NAME VARCHAR(100),
    MIDDLE_NAME VARCHAR(100),
    LAST_NAME VARCHAR(100),
    IS_BLOCKED SMALLINT,
    MUST_CHANGE SMALLINT,
    EXP_DATE DATE)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE ACTIVEDIR_USER_SET (
    USER_ID BIGINT,
    PWD VARCHAR(100),
    IS_BLOCKED SMALLINT = 0,
    MUST_CHANGE SMALLINT = 0,
    EXP_DATE DATE = null)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE ADDITIONAL_EDU_GPD_LIST (
    I$OBJ_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    LISTVAL_ID BIGINT,
    PARENT_ID BIGINT,
    VAL VARCHAR(500),
    VAL_LONG VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE ADD_EXTERNAT_GRADUATE (
    I$OBJ_ID BIGINT,
    I$GRADE_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE ADR_ADD (
    I$PARAM_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$REGION VARCHAR(255),
    I$DISTRICT VARCHAR(255),
    I$TOWN VARCHAR(255),
    I$SETTLEMENT VARCHAR(255),
    I$STREET VARCHAR(255),
    I$HOUSE VARCHAR(10),
    I$LITER VARCHAR(10),
    I$CORP VARCHAR(10),
    I$FLAT VARCHAR(10),
    I$POST_INDEX VARCHAR(20),
    I$OCATD VARCHAR(11) = NULL,
    I$HOUSEGUID VARCHAR(36) = NULL,
    I$STREETGUID VARCHAR(36) = NULL,
    I$USER_ID BIGINT = NULL,
    I$IS_DEL SMALLINT = 0,
    I$RAW_TEXT VARCHAR(1000) = NULL)
RETURNS (
    BLOB_ID BIGINT,
    REFRESH_FLAG VARCHAR(100),
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE ADR_GET (
    I$PARAM_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$IS_DEL SMALLINT = 0,
    I$POST_INDEX_FL SMALLINT = 1)
RETURNS (
    REGION VARCHAR(255),
    DISTRICT VARCHAR(255),
    TOWN VARCHAR(255),
    SETTLEMENT VARCHAR(255),
    STREET VARCHAR(255),
    HOUSE VARCHAR(10),
    CORP VARCHAR(10),
    LITER VARCHAR(10),
    FLAT VARCHAR(10),
    POST_INDEX VARCHAR(20),
    VAL VARCHAR(2000),
    OCATD VARCHAR(11),
    HOUSEGUID VARCHAR(36),
    STREETGUID VARCHAR(36),
    RAW_TEXT VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE ANALISYS_REPORT_DISTRICT_1 (
    I$DISTRICT_ID BIGINT,
    I$STAGE_ID BIGINT,
    I$FINAL_TYPE_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    SCHOOL_ID BIGINT,
    SCHOOL_CAPTION VARCHAR(4000),
    SORT_ORDER DOUBLE PRECISION,
    SS INTEGER,
    SB DOUBLE PRECISION,
    SA DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE ANALISYS_REPORT_DISTRICT_2 (
    I$DISTRICT_ID BIGINT,
    I$STAGE_ID BIGINT,
    I$FINAL_TYPE_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    SCHOOL_ID BIGINT,
    SCHOOL_CAPTION VARCHAR(4000),
    SORT_ORDER DOUBLE PRECISION,
    SP INTEGER,
    SS INTEGER,
    S5 INTEGER,
    S4 INTEGER,
    S3 INTEGER,
    S2 INTEGER,
    SN INTEGER,
    S45 INTEGER,
    S345 INTEGER,
    S12345 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE ANALISYS_REPORT_DISTRICT_3 (
    I$DISTRICT_ID BIGINT,
    I$STAGE_ID BIGINT,
    I$SUBJECT_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    SCHOOL_ID BIGINT,
    SCHOOL_CAPTION VARCHAR(4000),
    SORT_ORDER DOUBLE PRECISION,
    FINAL_TYPE_ID BIGINT,
    SB DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE ANALISYS_REPORT_DISTRICT_4 (
    I$DISTRICT_ID BIGINT,
    I$MARKTYPE_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    SCHOOL_CAPTION VARCHAR(4000),
    P1_1 SMALLINT,
    P1_2 SMALLINT,
    P1_3 SMALLINT,
    P2_1 SMALLINT,
    P2_2 SMALLINT,
    P2_3 SMALLINT,
    P3_1 SMALLINT,
    P3_2 SMALLINT,
    P3_3 SMALLINT,
    P4_1 SMALLINT,
    P4_2 SMALLINT,
    P4_3 SMALLINT,
    P5_1 SMALLINT,
    P5_2 SMALLINT,
    P5_3 SMALLINT,
    P6_1 SMALLINT,
    P6_2 SMALLINT,
    P6_3 SMALLINT,
    P7_1 SMALLINT,
    P7_2 SMALLINT,
    P7_3 SMALLINT,
    P8_1 SMALLINT,
    P8_2 SMALLINT,
    P8_3 SMALLINT,
    P9_1 SMALLINT,
    P9_2 SMALLINT,
    P9_3 SMALLINT,
    P10_1 SMALLINT,
    P10_2 SMALLINT,
    P10_3 SMALLINT,
    P11_1 SMALLINT,
    P11_2 SMALLINT,
    P11_3 SMALLINT,
    P12_1 SMALLINT,
    P12_2 SMALLINT,
    P12_3 SMALLINT,
    PT_1 SMALLINT,
    PT_2 SMALLINT,
    PT_3 SMALLINT,
    SORT_ORDER DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE ANALISYS_REPORT_SCHOOL (
    I$SCHOOL_ID BIGINT,
    I$CLASS_ID BIGINT,
    I$FINAL_TYPE_ID BIGINT,
    I$SUBJECT_ID BIGINT = -1,
    I$TEACHER_ID BIGINT = -1,
    I$REPORT SMALLINT = -1,
    I$USER_ID BIGINT = 1,
    I$SHOW_LEFT INTEGER = 0)
RETURNS (
    FINALMARK_ID BIGINT,
    FINAL_TYPE_ID BIGINT,
    STAGE_ID BIGINT,
    GRADE_ID BIGINT,
    CLASS_ID BIGINT,
    PUPIL_ID BIGINT,
    SUBJECT_ID BIGINT,
    TEACHER_ID BIGINT,
    MARK_TYPE_ID BIGINT,
    MARK_SHORTNAME VARCHAR(10),
    CLASS_CAPTION VARCHAR(400),
    PUPIL_CAPTION VARCHAR(200),
    SUBJECT_CAPTION VARCHAR(400),
    TEACHER_CAPTION VARCHAR(200),
    SORT_ORDER DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE ANALISYS_SUBJECT_LIST RETURNS (
    SUBJECT_ID BIGINT,
    SUBJECT_CAPTION VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE APPLY_AOOP_TYPE (
    I$OBJ_ID BIGINT,
    I$PARAM_ID BIGINT,
    I$VAL BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE APPLY_OVZ_TYPE (
    I$OBJ_ID BIGINT,
    I$CLASS_CONTENT BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE AREA_SL_ROOMS_CALC (
    I$OBJ_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE ATT_CHOOSE_LIST (
    I$OBJ_ID BIGINT,
    I$PARAM_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    PARENT_ID BIGINT,
    LISTVAL_ID BIGINT,
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE ATT_CLASSES_GET RETURNS (
    CLASS_ID BIGINT,
    STAGE INTEGER,
    CLASS VARCHAR(250))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE ATT_CLASS_GET (
    I$CLASS_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    SCHOOLAR_ID BIGINT,
    F VARCHAR(250),
    I VARCHAR(250),
    O VARCHAR(250),
    SEX VARCHAR(250),
    CLASS VARCHAR(250),
    BIRTHDATE DATE,
    IS_GIA SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE ATT_CONTENT_GET (
    I$OBJ_ID BIGINT,
    I$ZONE INTEGER,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE ATT_DATE_VERIFY (
    I$OBJ_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE ATT_DOCS_GET (
    I$YEAR SMALLINT,
    I$SCHOOLAR_ID BIGINT,
    I$DOC_TYPE_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    DOC_ID BIGINT,
    DOB DATE,
    REG_NUMBER VARCHAR(100),
    GIVE_DATE DATE,
    GIVE_FL SMALLINT,
    FIO_D VARCHAR(255))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE ATT_DOCS_SET (
    I$YEAR BIGINT,
    I$SCHOOLAR_ID BIGINT,
    I$BLANK_STATUS_ID BIGINT,
    I$DOC_TYPE_ID BIGINT,
    I$DOC_VID_ID BIGINT,
    I$DOC_CODE SMALLINT,
    I$DOC_SERIA VARCHAR(250),
    I$DOC_NUMBER VARCHAR(250),
    I$DOC_DATE DATE,
    I$DOC_ORG VARCHAR(1000),
    I$DOC_GIVE_FL SMALLINT = 0,
    I$FIO_D VARCHAR(255) = null)
RETURNS (
    DOC_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE ATT_FILE_ADD (
    I$OBJ_ID BIGINT,
    I$TYPE_ID BIGINT NOT NULL,
    I$NAME VARCHAR(1000) NOT NULL,
    I$USER_ID VARCHAR(40))
RETURNS (
    ID BIGINT,
    BLOB_ID BIGINT,
    DOCTYPE BIGINT,
    STATE BIGINT,
    NAME VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE ATT_FILE_DELETE (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE ATT_FILE_GET (
    I$OBJ_ID BIGINT,
    I$ZONE SMALLINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    BLOB_ID BIGINT,
    FILE_NAME VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE ATT_FILE_STATE (
    I$OBJ_ID BIGINT,
    I$STATE BIGINT,
    I$USER_ID VARCHAR(40))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE ATT_FOLDER_ADD (
    I$PERSON_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$ZONE SMALLINT,
    I$USER_ID VARCHAR(40),
    I$JOB_ID VARCHAR(400),
    I$CAT_ID BIGINT,
    I$FORM_ID VARCHAR(40))
RETURNS (
    OBJ_ID BIGINT,
    "DATE" VARCHAR(20),
    CATEGORY VARCHAR(400),
    JOB VARCHAR(400),
    STATE BIGINT,
    STATE_NAME VARCHAR(400),
    FORM_ID VARCHAR(40))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE ATT_FOLDER_DELETE (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE ATT_FOLDER_GET (
    I$PERSON_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$ZONE SMALLINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE ATT_FOLDER_STATE (
    I$OBJ_ID BIGINT,
    I$STATE_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    EMAIL_ADDR VARCHAR(400),
    EMAIL_NAME VARCHAR(400),
    PERSON_NAME VARCHAR(400),
    N_FAIL INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE ATT_INFO_GET (
    I$OBJ_ID BIGINT,
    I$STATE SMALLINT)
RETURNS (
    STD_NUM INTEGER,
    STUFF_NAME VARCHAR(400),
    STATE_NAME VARCHAR(100),
    STUFF_IDS VARCHAR(400))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE ATT_MARK_GET (
    I$SCHOOLAR_ID BIGINT,
    I$SUBJECT_ID BIGINT,
    I$USER_ID BIGINT,
    I$MARKTYPE_ID BIGINT = 3013,
    I$LAST_YEAR_FL SMALLINT = 0)
RETURNS (
    MARK VARCHAR(250),
    YEAR_RES_ID BIGINT,
    YEAR_COST INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE ATT_OU_GET (
    I$USER_ID BIGINT)
RETURNS (
    OU VARCHAR(4000),
    F VARCHAR(250),
    I VARCHAR(250),
    O VARCHAR(250),
    POST VARCHAR(250))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE ATT_PKG_DATA (
    I$OBJ_ID BIGINT,
    I$REQ_NO VARCHAR(40),
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE ATT_REGISTER_ADD (
    I$OBJ_ID BIGINT,
    I$DATE DATE,
    I$STATE_ID SMALLINT,
    I$GROUP_ID BIGINT,
    I$SUBJECT_ID BIGINT,
    I$CONTROL_TYPE_ID BIGINT,
    I$STAGE_ID BIGINT,
    I$SUBSTAGE_ID SMALLINT,
    I$COMMENTS VARCHAR(1000),
    I$GROUP_NAME VARCHAR(1000),
    I$ROOM_ID BIGINT,
    I$TIME VARCHAR(100),
    I$USER_ID VARCHAR(40))
RETURNS (
    OBJ_ID BIGINT,
    ROLE_ID SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE ATT_REGISTER_APPROVE (
    I$IDS VARCHAR(4000),
    I$USER_ID VARCHAR(40))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE ATT_REGISTER_DELETE (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE ATT_REGISTER_EXPLODE (
    I$OBJ_ID BIGINT,
    I$PREV_ID BIGINT,
    I$USER_ID VARCHAR(40))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE ATT_REGISTER_GET (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE ATT_REGISTER_LATE (
    I$PERIOD_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE ATT_REGISTER_MARK (
    I$OBJ_ID BIGINT,
    I$STUDENT_ID BIGINT,
    I$TEACHER_ID BIGINT,
    I$STATE SMALLINT,
    I$MARKVAL_ID BIGINT,
    I$USER_ID VARCHAR(40))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE ATT_REGISTER_MERGE (
    I$OBJ_ID BIGINT,
    I$SRC_ID BIGINT,
    I$USER_ID VARCHAR(40))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE ATT_REGISTER_REJECT (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    COMMENTS VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE ATT_REGISTER_SCHEDULE (
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE ATT_REGISTER_SILENT (
    I$GROUP_ID BIGINT,
    I$STAGE_ID BIGINT,
    I$SUBJECT_ID BIGINT,
    I$CONTROL_TYPE_ID BIGINT,
    I$SUBSTAGE_ID BIGINT,
    I$DATE DATE,
    I$PERIOD_TYPE BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    OBJ_ID BIGINT,
    SUBJECT_NAME VARCHAR(1000),
    SUBJECT_CODE VARCHAR(100),
    YEAR_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE ATT_REGISTER_STATE (
    I$OBJ_ID BIGINT,
    I$STATE_ID SMALLINT,
    I$USER_ID VARCHAR(40))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE ATT_REGISTER_STUDENTS (
    I$OBJ_ID BIGINT,
    I$STUDENTS VARCHAR(4000),
    I$USER_ID VARCHAR(40))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE ATT_REGISTER_TEACHERS (
    I$OBJ_ID BIGINT,
    I$TEACHERS VARCHAR(1000),
    I$USER_ID VARCHAR(40))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE ATT_REG_MARK_GET (
    I$REG_ID BIGINT,
    I$STUDENT_ID BIGINT,
    I$SUBJECT_ID BIGINT,
    I$STAGE_ID BIGINT,
    I$SUBSTAGE_ID SMALLINT,
    I$CONTROL_TYPE_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE ATT_REG_STUDENTS_LIST (
    I$OBJ_ID BIGINT,
    I$SUBJECT_ID BIGINT,
    I$STAGE_ID BIGINT,
    I$SUBSTAGE_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE ATT_REG_TEACHERS_LIST (
    I$SUBJECT_ID BIGINT,
    I$STAGE_ID BIGINT,
    I$GROUP_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE ATT_REG_WIZDATA (
    I$STAGE SMALLINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE ATT_SCHOOLAR_FIND (
    F VARCHAR(250),
    I VARCHAR(250),
    O VARCHAR(250),
    BIRTHDATE DATE)
RETURNS (
    SCHOOLAR_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE ATT_SUBJECT_GET (
    I$CLASS_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    SUBJECT_ID BIGINT,
    SUBJECT_CODE VARCHAR(250),
    SUBJECT VARCHAR(250),
    COMPONENT VARCHAR(250))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE ATT_VAL_AFTER (
    I$OBJ_ID BIGINT,
    I$PARAM_ID BIGINT,
    I$VAL VARCHAR(4000),
    I$IS_DEL SMALLINT,
    I$USER_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE BARBUTTONS_LIST (
    I$BAR_ID BIGINT,
    I$LANG_CODE CHAR(2) = 'RU')
RETURNS (
    BUTTON_ID BIGINT,
    BAR_ID BIGINT,
    SORT_ORDER SMALLINT,
    RES_ID BIGINT,
    BUTTON_CAPTION VARCHAR(4000),
    DO_FUNC VARCHAR(100),
    ICON_ID BIGINT,
    TAG VARCHAR(20),
    IS_DEL SMALLINT,
    LANG_CODE CHAR(2))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE BARBUTTON_ADD (
    I$BUTTON_ID BIGINT,
    I$BAR_ID BIGINT,
    I$RES_ID BIGINT,
    I$DO_FUNC VARCHAR(100),
    I$LANG_CODE CHAR(2),
    I$BUTTON_CAPTION VARCHAR(4000),
    I$TAG VARCHAR(20),
    I$ICON_ID BIGINT,
    I$IS_DEL SMALLINT = 0)
RETURNS (
    BUTTON_ID BIGINT,
    RES_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE BARBUTTON_MOVE (
    I$BUTTON_ID BIGINT,
    I$MOVE SMALLINT)
RETURNS (
    SORT_ORDER SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE BARS_LIST RETURNS (
    BAR_ID BIGINT,
    TAG VARCHAR(100),
    IS_DEL SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE BAR_ADD (
    I$BAR_ID BIGINT,
    I$TAG VARCHAR(100),
    I$IS_DEL SMALLINT = 0)
RETURNS (
    BAR_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE BLOBS_LIST RETURNS (
    BLOB_ID BIGINT,
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE BOOK_SRC_SUBJECT_LIST RETURNS (
    OBJ_ID BIGINT,
    OBJ_CAPTION VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE BOTAPI_IDENTIFY (
    I$ID VARCHAR(100),
    I$NAME VARCHAR(400),
    I$MESSAGE VARCHAR(1000),
    I$PHONENUM VARCHAR(100))
RETURNS (
    OBJ_ID BIGINT,
    TYPE_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE BOT_MESSAGES_GET RETURNS (
    CHAT_ID VARCHAR(40),
    MESSAGE_ID BIGINT,
    MESSAGE_TYPE VARCHAR(100),
    MESSAGE_TEXT VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE BOT_MESSAGE_CONFIRM (
    I$MESSAGE_TYPE VARCHAR(100),
    I$ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE BUILDER_ACCESS (
    TYPE_ID BIGINT,
    PARAM_ID BIGINT,
    LEVEL_ID BIGINT,
    OBJ_ID BIGINT,
    USER_ID BIGINT)
RETURNS (
    ENA SMALLINT,
    FUNC_TYPE VARCHAR(100),
    EDITABLE SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE BUILD_CURPLAN_HOURS (
    PLAN_ID BIGINT,
    STDPLAN_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE BUILD_FIO (
    I$F VARCHAR(400),
    I$I VARCHAR(400),
    I$O VARCHAR(400))
RETURNS (
    FULL_NAME VARCHAR(400))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE BUILD_REP_FIO (
    I$OBJ_ID BIGINT,
    I$F BIGINT,
    I$I BIGINT,
    I$O BIGINT,
    I$FULL SMALLINT = 1)
RETURNS (
    C1 VARCHAR(4000),
    F VARCHAR(250),
    I VARCHAR(250),
    O VARCHAR(250))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE BUILD_REP_PARENT_VAL (
    I$TYPE_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$PARAM_ID BIGINT)
RETURNS (
    V VARCHAR(4000),
    I BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE BVL_GIA_QUERY_REGION (
    I$DISTRICT_ID BIGINT = NULL,
    I$OU_GIA_CODE INTEGER = NULL,
    I$EXAM_CODE INTEGER = NULL,
    I$USER_ID BIGINT = NULL)
RETURNS (
    EXAM_CODE INTEGER,
    EXAM_STAGE VARCHAR(255),
    EXAM_TYPE VARCHAR(255),
    EXAM_SUBJECT VARCHAR(255),
    EXAM_DATE DATE,
    DISTRICT_ID BIGINT,
    DISTRICT_NAME VARCHAR(255),
    PUPIL_COUNT INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CALC_AGE (
    DATE_FROM TIMESTAMP,
    DATE_TO TIMESTAMP)
RETURNS (
    AGE SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CALC_JOB_OCCUPIED (
    I$JOB_ID BIGINT NOT NULL,
    I$SCH_ROW_ID BIGINT = null,
    I$SCH_RATE FLOAT = null)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE CALENDAR_PLAN_GET (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CAPTION_VIRTUAL_EXTERNAL_CLASS (
    I$OBJ_ID BIGINT,
    I$CAPTION VARCHAR(4000))
RETURNS (
    CAPTION VARCHAR(4000),
    SORT_ORDER SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CARDS_LIST_PERSONS (
    PARENT_ID BIGINT,
    PARENT_TYPE_ID BIGINT)
RETURNS (
    CAPTION VARCHAR(1000),
    OBJ_ID BIGINT,
    REG_ID VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CARDS_LIST_SUBS (
    PARENT_ID BIGINT,
    PARENT_TYPE_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    OBJ_TYPE SMALLINT,
    CAPTION VARCHAR(1000),
    GRADE_NAME VARCHAR(1000),
    SORT_ORDER DOUBLE PRECISION,
    CARD_ALLOWED SMALLINT,
    REG_ID VARCHAR(100),
    CARD_ID VARCHAR(100),
    CARD_DATE DATE,
    TEMP_CARD_ID VARCHAR(100),
    TEMP_CARD_DATE DATE)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CARDS_MAIN_REPORT (
    PARENT_ID BIGINT,
    PARENT_TYPE_ID BIGINT)
RETURNS (
    VAL VARCHAR(6000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CARDS_RETURN (
    I$OBJ_ID BIGINT,
    I$CARD_ID VARCHAR(100))
RETURNS (
    TMP INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CARDS_TAGS_REPORT (
    PARENT_ID BIGINT,
    PARENT_TYPE_ID BIGINT)
RETURNS (
    VAL VARCHAR(6000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CARDS_TAG_TEMPLATE (
    I$IS_LAST INTEGER = 1)
RETURNS (
    VAL VARCHAR(6000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CARD_TO_STR (
    I$CARD_ID VARCHAR(100))
RETURNS (
    VAL VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CARTOGRAPHY_DATA_EXPORT RETURNS (
    TAG_NAME VARCHAR(255),
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CEC_BROWSE (
    I$SUBJECT_ID BIGINT,
    I$GRADE_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CEC_BROWSE_ITEMS (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CEC_DELETE (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE CEC_DESCRIBE (
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CEC_DE_DELETE (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE CEC_DE_GET (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CEC_GET (
    I$OBJ_ID BIGINT,
    I$TYPE_ID SMALLINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CEC_ITEM_DE_SET (
    I$OBJ_ID BIGINT,
    I$TYPE_ID BIGINT,
    I$CODE VARCHAR(40),
    I$NAME VARCHAR(400),
    I$DESC VARCHAR(1000),
    I$MASTER_ID VARCHAR(200),
    I$STAGE_ID BIGINT,
    I$SUBJECT_ID BIGINT,
    I$UMK_NAME VARCHAR(400),
    I$AUTHOR_NAME VARCHAR(200),
    I$SOURCE_NAME VARCHAR(200),
    I$USER_ID VARCHAR(40))
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CEC_ITEM_SET (
    I$CEC_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40),
    I$DELETED SMALLINT,
    I$SORT_INDEX SMALLINT,
    I$CODE VARCHAR(40),
    I$NAME VARCHAR(400),
    I$DESC VARCHAR(1000),
    I$PARENT_ID BIGINT,
    I$MASTER_ID VARCHAR(200),
    I$STAGE_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CEC_SET (
    I$TYPE SMALLINT,
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40),
    I$NAME VARCHAR(400),
    I$SUBJECT_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CEC_USA_GET (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CERTIFICATE2_ADD (
    I$OBJ_ID BIGINT,
    I$PUPIL_ID BIGINT,
    I$NAME_FIRST VARCHAR(400),
    I$NAME_MID VARCHAR(400),
    I$NAME_LAST VARCHAR(400),
    I$BIRTH_DATE DATE,
    I$YEAR_ACCEPT SMALLINT,
    I$YEAR_LEAVE SMALLINT,
    I$SEX BIGINT,
    I$BLANK_STATE BIGINT,
    I$CERT_TYPE BIGINT,
    I$CERT_KIND BIGINT,
    I$STAGE_ID BIGINT,
    I$ISSUE_DATE DATE,
    I$CERT_SERIE VARCHAR(40),
    I$CERT_NUMBER VARCHAR(40),
    I$IS_OWN SMALLINT,
    I$ISSUED_BY VARCHAR(1000),
    I$PARENT_ID BIGINT,
    I$USER_ID BIGINT,
    I$SNILS VARCHAR(40),
    I$CITIZENSHIP BIGINT,
    I$BIRTH_PLACE VARCHAR(200),
    I$ORIG_SERIE VARCHAR(40),
    I$ORIG_NUMBER VARCHAR(40),
    I$ORIG_DATE DATE)
RETURNS (
    OBJ_ID BIGINT,
    STAGE_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CERTIFICATE2_DEL (
    I$OBJ_ID BIGINT,
    I$USER_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE CERTIFICATE2_LIST (
    I$STAGE_ID BIGINT,
    I$YEAR1 DATE,
    I$YEAR2 DATE,
    I$OBJ_ID BIGINT = null,
    I$NUMBER VARCHAR(100) = null)
RETURNS (
    OBJ_ID BIGINT,
    PUPIL_ID BIGINT,
    NAME_FIRST VARCHAR(400),
    NAME_MID VARCHAR(400),
    NAME_LAST VARCHAR(400),
    BIRTH_DATE DATE,
    YEAR_ACCEPT SMALLINT,
    YEAR_LEAVE SMALLINT,
    SEX BIGINT,
    SEX_NAME VARCHAR(20),
    BLANK_STATE BIGINT,
    BLANK_STATE_NAME VARCHAR(100),
    BLANK_STATE_NAME2 VARCHAR(100),
    CERT_TYPE BIGINT,
    CERT_TYPE_NAME VARCHAR(200),
    CERT_TYPE_NAME2 VARCHAR(200),
    CERT_KIND BIGINT,
    CERT_KIND_NAME VARCHAR(100),
    STAGE_ID BIGINT,
    STAGE_NAME VARCHAR(100),
    ISSUE_DATE DATE,
    CERT_SERIE VARCHAR(40),
    CERT_NUMBER VARCHAR(40),
    IS_OWN SMALLINT,
    ISSUED_BY VARCHAR(1000),
    SNILS VARCHAR(40),
    BIRTH_PLACE VARCHAR(200),
    CITIZENSHIP BIGINT,
    CITIZENSHIP_NAME VARCHAR(200),
    CITIZENSHIP_OUT VARCHAR(200),
    ORIGINAL_SERIE VARCHAR(40),
    ORIGINAL_NUMBER VARCHAR(40),
    ORIGINAL_DATE DATE,
    ORIG_TYPE_NAME VARCHAR(200),
    MISS_TEXT VARCHAR(10),
    REPL_TEXT VARCHAR(10))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CERTIFICATE2_YEARS RETURNS (
    Y INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CERTIFICATE_BASE_TMP_GET (
    I$TEMPLATE_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    TEMPLATE_ID BIGINT,
    STAGE_TYPE_ID BIGINT,
    TEMPLATE_TYPE_ID BIGINT,
    PRINT_TEMPLATE_ID BIGINT,
    TEMPLATE_NAME VARCHAR(255),
    TEMPLATE_DATA VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CERTIFICATE_CLASSES_LIST (
    I$STAGE_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    CLASS_ID BIGINT,
    CLASS_NAME VARCHAR(255))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CERTIFICATE_CLASS_ENABLED_GET (
    I$CLASS_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    ENABLED SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CERTIFICATE_CLASS_INFO_GET (
    I$YEAR SMALLINT,
    I$CLASS_ID BIGINT,
    I$STAGE_ID BIGINT,
    I$USER_ID BIGINT,
    I$BLANK_CHECK_FL INTEGER = 1)
RETURNS (
    CLASS_INFO_ID BIGINT,
    ORDER_ID BIGINT,
    CLASS_NAME VARCHAR(100),
    TMPL1 VARCHAR(255),
    TMPL2 VARCHAR(255),
    TMPL3 VARCHAR(255),
    TMPL4 VARCHAR(255),
    TMPL5 VARCHAR(255),
    PROF VARCHAR(200),
    DATEGEK DATE,
    PEK VARCHAR(100),
    KV VARCHAR(200),
    UO VARCHAR(100),
    SROK VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CERTIFICATE_CLASS_INFO_SET (
    I$CLASS_ID BIGINT,
    I$USER_ID BIGINT,
    I$CLASS_INFO_ID BIGINT,
    I$ORDER_ID BIGINT,
    I$TMPL1 VARCHAR(255),
    I$TMPL2 VARCHAR(255),
    I$TMPL3 VARCHAR(255),
    I$TMPL4 VARCHAR(255),
    I$TMPL5 VARCHAR(255),
    I$PROF VARCHAR(200),
    I$DATEGEK DATE,
    I$PEK VARCHAR(100),
    I$KV VARCHAR(200),
    I$UO VARCHAR(100),
    I$SROK VARCHAR(100))
RETURNS (
    CLASS_INFO_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CERTIFICATE_CLASS_LOAD_SUBJECTS (
    I$STAGE_ID BIGINT,
    I$CLASS_ID BIGINT,
    I$USER_ID BIGINT,
    I$PUPIL_ID BIGINT = null)
RETURNS (
    C_SUBJECT_ID BIGINT,
    INCLUDING_TYPE_ID BIGINT,
    SUBJECT_ID BIGINT,
    SUBJECT_NAME VARCHAR(1000),
    MARK VARCHAR(255),
    IS_BASE SMALLINT,
    IS_PLAN SMALLINT,
    SORT_ORDER INTEGER,
    SUBJECT_LOAD VARCHAR(10),
    REC_MARK DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CERTIFICATE_CLASS_LOAD_SUBJ_SET (
    I$CLASS_ID BIGINT,
    I$USER_ID BIGINT,
    I$C_SUBJECT_ID BIGINT,
    I$INCLUDING_TYPE_ID BIGINT,
    I$SUBJECT_ID BIGINT,
    I$SORT_ORDER INTEGER,
    I$SUBJECT_LOAD VARCHAR(100))
RETURNS (
    C_SUBJECT_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CERTIFICATE_CLASS_SUBJECT_LIST (
    I$STAGE_ID BIGINT,
    I$CLASS_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    C_SUBJECT_ID BIGINT,
    C_SUBJECT_NAME VARCHAR(1000),
    SUBJECT_ID BIGINT,
    SUBJECT_NAME VARCHAR(1000),
    SUBJECT_TYPE BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CERTIFICATE_CLASS_SUBJECT_SET (
    I$CLASS_ID BIGINT,
    I$C_SUBJECT_ID BIGINT,
    I$SUBJECT_ID BIGINT,
    I$USER_ID BIGINT,
    I$C_SUBJECT_NAME VARCHAR(1000))
RETURNS (
    C_SUBJECT_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CERTIFICATE_DIR_FORM_MASTER_GET (
    I$STAGE_ID BIGINT,
    I$CLASS_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    FORM_MASTER_FIO VARCHAR(1000),
    DIRECTOR_POST VARCHAR(1000),
    DIRECTOR_FIO VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CERTIFICATE_DUPL_PUPIL_ADD (
    I$LASTNAME VARCHAR(255),
    I$FIRSTNAME VARCHAR(255),
    I$MIDDLENAME VARCHAR(255),
    I$DOB DATE,
    I$YEARTOGO INTEGER,
    I$STAGE_ID BIGINT,
    I$USER_ID BIGINT = 1)
RETURNS (
    PUPIL_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CERTIFICATE_DUPL_PUPIL_LIST (
    I$LASTNAME CHAR(255),
    I$FIRSTNAME VARCHAR(255),
    I$MIDDLENAME VARCHAR(255),
    I$DOB DATE,
    I$YEARTOGO INTEGER,
    I$STAGE_ID BIGINT,
    I$USER_ID BIGINT = 1)
RETURNS (
    CLASS_ID BIGINT,
    PUPIL_ID BIGINT,
    LASTNAME CHAR(255),
    FIRSTNAME VARCHAR(255),
    MIDDLENAME VARCHAR(255),
    PUPIL_FIO VARCHAR(1000),
    CLASS_NAME VARCHAR(255),
    DOB DATE,
    YEARTOGO INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CERTIFICATE_FORM_SET (
    I$STAGE_ID BIGINT,
    I$USER_ID BIGINT,
    I$FORM_ID BIGINT,
    I$FORM_TYPE_ID BIGINT,
    I$FORM_SERIA VARCHAR(10),
    I$FORM_FIRST_NUMBER VARCHAR(255),
    I$FORM_LAST_NUMBER VARCHAR(255),
    I$FORM_RECEIVE_DATE DATE,
    I$FORM_SUPPLIER VARCHAR(255))
RETURNS (
    FORM_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CERTIFICATE_OBJECT_GET (
    I$OBJ_ID BIGINT)
RETURNS (
    STAGE_ID BIGINT,
    STAGE_TYPE_ID BIGINT,
    CLASS_ID BIGINT,
    PUPIL_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CERTIFICATE_OO_DEF_PARAM_GET (
    I$PARAM_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    DEFAULT_VALUE VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CERTIFICATE_OO_SETTINGS_GET (
    I$OBJ_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    FULL_NAME VARCHAR(1000),
    FULL_NAME_PRINT VARCHAR(1000),
    FULL_NAME_PRINT2 VARCHAR(1000),
    OO_PLACE VARCHAR(255),
    DIRECTOR_FIO VARCHAR(1000),
    DIRECTOR_JOB BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CERTIFICATE_OO_SETTINGS_SET (
    I$OBJ_ID BIGINT,
    I$FULL_NAME VARCHAR(1000),
    I$FULL_NAME_PRINT VARCHAR(1000),
    I$FULL_NAME_PRINT2 VARCHAR(1000),
    I$OO_PLACE VARCHAR(255),
    I$DIRECTOR_FIO VARCHAR(1000),
    I$DIRECTOR_JOB BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CERTIFICATE_PUPIL_ENABLED_GET (
    I$PUPIL_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    ENABLED SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CERTIFICATE_PUPIL_INFO_GET (
    I$YEAR BIGINT,
    I$STAGE_ID BIGINT,
    I$PUPIL_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    PUPIL_INFO_ID BIGINT,
    ORDER_ID BIGINT,
    CERTIFICATE_TYPE_ID BIGINT,
    ORDER_DATE DATE,
    GIVE_DATE DATE,
    GRADUATE_YEAR INTEGER,
    FORM_ID BIGINT,
    FORM_SERIA VARCHAR(10),
    FORM_NUMBER VARCHAR(10),
    FIO VARCHAR(1000),
    DOB DATE,
    ORDER_NUMBER VARCHAR(255),
    TMPL1 VARCHAR(255),
    TMPL2 VARCHAR(255),
    TMPL3 VARCHAR(255),
    TMPL4 VARCHAR(255),
    TMPL5 VARCHAR(255),
    HAS_GARBAGE_FORM SMALLINT,
    PROF VARCHAR(200),
    DATEGEK DATE,
    PEK VARCHAR(200),
    REGNO VARCHAR(10),
    KV VARCHAR(200),
    UO VARCHAR(100),
    OLDSERT VARCHAR(100),
    SROK VARCHAR(100),
    F VARCHAR(100),
    I VARCHAR(50),
    O VARCHAR(50))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CERTIFICATE_PUPIL_INFO_READ (
    I$BOOK_REC_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    PUPIL_INFO_ID BIGINT,
    ORDER_ID BIGINT,
    CERTIFICATE_TYPE_ID BIGINT,
    ORDER_DATE DATE,
    GIVE_DATE DATE,
    GRADUATE_YEAR INTEGER,
    FORM_ID BIGINT,
    FORM_SERIA VARCHAR(10),
    FORM_NUMBER VARCHAR(10),
    FIO VARCHAR(1000),
    DOB DATE,
    TMPL1 VARCHAR(255),
    TMPL2 VARCHAR(255),
    TMPL3 VARCHAR(255),
    TMPL4 VARCHAR(255),
    TMPL5 VARCHAR(255),
    PROF VARCHAR(200),
    DATEGEK DATE,
    PEK VARCHAR(100),
    REGNO VARCHAR(10),
    KV VARCHAR(200),
    UO VARCHAR(100),
    OLDSERT VARCHAR(100),
    SROK VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CERTIFICATE_PUPIL_INFO_SET (
    I$PUPIL_ID BIGINT,
    I$USER_ID BIGINT,
    I$PUPIL_INFO_ID BIGINT,
    I$ORDER_ID BIGINT,
    I$CERTIFICATE_TYPE_ID BIGINT,
    I$ORDER_DATE DATE,
    I$GIVE_DATE DATE,
    I$GRADUATE_YEAR SMALLINT,
    I$REPLACE_GRADUATE_YEAR SMALLINT,
    I$FIO VARCHAR(1000),
    I$DOB DATE,
    I$TMPL1 VARCHAR(255),
    I$TMPL2 VARCHAR(255),
    I$TMPL3 VARCHAR(255),
    I$TMPL4 VARCHAR(255),
    I$TMPL5 VARCHAR(255),
    I$PROF VARCHAR(200),
    I$GEKDATE DATE,
    I$PEK VARCHAR(200),
    I$REGNO VARCHAR(10),
    I$KV VARCHAR(200),
    I$UO VARCHAR(100),
    I$OLDSERT VARCHAR(100),
    I$SROK VARCHAR(100))
RETURNS (
    PUPIL_INFO_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CERTIFICATE_PUPIL_LIST (
    I$CLASS_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    PUPIL_ID BIGINT,
    PUPIL_FIO VARCHAR(1000),
    PUPIL_FIRSTNAME VARCHAR(255),
    PUPIL_MIDDLENAME VARCHAR(255),
    PUPIL_LASTNAME VARCHAR(255))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CERTIFICATE_PUPIL_LOAD_SUBJECTS (
    I$YEAR SMALLINT,
    I$STAGE_ID BIGINT,
    I$CLASS_ID BIGINT,
    I$PUPIL_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    P_SUBJECT_ID BIGINT,
    INCLUDING_TYPE_ID BIGINT,
    SUBJECT_ID BIGINT,
    SUBJECT_NAME VARCHAR(1000),
    MARK VARCHAR(255),
    MARK_YEAR VARCHAR(255),
    MARK_FIN VARCHAR(255),
    MARK_GIA VARCHAR(255),
    IS_BASE SMALLINT,
    IS_PLAN SMALLINT,
    SORT_ORDER INTEGER,
    SUBJECT_LOAD VARCHAR(10),
    REC_MARK DOUBLE PRECISION,
    PROJECT_THEME VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CERTIFICATE_PUPIL_LOAD_SUBJ_SET (
    I$YEAR BIGINT,
    I$PUPIL_ID BIGINT,
    I$USER_ID BIGINT,
    I$P_SUBJECT_ID BIGINT,
    I$INCLUDING_TYPE_ID BIGINT,
    I$SUBJECT_ID BIGINT,
    I$MARK VARCHAR(255),
    I$SORT_ORDER INTEGER,
    I$MARK_PARAM_ID BIGINT = 1870,
    I$SUBJECT_LOAD VARCHAR(100) = '')
RETURNS (
    P_SUBJECT_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CERTIFICATE_PUPIL_SUBJECT_LIST (
    I$YEAR SMALLINT,
    I$STAGE_ID BIGINT,
    I$CLASS_ID BIGINT,
    I$PUPIL_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    P_SUBJECT_ID BIGINT,
    P_SUBJECT_NAME VARCHAR(1000),
    SUBJECT_ID BIGINT,
    SUBJECT_NAME VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CERTIFICATE_PUPIL_SUBJECT_SET (
    I$YEAR SMALLINT,
    I$PUPIL_ID BIGINT,
    I$P_SUBJECT_ID BIGINT,
    I$SUBJECT_ID BIGINT,
    I$USER_ID BIGINT,
    I$P_SUBJECT_NAME VARCHAR(1000))
RETURNS (
    P_SUBJECT_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CERTIFICATE_PUPIL_TEMPLATES_GET (
    I$YEAR BIGINT,
    I$STAGE_ID BIGINT,
    I$PUPIL_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    NUM BIGINT,
    PRINT_TEMPLATE_ID BIGINT,
    TEMPLATE_DATA VARCHAR(4000),
    TEMPLATE_NAME VARCHAR(1000),
    TEMPLATE_TYPE_ID BIGINT,
    TEMPLATE_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CERTIFICATE_REG_CLASSES_LIST (
    I$YEAR SMALLINT,
    I$STAGE_ID BIGINT,
    I$BLANK_CHECK_FL SMALLINT = 1)
RETURNS (
    OBJ_ID BIGINT,
    OBJ_CAPTION VARCHAR(4000),
    SORT_ORDER DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CERTIFICATE_REG_CLASS_GET (
    I$YEAR SMALLINT,
    I$CLASS_ID BIGINT,
    I$STAGE_ID BIGINT,
    I$USER_ID BIGINT,
    I$STATUS_FILTER BIGINT = 0)
RETURNS (
    NUMBER VARCHAR(50),
    VID VARCHAR(50),
    SN VARCHAR(50),
    FIO VARCHAR(50),
    DATEBIRTH VARCHAR(20),
    DATEORDER VARCHAR(20),
    NUMBERORDER VARCHAR(20),
    POLUCH VARCHAR(50),
    DATEVID VARCHAR(20),
    STATUS VARCHAR(20),
    DATERECORD VARCHAR(20),
    CLASS_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CERTIFICATE_REG_CLASS_PRIL_GET (
    I$YEAR SMALLINT,
    I$STAGE_ID BIGINT,
    I$CLASS_ID BIGINT,
    I$USER_ID BIGINT,
    I$ATTESTAT_PRINTED SMALLINT = 0)
RETURNS (
    SN VARCHAR(20),
    FIO VARCHAR(255),
    CLASS_NAME VARCHAR(1000),
    SUBJECTSLEFT VARCHAR(1000),
    SUBJECTSRIGHT VARCHAR(1000),
    MARKSLEFT VARCHAR(1000),
    MARKSRIGHT VARCHAR(1000),
    DOPOLSVED VARCHAR(4000),
    FIOSHORT VARCHAR(255),
    DOB VARCHAR(50),
    CTFIO VARCHAR(255))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CERTIFICATE_REG_DUPL_INFO_GET (
    I$OBJ_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    ORI_UNUMBER VARCHAR(10),
    ORI_DATEVID VARCHAR(20),
    ORI_KSNB VARCHAR(20),
    DUP_NUMORDER VARCHAR(20),
    DUP_DATEORDER VARCHAR(20),
    DUP_DATEVID VARCHAR(20),
    DUP_KSNB VARCHAR(50),
    DUP_OWNER VARCHAR(50),
    DUP_RECEIVER VARCHAR(50))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CERTIFICATE_REG_LIST (
    I$YEAR BIGINT,
    I$CLASS_ID BIGINT,
    I$STAGE_ID BIGINT,
    I$USER_ID BIGINT = 1,
    I$DATA_FL SMALLINT = 1,
    I$STATUS_FILTER SMALLINT = 0)
RETURNS (
    OBJ_ID BIGINT,
    PUPIL_ID BIGINT,
    VAL1 INTEGER,
    VAL2 VARCHAR(30),
    VAL3 VARCHAR(30),
    VAL4 VARCHAR(1000),
    VAL5 DATE,
    VAL6 DATE,
    VAL7 VARCHAR(255),
    VAL8 VARCHAR(255),
    VAL9 DATE,
    VAL11 VARCHAR(255),
    VAL12 DATE,
    GRADUATE_YEAR INTEGER,
    BLANK_ID BIGINT,
    FORM_USE_TYPE_ID BIGINT,
    CLASS_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CERTIFICATE_REG_PUPIL_CLASS_GET (
    I$PUPIL_ID BIGINT,
    I$CERTIFICATE_REG_DATE DATE)
RETURNS (
    OBJ_ID BIGINT,
    OBJ_CAPTION VARCHAR(4000),
    SORT_ORDER DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CERTIFICATE_REG_TITUL_INFO_GET (
    I$STAGE_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    NAMEOU VARCHAR(2000),
    TYPEOBR VARCHAR(200),
    "YEAR" VARCHAR(200),
    RUKFIO VARCHAR(200))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CERTIFICATE_REG_YEARS_LIST (
    I$STAGE_ID BIGINT,
    I$BLANK_CHECK_FL SMALLINT = 1)
RETURNS (
    "YEAR" SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CERTIFICATE_SN_GET (
    I$OBJ_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    S VARCHAR(10),
    N VARCHAR(20))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CERTIFICATE_STAGES_LIST (
    I$OBJ_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    STAGE_ID BIGINT,
    STAGE_TYPE_ID BIGINT,
    STAGE_NAME VARCHAR(255))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CERTIFICATE_STAGE_SUBJECT_LIST (
    I$STAGE_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    S_SUBJECT_ID BIGINT,
    S_SUBJECT_NAME VARCHAR(1000),
    SUBJECT_ID BIGINT,
    SUBJECT_NAME VARCHAR(1000),
    SUBJECT_TYPE BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CERTIFICATE_STAGE_SUBJECT_SET (
    I$STAGE_ID BIGINT,
    I$S_SUBJECT_ID BIGINT,
    I$SUBJECT_ID BIGINT,
    I$USER_ID BIGINT,
    I$S_SUBJECT_NAME VARCHAR(1000))
RETURNS (
    S_SUBJECT_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CERTIFICATE_SUBJECT_LIST (
    I$PARENT_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    SUBJECT_ID BIGINT,
    SUBJECT_NAME VARCHAR(1000),
    SUBJECT_TYPE BIGINT,
    TYPE_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CERTIFICATE_SUBJECT_MAP_SET (
    I$OBJ_ID BIGINT,
    I$MAP VARCHAR(4000),
    I$USER_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE CERTIFICATE_SUBJECT_SET (
    I$PARENT_ID BIGINT NOT NULL,
    I$SUBJECT_ID BIGINT NOT NULL,
    I$ALT_NAME VARCHAR(1000))
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CERTIFICATE_TEMPLATES_LIST (
    I$STAGE_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    STAGE_ID BIGINT,
    STAGE_TEMPLATE_ID BIGINT,
    TEMPLATE_ID BIGINT,
    STAGE_TYPE_ID BIGINT,
    TEMPLATE_TYPE_ID BIGINT,
    PRINT_TEMPLATE_ID BIGINT,
    TEMPLATE_NAME VARCHAR(255),
    TEMPLATE_DATA VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CERTIFICATE_TEMPLATES_SET (
    I$STAGE_ID BIGINT,
    I$USER_ID BIGINT,
    I$STAGE_TEMPLATE_ID BIGINT,
    I$TEMPLATE_ID BIGINT,
    I$STAGE_TYPE_ID BIGINT,
    I$TEMPLATE_TYPE_ID BIGINT,
    I$TEMPLATE_NAME VARCHAR(255),
    I$TEMPLATE_DATA VARCHAR(4000))
RETURNS (
    STAGE_TEMPLATE_ID BIGINT,
    TEMPLATE_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CERTIFICATE_TYPES_LIST (
    I$STAGE_TYPE_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    CERTIFICATE_TYPE_ID BIGINT,
    CERTIFICATE_TYPE_NAME VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CERT_PUPIL_FINAL_MARKS (
    I$PUPIL_ID BIGINT,
    I$YEAR SMALLINT)
RETURNS (
    YEAR_VAL SMALLINT,
    SUBJECT_ID BIGINT,
    SUBJECT_NAME VARCHAR(1000),
    MARKTYPE_ID BIGINT,
    MARKTYPE_NAME VARCHAR(100),
    MARKVAL_ID BIGINT,
    MARK_VAL VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CERT_PUPIL_LOAD_SUBJECTS (
    I$YEAR SMALLINT,
    I$STAGE_ID BIGINT,
    I$CLASS_ID BIGINT,
    I$PUPIL_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    P_SUBJECT_ID BIGINT,
    INCLUDING_TYPE_ID BIGINT,
    SUBJECT_ID BIGINT,
    SUBJECT_NAME VARCHAR(1000),
    MARK VARCHAR(255),
    MARK_YEAR VARCHAR(255),
    MARK_FIN VARCHAR(255),
    MARK_GIA VARCHAR(255),
    IS_BASE SMALLINT,
    IS_PLAN SMALLINT,
    SORT_ORDER INTEGER,
    SUBJECT_LOAD VARCHAR(100),
    REC_MARK DOUBLE PRECISION,
    PROJECT_THEME VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CERT_STUDY_PUPIL_LOAD_SUBJECTS (
    I$YEAR SMALLINT,
    I$PUPIL_ID BIGINT,
    I$CLASS_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    P_SUBJECT_ID BIGINT,
    INCLUDING_TYPE_ID BIGINT,
    SUBJECT_ID BIGINT,
    SUBJECT_NAME VARCHAR(1000),
    MARK_YEAR VARCHAR(255),
    MARK_FIN VARCHAR(255),
    MARK_GIA VARCHAR(255),
    IS_BASE SMALLINT,
    IS_PLAN SMALLINT,
    SORT_ORDER INTEGER,
    YEAR_VAL VARCHAR(100),
    YEAR_COST INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CERT_STUDY_REG_CLASS_GET (
    I$YEAR SMALLINT,
    I$CLASS_ID BIGINT,
    I$STAGE_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    NUMBER VARCHAR(50),
    FIO VARCHAR(50),
    DATEBIRTH VARCHAR(20),
    POLUCH VARCHAR(50),
    DATEVID VARCHAR(20),
    DATERECORD VARCHAR(20),
    CLASS_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CERT_STUDY_REG_CLASS_PRIL_GET (
    I$YEAR SMALLINT,
    I$STAGE_ID BIGINT,
    I$CLASS_ID BIGINT,
    I$USER_ID BIGINT,
    I$ATTESTAT_PRINTED SMALLINT = 0)
RETURNS (
    SN VARCHAR(20),
    FIO VARCHAR(255),
    CLASS_NAME VARCHAR(1000),
    SUBJECTSLEFT VARCHAR(1000),
    SUBJECTSRIGHT VARCHAR(1000),
    MARKSLEFT VARCHAR(1000),
    MARKSRIGHT VARCHAR(1000),
    DOPOLSVED VARCHAR(4000),
    FIOSHORT VARCHAR(255),
    DOB VARCHAR(50),
    CTFIO VARCHAR(255))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CERT_STUDY_REG_LIST (
    I$YEAR BIGINT,
    I$CLASS_ID BIGINT,
    I$STAGE_ID BIGINT,
    I$USER_ID BIGINT = 1)
RETURNS (
    OBJ_ID BIGINT,
    PUPIL_ID BIGINT,
    DOC_ID BIGINT,
    VAL1 VARCHAR(100),
    VAL4 VARCHAR(1000),
    VAL5 DATE,
    VAL8 VARCHAR(255),
    VAL9 DATE,
    VAL12 DATE,
    GRADUATE_YEAR INTEGER,
    CLASS_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CHANGER_CLASSES_LIST (
    I$USER_ID BIGINT)
RETURNS (
    STAGE_ID BIGINT,
    STAGE_TYPE_ID BIGINT,
    STAGE_KIND BIGINT,
    GRADE_ID BIGINT,
    GRADE_TYPE BIGINT,
    GRADE_TYPE_NAME VARCHAR(100),
    CLASS_ID BIGINT,
    CLASS_TYPE_ID BIGINT,
    CLASS_CAPTION VARCHAR(100),
    CLASS_NAME VARCHAR(100),
    CLASS_TYPE BIGINT,
    CLASS_TYPE_NAME VARCHAR(100),
    CLASS_OUT BIGINT,
    GLOBAL_TYPE VARCHAR(10),
    CLASS_SORT_ORDER DOUBLE PRECISION,
    STAGE_SORT_ORDER DOUBLE PRECISION,
    GRADE_SORT_ORDER DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CHANGER_CLASS_ADD (
    I$GRADE_ID BIGINT,
    I$CLASS_NAME VARCHAR(4000),
    I$CLASS_TYPE BIGINT,
    I$USER_ID BIGINT = null)
RETURNS (
    CLASS_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CHANGER_CLASS_NEXT (
    I$CLASS_ID BIGINT,
    I$GRADE_ID BIGINT,
    I$NEXT_GRADE_ID BIGINT,
    I$CLASS_NAME VARCHAR(4000),
    I$CLASS_TYPE BIGINT,
    I$ACTION_DATE DATE,
    I$ORDER_NUMBER VARCHAR(4000),
    I$ORDER_DATE DATE,
    I$USER_ID BIGINT = null)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE CHANGER_CLEAR_ALL
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE CHANGER_CLEAR_ENTRANCE_GRADES
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE CHANGER_CREATE_GUP (
    PLAN_ID BIGINT,
    GRADE_ID BIGINT,
    GUP_NAME VARCHAR(1000))
RETURNS (
    GUP_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CHANGER_DELETING_PLANS_LIST RETURNS (
    PLAN_ID BIGINT,
    CAPTION VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CHANGER_GRADES_LIST (
    I$USER_ID BIGINT)
RETURNS (
    STAGE_ID BIGINT,
    STAGE_TYPE_ID BIGINT,
    STAGE_KIND BIGINT,
    GRADE_ID BIGINT,
    GRADE_TYPE_ID BIGINT,
    GRADE_CAPTION VARCHAR(4000),
    GRADE_NAME VARCHAR(255),
    GLOBAL_TYPE VARCHAR(10),
    SORT_ORDER DOUBLE PRECISION,
    STAGE_SORT_ORDER DOUBLE PRECISION,
    TAG VARCHAR(100),
    HIDDEN SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CHANGER_GRADE_ADD (
    I$STAGE_ID BIGINT,
    I$GRADE_TYPE_ID BIGINT,
    I$USER_ID BIGINT = null)
RETURNS (
    GRADE_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CHANGER_MONITORING_CLEANUP
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE CHANGER_MONITORING_PROCCESS (
    I$ACTION_DATE DATE,
    I$USER_ID BIGINT)
RETURNS (
    TAG VARCHAR(400),
    VAL VARCHAR(6000),
    DEST_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CHANGER_PARALLEL_FIXER
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE CHANGER_PCLASSES_LIST (
    I$USER_ID BIGINT)
RETURNS (
    CLASS_ID BIGINT,
    ENTRANCE_ID BIGINT,
    CLASS_CAPTION VARCHAR(4000),
    CLASS_NAME VARCHAR(4000),
    SORT_ORDER DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CHANGER_PUPIL_GIA_OUT
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE CHANGER_PUPIL_OUT (
    I$PUPIL_ID BIGINT,
    I$ACTION_DATE DATE,
    I$ORDER_NUMBER VARCHAR(4000),
    I$ORDER_DATE DATE,
    I$USER_ID BIGINT = null)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE CHANGER_STAGES_LIST RETURNS (
    STAGE_ID BIGINT,
    STAGE_KIND BIGINT,
    STAGE_TYPE_ID BIGINT,
    STAGE_CAPTION VARCHAR(4000),
    SORT_ORDER DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CHANGE_PROCESS_ORDERS
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE CHECK_ACTIVE_DOCUMENTS (
    I$OBJ_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE CHECK_CURRICULUM_LIST (
    I$CURRICULUM_ID BIGINT,
    I$IS_PROFILE SMALLINT)
RETURNS (
    OBJ_ID BIGINT,
    PARENT_ID BIGINT,
    OBJ_CAPTION VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CHECK_DIRECTOR_EXISTS (
    SCHOOL_ID BIGINT)
RETURNS (
    IS_EXISTS SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CHECK_EMPLOYEE_TEACHING_IS_LEFT (
    I$MOVEMENT_ID BIGINT NOT NULL,
    I$EMPLOYEE_ID BIGINT NOT NULL,
    I$SECTION_ID BIGINT,
    I$NEW_JOB_ID BIGINT)
RETURNS (
    TEACHING_IS_LEFT SMALLINT,
    POST_IS_LEFT SMALLINT,
    DIVISION_POST_IS_LEFT SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CHECK_EMPL_MENTOR (
    I$OBJ_ID BIGINT,
    I$PARAM_ID BIGINT,
    I$PARAM_VAL VARCHAR(4000),
    I$IS_DEL SMALLINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE CHECK_INN (
    S VARCHAR(1000))
RETURNS (
    IS_REAL SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CHECK_MEDAL_ALLOW (
    I$OBJ_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE CHECK_OGRN (
    S VARCHAR(1000))
RETURNS (
    IS_REAL SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CHECK_OP_PLAN_EXISTS (
    OP_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE CHECK_ORDERS (
    I$PERSON_ID BIGINT,
    I$ORDER_TYPE BIGINT = NULL,
    I$EXCLUDE_TYPE BIGINT = NULL)
RETURNS (
    ORDER_ID BIGINT,
    ORDER_TYPE BIGINT,
    MEDAL BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CHECK_PLAN_STAGE (
    I$OBJ_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE CHECK_PLAN_STATUS_CANCHANGE (
    PLAN_ID BIGINT,
    I$STATE_ID BIGINT = NULL,
    I$PARAM_ID BIGINT = NULL)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE CHECK_SNILS (
    S VARCHAR(1000))
RETURNS (
    IS_REAL SMALLINT,
    SNILS_CHECKSUM VARCHAR(2))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CHECK_UNIQUE_DIVS (
    DIV_ID BIGINT,
    SUBJECT_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE CHECK_USER_PWD (
    I$USER_ID BIGINT,
    I$PWD VARCHAR(100),
    I$PWD2 VARCHAR(200) = NULL)
RETURNS (
    IS_REAL SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2022_DO2_LINKS
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE CJ2_ALIASES_GET (
    I$CJ_ID BIGINT,
    I$USER_ID VARCHAR(40),
    I$ZONE SMALLINT = 0)
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_ALIAS_SET (
    I$CJ_ID BIGINT,
    I$STUDENT_ID BIGINT,
    I$TEXT VARCHAR(1000),
    I$USER_ID VARCHAR(40))
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_ASST_LIST (
    I$YEAR_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_ASST_SET (
    I$YEAR_ID BIGINT NOT NULL,
    I$STAGE_ID BIGINT,
    I$SUBJECT_ID BIGINT,
    I$GRADE_ID BIGINT,
    I$ASST_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_ASST_VERIFY (
    I$YEAR_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_AUDIT_ACCESS (
    I$USER_ID VARCHAR(40))
RETURNS (
    FILTER_OWNER BIGINT,
    FILTER_TEACHER BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_AUDIT_DELETE (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_AUDIT_GET (
    I$OBJ_ID BIGINT,
    I$CJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_AUDIT_SET (
    I$OBJ_ID BIGINT,
    I$CJ_ID BIGINT,
    I$TEACHER_ID BIGINT,
    I$MSG_TEXT VARCHAR(1000),
    I$FLAGS SMALLINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_AUDIT_STATUS (
    I$STATUS SMALLINT)
RETURNS (
    VAL VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_AUDIT_TEST (
    I$USER_ID VARCHAR(40))
RETURNS (
    TO_ME SMALLINT,
    FROM_ME SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_AVMEMBERS_LIST (
    I$JT_ID BIGINT,
    I$USER_ID BIGINT,
    I$GROUP_ID BIGINT = null,
    I$SUBJECT_ID BIGINT = null,
    I$GPP_ID BIGINT = null)
RETURNS (
    OBJ_ID BIGINT,
    OBJ_NAME VARCHAR(1000),
    OBJ_TYPE_ID BIGINT,
    GROUP_ID BIGINT,
    STAGE_INDEX BIGINT,
    SEX BIGINT,
    LISTED SMALLINT,
    GUP_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_CC_LIST (
    I$YEAR_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_CC_SET (
    I$YEAR_ID BIGINT NOT NULL,
    I$LEVEL_ID BIGINT,
    I$CONTROL_TYPE_ID BIGINT NOT NULL,
    I$COST FLOAT,
    I$USER_ID VARCHAR(40))
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_CC_VERIFY (
    I$YEAR_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_CJ_LIST_PTP (
    I$CJ_ID BIGINT,
    I$TYPE INTEGER,
    I$SUBJECT_ID BIGINT,
    I$STAGE_INDEX BIGINT,
    I$STAGE_MASK BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_CLASS_JOURNALS (
    I$CLASS_ID BIGINT,
    I$DATE_FROM DATE,
    I$DATE_TO DATE,
    I$USER_ID VARCHAR(40))
RETURNS (
    GRADE_ID BIGINT,
    CJ_ID BIGINT,
    SUBJECT_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_DESCRIBE (
    I$USER_ID VARCHAR(40),
    I$APP VARCHAR(100) = NULL)
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_EXT_CONTROLS (
    I$LESSON_ID BIGINT,
    I$STAGE_ID BIGINT,
    I$DATE TIMESTAMP)
RETURNS (
    CONTROL_ID BIGINT,
    MARK_SYSTEM_ID BIGINT,
    EXT_ID VARCHAR(100),
    TEACHER_ID BIGINT,
    GRADE_ID BIGINT,
    GRADE_TYPE_ID BIGINT,
    MEMBERS VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_EXT_UPDATE_MARK (
    I$GRADE_ID BIGINT,
    I$EXT_ID VARCHAR(100),
    I$STUDENT_ID VARCHAR(100),
    I$MARK INTEGER,
    I$MAX_MARK INTEGER,
    I$USER_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_FILE_VERIFY (
    I$LESSON_ID BIGINT,
    I$FILE_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    FILE_NAME VARCHAR(4000),
    FILE_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_FULL_NAME (
    I$CJ_ID BIGINT)
RETURNS (
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_GPP_COPY_LIST (
    I$OBJ_ID BIGINT,
    I$TYPE_ID INTEGER,
    I$SUBJECT_ID BIGINT,
    I$STAGE_INDEX BIGINT,
    I$STAGE_MASK INTEGER,
    I$NAME VARCHAR(400),
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_GRADE_ACCESS (
    I$GRADE_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    ACCESS_LEVEL INTEGER,
    IS_ADMIN SMALLINT,
    USER_ID BIGINT,
    TEACHER_ID BIGINT,
    USER_TYPE SMALLINT,
    IS_CLASSMATE SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_GROUPS_LIST (
    I$JT_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    GROUP_ID BIGINT,
    GROUP_NAME VARCHAR(1000),
    GROUP_TYPE_ID BIGINT,
    SORT_INDEX DOUBLE PRECISION,
    STAGE_INDEX BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_HOMEWORK_ADD (
    I$LESSON_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$LESSON_DATE DATE,
    I$TEXT VARCHAR(1000),
    I$STUDENT_IDS VARCHAR(2000),
    I$DST_DATE DATE,
    I$DST_LESSON_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_JOURNAL_ACCESS (
    I$USER_ID VARCHAR(40),
    I$CJ_ID BIGINT)
RETURNS (
    ACCESS_LEVEL INTEGER,
    TEACHER_ID BIGINT,
    USER_TYPE INTEGER,
    USER_ID BIGINT,
    IS_CLASSMATE SMALLINT,
    IS_ADMIN SMALLINT,
    IS_SUBST SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_JOURNAL_ACCESS_ADD (
    I$CJ_ID BIGINT,
    I$USER BIGINT,
    I$ACCESS SMALLINT,
    I$USER_ID VARCHAR(40))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE CJ2_JOURNAL_ACCESS_UPD (
    I$CJ_ID BIGINT,
    I$USER_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE CJ2_JOURNAL_ADD (
    I$OBJ_ID BIGINT,
    I$JOURNAL_TYPE SMALLINT NOT NULL,
    I$GRADE_ID BIGINT,
    I$GRADE_TYPE_ID BIGINT,
    I$SUBJECT_ID BIGINT,
    I$TEACHER_ID BIGINT,
    I$JOURNAL_NAME VARCHAR(1000),
    I$STAGE_INDEX INTEGER,
    I$USER_ID VARCHAR(40) = NULL,
    I$STAGE_MASK BIGINT = 0,
    I$REF_ID BIGINT = NULL,
    I$YEAR_ID BIGINT = NULL,
    I$PERIOD_ID BIGINT = NULL,
    I$WEEKS INTEGER = NULL,
    I$HOURS FLOAT = NULL,
    I$IS_ENABLED SMALLINT = 1,
    I$RCM_MODE SMALLINT = 0,
    I$DURATION SMALLINT = NULL,
    I$DAYMASK SMALLINT = 0,
    I$EXT_INFO VARCHAR(1000) = NULL,
    I$VK_ENABLED SMALLINT = NULL,
    I$ROOM_ID BIGINT = NULL,
    I$ASST_ID BIGINT = NULL)
RETURNS (
    CJ_ID BIGINT,
    GRADE_ID BIGINT,
    GRADE_TYPE_ID BIGINT,
    JOURNAL_NAME VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_JOURNAL_DELETE (
    I$CJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE CJ2_JOURNAL_GET (
    IN_USER_ID VARCHAR(40),
    JOURNAL_ID BIGINT,
    GRADE_ID BIGINT,
    SUBJECT_ID BIGINT,
    ZONE_ID SMALLINT = 0)
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_JOURNAL_ITEM_GET (
    I$OBJ_ID BIGINT,
    I$TYPE_ID INTEGER,
    I$YEAR_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_JOURNAL_LIST (
    I$TYPE_ID INTEGER,
    I$USER_ID VARCHAR(40),
    I$CJ_ID BIGINT = NULL)
RETURNS (
    JOURNAL_TYPE SMALLINT,
    CJ_ID BIGINT,
    SUBJECT_ID BIGINT,
    GRADE_ID BIGINT,
    GRADE_TYPE_ID BIGINT,
    TEACHER_ID BIGINT,
    CAPTION VARCHAR(1000),
    MEMBERS_NUM INTEGER,
    TEACHER_NAME VARCHAR(400),
    SUBJECT_NAME VARCHAR(1000),
    STAGE_INDEX BIGINT,
    STAGE_NAME VARCHAR(100),
    ACCESS_LEVEL SMALLINT,
    STAGE_MASK BIGINT,
    YEAR_ID BIGINT,
    YEAR_NAME VARCHAR(10),
    WEEKS INTEGER,
    HOURS FLOAT,
    IS_ENABLED SMALLINT,
    RCM_MODE SMALLINT,
    DURATION SMALLINT,
    DAYMASK SMALLINT,
    MASTER_ID BIGINT,
    MASTER_NAME VARCHAR(400),
    PERIOD_ID BIGINT,
    PERIOD_NAME VARCHAR(100),
    VK_ENABLED SMALLINT,
    CHAT_ID VARCHAR(400),
    ROOM_ID BIGINT,
    ASST_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_LESSONS_LIST (
    I$CJ_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    LESSON_ID BIGINT,
    LESSON_DATE DATE,
    LESSON_NUM INTEGER,
    LESSON_THEME VARCHAR(1000),
    TEACHER_ID BIGINT,
    TEACHER_NAME VARCHAR(1000),
    IS_COMPLETED SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_LESSON_ADD (
    I$CJ_ID BIGINT NOT NULL,
    I$LESSON_ID BIGINT,
    I$LESSON_DATE DATE,
    I$LESSON_NUM INTEGER,
    I$TEACHER_ID BIGINT,
    I$IS_COMPLETED INTEGER NOT NULL,
    I$LESSON_THEME VARCHAR(1000) NOT NULL,
    I$LESSON_HOMETASK VARCHAR(1000),
    I$LESSON_EXTRA VARCHAR(2000),
    I$USER_ID VARCHAR(40),
    I$LESSON_TYPE BIGINT = NULL,
    I$HOURS FLOAT = 1,
    I$LESSON_PTP_ID BIGINT = NULL,
    I$REASON_ID BIGINT = NULL,
    I$DE_ID VARCHAR(400) = NULL,
    I$IS_ONLINE SMALLINT = NULL)
RETURNS (
    LESSON_ID BIGINT,
    DEFAULT_CONTROL_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_LESSON_ATTR_ADD (
    I$LESSON_ID BIGINT NOT NULL,
    I$ATTR_NAME VARCHAR(100) NOT NULL,
    I$ATTR_VALUE VARCHAR(1000),
    I$USER_ID VARCHAR(40))
RETURNS (
    ERROR_TEXT VARCHAR(10))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_LESSON_ATTR_SET (
    I$LESSON_ID BIGINT NOT NULL,
    I$ATTR_NAME VARCHAR(100) NOT NULL,
    I$ATTR_VALUE VARCHAR(1000),
    I$REF_ID VARCHAR(1000),
    I$LISTVAL_ID VARCHAR(1000))
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_LESSON_AUTO (
    I$CJ_ID BIGINT,
    I$LESSON_DATE DATE,
    I$USER_ID VARCHAR(40))
RETURNS (
    LESSON_ID BIGINT,
    CONTROL_ID BIGINT,
    ACCESS_LEVEL INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_LESSON_CONTROL_ADD (
    I$LESSON_ID BIGINT NOT NULL,
    I$CONTROL_ID BIGINT,
    I$CONTROL_TYPE_ID BIGINT NOT NULL,
    I$MARK_SYSTEM_ID BIGINT NOT NULL,
    I$CONTROL_COST FLOAT NOT NULL,
    I$IS_COMPLETED INTEGER NOT NULL,
    I$TEXT VARCHAR(1000),
    I$EXT_ID VARCHAR(100),
    I$USER_ID VARCHAR(40),
    I$REASON_ID INTEGER,
    I$TEST_ID BIGINT)
RETURNS (
    CONTROL_ID BIGINT,
    CONTROL_TYPE_ID BIGINT,
    MARK_SYSTEM_ID BIGINT,
    CONTROL_COST FLOAT,
    IS_COMPLETED INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_LESSON_CONTROL_DELETE (
    I$CONTROL_ID BIGINT,
    I$REASON_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    STUB BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_LESSON_DELETE (
    I$LESSON_ID BIGINT,
    I$REASON_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    CJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_LESSON_FILE_ADD (
    I$LESSON_ID BIGINT,
    I$FILE_ID BIGINT,
    I$NAME VARCHAR(4000),
    I$TYPE SMALLINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    FILE_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_LESSON_FILE_DELETE (
    I$LESSON_ID BIGINT,
    I$FILE_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    FILE_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_LESSON_FINAL_ADD (
    I$CJ_ID BIGINT,
    I$LESSON_ID BIGINT,
    I$LESSON_DATE DATE,
    I$TYPE_ID BIGINT,
    I$MARKSYSTEM_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    LESSON_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_LESSON_FINAL_DELETE (
    I$LESSON_ID BIGINT,
    I$REASON_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    CJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_LESSON_FINAL_GET (
    I$CJ_ID BIGINT,
    I$LESSON_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_LESSON_GET (
    I$CJ_ID BIGINT,
    I$LESSON_ID BIGINT,
    I$USER_ID VARCHAR(40),
    I$PTP_LESSON_ID BIGINT = NULL)
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_LESSON_MS_ASSIGN (
    I$CJ_ID BIGINT,
    I$DATE DATE,
    I$NUM INTEGER,
    I$TIME TIME,
    I$LESSON_ID BIGINT = NULL,
    I$OBJ_ID BIGINT = NULL,
    I$PREV_DATE DATE = NULL,
    I$PREV_NUM INTEGER = NULL,
    I$HAS_HW SMALLINT = 0)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_LESSON_RES_ADD (
    I$LESSON_ID BIGINT,
    I$RES_ID BIGINT,
    I$USER_ID VARCHAR(40),
    I$WAS_COMPLETED SMALLINT = 0)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_LESSON_RES_DELETE (
    I$RES_ID BIGINT,
    I$USER_ID VARCHAR(40),
    I$WAS_COMPLETED SMALLINT = 0)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_LESSON_SETINST (
    I$LESSON_ID BIGINT,
    I$INST_ID VARCHAR(1000))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE CJ2_LESSON_TEACHERS_LIST (
    I$CJ_ID BIGINT,
    I$LESSON_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TEACHER_ID BIGINT,
    TEACHER_NAME VARCHAR(1000),
    TEACHER_TYPE INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_LOAD_REPORT (
    I$YEAR_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_LOAD_TEACHERS (
    I$TYPE_ID SMALLINT,
    I$GRADE_ID BIGINT,
    I$STAGE_ID BIGINT,
    I$SUBJECT_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    OBJ_ID BIGINT,
    NAME VARCHAR(1000),
    CAT_ID SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_MARKS_AGG (
    I$CJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_MARK_ADD (
    I$CONTROL_ID BIGINT,
    I$STUDENT_ID BIGINT,
    I$MARK_ID BIGINT,
    I$COMMENTS_TEXT VARCHAR(1000),
    I$REASON_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    MARK_ID BIGINT,
    CJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_MARK_DETAILS (
    I$MARK_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_MARK_FINAL_ADD (
    I$CONTROL_ID BIGINT,
    I$STUDENT_ID BIGINT,
    I$MARK_ID BIGINT,
    I$TEXT VARCHAR(2000),
    I$REASON_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    MARK_ID BIGINT,
    CJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_MARK_HISTORY (
    I$FINAL_ID BIGINT,
    I$PERSON_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_MASTER_ASSIGN (
    I$GROUP_ID BIGINT,
    I$MASTER_GROUP_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE CJ2_MEMBERS_LIST (
    I$CJ_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    OBJ_NAME VARCHAR(1000),
    OBJ_TYPE_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_MEMBER_MOVEMENTS (
    I$GROUP_ID BIGINT,
    I$GROUP_TYPE_ID BIGINT,
    I$MEMBER_ID BIGINT = null)
RETURNS (
    STUDENT_ID BIGINT,
    TYPE_ID BIGINT,
    DATE_FROM DATE,
    DATE_TO DATE)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_MENU_LIST (
    I$USER_ID VARCHAR(40) NOT NULL)
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_MISS_SET (
    I$PERSON_ID BIGINT,
    I$CJ_ID BIGINT,
    I$DATE_FROM DATE,
    I$N_FROM INTEGER,
    I$DATE_TO DATE,
    I$N_TO INTEGER,
    I$STATE SMALLINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    STUB INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_MOODLE_SUBSCRIBE RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_MOODLE_SUBSCRIPTIONS RETURNS (
    CONTROL_ID BIGINT,
    GRADE_ID BIGINT,
    ASSN_ID VARCHAR(100),
    EXT_ID VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_PELIKAN_JOIN (
    I$LESSON_ID BIGINT,
    I$PERSON_ID BIGINT,
    I$MODE SMALLINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE CJ2_PELIKAN_RSV RETURNS (
    LESSON_ID BIGINT,
    PREV_ROOM_ID BIGINT,
    LESSON_NAME VARCHAR(400),
    TYPE_ID INTEGER,
    TIME_START VARCHAR(40),
    TIME_STOP VARCHAR(40),
    CAMERAS VARCHAR(8000),
    PARTICIPANTS INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_PELIKAN_UNDO RETURNS (
    LESSON_ID BIGINT,
    ROOM_ID VARCHAR(400))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_PERSON_MISS_LIST (
    I$PERSON_ID BIGINT,
    I$DATE DATE,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_PERSON_NAME (
    I$OBJ_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    TYPE_ID BIGINT,
    NAME_LAST VARCHAR(200),
    NAME_FIRST VARCHAR(200),
    NAME_MID VARCHAR(200),
    NAME_FULL VARCHAR(400))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_PRESENCE_SET (
    I$LESSON_ID BIGINT,
    I$STUDENT_ID BIGINT,
    I$STATE SMALLINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    MARK_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_PRINT_DATA (
    I$CJ_ID BIGINT,
    I$DATE_FROM DATE,
    I$DATE_TO DATE,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_PTP_APPROVE (
    I$OBJ_ID BIGINT,
    I$DATE DATE,
    I$NUM VARCHAR(200),
    I$USER_ID VARCHAR(40))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE CJ2_PTP_APPROVE_HAS (
    I$USER_ID VARCHAR(40))
RETURNS (
    CAN_APPROVE SMALLINT,
    HAS_PTP SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_PTP_APPROVE_LIST (
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_PTP_ASSIGN (
    I$CJ_ID BIGINT,
    I$PTP_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE CJ2_PTP_ASSIGN_CJ (
    I$PTP_ID BIGINT,
    I$CJ_ID BIGINT,
    I$USER_ID VARCHAR(40),
    I$DELETED SMALLINT,
    I$STATE SMALLINT)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_PTP_CLONE (
    I$PTP_ID BIGINT,
    I$OBJ_NAME VARCHAR(1000),
    I$USER_ID VARCHAR(40))
RETURNS (
    PTP_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_PTP_DELETE (
    I$PTP_ID BIGINT,
    I$USER_ID VARCHAR(40))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE CJ2_PTP_FIX_HOURS (
    I$PTP_ID BIGINT,
    I$CORR SMALLINT = 0)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE CJ2_PTP_LESSON_CLONE (
    I$PTP_ID BIGINT,
    I$PARENT_ID BIGINT,
    I$LESSON_NUM INTEGER,
    I$THEME_TEXT VARCHAR(1000),
    I$HOMETASK_TEXT VARCHAR(1000),
    I$DURATION FLOAT,
    I$CONTROLS VARCHAR(400),
    I$MERGE_IDS VARCHAR(400),
    I$TYPE_ID BIGINT = NULL,
    I$EXTRA VARCHAR(1000) = NULL,
    I$CEC_REFS VARCHAR(400) = NULL,
    I$TEST_REFS VARCHAR(1000) = NULL)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_PTP_LESSON_SET (
    I$PTP_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40),
    I$DELETED SMALLINT,
    I$LESSON_NUM INTEGER,
    I$THEME_TEXT VARCHAR(1000),
    I$HOMETASK_TEXT VARCHAR(1000),
    I$DURATION FLOAT,
    I$PARENT_LESSON_ID BIGINT,
    I$CONTROLS VARCHAR(400),
    I$CEC_REFS VARCHAR(1000) = NULL,
    I$TEST_REFS VARCHAR(1000) = NULL,
    I$TYPE_ID BIGINT = NULL,
    I$EXTRA VARCHAR(1000) = NULL,
    I$VNUM VARCHAR(40) = NULL,
    I$STAGE_ID BIGINT = NULL)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_PTP_LIST_BY_OWNER (
    IN_USER_ID VARCHAR(40))
RETURNS (
    STAGE_NUM INTEGER,
    STAGE_NAME VARCHAR(100),
    GRADE_ID BIGINT,
    GRADE_NAME VARCHAR(1000),
    SUBJECT_ID BIGINT,
    SUBJECT_NAME VARCHAR(1000),
    PTP_ID BIGINT,
    PTP_NAME VARCHAR(1000),
    PTP_HOURS INTEGER,
    STATE_NUM SMALLINT,
    STATE_TEXT VARCHAR(100),
    PARENT_ID BIGINT,
    PARENT_NAME VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_PTP_LIST_CJ (
    I$PTP_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_PTP_LIST_GEN (
    IN_USER_ID VARCHAR(40),
    IN_TYPE_ID INTEGER,
    IN_LEVEL_ID BIGINT,
    IN_SUBJECT_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    PARENT_ID BIGINT,
    OBJ_NAME VARCHAR(1000),
    OWNER_ID BIGINT,
    PTP_HOURS INTEGER,
    LEVEL_ID BIGINT,
    SUBJECT_ID BIGINT,
    LEVEL_NUM INTEGER,
    GRADES_LIST VARCHAR(4000),
    STATE_LIST VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_PTP_LIST_GEN_INT (
    I$PARENT_ID BIGINT,
    I$LEVEL_ID BIGINT,
    I$SUBJECT_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    PARENT_ID BIGINT,
    OBJ_NAME VARCHAR(1000),
    OWNER_ID BIGINT,
    PTP_HOURS INTEGER,
    LEVEL_ID BIGINT,
    SUBJECT_ID BIGINT,
    LEVEL_NUM INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_PTP_LIST_OLD (
    I$TYPE_ID BIGINT,
    I$SUBJECT_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    OBJ_ID BIGINT,
    NAME VARCHAR(1000),
    SUBJECT_NAME VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_PTP_MENU_LIST (
    IN_USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_PTP_MIGRATE (
    I$OBJ_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_PTP_OLD_GET (
    I$PTP_ID BIGINT)
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_PTP_REASSIGN (
    I$PTP_ID BIGINT,
    I$FOR VARCHAR(1000))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE CJ2_PTP_SET (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40),
    I$PARENT_ID BIGINT,
    I$OBJ_NAME VARCHAR(400),
    I$OWNER_ID BIGINT,
    I$LEVEL_ID BIGINT,
    I$SUBJECT_ID BIGINT,
    I$EDU_LEVEL_ID BIGINT = NULL,
    I$STAGE_MASK BIGINT = NULL)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_PTP_TRANSFER
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE CJ2_RANDOMDATA (
    I$CJ_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE CJ2_REPLACEMENT_ADD (
    I$USER_ID VARCHAR(40) NOT NULL,
    I$OBJ_ID BIGINT,
    I$TEACHER_ID BIGINT NOT NULL,
    I$DATE_FROM DATE NOT NULL,
    I$DATE_TO DATE,
    I$REASON_ID BIGINT NOT NULL)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_REPLACEMENT_DELETE (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    ERROR_TEXT VARCHAR(10))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_REPLACEMENT_GET (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_REPLACEMENT_LIST (
    I$MODE INTEGER,
    I$USER_ID VARCHAR(40),
    I$OBJ_ID BIGINT = null)
RETURNS (
    OBJ_ID BIGINT,
    PERSON_ID BIGINT,
    PERSON_NAME VARCHAR(1000),
    DATE_FROM DATE,
    DATE_TO DATE,
    REASON_ID BIGINT,
    REASON_TEXT VARCHAR(200))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_REPL_APPROVE_DATES (
    I$USER_ID VARCHAR(40))
RETURNS (
    VAL VARCHAR(20))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_REPL_BYDATE (
    I$DATE DATE,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_REPL_CAL RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(200))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_REPL_DAPPROVE_DATES (
    I$USER_ID VARCHAR(40))
RETURNS (
    APPR_DATE VARCHAR(20),
    ORDER_DATE VARCHAR(20),
    ORDER_NUM VARCHAR(200))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_REPL_DAYDATA (
    I$DATE DATE,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_REPL_PROCESS_ADD (
    I$OBJ_ID BIGINT,
    I$REPL_DATE DATE NOT NULL,
    I$PLAN_ID BIGINT,
    I$TEACHER_ID BIGINT,
    I$REPL_TEACHER_ID BIGINT,
    I$CJ_ID BIGINT,
    I$LESSON_NUM INTEGER,
    I$REPL_CJ_ID BIGINT,
    I$USER_ID VARCHAR(40) = NULL)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_REPL_PROCESS_APPR (
    I$REPL_DATE DATE,
    I$ORDER_DATE DATE,
    I$ORDER_NUM VARCHAR(100),
    I$USER_ID VARCHAR(40) = null)
RETURNS (
    ERROR_TEXT VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_REPL_PROCESS_DELETE (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    ERROR_TEXT VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_REPL_PROCESS_GET (
    I$OBJ_ID BIGINT,
    I$PLAN_ID BIGINT,
    I$CJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_REPL_PROCESS_SRL (
    I$DATE DATE)
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(2000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_REPL_PROCESS_UA (
    I$REPL_DATE DATE,
    I$USER_ID VARCHAR(40) = null)
RETURNS (
    ERROR_TEXT VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_REPL_REPORT (
    I$DATE_FROM DATE NOT NULL,
    I$DATE_TO DATE NOT NULL,
    I$MODE SMALLINT = 0)
RETURNS (
    VAL VARCHAR(6000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_REPL_REPORT_1 (
    I$DATE_FROM DATE NOT NULL,
    I$DATE_TO DATE NOT NULL,
    I$MODE SMALLINT = 0)
RETURNS (
    VAL VARCHAR(6000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_REPL_REPORT_2 (
    I$DATE_FROM DATE NOT NULL,
    I$DATE_TO DATE NOT NULL,
    I$MODE SMALLINT = 0)
RETURNS (
    VAL VARCHAR(6000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_REPL_REPORT_3 (
    I$DATE_FROM DATE NOT NULL,
    I$DATE_TO DATE NOT NULL,
    I$MODE SMALLINT = 0)
RETURNS (
    VAL VARCHAR(6000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_REPL_TEACHERS_LIST (
    I$USER_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    OBJ_CAPTION VARCHAR(1000),
    PARENT_ID BIGINT,
    COMMENTS VARCHAR(200))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_REPORTS_DTL (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40),
    I$ZONE SMALLINT)
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_REPORTS_MENU (
    I$CJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_REPORT_NX100 (
    I$USER_ID BIGINT,
    I$DATE_FROM TIMESTAMP,
    I$DATE_TO TIMESTAMP,
    I$PARENT_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$OPTION_ID BIGINT,
    I$OPTIONS VARCHAR(1000),
    I$ZONE SMALLINT = 0)
RETURNS (
    VAL VARCHAR(6000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_REPORT_NX100_LESSONS (
    I$GRADE_ID BIGINT,
    I$DATE_FROM DATE,
    I$DATE_TO DATE,
    I$SHOW_PERSONAL SMALLINT = 0)
RETURNS (
    CJ_ID BIGINT,
    LESSON_ID BIGINT,
    LESSON_DATE DATE,
    SUBJECT_ID BIGINT,
    GRADE_ID BIGINT,
    GRADE_TYPE_ID BIGINT,
    CONTROL_ID BIGINT,
    SUBJECT_NAME VARCHAR(4000),
    CONTROL_NAME VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_REPORT_NX107 (
    I$USER_ID VARCHAR(40),
    I$DATE_FROM DATE,
    I$DATE_TO DATE,
    I$PARENT_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$OPTION_ID BIGINT,
    I$OPTIONS VARCHAR(1000),
    I$ZONE SMALLINT = 0)
RETURNS (
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_REPORT_NX11 (
    I$USER_ID VARCHAR(40),
    I$DATE_FROM DATE,
    I$DATE_TO DATE,
    I$PARENT_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$OPTION_ID BIGINT,
    I$OPTIONS VARCHAR(1000),
    I$ZONE SMALLINT = 0)
RETURNS (
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_REPORT_NX19 (
    I$USER_ID VARCHAR(40),
    I$DATE_FROM DATE,
    I$DATE_TO DATE,
    I$PARENT_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$OPTION_ID BIGINT,
    I$OPTIONS VARCHAR(1000),
    I$ZONE SMALLINT = 0)
RETURNS (
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_REPORT_NX2 (
    I$USER_ID VARCHAR(40),
    I$DATE_FROM DATE,
    I$DATE_TO DATE,
    I$PARENT_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$OPTION_ID BIGINT,
    I$OPTIONS VARCHAR(1000),
    I$ZONE SMALLINT = 0)
RETURNS (
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_REPORT_NX200 (
    I$USER_ID BIGINT,
    I$DATE_FROM TIMESTAMP,
    I$DATE_TO TIMESTAMP,
    I$PARENT_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$OPTION_ID BIGINT,
    I$OPTIONS VARCHAR(1000),
    I$ZONE SMALLINT = 0)
RETURNS (
    VAL VARCHAR(6000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_REPORT_NX210 (
    I$USER_ID BIGINT,
    I$DATE_FROM TIMESTAMP,
    I$DATE_TO TIMESTAMP,
    I$PARENT_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$OPTION_ID BIGINT,
    I$OPTIONS VARCHAR(1000),
    I$ZONE SMALLINT = 0)
RETURNS (
    VAL VARCHAR(6000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_REPORT_NX22 (
    I$USER_ID VARCHAR(40),
    I$DATE_FROM DATE,
    I$DATE_TO DATE,
    I$PARENT_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$OPTION_ID BIGINT,
    I$OPTIONS VARCHAR(1000),
    I$ZONE SMALLINT = 0)
RETURNS (
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_REPORT_NX2_OU (
    I$USER_ID VARCHAR(40),
    I$DATE_FROM DATE,
    I$DATE_TO DATE,
    I$PARENT_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$OPTION_ID BIGINT,
    I$OPTIONS VARCHAR(1000),
    I$ZONE SMALLINT = 0)
RETURNS (
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_REPORT_NX300 (
    I$USER_ID VARCHAR(40),
    I$DATE_FROM DATE,
    I$DATE_TO DATE,
    I$PARENT_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$OPTION_ID BIGINT,
    I$OPTIONS VARCHAR(1000),
    I$ZONE SMALLINT = 0)
RETURNS (
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_REPORT_NX310 (
    I$USER_ID VARCHAR(40),
    I$DATE_FROM DATE,
    I$DATE_TO DATE,
    I$PARENT_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$OPTION_ID BIGINT,
    I$OPTIONS VARCHAR(1000),
    I$ZONE SMALLINT = 0)
RETURNS (
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_REPORT_NX310_CC (
    I$USER_ID BIGINT,
    I$DATE_FROM DATE,
    I$DATE_TO DATE,
    I$PARENT_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$ROOT_ID BIGINT,
    I$OPTION_ID BIGINT,
    I$OPTIONS VARCHAR(1000),
    I$ZONE SMALLINT = 0)
RETURNS (
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_REPORT_NX310_FN (
    I$USER_ID BIGINT,
    I$DATE_FROM DATE,
    I$DATE_TO DATE,
    I$PARENT_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$ROOT_ID BIGINT,
    I$OPTION_ID BIGINT,
    I$OPTIONS VARCHAR(1000),
    I$ZONE SMALLINT = 0)
RETURNS (
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_REPORT_NX310_PA (
    I$USER_ID BIGINT,
    I$DATE_FROM DATE,
    I$DATE_TO DATE,
    I$PARENT_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$ROOT_ID BIGINT,
    I$OPTION_ID BIGINT,
    I$OPTIONS VARCHAR(1000),
    I$ZONE SMALLINT = 0)
RETURNS (
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_REPORT_NX310_SUBJ (
    I$OBJ_ID BIGINT,
    I$OBJ_TYPE BIGINT,
    I$GROUP_ID BIGINT,
    I$MODE SMALLINT,
    I$DATE_FROM DATE,
    I$DATE_TO DATE,
    I$YEAR_ID BIGINT = null,
    I$TEACHER_ID BIGINT = null)
RETURNS (
    SUBJECT_ID BIGINT,
    SUBJECT_NAME VARCHAR(400),
    SUBJECT_CODE VARCHAR(100),
    TEACHER_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_REPORT_NX320 (
    I$USER_ID VARCHAR(40),
    I$DATE_FROM DATE,
    I$DATE_TO DATE,
    I$PARENT_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$OPTION_ID BIGINT,
    I$OPTIONS VARCHAR(1000),
    I$ZONE SMALLINT = 0)
RETURNS (
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_REPORT_NX320_CC (
    I$USER_ID BIGINT,
    I$DATE_FROM DATE,
    I$DATE_TO DATE,
    I$PARENT_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$ROOT_ID BIGINT,
    I$OPTION_ID BIGINT,
    I$OPTIONS VARCHAR(1000),
    I$ZONE SMALLINT = 0)
RETURNS (
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_REPORT_NX320_PA (
    I$USER_ID BIGINT,
    I$DATE_FROM DATE,
    I$DATE_TO DATE,
    I$PARENT_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$ROOT_ID BIGINT,
    I$OPTION_ID BIGINT,
    I$OPTIONS VARCHAR(1000),
    I$ZONE SMALLINT = 0)
RETURNS (
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_REPORT_NX321 (
    I$USER_ID VARCHAR(40),
    I$DATE_FROM DATE,
    I$DATE_TO DATE,
    I$PARENT_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$OPTION_ID BIGINT,
    I$OPTIONS VARCHAR(1000),
    I$ZONE SMALLINT = 0)
RETURNS (
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_REPORT_NX330 (
    I$USER_ID VARCHAR(40),
    I$DATE_FROM DATE,
    I$DATE_TO DATE,
    I$PARENT_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$OPTION_ID BIGINT,
    I$OPTIONS VARCHAR(1000),
    I$ZONE SMALLINT = 0)
RETURNS (
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_REPORT_NX330_CC (
    I$USER_ID BIGINT,
    I$DATE_FROM DATE,
    I$DATE_TO DATE,
    I$PARENT_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$ROOT_ID BIGINT,
    I$OPTION_ID BIGINT,
    I$OPTIONS VARCHAR(1000),
    I$ZONE SMALLINT = 0)
RETURNS (
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_REPORT_NX400 (
    I$USER_ID VARCHAR(40),
    I$DATE_FROM DATE,
    I$DATE_TO DATE,
    I$PARENT_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$OPTION_ID BIGINT,
    I$OPTIONS VARCHAR(1000),
    I$ZONE SMALLINT = 0)
RETURNS (
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_REPORT_NX7 (
    I$USER_ID VARCHAR(40),
    I$DATE_FROM DATE,
    I$DATE_TO DATE,
    I$PARENT_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$OPTION_ID BIGINT,
    I$OPTIONS VARCHAR(1000),
    I$ZONE SMALLINT = 0)
RETURNS (
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_RESOURCES_LIST (
    I$CJ_ID BIGINT,
    I$LESSON_ID BIGINT,
    I$LESSON_DATE DATE,
    I$LESSON_NUM INTEGER,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_SCHEDULE_GEN
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE CJ2_SCHEDULE_STREAM (
    I$CJ_ID BIGINT,
    I$DATE DATE,
    I$TO_DATE DATE = NULL)
RETURNS (
    LESSON_DATE DATE,
    LESSON_NUM INTEGER,
    LESSON_TIME TIME)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_SCUD_PUPIL_LIST (
    I$GRADE_ID BIGINT)
RETURNS (
    PERSON_ID BIGINT,
    STATE SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_SERIALIZE (
    I$JOURNAL_ID BIGINT,
    I$FROM TIMESTAMP)
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_STATE_PROCESS (
    I$CJ_ID BIGINT,
    I$LESSON_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE CJ2_TEACHER_NAME (
    I$GRADE_ID BIGINT,
    I$TEACHER_ID BIGINT)
RETURNS (
    CAPTION VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_UPDATE_RATING (
    I$DATE DATE = CURRENT_DATE)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE CJ2_USA_UPDATE (
    I$CONTROL_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE CJ2_WEEKDAYS (
    I$GRADE_ID BIGINT = null)
RETURNS (
    WEEK_DAYS INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ2_WIZARD_DATA (
    I$TYPE SMALLINT,
    I$YEAR_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ_COLLEGE_SUBJECTS_LIST (
    I$GRADE_ID BIGINT,
    I$USER_ID BIGINT,
    I$LEVEL_ID INTEGER = 0,
    IS_ACCESSIBLE SMALLINT = 1)
RETURNS (
    OBJ_ID BIGINT,
    OBJ_CAPTION VARCHAR(4000),
    SORT_ORDER DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ_GRADE_LIST (
    I$USER_ID BIGINT,
    I$REPORT_ID BIGINT = 0)
RETURNS (
    OBJ_ID BIGINT,
    TYPE_ID BIGINT,
    GROUP_TYPE BIGINT,
    OBJ_CAPTION VARCHAR(4000),
    SORT_ORDER DOUBLE PRECISION,
    STAGE_ID BIGINT,
    STAGE_NUM BIGINT,
    PARENT_ID BIGINT,
    COLOR INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ_GRADE_LIST3 (
    I$USER_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    OBJ_CAPTION VARCHAR(4000),
    SORT_ORDER DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ_GRADE_SUBJECTS_LIST (
    I$GRADE_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    OBJ_CAPTION VARCHAR(4000),
    SORT_ORDER DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ_IS_GROUP_CLASSMATE (
    I$TEACHER_ID BIGINT,
    I$GROUP_ID BIGINT,
    I$GROUP_TYPE BIGINT,
    I$ROOT_ACCESS_CLASS_ID BIGINT)
RETURNS (
    IS_CLASSMATE SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ_PTP_GET (
    I$PTP_ID BIGINT,
    I$USER_ID VARCHAR(40),
    I$CJ_ID BIGINT = NULL,
    I$NEW_TYPE_ID BIGINT = NULL)
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ_PTP_GET_FOR_CJ (
    I$CJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ_PTP_LIST_TEMPLATES (
    STAGE_ID BIGINT,
    SUBJECT_ID BIGINT)
RETURNS (
    GRADE_ID BIGINT,
    GRADE_NAME VARCHAR(1000),
    TEACHER_ID BIGINT,
    TEACHER_NAME VARCHAR(1000),
    HOURS INTEGER,
    GRADE_TYPE_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ_PTP_PLAN_HOURS (
    I$GRADE_ID BIGINT,
    I$SUBJECT_ID BIGINT)
RETURNS (
    PLAN_HOURS INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ_PTP_PREVIEW (
    I$PTP_ID BIGINT,
    I$GRADE_ID BIGINT,
    I$USER_ID VARCHAR(40) = null)
RETURNS (
    V VARCHAR(6000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ_PTP_STAGE_LIST (
    I$PTP_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    PTP_ID BIGINT,
    LINK_ID BIGINT,
    STAGE_ID BIGINT,
    STAGE_NAME VARCHAR(4000),
    SORT_ORDER DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ_PTP_ULESSONS (
    I$PTP_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ_PTP_USEREFS_GET (
    I$PTP_ID BIGINT,
    I$APPROVED_ONLY SMALLINT = 0)
RETURNS (
    CLASS_ID BIGINT,
    CLASS_CAPTION VARCHAR(1000),
    CLASS_TYPE_ID BIGINT,
    SUBJECT_ID BIGINT,
    CLASS_TEACHER_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ_STAGE_LIST (
    I$USER_ID BIGINT,
    I$LEVEL_ID INTEGER = 0)
RETURNS (
    OBJ_ID BIGINT,
    OBJ_CAPTION VARCHAR(4000),
    SORT_ORDER DOUBLE PRECISION,
    LISTVAL_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ_STAGE_SUBJECTS_LIST (
    I$USER_ID BIGINT,
    I$LEVEL_ID INTEGER = 0,
    I$LISTVAL_ID BIGINT = 3)
RETURNS (
    STAGE_ID BIGINT,
    OBJ_ID BIGINT,
    OBJ_CAPTION VARCHAR(4000),
    SORT_ORDER DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CJ_TEACHER_LIST (
    I$GRADE_ID BIGINT = null)
RETURNS (
    OBJ_ID BIGINT,
    OBJ_CAPTION VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CLASSES_COUNT_DISTRICT_GET (
    I$DT DATE,
    I$USER_ID BIGINT)
RETURNS (
    STR VARCHAR(200),
    CLASSES1 INTEGER,
    PUPILS1 INTEGER,
    CLASSES2 INTEGER,
    PUPILS2 INTEGER,
    CLASSES3 INTEGER,
    PUPILS3 INTEGER,
    CLASSES4 INTEGER,
    PUPILS4 INTEGER,
    CLASSESYASALL INTEGER,
    PUPILSYASALL INTEGER,
    CLASSES5 INTEGER,
    PUPILS5 INTEGER,
    CLASSES6 INTEGER,
    PUPILS6 INTEGER,
    CLASSES7 INTEGER,
    PUPILS7 INTEGER,
    CLASSES8 INTEGER,
    PUPILS8 INTEGER,
    CLASSES9 INTEGER,
    PUPILS9 INTEGER,
    CLASSESDSALL INTEGER,
    PUPILSDSALL INTEGER,
    CLASSESALL INTEGER,
    PUPILSALL INTEGER,
    ORDER_SCHOOL INTEGER,
    ORDER_KIND INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CLASSES_COUNT_ON_DATE_DTL (
    I$STAGE_NAME VARCHAR(100),
    I$CLASS_KIND_COL INTEGER,
    I$DT DATE,
    I$USER_ID BIGINT)
RETURNS (
    VAL1 VARCHAR(250),
    VAL2 VARCHAR(250))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CLASSES_COUNT_ON_DATE_GET (
    I$DT DATE,
    I$USER_ID BIGINT)
RETURNS (
    STAGE_NAME VARCHAR(400),
    CLASSES_COUNT_ALL INTEGER,
    PUPILS_COUNT_ALL INTEGER,
    CLASSES1_COUNT INTEGER,
    PUPILS1_COUNT INTEGER,
    CLASSES2_COUNT INTEGER,
    PUPILS2_COUNT INTEGER,
    CLASSES3_COUNT INTEGER,
    PUPILS3_COUNT INTEGER,
    CLASSES4_COUNT INTEGER,
    PUPILS4_COUNT INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CLASSEXTERNAT_LIST_NEXT_STAGE (
    I$CLASS_ID BIGINT)
RETURNS (
    CLASS_ID BIGINT,
    CLASS_NUMBER INTEGER,
    CLASS_NAME VARCHAR(255))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CLASSEXTERNAT_PUPILS_LIST (
    I$CLASS_ID BIGINT)
RETURNS (
    PUPIL_ID BIGINT,
    FIO VARCHAR(500))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CLASSEXTERNAT_PUPIL_TRANSFER (
    I$PUPIL_ID BIGINT,
    I$CLASS_ID BIGINT,
    I$USER_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE CLASSEXTERNAT_TRANSFER_ADD (
    I$PUPIL_ID BIGINT,
    I$USER_ID BIGINT,
    I$CLASS_NAME VARCHAR(255))
RETURNS (
    CLASS_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CLASSIFY_COURSE_EXPORT (
    I$USER_ID BIGINT = 1)
RETURNS (
    TAG_NAME VARCHAR(255),
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CLASS_EDU_DO_ATTR (
    I$CLASS_ID BIGINT,
    I$ATTR VARCHAR(40),
    I$PERSONS VARCHAR(1000),
    I$VALUE VARCHAR(400),
    I$ALL SMALLINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    STUB INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CLASS_EDU_DO_DATA (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CLASS_EDU_DO_MOVEMENTS (
    I$CLASS_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    STUDENT_ID BIGINT,
    STUDENT_NAME VARCHAR(1000),
    MOVE_PERIODS VARCHAR(1000),
    MOVE_IDS VARCHAR(1000),
    NEED_COMPUTER SMALLINT,
    NEED_INET SMALLINT,
    DATE_COMPUTER DATE,
    DATE_INET DATE,
    COMPUTER_SERIAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CLASS_EDU_DO_SETMOVE (
    I$CLASS_ID BIGINT,
    I$STUDENT_ID BIGINT,
    I$USER_ID BIGINT,
    I$NEEDS_COMPUTER SMALLINT,
    I$NEEDS_INET SMALLINT,
    I$DATE_COMPUTER DATE,
    I$DATE_INET DATE,
    I$COMPUTER_SERIAL VARCHAR(1000))
RETURNS (
    STUB BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CLASS_FILLDET (
    I$CLASS_ID BIGINT NOT NULL,
    I$DT DATE,
    I$IS_BOYS SMALLINT = null)
RETURNS (
    VAL1 VARCHAR(250),
    VAL2 VARCHAR(250))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CLASS_OVZ_RECALC (
    I$OBJ_ID BIGINT,
    I$CLASS_ID BIGINT = NULL)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE CLASS_PERIOD_LIST (
    I$OBJ_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    PARENT_ID BIGINT,
    OBJ_CAPTION VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CLASS_PUPIL_LIST (
    I$CLASS_ID BIGINT,
    I$LEVEL_ID BIGINT)
RETURNS (
    PUPIL_ID BIGINT,
    FIO VARCHAR(1000),
    LASTNAME VARCHAR(1000),
    FIRSTNAME VARCHAR(1000),
    MIDDLENAME VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CLASS_VIRT_ID (
    OBJ_ID BIGINT,
    OBJ_TYPE_ID BIGINT)
RETURNS (
    VIRT_ID BIGINT,
    DATE_MODIFY TIMESTAMP)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CLEAR_LEEVED_EMPLOYEE_STATUS
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE CLEAR_PPE_ROOMS (
    I$SCHOOL_ID BIGINT = null,
    I$FORCE_CLEAR SMALLINT = 0)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE COLLEGE_DISCIPLINES_LIST RETURNS (
    OBJ_ID BIGINT,
    OBJ_CAPTION VARCHAR(1000),
    SORT_ORDER DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE COLLEGE_GRADE_CURRICULUM_LIST (
    I$GRADE_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    CURRICULUM_ID BIGINT,
    CURRICULUM_CAPTION VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE COLLEGE_GRADE_DISCIPLINES_LIST (
    I$GRADE_ID BIGINT,
    I$CURRICULUM_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    STAGE_ID BIGINT,
    STAGE_LOADING_ID BIGINT,
    DISCIPLINE_LINK_ID BIGINT,
    DISCIPLINE_ID BIGINT,
    DISCIPLINE_CAPTION VARCHAR(4000),
    STAGE_LOADING_PERIOD INTEGER,
    STAGE_LOADING_LIMIT INTEGER,
    VAL INTEGER,
    SORT_ORDER DOUBLE PRECISION,
    CURRICULUM_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE COLLEGE_GRADE_GROUPS_LIST (
    I$GRADE_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    GROUP_ID BIGINT,
    GROUP_DISCIPLINE_ID BIGINT,
    GROUP_CAPTION VARCHAR(4000),
    DISCIPLINE_ID BIGINT,
    DISCIPLINE_CAPTION VARCHAR(4000),
    SUBGROUP_ID BIGINT,
    SUBGROUP_CAPTION VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE COLLEGE_GRADE_LOADING_ADD (
    I$LOADING_ID BIGINT,
    I$STAGE_LOADING_ID BIGINT,
    I$DISCIPLINE_LINK_ID BIGINT,
    I$SUBGROUP_ID BIGINT,
    I$TEACHER_ID BIGINT)
RETURNS (
    LOADING_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE COLLEGE_GRADE_LOADING_LIST (
    I$GRADE_ID BIGINT,
    I$CURRICULUM_ID BIGINT)
RETURNS (
    LOADING_ID BIGINT,
    STAGE_LOADING_ID BIGINT,
    DISCIPLINE_ID BIGINT,
    DISCIPLINE_LINK_ID BIGINT,
    CURRICULUM_DISCIPLINE_LINK_ID BIGINT,
    SUBGROUP_ID BIGINT,
    TEACHER_ID BIGINT,
    TEACHER_CAPTION VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE COLLEGE_GRADE_TEACHERS_LIST (
    I$GRADE_ID BIGINT,
    I$NOT_ONLY_PEDAGOGS SMALLINT = 0)
RETURNS (
    TEACHER_ID BIGINT,
    TEACHER_CAPTION VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE COLLEGE_GRADE_TEACHER_L_LIST (
    I$TEACHER_ID BIGINT)
RETURNS (
    SUBJECT_ID BIGINT,
    SUBJECT_CAPTION VARCHAR(4000),
    GROUP_CAPTION VARCHAR(4000),
    SUBJECT_LOADING DOUBLE PRECISION,
    GRADE_SORT_ORDER DOUBLE PRECISION,
    GROUP_SORT_ORDER DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE COLLEGE_LOADING_COMPONENTS (
    I$PLAN_ID BIGINT,
    I$PARENT_ID BIGINT = null)
RETURNS (
    OBJ_ID BIGINT,
    OBJ_CAPTION VARCHAR(4000),
    COMPONENT_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE COLLEGE_LOADING_SUBJECTS (
    I$PARENT_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    OBJ_CAPTION VARCHAR(4000),
    SORT_ORDER DOUBLE PRECISION,
    LOAD_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE COLLEGE_LOADING_UNION_LIST (
    I$STAGE_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    OBJ_CAPTION VARCHAR(4000),
    SORT_ORDER DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE COLLEGE_LOADING_VALS_LIST (
    I$PLAN_ID BIGINT,
    I$COMPONENT_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    STAGE_ID BIGINT,
    SUBJECT_ID BIGINT,
    COMPONENT_ID BIGINT,
    OBJ_ID BIGINT,
    VAL INTEGER,
    UMK1 INTEGER,
    UMK2 INTEGER,
    UMK3 INTEGER,
    UMK4 INTEGER,
    UMK5 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE COLLEGE_OUT_PUPIL_LIST (
    I$GROUP_ID BIGINT)
RETURNS (
    PUPIL_ID BIGINT,
    FIRSTNAME VARCHAR(255),
    MIDDLENAME VARCHAR(255),
    LASTNAME VARCHAR(255),
    CLASSNAME VARCHAR(255))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE COLLEGE_PUPIL_OUT (
    I$PUPIL_ID BIGINT,
    I$ACTION_DATE DATE,
    I$ORDER_NUMBER VARCHAR(4000),
    I$ORDER_DATE DATE,
    I$USER_ID BIGINT = null)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE COLLEGE_PUPIL_OUT_ALL (
    I$GROUP_ID BIGINT,
    I$ACTION_DATE DATE,
    I$ORDER_NUMBER VARCHAR(4000),
    I$ORDER_DATE DATE,
    I$USER_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE COLLEGE_PUPIL_SPECIALITY_SET (
    I$PUPIL_ID BIGINT,
    I$GROUP_ID BIGINT,
    I$USER_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE COLLEGE_SEMESTR_COUNT_CHANGED (
    I$STAGE_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE COLLEGE_SP_STAGE_CHANGED (
    I$PLAN_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE COLLEGE_VERIFY_ALL (
    I$OBJ_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    LINK_ID BIGINT,
    OBJECT_ID BIGINT,
    NAME_TASK VARCHAR(1000),
    ERROR_NAME VARCHAR(1000),
    PARAMS_NAME VARCHAR(1000),
    ERROR_TEXT VARCHAR(1000),
    ERROR_TYPE SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE COLLEGE_VERIFY_BUILDING (
    I$OBJ_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    LINK_ID BIGINT,
    OBJECT_ID BIGINT,
    NAME_TASK VARCHAR(1000),
    ERROR_NAME VARCHAR(1000),
    PARAMS_NAME VARCHAR(1000),
    ERROR_TEXT VARCHAR(1000),
    ERROR_TYPE SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE COLLEGE_VERIFY_PUPIL (
    I$OBJ_ID BIGINT)
RETURNS (
    LINK_ID BIGINT,
    OBJECT_ID BIGINT,
    NAME_TASK VARCHAR(1000),
    ERROR_NAME VARCHAR(1000),
    PARAMS_NAME VARCHAR(1000),
    ERROR_TEXT VARCHAR(1000),
    ERROR_TYPE SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CONTINGENT_CALC_FOR_DISTRICT RETURNS (
    SCHOOL_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE COPP_GROUP_SYNC (
    I$PROGRAM_ID BIGINT,
    I$ID BIGINT,
    I$NAME VARCHAR(1000),
    I$STATUS VARCHAR(100),
    I$DATE_FROM DATE,
    I$DUR_YEARS INTEGER,
    I$DUR_MONTHS INTEGER,
    I$DUR_DAYS INTEGER)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE COPP_OP_SYNC (
    I$ORG_ID BIGINT,
    I$ID BIGINT,
    I$STATUS BIGINT,
    I$NAME VARCHAR(1000),
    I$CONTENT VARCHAR(4000),
    I$STUDY_FORM_ID BIGINT,
    I$EDUCATION_TYPE_ID BIGINT,
    I$PAYMENT BIGINT,
    I$VOLUME INTEGER,
    I$STUDY_TERM VARCHAR(200))
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE COPP_ORGANIZATION_FORCE (
    I$OBJ_ID BIGINT,
    I$ID BIGINT,
    I$OGRN VARCHAR(40),
    I$NAME_SHORT VARCHAR(1000),
    I$NAME_FULL VARCHAR(1000),
    I$PHONE VARCHAR(200),
    I$EMAIL VARCHAR(200),
    I$WEBSITE VARCHAR(200),
    I$ALIAS VARCHAR(40),
    I$VM_INDEX INTEGER,
    I$VM_PORT INTEGER)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE COPP_ORGANIZATION_SYNC (
    I$ID BIGINT,
    I$OGRN VARCHAR(40),
    I$NAME_SHORT VARCHAR(1000),
    I$NAME_FULL VARCHAR(1000),
    I$PHONE VARCHAR(200),
    I$EMAIL VARCHAR(200),
    I$WEBSITE VARCHAR(200),
    I$ALIAS VARCHAR(40),
    I$VMNUM INTEGER = 1,
    I$ADMIN_EMAIL VARCHAR(200) = null)
RETURNS (
    OBJ_ID BIGINT,
    ALIAS VARCHAR(40),
    VM_INDEX INTEGER,
    VM_PORT INTEGER,
    EMAIL_CHANGED SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE COPP_PERSON_SYNC (
    I$PROGRAM_ID BIGINT,
    I$GROUP_ID INTEGER,
    I$ID BIGINT,
    I$NAME_FIRST VARCHAR(200),
    I$NAME_MID VARCHAR(200),
    I$NAME_LAST VARCHAR(200),
    I$BIRTH_DATE DATE,
    I$SEX VARCHAR(10),
    I$EMAIL VARCHAR(200),
    I$PHONE VARCHAR(200),
    I$ESIA_ID VARCHAR(100))
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE COPY_EMPLOYEE_SNILS (
    I$OBJ_ID BIGINT,
    I$PARAM_ID BIGINT = NULL,
    I$USER BIGINT = NULL)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE COPY_PARAM_VALUE (
    I$FROM_OBJ_ID BIGINT,
    I$FROM_PARAM_ID BIGINT,
    I$TO_OBJ_ID BIGINT,
    I$TO_PARAM_ID BIGINT,
    I$USER_ID BIGINT = 1)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE COPY_SPO_CODES (
    I$OBJ_ID BIGINT,
    I$PLAN_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE COUNT_SL_ROOMS_CALC (
    I$OBJ_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE CPLAN_COPY (
    I$PLAN_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    OBJ_ID BIGINT,
    OBJ_CAPTION VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CPLAN_PRINT_GET (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CPLAN_ROW_DELETE (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE CPLAN_ROW_GET (
    I$PLAN_ID BIGINT NOT NULL,
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CPLAN_ROW_IMPORT (
    I$PLAN_ID BIGINT,
    I$GRADE_NAME VARCHAR(200),
    I$SUBJECT_NAME VARCHAR(200),
    I$CONTROL_TYPE VARCHAR(200),
    I$DATE DATE,
    I$LESSON_NUM INTEGER,
    I$TEACHER_NAME VARCHAR(1000),
    I$DURATION FLOAT,
    I$USER_ID VARCHAR(40))
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CPLAN_ROW_SET (
    I$PLAN_ID BIGINT NOT NULL,
    I$OBJ_ID BIGINT,
    I$GRADE_ID BIGINT NOT NULL,
    I$SUBJECT_ID BIGINT NOT NULL,
    I$CONTROL_TYPE_ID BIGINT NOT NULL,
    I$DATE DATE NOT NULL,
    I$LESSON_NUM INTEGER,
    I$TEACHER_ID BIGINT,
    I$DUR FLOAT,
    I$USER_ID VARCHAR(40))
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CREATE_CALENDAR_PLAN (
    I$OBJ_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE CREATE_CHECK_PLAN (
    I$OBJ_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE CREATE_CJ_VOSP (
    I$OBJ_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE CREATE_EDU_LOAD (
    I$OBJ_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE CREATE_GZ_FOLDERS
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE CREATE_LOCAL_ACT_FOLDER
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE CREATE_MTL_REPORT (
    I$OBJ_ID BIGINT,
    I$YEAR INTEGER,
    I$PERIOD_ID BIGINT,
    I$USER_ID VARCHAR(40))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE CREATE_REPORT_FOLDERS (
    I$OBJ_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE CREATE_SCHEDULE_DEF (
    I$OBJ_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE CREATE_SNILS_INDEX
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE CUP_EXPORT_COMPONENTS (
    PLAN_ID BIGINT)
RETURNS (
    CMP_ID BIGINT,
    CMP_INDEX BIGINT,
    SUBJ_LINK_ID BIGINT,
    SUBJECT_ID BIGINT,
    SUBJECT_INDEX BIGINT,
    SUBJECT_NAME VARCHAR(1000),
    SUBJECT_CODE VARCHAR(100),
    MASTER_ID BIGINT,
    MASTER_NAME VARCHAR(1000),
    MASTER_CODE VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CUP_EXPORT_LOADS (
    PLAN_ID BIGINT)
RETURNS (
    SUBJECT_ID BIGINT,
    STAGE_ID BIGINT,
    LOAD_ID BIGINT,
    LOAD_WEEKS INTEGER,
    LOAD_HOURS INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CURGROUP_MOVE_PUPIL (
    I$PUPIL_ID BIGINT,
    I$CURGROUP_ID BIGINT,
    I$USER_ID BIGINT,
    I$MOVE_TYPE_ID INTEGER = null,
    I$MOVE_DATE DATE = null,
    I$ORDER_NUMBER VARCHAR(100) = null,
    I$ORDER_DATE DATE = null,
    I$MOVEMENT_SOURCE_ID BIGINT = 902,
    I$LINK_CURGROUP SMALLINT = 0)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE CURRENT_DATE_GET (
    I$DT DATE = CURRENT_DATE,
    I$FORMAT VARCHAR(100) = 'DD.MM.YYYY')
RETURNS (
    DT VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CURRENT_SCHOOL_YEAR_GET (
    I$DT DATE = CURRENT_DATE)
RETURNS (
    Y1 SMALLINT,
    Y2 SMALLINT,
    V1 VARCHAR(12),
    V2 VARCHAR(12))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CURRENT_TIME_GET (
    I$T TIME = CURRENT_TIME)
RETURNS (
    T CHAR(5))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CURRENT_YEAR_GET (
    I$DT DATE = CURRENT_DATE)
RETURNS (
    Y SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CURRICULUM_CONTROL_REPORT1 (
    I$OBJ_ID BIGINT NOT NULL,
    I$STAGE SMALLINT = 0)
RETURNS (
    OOOD_SHORT_NAME VARCHAR(5000),
    OOOD_NUMBER VARCHAR(10),
    DISTRICT_NAME VARCHAR(255),
    EDUCATION_PROGRAM_LEVEL VARCHAR(255),
    PLAN_NAME VARCHAR(255),
    EDUCATION_STANDART VARCHAR(20),
    EXT_SUBJECTS VARCHAR(1000),
    MISSED_SUBJECTS VARCHAR(4000),
    ODD_SUBJECTS VARCHAR(4000),
    MATCH_HOURS_ALL VARCHAR(10),
    MATCH_HOURS_FIX VARCHAR(10),
    MATCH_HOURS_FIL VARCHAR(10))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CURRICULUM_CONTROL_REPORT2 (
    I$OBJ_ID BIGINT NOT NULL)
RETURNS (
    OOOD_SHORT_NAME VARCHAR(5000),
    OOOD_NUMBER VARCHAR(10),
    DISTRICT_NAME VARCHAR(255),
    EDUCATION_PROGRAM_LEVEL VARCHAR(255),
    EDUCATION_STANDART VARCHAR(20),
    CURRICULUM_DONE FLOAT,
    PTP_DONE FLOAT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CURRICULUM_CONTROL_REPORT3 (
    I$OBJ_ID BIGINT NOT NULL)
RETURNS (
    OOOD_SHORT_NAME VARCHAR(5000),
    OOOD_NUMBER VARCHAR(10),
    DISTRICT_NAME VARCHAR(255),
    EDUCATION_PROGRAM_LEVEL VARCHAR(255),
    EDUCATION_STANDART VARCHAR(20),
    LESSON_DONE FLOAT,
    LAB_DONE FLOAT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CURRICULUM_CONTROL_REPORT4 (
    I$OBJ_ID BIGINT)
RETURNS (
    DISTRICT_NAME VARCHAR(255),
    OOOD_SHORT_NAME VARCHAR(1000),
    OOOD_NUMBER VARCHAR(20),
    PLAN_NAME VARCHAR(1000),
    STD_NAME VARCHAR(200),
    WEEK_DAYS VARCHAR(100),
    PROFILE_NAME VARCHAR(255),
    PROF_SUBJECTS VARCHAR(4000),
    MATCH_1 VARCHAR(10),
    MATCH_2 VARCHAR(10),
    MATCH_3 VARCHAR(10),
    MATCH_4 VARCHAR(10),
    MATCH_6A VARCHAR(10),
    MATCH_7 VARCHAR(10))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CURRICULUM_DELTA_INV_SUBJ_GET (
    I$CURRICULUM_ID BIGINT,
    I$COMPONENT_TYPE_ID BIGINT = null,
    I$STD_NUM INTEGER = 1)
RETURNS (
    DELTA INTEGER,
    SUBJECTS_MISS VARCHAR(5000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CURRICULUM_DELTA_SUBJECT_GET (
    I$CURRICULUM_ID BIGINT,
    I$CHECK_CURRICULUM_ID BIGINT,
    I$COMPONENT_TYPE_ID BIGINT NOT NULL)
RETURNS (
    DELTA INTEGER,
    SUBJECTS_MISS VARCHAR(5000),
    SUBJECTS_MORE VARCHAR(5000),
    SUBJECTS_REPLACEMENT VARCHAR(5000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CURRICULUM_DELTA_SUBJECT_GET2 (
    I$CURRICULUM_ID BIGINT,
    I$COMPONENT_TYPE_ID BIGINT = null)
RETURNS (
    DELTA INTEGER,
    SUBJECTS_MISS VARCHAR(5000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CURRICULUM_FILL_REPORT1 (
    I$OBJ_ID BIGINT NOT NULL,
    I$STAGE SMALLINT = null)
RETURNS (
    OOOD_SHORT_NAME VARCHAR(5000),
    OOOD_NUMBER VARCHAR(10),
    DISTRICT_NAME VARCHAR(255),
    EDUCATION_PROGRAM_LEVEL VARCHAR(255),
    PLAN_NAME VARCHAR(255),
    EDUCATION_STANDART VARCHAR(20),
    STAGE_NAME VARCHAR(100),
    WEEK_DAYS VARCHAR(10),
    HOURS_LIMIT INTEGER,
    HOURS_ACT INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CURRICULUM_GUP_HAS_PTP (
    I$CURRICULUM_ID BIGINT,
    I$CHECK_CURRICULUM_ID BIGINT,
    I$COMPONENT_TYPE_ID BIGINT = null)
RETURNS (
    NO_PTP SMALLINT,
    NO_EQUAL_HOURS SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CURRICULUM_GUP_SUBJ_HAS_PTP (
    I$CURRICULUM_ID BIGINT,
    I$CHECK_CURRICULUM_ID BIGINT,
    I$COMPONENT_TYPE_ID BIGINT = null)
RETURNS (
    SUBJECT_ID BIGINT,
    STAGE_ID BIGINT,
    JOURNAL_NAME VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CURRICULUM_GUP_SUBJ_PTP_HOURS (
    I$CURRICULUM_ID BIGINT,
    I$CHECK_CURRICULUM_ID BIGINT,
    I$COMPONENT_TYPE_ID BIGINT = null)
RETURNS (
    SUBJECT_ID BIGINT,
    STAGE_ID BIGINT,
    JOURNAL_NAME VARCHAR(1000),
    CURRICULUM_HOURS INTEGER,
    PTP_HOURS INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CURRICULUM_HOURS_GET (
    I$CURRICULUM_ID BIGINT,
    I$COMPONENT_TYPE_ID BIGINT = null,
    I$SUBJECT_ID BIGINT = null,
    I$STAGE_ID BIGINT = null,
    I$IS_ELECTIVE SMALLINT = null)
RETURNS (
    HOURS INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CURRICULUM_HOURS_GET_CONST (
    LEVEL_ID BIGINT NOT NULL,
    STANDARD_ID BIGINT NOT NULL,
    STAGE_ID BIGINT NOT NULL,
    WEEK_ID BIGINT NOT NULL,
    YEAR_VAL INTEGER = 2023,
    HAS_LANG2 SMALLINT = 0)
RETURNS (
    HOURS INTEGER,
    WEEKS INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CURRICULUM_INV_SUBJ_EXISTS (
    I$CURRICULUM_ID BIGINT,
    I$CHECK_SUBJECT_ID BIGINT,
    I$COMPONENT_TYPE_ID BIGINT,
    I$CHECK_SOURCE SMALLINT = 0)
RETURNS (
    EXIST SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CURRICULUM_REPLACE_SUBJECT_LIST (
    I$CURRICULUM_ID BIGINT,
    I$COMPONENT_TYPE_ID BIGINT,
    I$SUBJECT_ID BIGINT)
RETURNS (
    SUBJECT_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CURRICULUM_STAGE_LIST (
    I$STAGE_ID BIGINT,
    I$CURRENT_STAGE_TYPE_FL SMALLINT = 0)
RETURNS (
    STAGE_ID BIGINT,
    STAGE_TYPE_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CURRICULUM_SUBJECT_HOURS_NEQ (
    I$CURRICULUM_ID BIGINT,
    I$CHECK_CURRICULUM_ID BIGINT,
    I$COMPONENT_TYPE_ID BIGINT NOT NULL,
    I$YEAR INTEGER,
    I$LANG2 SMALLINT)
RETURNS (
    SUBJECT_ID BIGINT,
    STAGE_ID BIGINT,
    HOURS INTEGER,
    CHECK_HOURS INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CURRICULUM_SUBJECT_LIST (
    I$STAGE_ID BIGINT,
    I$F1 SMALLINT = 0,
    SUBJECT_ID BIGINT = null)
RETURNS (
    OBJ_ID BIGINT,
    OBJ_CAPTION VARCHAR(1000),
    SORT_ORDER DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CURRICULUM_SUBJECT_LIST_HS (
    I$CURRICULUM_ID BIGINT)
RETURNS (
    SUBJECT_ID BIGINT,
    HOURS INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CURRICULUM_SUBJECT_TO_FGOS (
    I$OBJ_ID BIGINT)
RETURNS (
    VAL VARCHAR(4000),
    I BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE CURRICULUM_VIRTUAL_SUBJECT_LIST (
    I$CURRICULUM_ID BIGINT,
    I$COMPONENT_TYPE_ID BIGINT,
    I$SOURCE SMALLINT = 0)
RETURNS (
    SUBJECT_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DATABUILDER_SETUP (
    I$OBJ_ID BIGINT,
    I$LEVEL_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DATAPACKET_VALIDATE (
    REG_NUMBER BIGINT,
    PACKET_TYPE VARCHAR(25),
    PACKET_DATE TIMESTAMP)
RETURNS (
    N SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DATE2ISO (
    D TIMESTAMP,
    FULL_TIME SMALLINT = 1)
RETURNS (
    VAL VARCHAR(64))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DATE2SCRIPT (
    I$DATE DATE,
    I$PLAIN_NUM SMALLINT = 0)
RETURNS (
    VAL VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DATE2STR (
    A_DATE DATE,
    LEADING_ZERO SMALLINT = 1)
RETURNS (
    RESULT VARCHAR(10))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DATIVECASE (
    I$F VARCHAR(250),
    I$I VARCHAR(250),
    I$O VARCHAR(250),
    I$SEX SMALLINT = null)
RETURNS (
    F VARCHAR(250),
    I VARCHAR(250),
    O VARCHAR(250))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DAYS_COUNT_TO_WORK_TIME (
    C INTEGER)
RETURNS (
    WORK_TIME VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_DELETE_LEAVE (
    I$VACANCY_ID BIGINT,
    I$USER_ID VARCHAR(40))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE DC_LINK_SET (
    I$PARENT_ID BIGINT,
    I$CHILD_ID BIGINT,
    I$LEVEL_ID BIGINT,
    I$SORT_ORDER BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    LINK_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_LIST_CONTENT (
    I$OBJ_ID BIGINT,
    I$PARAM_ID BIGINT,
    I$USER_ID VARCHAR(40),
    I$FILTERED SMALLINT = 0)
RETURNS (
    LIST_ID BIGINT,
    LISTVAL_ID BIGINT,
    PARENT_ID BIGINT,
    VAL VARCHAR(4000),
    TAG VARCHAR(100),
    "FILTER" VARCHAR(255),
    SORT_ORDER SMALLINT,
    COST FLOAT,
    IS_DEL SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_LPJ_SERIALIZE (
    I$DATE_FROM TIMESTAMP,
    I$DATE_TO TIMESTAMP = current_timestamp)
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_LPJ_SERIALIZE_FILES (
    I$DATE_FROM TIMESTAMP,
    I$DATE_TO TIMESTAMP = current_timestamp)
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_LPJ_SERIALIZE_LESSONS (
    I$DATE_FROM TIMESTAMP,
    I$DATE_TO TIMESTAMP = current_timestamp)
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_LPJ_SERIALIZE_MARKS (
    I$DATE_FROM TIMESTAMP,
    I$DATE_TO TIMESTAMP = current_timestamp)
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_LPJ_SERIALIZE_MOVES (
    I$DATE_FROM TIMESTAMP,
    I$DATE_TO TIMESTAMP = current_timestamp)
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_LPJ_SERIALIZE_MSG (
    I$DATE_FROM TIMESTAMP,
    I$DATE_TO TIMESTAMP = current_timestamp)
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_LPJ_SERIALIZE_MSGRCPT (
    I$DATE_FROM TIMESTAMP,
    I$DATE_TO TIMESTAMP = current_timestamp)
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_LPJ_SERIALIZE_RATING (
    I$DATE_FROM TIMESTAMP,
    I$DATE_TO TIMESTAMP = current_timestamp)
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_LPJ_SERIALIZE_SCHEDULE (
    I$DATE_FROM TIMESTAMP,
    I$DATE_TO TIMESTAMP = current_timestamp)
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_MAX_CHATS (
    I$OBJ_ID BIGINT,
    I$TIMEMARK TIMESTAMP)
RETURNS (
    OU_TITLE VARCHAR(1000),
    CLASS_ID BIGINT,
    CLASS_CAPTION VARCHAR(400),
    CLASS_INDEX INTEGER,
    CLASS_DIGIT VARCHAR(100),
    CHAT_ID VARCHAR(40),
    CHAT_TYPE VARCHAR(20),
    CHAT_TITLE VARCHAR(1000),
    SUBJECT_NAME VARCHAR(400),
    CLASS_CODE VARCHAR(80),
    MEMBER_ID VARCHAR(40),
    MEMBER_INT_ID BIGINT,
    IS_ADMIN SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_MOVEMENT_DELETE (
    I$OBJ_ID BIGINT,
    I$SIDE SMALLINT,
    I$USER_ID VARCHAR(40))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE DC_MOVEMENT_REACCEPT (
    I$STUDENT_ID BIGINT,
    I$GROUP_ID BIGINT,
    I$ACTION_DATE DATE,
    I$ACTION_TYPE BIGINT,
    I$ORDER_NUMBER VARCHAR(100),
    I$ORDER_DATE DATE,
    I$GUP_ID BIGINT,
    I$USER_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE DC_MOVEMENT_SET (
    I$MOVE_ID BIGINT,
    I$FIELD_NAME VARCHAR(100),
    I$VAL DATE,
    I$VAL2 VARCHAR(100),
    I$USER_ID VARCHAR(40))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE DC_MS_ADAPTATION (
    I$DT1 TIMESTAMP,
    I$DT2 TIMESTAMP NOT NULL = current_timestamp)
RETURNS (
    ID VARCHAR(60),
    SCHOOL_ID VARCHAR(60),
    CODE INTEGER,
    NAME VARCHAR(1000),
    CREATE_DATETIME TIMESTAMP,
    SEND_DATETIME TIMESTAMP)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_MS_ADDRESS (
    I$DT1 TIMESTAMP,
    I$DT2 TIMESTAMP NOT NULL = current_timestamp)
RETURNS (
    ID VARCHAR(60),
    USE_ADDRESS INTEGER,
    TYPE_ADDRESS INTEGER,
    TEXT VARCHAR(1000),
    CITY VARCHAR(400),
    DISTRICT VARCHAR(400),
    STATE VARCHAR(400),
    POSTAL_CODE VARCHAR(100),
    COUNTRY VARCHAR(10),
    START_DATETIME TIMESTAMP,
    END_DATETIME TIMESTAMP,
    FLAT VARCHAR(20),
    BUILDING VARCHAR(20),
    HOUSE VARCHAR(20),
    STREET VARCHAR(400),
    CREATE_DATETIME TIMESTAMP,
    SEND_DATETIME TIMESTAMP)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_MS_CHANGES (
    I$DT1 TIMESTAMP,
    I$DT2 TIMESTAMP NOT NULL = current_timestamp)
RETURNS (
    ID BIGINT,
    LESSON_ID BIGINT,
    CHANGE_DATETIME TIMESTAMP,
    AUTHOR VARCHAR(400),
    REASON VARCHAR(100),
    CREATE_DATETIME TIMESTAMP,
    SEND_DATETIME TIMESTAMP)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_MS_CHANGE_DETAILS (
    I$DT1 TIMESTAMP,
    I$DT2 TIMESTAMP NOT NULL = current_timestamp)
RETURNS (
    ID VARCHAR(60),
    CHANGE_ID BIGINT,
    TYPE_CHANGE INTEGER,
    VALUE_OLD VARCHAR(2000),
    VALUE_NEW VARCHAR(2000),
    DESCRIPTION VARCHAR(1000),
    CREATE_DATETIME TIMESTAMP,
    SEND_DATETIME TIMESTAMP)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_MS_CLASSES_PERIODS (
    I$DT1 TIMESTAMP,
    I$DT2 TIMESTAMP NOT NULL = CURRENT_TIMESTAMP)
RETURNS (
    PERIOD_ID VARCHAR(40),
    CLASS_ID VARCHAR(40),
    SCHOOL_ID VARCHAR(40),
    SCHOOL_NAME VARCHAR(400),
    STUDENT_ID VARCHAR(60),
    CLASS_NUM VARCHAR(20),
    CLASS_LETTER VARCHAR(20),
    CLASS_YEAR_FROM INTEGER,
    PERIOD_NUM INTEGER,
    PERIOD_START_DATE DATE,
    PERIOD_END_DATE DATE,
    PERIOD_TYPE_CODE VARCHAR(20),
    PERIOD_TYPE_VALUE INTEGER,
    PERIOD_TYPE_DESCRIOPTION VARCHAR(100),
    PERIOD_IS_STUDY VARCHAR(10),
    DIARY_ID VARCHAR(40),
    DIARY_URL VARCHAR(200),
    DIARY_LOGIN_PASS_AUTH SMALLINT,
    CLASS_START_DATE DATE,
    CLASS_END_DATE DATE,
    SUBJECTS_COUNT INTEGER,
    IS_LAST_CLASS VARCHAR(10),
    PART_OF_CLASS VARCHAR(40),
    CLASS_PLACES INTEGER,
    CLASS_LOCATION VARCHAR(100),
    ATTENDANCE VARCHAR(100),
    EDU_PROGRAM_NAME VARCHAR(200),
    TIMEZONE VARCHAR(20),
    SCHEDULE_URL VARCHAR(200),
    CREATE_DATETIME TIMESTAMP,
    SEND_DATETIME TIMESTAMP,
    PERIOD_ID_CTL BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_MS_COMMONPLANMARKS (
    I$DT1 TIMESTAMP,
    I$DT2 TIMESTAMP NOT NULL = CURRENT_TIMESTAMP)
RETURNS (
    PERIOD_ID VARCHAR(40),
    STUDENT_ID VARCHAR(60),
    CLASS_ID VARCHAR(40),
    TOTAL VARCHAR(20),
    FIVEPOINT_TOTAL VARCHAR(20),
    SCHOOL_ID VARCHAR(40),
    CLASS_NUM INTEGER,
    CLASS_YEAR_FROM INTEGER,
    MARK_SCALE_CODE VARCHAR(20),
    MARK_SCALE_VALUE INTEGER,
    MARK_SCALE_DESCRIPTION VARCHAR(40),
    CREATE_DATETIME TIMESTAMP,
    SEND_DATETIME TIMESTAMP)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_MS_CSTUDENTS_EDU_GROUP (
    I$DT1 TIMESTAMP,
    I$DT2 TIMESTAMP NOT NULL = CURRENT_TIMESTAMP)
RETURNS (
    STUDENT_ID VARCHAR(60),
    EDU_GROUP_URI VARCHAR(200),
    CREATE_DATETIME TIMESTAMP,
    SEND_DATETIME TIMESTAMP)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_MS_DOCUMENTS (
    I$DT1 TIMESTAMP,
    I$DT2 TIMESTAMP NOT NULL = current_timestamp)
RETURNS (
    ID VARCHAR(60),
    DOC_TYPE INTEGER,
    NUM VARCHAR(100),
    SERIES VARCHAR(100),
    ISSUE_DATE DATE,
    WHO_ISSUE VARCHAR(1000),
    COMMENT VARCHAR(1000),
    CREATE_DATETIME TIMESTAMP,
    SEND_DATETIME TIMESTAMP)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_MS_ECONOMY_ACTIVITY (
    I$DT1 TIMESTAMP,
    I$DT2 TIMESTAMP NOT NULL = current_timestamp)
RETURNS (
    ID VARCHAR(600),
    SCHOOL_ID VARCHAR(40),
    CODE VARCHAR(100),
    NAME VARCHAR(400),
    IS_MAIN VARCHAR(10),
    CREATE_DATETIME TIMESTAMP,
    SEND_DATETIME TIMESTAMP)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_MS_EDU_GROUPS (
    I$DT1 TIMESTAMP,
    I$DT2 TIMESTAMP NOT NULL = current_timestamp)
RETURNS (
    URI VARCHAR(200),
    VERSION VARCHAR(60),
    ID VARCHAR(60),
    SCHOOL_ID VARCHAR(60),
    ACADEM_YEAR INTEGER,
    START_DATETIME TIMESTAMP,
    END_DATETIME TIMESTAMP,
    TOTAL_PLACES INTEGER,
    STATUS INTEGER,
    CREATE_DATETIME TIMESTAMP,
    SEND_DATETIME TIMESTAMP)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_MS_EDU_LOCATIONS (
    I$DT1 TIMESTAMP,
    I$DT2 TIMESTAMP NOT NULL = current_timestamp)
RETURNS (
    ID VARCHAR(60),
    STATUS INTEGER,
    NAME VARCHAR(1000),
    DESCRIPTION VARCHAR(1000),
    MODE INTEGER,
    ADDRESS_ID VARCHAR(60),
    PHYSICAL_TYPE_CODE VARCHAR(60),
    PHYSICAL_TYPE_VALUE INTEGER,
    PHYSICAL_TYPE_DESCRIPTION VARCHAR(100),
    LONGITUDE DOUBLE PRECISION,
    LATITUDE VARCHAR(60),
    ALTITUDE VARCHAR(60),
    MANAGING_ORG VARCHAR(60),
    EDUCATIONAL_ORG VARCHAR(60),
    PART_OF_LOCATION VARCHAR(60),
    CREATE_DATETIME TIMESTAMP,
    SEND_DATETIME TIMESTAMP)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_MS_EDU_LOCATIONS_CLASSES (
    I$DT1 TIMESTAMP,
    I$DT2 TIMESTAMP NOT NULL = CURRENT_TIMESTAMP)
RETURNS (
    EDU_LOCATION_ID VARCHAR(60),
    CLASS_ID VARCHAR(60),
    CREATE_DATETIME TIMESTAMP,
    SEND_DATETIME TIMESTAMP)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_MS_EVENTS (
    I$DT1 TIMESTAMP,
    I$DT2 TIMESTAMP NOT NULL = CURRENT_TIMESTAMP)
RETURNS (
    EVENT_ID VARCHAR(60),
    STUDENT_ID VARCHAR(60),
    NAME VARCHAR(400),
    START_DATETIME TIMESTAMP,
    END_DATETIME TIMESTAMP,
    AUTHOR VARCHAR(200),
    TYPE_CODE VARCHAR(20),
    TYPE_VALUE INTEGER,
    TYPE_DESCRIPTION VARCHAR(100),
    DESCRIPTION VARCHAR(1000),
    PLACE VARCHAR(200),
    STATUS_CODE VARCHAR(20),
    STATUS_VALUE INTEGER,
    STATUS_DESCRIPTION VARCHAR(200),
    LINK VARCHAR(400),
    TIMEZONE VARCHAR(20),
    IS_MANDATORY SMALLINT,
    CREATE_DATETIME TIMESTAMP,
    SEND_DATETIME TIMESTAMP)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_MS_GROUPSS (
    I$DT1 TIMESTAMP,
    I$DT2 TIMESTAMP NOT NULL = CURRENT_TIMESTAMP)
RETURNS (
    ID VARCHAR(60),
    EDU_GROUP_URI VARCHAR(200),
    TYPE_GROUPSS VARCHAR(60),
    NAME VARCHAR(1000),
    EDU_LOCATIONS_ID VARCHAR(60),
    IS_LAST VARCHAR(10),
    PARTOF VARCHAR(60),
    PLACES INTEGER,
    STATUS VARCHAR(60),
    REASON VARCHAR(60),
    CREATE_DATETIME TIMESTAMP,
    SEND_DATETIME TIMESTAMP)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_MS_HOMEWORKS (
    I$DT1 TIMESTAMP,
    I$DT2 TIMESTAMP NOT NULL = CURRENT_TIMESTAMP)
RETURNS (
    ID VARCHAR(40),
    DESCRIPTION VARCHAR(4000),
    ISSUE_DATE DATE,
    PLAN_READY_DATE DATE,
    ISSUE_LESSON_ID VARCHAR(40),
    READY_LESSON_ID VARCHAR(40),
    CREATE_DATETIME TIMESTAMP,
    SEND_DATETIME TIMESTAMP)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_MS_HOMEWORKS_MATERIALS (
    I$DT1 TIMESTAMP,
    I$DT2 TIMESTAMP NOT NULL = CURRENT_TIMESTAMP)
RETURNS (
    HOMEWORK_ID VARCHAR(60),
    MATERIAL_ID VARCHAR(60),
    CREATE_DATETIME TIMESTAMP,
    SEND_DATETIME TIMESTAMP)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_MS_HOMEWORKS_STUDENTS (
    I$DT1 TIMESTAMP,
    I$DT2 TIMESTAMP NOT NULL = CURRENT_TIMESTAMP)
RETURNS (
    HOMEWORK_ID VARCHAR(40),
    STUDENT_ID VARCHAR(60),
    CREATE_DATETIME TIMESTAMP,
    SEND_DATETIME TIMESTAMP)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_MS_LESSONS (
    I$DT1 TIMESTAMP,
    I$DT2 TIMESTAMP NOT NULL = CURRENT_TIMESTAMP)
RETURNS (
    ID VARCHAR(40),
    PERIOD_ID VARCHAR(40),
    CLASS_ID VARCHAR(40),
    EDU_LOCATIONS_ID VARCHAR(40),
    SUBJECT_ID VARCHAR(40),
    START_DATETIME TIMESTAMP,
    END_DATETIME TIMESTAMP,
    ROOM VARCHAR(400),
    TEACHER_ID VARCHAR(60),
    ACTIVE VARCHAR(10),
    DESCRIPTION VARCHAR(1000),
    THEME VARCHAR(1000),
    IS_DISTANT SMALLINT,
    LINK VARCHAR(1000),
    SUBJECT_NAME VARCHAR(1000),
    LESSON_PLAN_ID VARCHAR(100),
    LESSON_TYPE SMALLINT,
    CREATE_DATETIME TIMESTAMP,
    SEND_DATETIME TIMESTAMP)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_MS_LESSONSCOUNT (
    I$DT1 TIMESTAMP,
    I$DT2 TIMESTAMP NOT NULL = current_timestamp)
RETURNS (
    SUBJECT_ID BIGINT,
    PERIOD_ID VARCHAR(20),
    STUDENT_ID VARCHAR(60),
    CLASS_ID VARCHAR(40),
    LESSONS_COUNT INTEGER,
    ALLOWED_SKIPPINGS_COUNT INTEGER,
    NOT_ALLOWED_SKIPPINGS_COUNT INTEGER,
    SICK_DAY_COUNT INTEGER,
    LATENESS_COUNT INTEGER,
    SUBJECT_NAME VARCHAR(400),
    CREATE_DATETIME TIMESTAMP,
    SEND_DATETIME TIMESTAMP)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_MS_LESSONS_MARKS (
    I$DT1 TIMESTAMP,
    I$DT2 TIMESTAMP NOT NULL = CURRENT_TIMESTAMP)
RETURNS (
    LESSON_ID VARCHAR(40),
    MARK_ID VARCHAR(40),
    CREATE_DATETIME TIMESTAMP,
    SEND_DATETIME TIMESTAMP)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_MS_LESSONS_MATERIALS (
    I$DT1 TIMESTAMP,
    I$DT2 TIMESTAMP NOT NULL = CURRENT_TIMESTAMP)
RETURNS (
    LESSON_ID VARCHAR(60),
    MATERIAL_ID VARCHAR(60),
    CREATE_DATETIME TIMESTAMP,
    SEND_DATETIME TIMESTAMP)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_MS_LESSONS_STUDENTS (
    I$DT1 TIMESTAMP,
    I$DT2 TIMESTAMP NOT NULL = CURRENT_TIMESTAMP)
RETURNS (
    LESSON_ID VARCHAR(40),
    STUDENT_ID VARCHAR(60),
    CREATE_DATETIME TIMESTAMP,
    SEND_DATETIME TIMESTAMP)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_MS_LESSON_PLAN (
    I$DT1 TIMESTAMP,
    I$DT2 TIMESTAMP NOT NULL = current_timestamp)
RETURNS (
    ID VARCHAR(100),
    LESSON_THEME VARCHAR(1000),
    UNIT_ID VARCHAR(40),
    LESSON_NUMBER INTEGER,
    HOURS_COUNT VARCHAR(40),
    DESCRIPTION VARCHAR(1000),
    CREATE_DATETIME TIMESTAMP,
    SEND_DATETIME TIMESTAMP)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_MS_LOCATION_PROPERTIES (
    I$DT1 TIMESTAMP,
    I$DT2 TIMESTAMP NOT NULL = current_timestamp)
RETURNS (
    ID VARCHAR(60),
    EDU_LOCATION_ID VARCHAR(60),
    SEQUENCE VARCHAR(100),
    CODE VARCHAR(60),
    TYPE_LOCATION VARCHAR(60),
    LABEL VARCHAR(1000),
    DESCRIPTION VARCHAR(1000),
    VALUECODING VARCHAR(100),
    VALUESTRING VARCHAR(1000),
    CREATE_DATETIME TIMESTAMP,
    SEND_DATETIME TIMESTAMP)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_MS_MARKS (
    I$DT1 TIMESTAMP,
    I$DT2 TIMESTAMP NOT NULL = CURRENT_TIMESTAMP)
RETURNS (
    ID BIGINT,
    STUDENT_ID VARCHAR(60),
    SUBJECT_ID BIGINT,
    PERIOD_ID VARCHAR(40),
    CLASS_ID VARCHAR(40),
    MARK_VALUE1 VARCHAR(100),
    MARK_VALUE2 VARCHAR(100),
    WEIGHT VARCHAR(40),
    MARK_DATE DATE,
    SUBJECT_NAME VARCHAR(400),
    WORK_TYPE_CODE VARCHAR(20),
    WORK_TYPE_VALUE INTEGER,
    WORK_TYPE_DESCRIPTION VARCHAR(40),
    WORK_NAME VARCHAR(100),
    COMMENT VARCHAR(1000),
    SCALE_CODE VARCHAR(20),
    SCALE_VALUE INTEGER,
    SCALE_DESCRIPTION VARCHAR(40),
    SCHOOL_ID VARCHAR(40),
    CLASS_NUM INTEGER,
    CLASS_YEAR_FROM INTEGER,
    WORK_KIND VARCHAR(100),
    CREATE_DATETIME TIMESTAMP,
    SEND_DATETIME TIMESTAMP)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_MS_MATERIALS (
    I$DT1 TIMESTAMP,
    I$DT2 TIMESTAMP NOT NULL = current_timestamp)
RETURNS (
    ID VARCHAR(40),
    NAME VARCHAR(400),
    SIZE INTEGER,
    LINK VARCHAR(400),
    CREATE_DATETIME TIMESTAMP,
    SEND_DATETIME TIMESTAMP)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_MS_ORGANISATION_UNIT (
    I$DT1 TIMESTAMP,
    I$DT2 TIMESTAMP NOT NULL = current_timestamp)
RETURNS (
    CODE VARCHAR(60),
    NAME VARCHAR(1000),
    PART_OF_UNIT VARCHAR(60),
    CREATE_DATETIME TIMESTAMP,
    SEND_DATETIME TIMESTAMP)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_MS_ORG_ALIAS (
    I$DT1 TIMESTAMP,
    I$DT2 TIMESTAMP NOT NULL = current_timestamp)
RETURNS (
    ID VARCHAR(60),
    ORGANISATION_ID VARCHAR(60),
    OTHER_VALUE VARCHAR(1000),
    CREATE_DATETIME TIMESTAMP,
    SEND_DATETIME TIMESTAMP)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_MS_ORG_MEMBER (
    I$DT1 TIMESTAMP,
    I$DT2 TIMESTAMP NOT NULL = CURRENT_TIMESTAMP)
RETURNS (
    ID VARCHAR(60),
    ORGANISATION_ID VARCHAR(60),
    SCHOOL_ID VARCHAR(60),
    COLLEGES_ID VARCHAR(60),
    ORGANISATION_NAME VARCHAR(1000),
    CREATE_DATETIME TIMESTAMP,
    SEND_DATETIME TIMESTAMP)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_MS_PL_ORG_UNIT (
    I$DT1 TIMESTAMP,
    I$DT2 TIMESTAMP NOT NULL = current_timestamp)
RETURNS (
    POSITION_LIST_URI VARCHAR(200),
    ORGANISATION_UNIT_CODE VARCHAR(60),
    CREATE_DATETIME TIMESTAMP,
    SEND_DATETIME TIMESTAMP)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_MS_PMARKS (
    I$DT1 TIMESTAMP,
    I$DT2 TIMESTAMP NOT NULL = CURRENT_TIMESTAMP)
RETURNS (
    ID VARCHAR(100),
    PERIOD_ID VARCHAR(40),
    SUBJECT_ID BIGINT,
    STUDENT_ID VARCHAR(60),
    CLASS_ID VARCHAR(40),
    SUBJECT_NAME VARCHAR(400),
    FACT VARCHAR(20),
    FIVEPOINT_FACT VARCHAR(20),
    RECENT_PLAN VARCHAR(20),
    FIVEPOINT_RECENT_PLAN VARCHAR(20),
    SCHOOL_ID VARCHAR(40),
    CLASS_NUM INTEGER,
    CLASS_YEAR_FROM INTEGER,
    MARK_SCALE_CODE VARCHAR(20),
    MARK_SCALE_VALUE INTEGER,
    MARK_SCALE_DESCRIPTION VARCHAR(40),
    CREATE_DATETIME TIMESTAMP,
    SEND_DATETIME TIMESTAMP)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_MS_POSITIONS (
    I$DT1 TIMESTAMP,
    I$DT2 TIMESTAMP NOT NULL = current_timestamp)
RETURNS (
    CODE VARCHAR(60),
    POSITION_LIST_URI VARCHAR(200),
    NAME VARCHAR(1000),
    FTE VARCHAR(40),
    RATE VARCHAR(40),
    SALARY VARCHAR(40),
    EXTRA_BUDGET VARCHAR(40),
    NOTE VARCHAR(1000),
    CREATE_DATETIME TIMESTAMP,
    SEND_DATETIME TIMESTAMP)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_MS_POSITION_LIST (
    I$DT1 TIMESTAMP,
    I$DT2 TIMESTAMP NOT NULL = current_timestamp)
RETURNS (
    URI VARCHAR(200),
    VERSION VARCHAR(60),
    ID VARCHAR(60),
    KIND VARCHAR(60),
    SCHOOL_ID VARCHAR(60),
    ACADEM_YEAR INTEGER,
    START_DATETIME TIMESTAMP,
    END_DATETIME TIMESTAMP,
    TOTAL_FTE VARCHAR(40),
    TOTAL_RATE VARCHAR(40),
    TOTAL_SALARY VARCHAR(40),
    TOTAL_EXTRA_BUDGET VARCHAR(40),
    NOTE VARCHAR(1000),
    STATUS INTEGER,
    REASON_CODE VARCHAR(20),
    REASON_VALUE INTEGER,
    REASON_DESCRIPTION VARCHAR(100),
    CREATE_DATETIME TIMESTAMP,
    SEND_DATETIME TIMESTAMP)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_MS_PRECALC
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE DC_MS_P_ORG_UNIT (
    I$DT1 TIMESTAMP,
    I$DT2 TIMESTAMP NOT NULL = current_timestamp)
RETURNS (
    POSITION_CODE VARCHAR(60),
    ORGANISATION_UNIT_CODE VARCHAR(60),
    CREATE_DATETIME TIMESTAMP,
    SEND_DATETIME TIMESTAMP)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_MS_QUALIFICATION (
    I$DT1 TIMESTAMP,
    I$DT2 TIMESTAMP NOT NULL = current_timestamp)
RETURNS (
    ID VARCHAR(60),
    TYPE_QUALIFICATION INTEGER,
    CODE INTEGER,
    NAME VARCHAR(1000),
    QUANTITY VARCHAR(40),
    TEACHER_ID VARCHAR(60),
    START_DATETIME TIMESTAMP,
    END_DATETIME TIMESTAMP,
    STATUS_CODE VARCHAR(40),
    STATUS_VALUE INTEGER,
    STATUS_DESCRIPTION VARCHAR(400),
    REASON_CODE VARCHAR(40),
    REASON_VALUE INTEGER,
    REASON_DESCRIPTION VARCHAR(400),
    CREATE_DATETIME TIMESTAMP,
    SEND_DATETIME TIMESTAMP)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_MS_REGION_EXPORT (
    I$RAISE SMALLINT = 1,
    I$TYPE INTEGER = 403)
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_MS_REP_CITIZENSHIP (
    I$DT1 TIMESTAMP,
    I$DT2 TIMESTAMP NOT NULL = CURRENT_TIMESTAMP)
RETURNS (
    ID VARCHAR(60),
    REPRESENTATIVE_ID VARCHAR(60),
    CODE VARCHAR(40),
    NAME VARCHAR(100),
    CREATE_DATETIME TIMESTAMP,
    SEND_DATETIME TIMESTAMP,
    ID_HASH_GOST256 VARCHAR(200))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_MS_REP_SCHOOL (
    I$DT1 TIMESTAMP,
    I$DT2 TIMESTAMP NOT NULL = CURRENT_TIMESTAMP)
RETURNS (
    ID VARCHAR(60),
    OID VARCHAR(40),
    AUTH_LINK VARCHAR(200),
    VK_ID VARCHAR(40),
    FIRSTNAME VARCHAR(100),
    LASTNAME VARCHAR(100),
    PATRONYMIC VARCHAR(100),
    HASH_GOST2012 VARCHAR(200),
    HASH_NUM INTEGER,
    HASH_GOST2012_2 VARCHAR(200),
    HASH_NUM_2 INTEGER,
    HASH_GOST2012_3 VARCHAR(200),
    HASH_NUM_3 INTEGER,
    BIRTHDATE DATE,
    E_MAIL VARCHAR(100),
    GENDER_CODE VARCHAR(20),
    GENDER_VALUE INTEGER,
    GENDER_DESCRIPTION VARCHAR(100),
    ACTIVE VARCHAR(20),
    CREATE_DATETIME TIMESTAMP,
    SEND_DATETIME TIMESTAMP,
    ID_HASH_GOST256 VARCHAR(200))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_MS_REP_STD_SCHOOL (
    I$DT1 TIMESTAMP,
    I$DT2 TIMESTAMP NOT NULL = CURRENT_TIMESTAMP)
RETURNS (
    STUDENT_ID VARCHAR(60),
    REPRESENTATIVE_ID VARCHAR(60),
    REP_ID_HASH_GOST256 VARCHAR(200),
    APPROVE_DOC_ID VARCHAR(60),
    RELATIONSHIP_CODE VARCHAR(40),
    RELATIONSHIP_VALUE INTEGER,
    RELATIONSHIP_DESCRIPTION VARCHAR(100),
    START_DATETIME TIMESTAMP,
    END_DATETIME TIMESTAMP,
    STATUS_CODE VARCHAR(40),
    STATUS_VALUE INTEGER,
    STATUS_DESCRIPTION VARCHAR(100),
    REASON_CODE VARCHAR(40),
    REASON_VALUE INTEGER,
    REASON_DESCRIPTION VARCHAR(100),
    CREATE_DATETIME TIMESTAMP,
    SEND_DATETIME TIMESTAMP)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_MS_SCHOOL_CLASSES (
    I$DT1 TIMESTAMP,
    I$DT2 TIMESTAMP NOT NULL = CURRENT_TIMESTAMP)
RETURNS (
    ID VARCHAR(60),
    SCHOOL_ID VARCHAR(60),
    TEACHER_ID VARCHAR(60),
    CLASS_NUM INTEGER,
    CLASS_LETTER VARCHAR(400),
    ACADEM_YEAR INTEGER,
    CLASS_START_DATE DATE,
    CLASS_END_DATE DATE,
    ATTENDANCE VARCHAR(100),
    SHIFT INTEGER,
    CORRECTION_CLASS VARCHAR(20),
    MARK_SCALE_VALUE INTEGER,
    MARK_SCALE_CODE VARCHAR(100),
    CREATE_DATETIME TIMESTAMP,
    SEND_DATETIME TIMESTAMP)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_MS_SKIPPINGS (
    I$DT1 TIMESTAMP,
    I$DT2 TIMESTAMP NOT NULL = CURRENT_TIMESTAMP)
RETURNS (
    ID VARCHAR(60),
    STUDENT_ID VARCHAR(60),
    LESSON_ID VARCHAR(40),
    SKIP_DATE DATE,
    TYPE_CODE VARCHAR(100),
    TYPE_VALUE INTEGER,
    TYPE_DESCRIPTION VARCHAR(100),
    DESCRIPTION VARCHAR(1000),
    MINUTES INTEGER,
    CREATE_DATETIME TIMESTAMP,
    SEND_DATETIME TIMESTAMP)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_MS_SPECIALITY (
    I$DT1 TIMESTAMP,
    I$DT2 TIMESTAMP NOT NULL = current_timestamp)
RETURNS (
    ID VARCHAR(60),
    TEACHER_ROLE_ID VARCHAR(60),
    CODE VARCHAR(100),
    NAME VARCHAR(1000),
    CREATE_DATETIME TIMESTAMP,
    SEND_DATETIME TIMESTAMP)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_MS_STATCOMMON (
    I$DT1 TIMESTAMP,
    I$DT2 TIMESTAMP NOT NULL = CURRENT_TIMESTAMP)
RETURNS (
    PERIOD_ID VARCHAR(40),
    STUDENT_ID VARCHAR(60),
    START_OF_WEEK DATE,
    CLASS_ID VARCHAR(40),
    DATETIME TIMESTAMP,
    TOTAL VARCHAR(20),
    FIVEPOINT_TOTAL VARCHAR(20),
    TEST VARCHAR(20),
    FIVEPOINT_TEST VARCHAR(20),
    SCHOOL_ID VARCHAR(40),
    CLASS_NUM INTEGER,
    CLASS_YEAR_FROM INTEGER,
    MARK_SCALE_CODE VARCHAR(20),
    MARK_SCALE_VALUE INTEGER,
    MARK_SCALE_DESCRIPTION VARCHAR(40),
    CREATE_DATETIME TIMESTAMP,
    SEND_DATETIME TIMESTAMP)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_MS_STATSUBJECT (
    I$DT1 TIMESTAMP,
    I$DT2 TIMESTAMP NOT NULL = CURRENT_TIMESTAMP)
RETURNS (
    PERIOD_ID VARCHAR(40),
    STUDENT_ID VARCHAR(60),
    SUBJECT_ID BIGINT,
    START_OF_WEEK DATE,
    CLASS_ID VARCHAR(40),
    DATETIME TIMESTAMP,
    TOTAL VARCHAR(20),
    FIVEPOINT_TOTAL VARCHAR(20),
    TEST VARCHAR(20),
    FIVEPOINT_TEST VARCHAR(20),
    SCHOOL_ID VARCHAR(40),
    CLASS_NUM INTEGER,
    CLASS_YEAR_FROM INTEGER,
    MARK_SCALE_CODE VARCHAR(20),
    MARK_SCALE_VALUE INTEGER,
    MARK_SCALE_DESCRIPTION VARCHAR(40),
    CREATE_DATETIME TIMESTAMP,
    SEND_DATETIME TIMESTAMP)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_MS_STUDENTS_COLLEGE (
    I$DT1 TIMESTAMP,
    I$DT2 TIMESTAMP NOT NULL = current_timestamp)
RETURNS (
    STUDENT_ID VARCHAR(60))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_MS_STUDENTS_SCHOOL (
    I$DT1 TIMESTAMP,
    I$DT2 TIMESTAMP NOT NULL = CURRENT_TIMESTAMP)
RETURNS (
    ID VARCHAR(60),
    OID VARCHAR(40),
    AUTH_LINK VARCHAR(200),
    VK_ID VARCHAR(40),
    FIRSTNAME VARCHAR(100),
    LASTNAME VARCHAR(100),
    PATRONYMIC VARCHAR(100),
    HASH_GOST2012 VARCHAR(200),
    HASH_NUM INTEGER,
    HASH_GOST2012_2 VARCHAR(200),
    HASH_NUM_2 INTEGER,
    HASH_GOST2012_3 VARCHAR(200),
    HASH_NUM_3 INTEGER,
    BIRTHDATE VARCHAR(10),
    BIRTHPLACE VARCHAR(400),
    SNILS VARCHAR(40),
    E_MAIL VARCHAR(100),
    NUMB_PASSPORT VARCHAR(20),
    SER_PASSPORT VARCHAR(20),
    DATA_PASSPORT VARCHAR(10),
    GENDER_CODE VARCHAR(10),
    GENDER_VALUE INTEGER,
    GENDER_DESCRIPTION VARCHAR(20),
    START_DATETIME TIMESTAMP,
    END_DATETIME TIMESTAMP,
    ACTIVE VARCHAR(10),
    STATUS_CODE VARCHAR(20),
    STATUS_VALUE INTEGER,
    STATUS_DESCRIPTION VARCHAR(100),
    REASON_CODE VARCHAR(20),
    REASON_VALUE INTEGER,
    REASON_DESCRIPTION VARCHAR(100),
    DATA_START_STUDY DATE,
    EXPECT_END_STUDY DATE,
    DATA_END_STUDY DATE,
    RDDM_FIRST VARCHAR(10),
    CREATE_DATETIME TIMESTAMP,
    SEND_DATETIME TIMESTAMP,
    ORGN SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_MS_STUDENTS_TRAINING (
    I$DT1 TIMESTAMP,
    I$DT2 TIMESTAMP NOT NULL = CURRENT_TIMESTAMP)
RETURNS (
    ID VARCHAR(40),
    STUDENT_ID VARCHAR(60),
    COLLEGES_ID VARCHAR(40),
    SPECIALITY VARCHAR(400),
    CODE_SPECIALITY VARCHAR(400),
    NUM_COURSO INTEGER,
    ACADEM_YEAR INTEGER,
    COURSO_START_DATE DATE,
    COURSO_END_DATE DATE,
    ATTENDANCE VARCHAR(40),
    REASON_CODE VARCHAR(40),
    DATA_REASON DATE,
    DATA_START_STUDY DATE,
    DATA_END_STUDY DATE,
    DOC_NAME VARCHAR(40),
    DOC_NUMBER VARCHAR(400),
    DATA_DOC DATE,
    QUALIFICATION VARCHAR(400),
    PROGRAM_FOCUSE VARCHAR(400),
    CREATE_DATETIME TIMESTAMP,
    SEND_DATETIME TIMESTAMP)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_MS_STUDENT_CITIZENSHIP (
    I$DT1 TIMESTAMP,
    I$DT2 TIMESTAMP NOT NULL = CURRENT_TIMESTAMP)
RETURNS (
    ID VARCHAR(60),
    STUDENT_ID VARCHAR(60),
    CODE VARCHAR(40),
    NAME VARCHAR(100),
    CREATE_DATETIME TIMESTAMP,
    SEND_DATETIME TIMESTAMP)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_MS_SUBJECTS (
    I$DT1 TIMESTAMP,
    I$DT2 TIMESTAMP NOT NULL = current_timestamp)
RETURNS (
    ID VARCHAR(40),
    NAME VARCHAR(400),
    BASE_SUBJ INTEGER,
    CREATE_DATETIME TIMESTAMP,
    SEND_DATETIME TIMESTAMP)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_MS_SUBJECT_PLAN (
    I$DT1 TIMESTAMP,
    I$DT2 TIMESTAMP NOT NULL = current_timestamp)
RETURNS (
    ID VARCHAR(40),
    GRADE INTEGER,
    SUBJECT_ID VARCHAR(40),
    SCHOOL_ID VARCHAR(40),
    CLASS_YEAR INTEGER,
    CREATE_DATETIME TIMESTAMP,
    SEND_DATETIME TIMESTAMP)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_MS_TEACHERS (
    I$DT1 TIMESTAMP,
    I$DT2 TIMESTAMP NOT NULL = CURRENT_TIMESTAMP)
RETURNS (
    ID VARCHAR(60),
    OID VARCHAR(40),
    AUTH_LINK VARCHAR(200),
    VK_ID VARCHAR(40),
    FIRSTNAME VARCHAR(100),
    LASTNAME VARCHAR(100),
    PATRONYMIC VARCHAR(100),
    HASH_GOST2012 VARCHAR(200),
    HASH_NUM INTEGER,
    BIRTHDATE VARCHAR(10),
    E_MAIL VARCHAR(100),
    GENDER_CODE VARCHAR(10),
    GENDER_VALUE INTEGER,
    GENDER_DESCRIPTION VARCHAR(20),
    ACTIVE VARCHAR(10),
    START_DATETIME TIMESTAMP,
    END_DATETIME TIMESTAMP,
    STATUS_CODE VARCHAR(20),
    STATUS_VALUE INTEGER,
    STATUS_DESCRIPTION VARCHAR(100),
    REASON_CODE VARCHAR(20),
    REASON_VALUE INTEGER,
    REASON_DESCRIPTION VARCHAR(100),
    ERN_ID VARCHAR(40),
    CREATE_DATETIME TIMESTAMP,
    SEND_DATETIME TIMESTAMP,
    ORGN SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_MS_TEACHERS_DOCUMENTS (
    I$DT1 TIMESTAMP,
    I$DT2 TIMESTAMP NOT NULL = current_timestamp)
RETURNS (
    TEACHER_ID VARCHAR(60),
    DOCUMENT_ID VARCHAR(60),
    CREATE_DATETIME TIMESTAMP,
    SEND_DATETIME TIMESTAMP)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_MS_TEACHERS_GROUPS (
    I$DT1 TIMESTAMP,
    I$DT2 TIMESTAMP NOT NULL = CURRENT_TIMESTAMP)
RETURNS (
    TEACHER_ID VARCHAR(60),
    GROUP_ID VARCHAR(60),
    CREATE_DATETIME TIMESTAMP,
    SEND_DATETIME TIMESTAMP)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_MS_TEACHER_CITIZENSHIP (
    I$DT1 TIMESTAMP,
    I$DT2 TIMESTAMP NOT NULL = current_timestamp)
RETURNS (
    ID VARCHAR(60),
    TEACHER_ID VARCHAR(60),
    CODE VARCHAR(40),
    NAME VARCHAR(100),
    CREATE_DATETIME TIMESTAMP,
    SEND_DATETIME TIMESTAMP)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_MS_TEACHER_ROLE (
    I$DT1 TIMESTAMP,
    I$DT2 TIMESTAMP NOT NULL = current_timestamp)
RETURNS (
    ID VARCHAR(60),
    TEACHER_ID VARCHAR(60),
    SCHOOL_ID VARCHAR(60),
    CODE VARCHAR(100),
    NAME VARCHAR(1000),
    EDU_LOCATION_ID VARCHAR(60),
    START_DATETIME TIMESTAMP,
    END_DATETIME TIMESTAMP,
    FTE VARCHAR(20),
    EMPLOYMENT INTEGER,
    STATUS_CODE VARCHAR(20),
    STATUS_VALUE INTEGER,
    STATUS_DESCRIPTION VARCHAR(100),
    REASON_CODE VARCHAR(20),
    REASON_VALUE INTEGER,
    REASON_DESCRIPTION VARCHAR(100),
    CREATE_DATETIME TIMESTAMP,
    SEND_DATETIME TIMESTAMP)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_MS_TEACHER_ROLE_EDU_GROUPS (
    I$DT1 TIMESTAMP,
    I$DT2 TIMESTAMP NOT NULL = current_timestamp)
RETURNS (
    TEACHER_ROLE_ID VARCHAR(60),
    EDU_GROUP_URI VARCHAR(200),
    CREATE_DATETIME TIMESTAMP,
    SEND_DATETIME TIMESTAMP)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_MS_TEACHER_ROLE_SERVICE (
    I$DT1 TIMESTAMP,
    I$DT2 TIMESTAMP NOT NULL = current_timestamp)
RETURNS (
    TEACHER_ROLE_ID VARCHAR(60),
    SERVICE_ID VARCHAR(60),
    CREATE_DATETIME TIMESTAMP,
    SEND_DATETIME TIMESTAMP)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_MS_TELECOM (
    I$DT1 TIMESTAMP,
    I$DT2 TIMESTAMP NOT NULL = current_timestamp)
RETURNS (
    ID VARCHAR(60),
    TYPE_CONTACT INTEGER,
    VALUE_TYPE VARCHAR(400),
    USE_COD INTEGER,
    RANK_CONTACT INTEGER,
    CREATE_DATETIME TIMESTAMP,
    SEND_DATETIME TIMESTAMP)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_MS_TELECOM_LOCATIONS (
    I$DT1 TIMESTAMP,
    I$DT2 TIMESTAMP NOT NULL = current_timestamp)
RETURNS (
    TELECOM_ID VARCHAR(60),
    EDU_LOCATION_ID VARCHAR(60),
    CREATE_DATETIME TIMESTAMP,
    SEND_DATETIME TIMESTAMP)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_MS_TELECOM_ORGANISATIONS (
    I$DT1 TIMESTAMP,
    I$DT2 TIMESTAMP NOT NULL = current_timestamp)
RETURNS (
    TELECOM_ID VARCHAR(60),
    ORGANISATION_ID VARCHAR(60),
    CREATE_DATETIME TIMESTAMP,
    SEND_DATETIME TIMESTAMP)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_MS_TELECOM_STUDENT (
    I$DT1 TIMESTAMP,
    I$DT2 TIMESTAMP NOT NULL = current_timestamp)
RETURNS (
    TELECOM_ID VARCHAR(60),
    STUDENT_ID VARCHAR(60),
    CREATE_DATETIME TIMESTAMP,
    SEND_DATETIME TIMESTAMP)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_MS_TELECOM_TEACHER (
    I$DT1 TIMESTAMP,
    I$DT2 TIMESTAMP NOT NULL = current_timestamp)
RETURNS (
    TELECOM_ID VARCHAR(60),
    TEACHER_ID VARCHAR(60),
    CREATE_DATETIME TIMESTAMP,
    SEND_DATETIME TIMESTAMP)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_MS_TELECOM_TEACHERS_ROLES (
    I$DT1 TIMESTAMP,
    I$DT2 TIMESTAMP NOT NULL = current_timestamp)
RETURNS (
    TELECOM_ID VARCHAR(60),
    TEACHER_ROLE_ID VARCHAR(60),
    CREATE_DATETIME TIMESTAMP,
    SEND_DATETIME TIMESTAMP)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_MS_UNIT_PLAN (
    I$DT1 TIMESTAMP,
    I$DT2 TIMESTAMP NOT NULL = current_timestamp)
RETURNS (
    ID VARCHAR(40),
    UNIT_NAME VARCHAR(400),
    DESCRIPTION VARCHAR(1000),
    UNIT_NUMBER VARCHAR(40),
    SUBJECT_PLAN_ID VARCHAR(40),
    CREATE_DATETIME TIMESTAMP,
    SEND_DATETIME TIMESTAMP)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_MS_UPDATE_TM (
    I$TM TIMESTAMP)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE DC_MS_YMARKS (
    I$DT1 TIMESTAMP,
    I$DT2 TIMESTAMP NOT NULL = CURRENT_TIMESTAMP)
RETURNS (
    ID VARCHAR(100),
    SUBJECT_ID BIGINT,
    STUDENT_ID VARCHAR(60),
    CLASS_ID VARCHAR(40),
    SUBJECT_NAME VARCHAR(400),
    FACT VARCHAR(20),
    FIVEPOINT_FACT VARCHAR(20),
    FINAL_FACT VARCHAR(20),
    FIVEPOINT_FINAL_FACT VARCHAR(20),
    RECENT_PLAN VARCHAR(20),
    FIVEPOINT_RECENT_PLAN VARCHAR(20),
    SCHOOL_ID VARCHAR(40),
    CLASS_NUM INTEGER,
    CLASS_YEAR_FROM INTEGER,
    MARK_SCALE_CODE VARCHAR(20),
    MARK_SCALE_VALUE INTEGER,
    MARK_SCALE_DESCRIPTION VARCHAR(40),
    CREATE_DATETIME TIMESTAMP,
    SEND_DATETIME TIMESTAMP)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_OBJECTS_LIST (
    I$ROOT_ID BIGINT,
    I$LEVEL_ID BIGINT,
    I$USER_ID VARCHAR(40),
    I$FROM_IP VARCHAR(200) = NULL)
RETURNS (
    OBJ_ID BIGINT,
    TYPE_ID BIGINT,
    PARENT_ID BIGINT,
    PARENT_TYPE_ID BIGINT,
    USER_ID BIGINT,
    SORT_ORDER DOUBLE PRECISION,
    CAPTION VARCHAR(4000),
    HAS_CHILD INTEGER,
    COLOR INTEGER,
    TAB_ID BIGINT,
    TYPE_ORDER SMALLINT,
    LINK_ID BIGINT,
    TAG VARCHAR(100),
    NATIVE SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_OBJECT_ADD (
    I$PARENT_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$OBJ_TYPE_ID BIGINT,
    I$LEVEL_ID BIGINT,
    I$TAB_ID BIGINT,
    I$USER_ID VARCHAR(40),
    I$GRIDFORMAT SMALLINT)
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_OBJECT_CONTENT (
    I$PARENT_ID BIGINT,
    I$PARENT_TYPE_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$TYPE_ID BIGINT,
    I$LEVEL_ID BIGINT NOT NULL,
    I$TAB_ID BIGINT,
    I$USER_ID VARCHAR(40),
    I$FROM_IP VARCHAR(200) = NULL)
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_OBJECT_CONTEXT (
    I$PARENT_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$LEVEL_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_OBJECT_DELETE (
    I$PARENT_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$LEVEL_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    DEL_COUNT SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_OBJECT_HISTORY (
    I$PARENT_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$PARAM_ID BIGINT,
    I$LEVEL_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_OBJECT_PARAM_DELETE (
    I$PARENT_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$PARAM_ID BIGINT,
    I$LEVEL_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    BLOB_ID BIGINT,
    REFRESH_FLAG VARCHAR(100),
    OBJ_CAPTION VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_OD_EDUCATION (
    ID1 VARCHAR(40),
    ID2 VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(2000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_OD_MEETINGS (
    ID1 VARCHAR(40),
    ID2 VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(2000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_OD_MEETING_MEMBERS (
    ID1 VARCHAR(40),
    ID2 VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(2000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_OD_PERSONS (
    ID1 VARCHAR(40),
    ID2 VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(2000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_PORTAL_CONTENT (
    T_FROM TIMESTAMP,
    T_TO TIMESTAMP NOT NULL = current_timestamp,
    ID1 VARCHAR(40) = null,
    ID2 VARCHAR(40) = null,
    I$MODE SMALLINT = 0)
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(2000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_PORTAL_CONTENT_DELETE (
    T_FROM TIMESTAMP,
    T_TO TIMESTAMP NOT NULL = current_timestamp,
    ID1 VARCHAR(40) = null,
    ID2 VARCHAR(40) = null,
    I$MODE INTEGER = 0)
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(2000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_PORTAL_CONTENT_TASKS (
    T_FROM TIMESTAMP,
    T_TO TIMESTAMP NOT NULL = current_timestamp,
    ID1 VARCHAR(40) = null,
    ID2 VARCHAR(40) = null,
    I$MODE SMALLINT = 0)
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(2000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_PORTAL_CONTENT_TASKS_DELETE (
    T_FROM TIMESTAMP,
    T_TO TIMESTAMP NOT NULL = CURRENT_TIMESTAMP,
    ID1 VARCHAR(40) = NULL,
    ID2 VARCHAR(40) = NULL,
    I$MODE SMALLINT = 0)
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(2000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_PORTAL_EDUCATION (
    T_FROM TIMESTAMP,
    T_TO TIMESTAMP NOT NULL = current_timestamp,
    ID1 VARCHAR(40) = null,
    ID2 VARCHAR(40) = null,
    I$MODE SMALLINT = 0)
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(2000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_PORTAL_EDUCATION_DELETE (
    T_FROM TIMESTAMP,
    T_TO TIMESTAMP NOT NULL = current_timestamp,
    ID1 VARCHAR(40) = null,
    ID2 VARCHAR(40) = null,
    I$MODE SMALLINT = 0)
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(2000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_PORTAL_EDUCATION_GROUPS (
    T_FROM TIMESTAMP,
    T_TO TIMESTAMP NOT NULL = current_timestamp,
    ID1 VARCHAR(40) = null,
    ID2 VARCHAR(40) = null,
    I$MODE SMALLINT = 0)
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(2000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_PORTAL_EDUCATION_GR_DELETE (
    T_FROM TIMESTAMP,
    T_TO TIMESTAMP NOT NULL = current_timestamp,
    ID1 VARCHAR(40) = null,
    ID2 VARCHAR(40) = null,
    I$MODE SMALLINT = 0)
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(2000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_PORTAL_ESTIMATES (
    T_FROM TIMESTAMP,
    T_TO TIMESTAMP NOT NULL = CURRENT_TIMESTAMP,
    ID1 VARCHAR(40) = NULL,
    ID2 VARCHAR(40) = NULL,
    I$MODE SMALLINT = 0)
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(2000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_PORTAL_ESTIMATES_DELETE (
    T_FROM TIMESTAMP,
    T_TO TIMESTAMP NOT NULL = current_timestamp,
    ID1 VARCHAR(40) = null,
    ID2 VARCHAR(40) = null,
    I$MODE SMALLINT = 0)
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(2000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_PORTAL_GROUPS (
    T_FROM TIMESTAMP,
    T_TO TIMESTAMP NOT NULL = current_timestamp,
    ID1 VARCHAR(40) = null,
    ID2 VARCHAR(40) = null,
    I$MODE SMALLINT = 0)
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(2000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_PORTAL_GROUPS_DELETE (
    T_FROM TIMESTAMP,
    T_TO TIMESTAMP NOT NULL = current_timestamp,
    ID1 VARCHAR(40) = null,
    ID2 VARCHAR(40) = null,
    I$MODE SMALLINT = 0)
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(2000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_PORTAL_INSTITUTION (
    T_FROM TIMESTAMP,
    T_TO TIMESTAMP NOT NULL)
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(2000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_PORTAL_JOB (
    T_FROM TIMESTAMP,
    T_TO TIMESTAMP NOT NULL,
    ID1 VARCHAR(40) = NULL,
    ID2 VARCHAR(40) = NULL,
    I$MODE SMALLINT = 0)
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(2000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_PORTAL_JOB_DELETE (
    T_FROM TIMESTAMP,
    T_TO TIMESTAMP NOT NULL,
    ID1 VARCHAR(40) = null,
    ID2 VARCHAR(40) = null,
    I$MODE SMALLINT = 0)
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(2000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_PORTAL_LESSONS (
    T_FROM TIMESTAMP,
    T_TO TIMESTAMP NOT NULL,
    ID1 VARCHAR(40) = null,
    ID2 VARCHAR(40) = null,
    I$MODE SMALLINT = 0)
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(2000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_PORTAL_LESSONS_DELETE (
    T_FROM TIMESTAMP,
    T_TO TIMESTAMP NOT NULL = current_timestamp,
    ID1 VARCHAR(40) = null,
    ID2 VARCHAR(40) = null,
    I$MODE SMALLINT = 0)
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(2000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_PORTAL_LESSON_FILES (
    T_FROM TIMESTAMP,
    T_TO TIMESTAMP,
    I$MODE SMALLINT = 0)
RETURNS (
    LESSON_ID BIGINT,
    BLOB_ID BIGINT,
    FILE_NAME VARCHAR(4000),
    FILE_TYPE SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_PORTAL_LESSON_FILES_DELETE (
    T_FROM TIMESTAMP,
    T_TO TIMESTAMP,
    I$MODE SMALLINT = 0)
RETURNS (
    BLOB_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_PORTAL_MEETINGS (
    T_FROM TIMESTAMP,
    T_TO TIMESTAMP NOT NULL = CURRENT_TIMESTAMP,
    ID1 VARCHAR(40) = NULL,
    ID2 VARCHAR(40) = NULL,
    I$MODE SMALLINT = 0)
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(2000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_PORTAL_MEETINGS_DELETE (
    T_FROM TIMESTAMP,
    T_TO TIMESTAMP NOT NULL = CURRENT_TIMESTAMP,
    ID1 VARCHAR(40) = NULL,
    ID2 VARCHAR(40) = NULL,
    I$MODE SMALLINT = 0)
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(2000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_PORTAL_MEETING_MEMBERS (
    T_FROM TIMESTAMP,
    T_TO TIMESTAMP NOT NULL = current_timestamp,
    ID1 VARCHAR(40) = null,
    ID2 VARCHAR(40) = null,
    I$MODE SMALLINT = 0)
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(2000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_PORTAL_MEETING_MM_DELETE (
    T_FROM TIMESTAMP,
    T_TO TIMESTAMP NOT NULL = CURRENT_TIMESTAMP,
    ID1 VARCHAR(40) = NULL,
    ID2 VARCHAR(40) = NULL,
    I$MODE SMALLINT = 0)
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(2000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_PORTAL_PERIODS (
    T_FROM TIMESTAMP,
    T_TO TIMESTAMP NOT NULL = current_timestamp,
    ID1 VARCHAR(40) = null,
    ID2 VARCHAR(40) = null,
    I$MODE SMALLINT = 0)
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(2000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_PORTAL_PERIODS_DELETE (
    T_FROM TIMESTAMP,
    T_TO TIMESTAMP NOT NULL = current_timestamp,
    ID1 VARCHAR(40) = null,
    ID2 VARCHAR(40) = null,
    I$MODE SMALLINT = 0)
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(2000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_PORTAL_PERSONS (
    T_FROM TIMESTAMP,
    T_TO TIMESTAMP NOT NULL = current_timestamp,
    ID1 VARCHAR(40) = null,
    ID2 VARCHAR(40) = null,
    I$MODE SMALLINT = 0)
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(2000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_PORTAL_PERSONS_DELETE (
    T_FROM TIMESTAMP,
    T_TO TIMESTAMP NOT NULL,
    ID1 VARCHAR(40) = null,
    ID2 VARCHAR(40) = null,
    I$MODE SMALLINT = 0)
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(2000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_PORTAL_PORTFOLIO (
    T_FROM TIMESTAMP,
    T_TO TIMESTAMP NOT NULL = current_timestamp,
    ID1 VARCHAR(40) = null,
    ID2 VARCHAR(40) = null,
    I$MODE SMALLINT = 0)
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_PORTAL_PORTFOLIO_DELETE (
    T_FROM TIMESTAMP,
    T_TO TIMESTAMP NOT NULL = current_timestamp,
    ID1 VARCHAR(40) = null,
    ID2 VARCHAR(40) = null,
    I$MODE SMALLINT = 0)
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(2000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_PORTAL_REPRESENTATIVES (
    T_FROM TIMESTAMP,
    T_TO TIMESTAMP NOT NULL = current_timestamp,
    ID1 VARCHAR(40) = null,
    ID2 VARCHAR(40) = null,
    I$MODE SMALLINT = 0)
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(2000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_PORTAL_REPS__DELETE (
    T_FROM TIMESTAMP,
    T_TO TIMESTAMP NOT NULL,
    ID1 VARCHAR(40) = null,
    ID2 VARCHAR(40) = null,
    I$MODE SMALLINT = 0)
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(2000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_PORTAL_SAVE_INST (
    IDENT_DATA VARCHAR(4000))
RETURNS (
    ERROR_TEXT VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_PORTAL_SCHEDULES (
    T_FROM TIMESTAMP,
    T_TO TIMESTAMP NOT NULL = current_timestamp,
    ID1 VARCHAR(40) = null,
    ID2 VARCHAR(40) = null,
    I$MODE SMALLINT = 0)
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(2000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_PORTAL_SCHEDULES_DELETE (
    T_FROM TIMESTAMP,
    T_TO TIMESTAMP NOT NULL,
    ID1 VARCHAR(40) = null,
    ID2 VARCHAR(40) = null,
    I$MODE SMALLINT = 0)
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(2000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_PORTAL_SCHEDULES_GROUPS (
    T_FROM TIMESTAMP,
    T_TO TIMESTAMP NOT NULL,
    ID1 VARCHAR(40) = NULL,
    ID2 VARCHAR(40) = NULL,
    I$MODE SMALLINT = 0)
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(2000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_PORTAL_SCHEDULES_GROUPS_DEL (
    T_FROM TIMESTAMP,
    T_TO TIMESTAMP NOT NULL,
    ID1 VARCHAR(40) = null,
    ID2 VARCHAR(40) = null,
    I$MODE SMALLINT = 0)
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(2000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_PORTAL_SCHEDULES_SUBJECTS (
    T_FROM TIMESTAMP,
    T_TO TIMESTAMP NOT NULL,
    ID1 VARCHAR(40) = null,
    ID2 VARCHAR(40) = null,
    I$MODE SMALLINT = 0)
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(2000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_PORTAL_SCHEDULES_SUBJ_DEL (
    T_FROM TIMESTAMP,
    T_TO TIMESTAMP NOT NULL,
    ID1 VARCHAR(40) = null,
    ID2 VARCHAR(40) = null,
    I$MODE SMALLINT = 0)
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(2000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_PORTAL_SCHEDULES_TEACHERS (
    T_FROM TIMESTAMP,
    T_TO TIMESTAMP NOT NULL = current_timestamp,
    ID1 VARCHAR(40) = null,
    ID2 VARCHAR(40) = null,
    I$MODE SMALLINT = 0)
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(2000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_PORTAL_SCHEDULES_TEACH_DEL (
    T_FROM TIMESTAMP,
    T_TO TIMESTAMP NOT NULL,
    ID1 VARCHAR(40) = null,
    ID2 VARCHAR(40) = null,
    I$MODE SMALLINT = 0)
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(2000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_PORTAL_STUDENT_MV (
    STUDENT_ID BIGINT,
    T_FROM TIMESTAMP,
    T_TO TIMESTAMP NOT NULL)
RETURNS (
    MOVE_ID BIGINT,
    DATE_IN DATE,
    DATE_OUT DATE,
    STAGE_LV BIGINT,
    GRADE_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_PORTAL_SUBJECTS (
    T_FROM TIMESTAMP,
    T_TO TIMESTAMP NOT NULL = current_timestamp,
    ID1 VARCHAR(40) = null,
    ID2 VARCHAR(40) = null,
    I$MODE SMALLINT = 0)
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(2000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_PORTAL_SUBJECTS_DELETE (
    T_FROM TIMESTAMP,
    T_TO TIMESTAMP NOT NULL,
    ID1 VARCHAR(40) = null,
    ID2 VARCHAR(40) = null,
    I$MODE SMALLINT = 0)
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(2000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_PORTAL_TASKS (
    T_FROM TIMESTAMP,
    T_TO TIMESTAMP NOT NULL = current_timestamp,
    ID1 VARCHAR(40) = null,
    ID2 VARCHAR(40) = null,
    I$MODE SMALLINT = 0)
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(2000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_PORTAL_TASKS_DELETE (
    T_FROM TIMESTAMP,
    T_TO TIMESTAMP NOT NULL = CURRENT_TIMESTAMP,
    ID1 VARCHAR(40) = NULL,
    ID2 VARCHAR(40) = NULL,
    I$MODE SMALLINT = 0)
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(2000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_PORTAL_TEACHERS (
    T_FROM TIMESTAMP,
    T_TO TIMESTAMP NOT NULL = current_timestamp,
    ID1 VARCHAR(40) = null,
    ID2 VARCHAR(40) = null,
    I$MODE SMALLINT = 0)
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(2000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_PORTAL_TEACHERS_DELETE (
    T_FROM TIMESTAMP,
    T_TO TIMESTAMP NOT NULL,
    ID1 VARCHAR(40) = null,
    ID2 VARCHAR(40) = null,
    I$MODE SMALLINT = 0)
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(2000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_PORTAL_TEACHER_TO_SUBJECTS (
    T_FROM TIMESTAMP,
    T_TO TIMESTAMP NOT NULL,
    ID1 VARCHAR(40) = null,
    ID2 VARCHAR(40) = null,
    I$MODE SMALLINT = 0)
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(2000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_PORTAL_TTS__DELETE (
    T_FROM TIMESTAMP,
    T_TO TIMESTAMP NOT NULL,
    ID1 VARCHAR(40) = null,
    ID2 VARCHAR(40) = null,
    I$MODE SMALLINT = 0)
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(2000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_PUPIL_GRADUATE_LIST (
    I$GRADE_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_PUPIL_LEAVE_LIST (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_PUPIL_MOVEMENTS (
    I$STUDENT_ID BIGINT,
    I$GROUP_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_RBOOK_ESTIMATIONS (
    I$DT1 TIMESTAMP,
    I$DT2 TIMESTAMP = CURRENT_TIMESTAMP)
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_RBOOK_EXAMS (
    I$DT1 TIMESTAMP,
    I$DT2 TIMESTAMP = CURRENT_TIMESTAMP)
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_RBOOK_STUDENTS (
    I$DT1 TIMESTAMP,
    I$DT2 TIMESTAMP = CURRENT_TIMESTAMP)
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_REPORT_VERSION (
    I$VERSION VARCHAR(100))
RETURNS (
    INST_NAME VARCHAR(1000),
    INST_VERSION VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_SCUD_UPDATE (
    SUID VARCHAR(100),
    DIRECTION VARCHAR(100),
    EVENT_DATE VARCHAR(100))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE DC_SFERUM_CALLS RETURNS (
    CHAT_ID VARCHAR(40),
    CJ_ID BIGINT,
    LESSON_ID BIGINT,
    USER_ID VARCHAR(40),
    LESSON_NAME VARCHAR(1000),
    TIME_FROM TIMESTAMP,
    TIME_TO TIMESTAMP)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_SFERUM_CLASSCHATS (
    I$OBJ_ID BIGINT,
    I$TIMEMARK TIMESTAMP = CURRENT_TIMESTAMP)
RETURNS (
    CLASS_ID BIGINT,
    CLASS_CAPTION VARCHAR(400),
    CLASS_INDEX INTEGER,
    CLASS_DIGIT VARCHAR(100),
    CLASS_CODE VARCHAR(100),
    PARENTS_CHAT_ID VARCHAR(100),
    CHILD_CHAT_ID VARCHAR(100),
    CHANGE_MASK INTEGER,
    OBJ_ID BIGINT,
    OBJ_TYPE_ID BIGINT,
    ADD_ID VARCHAR(100),
    DEL_ID VARCHAR(100),
    FORCE_WM SMALLINT,
    DEL_REASON VARCHAR(20),
    OU_TITLE VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_SFERUM_CLEANUP (
    I$TIMEMARK TIMESTAMP)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE DC_SFERUM_DELETE RETURNS (
    OBJ_ID BIGINT,
    TYPE_ID VARCHAR(40),
    CHAT_ID VARCHAR(400))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_SFERUM_LINKS (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_SFERUM_RESET_DONE
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE DC_SFERUM_RESET_USERS RETURNS (
    CHAT_ID VARCHAR(400),
    USER_ID VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_SFERUM_SUBJCHATS (
    I$OBJ_ID BIGINT,
    I$TIMEMARK TIMESTAMP = CURRENT_TIMESTAMP)
RETURNS (
    CLASS_ID BIGINT,
    CLASS_CAPTION VARCHAR(400),
    CLASS_INDEX INTEGER,
    SUBJECT_NAME VARCHAR(400),
    CHANGE_MASK INTEGER,
    CHAT_ID VARCHAR(100),
    OBJ_ID BIGINT,
    OBJ_TYPE_ID BIGINT,
    ADD_ID VARCHAR(100),
    DEL_ID VARCHAR(100),
    FORCE_WM SMALLINT,
    DEL_REASON VARCHAR(20),
    CHAT_TITLE VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_SFERUM_TEACHERS (
    I$OBJ_ID BIGINT,
    I$TIMEMARK TIMESTAMP = current_timestamp)
RETURNS (
    OBJ_ID BIGINT,
    ADD_ID VARCHAR(100),
    DEL_ID VARCHAR(100),
    CHANGE_MASK INTEGER,
    IS_ADMIN SMALLINT,
    DEL_REASON VARCHAR(20))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_SFERUM_TIMEDOUT RETURNS (
    CHAT_ID VARCHAR(40),
    CJ_ID BIGINT,
    LESSON_ID BIGINT,
    CALL_ID VARCHAR(40))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_SFERUM_WM (
    I$OBJ_ID VARCHAR(400),
    I$USER_ID VARCHAR(40))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE DC_SOCIAL_DELETE (
    I$OBJ_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE DC_SOCIAL_SAVE (
    I$OBJ_ID BIGINT,
    I$CODE VARCHAR(100),
    I$SN VARCHAR(100))
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_SOP_UPDATE (
    SUID BIGINT,
    MEAL_ID BIGINT,
    EVENT_DATE VARCHAR(100),
    FOOD_TYPE VARCHAR(100),
    FOOD_NAME VARCHAR(1000),
    FOOD_QTY FLOAT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE DC_TRANSFER_CLASS (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DC_UNDO_LEAVE (
    I$VACANCY_ID BIGINT,
    I$USER_ID VARCHAR(40))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE DC_VAL_SET (
    I$OBJ_ID BIGINT,
    I$PARAM_ID BIGINT,
    I$VAL VARCHAR(4000),
    I$USER_ID VARCHAR(40),
    I$IS_DEL SMALLINT = 0,
    I$LINK_ID BIGINT = NULL,
    I$LEVEL_ID BIGINT = NULL)
RETURNS (
    BLOB_ID BIGINT,
    REFRESH_FLAG VARCHAR(100),
    PARAM_TYPE SMALLINT,
    MSGTEXT VARCHAR(4000),
    VAL VARCHAR(4000),
    LISTVAL_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DELETE_STAY_DOCUMENTS (
    I$PUPIL_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE DG_FOODEVENTS_LAST_ID RETURNS (
    LAST_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DG_FOOD_BENEFITS (
    DATE_START TIMESTAMP,
    DATE_END TIMESTAMP,
    MODE SMALLINT = 0)
RETURNS (
    TAG_NAME VARCHAR(255),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DG_GIA_CODES RETURNS (
    TAG_NAME VARCHAR(255),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DG_RC_EDUCATION (
    DATE_START TIMESTAMP,
    DATE_END TIMESTAMP)
RETURNS (
    TAG_NAME VARCHAR(255),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DG_RC_EMPLOYEE (
    DATE_START TIMESTAMP,
    DATE_END TIMESTAMP)
RETURNS (
    TAG_NAME VARCHAR(255),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DG_RC_GET_ADDRESS (
    TAG_PREFIX VARCHAR(255),
    OBJ_ID BIGINT,
    PARAM_ID BIGINT)
RETURNS (
    TAG_NAME VARCHAR(255),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DG_RC_GET_DICT (
    TAG_PREFIX VARCHAR(255),
    OBJ_ID BIGINT,
    PARAM_ID BIGINT,
    CODING_TYPE SMALLINT = 0,
    ALT_PARAM_ID BIGINT = null)
RETURNS (
    TAG_NAME VARCHAR(255),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DG_RC_INSTITUTION (
    DATE_START TIMESTAMP = NULL,
    DATE_END TIMESTAMP = NULL)
RETURNS (
    TAG_NAME VARCHAR(255),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DG_RC_PERSON (
    DATE_START TIMESTAMP,
    DATE_END TIMESTAMP)
RETURNS (
    TAG_NAME VARCHAR(255),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DISCIPLINE_ADD (
    I$OBJ_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DISCIPLINE_CHECK (
    I$PARENT_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    CAPTION VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DISCIPLINE_INDEX_SET (
    I$PARENT_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$NORD INTEGER,
    I$USER_ID BIGINT)
RETURNS (
    OBJ_CAPTION VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DISCIPLINE_LIST (
    I$OBJ_ID BIGINT,
    I$TYPE_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    OBJ_CAPTION VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DISCIPLINE_LOADING_ADD (
    I$OBJ_ID BIGINT,
    I$USER_ID BIGINT,
    I$IS_NEW SMALLINT = 0,
    I$VAL1_ID BIGINT = NULL,
    VAL4 INTEGER = NULL,
    VAL5 INTEGER = NULL,
    VAL6 INTEGER = NULL,
    VAL7 INTEGER = NULL,
    VAL8 INTEGER = NULL,
    VAL9 INTEGER = NULL,
    VAL10_ID BIGINT = NULL,
    VAL11 INTEGER = NULL,
    VAL12_ID BIGINT = NULL,
    VAL13 INTEGER = NULL,
    VAL14_ID BIGINT = NULL,
    VAL15 INTEGER = NULL,
    VAL16_ID BIGINT = NULL,
    VAL17 INTEGER = NULL,
    VAL18_ID BIGINT = NULL,
    VAL19 INTEGER = NULL,
    VAL20_ID BIGINT = NULL,
    VAL21 INTEGER = NULL,
    VAL22_ID BIGINT = NULL,
    VAL23 INTEGER = NULL,
    VAL24_ID BIGINT = NULL,
    VAL25 INTEGER = NULL,
    VAL26_ID BIGINT = NULL,
    VAL27 INTEGER = NULL,
    VAL28_ID BIGINT = NULL,
    I$VAL29 SMALLINT = NULL)
RETURNS (
    VAL1 VARCHAR(4000),
    VAL1_ID BIGINT,
    BRUSHCOLOR CHAR(7),
    LOADING_ID BIGINT,
    VAL29 SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DISCIPLINE_LOADING_LIST (
    I$OBJ_ID BIGINT NOT NULL,
    I$TYPE_ID BIGINT = NULL,
    I$USER_ID BIGINT = 1)
RETURNS (
    OBJ_ID BIGINT,
    TYPE_ID BIGINT,
    VAL1 VARCHAR(4000),
    VAL1_ID BIGINT,
    VAL2 VARCHAR(4000),
    VAL3 VARCHAR(4000),
    VAL4 INTEGER,
    VAL5 INTEGER,
    VAL6 INTEGER,
    VAL7 INTEGER,
    VAL8 INTEGER,
    VAL9 INTEGER,
    VAL10_ID BIGINT,
    VAL10 VARCHAR(40),
    VAL11 INTEGER,
    VAL12_ID BIGINT,
    VAL12 VARCHAR(40),
    VAL13 INTEGER,
    VAL14_ID BIGINT,
    VAL14 VARCHAR(40),
    VAL15 INTEGER,
    VAL16_ID BIGINT,
    VAL16 VARCHAR(40),
    VAL17 INTEGER,
    VAL18_ID BIGINT,
    VAL18 VARCHAR(40),
    VAL19 INTEGER,
    VAL20_ID BIGINT,
    VAL20 VARCHAR(40),
    VAL21 INTEGER,
    VAL22_ID BIGINT,
    VAL22 VARCHAR(40),
    VAL23 INTEGER,
    VAL24_ID BIGINT,
    VAL24 VARCHAR(40),
    VAL25 INTEGER,
    VAL26_ID BIGINT,
    VAL26 VARCHAR(40),
    VAL27 INTEGER,
    VAL28_ID BIGINT,
    VAL28 VARCHAR(40),
    VAL29 SMALLINT,
    COLOR INTEGER,
    BRUSHCOLOR CHAR(7),
    IS_LAST SMALLINT,
    LOADING_ID BIGINT,
    LEVEL_NUM SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DISCIPLINE_LOADING_LIST_REPORT (
    I$OBJ_ID BIGINT,
    I$TYPE_ID BIGINT,
    I$USER_ID BIGINT = 1,
    I$N SMALLINT = NULL)
RETURNS (
    VAL01 VARCHAR(4000),
    VAL02 VARCHAR(4000),
    VAL03 VARCHAR(4000),
    VAL04 INTEGER,
    VAL05 INTEGER,
    VAL06 INTEGER,
    VAL07 INTEGER,
    VAL08 INTEGER,
    VAL09 INTEGER,
    VAL10 INTEGER,
    VAL11 INTEGER,
    VAL12 INTEGER,
    VAL13 INTEGER,
    VAL14 INTEGER,
    VAL15 INTEGER,
    VAL16 INTEGER,
    VAL17 INTEGER,
    VAL18 INTEGER,
    VAL19 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DISCIPLINE_LOADING_PARAMS (
    I$OBJ_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    PARAM_CODE VARCHAR(40),
    PARAM_VALUE VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DISCIPLINE_SUBTREE (
    I$STAGE_ID BIGINT)
RETURNS (
    SUBJECT_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DISCIPLINE_SUBTREE_IN (
    I$PLAN_ID BIGINT,
    I$PARENT_ID BIGINT = null,
    I$LEVEL INTEGER NOT NULL = 0)
RETURNS (
    SUBJECT_ID BIGINT,
    ASSN_ID BIGINT,
    LEVEL_NUM INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DISCIPLINE_TIME_BUDGET (
    I$OBJ_ID BIGINT NOT NULL,
    I$TYPE_ID BIGINT = null,
    I$USER_ID BIGINT = 1)
RETURNS (
    OBJ_ID BIGINT,
    VAL1 VARCHAR(4000),
    VAL2 INTEGER,
    VAL3 INTEGER,
    VAL4 INTEGER,
    VAL5 INTEGER,
    VAL6 INTEGER,
    VAL7 INTEGER,
    VAL8 INTEGER,
    VAL9 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DISCIPLINE_TIME_BUDGET_REPORT (
    I$OBJ_ID BIGINT,
    I$TYPE_ID BIGINT,
    I$USER_ID BIGINT = 1,
    I$N SMALLINT = NULL)
RETURNS (
    V1 VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DISCIPLINE_TREE (
    I$OBJ_ID BIGINT NOT NULL,
    I$TYPE_ID BIGINT = null,
    I$USER_ID BIGINT = 1,
    I$LEVEL_NUM SMALLINT = 0)
RETURNS (
    OBJ_ID BIGINT,
    TYPE_ID BIGINT,
    PARENT_ID BIGINT,
    OBJ_CAPTION VARCHAR(4000),
    IS_LAST SMALLINT,
    SORT_ORDER DOUBLE PRECISION,
    COLOR INTEGER,
    LEVEL_NUM SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DISTRICT_VERIFICATION_REP2_DTL (
    I$SCHOOL_ID BIGINT,
    I$ROW_NUM SMALLINT,
    I$PARAM_ID BIGINT = NULL)
RETURNS (
    DOCUMENT_ID BIGINT,
    NAME VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DISTRICT_VERIFICATION_REP3_DTL (
    I$SCHOOL_ID BIGINT,
    I$ROW_NUM SMALLINT,
    I$PARAM_ID BIGINT = null)
RETURNS (
    PUPIL_ID BIGINT,
    VAL1 VARCHAR(4000),
    VAL3 VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DISTRICT_VERIFICATION_REP4_DTL (
    I$SCHOOL_ID BIGINT,
    I$ROW_NUM SMALLINT,
    I$PARAM_ID BIGINT = null)
RETURNS (
    WORKER_ID BIGINT,
    NAME VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DISTRICT_VERIFICATION_REPORT (
    I$DISTRICT_ID BIGINT,
    I$INDEX INTEGER = -1)
RETURNS (
    SCHOOL_ID BIGINT,
    COL_NUM SMALLINT,
    VAL VARCHAR(4000),
    DATA VARCHAR(4000),
    ORIENTATION VARCHAR(20),
    PARAM_ID BIGINT,
    TYPE_ID BIGINT,
    ALLVAL INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DISTRICT_VERIFICATION_REPORT2 (
    I$DISTRICT_ID BIGINT,
    I$INDEX INTEGER = -1)
RETURNS (
    SCHOOL_ID BIGINT,
    COL_NUM SMALLINT,
    VAL VARCHAR(4000),
    DATA VARCHAR(4000),
    ORIENTATION VARCHAR(20),
    PARAM_ID BIGINT,
    TYPE_ID BIGINT,
    ALLVAL INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DISTRICT_VERIFICATION_REPORT2X (
    I$DISTRICT_ID BIGINT,
    I$INDEX INTEGER = -1)
RETURNS (
    SCHOOL_ID BIGINT,
    COL_NUM SMALLINT,
    VAL VARCHAR(4000),
    DATA VARCHAR(4000),
    ORIENTATION VARCHAR(20),
    PARAM_ID BIGINT,
    TYPE_ID BIGINT,
    ALLVAL INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DISTRICT_VERIFICATION_REPORT3 (
    I$DISTRICT_ID BIGINT,
    I$INDEX INTEGER = -1)
RETURNS (
    SCHOOL_ID BIGINT,
    COL_NUM SMALLINT,
    VAL VARCHAR(4000),
    DATA VARCHAR(4000),
    ORIENTATION VARCHAR(20),
    PARAM_ID BIGINT,
    TYPE_ID BIGINT,
    ALLVAL INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DISTRICT_VERIFICATION_REPORT3X (
    I$DISTRICT_ID BIGINT,
    I$INDEX INTEGER = -1)
RETURNS (
    SCHOOL_ID BIGINT,
    COL_NUM SMALLINT,
    VAL VARCHAR(4000),
    DATA VARCHAR(4000),
    ORIENTATION VARCHAR(20),
    PARAM_ID BIGINT,
    TYPE_ID BIGINT,
    ALLVAL INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DISTRICT_VERIFICATION_REPORT4 (
    I$DISTRICT_ID BIGINT,
    I$INDEX SMALLINT = -1)
RETURNS (
    SCHOOL_ID BIGINT,
    COL_NUM SMALLINT,
    VAL VARCHAR(4000),
    DATA VARCHAR(4000),
    ORIENTATION VARCHAR(20),
    PARAM_ID BIGINT,
    TYPE_ID BIGINT,
    ALLVAL INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DISTRICT_VERIFICATION_REPORT4X (
    I$DISTRICT_ID BIGINT,
    I$INDEX INTEGER = -1)
RETURNS (
    SCHOOL_ID BIGINT,
    COL_NUM SMALLINT,
    VAL VARCHAR(4000),
    DATA VARCHAR(4000),
    ORIENTATION VARCHAR(20),
    PARAM_ID BIGINT,
    TYPE_ID BIGINT,
    ALLVAL INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DISTRICT_VERIFICATION_REPORT5X (
    I$DISTRICT_ID BIGINT,
    I$INDEX INTEGER = -1)
RETURNS (
    SCHOOL_ID BIGINT,
    COL_NUM SMALLINT,
    VAL VARCHAR(4000),
    DATA VARCHAR(4000),
    ORIENTATION VARCHAR(20),
    PARAM_ID BIGINT,
    TYPE_ID BIGINT,
    ALLVAL INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DISTRICT_VERIFICATION_REPORTX (
    I$DISTRICT_ID BIGINT,
    I$INDEX INTEGER = -1)
RETURNS (
    SCHOOL_ID BIGINT,
    COL_NUM SMALLINT,
    VAL VARCHAR(4000),
    DATA VARCHAR(4000),
    ORIENTATION VARCHAR(20),
    PARAM_ID BIGINT,
    TYPE_ID BIGINT,
    ALLVAL INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DISTRICT_VERIFICATION_REPX_DTL (
    I$SCHOOL_ID BIGINT,
    I$ROW_NUM SMALLINT,
    I$PARAM_ID BIGINT = null)
RETURNS (
    OBJ_ID BIGINT,
    NAME VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DISTRICT_VERIFICATION_REP_DTL (
    I$SCHOOL_ID BIGINT,
    I$ROW_NUM SMALLINT,
    I$PARAM_ID BIGINT = null)
RETURNS (
    BUILDING_ID BIGINT,
    NAME VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DOU_CHECK_PARENT_STATUS (
    I$PARENT_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$STATUS_ID BIGINT)
RETURNS (
    OK SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DOU_DISTR_VERIFICATION_REP2_DTL (
    I$SCHOOL_ID BIGINT,
    I$ROW_NUM SMALLINT)
RETURNS (
    DOCUMENT_ID BIGINT,
    NAME VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DOU_DISTR_VERIFICATION_REP3_DTL (
    I$SCHOOL_ID BIGINT,
    I$ROW_NUM SMALLINT)
RETURNS (
    PUPIL_ID BIGINT,
    VAL1 VARCHAR(4000),
    VAL3 VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DOU_DISTR_VERIFICATION_REP4_DTL (
    I$SCHOOL_ID BIGINT,
    I$ROW_NUM SMALLINT)
RETURNS (
    WORKER_ID BIGINT,
    NAME VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DOU_DISTR_VERIFICATION_REPORT (
    I$DISTRICT_ID BIGINT)
RETURNS (
    SCHOOL_ID BIGINT,
    COL_NUM SMALLINT,
    VAL VARCHAR(4000),
    DATA VARCHAR(4000),
    ORIENTATION VARCHAR(20))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DOU_DISTR_VERIFICATION_REPORT2 (
    I$DISTRICT_ID BIGINT)
RETURNS (
    SCHOOL_ID BIGINT,
    COL_NUM SMALLINT,
    VAL VARCHAR(4000),
    DATA VARCHAR(4000),
    ORIENTATION VARCHAR(20))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DOU_DISTR_VERIFICATION_REPORT3 (
    I$DISTRICT_ID BIGINT)
RETURNS (
    SCHOOL_ID BIGINT,
    COL_NUM SMALLINT,
    ROW_NUM SMALLINT,
    VAL VARCHAR(4000),
    DATA VARCHAR(4000),
    ORIENTATION VARCHAR(20))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DOU_DISTR_VERIFICATION_REPORT4 (
    I$DISTRICT_ID BIGINT)
RETURNS (
    SCHOOL_ID BIGINT,
    COL_NUM SMALLINT,
    ROW_NUM SMALLINT,
    VAL VARCHAR(4000),
    DATA VARCHAR(4000),
    ORIENTATION VARCHAR(20))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DOU_DISTR_VERIFICATION_REP_DTL (
    I$SCHOOL_ID BIGINT,
    I$ROW_NUM SMALLINT)
RETURNS (
    BUILDING_ID BIGINT,
    NAME VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DOU_GROUP_DIRECTION_LIST (
    I$OBJ_ID BIGINT,
    I$PARAM_ID BIGINT,
    I$USER_ID BIGINT = NULL)
RETURNS (
    LISTVAL_ID BIGINT,
    PARENT_ID BIGINT,
    VAL VARCHAR(4000),
    VAL_LONG VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DOU_SCHOOLAR_IN (
    I$SCHOOL_ID BIGINT,
    I$FROM DATE,
    I$TO DATE)
RETURNS (
    C1 DATE,
    C2 VARCHAR(1000),
    C31 VARCHAR(1000),
    C41 DATE,
    C3 VARCHAR(1000),
    C4 DATE,
    C5 VARCHAR(1000),
    C6 VARCHAR(1000),
    C7 VARCHAR(1000),
    C8 VARCHAR(1000),
    C9 VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DOU_VERIFY_ALL (
    I$OBJ_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    LINK_ID BIGINT,
    OBJECT_ID BIGINT,
    NAME_TASK VARCHAR(1000),
    ERROR_NAME VARCHAR(1000),
    PARAMS_NAME VARCHAR(1000),
    ERROR_TEXT VARCHAR(1000),
    ERROR_TYPE SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DOU_VERIFY_BUILDING (
    I$OBJ_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    LINK_ID BIGINT,
    OBJECT_ID BIGINT,
    NAME_TASK VARCHAR(1000),
    ERROR_NAME VARCHAR(1000),
    PARAMS_NAME VARCHAR(1000),
    ERROR_TEXT VARCHAR(1000),
    ERROR_TYPE SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DOU_VERIFY_CLASS (
    I$OBJ_ID BIGINT)
RETURNS (
    LINK_ID BIGINT,
    OBJECT_ID BIGINT,
    NAME_TASK VARCHAR(1000),
    ERROR_NAME VARCHAR(1000),
    PARAMS_NAME VARCHAR(1000),
    ERROR_TEXT VARCHAR(1000),
    ERROR_TYPE SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DOU_VERIFY_DOCS (
    I$OBJ_ID BIGINT)
RETURNS (
    LINK_ID BIGINT,
    OBJECT_ID BIGINT,
    NAME_TASK VARCHAR(1000),
    ERROR_NAME VARCHAR(1000),
    PARAMS_NAME VARCHAR(1000),
    ERROR_TEXT VARCHAR(1000),
    ERROR_TYPE SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DOU_VERIFY_PUPIL (
    I$OBJ_ID BIGINT)
RETURNS (
    LINK_ID BIGINT,
    OBJECT_ID BIGINT,
    NAME_TASK VARCHAR(1000),
    ERROR_NAME VARCHAR(1000),
    PARAMS_NAME VARCHAR(1000),
    ERROR_TEXT VARCHAR(1000),
    ERROR_TYPE SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DOU_VERIFY_WORKERS (
    I$OBJ_ID BIGINT)
RETURNS (
    LINK_ID BIGINT,
    OBJECT_ID BIGINT,
    NAME_TASK VARCHAR(1000),
    ERROR_NAME VARCHAR(1000),
    PARAMS_NAME VARCHAR(1000),
    ERROR_TEXT VARCHAR(1000),
    ERROR_TYPE SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DO_CHECK (
    I$OBJ_ID BIGINT,
    I$PARAM_ID BIGINT,
    I$VAL VARCHAR(4000),
    I$DO_CHECK SMALLINT = 0,
    I$DO_CHECK_EVENT SMALLINT = 0)
RETURNS (
    IS_OK SMALLINT,
    MSG VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DO_FAM_FIELD (
    I$OBJ_ID BIGINT,
    I$PARAM_ID BIGINT)
RETURNS (
    VAL VARCHAR(400))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DO_FUNC (
    I$OBJ_ID BIGINT,
    I$PARAM_ID BIGINT,
    I$DO_FUNC BIGINT = null,
    I$AUTO_LISTVAL_ID BIGINT = null,
    I$USER_ID BIGINT = null,
    I$PARENT_ID BIGINT = null)
RETURNS (
    VAL VARCHAR(4000),
    I BIGINT,
    SORT_ORDER DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DO_FUNC2 (
    I$OBJ_ID BIGINT,
    I$PARAM_ID BIGINT,
    I$DO_FUNC BIGINT = NULL,
    I$AUTO_LISTVAL_ID BIGINT = NULL,
    I$USER_ID BIGINT = NULL,
    I$PARENT_ID BIGINT = NULL)
RETURNS (
    VAL VARCHAR(4000),
    I BIGINT,
    SORT_ORDER DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DO_FUNC_COUNT (
    I$OBJ_ID BIGINT,
    I$DO_FUNC BIGINT)
RETURNS (
    VAL INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DO_FUNC_MOVEMENT (
    I$OBJ_ID BIGINT,
    I$PARAM_ID BIGINT)
RETURNS (
    LISTVAL_ID BIGINT,
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DO_OBJECT_FILLED_CHECK (
    I$OBJ_ID BIGINT)
RETURNS (
    IS_OK SMALLINT,
    MSG VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DPO_DOCUMENTS_LIST (
    I$OBJ_ID BIGINT)
RETURNS (
    SERIE VARCHAR(100),
    NUMBER VARCHAR(100),
    ISSUE_DATE DATE,
    ISSUED_BY VARCHAR(1000),
    COURSE_NAME VARCHAR(1000),
    COURSE_HOURS INTEGER,
    DATE_FROM DATE,
    DATE_TO DATE)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DPO_GROUP_FINISH (
    I$GROUP_ID BIGINT,
    I$ORDER_DATE DATE,
    I$ORDER_NUM VARCHAR(100),
    I$USER_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE DPO_GROUP_MEMBERS (
    I$GROUP_ID BIGINT)
RETURNS (
    PERSON_ID BIGINT,
    LINK_ID BIGINT,
    PERSON_REGID VARCHAR(40),
    PERSON_NAME VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DPO_GROUP_RESULTS (
    I$GROUP_ID BIGINT)
RETURNS (
    DATE_FROM DATE,
    DATE_TO DATE,
    STUDENT_ID BIGINT,
    STUDENT_NAME VARCHAR(1000),
    DOCUMENT_DATE DATE,
    DOCUMENT_SERIE VARCHAR(100),
    DOCUMENT_NUM VARCHAR(100),
    DOCUMENT_TYPE BIGINT,
    DOCUMENT_REG VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DPO_GROUP_SYNC (
    I$PLAN_ID BIGINT,
    I$LINK_ID BIGINT,
    I$GROUP_ID BIGINT,
    I$PARENT_ID BIGINT,
    I$OBJ_NAME VARCHAR(1000),
    I$DATE_FROM DATE,
    I$DATE_TO DATE,
    I$GROUP_TYPE_ID BIGINT,
    I$FORM_ID BIGINT,
    I$FINANCING_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DPO_PERSON_GROUP_ADD (
    I$GROUP_ID BIGINT NOT NULL,
    I$PERSON_REGID VARCHAR(40),
    I$NAME_LAST VARCHAR(400),
    I$NAME_FIRST VARCHAR(400),
    I$NAME_MID VARCHAR(400),
    I$BIRTH_DATE DATE,
    I$SEX BIGINT,
    I$SNILS VARCHAR(40),
    I$PHONE_NUMBER VARCHAR(400))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE DPO_PLAN_EXPORT RETURNS (
    OP_ID BIGINT,
    OBJ_ID BIGINT,
    OBJ_NAME VARCHAR(1000),
    STATE_ID BIGINT,
    PROGRAM_TYPE_ID BIGINT,
    DPO_CODE VARCHAR(100),
    DESCRIPTION VARCHAR(4000),
    STUDY_METHOD_ID BIGINT,
    ORDER_DATE DATE,
    ORDER_NUM VARCHAR(100),
    LOAD_HOURS SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DPO_PROGRAMS_EXPORT RETURNS (
    OU_ID BIGINT,
    OBJ_ID BIGINT,
    OBJ_NAME VARCHAR(1000),
    PROGRAM_TYPE_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DPO_PROGRAM_EXPORT RETURNS (
    CATALOG_ID BIGINT,
    OBJ_ID BIGINT,
    OBJ_NAME VARCHAR(1000),
    TYPE_ID BIGINT,
    STUDY_TYPE_ID BIGINT,
    IS_NETWORK SMALLINT,
    IS_REMOTE SMALLINT,
    DURATION_STAGES SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DPO_STUDENT_LEAVE (
    I$GROUP_ID BIGINT,
    I$PERSON_ID BIGINT,
    I$USER_ID VARCHAR(40))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE DPS_PERSON_GET (
    I$LIC_ID BIGINT,
    I$PERSON_LASTNAME VARCHAR(1000),
    I$PERSON_NAME VARCHAR(1000),
    I$PERSON_PATRONYMIC VARCHAR(1000),
    I$BIRTH_DATE DATE,
    I$PERSON_TYPE SMALLINT = 0)
RETURNS (
    PERSON_ID BIGINT,
    ORG_ID BIGINT,
    GRADE_ID BIGINT,
    GRADE_NAME VARCHAR(1000),
    BIRTH_DATE DATE,
    SEX CHAR(1))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE DROP_CLASS_LEADERSHIP (
    I$EMPLOYEE_ID BIGINT NOT NULL,
    I$CLASS_ID BIGINT,
    I$USER_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE DROP_STUDENT_MOVEMENTS (
    I$OBJ_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE DROP_TEACHING_LOADS (
    I$EMPLOYEE_ID BIGINT NOT NULL,
    I$JOURNAL_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE D_12 (
    I$OBJ_ID BIGINT,
    LBL INTEGER,
    I$DT DATE = current_date)
RETURNS (
    V1 VARCHAR(10),
    V2 VARCHAR(10),
    V3 VARCHAR(10),
    VS VARCHAR(10))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE D_12_ADD_CALC_DISTR (
    I$OBJ_ID BIGINT,
    I$DT1 DATE,
    I$DT2 DATE = NULL,
    I$C1 VARCHAR(1000) = 'YES',
    I$C2 VARCHAR(1000) = 'YES',
    I$C3 VARCHAR(1000) = 'YES',
    I$C4 VARCHAR(3) = 'YES')
RETURNS (
    N CHAR(1))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE D_12_ADD_CALC_OU (
    I$OBJ_ID BIGINT,
    I$DT1 DATE,
    I$DT2 DATE,
    I$CORRECTION VARCHAR(3))
RETURNS (
    N CHAR(1))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE D_12_ADD_GET_LBL (
    LBL INTEGER)
RETURNS (
    C1 INTEGER,
    C2 INTEGER,
    C3 INTEGER,
    CS INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE D_12_ADD_GET_MOVEMENT (
    I$OBJ_ID BIGINT)
RETURNS (
    SCHOOL_ID BIGINT,
    SCHOLAR_ID BIGINT,
    CLASS_TYPE BIGINT,
    STAGE_ID BIGINT,
    CLASS_ID BIGINT,
    REASON_IN BIGINT,
    DATE_IN DATE,
    REASON_OUT BIGINT,
    DATE_OUT DATE)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE D_12_ADD_GET_STAGES (
    I$OBJ_ID BIGINT)
RETURNS (
    BEGIN_STAGE1 BIGINT,
    FINAL_STAGE1 BIGINT,
    BEGIN_STAGE2 BIGINT,
    FINAL_STAGE2 BIGINT,
    BEGIN_STAGE3 BIGINT,
    FINAL_STAGE3 BIGINT,
    HAS_ZERO SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE D_12_ADD_INSERT_MOVEMENT (
    SCHOOL_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE D_12_ADD_INSERT_ROW (
    SCHOOL_ID BIGINT,
    SCHOLAR_ID BIGINT,
    ROW_NUM INTEGER,
    STAGE_ID BIGINT,
    BEGIN_STAGE1 BIGINT,
    FINAL_STAGE1 BIGINT,
    BEGIN_STAGE2 BIGINT,
    FINAL_STAGE2 BIGINT,
    BEGIN_STAGE3 BIGINT,
    FINAL_STAGE3 BIGINT,
    CLASS_ID BIGINT = null,
    CLASS_TYPE_ID INTEGER = null)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE D_12_ADD_INSERT_ROWS (
    I$OBJ_ID BIGINT,
    I$DT1 DATE,
    I$DT2 DATE,
    I$CORRECTION VARCHAR(3) = '3')
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE D_12_ADD_INSERT_ROWS_DISTR (
    I$OBJ_ID BIGINT,
    I$DT1 DATE,
    I$DT2 DATE,
    I$CORRECTION VARCHAR(3))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE D_12_LIST (
    I$OBJ_ID BIGINT,
    I$DT1 DATE,
    I$DT2 DATE,
    I$LBL INTEGER,
    I$USER_ID BIGINT)
RETURNS (
    V1 VARCHAR(4000),
    V2 VARCHAR(400),
    V3 VARCHAR(4000),
    V4 VARCHAR(100),
    V5 VARCHAR(400))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE D_12_LIST_GET_SCHOOLAR (
    I$SCHOLAR_ID BIGINT,
    I$MOVE_ID BIGINT,
    I$USER_ID BIGINT,
    I$MT SMALLINT = 0)
RETURNS (
    V1 VARCHAR(4000),
    V2 VARCHAR(400),
    V3 VARCHAR(4000),
    V4 VARCHAR(100),
    V5 VARCHAR(400),
    V6 VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE D_12_LIST_SUMM (
    I$OBJ_ID BIGINT,
    I$DT1 DATE,
    I$DT2 DATE,
    LBL INTEGER)
RETURNS (
    CS INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE D_12_MAIN_CALC_DISTR (
    I$OBJ_ID BIGINT,
    DT1 DATE,
    DT2 DATE)
RETURNS (
    N CHAR(1))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE D_12_MAIN_CALC_OU (
    I$OBJ_ID BIGINT,
    DT1 DATE,
    DT2 DATE)
RETURNS (
    N CHAR(1))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE D_12_MAIN_CALC_REGION (
    I$OBJ_ID BIGINT,
    DT1 DATE,
    DT2 DATE = NULL,
    I$C1 VARCHAR(1000) = NULL,
    I$C2 VARCHAR(1000) = NULL,
    I$C3 VARCHAR(1000) = NULL)
RETURNS (
    N CHAR(1))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE D_12_MAIN_GET_LBL (
    LBL INTEGER)
RETURNS (
    C1 INTEGER,
    C2 INTEGER,
    C3 INTEGER,
    CS INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE D_12_MAIN_INSERT_ROW (
    SCHOOL_ID BIGINT,
    SCHOLAR_ID BIGINT,
    ROW_NUM INTEGER,
    STAGE_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE D_12_MAIN_INSERT_ROWS (
    I$OBJ_ID BIGINT,
    DT1 DATE,
    DT2 DATE)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE D_12_MAIN_INSERT_ROWS_DISTR (
    I$OBJ_ID BIGINT,
    DT1 DATE,
    DT2 DATE)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE EDITTYPES_LIST RETURNS (
    EDIT_TYPE SMALLINT,
    EDIT_NAME VARCHAR(100),
    EDIT_LEVEL SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE EDUCATION_PROGRAM_DIR_LIST (
    I$OBJ_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    LISTVAL_ID BIGINT,
    PARENT_ID BIGINT,
    VAL VARCHAR(4000),
    VAL_LONG VARCHAR(4000),
    TAG VARCHAR(100),
    "FILTER" VARCHAR(255))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE EDULOAD_APPROVE (
    I$OBJ_ID BIGINT,
    I$STATE_ID BIGINT,
    I$USER_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE EDULOAD_GET (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE EDULOAD_PROCESS_DEFER (
    I$YEAR_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE EDULOAD_SET (
    I$PARENT_ID BIGINT NOT NULL,
    I$PERSON_ID BIGINT,
    I$REF_TYPE_ID BIGINT NOT NULL,
    I$REF_ID BIGINT NOT NULL,
    I$PLAN_ID BIGINT,
    I$GROUP_TYPE_ID BIGINT,
    I$GROUP_NAME VARCHAR(400),
    I$STAGE_ID BIGINT,
    I$VAL FLOAT)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE EDULOAD_UPDATE_ORDER (
    I$OBJ_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE EDU_REPORT_LEVELS (
    I$OBJ_ID BIGINT)
RETURNS (
    PARENT_ID BIGINT,
    LISTVAL_ID BIGINT,
    VAL VARCHAR(400))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE EDU_REPORT_STAGES (
    I$OBJ_ID BIGINT)
RETURNS (
    PARENT_ID BIGINT,
    LISTVAL_ID BIGINT,
    VAL VARCHAR(400))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE EINSPECTOR_COINCIDE_LIST (
    I$MONITORING_ID BIGINT,
    I$ROOMDEMAND_TYPE_ID BIGINT)
RETURNS (
    ROOMDEMAND_ID BIGINT,
    ROOMDEMAND_NAME VARCHAR(1000),
    ROOMDEMAND_ROOM_TYPE VARCHAR(5000),
    ROOMDEMAND_SUBJECTS VARCHAR(5000),
    ROOM_ID BIGINT,
    ROOM_NAME VARCHAR(1000),
    ROOM_TYPE VARCHAR(1000),
    ROOM_ADDRESS VARCHAR(1000),
    ROOM_OWNERSHIP_TYPE VARCHAR(1000),
    ROOM_PERIOD_OF_VALIDITY VARCHAR(1000),
    ROOM_SQUARE FLOAT,
    SORT_ORDER DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE EINSPECTOR_EQDEMAND_ADD (
    I$EQDEMAND_TYPE_ID BIGINT,
    I$MONITORING_ID BIGINT,
    I$EQ_ID BIGINT,
    I$EQDEMAND_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE EINSPECTOR_EQDEMAND_COINCIDE (
    I$EQDEMAND_ID BIGINT)
RETURNS (
    EQ_ID BIGINT,
    EQ_NAME VARCHAR(1000),
    EQ_COUNT VARCHAR(10),
    EQ_YEAR VARCHAR(20),
    EQ_SUBJECT VARCHAR(1000),
    SORT_ORDER DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE EINSPECTOR_EQDEMAND_INIT (
    I$EQDEMAND_TYPE_ID BIGINT)
RETURNS (
    EQDEMAND_ID BIGINT,
    EQDEMAND_TYPE_LEVEL1 VARCHAR(1000),
    EQDEMAND_TYPE_LEVEL2 VARCHAR(1000),
    EQDEMAND_TYPE_LEVEL3 VARCHAR(1000),
    EQDEMAND_TYPE_COMPLEX VARCHAR(1000),
    EQDEMAND_NAME VARCHAR(1000),
    EQDEMAND_SUBJECTS VARCHAR(5000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE EINSPECTOR_EQ_COINCIDE_LIST (
    I$MONITORING_ID BIGINT,
    I$EQDEMAND_TYPE_ID BIGINT)
RETURNS (
    EQDEMAND_ID BIGINT,
    EQDEMAND_TYPE_LEVEL1 VARCHAR(1000),
    EQDEMAND_TYPE_LEVEL2 VARCHAR(1000),
    EQDEMAND_TYPE_LEVEL3 VARCHAR(1000),
    EQDEMAND_TYPE_COMPLEX VARCHAR(1000),
    EQDEMAND_NAME VARCHAR(1000),
    EQDEMAND_SUBJECTS VARCHAR(5000),
    EQ_ID BIGINT,
    EQ_NAME VARCHAR(1000),
    EQ_COUNT VARCHAR(10),
    EQ_YEAR VARCHAR(20),
    EQ_SUBJECT VARCHAR(1000),
    SORT_ORDER DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE EINSPECTOR_ROOMDEMAND_ADD (
    I$ROOMDEMAND_TYPE_ID BIGINT,
    I$MONITORING_ID BIGINT,
    I$ROOM_ID BIGINT,
    I$ROOMDEMAND_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE EINSPECTOR_ROOMDEMAND_CLEAR (
    I$MONITORING_ID BIGINT,
    I$ROOMDEMAND_TYPE_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE EINSPECTOR_ROOMDEMAND_COINCIDE (
    I$ROOMDEMAND_ID BIGINT,
    I$ROOMDEMAND_TYPE_ID BIGINT)
RETURNS (
    ROOM_ID BIGINT,
    ROOM_NAME VARCHAR(1000),
    ROOM_TYPE VARCHAR(1000),
    ROOM_SUBJECTS VARCHAR(4000),
    ROOM_ADDRESS VARCHAR(1000),
    ROOM_OWNERSHIP_TYPE VARCHAR(1000),
    ROOM_PERIOD_OF_VALIDITY VARCHAR(1000),
    ROOM_SQUARE FLOAT,
    SORT_ORDER DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE EINSPECTOR_ROOMDEMAND_INIT (
    I$ROOMDEMAND_TYPE_ID BIGINT)
RETURNS (
    ROOMDEMAND_ID BIGINT,
    ROOMDEMAND_NAME VARCHAR(1000),
    ROOMDEMAND_ROOM_TYPE VARCHAR(5000),
    ROOMDEMAND_SUBJECTS VARCHAR(5000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE EMPLOYEES_LIST (
    I$OBJ_ID BIGINT,
    I$MODE SMALLINT = 0)
RETURNS (
    PARENT_ID BIGINT,
    OBJ_ID BIGINT,
    OBJ_TYPE_ID BIGINT,
    CAPTION VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE EMPLOYEE_COURSE_IMPORT (
    I$SCHOOL_ID BIGINT,
    I$EMPLOYEE_ID BIGINT,
    I$TEACHING_ORGANIZATION VARCHAR(1000),
    I$TEACHING_ORGANIZATION_SHORT VARCHAR(1000),
    I$STUDY_GROUP VARCHAR(1000),
    I$STUDY_COURSE VARCHAR(1000),
    I$EDUCATION_TYPE VARCHAR(255),
    I$COURSE_CATEGORY VARCHAR(255),
    I$TOTAL_HOURS INTEGER,
    I$DOCUMENT_TYPE BIGINT,
    I$DOCUMENT_SERIES VARCHAR(20),
    I$DOCUMENT_NUMBER VARCHAR(50),
    I$DOCUMENT_ISSUE_DATE DATE,
    I$USER_ID BIGINT)
RETURNS (
    STATUS INTEGER,
    MSG VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE EMPLOYEE_JOBS_LIST (
    I$OBJ_ID BIGINT)
RETURNS (
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE EMPLOYEE_JOB_GET (
    I$OBJ_ID BIGINT,
    I$JOB_ID BIGINT,
    I$PARENT_ID BIGINT,
    I$ACTION SMALLINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE EMPLOYEE_JOB_LIST (
    I$OBJ_ID BIGINT)
RETURNS (
    ID BIGINT,
    CAPTION VARCHAR(1000),
    RATE NUMERIC(15,2),
    DATE_ACCEPT DATE,
    DATE_LEAVE DATE,
    JOB_LEVEL VARCHAR(100),
    CND_ID BIGINT,
    CAT_ID BIGINT,
    CND_CAPTION VARCHAR(100),
    CAT_CAPTION VARCHAR(100),
    BOOK_NAME VARCHAR(400))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE EMPLOYEE_LEAVE_JOB_GET (
    I$OBJ_ID BIGINT,
    I$PARENT_ID BIGINT,
    I$USER_ID VARCHAR(40),
    I$ORDER SMALLINT = 0)
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE EMPLOYEE_LOAD_GET (
    I$PERSON_ID BIGINT,
    I$DATE DATE)
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE ENROLLEE_FIND_PUPIL (
    I$LASTNAME VARCHAR(100) NOT NULL,
    I$FIRSTNAME VARCHAR(100) NOT NULL,
    I$BIRTHDATE DATE NOT NULL,
    I$SCHOOL_ID BIGINT NOT NULL)
RETURNS (
    PUPIL_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE ENROLLEE_SCHOOL_LIST (
    I$OBJ_ID BIGINT)
RETURNS (
    SCHOOL_ID BIGINT,
    SCHOOL_OGRN VARCHAR(20))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE ENROLLEE_SET (
    I$SCHOOL_ID BIGINT,
    I$REG_ID VARCHAR(50),
    I$BIRTHDATE DATE,
    I$FIRSTNAME VARCHAR(100),
    I$SECONDNAME VARCHAR(100),
    I$LASTNAME VARCHAR(100),
    I$GENDER BIGINT,
    I$CITIZENSHIP BIGINT,
    I$PLACEOFBIRTH VARCHAR(200),
    I$REGISTRATIONADDRESS VARCHAR(200),
    I$ACTUALADDRESS VARCHAR(200),
    I$DATENUMBERORDER VARCHAR(10),
    I$APPLICATIONDATE TIMESTAMP,
    I$SNILS VARCHAR(20),
    I$DOCTYPECODE BIGINT,
    I$DOCSERIES VARCHAR(10),
    I$DOCNUMBER VARCHAR(20),
    I$DOCDATE DATE,
    I$DOCDELIVERY VARCHAR(200),
    I$P_FIRSTNAME VARCHAR(100),
    I$P_SECONDNAME VARCHAR(100),
    I$P_LASTNAME VARCHAR(100),
    I$P_BIRTHDATE DATE,
    I$NATIVELANGUAGE BIGINT,
    I$EDUCATIONTYPE BIGINT,
    I$USER_ID BIGINT = 1)
RETURNS (
    PUPIL_ID BIGINT,
    IS_NEW_RECORD SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE ENTRANCE_STAGE_LIST (
    I$STAGE_ID BIGINT,
    I$CURRENT_STAGE_TYPE_FL SMALLINT = 0)
RETURNS (
    STAGE_ID BIGINT,
    STAGE_TYPE_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE EPT_FILTRED_LIST (
    I$OBJ_ID BIGINT,
    I$LIST_ID BIGINT,
    I$USER_ID BIGINT = NULL)
RETURNS (
    LISTVAL_ID BIGINT,
    PARENT_ID BIGINT,
    VAL VARCHAR(4000),
    VAL_LONG VARCHAR(4000),
    TAG VARCHAR(100),
    "FILTER" VARCHAR(255))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE ESCAPE_STR (
    S VARCHAR(4000))
RETURNS (
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE EVENT_STAGE_LIST (
    I$LIST_ID BIGINT)
RETURNS (
    PARENT_ID BIGINT,
    LISTVAL_ID BIGINT,
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE EXPLODE_STR (
    S VARCHAR(4000),
    DELIM VARCHAR(1) = ';')
RETURNS (
    ID VARCHAR(100),
    V VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE EXPORT_CJ2_JOURNAL (
    I$REPL_DATE TIMESTAMP = null)
RETURNS (
    OBJ_ID BIGINT,
    DATE_ADD TIMESTAMP,
    DATE_MODIFY TIMESTAMP,
    DATE_DEL TIMESTAMP,
    GRADE_ID BIGINT,
    SUBJECT_ID BIGINT,
    TEACHER_ID BIGINT,
    JOURNAL_TYPE SMALLINT,
    GRADE_TYPE_ID BIGINT,
    STAGE_INDEX BIGINT,
    JOURNAL_NAME VARCHAR(1000),
    STAGE_MASK BIGINT,
    REF_ID BIGINT,
    YEAR_ID BIGINT,
    WEEKS INTEGER,
    HOURS FLOAT,
    IS_ENABLED SMALLINT,
    RCM_MODE SMALLINT,
    DURATION SMALLINT,
    DAYMASK SMALLINT,
    PERIOD_ID BIGINT,
    EXT_INFO VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE EXPORT_CONTINGENT_CALC RETURNS (
    SCHOOL_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE EXPORT_HASHES (
    I$OBJ_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    PARAM_ID BIGINT,
    VAL VARCHAR(1000),
    H VARCHAR(200))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE EXPORT_INSPECTOR RETURNS (
    PRG_CODE VARCHAR(10),
    PARAM_NAME VARCHAR(100),
    PARAM_VALUE VARCHAR(30))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE EXPORT_LINKS (
    I$REPL_DATE TIMESTAMP = NULL,
    I$SUBTYPE VARCHAR(1) = NULL)
RETURNS (
    LINK_ID BIGINT,
    PARENT_ID BIGINT,
    OBJ_ID BIGINT,
    EXT_OBJ_ID BIGINT,
    REASON_ID BIGINT,
    LISTVAL_ID BIGINT,
    USER_ID BIGINT,
    DATE_INS TIMESTAMP,
    DATE_DEL TIMESTAMP,
    COST FLOAT,
    IS_REPL SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE EXPORT_LISTVALS (
    I$REPL_DATE TIMESTAMP = null)
RETURNS (
    LISTVAL_ID BIGINT,
    LIST_ID BIGINT,
    RES_ID BIGINT,
    PARENT_ID BIGINT,
    TAG VARCHAR(100),
    SORT_ORDER SMALLINT,
    COST FLOAT,
    IS_REPL SMALLINT,
    IS_DEL SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE EXPORT_LOCAL_DO_FUNC RETURNS (
    OBJ_ID BIGINT,
    PARAM_ID BIGINT,
    DO_FUNC BIGINT,
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE EXPORT_METADATA RETURNS (
    OBJ_ID BIGINT,
    ATTRNAME VARCHAR(100),
    ATTRVALUE VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE EXPORT_MI RETURNS (
    ORG_ID BIGINT,
    PARAM_ID VARCHAR(100),
    VAL VARCHAR(400))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE EXPORT_MOVEMENTS (
    I$REPL_DATE TIMESTAMP = null)
RETURNS (
    OBJ_ID BIGINT,
    DATE_ADD TIMESTAMP,
    DATE_MODIFY TIMESTAMP,
    DATE_DEL TIMESTAMP,
    PERSON_ID BIGINT,
    GROUP_ID BIGINT,
    REASON_IN BIGINT,
    DATE_IN DATE,
    DATE_OUT DATE,
    STAGE_ID BIGINT,
    ORDER_DATE_IN DATE,
    ORDER_NUM_IN VARCHAR(40),
    ORDER_DATE_OUT DATE,
    ORDER_NUM_OUT VARCHAR(40),
    ORDER_ID_IN BIGINT,
    ORDER_ID_OUT BIGINT,
    NAME_IN VARCHAR(400),
    REASON_OUT BIGINT,
    USER_IN BIGINT,
    USER_OUT BIGINT,
    TYPE_IN BIGINT,
    IS_VD SMALLINT,
    SOURCE_IN BIGINT,
    SOURCE_OUT BIGINT,
    PLAN_STAGES SMALLINT,
    STAGE_YEAR SMALLINT,
    GROUP_TYPE_ID BIGINT,
    LEVEL_ID BIGINT,
    OU_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE EXPORT_OBJECTS (
    I$REPL_DATE TIMESTAMP = null)
RETURNS (
    OBJ_ID BIGINT,
    TYPE_ID BIGINT,
    IS_REPL SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE EXPORT_ORDERS (
    I$REPL_DATE TIMESTAMP = null)
RETURNS (
    OBJ_ID BIGINT,
    DATE_ADD TIMESTAMP,
    DATE_MODIFY TIMESTAMP,
    DATE_DEL TIMESTAMP,
    PARENT_ID BIGINT,
    TYPE_ID BIGINT,
    SIGNED_BY BIGINT,
    ORDER_DATE DATE,
    ORDER_NUM VARCHAR(100),
    DETAILS_TEXT VARCHAR(1000),
    STATE_ID BIGINT,
    CANCEL_DATE DATE,
    USER_ID BIGINT,
    ACTION_DATE DATE,
    PROJECT_NUM VARCHAR(40),
    COMMENTS VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE EXPORT_ORDER_DATA (
    I$REPL_DATE TIMESTAMP = null)
RETURNS (
    OBJ_ID BIGINT,
    DATE_ADD TIMESTAMP,
    DATE_MODIFY TIMESTAMP,
    DATE_DEL TIMESTAMP,
    ORDER_ID BIGINT,
    ACTION_ID BIGINT,
    ACTION_TYPE SMALLINT,
    REF_ID BIGINT,
    IS_PRESENT SMALLINT,
    GRADE_NAME VARCHAR(400))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE EXPORT_PLAN_LOADS (
    I$REPL_DATE TIMESTAMP = null)
RETURNS (
    OBJ_ID BIGINT,
    SUBJECT_ID BIGINT,
    STAGE_ID BIGINT,
    DATE_ADD TIMESTAMP,
    DATE_MODIFY TIMESTAMP,
    DATE_DEL TIMESTAMP,
    WEEKS SMALLINT,
    LOAD_HOURS FLOAT,
    LOAD_HOURS_S1 FLOAT,
    LOAD_HOURS_S2 FLOAT,
    CONTROL_Q1 BIGINT,
    CONTROL_Q2 BIGINT,
    HOURS_THEORY1 FLOAT,
    HOURS_PR1 FLOAT,
    HOURS_DX1 FLOAT,
    HOURS_IND1 FLOAT,
    HOURS_MAX FLOAT,
    HOURS_CR1 FLOAT,
    HOURS_ATT1 FLOAT,
    HOURS_GIA FLOAT,
    HOURS_REST FLOAT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE EXPORT_PLAN_RESOURCES (
    I$REPL_DATE TIMESTAMP = null)
RETURNS (
    OBJ_ID BIGINT,
    DATE_ADD TIMESTAMP,
    DATE_MODIFY TIMESTAMP,
    DATE_DEL TIMESTAMP,
    LOAD_ID BIGINT,
    RES_ID BIGINT,
    QTY DOUBLE PRECISION,
    RES_TYPE_ID SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE EXPORT_PLAN_SUBJECTS (
    I$REPL_DATE TIMESTAMP = null)
RETURNS (
    OBJ_ID BIGINT,
    PLAN_ID BIGINT,
    SUBJECT_ID BIGINT,
    FIELD_ID BIGINT,
    DATE_ADD TIMESTAMP,
    DATE_MODIFY TIMESTAMP,
    DATE_DEL TIMESTAMP,
    SORT_INDEX SMALLINT,
    PARENT_ID BIGINT,
    LEVEL_INDEX SMALLINT,
    GLOBAL_INDEX INTEGER,
    IS_ADV SMALLINT,
    ROW_TYPE SMALLINT,
    SRC_SUBJECT_ID BIGINT,
    IS_STM SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE EXPORT_POST_AS_WORK_FUNC RETURNS (
    BLOB_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE EXPORT_RES (
    I$REPL_DATE TIMESTAMP = null)
RETURNS (
    RES_ID BIGINT,
    LANG_CODE CHAR(2),
    VAL VARCHAR(4000),
    VAL_LONG VARCHAR(4000),
    IS_REPL SMALLINT,
    IS_DEL SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE EXPORT_RETRAININGS_BY_SCHOOL (
    I$SCHOOL_ID BIGINT)
RETURNS (
    TAG_NAME VARCHAR(255),
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE EXPORT_RSOKO_INDICATORS RETURNS (
    TAG_NAME VARCHAR(255),
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE EXPORT_RSOKO_SCHOOL_INDICATORS (
    I$SCHOOL_ID BIGINT = null)
RETURNS (
    TAG_NAME VARCHAR(255),
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE EXPORT_VALA (
    I$REPL_DATE TIMESTAMP = null)
RETURNS (
    PARAM_ID BIGINT,
    OBJ_ID BIGINT,
    USER_ID BIGINT,
    IS_REPL SMALLINT,
    IS_DEL SMALLINT,
    REGION VARCHAR(255),
    DISTRICT VARCHAR(255),
    TOWN VARCHAR(255),
    SETTLEMENT VARCHAR(255),
    STREET VARCHAR(255),
    HOUSE VARCHAR(10),
    LITER VARCHAR(10),
    CORP VARCHAR(10),
    FLAT VARCHAR(10),
    POST_INDEX VARCHAR(20),
    OCATD VARCHAR(11),
    FIAS_UID VARCHAR(36),
    STREET_UID VARCHAR(36))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE EXPORT_VALB (
    I$REPL_DATE TIMESTAMP = null)
RETURNS (
    PARAM_ID BIGINT,
    OBJ_ID BIGINT,
    USER_ID BIGINT,
    IS_REPL SMALLINT,
    IS_DEL SMALLINT,
    VAL VARCHAR(4000),
    BLOB_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE EXPORT_VALD (
    I$REPL_DATE TIMESTAMP = null)
RETURNS (
    PARAM_ID BIGINT,
    OBJ_ID BIGINT,
    USER_ID BIGINT,
    IS_REPL SMALLINT,
    IS_DEL SMALLINT,
    VAL DATE)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE EXPORT_VALDT (
    I$REPL_DATE TIMESTAMP = null)
RETURNS (
    PARAM_ID BIGINT,
    OBJ_ID BIGINT,
    USER_ID BIGINT,
    IS_REPL SMALLINT,
    IS_DEL SMALLINT,
    VAL TIMESTAMP)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE EXPORT_VALF (
    I$REPL_DATE TIMESTAMP = null)
RETURNS (
    PARAM_ID BIGINT,
    OBJ_ID BIGINT,
    USER_ID BIGINT,
    IS_REPL SMALLINT,
    IS_DEL SMALLINT,
    VAL DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE EXPORT_VALI (
    I$REPL_DATE TIMESTAMP = null)
RETURNS (
    PARAM_ID BIGINT,
    OBJ_ID BIGINT,
    USER_ID BIGINT,
    IS_REPL SMALLINT,
    IS_DEL SMALLINT,
    VAL INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE EXPORT_VALL (
    I$REPL_DATE TIMESTAMP = null)
RETURNS (
    PARAM_ID BIGINT,
    OBJ_ID BIGINT,
    USER_ID BIGINT,
    IS_REPL SMALLINT,
    IS_DEL SMALLINT,
    LISTVAL_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE EXPORT_VALM (
    I$REPL_DATE TIMESTAMP = null)
RETURNS (
    MARK_ID BIGINT,
    PUPIL_ID BIGINT,
    SUBJECT_ID BIGINT,
    TEACHER_ID BIGINT,
    YEAR_ID BIGINT,
    MARKTYPE_ID BIGINT,
    MARKVAL_ID BIGINT,
    IS_DEL SMALLINT,
    PERIOD_FROM DATE,
    PERIOD_TO DATE,
    GRADE_ID BIGINT,
    MARK_DATE DATE,
    IS_NATIVE SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE EXPORT_VALR (
    I$REPL_DATE TIMESTAMP = null)
RETURNS (
    PARAM_ID BIGINT,
    OBJ_ID BIGINT,
    USER_ID BIGINT,
    IS_REPL SMALLINT,
    IS_DEL SMALLINT,
    VAL BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE EXPORT_VALS (
    I$REPL_DATE TIMESTAMP = null)
RETURNS (
    PARAM_ID BIGINT,
    OBJ_ID BIGINT,
    USER_ID BIGINT,
    IS_REPL SMALLINT,
    IS_DEL SMALLINT,
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE EXPORT_VALT (
    I$REPL_DATE TIMESTAMP = null)
RETURNS (
    PARAM_ID BIGINT,
    OBJ_ID BIGINT,
    USER_ID BIGINT,
    IS_REPL SMALLINT,
    IS_DEL SMALLINT,
    VAL TIME)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE EXTERNAT_PUPIL_MOVEMENT (
    I$PUPIL_ID BIGINT,
    I$GROUP_ID BIGINT,
    I$ORDER_NUMBER VARCHAR(100),
    I$ORDER_DATE DATE,
    I$ACTION_DATE DATE,
    I$ACTION_TYPE BIGINT,
    I$USER_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FGOS_SPECIALITY_LIST (
    I$LIST_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    LISTVAL_ID BIGINT,
    PARENT_ID BIGINT,
    VAL VARCHAR(4000),
    VAL_LONG VARCHAR(4000),
    TAG VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FGOS_SPECIALITY_SET (
    I$OBJ_ID BIGINT,
    I$PARAM_ID BIGINT,
    I$LISTVAL_ID BIGINT,
    I$USER_ID BIGINT,
    I$IS_DEL SMALLINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FILTERFIELDSSETS_LIST (
    I$USER_ID BIGINT,
    I$LEVEL_ID BIGINT,
    I$TYPE_ID BIGINT)
RETURNS (
    FILTERFIELDSSET_ID BIGINT,
    USER_ID BIGINT,
    TYPE_ID BIGINT,
    LEVEL_ID BIGINT,
    FILTERFIELDSSET_NAME VARCHAR(100),
    IS_LAST SMALLINT,
    IS_ACTIVE SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FILTERFIELDSSET_ADD (
    I$FILTERFIELDSSET_ID BIGINT,
    I$USER_ID BIGINT,
    I$LEVEL_ID BIGINT,
    I$TYPE_ID BIGINT,
    I$FILTERFIELDSSET_NAME VARCHAR(100),
    I$IS_LAST SMALLINT)
RETURNS (
    FILTERFIELDSSET_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FILTERFIELDSSET_DEL (
    I$FILTERFIELDSSET_ID BIGINT,
    I$USER_ID BIGINT,
    I$LEVEL_ID BIGINT,
    I$TYPE_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FILTERFIELDSSET_GET (
    I$FILTERFIELDSSET_ID BIGINT,
    I$USER_ID BIGINT,
    I$LEVEL_ID BIGINT,
    I$TYPE_ID BIGINT,
    I$FILTERFIELDSSET_NAME VARCHAR(100) = NULL)
RETURNS (
    FILTERFIELDSSET_ID BIGINT,
    USER_ID BIGINT,
    TYPE_ID BIGINT,
    LEVEL_ID BIGINT,
    FILTERFIELDSSET_NAME VARCHAR(100),
    IS_LAST SMALLINT,
    IS_ACTIVE SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FILTERFIELDS_LIST (
    I$FILTERFIELDSSET_ID BIGINT,
    I$USER_ID BIGINT,
    I$LEVEL_ID BIGINT,
    I$TYPE_ID BIGINT)
RETURNS (
    FILTERFIELDSSET_ID BIGINT,
    FILTERFIELD_NUM SMALLINT,
    PARAM_ID BIGINT,
    PARAM_CAPTION VARCHAR(4000),
    IS_TREEVIEW SMALLINT,
    IS_CHECKED SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FILTERFIELDS_LIST2 (
    I$FILTERFIELDSSET_ID BIGINT,
    I$USER_ID BIGINT,
    I$LEVEL_ID BIGINT,
    I$TYPE_ID BIGINT)
RETURNS (
    FILTERFIELDSSET_ID BIGINT,
    FILTERFIELD_NUM SMALLINT,
    PARENT_ID VARCHAR(40),
    PARAM_ID VARCHAR(40),
    PARAM_CAPTION VARCHAR(4000),
    IS_TREEVIEW SMALLINT,
    IS_CHECKED SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FILTERFIELD_ADD (
    I$FILTERFIELDSSET_ID BIGINT,
    I$PARAM_ID BIGINT)
RETURNS (
    FILTERFIELD_NUM SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FILTERFIELD_DEL (
    I$FILTERFIELDSSET_ID BIGINT,
    I$USER_ID BIGINT,
    I$LEVEL_ID BIGINT,
    I$TYPE_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FILTERS_LIST (
    I$USER_ID BIGINT,
    I$LEVEL_ID BIGINT)
RETURNS (
    FILTER_ID BIGINT,
    USER_ID BIGINT,
    TYPE_ID BIGINT,
    LEVEL_ID BIGINT,
    FILTER_NAME VARCHAR(100),
    PARENT_TYPE_ID BIGINT,
    IS_LAST SMALLINT,
    IS_ACTIVE SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FILTERVALS_LIST (
    I$FILTER_ID BIGINT,
    I$LANG_CODE VARCHAR(2) = 'RU')
RETURNS (
    FILTER_ID BIGINT,
    FILTER_NUM SMALLINT,
    PARAM_ID BIGINT,
    PARAM_TYPE SMALLINT,
    CAPTION VARCHAR(4000),
    VAL_TYPE VARCHAR(100),
    VAL VARCHAR(4000),
    LIST_ID BIGINT,
    LISTVAL_ID BIGINT,
    OPERATOR SMALLINT,
    REGION VARCHAR(255),
    DISTRICT VARCHAR(255),
    TOWN VARCHAR(255),
    SETTLEMENT VARCHAR(255),
    STREET VARCHAR(255),
    HOUSE VARCHAR(10),
    LITER VARCHAR(10),
    CORP VARCHAR(10),
    FLAT VARCHAR(10),
    POST_INDEX VARCHAR(20),
    RUN_SQL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FILTERVAL_ADD (
    I$FILTER_ID BIGINT,
    I$PARAM_ID BIGINT,
    I$VAL VARCHAR(4000),
    I$OPERATOR SMALLINT,
    I$REGION VARCHAR(255) = NULL,
    I$DISTRICT VARCHAR(255) = NULL,
    I$TOWN VARCHAR(255) = NULL,
    I$SETTLEMENT VARCHAR(255) = NULL,
    I$STREET VARCHAR(255) = NULL,
    I$HOUSE VARCHAR(10) = NULL,
    I$LITER VARCHAR(10) = NULL,
    I$CORP VARCHAR(10) = NULL,
    I$FLAT VARCHAR(10) = NULL,
    I$POST_INDEX VARCHAR(20) = NULL)
RETURNS (
    FILTER_NUM SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FILTERVAL_DEL (
    I$FILTER_ID BIGINT,
    I$USER_ID BIGINT,
    I$LEVEL_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FILTER_ADD (
    I$FILTER_ID BIGINT,
    I$USER_ID BIGINT,
    I$TYPE_ID BIGINT,
    I$LEVEL_ID BIGINT,
    I$FILTER_NAME VARCHAR(100),
    I$IS_LAST SMALLINT,
    I$LOGICAL_OPERATOR SMALLINT,
    I$PARENT_TYPE_ID BIGINT,
    I$ACTUAL_DATE DATE,
    I$IS_ACTUAL_DATE_USED SMALLINT)
RETURNS (
    FILTER_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FILTER_APARAM_CHECK (
    I$PARAM_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$OP SMALLINT,
    I$TYPE_ID BIGINT,
    I$PARAM_OBJ_TYPE_ID BIGINT,
    I$REGION VARCHAR(255),
    I$DISTRICT VARCHAR(255),
    I$TOWN VARCHAR(255),
    I$SETTLEMENT VARCHAR(255),
    I$STREET VARCHAR(255),
    I$HOUSE VARCHAR(10),
    I$LITER VARCHAR(10),
    I$CORP VARCHAR(10),
    I$FLAT VARCHAR(10),
    I$POST_INDEX VARCHAR(20))
RETURNS (
    C INTEGER,
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FILTER_APPLY (
    I$OBJ_ID BIGINT,
    I$USER_ID BIGINT,
    I$LEVEL_ID BIGINT)
RETURNS (
    ROW_NUM INTEGER,
    COL_NUM INTEGER,
    OBJ_ID BIGINT,
    TYPE_ID BIGINT,
    TAB_ID BIGINT,
    PARENT_ID BIGINT,
    PARENT_TYPE_ID BIGINT,
    PARENT_LINK_ID BIGINT,
    PARENT_CAPTION VARCHAR(3000),
    LINK_ID BIGINT,
    PARAM_ID BIGINT,
    PARAM_TYPE SMALLINT,
    PARAM_CAPTION VARCHAR(3000),
    HINT_CAPTION VARCHAR(3000),
    EDIT_MASK VARCHAR(200),
    VAL VARCHAR(4000),
    DO_FUNC BIGINT,
    IS_DEL SMALLINT,
    EDIT_TYPE SMALLINT,
    LISTVAL_ID BIGINT,
    LIST_ID BIGINT,
    LIST_EDIT_TYPE SMALLINT,
    REGION VARCHAR(255),
    DISTRICT VARCHAR(255),
    TOWN VARCHAR(255),
    SETTLEMENT VARCHAR(255),
    STREET VARCHAR(255),
    HOUSE VARCHAR(10),
    LITER VARCHAR(10),
    CORP VARCHAR(10),
    FLAT VARCHAR(10),
    POST_INDEX VARCHAR(20))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FILTER_APPLY2 (
    I$OBJ_ID BIGINT,
    I$USER_ID BIGINT,
    I$LEVEL_ID BIGINT)
RETURNS (
    ROW_NUM INTEGER,
    COL_NUM INTEGER,
    OBJ_ID BIGINT,
    TYPE_ID BIGINT,
    TAB_ID BIGINT,
    CHILD_ID BIGINT,
    CHILD_TYPE_ID BIGINT,
    PARENT_ID BIGINT,
    PARENT_TYPE_ID BIGINT,
    PARENT_LINK_ID BIGINT,
    PARENT_CAPTION VARCHAR(3000),
    LINK_ID BIGINT,
    PARAM_ID BIGINT,
    PARAM_TYPE SMALLINT,
    PARAM_CAPTION VARCHAR(3000),
    HINT_CAPTION VARCHAR(3000),
    EDIT_MASK VARCHAR(200),
    VAL VARCHAR(4000),
    DO_FUNC BIGINT,
    IS_DEL SMALLINT,
    EDIT_TYPE SMALLINT,
    LISTVAL_ID BIGINT,
    LIST_ID BIGINT,
    LIST_EDIT_TYPE SMALLINT,
    REGION VARCHAR(255),
    DISTRICT VARCHAR(255),
    TOWN VARCHAR(255),
    SETTLEMENT VARCHAR(255),
    STREET VARCHAR(255),
    HOUSE VARCHAR(10),
    LITER VARCHAR(10),
    CORP VARCHAR(10),
    FLAT VARCHAR(10),
    POST_INDEX VARCHAR(20))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FILTER_APPLY3 (
    I$OBJ_ID BIGINT,
    I$USER_ID BIGINT,
    I$LEVEL_ID BIGINT)
RETURNS (
    ROW_NUM INTEGER,
    COL_NUM INTEGER,
    OBJ_ID BIGINT,
    TYPE_ID BIGINT,
    TAB_ID BIGINT,
    CHILD_ID BIGINT,
    CHILD_TYPE_ID BIGINT,
    PARENT_ID BIGINT,
    PARENT_TYPE_ID BIGINT,
    PARENT_LINK_ID BIGINT,
    PARENT_CAPTION VARCHAR(3000),
    LINK_ID BIGINT,
    PARAM_ID BIGINT,
    PARAM_TYPE SMALLINT,
    PARAM_CAPTION VARCHAR(3000),
    HINT_CAPTION VARCHAR(3000),
    EDIT_MASK VARCHAR(200),
    VAL VARCHAR(4000),
    DO_FUNC BIGINT,
    IS_DEL SMALLINT,
    EDIT_TYPE SMALLINT,
    LISTVAL_ID BIGINT,
    LIST_ID BIGINT,
    LIST_EDIT_TYPE SMALLINT,
    REGION VARCHAR(255),
    DISTRICT VARCHAR(255),
    TOWN VARCHAR(255),
    SETTLEMENT VARCHAR(255),
    STREET VARCHAR(255),
    HOUSE VARCHAR(10),
    LITER VARCHAR(10),
    CORP VARCHAR(10),
    FLAT VARCHAR(10),
    POST_INDEX VARCHAR(20))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FILTER_CPARAM_CHECK (
    I$PARAM_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$OP SMALLINT,
    I$TYPE_ID BIGINT,
    I$PARAM_OBJ_TYPE_ID BIGINT,
    I$VAL VARCHAR(4000))
RETURNS (
    C INTEGER,
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FILTER_DEL (
    I$FILTER_ID BIGINT,
    I$USER_ID BIGINT,
    I$LEVEL_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FILTER_DPARAM_CHECK (
    I$PARAM_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$OP SMALLINT,
    I$TYPE_ID BIGINT,
    I$PARAM_OBJ_TYPE_ID BIGINT,
    I$VAL VARCHAR(4000))
RETURNS (
    C INTEGER,
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FILTER_DTPARAM_CHECK (
    I$PARAM_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$OP SMALLINT,
    I$TYPE_ID BIGINT,
    I$PARAM_OBJ_TYPE_ID BIGINT,
    I$VAL TIMESTAMP)
RETURNS (
    C INTEGER,
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FILTER_FPARAM_CHECK (
    I$PARAM_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$OP SMALLINT,
    I$TYPE_ID BIGINT,
    I$PARAM_OBJ_TYPE_ID BIGINT,
    I$VAL DOUBLE PRECISION)
RETURNS (
    C INTEGER,
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FILTER_GET (
    I$FILTER_ID BIGINT,
    I$USER_ID BIGINT,
    I$LEVEL_ID BIGINT,
    I$FILTER_NAME VARCHAR(100) = NULL)
RETURNS (
    FILTER_ID BIGINT,
    USER_ID BIGINT,
    TYPE_ID BIGINT,
    LEVEL_ID BIGINT,
    FILTER_NAME VARCHAR(100),
    IS_LAST SMALLINT,
    LOGICAL_OPERATOR SMALLINT,
    PARENT_TYPE_ID BIGINT,
    ACTUAL_DATE DATE,
    IS_ACTUAL_DATE_USED SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FILTER_IPARAM_CHECK (
    I$PARAM_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$OP SMALLINT,
    I$TYPE_ID BIGINT,
    I$PARAM_OBJ_TYPE_ID BIGINT,
    I$VAL INTEGER)
RETURNS (
    C INTEGER,
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FILTER_LPARAM_CHECK (
    I$PARAM_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$OP SMALLINT,
    I$TYPE_ID BIGINT,
    I$PARAM_OBJ_TYPE_ID BIGINT,
    I$VAL BIGINT)
RETURNS (
    C INTEGER,
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FILTER_OBJECT_CHILDREN_GET (
    I$OBJ_ID BIGINT,
    I$LINK_ID BIGINT,
    I$CHILDREN_TYPE_ID BIGINT,
    I$LEVEL_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    LINK_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FILTER_OBJECT_PARENTS_GET (
    I$LINK_ID BIGINT,
    I$ROOT_LINK_ID BIGINT,
    I$LEVEL_ID BIGINT)
RETURNS (
    LINK_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FILTER_RPARAM_CHECK (
    I$PARAM_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$OP SMALLINT,
    I$TYPE_ID BIGINT,
    I$PARAM_OBJ_TYPE_ID BIGINT,
    I$VAL BIGINT)
RETURNS (
    C INTEGER,
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FILTER_SPARAM_CHECK (
    I$PARAM_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$OP SMALLINT,
    I$TYPE_ID BIGINT,
    I$PARAM_OBJ_TYPE_ID BIGINT,
    I$VAL VARCHAR(4000))
RETURNS (
    C INTEGER,
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FILTER_TPARAM_CHECK (
    I$PARAM_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$OP SMALLINT,
    I$TYPE_ID BIGINT,
    I$PARAM_OBJ_TYPE_ID BIGINT,
    I$VAL TIME)
RETURNS (
    C INTEGER,
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FILTRED_LIST (
    I$LIST_ID BIGINT,
    I$FILTER VARCHAR(255),
    I$USER_ID BIGINT = NULL)
RETURNS (
    LISTVAL_ID BIGINT,
    PARENT_ID BIGINT,
    VAL VARCHAR(4000),
    VAL_LONG VARCHAR(4000),
    TAG VARCHAR(100),
    "FILTER" VARCHAR(255))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FINALMARKS_CLASSES (
    I$OBJ_ID BIGINT,
    I$DATE DATE)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FINALMARKS_DATA (
    I$USER_ID VARCHAR(40),
    I$OBJ_ID BIGINT)
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FINALMARKS_DELETE (
    I$USER_ID VARCHAR(40),
    I$MARK_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FINALMARKS_GET (
    I$USER_ID VARCHAR(40),
    I$MARK_ID BIGINT,
    I$PERSON_ID BIGINT,
    I$YEAR_ID BIGINT,
    I$SUBJECT_ID BIGINT,
    I$STAGE_ID BIGINT,
    I$MT_ID BIGINT)
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FINALMARKS_MENU (
    I$USER_ID VARCHAR(40),
    I$OBJ_ID BIGINT,
    I$WHERE SMALLINT = 0)
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FINALMARKS_PM (
    I$OBJ_ID BIGINT,
    I$DATE DATE)
RETURNS (
    PERSON_ID BIGINT,
    CAPTION VARCHAR(1000),
    PERIOD_ID BIGINT,
    PERIOD_NAME VARCHAR(100),
    SUBJECT_ID BIGINT,
    MARK_VAL VARCHAR(100),
    MARK_YEAR INTEGER,
    LEAVE_TEXT VARCHAR(1000),
    STAGE_NAME VARCHAR(200))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FINALMARKS_REPORT (
    I$OBJ_ID BIGINT,
    I$APPNAME VARCHAR(100),
    I$USER_ID VARCHAR(40))
RETURNS (
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FINALMARKS_SET (
    I$USER_ID VARCHAR(40),
    I$MARK_ID BIGINT,
    I$PERSON_ID BIGINT,
    I$YEAR_ID BIGINT,
    I$SUBJECT_ID BIGINT,
    I$STAGE_ID BIGINT,
    I$TEACHER_ID BIGINT,
    I$MT_ID BIGINT,
    I$DATE DATE,
    I$VAL BIGINT,
    I$IS_NATIVE SMALLINT)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FINALMARKS_SUBJECTS (
    I$OBJ_ID BIGINT,
    I$DATE DATE)
RETURNS (
    OBJ_ID BIGINT,
    CAPTION VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FINALMARK_ADD (
    PUPIL_ID BIGINT,
    SUBJECT_ID BIGINT NOT NULL,
    TEACHER_ID BIGINT,
    YEAR_ID BIGINT NOT NULL,
    MARK_TYPE_ID BIGINT,
    MARK_VALUE_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FINALMARK_CLASS_LIST (
    I$SCHOOL_ID BIGINT,
    I$YEAR_ID BIGINT = null)
RETURNS (
    CLASS_ID BIGINT,
    CLASS_CAPTION VARCHAR(4000),
    SORT_ORDER DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FINALMARK_DISTRICT_LIST (
    I$USER_ID BIGINT = null)
RETURNS (
    DISTRICT_ID BIGINT,
    DISTRICT_CAPTION VARCHAR(4000),
    SORT_ORDER DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FINALMARK_LIST (
    I$PUPIL_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    FINALMARK_ID BIGINT,
    SUBJECT_ID BIGINT,
    SUBJECT_CAPTION VARCHAR(500),
    SCHOOL_YEAR_ID BIGINT,
    FINAL_TYPE_ID BIGINT,
    MARK_TYPE_ID BIGINT,
    SCHOOL_YEAR_CAPTION VARCHAR(20),
    FINAL_TYPE_CAPTION VARCHAR(500),
    MARK_TYPE_CAPTION VARCHAR(500),
    SCHOOL_YEAR_COST DOUBLE PRECISION,
    FINAL_TYPE_COST DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FINALMARK_LIST2 (
    I$CLASS_ID BIGINT,
    I$SUBJECT_ID BIGINT,
    I$SCHOOL_YEAR VARCHAR(20),
    I$USER_ID BIGINT)
RETURNS (
    FINALMARK_ID BIGINT,
    PUPIL_ID BIGINT,
    PUPIL_CAPTION VARCHAR(500),
    SUBJECT_ID BIGINT,
    SUBJECT_CAPTION VARCHAR(500),
    SCHOOL_YEAR_ID BIGINT,
    FINAL_TYPE_ID BIGINT,
    MARK_TYPE_ID BIGINT,
    SCHOOL_YEAR_CAPTION VARCHAR(20),
    FINAL_TYPE_CAPTION VARCHAR(500),
    MARK_TYPE_CAPTION VARCHAR(500),
    SCHOOL_YEAR_COST DOUBLE PRECISION,
    FINAL_TYPE_COST DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FINALMARK_LIST3 (
    I$CLASS_ID BIGINT NOT NULL,
    I$SUBJECT_ID BIGINT,
    I$SCHOOL_YEAR BIGINT,
    I$MARK_TYPE_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    FINALMARK_ID BIGINT,
    PUPIL_ID BIGINT,
    PUPIL_CAPTION VARCHAR(500),
    MARK_VALUE_ID BIGINT,
    FINAL_TYPE_CAPTION VARCHAR(500),
    MARK_TYPE_CAPTION VARCHAR(500),
    FINAL_TYPE_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FINALMARK_PUPIL_LIST (
    I$CLASS_ID BIGINT,
    I$SHOW_LEFT SMALLINT = 0)
RETURNS (
    PUPIL_ID BIGINT,
    PUPIL_CAPTION VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FINALMARK_SCHOOL_LIST (
    I$DISTRICT_ID BIGINT)
RETURNS (
    SCHOOL_ID BIGINT,
    SCHOOL_CAPTION VARCHAR(4000),
    SORT_ORDER DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FINALMARK_SGC_LIST (
    I$SCHOOL_ID BIGINT,
    I$SHOW_STAGES SMALLINT,
    I$SHOW_GRADES SMALLINT,
    I$SHOW_CLASSES SMALLINT)
RETURNS (
    ID BIGINT,
    TYPE_ID BIGINT,
    CAPTION VARCHAR(4000),
    CHILD_COUNT INTEGER,
    SORT_ORDER_STAGES DOUBLE PRECISION,
    SORT_ORDER_GRADES DOUBLE PRECISION,
    SORT_ORDER_CLASSES DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FINALMARK_SUBJECT_CLASS_LIST (
    I$CLASS_ID BIGINT,
    I$USER_ID BIGINT,
    I$SCHOOL_YEAR VARCHAR(20))
RETURNS (
    SUBJECT_ID BIGINT,
    SUBJECT_CAPTION VARCHAR(1000),
    SUBJECT_SHORTNAME VARCHAR(100),
    SORT_ORDER DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FINALMARK_SUBJECT_FULL_LIST RETURNS (
    SUBJECT_ID BIGINT,
    SUBJECT_CAPTION VARCHAR(1000),
    SUBJECT_SHORTNAME VARCHAR(100),
    SUBJECT_ORDER VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FINALMARK_SUBJECT_LIST (
    I$PUPIL_ID BIGINT,
    I$YEAR_ID BIGINT)
RETURNS (
    SUBJECT_ID BIGINT,
    SUBJECT_CAPTION VARCHAR(1000),
    SUBJECT_SHORTNAME VARCHAR(100),
    SORT_ORDER INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FINALMARK_SUBJECT_LIST2 (
    I$CLASS_ID BIGINT,
    I$YEAR_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    SUBJECT_ID BIGINT,
    SUBJECT_CAPTION VARCHAR(1000),
    SUBJECT_SHORTNAME VARCHAR(100),
    SORT_ORDER INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FINALMARK_SYNCHRONIZE (
    I$FINAL_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FINALMARK_TEACHER_LIST (
    I$SCHOOL_ID BIGINT,
    I$PLAN_ONLY SMALLINT = 0)
RETURNS (
    TEACHER_ID BIGINT,
    TEACHER_CAPTION VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FINALMARK_YEAR_LIST RETURNS (
    LISTVAL_ID BIGINT,
    LIST_ID BIGINT,
    LANG_CODE CHAR(2),
    PARENT_ID BIGINT,
    VAL VARCHAR(4000),
    VAL_LONG VARCHAR(4000),
    TAG VARCHAR(100),
    SORT_ORDER SMALLINT,
    COST FLOAT,
    IS_REPL SMALLINT,
    IS_DEL SMALLINT,
    DATE_MODIFY TIMESTAMP)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FIND_EMPLOYEE (
    I$FIRSTNAME VARCHAR(255),
    I$LASTNAME VARCHAR(255),
    I$MIDDLENAME VARCHAR(255),
    I$DOB DATE)
RETURNS (
    SCHOOL_ID BIGINT,
    SCHOOL_SHORTNAME VARCHAR(1000),
    EMPLOYEE_ID BIGINT,
    EMPLOYEE_FIRSTNAME VARCHAR(255),
    EMPLOYEE_LASTNAME VARCHAR(255),
    EMPLOYEE_MIDDLENAME VARCHAR(255),
    EMPLOYEE_DOB DATE,
    EMPLOYEE_VACANCYNAME VARCHAR(255),
    EMPLOYEE_TBL_NUM VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FIN_CONFIG_GET (
    PARAM_NAME VARCHAR(100))
RETURNS (
    PARAM_VALUE VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FIN_LISTS_GET (
    PARENT_ID BIGINT)
RETURNS (
    ID BIGINT,
    OBJ_TYPE SMALLINT,
    NAME VARCHAR(1000),
    IS_ACTIVE SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FIN_LIST_DELETE (
    ID BIGINT NOT NULL)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIN_LIST_UPDATE (
    PARENT_ID BIGINT,
    ID BIGINT,
    OBJ_TYPE SMALLINT,
    NAME VARCHAR(1000),
    IS_ACTIVE SMALLINT)
RETURNS (
    O$ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FIN_ORG_APPLY_SETTINGS (
    ID BIGINT,
    SETTING_NAME VARCHAR(100),
    SETTING_VALUE VARCHAR(1000))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIN_ORG_LIST RETURNS (
    ID BIGINT,
    IS_ACTIVE INTEGER,
    NAME VARCHAR(1000),
    CAT1 VARCHAR(1000),
    CAT2 VARCHAR(1000),
    CAT3 VARCHAR(1000),
    CAT4 VARCHAR(1000),
    CAT5 VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FIN_PARAMS_GET (
    GROUP_ID BIGINT)
RETURNS (
    PARAM_ID BIGINT,
    NAME VARCHAR(1000),
    PARAM_SOURCE VARCHAR(1000),
    PARAM_PATH VARCHAR(100),
    DIRECTION SMALLINT,
    K_WEIGHT DOUBLE PRECISION,
    DISPLAY_ORDER INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FIN_PARAM_DELETE (
    PARAM_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIN_PARAM_GROUPS_GET RETURNS (
    ID BIGINT,
    NAME VARCHAR(1000),
    DISPLAY_ORDER INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FIN_PARAM_GROUP_DELETE (
    GROUP_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIN_PARAM_GROUP_UPDATE (
    ID BIGINT,
    NAME VARCHAR(1000),
    DISPLAY_ORDER INTEGER)
RETURNS (
    O$ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FIN_PARAM_UPDATE (
    GROUP_ID BIGINT,
    PARAM_ID BIGINT,
    NAME VARCHAR(1000),
    PARAM_SOURCE VARCHAR(1000),
    PARAM_PATH VARCHAR(100),
    DIRECTION SMALLINT,
    K_WEIGHT DOUBLE PRECISION,
    DISPLAY_ORDER INTEGER)
RETURNS (
    O$PARAM_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FIN_VALUES_CLEAR (
    PARAM_ID BIGINT,
    RANGE_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIN_VALUE_GET (
    SCHOOL_ID BIGINT,
    PARAM_ID BIGINT,
    RANGE_ID BIGINT)
RETURNS (
    VAL DOUBLE PRECISION,
    K_WEIGHT DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FIN_VALUE_SET (
    SCHOOL_ID BIGINT,
    PARAM_ID BIGINT,
    RANGE_ID BIGINT,
    VAL DOUBLE PRECISION)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIXER
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIXER3
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIXER4
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIXER5
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIXER_ALL_SNILS (
    SCHOOL_ID BIGINT = NULL)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIXER_ATHOME_STUDENTS
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIXER_BAD_RELEASE
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIXER_CERTIFICATE_FINAL_MARKS (
    SCHOOL_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIXER_CERTIFICATE_MARK
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIXER_CHANGER_LOST
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIXER_CHANGER_LOST2
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIXER_CJ_DUPLICATES
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIXER_CLEAR_TEACHER_LABOR_RATE (
    I$SCHOOL_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIXER_CLONE_MARKS
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIXER_CONVERT_VD
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIXER_DELETED_CLASSES
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIXER_DELETED_CLASSES2
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIXER_DOU_INPUT (
    I$SCHOOL_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIXER_DOU_OUT_FOLDERS
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIXER_EDUCATION_PROGRAM (
    SCHOOL_ID BIGINT = null)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIXER_ENTRANCE_AS_GIA
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIXER_ENT_DATES
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIXER_EXTERNAT_ACCEPT_TYPE
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIXER_EXTERNAT_LEAVED
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIXER_FINALS_EF
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIXER_FIX_COLLEGE_CIR_DIST
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIXER_FIX_PUPIL_STUDY_FORM
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIXER_FIX_REGION_GIA
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIXER_FIX_UDOD_CIR_DIST
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIXER_FPU_TMP
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIXER_GHOST_STUDENTS
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIXER_GIA_ALIASES
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIXER_GIA_CLASS_TYPE (
    I$SCHOOL_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIXER_GIA_CLASS_TYPE2 (
    I$SCHOOL_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIXER_GIA_CLASS_TYPE3
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIXER_GIA_INFORMATIKA_PARAMS (
    I$SCHOOL_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIXER_GPDJ_PTP
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIXER_GRADUATE_CLASS (
    SCHOOL_ID BIGINT = null)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIXER_GUP_MASKS
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIXER_HOMEBASED_EDU_ATTR
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIXER_JOURNAL_GRANTS
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIXER_JOURNAL_JOURS
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIXER_JOURNAL_PTP_LINKS
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIXER_KEY (
    KEY_OLD BIGINT,
    KEY_NEW BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIXER_LESSON_THEME
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIXER_MAJOR_TUTOR
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIXER_MICRODISTRICT (
    SCHOOL_ID BIGINT = null)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIXER_MISSING_MOVEMENTS
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIXER_MONITORING_CHANGER (
    I$SCHOOL_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIXER_ODNKNR
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIXER_OOOD_TYPE (
    SCHOOL_ID BIGINT = null)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIXER_ORGANIZATION_FORM (
    SCHOOL_ID BIGINT = NULL)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIXER_OUTPUT_DOU (
    SCHOOL_ID BIGINT = null)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIXER_OVZ
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIXER_OVZ_MOVE_TYPE
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIXER_OVZ_STAGES2022
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIXER_P64
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIXER_PARAM_ID_1340
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIXER_PARAM_TYPE_SET (
    I$PARAM_ID BIGINT,
    I$PARAM_TYPE SMALLINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIXER_PARENTS
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIXER_PARENTS_DOU
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIXER_PARENTS_DUPLICATES
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIXER_PARENT_EXT_DOU
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIXER_PARENT_REASONFORHELP
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIXER_PLANING
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIXER_POST (
    KEY_LEVEL VARCHAR(100))
RETURNS (
    BLOB_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FIXER_PUPIL_FINISH_TO_LEAVED
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIXER_RAISER_SKILL_JOB (
    I$TYPE_ID BIGINT,
    I$OLD_PARAM_ID BIGINT,
    I$NEW_PARAM_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIXER_RAISER_SKILL_OOOD (
    I$LONG_PARAM_ID BIGINT,
    I$SHORT_PARAM_ID BIGINT,
    I$OBJ_ID BIGINT = null,
    I$VAL VARCHAR(1000) = null)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIXER_REMOVE_DELETED_CERTIFICAT
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIXER_REMOVE_FM_DUPLICATES
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIXER_REORGANIZE_DISTR_SUBJ
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIXER_REPAIR_OBJ_GEN
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIXER_SCHOOL_DISTRICT (
    I$SCHOOL_ID BIGINT,
    I$USER_ID BIGINT = 1)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIXER_SNILS (
    SCHOLAR_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIXER_SNILS_DUPLICATE
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIXER_STD2021_RECALC
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIXER_STUDY_FORM (
    SCHOOL_ID BIGINT = NULL)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIXER_UDOD_P2448
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIXER_USERS_LANGUAGE
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIXER_VD_DEST
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIXER_YC2021
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIXER_YEAR_IN_FINALMARK
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIX_CALC_JOB_PARAMS RETURNS (
    VAL VARCHAR(400))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FIX_CJ2_DUPLICATES
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIX_CJ2_LESSON_TIME
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIX_DC_TASKS
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIX_DC_TASKS_DOU
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIX_DEMO_EXAM_FORMAT
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIX_DOU_GUP
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIX_DOU_LEAVES
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIX_DUPLICATES
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIX_EMPLOYEES_SNILS RETURNS (
    OLD_SNILS VARCHAR(100),
    NEW_SNILS VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FIX_ENTERING_PUPILS_TO_STAGE (
    I$SCHOOL_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIX_EXTERNAT_LEAVED
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIX_FILL_REQ_FIELDS
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIX_FISOKO_INIT (
    I$SCHOOL_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIX_FPU2019
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIX_GIA_NEW_FOLDER
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIX_GRADUATES
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIX_JOB_LINK
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIX_JOB_R3
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIX_LESSON_THEME_PLAN_DEL
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIX_LIBRARY_ROOTTYPE
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIX_LONG_VACATIONS (
    SCHOOL_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIX_LOST_LINKS
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIX_LOST_STUFF
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIX_MERGE_DB (
    I$FLAGS INTEGER = 1,
    I$DBNAME VARCHAR(400) NOT NULL = 'MERGE.FDB',
    I$ADJYEAR SMALLINT NOT NULL = 0)
RETURNS (
    OBJ_ID BIGINT,
    PERSON_ID BIGINT,
    STAGE_ID BIGINT,
    PARAM_ID BIGINT,
    N INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FIX_MERGE_DB_MOVEMENTS (
    I$OBJ_ID BIGINT,
    I$DEST_ID BIGINT,
    I$SRC VARCHAR(400),
    I$OU_ID BIGINT)
RETURNS (
    MOVE_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FIX_MERGE_DB_VALS (
    I$OBJ_ID BIGINT,
    I$DEST_ID BIGINT,
    I$SRC VARCHAR(400),
    I$TYPE_ID BIGINT = NULL)
RETURNS (
    PARAM_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FIX_MERGE_PLAN (
    I$OBJ_ID BIGINT,
    I$DST_ID BIGINT,
    I$SRC VARCHAR(1000))
RETURNS (
    PARAM_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FIX_MOVEMENTS
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIX_MOVEMENTS_OU
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIX_MOVE_GROUP_TYPE
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIX_MOVE_LEVEL_ID
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIX_NEW_ACCEPTED_DATE
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIX_OD_PERIODS
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIX_OUTPUT_LAST_MOVEMENT
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIX_OU_STUDY_LEVELS
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIX_PERIOD_FIELDS
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIX_PLANS400
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIX_PLAN_FIELD_ID
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIX_RECALC_TCO
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIX_RESTORE_JOB_GROUP RETURNS (
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FIX_SCHEDULE_FOLDER
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIX_SCHEDULE_ITEMS
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIX_SOP_TIMELINE
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIX_SPO_ACAD_MOVEMENTS
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIX_SPO_LICDATA
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIX_SPO_LICDATA_DTL (
    I$TYPE SMALLINT,
    I$OGRN VARCHAR(40),
    I$NUM VARCHAR(100),
    I$DATE DATE,
    I$DATE_TO DATE)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIX_SPO_MOVEMENTS
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIX_SPO_SPEC_CODES
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIX_SPO_TRANSFER
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIX_STEAD_FOLDER
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIX_STUDENT_EDU_FROM
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIX_STUDY_PLANS
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIX_TEMPLATE_UP_DAMAGED
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIX_UPGRADE_REQUEST_YEAR
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIX_USER_LEVELS
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIX_VACANCY_CATEGORIES (
    SCHOOL_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FIX_VARGRP_MOVES RETURNS (
    LINK_ID BIGINT,
    PARENT_ID BIGINT,
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FN_EXAM_DATE_DELETE (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    ERROR_TEXT VARCHAR(200))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FOOD_BENEFIT_APP_EXPORT (
    I$SCHOOL_ID BIGINT = null)
RETURNS (
    TAG_NAME VARCHAR(255),
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FOOD_BENEFIT_APP_EXPORT_PUPIL (
    I$PUPIL_ID BIGINT NOT NULL,
    I$USER_ID BIGINT)
RETURNS (
    TAG_NAME VARCHAR(255),
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FOOD_BENEFIT_APP_EXPORT_SCHOOL (
    I$SCHOOL_ID BIGINT = null)
RETURNS (
    TAG_NAME VARCHAR(255),
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FOOD_BENEFIT_APP_EXPORT_VERIFY1 (
    I$PUPIL_ID BIGINT)
RETURNS (
    CLASS_NAME VARCHAR(5),
    FIO CHAR(300))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FOOD_BENEFIT_APP_EXPORT_VERIFY2 (
    I$PUPIL_ID BIGINT)
RETURNS (
    CLASS_NAME VARCHAR(5),
    FIO CHAR(300))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FOOD_BENEFIT_APP_PUPIL_SET (
    I$OBJ_ID BIGINT,
    I$DATE_ANSWER DATE,
    I$STATUS INTEGER,
    I$DESCRIPTION VARCHAR(300),
    I$BENEFIT INTEGER,
    I$DATE_UPD DATE,
    I$DATE_CHG DATE,
    I$DATE_EXP DATE,
    I$USER_ID BIGINT)
RETURNS (
    RESULT INTEGER,
    WARNING VARCHAR(500))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FOOD_PUPIL_PARENTS_LIST (
    I$OBJ_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    PARENT_ID CHAR(1),
    OBJ_CAPTION VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FOOD_SERVICER_GET RETURNS (
    SRVC_NAME VARCHAR(1000),
    SRVC_INN VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FOOD_UPDATE_SERVICER (
    I$SVCNAME VARCHAR(1000))
RETURNS (
    OBJ_ID BIGINT,
    TYPE_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FPFIX (
    I$OLD_CODE VARCHAR(40),
    I$NEW_CODE VARCHAR(40),
    I$DATE VARCHAR(40))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FPU_CODE_GET (
    I$BOOKID BIGINT,
    I$YEAR SMALLINT)
RETURNS (
    BOOKCODE VARCHAR(40),
    ORDER_INFO VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FULLLOAD_RQ_LIST (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FULLLOAD_RQ_SET (
    I$LIC_CODE BIGINT,
    I$STATUS SMALLINT,
    I$USER_ID VARCHAR(40))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FULLOAD_REQUEST_CHECK (
    I$AREA_ID BIGINT NOT NULL,
    I$LIC_CODE INTEGER NOT NULL,
    I$ORG_NAME VARCHAR(400) NOT NULL)
RETURNS (
    STATUS SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FUTURE_GUP_CHECK (
    I$OBJ_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE FUTURE_GUP_LIST RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE FUTURE_GUP_SET (
    I$GRADE_ID BIGINT,
    I$GRADE_NAME VARCHAR(100),
    I$PLANS VARCHAR(1000))
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GENERATE_PTP_NAME (
    I$PTP_ID BIGINT)
RETURNS (
    PTP_NAME VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GET_DAYS360_COUNT (
    BEGIN_DATE DATE,
    END_DATE DATE)
RETURNS (
    DAYS360_COUNT INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GET_LAST_SCHOLAR_MOVE_ID (
    I$SCHOLAR_ID BIGINT,
    I$DATE_MAX DATE,
    I$MOVE_TYPE SMALLINT = 0,
    I$GROUP_ID BIGINT = null)
RETURNS (
    LINK_ID BIGINT,
    OBJ_ID BIGINT,
    EVENT_DATE DATE,
    EVENT_TYPE BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GET_PIPIL_BY_SNILS (
    I$SNILS VARCHAR(50),
    I$F VARCHAR(50),
    I$I VARCHAR(50),
    I$O VARCHAR(50),
    I$DOB DATE,
    I$DOCTYPE INTEGER,
    I$SERIE VARCHAR(20),
    I$NUMBER VARCHAR(20),
    I$USER_ID BIGINT = 1)
RETURNS (
    STATUS INTEGER,
    LASTNAME VARCHAR(50),
    FIRSTNAME VARCHAR(50),
    SECONDNAME VARCHAR(50),
    GENDER INTEGER,
    BIRTHDATE DATE,
    DOCTYPE INTEGER,
    DOCSERIA VARCHAR(20),
    DOCNUMBER VARCHAR(20),
    NAMEEDUINSTITUTION VARCHAR(2000),
    ENROLLMENTDATE DATE,
    DEDUCTIONSDATE DATE,
    CURRICULUM VARCHAR(50),
    DISTRICT VARCHAR(50),
    SHORTNAMEEDUINSTITUTION VARCHAR(50),
    NUMBEREDUINSTITUTION VARCHAR(10),
    PHONEMASTER VARCHAR(50),
    PHONERECEPTION VARCHAR(50),
    RETIREDIN VARCHAR(4000),
    DROPOUT SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GIA_ACCEPT_CHECK_INT (
    I$GRADE_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE GIA_APPOINT_ASSIGN (
    CLASS_ID BIGINT,
    PUPIL_ID BIGINT,
    SUBJECT_ID BIGINT,
    EXAM_ID BIGINT,
    YEAR_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE GIA_APPOINT_CLASS_LIST (
    I$SCHOOL_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    OBJ_CAPTION VARCHAR(4000),
    STAGE_ID BIGINT,
    GRADUATE BIGINT,
    PARALLEL INTEGER,
    SYNONIM VARCHAR(500))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GIA_APPOINT_CURRENT_YEAR (
    I$USER_ID BIGINT)
RETURNS (
    YEAR_ID BIGINT,
    LAST_YEAR INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GIA_APPOINT_LIST (
    CLASS_ID BIGINT,
    YEAR_ID BIGINT,
    I$USER_ID BIGINT = 1)
RETURNS (
    OBJ_ID BIGINT,
    OBJ_CAPTION VARCHAR(4000),
    EXAM_ID BIGINT,
    EXAM_SUBJECT_ID BIGINT,
    EXAM_DATE DATE,
    EXAM_PERMIT VARCHAR(3),
    FOREIGN_LANG_VERBALLY VARCHAR(3),
    OLD_GRADUATE SMALLINT,
    SPECIAL_CONDITIONS SMALLINT,
    GIA_ONLY SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GIA_APPOINT_REPORT_CONTENT (
    OBJ_ID BIGINT,
    YEAR_ID BIGINT,
    EXAM_TYPE_ID BIGINT = null)
RETURNS (
    EXAM_TYPE INTEGER,
    GIA_SUBJECT_ID INTEGER,
    EXAM_DATE DATE,
    EXAM_PERMIT SMALLINT,
    FOREIGN_LANG_VERBALLY SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GIA_APPOINT_REPORT_HEADER (
    SCHOOL_ID BIGINT,
    OBJ_ID BIGINT NOT NULL,
    I$USER_ID BIGINT)
RETURNS (
    DIRECTOR VARCHAR(500),
    FULLNAME VARCHAR(500),
    MALE VARCHAR(1),
    FEMALE VARCHAR(1),
    PUPIL VARCHAR(20),
    FORM VARCHAR(500),
    BIRTHDAY DATE,
    SPECIAL_CONDITIONS SMALLINT,
    PASSPORT VARCHAR(500),
    PASSDATE DATE,
    PASSINFO VARCHAR(500),
    FIO VARCHAR(500),
    "DATE" DATE,
    CONTACT_PHONE VARCHAR(40),
    DOCTYPE VARCHAR(500),
    DOC_S VARCHAR(100),
    DOC_N VARCHAR(100),
    SCHOOLCODE VARCHAR(50))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GIA_BUILDING_LIST (
    I$PARENT_ID BIGINT = NULL)
RETURNS (
    OBJ_ID BIGINT,
    OBJ_CAPTION VARCHAR(4000),
    SORT_ORDER DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GIA_CHECK_CLASS_CHANGE (
    I$CLASS_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE GIA_CHECK_PUPIL_EXAMS (
    I$USER_ID BIGINT)
RETURNS (
    ERR INTEGER,
    SCHOOL VARCHAR(500),
    FORM VARCHAR(500),
    F VARCHAR(500),
    I VARCHAR(500),
    O VARCHAR(500))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GIA_CLASS_GRADUATING_SET (
    I$FORCE_RESET INTEGER = 0)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GIA_CLASS_LIST (
    I$SCHOOL_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    OBJ_CAPTION VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GIA_CLASS_SCHOLAR_LIST (
    I$CLASS_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    TYPE_ID BIGINT,
    OBJ_CAPTION VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GIA_CLASS_SINONIM_GET (
    I$OBJ_ID BIGINT)
RETURNS (
    SINONIM VARCHAR(30))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GIA_CODES_CHECK (
    SCHOOL_ID BIGINT,
    CODE_OU INTEGER,
    CODE_PPE INTEGER)
RETURNS (
    OBJ_ID BIGINT,
    CAPTION VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GIA_CODES_EXPORT RETURNS (
    OBJ_ID BIGINT,
    CODE BIGINT,
    PPE BIGINT,
    CLASS4 SMALLINT,
    CLASS9 SMALLINT,
    CLASS11 SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GIA_CODES_EXPORT_CHECK (
    LEVEL_ID SMALLINT = null)
RETURNS (
    OPR SMALLINT,
    DESC_FIELD VARCHAR(500))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GIA_CODES_IMPORT (
    OBJ_ID BIGINT,
    CODE BIGINT,
    PPE BIGINT,
    CLASS4 SMALLINT,
    CLASS9 SMALLINT,
    CLASS11 SMALLINT)
RETURNS (
    OPR SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GIA_CODES_LIST (
    LEVEL_ID INTEGER = null)
RETURNS (
    DISTRICT VARCHAR(500),
    SCHOOL_ID BIGINT,
    SHORTNAME VARCHAR(500),
    CODE_OU INTEGER,
    CODE_PPE INTEGER,
    FOR4 INTEGER,
    FOR9 INTEGER,
    FOR11 INTEGER,
    RESPONSIBLE VARCHAR(500),
    BUILDING VARCHAR(500),
    ADDRESS VARCHAR(500),
    SCHOOLNO INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GIA_CODES_SET (
    SCHOOL_ID BIGINT NOT NULL,
    RESPONSIBLE_ID BIGINT,
    BUILDING_ID BIGINT)
RETURNS (
    OLD_ROOM_COUNT INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GIA_CODES_SET_DISTRICT (
    SCHOOL_ID BIGINT NOT NULL,
    CODEOU BIGINT,
    CODEPPE BIGINT,
    PPE4 SMALLINT,
    PPE9 SMALLINT,
    PPE11 SMALLINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE GIA_CODE_GET (
    OBJ_ID BIGINT)
RETURNS (
    CODE BIGINT,
    ISVPL SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GIA_COPY_INFO_EXAM_PARAMS (
    I$PUPIL_ID BIGINT,
    I$CLASS_ID BIGINT,
    I$USER_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE GIA_EXAM_ATTACH_PPE (
    I$EXAM_ID BIGINT,
    I$STEP_ID BIGINT)
RETURNS (
    SCHOOL_ID BIGINT,
    CODE_OU INTEGER,
    CODE_PPE INTEGER,
    SHORTNAME_PPE VARCHAR(500),
    VMESTIM INTEGER,
    ATTACH_PPE INTEGER,
    ATTACH_RESERVE INTEGER,
    O_N INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GIA_EXAM_ATTACH_PPE_ADD (
    I$EXAM_ID BIGINT,
    I$SCHOOL_ID BIGINT,
    I$ATTACH_PPE INTEGER,
    I$ATTACH_RESERVE INTEGER)
RETURNS (
    LINK_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GIA_EXAM_DATE_ADD (
    I$YEAR_ID BIGINT,
    I$EXAM_ID BIGINT,
    I$EXAM_CODE INTEGER,
    I$EXAM_STAGE_ID BIGINT,
    I$EXAM_TYPE_ID BIGINT,
    I$EXAM_SUBJECT_ID BIGINT,
    I$EXAM_DATE DATE)
RETURNS (
    EXAM_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GIA_EXAM_DATE_CHECK (
    I$EXAM_ID BIGINT)
RETURNS (
    PUPIL_COUNT INTEGER,
    MARK_COUNT INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GIA_EXAM_DATE_DEL (
    I$EXAM_ID BIGINT)
RETURNS (
    DEL_COUNT INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GIA_EXAM_DATE_EXPORT RETURNS (
    LINK_ID BIGINT,
    PARENT_ID BIGINT,
    OBJ_ID BIGINT,
    DATE_INS TIMESTAMP,
    DATE_DEL TIMESTAMP,
    EXAM_CODE INTEGER,
    EXAM_STAGE_ID BIGINT,
    EXAM_TYPE_ID BIGINT,
    EXAM_SUBJECT_ID BIGINT,
    EXAM_DATE DATE)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GIA_EXAM_DATE_EXPORT_CHECK (
    I$USER_ID BIGINT)
RETURNS (
    OPR INTEGER,
    YEAR_CAPTION VARCHAR(20),
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GIA_EXAM_DATE_GET (
    I$YEAR_ID BIGINT,
    I$STEP_ID BIGINT,
    I$STAGE_ID BIGINT)
RETURNS (
    DATE_ID DATE,
    DATE_CAPTION VARCHAR(10))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GIA_EXAM_DATE_IMPORT (
    LINK_ID BIGINT,
    PARENT_ID BIGINT,
    OBJ_ID BIGINT,
    DATE_INS TIMESTAMP,
    DATE_DEL TIMESTAMP,
    EXAM_CODE INTEGER,
    EXAM_STAGE_ID BIGINT,
    EXAM_TYPE_ID BIGINT,
    EXAM_SUBJECT_ID BIGINT,
    EXAM_DATE DATE)
RETURNS (
    OPR INTEGER,
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GIA_EXAM_DATE_IMPORT_XML (
    YEAR_ID BIGINT,
    EXAM_CODE INTEGER,
    EXAM_STAGE INTEGER,
    EXAM_TYPE INTEGER,
    EXAM_SUBJECT INTEGER,
    EXAM_DATE DATE)
RETURNS (
    OPR INTEGER,
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GIA_EXAM_DATE_LIST (
    I$YEAR_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    EXAM_ID BIGINT,
    EXAM_CODE INTEGER,
    EXAM_STAGE_ID BIGINT,
    EXAM_TYPE_ID BIGINT,
    EXAM_SUBJECT_ID BIGINT,
    EXAM_DATE DATE,
    EXAM_STAGE VARCHAR(255),
    EXAM_TYPE VARCHAR(255),
    EXAM_SUBJECT VARCHAR(255),
    EXAM_STAGE_ID_EX BIGINT,
    EXAM_TYPE_ID_EX BIGINT,
    EXAM_SUBJECT_ID_EX BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GIA_EXAM_GET (
    I$EXAM_CODE INTEGER,
    I$LEVEL_CODE BIGINT,
    I$SUBJ_CODE VARCHAR(400),
    I$EXAM_TYPE FLOAT,
    I$EXAM_DATE DATE)
RETURNS (
    EXAM_ID BIGINT,
    EXAM_DATE DATE,
    EXAM_IMPORT_DATE DATE)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GIA_EXAM_PERMIT_ADD (
    I$PUPIL_ID BIGINT,
    I$EXAM_PERMIT SMALLINT,
    I$USER_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE GIA_EXAM_PPE_LIST (
    I$YEAR_ID BIGINT,
    I$STEP BIGINT,
    I$STAGE BIGINT,
    I$DATE DATE,
    I$SUBJECT BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    STAGE_ID BIGINT,
    STAGE_NAME VARCHAR(200),
    SUBJ_ID BIGINT,
    SUBJ_NAME VARCHAR(200),
    DATE_EXAM VARCHAR(10),
    PARTAKER INTEGER,
    VMESTIM INTEGER,
    PPE INTEGER,
    RESERVE INTEGER,
    O_N INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GIA_EXAM_STAGE_GET (
    I$YEAR_ID BIGINT,
    I$STEP BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    STAGE_ID BIGINT,
    STAGE_CAPTION VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GIA_EXAM_STATEMENT_IMPORT_XML (
    TRASFER_DT TIMESTAMP,
    YEAR_ID BIGINT,
    STATMENT VARCHAR(4000))
RETURNS (
    OPR INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GIA_EXAM_STEP_GET (
    I$YEAR_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    STEP_ID BIGINT,
    STEP_CAPTION VARCHAR(20))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GIA_EXAM_SUBJECT_GET (
    I$YEAR_ID BIGINT,
    I$STEP BIGINT,
    I$STAGE BIGINT,
    I$DATE DATE,
    I$USER_ID BIGINT)
RETURNS (
    SUBJECT_ID BIGINT,
    SUBJECT_CAPTION VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GIA_EXAM_YEAR_EXPORT RETURNS (
    LINK_ID BIGINT,
    OBJ_ID BIGINT,
    DATE_INS TIMESTAMP,
    DATE_DEL TIMESTAMP,
    LISTVAL_ID BIGINT,
    VAL VARCHAR(4000),
    FILE_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GIA_EXAM_YEAR_GET (
    I$USER_ID BIGINT)
RETURNS (
    YEAR_ID BIGINT,
    YEAR_CAPTION VARCHAR(20),
    STATMENT VARCHAR(4000),
    FILE_ID VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GIA_EXAM_YEAR_IMPORT (
    LINK_ID BIGINT,
    OBJ_ID BIGINT,
    DATE_INS TIMESTAMP,
    DATE_DEL TIMESTAMP,
    LISTVAL_ID BIGINT,
    VAL VARCHAR(4000),
    FILE_ID VARCHAR(100) = null)
RETURNS (
    OPR INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GIA_EXAM_YEAR_IMPORT_XML (
    Y INTEGER)
RETURNS (
    YEAR_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GIA_EXPORT_DATA (
    I$YEAR INTEGER,
    I$DATE_FROM DATE,
    I$JSON SMALLINT = 1)
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GIA_EXPORT_DATA_STUDENTS (
    I$OU_ID BIGINT,
    I$DATE_FROM TIMESTAMP,
    I$JSON SMALLINT)
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GIA_FIND_STUDENT (
    SCHOOL_ID BIGINT,
    NAME VARCHAR(200),
    SURNAME VARCHAR(200),
    LASTNAME VARCHAR(200),
    BIRTHDATE DATE,
    DOCUMENT_NUM VARCHAR(100))
RETURNS (
    OBJ_ID BIGINT,
    DATE_DEL1 TIMESTAMP,
    DATE_DEL2 TIMESTAMP,
    DATE_DEL3 TIMESTAMP,
    DATE_DEL4 TIMESTAMP)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GIA_FOREIGN_LANG_VERBALLY_ADD (
    I$PUPIL_ID BIGINT,
    I$FOREIGN_LANG_VERBALLY SMALLINT,
    I$USER_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE GIA_FORMDATA (
    I$OBJ_ID BIGINT NOT NULL,
    I$YEAR_ID BIGINT NOT NULL,
    I$USER_ID VARCHAR(40) NOT NULL)
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GIA_GET_DIRECTOR_FIO (
    I$SCHOOL_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    F VARCHAR(500),
    I VARCHAR(500),
    O VARCHAR(500),
    FIO VARCHAR(2000),
    POST VARCHAR(500))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GIA_IS_VPL RETURNS (
    ISVPL SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GIA_NOT_PERMIT_LIST (
    I$SCHOOL_ID BIGINT,
    I$GRADUATE SMALLINT,
    I$USER_ID BIGINT)
RETURNS (
    NUMBER INTEGER,
    FIO VARCHAR(1000),
    E1 VARCHAR(1),
    E2 VARCHAR(1),
    E3 VARCHAR(1),
    E4 VARCHAR(1),
    SCHOOL_SHORT_NAME VARCHAR(1000),
    E5 VARCHAR(1),
    E6 VARCHAR(1),
    CLASS_NAME VARCHAR(255),
    BIRTHDAY DATE,
    DOCUMENT VARCHAR(255))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GIA_NOT_PERMIT_LIST_DISTR (
    I$DISTR_ID BIGINT,
    I$GRADUATE SMALLINT,
    I$USER_ID BIGINT)
RETURNS (
    NUMBER INTEGER,
    FIO VARCHAR(1000),
    E1 VARCHAR(1),
    E2 VARCHAR(1),
    E3 VARCHAR(1),
    E4 VARCHAR(1),
    SCHOOL_SHORT_NAME VARCHAR(1000),
    E5 VARCHAR(1),
    E6 VARCHAR(1),
    CLASS_NAME VARCHAR(255),
    BIRTHDAY DATE,
    DOCUMENT VARCHAR(255))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GIA_OU_EXPORT_CHECK (
    I$USER_ID BIGINT)
RETURNS (
    ERR INTEGER,
    OPR INTEGER,
    VAL VARCHAR(4000),
    VAL2 VARCHAR(500))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GIA_OU_EXPORT_CHECK_FIO RETURNS (
    CLASS_ID BIGINT,
    SCHOLAR_ID BIGINT,
    F VARCHAR(1000),
    I VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GIA_OU_EXPORT_CLASSROOM (
    SCHOOL_ID BIGINT)
RETURNS (
    CODE_CLASSROOM_SCHOOL BIGINT,
    NAME VARCHAR(4000),
    CAPACITY INTEGER,
    "FLOOR" INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GIA_OU_EXPORT_PERSON (
    I$USER_ID BIGINT)
RETURNS (
    SCHOOL_ID BIGINT,
    PPE_POS_CODE BIGINT,
    CODE_PERSON_SCHOOL BIGINT,
    FIO_SURNAME VARCHAR(500),
    FIO_NAME VARCHAR(500),
    FIO_PATRONYMIC VARCHAR(500),
    SEX INTEGER,
    BIRTHDAY DATE,
    STAFF INTEGER,
    DOCUMENT_TYPE INTEGER,
    DOCUMENT_SERIES VARCHAR(500),
    DOCUMENT_NUMBER VARCHAR(500),
    POSITION_PPE INTEGER,
    POSITION_PPE_KL9 INTEGER,
    POSITION_PPE_KL11 INTEGER,
    POSITION_SCHOOL VARCHAR(500),
    POSITION_LABOR_FUNC VARCHAR(500),
    EDUCATION_LEVEL INTEGER,
    ACADEMIC_RANK INTEGER,
    EXPERIENCE_TEACHING INTEGER,
    QUALIFICATION_CATEGORY INTEGER,
    FORM_MASTER VARCHAR(500),
    CLASSCOUNT INTEGER,
    EXPORT_FLAG INTEGER,
    PHONE_MOBILE VARCHAR(500),
    CONTACT_EMAIL VARCHAR(500),
    SNILS VARCHAR(40))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GIA_OU_EXPORT_STUDENT (
    I$SCHOOL_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    CODE_STUDENT_SCHOOL BIGINT,
    FORM VARCHAR(500),
    FIO_SURNAME VARCHAR(500),
    FIO_NAME VARCHAR(500),
    FIO_PATRONYMIC VARCHAR(500),
    SEX INTEGER,
    BIRTHDAY DATE,
    DOCUMENT_TYPE INTEGER,
    DOCUMENT_SERIES VARCHAR(500),
    DOCUMENT_NUMBER VARCHAR(500),
    SPECIAL_CONDITIONS INTEGER,
    MEDAL INTEGER,
    CATEGORY_PARTICIPATION INTEGER,
    RUS INTEGER,
    MAT INTEGER,
    IGNORE_FORMNAME VARCHAR(500),
    INFO_LANG INTEGER,
    INFO_IDE INTEGER,
    INFO_WORD INTEGER,
    INFO_EXCEL INTEGER,
    ACCEPT_DATE DATE,
    VERBAL_FOREIGN_LANG INTEGER,
    ADMISSION_TO_EXAM INTEGER,
    SNILS VARCHAR(500),
    "GIA-LEVEL" SMALLINT,
    NATIONALITY VARCHAR(500),
    GRADUATE_OU VARCHAR(500),
    "PHONE-MOBILE" VARCHAR(100),
    "EDUCATION-FORM" VARCHAR(40))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GIA_OU_EXPORT_STUDENT_EXAM (
    I$STUDENT_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    EXAM_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GIA_OU_EXPORT_XML (
    LEVEL_ID SMALLINT = NULL,
    I$USER_ID BIGINT = NULL)
RETURNS (
    SCHOOL_ID BIGINT,
    CODE_SCHOOL_EGE BIGINT,
    CODE_SCHOOL_PPE VARCHAR(500),
    KL4 SMALLINT,
    KL9 SMALLINT,
    KL11 SMALLINT,
    FULLNAME VARCHAR(500),
    SHORTNAME VARCHAR(500),
    SCHOOL_NUMBER BIGINT,
    CODE_SCHOOL_TYPE SMALLINT,
    CODE_SCHOOL_KIND BIGINT,
    CODE_SCHOOL_OPF SMALLINT,
    ADDRESS VARCHAR(500),
    ADDRESS_PPE VARCHAR(500),
    LEADER_POSITION VARCHAR(500),
    LEADER_NAME VARCHAR(500),
    RESPONSIBLE_FOR_EGE VARCHAR(500),
    PHONES VARCHAR(500),
    FAX VARCHAR(500),
    EMAIL VARCHAR(500),
    WEB_SITE VARCHAR(500),
    NUMBER_GRADUATES INTEGER,
    NUMBER_PRE_GRADUATES INTEGER,
    LICENSE_NUMBER VARCHAR(50),
    LICENSE_COMMENCEMENT_DATE DATE,
    LICENSE_EXPIRATION_DATE DATE,
    ACCREDITATION_COMMENCEMENT_DATE DATE,
    ACCREDITATION_EXPIRATION_DATE DATE,
    OOOD_TYPE VARCHAR(500),
    OOOD_VID VARCHAR(500))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GIA_OU_EXPORT_XML_CHECK RETURNS (
    ERR SMALLINT,
    VAL VARCHAR(500))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GIA_OU_ISVALID (
    OBJ_ID BIGINT = NULL)
RETURNS (
    ISVALID SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GIA_OU_LIST (
    I$DISTRICT_ID BIGINT = 0,
    DISPLAY_ALL SMALLINT = 0)
RETURNS (
    SCHOOL_ID BIGINT,
    DISTRICT_ID BIGINT,
    SCHOOL VARCHAR(4000),
    DISTRICT VARCHAR(4000),
    SCHOOL_NUMBER INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GIA_PPE_FLAGS (
    SCHOOL_ID BIGINT)
RETURNS (
    FOR9 SMALLINT,
    FOR11 SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GIA_PPE_LIST RETURNS (
    LINENO INTEGER,
    DISTRICT VARCHAR(500),
    SHORTNAME VARCHAR(500),
    SCHOOLNO INTEGER,
    CODE_OU INTEGER,
    CODE_PPE INTEGER,
    PPE_FOR9 INTEGER,
    PPE_FOR11 INTEGER,
    ROOM_COUNT INTEGER,
    SEATS_COUNT INTEGER,
    ADDRESS VARCHAR(500))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GIA_REPORT_IF4_P1 (
    I$GRADUATE SMALLINT,
    I$USER_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    PARALLEL BIGINT,
    EXAM_SUBJECT_ID BIGINT,
    EXAM_ID BIGINT,
    EXAM_DATE DATE,
    OLD_GRADUATE SMALLINT,
    SPECIAL_CONDITIONS SMALLINT,
    GIA_ONLY SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GIA_REPORT_IF4_P2 (
    I$GRADUATE SMALLINT,
    I$USER_ID BIGINT)
RETURNS (
    LINENO INTEGER,
    LINESTR VARCHAR(2000),
    LINEDATE DATE,
    CNT INTEGER,
    OLD_GRADUATE_SUM INTEGER,
    SPECIAL_CONDITIONS_SUM INTEGER,
    GIA_ONLY_SUM INTEGER,
    EXAM_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GIA_RESET_GENERATORS RETURNS (
    MAX_GEN BIGINT,
    MAX_VAL BIGINT,
    CUR_GEN BIGINT,
    NEW_GEN BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GIA_ROOM_ADD (
    ROOM_ID BIGINT,
    PPE_CODE VARCHAR(4000),
    COLUMN_COUNT INTEGER = null)
RETURNS (
    O$ROOM_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GIA_ROOM_CHECK (
    OBJ_ID BIGINT,
    PPE_CODE VARCHAR(4000))
RETURNS (
    ERROR_LEVEL INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GIA_ROOM_DEL (
    ROOM_ID BIGINT)
RETURNS (
    DEL_COUNT INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GIA_ROOM_EDIT_COL (
    OBJ_ID BIGINT NOT NULL,
    COLUMN_NUMBER INTEGER NOT NULL,
    COLUMN_VALUE INTEGER)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE GIA_ROOM_LIST (
    I$ROOM_ID BIGINT = null)
RETURNS (
    OBJ_ID BIGINT,
    OBJ_CAPTION VARCHAR(4000),
    SORT_ORDER DOUBLE PRECISION,
    "FLOOR" INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GIA_ROOM_LIST2 (
    I$SCHOOL_ID BIGINT = null)
RETURNS (
    OBJ_ID BIGINT,
    ROOM_OBJ_CAPTION VARCHAR(4000),
    PPE_CODE VARCHAR(4000),
    COLUMN_COUNT INTEGER,
    COLUMN_STRING VARCHAR(200),
    COLUMN_SUM INTEGER,
    "FLOOR" SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GIA_ROOM_LIST_COL (
    OBJ_ID BIGINT)
RETURNS (
    COLUMN_NUMBER INTEGER,
    COLUMN_VALUE INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GIA_SUBJECT_LIST (
    I$PARALLEL SMALLINT,
    I$USER_ID BIGINT = 1)
RETURNS (
    EXAM_SUBJECT_ID BIGINT,
    GIA_SUBJECT_ID BIGINT,
    GIA_SUBJECT_CAPTION VARCHAR(4000),
    GIA_SUBJECT_DESCRIPTION VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GIA_TRANSFER_EXPORT (
    I$DT TIMESTAMP)
RETURNS (
    PARENT_ID BIGINT,
    EXAM_ID BIGINT,
    LINK_ID BIGINT,
    TYPE_ID BIGINT,
    DATE_ADD TIMESTAMP,
    DATE_MODIFY TIMESTAMP,
    DATE_DEL TIMESTAMP,
    EXAM_INDEX BIGINT,
    STAGE_ID BIGINT,
    EXAM_DATE DATE,
    SUBJECT_ID BIGINT,
    DAY_TYPE_ID BIGINT,
    EXPORT_DT TIMESTAMP,
    EXAM_YEAR BIGINT,
    EXAM_ST VARCHAR(1000),
    EXAM_ACC VARCHAR(1000),
    EXAM_FILE VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GIA_TRANSFER_IMPORT (
    I$PARENT_ID BIGINT,
    I$EXAM_ID BIGINT,
    I$LINK_ID BIGINT,
    I$TYPE_ID BIGINT,
    I$DATE_ADD TIMESTAMP,
    I$DATE_MODIFY TIMESTAMP,
    I$DATE_DEL TIMESTAMP,
    I$EXAM_INDEX BIGINT,
    I$STAGE_ID BIGINT,
    I$EXAM_DATE DATE,
    I$SUBJECT_ID BIGINT,
    I$DAY_TYPE_ID BIGINT,
    I$EXPORT_DT TIMESTAMP)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GIA_TRANSFER_IMPORT_FOLDER (
    I$PARENT_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$LINK_ID BIGINT,
    I$TYPE_ID BIGINT,
    I$DATE_ADD TIMESTAMP,
    I$DATE_MODIFY TIMESTAMP,
    I$DATE_DEL TIMESTAMP,
    I$YEAR_ID BIGINT,
    I$EXAM_ST VARCHAR(1000),
    I$EXAM_ACC VARCHAR(1000),
    I$EXAM_FILE VARCHAR(1000))
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GIA_WORKER_LIST RETURNS (
    OBJ_ID BIGINT,
    OBJ_CAPTION VARCHAR(4000),
    SORT_ORDER DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GPD_ACCEPT_PUPIL_LIST (
    I$GROUP_ID BIGINT)
RETURNS (
    PUPIL_ID BIGINT,
    FIRSTNAME VARCHAR(255),
    MIDDLENAME VARCHAR(255),
    LASTNAME VARCHAR(255),
    CLASSNAME VARCHAR(255),
    GROUPNAME VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GPD_MEMBERS_LIST (
    I$GPD_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    OBJ_ID BIGINT,
    CLASS_NAME VARCHAR(1000),
    NAME VARCHAR(1000),
    ACCEPT_DATE VARCHAR(20))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GPD_PARENT_SCHOLAR_LIST (
    I$GPD_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    PAR_OBJ_ID BIGINT,
    FIO VARCHAR(4000),
    PAR_WORK VARCHAR(1000),
    PAR_ADRES VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GPD_PLAN_AUTHORS_LIST RETURNS (
    OBJ_ID BIGINT,
    OBJ_CAPTION VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GPD_REPORT_PARENT_SCHOLAR (
    I$GPD_ID BIGINT)
RETURNS (
    FIO VARCHAR(4000),
    PAR_WORK VARCHAR(1000),
    PAR_ADRES VARCHAR(1000),
    CHILD_FIO VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GPD_REPORT_SCHOLAR_HEALTH (
    I$GPD_ID BIGINT)
RETURNS (
    SCHOLAR_CAPTION VARCHAR(1000),
    STATE_HEALTH VARCHAR(4000),
    HEALTH_GROUP VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GPD_REPORT_SCHOLAR_LIST (
    I$GPD_ID BIGINT)
RETURNS (
    SCHOLAR_CAPTION VARCHAR(1000),
    BIRTHDAY DATE,
    FORMNUM VARCHAR(10),
    PRCHORG VARCHAR(1000),
    ADDRES VARCHAR(2000),
    DATEB DATE,
    DATEN DATE,
    SORT_ORDER INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GPD_SUBJECTS_LIST (
    I$USER_ID BIGINT)
RETURNS (
    SUBJECT_ID BIGINT,
    SUBJECT_NAME VARCHAR(1000),
    SORT_ORDER DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GPD_TRANSFER_PUPIL (
    I$PUPIL_ID BIGINT,
    I$OLD_GPD_ID BIGINT,
    I$GPD_ID BIGINT,
    I$ORDER_NUMBER VARCHAR(100),
    I$ORDER_DATE DATE,
    I$ACTION_DATE DATE,
    I$REASON BIGINT,
    I$USER_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE GRADES_SCHOOLARS_LIST (
    I$GRADE_ID BIGINT,
    I$USER_ID BIGINT,
    I$IN_CURRICULUM_GROUP_FL SMALLINT = null)
RETURNS (
    PARENT_ID BIGINT,
    TREE_PARENT_ID VARCHAR(255),
    OBJ_ID BIGINT,
    TREE_OBJ_ID VARCHAR(255),
    TYPE_ID BIGINT,
    OBJ_CAPTION VARCHAR(4000),
    COLOR INTEGER,
    SORT_ORDER VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GRADE_SCHOOLARS_LIST (
    I$GRADE_ID BIGINT,
    I$USER_ID BIGINT,
    I$IN_CURRICULUM_GROUP_FL SMALLINT = null)
RETURNS (
    PARENT_ID BIGINT,
    TREE_PARENT_ID VARCHAR(255),
    OBJ_ID BIGINT,
    TREE_OBJ_ID VARCHAR(255),
    TYPE_ID BIGINT,
    OBJ_CAPTION VARCHAR(4000),
    COLOR INTEGER,
    SORT_ORDER VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GRID_CAPTION_GET (
    I$PARENT_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$TYPE_ID BIGINT,
    I$IS_SELECT SMALLINT)
RETURNS (
    CAPTION VARCHAR(1000),
    GRID_ORDER DOUBLE PRECISION,
    SORT_ORDER DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GRID_SELECT_ITEMS (
    I$OBJ_ID BIGINT,
    I$GRID_TYPE_ID BIGINT,
    I$LEVEL_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    RUN_SQL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GROUP_ITEM_GET (
    I$OBJ_ID BIGINT,
    I$GROUP_ID BIGINT,
    I$USER_ID VARCHAR(100))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GROUP_PLAN_ID (
    GRADE_ID BIGINT,
    GRADE_TYPE_ID BIGINT)
RETURNS (
    PLAN_ID BIGINT,
    IS_VD BIGINT,
    PLAN_TYPE BIGINT,
    PLAN_STAGE_ID BIGINT,
    PLAN_STAGE_LV BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GUP_SUBJ_PTP_CJ_STATUS (
    I$CURRICULUM_ID BIGINT,
    I$CHECK_CURRICULUM_ID BIGINT,
    I$COMPONENT_TYPE_ID BIGINT = null)
RETURNS (
    SUBJECT_ID BIGINT,
    STAGE_ID BIGINT,
    JOURNAL_ID BIGINT,
    JOURNAL_NAME VARCHAR(1000),
    PTP_ID BIGINT,
    CJ_LESSON_MISSED INTEGER,
    CJ_PTP_EQUALS FLOAT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GUP_SUBJ_PTP_EXECUTION_STATUS (
    I$CURRICULUM_ID BIGINT,
    I$CHECK_CURRICULUM_ID BIGINT,
    I$COMPONENT_TYPE_ID BIGINT = null)
RETURNS (
    SUBJECT_ID BIGINT,
    STAGE_ID BIGINT,
    JOURNAL_ID BIGINT,
    JOURNAL_NAME VARCHAR(1000),
    PTP_STATUS BIGINT,
    PTP_HOURS INTEGER,
    CURRICULUM_HOURS INTEGER,
    LESSONS_COUNT INTEGER,
    PTP_REALIZATION_PROCENT FLOAT,
    CURRICULUM_REALIZATION_PROCENT FLOAT,
    COMPARE_RESULT_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GZ_ADD_CHECK (
    I$PARENT_ID BIGINT,
    I$TYPE_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE GZ_ADD_QUALITY (
    I$SECTION_ID BIGINT,
    I$ITEM_ID BIGINT,
    I$UNITS VARCHAR(40),
    I$TEXT VARCHAR(1000))
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GZ_ADD_SECTION (
    I$OBJ_ID BIGINT NOT NULL,
    I$REF_ID BIGINT NOT NULL,
    I$TYPE INTEGER NOT NULL,
    I$LEVEL SMALLINT NOT NULL,
    I$NAME VARCHAR(2000),
    I$REGNUM VARCHAR(100),
    I$TECHNUM VARCHAR(100),
    I$OKVED VARCHAR(200),
    I$OKPD VARCHAR(200),
    I$C1 VARCHAR(1000),
    I$C2 VARCHAR(1000),
    I$C3 VARCHAR(1000),
    I$T1 VARCHAR(1000),
    I$T2 VARCHAR(1000),
    I$CONS VARCHAR(1000),
    I$EXTRA VARCHAR(1000),
    I$C0 VARCHAR(2000),
    I$TR VARCHAR(1000),
    I$USER_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    CAPTION VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GZ_ADD_VOLUME (
    I$SECTION_ID BIGINT,
    I$ITEM_ID BIGINT,
    I$UNITS VARCHAR(40),
    I$TEXT VARCHAR(1000),
    I$PAY SMALLINT)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GZ_CALC_RESULT (
    I$PARAM_ID BIGINT,
    I$USER_ID BIGINT,
    I$OU_ID BIGINT = null,
    I$PARAM_CODE VARCHAR(200) = null,
    I$YEAR INTEGER = null)
RETURNS (
    RESULT DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GZ_COPY (
    I$OBJ_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    CAPTION VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GZ_DELETE_CHECK (
    I$OBJ_ID BIGINT,
    I$OBJ_TYPE_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE GZ_FUNC (
    I$OBJ_ID BIGINT,
    I$PARAM_ID BIGINT)
RETURNS (
    VAL VARCHAR(1000),
    I BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GZ_MEMBERS_GET (
    I$OBJ_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GZ_MEMBER_SET (
    I$GZ_ID BIGINT,
    I$MEMBER_ID BIGINT,
    I$DELETE SMALLINT,
    I$USER_ID BIGINT)
RETURNS (
    ID BIGINT,
    NAME VARCHAR(1000),
    TYPE_ID BIGINT,
    REF_ID BIGINT,
    "YEAR" INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GZ_NEXT (
    I$OBJ_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    CAPTION VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GZ_RENUMBER_SECTIONS (
    I$GZ_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE GZ_REPORT_AGG_VOL (
    I$OBJ_ID BIGINT,
    I$YEAR INTEGER = null)
RETURNS (
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GZ_REPORT_DATA (
    I$GZ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GZ_REPORT_LIST_VOL (
    I$OBJ_ID BIGINT,
    I$YEAR INTEGER = null)
RETURNS (
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GZ_REPORT_MEMBERS_VOL (
    I$OBJ_ID BIGINT,
    I$YEAR INTEGER = null)
RETURNS (
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GZ_REPORT_OO_QTY (
    I$OBJ_ID BIGINT,
    I$YEAR INTEGER = null)
RETURNS (
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GZ_REPORT_OO_VOL (
    I$OBJ_ID BIGINT,
    I$YEAR INTEGER = null)
RETURNS (
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GZ_RESULTS (
    I$OBJ_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GZ_SAVE_RESULT (
    I$PARAM_ID BIGINT,
    I$VAL FLOAT,
    I$USER_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE GZ_VAL_AFTER (
    I$OBJ_ID BIGINT,
    I$PARAM_ID BIGINT,
    I$VAL VARCHAR(4000),
    I$IS_DEL SMALLINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE HAS_FALSE_PUPIL_WITH_EDU_DOC (
    I$YEAR BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    RESULT SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE HOUSE_GUID_WRITE_IN (
    MANUAL_REG SMALLINT = 0)
RETURNS (
    RESULT VARCHAR(1000),
    OBJ_CAPTION VARCHAR(255),
    PARAM_CAPTION VARCHAR(255),
    OLD_ADDR_VALUE VARCHAR(255),
    NEW_ADDR_VALUE VARCHAR(255),
    HOUSEGUID VARCHAR(36),
    POSTALCODE VARCHAR(15),
    OKATO VARCHAR(15))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE IAC3_FINDLEARNERSBYEDUDOC (
    I$NUMERAL VARCHAR(20),
    I$TYPECODE INTEGER = NULL,
    I$SERIES VARCHAR(20) = NULL,
    I$USER_ID BIGINT = 1)
RETURNS (
    PID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE IAC3_FINDLEARNERSBYIDENTDOC (
    I$NUMERAL VARCHAR(20),
    I$TYPECODE INTEGER = NULL,
    I$SERIES VARCHAR(20) = NULL,
    I$USER_ID BIGINT = 1)
RETURNS (
    PID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE IAC3_FINDLEARNERSBYPARAMS (
    I$FIRSTNAME VARCHAR(30),
    I$LASTNAME VARCHAR(30),
    I$SECONDNAME VARCHAR(30),
    I$BIRTHDATE DATE = NULL,
    I$SCHOOLPID VARCHAR(30) = NULL,
    I$USER_ID BIGINT = 1)
RETURNS (
    PID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE IAC3_FINDLEARNERSBYSNILS (
    I$SNILS VARCHAR(30),
    I$USER_ID BIGINT = 1)
RETURNS (
    PID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE IAC3_FINDSCHOOLBYPARAMS (
    I$SHORTNAME VARCHAR(50),
    I$ORGN VARCHAR(50),
    I$INN VARCHAR(50),
    I$HEADFIO VARCHAR(100),
    I$REGION VARCHAR(50),
    I$DISTRICT VARCHAR(50),
    I$TOWN VARCHAR(50),
    I$SETTLEMENT VARCHAR(50),
    I$STREET VARCHAR(50),
    I$HOUSE VARCHAR(50),
    I$LITER VARCHAR(50),
    I$CORP VARCHAR(50),
    I$FLAT VARCHAR(50),
    I$POSTINDEX VARCHAR(50),
    I$OKATO VARCHAR(50),
    I$EMAIL VARCHAR(50),
    I$SITE VARCHAR(50),
    I$PHONE VARCHAR(30),
    I$USER_ID BIGINT = 1)
RETURNS (
    PID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE IAC3_GETEDUCATIONDOCUMENT (
    I$PID BIGINT,
    I$USER_ID BIGINT = 1)
RETURNS (
    PID BIGINT,
    TYPECODE INTEGER,
    SERIES VARCHAR(20),
    NUMERAL VARCHAR(30),
    REGNUMBER VARCHAR(30),
    ISSUEDATE DATE,
    ISSUER VARCHAR(200),
    LASTNAME VARCHAR(50),
    FIRSTNAME VARCHAR(50),
    SECONDNAME VARCHAR(50))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE IAC3_GETIDENTITYDOCUMENTBYID (
    I$PID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    PID BIGINT,
    TYPECODE INTEGER,
    SERIES VARCHAR(20),
    NUMERAL VARCHAR(30),
    ISSUEDATE DATE,
    ISSUER VARCHAR(200),
    VALIDATYDATE DATE)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE IAC3_GETLEARNERBYPID (
    I$LEARNERID BIGINT,
    I$USER_ID BIGINT = 1)
RETURNS (
    PID BIGINT,
    FIRSTNAME VARCHAR(30),
    LASTNAME VARCHAR(30),
    SECONDNAME VARCHAR(30),
    BIRTHDATE DATE,
    BIRTHPLACE VARCHAR(60),
    SNILS VARCHAR(30),
    SCHOOLPID VARCHAR(30),
    TEAMNUMERAL VARCHAR(30),
    TEAMLETTER VARCHAR(30),
    ENROLLMENTDATE DATE,
    DEDUCTIONDATE DATE)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE IAC3_GETLEARNERSEDUDOCS (
    I$LEARNERPID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    PID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE IAC3_GETLEARNERSIDENTDOCS (
    I$LEARNERPID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    PID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE IAC3_GETLEARNERSREGISTRATIONS (
    I$LEARNERID BIGINT,
    I$USER_ID BIGINT = 1)
RETURNS (
    "TYPE" VARCHAR(30),
    REGION VARCHAR(50),
    DISTRICT VARCHAR(50),
    TOWN VARCHAR(50),
    SETTLEMENT VARCHAR(50),
    STREET VARCHAR(50),
    HOUSE VARCHAR(50),
    LITER VARCHAR(50),
    CORP VARCHAR(50),
    FLAT VARCHAR(50),
    POSTINDEX VARCHAR(50),
    OKATO VARCHAR(50),
    EXPIRATIONDATE DATE)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE IAC3_GETSCHOOLBYID (
    I$PID BIGINT,
    I$USER_ID BIGINT = 1)
RETURNS (
    PID BIGINT,
    FULLNAME VARCHAR(300),
    SHORTNAME VARCHAR(100),
    ORGN VARCHAR(50),
    INN VARCHAR(50),
    KPP VARCHAR(60),
    FORM VARCHAR(50),
    HEADPOSITION VARCHAR(50),
    HEADFIO VARCHAR(50),
    REGION VARCHAR(50),
    DISTRICT VARCHAR(50),
    TOWN VARCHAR(50),
    SETTLEMENT VARCHAR(50),
    STREET VARCHAR(50),
    HOUSE VARCHAR(50),
    LITER VARCHAR(50),
    CORP VARCHAR(50),
    FLAT VARCHAR(50),
    POSTINDEX VARCHAR(50),
    OKATO VARCHAR(50),
    EMAIL VARCHAR(50),
    SITE VARCHAR(60))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE IMPORT_CLEAR_LINKS (
    I$REG_NUMBER BIGINT,
    I$LEVEL INTEGER,
    I$FORCE_DELETE SMALLINT = 0)
RETURNS (
    R INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE IMPORT_CLEAR_REG_LINKS (
    I$REG_NUMBER BIGINT,
    I$FORCE_DELETE SMALLINT = 0)
RETURNS (
    R INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE IMPORT_CREATE_INDEXES
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE IMPORT_DROP_INDEXES
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE IMPORT_OLD_CARDS
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE INFOEQUIPMENT_ESTIMATION_DTL (
    I$OBJ_ID BIGINT,
    I$PARAM_NUMBER SMALLINT)
RETURNS (
    VAL1 VARCHAR(1000),
    VAL3 VARCHAR(1000),
    NAME VARCHAR(1000),
    CNT INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE INFOEQUIPMENT_ESTIMATION_GET (
    I$OBJ_ID BIGINT,
    I$PARAM_NUMBER SMALLINT,
    I$USER_ID BIGINT)
RETURNS (
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE INFOEQUIPMENT_ESTIMATION_OU_REP (
    I$SCHOOL_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE INFOEQUIPMENT_ESTIMATION_REPORT (
    I$REGION_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    COL_NUM SMALLINT,
    VAL VARCHAR(4000),
    DATA VARCHAR(4000),
    ORIENTATION VARCHAR(20))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE INFO_KEY_SET (
    INFO_CODE VARCHAR(100),
    INFO_NAME VARCHAR(100),
    INFO_VAL VARCHAR(4000))
RETURNS (
    INFO_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE INTOKC_SCHOLAR_GET RETURNS (
    SCHOLAR_ID BIGINT,
    F VARCHAR(1000),
    I VARCHAR(1000),
    O VARCHAR(1000),
    DT DATE,
    SEX CHAR(1))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE IS_CURRICULUM_HAS_NET (
    OBJ_ID BIGINT)
RETURNS (
    RETCODE INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE IS_DOU RETURNS (
    STATUS SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE IS_MANAGER (
    I$TEACHER_ID BIGINT)
RETURNS (
    X SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE IS_NATIVE_ID (
    I$ID BIGINT)
RETURNS (
    IS_NATIVE SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE IS_ON_THE_STAFF (
    I$TEACHER_ID BIGINT)
RETURNS (
    X SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE IS_ROOT_OBJ_PARENT (
    I$PARENT_ID BIGINT,
    I$ROOT_OBJ_ID BIGINT,
    I$LEVEL_ID BIGINT)
RETURNS (
    STATUS SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE IS_SECOND_YEAR (
    I$STUDENT_ID BIGINT,
    I$DATE DATE)
RETURNS (
    VAL SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE IS_TEACHER (
    I$TEACHER_ID BIGINT)
RETURNS (
    X SMALLINT,
    VALID SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE IS_VPL RETURNS (
    STATUS SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE IS_YOUNG_EMPLOYEE (
    I$PERSON_ID BIGINT,
    I$DATE_FROM DATE,
    I$DATE_TO DATE)
RETURNS (
    VAL SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE JOBLIST_DELETE (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE JOBLIST_DESCRIBE (
    I$USER_ID VARCHAR(40),
    I$APP VARCHAR(400),
    I$IP VARCHAR(400))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE JOBLIST_GET (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE JOBLIST_MERGE (
    I$OBJ_ID BIGINT,
    I$DEST_ID BIGINT,
    I$USER_ID VARCHAR(40))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE JOBLIST_MERGE_CND (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE JOBLIST_SET (
    I$OBJ_ID BIGINT,
    I$DIV_ID BIGINT,
    I$CATEGORY_ID BIGINT,
    I$NAME VARCHAR(1000) NOT NULL,
    I$RATE DOUBLE PRECISION,
    I$LOAD DOUBLE PRECISION,
    I$COMMENTS VARCHAR(4000),
    I$USER_ID VARCHAR(40))
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE JOBLIST_TRANSFER (
    I$MODE VARCHAR(12))
RETURNS (
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE JOB_FUNCTION_TO_CODE (
    JF BIGINT,
    JNAME VARCHAR(400) = NULL)
RETURNS (
    CODE VARCHAR(20))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE JOB_LIST_ADD (
    I$OBJ_ID BIGINT,
    I$STATUS_ID BIGINT NOT NULL,
    I$SR_NUMBER VARCHAR(400),
    I$SR_DATE DATE,
    I$DATE_FROM DATE,
    I$DATE_TO DATE,
    I$ORDER_NUMBER VARCHAR(400),
    I$ORDER_DATE DATE,
    I$DIR_FIO VARCHAR(1000),
    I$GB_FIO VARCHAR(1000),
    I$USER_ID VARCHAR(40))
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE JOB_LIST_COPY (
    I$OBJ_ID BIGINT NOT NULL,
    I$USER_ID VARCHAR(100))
RETURNS (
    OBJ_ID BIGINT,
    OBJ_CAPTION VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE JOB_LIST_CURRENT RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE JOB_LIST_GET (
    I$OBJ_ID BIGINT NOT NULL,
    I$USER_ID VARCHAR(100))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE JOB_LIST_HEADERS (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE JOB_LIST_SYNC (
    I$OBJ_ID BIGINT NOT NULL)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE JOB_LIST_VERIFY (
    I$OBJ_ID BIGINT NOT NULL,
    I$USER_ID BIGINT,
    I$TYPE_ID BIGINT NOT NULL,
    I$PARAM_ID BIGINT NOT NULL,
    I$VAL VARCHAR(4000) NOT NULL)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE JOB_POS_DELETE (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(100))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE JOB_POS_DELETE_ALL (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE JOB_POS_MOVE (
    I$PARENT_ID BIGINT NOT NULL,
    I$OBJ_ID BIGINT,
    I$UNIT_ID BIGINT,
    I$GROUP_ID BIGINT,
    I$INDEX BIGINT NOT NULL,
    I$USER_ID VARCHAR(40))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE JOB_POS_SET (
    I$PARENT_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(100) NOT NULL,
    I$UNIT_ID BIGINT,
    I$GROUP_ID BIGINT,
    I$JOB_ID BIGINT,
    I$JOB_TITLE_FULL VARCHAR(1000),
    I$RATE FLOAT,
    I$SALARY_BASE FLOAT,
    I$SALARY_FULL FLOAT,
    I$EXTRA1 FLOAT,
    I$EXTRA2 FLOAT,
    I$EXTRA3 FLOAT,
    I$COMMENTS VARCHAR(4000),
    I$INDEX BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    PRE_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE JOB_POS_SINGLE_VAL (
    I$PARENT_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$FIELD INTEGER,
    I$VAL VARCHAR(1000),
    I$USER_ID VARCHAR(40))
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE KONTINGENT_DOC_ADD (
    I$PUPIL_ID BIGINT,
    I$TYPE_CODE SMALLINT,
    I$SERIES VARCHAR(50),
    I$NUMERAL VARCHAR(50),
    I$ACT_NUMBER VARCHAR(50),
    I$ISSUE_DATE DATE,
    I$ISSUER VARCHAR(1000),
    I$EXPIRED_DATE DATE,
    I$DELETED SMALLINT = 0)
RETURNS (
    CODE VARCHAR(3000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE KONTINGENT_EMPLOYEES_EXPORT (
    I$SCHOOL_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    TAG_NAME VARCHAR(255),
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE KONTINGENT_EMPLOYEE_EXPORT (
    I$EMPLOYEE_ID BIGINT,
    I$SCHOOL_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    TAG_NAME VARCHAR(255),
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE KONTINGENT_EXPORT_PROP_SET (
    FTP_ADDRESS VARCHAR(100),
    FTP_PORT VARCHAR(100),
    FTP_LOGIN VARCHAR(100),
    FTP_PWD VARCHAR(100),
    FTP_MODE VARCHAR(100),
    EXPORT_INTERVAL VARCHAR(100))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE KONTINGENT_FILEUPDATE_GET (
    I$FILEUPDATE VARCHAR(1000))
RETURNS (
    VAL VARCHAR(20))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE KONTINGENT_FILEUPDATE_SET (
    I$FILEUPDATE VARCHAR(1000))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE KONTINGENT_LAST_EXPORT_DATE_SET (
    I$DT TIMESTAMP)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE KONTINGENT_OOOD_EXPORT (
    I$SCHOOL_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    TAG_NAME VARCHAR(255),
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE KONTINGENT_PERSONS_EXPORT (
    I$SCHOOL_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    TAG_NAME VARCHAR(255),
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE KONTINGENT_PERSON_EXPORT (
    I$PERSON_ID BIGINT,
    I$SCHOOL_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    TAG_NAME VARCHAR(255),
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE KONTINGENT_PUPILS_EXPORT (
    I$SCHOOL_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    TAG_NAME VARCHAR(255),
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE KONTINGENT_PUPIL_EXPORT (
    I$PUPIL_ID BIGINT,
    I$SCHOOL_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    TAG_NAME VARCHAR(255),
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE KONTINGENT_UDOD_EMPLOYEES_EXP (
    I$SCHOOL_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    TAG_NAME VARCHAR(255),
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE KONTINGENT_UDOD_PERSONS_EXPORT (
    I$SCHOOL_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    TAG_NAME VARCHAR(255),
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE KONTINGENT_UDOD_PUPILS_EXPORT (
    I$SCHOOL_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    TAG_NAME VARCHAR(255),
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LAST_BACKUP_DATE_ADD
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE LD_STUDENT_GET (
    I$OBJ_ID BIGINT NOT NULL,
    I$USER_ID VARCHAR(100) NOT NULL,
    I$PRINT SMALLINT,
    I$TO VARCHAR(100),
    I$IP VARCHAR(30))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LD_STUDENT_UPDATE (
    I$PERSON_ID BIGINT,
    I$RECORD_ID VARCHAR(400),
    I$VAL VARCHAR(1000),
    I$DT TIMESTAMP)
RETURNS (
    OBJ_ID BIGINT,
    MODIFIED SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LD_STUFF_UPDATE (
    I$PERSON_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$OBJ_TYPE BIGINT,
    I$STATE_ID SMALLINT,
    I$TYPE_ID BIGINT,
    I$SERIE VARCHAR(40),
    I$NUMBER VARCHAR(40),
    I$DATE DATE,
    I$STAGE_ID BIGINT,
    I$ISSUED_BY VARCHAR(1000),
    I$SPEC VARCHAR(1000),
    I$QUAL VARCHAR(1000),
    I$PROFILE_ID BIGINT,
    I$ISSUED_SHORT VARCHAR(1000),
    I$REG_NUM VARCHAR(1000))
RETURNS (
    OBJ_ID BIGINT,
    MODIFIED SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LEAVED_PUPIL_W_ATT_LIST (
    I$LAST_NAME VARCHAR(255),
    I$FIRST_NAME VARCHAR(255))
RETURNS (
    PUPIL_ID BIGINT,
    LAST_NAME VARCHAR(255),
    FIRST_NAME VARCHAR(255),
    MIDDLE_NAME VARCHAR(255),
    DOB DATE,
    CONTAINER_NAME VARCHAR(255))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LEAVE_TO_LIST (
    I$OBJ_ID BIGINT)
RETURNS (
    PARENT_ID BIGINT,
    LISTVAL_ID BIGINT,
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LEVELS_LIST (
    I$TASK_ID BIGINT,
    I$LANG_CODE VARCHAR(2) = 'RU')
RETURNS (
    LEVEL_ID BIGINT,
    RES_ID BIGINT,
    TASK_ID BIGINT,
    IS_DEL SMALLINT,
    ROOT_TYPE_ID BIGINT,
    PARENT_TYPE_ID BIGINT,
    LEVEL_CAPTION VARCHAR(4000),
    ICON_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LEVEL_ADD (
    I$LEVEL_ID BIGINT,
    I$RES_ID BIGINT,
    I$TASK_ID BIGINT,
    I$LANG_CODE CHAR(2),
    I$LEVEL_CAPTION VARCHAR(4000),
    I$IS_DEL SMALLINT = 0,
    I$ROOT_TYPE_ID BIGINT = NULL,
    I$PARENT_TYPE_ID BIGINT = NULL,
    I$ICON_ID BIGINT = NULL)
RETURNS (
    LEVEL_ID BIGINT,
    RES_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LEVEL_BARS_LIST (
    I$LEVEL_ID BIGINT,
    I$LANG_CODE CHAR(2) = 'RU',
    I$USER_ID BIGINT = 1)
RETURNS (
    BAR_ID BIGINT,
    SORT_ORDER SMALLINT,
    BUTTON_CAPTION VARCHAR(4000),
    DO_FUNC VARCHAR(100),
    TAG VARCHAR(20),
    ICON_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LEVEL_MOVE (
    I$LEVEL_ID BIGINT,
    I$MOVE SMALLINT)
RETURNS (
    SORT_ORDER SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LEVEL_TYPES_LIST (
    I$LEVEL_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    PARENT_TYPE_ID BIGINT,
    TYPE_ID BIGINT,
    TYPE_CAPTION VARCHAR(4000),
    EDIT_TYPE SMALLINT,
    IS_ADD SMALLINT,
    IS_INTERNAL_ADD SMALLINT,
    IS_COPY SMALLINT,
    IS_CUT SMALLINT,
    IS_LINK SMALLINT,
    IS_SELECT SMALLINT,
    IS_HIDDEN SMALLINT,
    DO_FUNC SMALLINT,
    IS_FROM_LIST SMALLINT,
    RUN_SQL VARCHAR(1000),
    IS_AUTO_CREATE SMALLINT,
    TAB_ID BIGINT,
    BAR_ID BIGINT,
    TAG VARCHAR(100),
    COLOR INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIB2_ABN_GET (
    I$OBJ_ID BIGINT,
    I$ALL SMALLINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIB2_ABN_INFO (
    I$USE_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIB2_ABN_LIST (
    I$PLACE_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIB2_ABN_MASS_ASSN (
    I$GRADE_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(40),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIB2_ABN_MASS_LIST (
    I$GRADE_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIB2_BOOK_ADD_FPU (
    I$FPU_ID BIGINT,
    I$TYPE_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    OBJ_ID BIGINT,
    BOOK_NAME VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIB2_BOOK_DELETE (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE LIB2_BOOK_GET (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIB2_BOOK_GIVE (
    I$PERSON_ID BIGINT,
    I$BOOK_ID BIGINT,
    I$INSTANCE_ID BIGINT,
    I$QTY INTEGER,
    I$DATE_TO DATE,
    I$IP VARCHAR(400),
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIB2_BOOK_HISTORY (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIB2_BOOK_RETURN (
    I$PERSON_ID BIGINT,
    I$USE_ID BIGINT,
    I$LOST SMALLINT NOT NULL,
    I$IP VARCHAR(400),
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIB2_BOOK_RETURN_ALL (
    I$REF_ID BIGINT,
    I$IP VARCHAR(400),
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIB2_BOOK_SET (
    I$OBJ_TYPE SMALLINT,
    I$OBJ_ID BIGINT,
    I$AUTHOR_ID BIGINT,
    I$PUBLISHER_ID BIGINT,
    I$CODE_ISBN VARCHAR(30),
    I$BOOK_NAME VARCHAR(400),
    I$PUB_YEAR INTEGER,
    I$AUTHORS VARCHAR(400),
    I$PART_NUM SMALLINT,
    I$PART_NAME VARCHAR(200),
    I$LANG_ID BIGINT,
    I$BOOK_SIZE VARCHAR(20),
    I$AGE_GROUP VARCHAR(20),
    I$SUBJECT_ID BIGINT,
    I$SUBJECT_ID2 BIGINT,
    I$SUBJECT_ID3 BIGINT,
    I$PUB_PLACE_ID BIGINT,
    I$AUTHOR_SIGN VARCHAR(10),
    I$UDK VARCHAR(100),
    I$EDITION_TEXT VARCHAR(200),
    I$PURPOSE_ID BIGINT,
    I$BBK VARCHAR(100),
    I$USER_ID VARCHAR(40))
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIB2_BOOK_SET_ATTR (
    I$BOOK_ID BIGINT,
    I$LIST_ID BIGINT,
    I$VALUE BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE LIB2_BOOK_UNDO (
    I$OBJ_ID BIGINT NOT NULL,
    I$USE_ID BIGINT NOT NULL,
    I$REASON SMALLINT NOT NULL,
    I$IP VARCHAR(400),
    I$USER_ID VARCHAR(40) NOT NULL)
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIB2_DESCRIBE (
    I$USER_ID VARCHAR(40),
    I$APP VARCHAR(400),
    I$IP VARCHAR(400))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIB2_LISTS_LIST (
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIB2_LISTVAL_DELETE (
    I$LIST_ID BIGINT,
    I$LISTVAL_ID BIGINT,
    I$USER_ID VARCHAR(40))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE LIB2_LISTVAL_GET (
    I$LIST_ID BIGINT,
    I$LISTVAL_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIB2_LISTVAL_SET (
    I$LIST_ID BIGINT,
    I$PARENT_ID BIGINT,
    I$LISTVAL_ID BIGINT,
    I$VAL VARCHAR(1000),
    I$CODE VARCHAR(40),
    I$USER_ID VARCHAR(40))
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIB2_LIST_DELETE (
    I$LIST_ID BIGINT,
    I$USER_ID VARCHAR(40))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE LIB2_LIST_GET (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIB2_LIST_SET (
    I$OBJ_ID BIGINT,
    I$NAME VARCHAR(1000),
    I$MAX_LEVEL INTEGER,
    I$LOCAL_ACCESS INTEGER,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIB2_LIST_TREE (
    I$LIST_ID BIGINT,
    I$PARENT_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIB2_LOCATIONS_GET (
    I$IP VARCHAR(400),
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIB2_LOCATION_BASE (
    I$VAL INTEGER,
    I$USER_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE LIB2_LOCATION_DEL (
    I$OBJ_ID BIGINT NOT NULL)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE LIB2_LOCATION_SET (
    I$INDEX INTEGER NOT NULL,
    I$ADDRESS VARCHAR(4000) NOT NULL)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIB2_LOC_COUNT (
    I$BOOK_ID BIGINT,
    I$TYPE_ID BIGINT,
    I$LOCMASK INTEGER)
RETURNS (
    CNT_AVAIL1 INTEGER,
    CNT_FREE1 INTEGER,
    CNT_GIVEN1 INTEGER,
    CNT_AVAIL2 INTEGER,
    CNT_FREE2 INTEGER,
    CNT_GIVEN2 INTEGER,
    CNT_AVAIL3 INTEGER,
    CNT_FREE3 INTEGER,
    CNT_GIVEN3 INTEGER,
    CNT_AVAIL4 INTEGER,
    CNT_FREE4 INTEGER,
    CNT_GIVEN4 INTEGER,
    CNT_AVAIL5 INTEGER,
    CNT_FREE5 INTEGER,
    CNT_GIVEN5 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIB2_MASS_ASSN (
    I$GRADE_ID BIGINT,
    I$PERSON_ID BIGINT,
    I$BOOK_ID BIGINT,
    I$STATE INTEGER,
    I$IP VARCHAR(400),
    I$USER_ID VARCHAR(40))
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIB2_MASS_GIVE (
    I$GRADE_ID BIGINT NOT NULL,
    I$BOOK_ID BIGINT NOT NULL,
    I$SUBJECT_ID BIGINT,
    I$LOAD_ID BIGINT,
    I$QUANTITY INTEGER NOT NULL,
    I$IP VARCHAR(400),
    I$USER_ID VARCHAR(40))
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIB2_MG_PFPE (
    I$BOOK_CODE VARCHAR(40) NOT NULL,
    I$NAME VARCHAR(1000) NOT NULL,
    I$DESC VARCHAR(4000),
    I$PUB_ID BIGINT NOT NULL,
    I$SUBJECT_ID VARCHAR(100),
    I$GRADES VARCHAR(40) NOT NULL,
    I$ORDER1 VARCHAR(40),
    I$ORDER2 VARCHAR(40),
    I$F1 VARCHAR(10),
    I$F2 VARCHAR(10),
    I$F3 VARCHAR(10),
    I$DATE_TO VARCHAR(40))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE LIB2_MOVE_CLEANUP (
    I$MOVE_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$ACC_MODE SMALLINT,
    I$USER_ID VARCHAR(40))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE LIB2_MOVE_DELETE (
    I$OBJ_ID BIGINT,
    I$IP VARCHAR(400),
    I$USER_ID VARCHAR(40))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE LIB2_MOVE_GET (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIB2_MOVE_ITEM_IDS (
    I$OBJ_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIB2_MOVE_ITEM_SET (
    I$MOVE_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$BOOK_ID BIGINT,
    I$QTY INTEGER,
    I$PRICE FLOAT,
    I$INDEX INTEGER,
    I$IP VARCHAR(400),
    I$USER_ID VARCHAR(40))
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIB2_MOVE_SET (
    I$OBJ_ID BIGINT,
    I$TYPE_ID SMALLINT,
    I$ACTION_DATE DATE,
    I$ACTION_NUM VARCHAR(100),
    I$DOCUMENT_DATE DATE,
    I$DOCUMENT_NUM VARCHAR(100),
    I$REASON_ID BIGINT,
    I$CONTRAGENT_ID BIGINT,
    I$COMMENTS VARCHAR(1000),
    I$DEST_INDEX INTEGER,
    I$IP VARCHAR(400),
    I$USER_ID VARCHAR(40))
RETURNS (
    OBJ_ID BIGINT,
    TYPE_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIB2_MOVE_TRANSFER (
    I$OBJ_ID BIGINT NOT NULL,
    I$IP VARCHAR(400),
    I$DEST_INDEX SMALLINT NOT NULL,
    I$ACTION VARCHAR(100) NOT NULL,
    I$USER_ID VARCHAR(40))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE LIB2_REPORT_NX10 (
    I$USER_ID VARCHAR(40),
    I$DATE_FROM DATE,
    I$DATE_TO DATE,
    I$PARENT_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$OPTION_ID BIGINT,
    I$OPTIONS VARCHAR(1000),
    I$ZONE SMALLINT = 0)
RETURNS (
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIB2_REPORT_NX30 (
    I$USER_ID VARCHAR(40),
    I$DATE_FROM DATE,
    I$DATE_TO DATE,
    I$PARENT_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$OPTION_ID BIGINT,
    I$OPTIONS VARCHAR(1000),
    I$ZONE SMALLINT = 0)
RETURNS (
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIB2_REPORT_NX50 (
    I$USER_ID VARCHAR(40),
    I$DATE_FROM DATE,
    I$DATE_TO DATE,
    I$PARENT_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$OPTION_ID BIGINT,
    I$OPTIONS VARCHAR(1000),
    I$ZONE SMALLINT = 0)
RETURNS (
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIB2_REPORT_NX60 (
    I$USER_ID VARCHAR(40),
    I$DATE_FROM DATE,
    I$DATE_TO DATE,
    I$PARENT_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$OPTION_ID BIGINT,
    I$OPTIONS VARCHAR(1000),
    I$ZONE SMALLINT = 0)
RETURNS (
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIB2_REPORT_NX90 (
    I$USER_ID VARCHAR(40),
    I$DATE_FROM DATE,
    I$DATE_TO DATE,
    I$PARENT_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$OPTION_ID BIGINT,
    I$OPTIONS VARCHAR(1000),
    I$ZONE SMALLINT = 0)
RETURNS (
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIB2_REPORT_NX98 (
    I$USER_ID VARCHAR(40),
    I$DATE_FROM DATE,
    I$DATE_TO DATE,
    I$PARENT_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$OPTION_ID BIGINT,
    I$OPTIONS VARCHAR(1000),
    I$ZONE SMALLINT = 0)
RETURNS (
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIB2_REPORT_NX99 (
    I$USER_ID VARCHAR(40),
    I$DATE_FROM DATE,
    I$DATE_TO DATE,
    I$PARENT_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$OPTION_ID BIGINT,
    I$OPTIONS VARCHAR(1000),
    I$ZONE SMALLINT = 0)
RETURNS (
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIB2_SEARCH_DATA (
    USER_ID VARCHAR(100))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIB2_TRANSFER (
    I$MODE VARCHAR(100))
RETURNS (
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIB2_USAGE_SUBJ_GUP (
    I$LOAD_ID BIGINT,
    I$CLASS_ID BIGINT,
    I$STAGE_ID BIGINT)
RETURNS (
    BOOK_NAME VARCHAR(400),
    FPU_CODE VARCHAR(40),
    COUNT_IN_USE INTEGER,
    BOOKS_LEFT INTEGER,
    YEAR_PUBLISHED INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIB2_WB_SUFFICIENCY_LIST (
    I$LVL BIGINT,
    I$ST BIGINT,
    I$GR BIGINT,
    I$DETAIL SMALLINT)
RETURNS (
    STAGE_ID BIGINT,
    LVL_ID BIGINT,
    PLAN_ID BIGINT,
    SUBJECT_ID BIGINT,
    PUPIL_CNT INTEGER,
    BOOKS_LEFT_CNT INTEGER,
    IN_USE_CNT INTEGER,
    BOOK_NAME VARCHAR(500),
    FPU_CODE VARCHAR(100),
    YEAR_PUBLISHED INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIB_BOOK_ADD_FPU (
    I$OBJ_ID BIGINT,
    I$YEAR SMALLINT,
    I$BOOK_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIB_BOOK_UPDATE_PRG (
    I$OBJ_ID BIGINT NOT NULL,
    I$BOOK_CODE VARCHAR(4000),
    I$USER_ID BIGINT)
RETURNS (
    BOOK_NAME VARCHAR(500))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIB_BOOK_VALIDATE_REFS (
    I$OBJ_ID BIGINT,
    I$YEAR VARCHAR(10))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE LIB_FORMS_GET (
    I$FORMCODE BIGINT)
RETURNS (
    FORMCODE BIGINT,
    FORMLEADER BIGINT,
    FORMNAME VARCHAR(4000),
    FORMNUM INTEGER,
    FORMSTEP INTEGER,
    FORMPART INTEGER,
    FORMSTEP_NAME VARCHAR(1000),
    FORMLETTER VARCHAR(2),
    SORT_ORDER DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIB_FORMS_LIST RETURNS (
    FORMCODE BIGINT,
    FORMLEADER BIGINT,
    FORMNAME VARCHAR(4000),
    FORMNUM INTEGER,
    FORMSTEP INTEGER,
    FORMPART INTEGER,
    PUPILCOUNT INTEGER,
    FORMSTEP_NAME VARCHAR(1000),
    FORMPART_NAME VARCHAR(1000),
    FORMLANGUAGE_NAME VARCHAR(1000),
    FORMPROGRAMM_NAME VARCHAR(1000),
    FORMLEADER_NAME VARCHAR(1000),
    FORMLETTER VARCHAR(1000),
    SORT_ORDER DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIB_FPU_ADD (
    I$CODE VARCHAR(1000),
    I$NAME VARCHAR(1000),
    I$AUTHORS VARCHAR(600),
    I$PUBLISHER VARCHAR(400),
    I$GRADES VARCHAR(40),
    I$DESC VARCHAR(100),
    I$DATE VARCHAR(100))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE LIB_FPU_DELETE (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIB_FPU_GET (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIB_FPU_SET (
    I$OBJ_ID BIGINT,
    I$SUBJECT_ID BIGINT,
    I$SA_ID BIGINT,
    I$AUTHORS VARCHAR(1000),
    I$BOOKNAME VARCHAR(1000),
    I$STAGE_ID BIGINT,
    I$GRADE_FROM SMALLINT NOT NULL,
    I$GRADE_TO SMALLINT NOT NULL,
    I$PUBLISHER_ID BIGINT,
    I$YEAR_REMOVE SMALLINT,
    I$ATTRS SMALLINT,
    I$VALID_BY DATE,
    I$CODEDATE DATE,
    I$BOOKCODE VARCHAR(40),
    I$ORDER VARCHAR(100),
    I$LANG_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIB_FPU_UPDATE (
    I$BOOKCODE VARCHAR(40),
    I$ORDER_DATE DATE,
    I$ORDER_TEXT VARCHAR(100),
    I$VALID_BY DATE)
RETURNS (
    BOOK_ID BIGINT,
    BOOK_NAME VARCHAR(400),
    AUTHORS VARCHAR(400),
    SUBJECT_NAME VARCHAR(400),
    BOOKCODE VARCHAR(40),
    CODEDATE DATE,
    CODEORDER VARCHAR(100),
    IS_EXT SMALLINT,
    GRADE_FROM SMALLINT,
    GRADE_TO SMALLINT,
    YEAR_TO INTEGER,
    VALID_BY DATE)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIB_FPU_UPDATE_MASS (
    I$BOOKCODE VARCHAR(40),
    I$NUM SMALLINT,
    I$ORDER_DATE DATE,
    I$ORDER_TEXT VARCHAR(100),
    I$VALID_BY DATE)
RETURNS (
    BOOK_ID BIGINT,
    BOOK_NAME VARCHAR(400),
    AUTHORS VARCHAR(400),
    SUBJECT_NAME VARCHAR(400),
    BOOKCODE VARCHAR(40),
    CODEDATE DATE,
    CODEORDER VARCHAR(100),
    IS_EXT SMALLINT,
    GRADE_FROM SMALLINT,
    GRADE_TO SMALLINT,
    YEAR_TO INTEGER,
    VALID_BY DATE)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIB_FP_ADD_PUBLISHER (
    PUBLISHER_NAME VARCHAR(300))
RETURNS (
    PUBLISHER_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIB_FP_BOOK_INFO_GET (
    I$OBJ_ID BIGINT,
    I$PARAM_ID BIGINT)
RETURNS (
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIB_PUPIL_GET (
    SCBOYCOD BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    SCBOYCODE BIGINT,
    FORMID BIGINT,
    FORMNAME VARCHAR(1000),
    FIRSTNAME VARCHAR(1000),
    NAME VARCHAR(1000),
    LASTNAME VARCHAR(1000),
    BIRTHDAY DATE,
    REGION VARCHAR(255),
    DISTRICT VARCHAR(255),
    TOWN VARCHAR(255),
    SETTLEMENT VARCHAR(255),
    STREET VARCHAR(255),
    HOUSE VARCHAR(10),
    CORP VARCHAR(10),
    LITER VARCHAR(10),
    FLAT VARCHAR(10),
    POST_INDEX VARCHAR(20),
    ADDRESS VARCHAR(2000),
    ABONEMENTID BIGINT,
    ABONEMENTNO INTEGER,
    PHONE VARCHAR(255),
    FULLNAME VARCHAR(255),
    ISOLDSCBOY SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIB_PUPIL_LIST (
    FORMCODE BIGINT = NULL)
RETURNS (
    SCBOYCODE BIGINT,
    FORMID BIGINT,
    FORMNUM INTEGER,
    BIRTHDAY DATE,
    FORMNAME VARCHAR(1000),
    FIRSTNAME VARCHAR(1000),
    NAME VARCHAR(1000),
    LASTNAME VARCHAR(1000),
    REGION VARCHAR(255),
    DISTRICT VARCHAR(255),
    TOWN VARCHAR(255),
    SETTLEMENT VARCHAR(255),
    STREET VARCHAR(255),
    HOUSE VARCHAR(10),
    CORP VARCHAR(10),
    LITER VARCHAR(10),
    FLAT VARCHAR(10),
    POST_INDEX VARCHAR(20),
    ADDRESS VARCHAR(2000),
    PHONE VARCHAR(100),
    ABONEMENTID BIGINT,
    ABONEMENTNO INTEGER,
    ISOLDSCBOY SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIB_SCHOOL_INFO RETURNS (
    NAME VARCHAR(500),
    NUMBER VARCHAR(20),
    SUBJECTION VARCHAR(500),
    HIGHER_ECHELON VARCHAR(500),
    TYPE_OU VARCHAR(500),
    CLASS_OU VARCHAR(500))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIB_SUBJECT_LIST (
    I$PLAN_ONLY SMALLINT = 0)
RETURNS (
    SUBJECTCODE BIGINT,
    SUBJECTNAME VARCHAR(4000),
    SUBJECTSHORTNAME VARCHAR(4000),
    SUBJECTORDER DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIB_TEACHER_GET (
    I$PERSONCODE BIGINT)
RETURNS (
    PERSONCODE BIGINT,
    FIRSTNAME VARCHAR(500),
    NAME VARCHAR(500),
    LASTNAME VARCHAR(500),
    BIRTHDAY DATE,
    EDUCATION VARCHAR(500),
    ABONEMENTID BIGINT,
    ABONEMENTNO INTEGER,
    REGION VARCHAR(255),
    DISTRICT VARCHAR(255),
    TOWN VARCHAR(255),
    SETTLEMENT VARCHAR(255),
    STREET VARCHAR(255),
    HOUSE VARCHAR(10),
    CORP VARCHAR(10),
    LITER VARCHAR(10),
    FLAT VARCHAR(10),
    POST_INDEX VARCHAR(20),
    ADDRESS VARCHAR(2000),
    PHONE VARCHAR(255),
    FULLNAME VARCHAR(255),
    "POSITION" VARCHAR(1000),
    POSITION_ID BIGINT,
    PASSPORT_NUMBER VARCHAR(50),
    PASSPORT_SER VARCHAR(50),
    PASSPORT_OVD VARCHAR(500),
    PASSPORT_DATE DATE)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIB_TEACHER_LIST RETURNS (
    PERSONCODE BIGINT,
    FIRSTNAME VARCHAR(1000),
    NAME VARCHAR(1000),
    LASTNAME VARCHAR(1000),
    BIRTHDAY DATE,
    REGION VARCHAR(255),
    DISTRICT VARCHAR(255),
    TOWN VARCHAR(255),
    SETTLEMENT VARCHAR(255),
    STREET VARCHAR(255),
    HOUSE VARCHAR(10),
    CORP VARCHAR(10),
    LITER VARCHAR(10),
    FLAT VARCHAR(10),
    POST_INDEX VARCHAR(20),
    ADDRESS VARCHAR(2000),
    PHONE VARCHAR(255),
    FULLNAME VARCHAR(255),
    "POSITION" VARCHAR(1000),
    POSITION_ID BIGINT,
    ABONEMENTID BIGINT,
    ABONEMENTNO INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIB_TEACHER_POSITION_LIST (
    I$PERSONCODE BIGINT)
RETURNS (
    "POSITION" VARCHAR(1000),
    POSITION_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LICENCE_INFO_GET RETURNS (
    STR VARCHAR(5000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIC_DATA_04_1 (
    I$SCHOOL BIGINT)
RETURNS (
    C1 INTEGER,
    C2 VARCHAR(1000),
    C3 INTEGER,
    C4 INTEGER,
    C5 FLOAT,
    C6 FLOAT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIC_DATA_04_2 (
    SCHOOL BIGINT)
RETURNS (
    C1 INTEGER,
    C2 VARCHAR(250),
    C3 VARCHAR(250),
    C4 INTEGER,
    C5 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIC_DATA_04_4 (
    SCHOOL BIGINT)
RETURNS (
    C1 INTEGER,
    C2 VARCHAR(4000),
    C3 VARCHAR(4000),
    C4 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIC_DATA_05 (
    I$OBJ_ID BIGINT,
    I$PROGTYPEID INTEGER)
RETURNS (
    PROGKINDID INTEGER,
    LICENSE VARCHAR(3),
    ORDERID INTEGER,
    ORDERID2 INTEGER,
    PROGNAME VARCHAR(500),
    PROGTYPENAME VARCHAR(500),
    PROGGOALNAME VARCHAR(500),
    PROGNORMTERM VARCHAR(20),
    PROGLEVELNAME VARCHAR(500),
    PROGKINDNAME VARCHAR(500),
    OVERALL FLOAT,
    OCHNO INTEGER,
    OCHNOZAOCHNO INTEGER,
    ZAOCHNO INTEGER,
    EXTERNAT INTEGER,
    SROKOSV VARCHAR(250))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIC_DATA_05_1 (
    I$OBJ_ID BIGINT)
RETURNS (
    INN VARCHAR(200),
    KPP VARCHAR(200),
    GRN VARCHAR(200),
    GRN1 VARCHAR(200),
    LIC VARCHAR(200),
    R_OU VARCHAR(200),
    PHONE VARCHAR(200),
    FAX VARCHAR(200),
    ALL_PUPILCOUNT_OLD VARCHAR(200),
    ALL_FORMCOUNT VARCHAR(200),
    OCHNO_PUPILCOUNT VARCHAR(200),
    PRJ_PUPLCOUNT VARCHAR(200),
    COMPUTER_CLASS VARCHAR(200),
    COMPUTERS_COUNT VARCHAR(200),
    INNKPP VARCHAR(200),
    EMAIL VARCHAR(200))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIC_DATA_05_2 (
    I$OBJ_ID BIGINT,
    TYPE_DOLJ INTEGER)
RETURNS (
    F VARCHAR(100),
    I VARCHAR(100),
    O VARCHAR(100),
    TEL VARCHAR(50),
    ADDRESS VARCHAR(500),
    EDUC VARCHAR(500),
    TELEPHON_DIREKTORA VARCHAR(500),
    TELEFON_BUHGALTERA VARCHAR(500),
    OBJ_ID BIGINT,
    FIO VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIC_DATA_05_3 (
    I$OBJ_ID BIGINT,
    I$PARAM_ID INTEGER,
    I$LISTVAL_ID INTEGER)
RETURNS (
    TEACHERS_COUNT INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIC_DATA_05_4 (
    I$OBJ_ID BIGINT,
    I$PARAM_ID INTEGER)
RETURNS (
    TEACHERS_COUNT INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIC_DATA_05_5 (
    I$OBJ_ID BIGINT)
RETURNS (
    TEACHERS_COUNT INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIC_DATA_05_6 (
    I$OBJ_ID BIGINT)
RETURNS (
    TEACHERS_COUNT INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIC_DATA_05_7 (
    I$OBJ_ID BIGINT)
RETURNS (
    TEACHERS_COUNT INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIC_DATA_06_1 (
    I$OBJ_ID BIGINT)
RETURNS (
    VAL INTEGER,
    VAL1 INTEGER,
    VAL2 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIC_DATA_07 (
    I$PROPERTYID BIGINT,
    I$RIGHTDOC BIGINT,
    I$BUILDINGCODE BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    NAME VARCHAR(400),
    "COUNT" INTEGER,
    SPACE FLOAT,
    TAG INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIC_DATA_07_1 (
    I$PROPERTYID BIGINT,
    I$RIGHTDOC BIGINT,
    I$BUILDINGCODE BIGINT,
    I$ID INTEGER)
RETURNS (
    NAME VARCHAR(400),
    "COUNT" INTEGER,
    SPACE FLOAT,
    TAG INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIC_DATA_07_2 (
    I$PROPERTYID BIGINT,
    I$RIGHTDOC BIGINT,
    I$BUILDINGCODE BIGINT,
    I$ID INTEGER,
    I$USER_ID BIGINT)
RETURNS (
    NAME VARCHAR(400),
    "COUNT" INTEGER,
    SPACE FLOAT,
    TAG INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIC_DATA_07_3 (
    I$PROPERTYID BIGINT,
    I$RIGHTDOC BIGINT,
    I$BUILDINGCODE BIGINT,
    I$ID INTEGER,
    I$USER_ID BIGINT)
RETURNS (
    NAME VARCHAR(400),
    "COUNT" INTEGER,
    SPACE FLOAT,
    TAG INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIC_DATA_07_4 (
    I$OBJ_ID BIGINT)
RETURNS (
    VAL INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIC_DATA_07_5 (
    I$SCHOOL BIGINT)
RETURNS (
    BUILDINGCODE BIGINT,
    PROPERTYNAME VARCHAR(1000),
    PROPERTYID BIGINT,
    S_RIGHT_DOC BIGINT,
    S_SOBSTVENNIK VARCHAR(1000),
    S_REKVIZIT__PRAVOMOCHN_K VARCHAR(1000),
    S_REKVIZIT__PRAVOMOCHN_DO VARCHAR(1000),
    S_REKVIZIT__DOKYUMENTOV_ VARCHAR(1000),
    S_REKVIZIT__GOSPOZHNADZR VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIC_DATA_08 (
    I$SCHOOL BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    NAME VARCHAR(50),
    SPACE FLOAT,
    FORMA_VLADENIJA VARCHAR(250),
    S_REKVIZIT__PRAVOMOCHN_K VARCHAR(500),
    "ORDER" INTEGER,
    "GROUP" INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIC_DATA_08_1 (
    I$ID INTEGER,
    I$SCHOOL BIGINT,
    I$RIGHTDOC BIGINT = 1,
    I$USER_ID BIGINT = 1)
RETURNS (
    NAME VARCHAR(50),
    SPACE FLOAT,
    FORMA_VLADENIJA VARCHAR(250),
    S_REKVIZIT__PRAVOMOCHN_K VARCHAR(500),
    "ORDER" INTEGER,
    "GROUP" INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIC_DATA_10 (
    I$SCHOOL BIGINT)
RETURNS (
    SKIPNUM INTEGER,
    NAME VARCHAR(110),
    "TYPE" VARCHAR(50),
    "COUNT" INTEGER,
    TAG INTEGER,
    ID INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIC_DATA_10_1 (
    I$SCHOOL BIGINT,
    I$SUBJID BIGINT,
    I$SUBJNAME VARCHAR(200),
    I$ID INTEGER)
RETURNS (
    SKIPNUM INTEGER,
    NAME VARCHAR(110),
    "TYPE" VARCHAR(50),
    "COUNT" INTEGER,
    TAG INTEGER,
    ID INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIC_DATA_APP12 (
    SCHOOL BIGINT)
RETURNS (
    C1 INTEGER,
    PRI_ORDER INTEGER,
    S_DOLZHNOST_ VARCHAR(1000),
    S_DOLZHNOST VARCHAR(1000),
    WORKPLACE VARCHAR(1000),
    FIO VARCHAR(1000),
    EDUCATION VARCHAR(1000),
    SUBJECTNAME VARCHAR(1000),
    EDUC_PLACE VARCHAR(1000),
    CATEGORY VARCHAR(1000),
    STEPEN VARCHAR(1000),
    FULLSTAGE INTEGER,
    STATE VARCHAR(1000),
    PERSONCODE BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIC_DATA_APP33 (
    SCHOOL BIGINT)
RETURNS (
    C1 INTEGER,
    C2 VARCHAR(1000),
    C3 VARCHAR(4000),
    C5 VARCHAR(1000),
    BUILDINGADDRESS VARCHAR(1000),
    C6 VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIC_DATA_APP6 (
    SCHOOL BIGINT)
RETURNS (
    L1A INTEGER,
    L1B DOUBLE PRECISION,
    L11A INTEGER,
    L11B DOUBLE PRECISION,
    L21 INTEGER,
    L22 INTEGER,
    L23 INTEGER,
    L24 INTEGER,
    L25 INTEGER,
    L26 INTEGER,
    L27 INTEGER,
    L28 INTEGER,
    L29 INTEGER,
    L210 INTEGER,
    L211 INTEGER,
    L212 INTEGER,
    L13A INTEGER,
    L14A INTEGER,
    L13B DOUBLE PRECISION,
    L14B DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIC_DATA_APP7 (
    SCHOOL BIGINT)
RETURNS (
    NAME VARCHAR(100),
    "COUNT" INTEGER,
    SPACE FLOAT,
    PROPERTYNAME VARCHAR(250),
    S_SOBSTVENNIK VARCHAR(250),
    BUILDINGCODE INTEGER,
    S_REKVIZIT__PRAVOMOCHN_K VARCHAR(250),
    TAG VARCHAR(10))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIC_DATA_APP7_2 (
    I$SCHOOL BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    NAME VARCHAR(300),
    "COUNT" INTEGER,
    SPACE FLOAT,
    PROPERTYNAME VARCHAR(250),
    S_SOBSTVENNIK VARCHAR(250),
    BUILDINGCODE BIGINT,
    S_REKVIZIT__PRAVOMOCHN_K VARCHAR(500),
    TAG VARCHAR(10))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIC_DATA_DOCOU (
    I$OBJ_ID BIGINT)
RETURNS (
    DOCSERIE VARCHAR(25),
    DOCNO VARCHAR(25),
    DOCDATE DATE,
    ORG VARCHAR(4000),
    GRN VARCHAR(25))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIC_DATA_GET_PROGS (
    SCHOOL BIGINT)
RETURNS (
    PROGKINDID INTEGER,
    ORDERID INTEGER,
    ORDERID2 INTEGER,
    SCHOOLPROGID BIGINT,
    PROGNAME VARCHAR(1000),
    PROGGOALNAME VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIC_DATA_LISTOU RETURNS (
    CODE BIGINT,
    SHORTNAME VARCHAR(250),
    S_NAIMENOVANIE VARCHAR(500),
    SHORTNAME_ROD VARCHAR(250))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIC_DATA_PPLCOUNTS (
    I$OBJ_ID BIGINT,
    I$TYPEID INTEGER,
    I$EDUCFORMID INTEGER = -1000)
RETURNS (
    PPLCOUNTS INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIFECYCLE_DOC_GET (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIFECYCLE_DOC_SET (
    I$OBJ_ID BIGINT,
    I$STATUS_ID BIGINT,
    I$TYPE_ID BIGINT,
    I$NAME VARCHAR(1000),
    I$ISSUER VARCHAR(1000),
    I$DATE_FROM DATE,
    I$DATE_TO DATE,
    I$DOC_DATE DATE,
    I$SERIE VARCHAR(100),
    I$NUMBER VARCHAR(100),
    I$OKUD VARCHAR(100),
    I$FILE_ID BIGINT,
    I$FILENAME1 VARCHAR(1000),
    I$FILENAME2 VARCHAR(1000))
RETURNS (
    LCD_ID BIGINT,
    DOC_ID BIGINT,
    BLOB_ID1 BIGINT,
    BLOB_ID2 BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LINK_COLUMNS_LIST (
    I$OBJ_ID BIGINT,
    I$PARENT_ID BIGINT,
    I$TYPE_ID BIGINT,
    I$LEVEL_ID BIGINT,
    I$IS_SELECT SMALLINT,
    I$TYPE_IDS VARCHAR(4000),
    I$USER_ID BIGINT)
RETURNS (
    OWNER_OBJ_ID BIGINT,
    OBJ_ID BIGINT,
    TYPE_ID BIGINT,
    OBJ_CAPTION VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LISTS_LIST (
    I$LANG_CODE VARCHAR(2) = 'RU')
RETURNS (
    LIST_ID BIGINT,
    RES_ID BIGINT,
    FOR_REPL_UP SMALLINT,
    FOR_REPL_DOWN SMALLINT,
    IS_DEL SMALLINT,
    LANG_CODE CHAR(2),
    LIST_CAPTION VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LISTVALS_EDIT (
    I$LIST_ID BIGINT,
    I$LANG_CODE VARCHAR(2) = 'RU')
RETURNS (
    LISTVAL_ID BIGINT,
    LIST_ID BIGINT,
    LANG_CODE VARCHAR(2),
    PARENT_ID BIGINT,
    RES_ID BIGINT,
    VAL VARCHAR(4000),
    VAL_LONG VARCHAR(4000),
    TAG VARCHAR(100),
    SORT_ORDER SMALLINT,
    COST FLOAT,
    IS_DEL SMALLINT,
    IS_EDIT BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LISTVALS_LIST (
    I$LIST_ID BIGINT,
    I$LANG_CODE VARCHAR(2) = 'RU')
RETURNS (
    LISTVAL_ID BIGINT,
    LIST_ID BIGINT,
    RES_ID BIGINT,
    LANG_CODE VARCHAR(2),
    PARENT_ID BIGINT,
    VAL VARCHAR(4000),
    VAL_LONG VARCHAR(4000),
    TAG VARCHAR(100),
    "FILTER" VARCHAR(255),
    SORT_ORDER SMALLINT,
    COST FLOAT,
    IS_DEL SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LISTVAL_ADD (
    I$LISTVAL_ID BIGINT,
    I$LIST_ID BIGINT,
    I$RES_ID BIGINT,
    I$LANG_CODE VARCHAR(2),
    I$PARENT_ID BIGINT,
    I$VAL VARCHAR(4000),
    I$VAL_LONG VARCHAR(4000),
    I$TAG VARCHAR(100),
    I$FILTER VARCHAR(255),
    I$COST FLOAT,
    I$IS_DEL SMALLINT,
    I$SORT_ORDER SMALLINT = null)
RETURNS (
    LISTVAL_ID BIGINT,
    SORT_ORDER SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LISTVAL_DEL (
    I$LISTVAL_ID BIGINT,
    I$IS_DEL SMALLINT = 1)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE LISTVAL_LEVEL (
    I$LISTVAL_ID BIGINT)
RETURNS (
    "LEVEL" SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LISTVAL_MOVE (
    I$LISTVAL_ID BIGINT,
    I$MOVE SMALLINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE LISTVAL_MOVE_ABS (
    I$LISTVAL_ID BIGINT,
    I$LISTVAL_MASTER BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE LISTVAL_TEXT (
    I$LISTVAL_ID BIGINT)
RETURNS (
    VAL VARCHAR(400),
    SORT_ORDER INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIST_ADD (
    I$LIST_ID BIGINT,
    I$RES_ID BIGINT,
    I$FOR_REPL_UP SMALLINT,
    I$FOR_REPL_DOWN SMALLINT,
    I$LANG_CODE CHAR(2),
    I$LIST_CAPTION VARCHAR(4000),
    I$IS_DEL SMALLINT = 1)
RETURNS (
    LIST_ID BIGINT,
    RES_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LIST_CLEAR (
    I$OBJ_ID BIGINT,
    I$LISTVAL_ID BIGINT)
RETURNS (
    X INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LLISTS_LIST (
    I$LEVEL_ID BIGINT,
    I$LANG_CODE VARCHAR(2) = 'RU')
RETURNS (
    LEVEL_ID BIGINT,
    LIST_ID BIGINT,
    LIST_CAPTION VARCHAR(4000),
    EDIT_TYPE SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LLIST_ADD (
    I$LEVEL_ID BIGINT,
    I$LIST_ID BIGINT,
    I$EDIT_TYPE SMALLINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE LOG_ADD (
    I$USER_ID BIGINT,
    I$LEVEL_ID BIGINT,
    I$PC_NAME VARCHAR(100))
RETURNS (
    LOG_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LOG_EXIT (
    I$LOG_ID BIGINT)
RETURNS (
    IS_EXIT INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LOG_GET (
    I$LOG_ID BIGINT)
RETURNS (
    USER_ID BIGINT,
    LEVEL_ID BIGINT,
    LANG_CODE CHAR(2),
    OBJ_ID BIGINT,
    USER_FIO VARCHAR(4000),
    TASK_ID BIGINT,
    MODULE_ID BIGINT,
    MODULE_CODE VARCHAR(100),
    MODULE_CAPTION VARCHAR(4000),
    TASK_CAPTION VARCHAR(4000),
    TASK_CAPTION_LONG VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LOG_LIST (
    I$USER_ID BIGINT,
    I$LANG_CODE CHAR(2))
RETURNS (
    DATE_START TIMESTAMP,
    DATE_EXIT TIMESTAMP,
    PC_NAME VARCHAR(100),
    LEVEL_CAPTION VARCHAR(1000),
    TASK_CAPTION VARCHAR(1000),
    MODULE_CAPTION VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LONGVACATION_ADD (
    OBJ_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE LONGVACATION_CHANGE (
    OBJ_ID BIGINT,
    PARAM_ID BIGINT,
    VAL VARCHAR(4000),
    IS_DEL SMALLINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE LONGVACATION_DELETE (
    OBJ_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE LPARAMS_LIST (
    I$LEVEL_ID BIGINT,
    I$TYPE_ID BIGINT,
    I$LANG_CODE VARCHAR(2) = 'RU',
    I$USER_ID BIGINT = 1)
RETURNS (
    LEVEL_ID BIGINT,
    PARAM_ID BIGINT,
    TAB_ID BIGINT,
    PARAM_CAPTION VARCHAR(4000),
    EDIT_TYPE SMALLINT,
    PARAM_TYPE SMALLINT,
    BKG_COLOR INTEGER,
    IS_TREEVIEW SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LPARAM_ADD (
    I$LEVEL_ID BIGINT,
    I$PARAM_ID BIGINT,
    I$EDIT_TYPE SMALLINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE LREPORTS_LIST (
    I$LEVEL_ID BIGINT,
    I$TYPE_ID BIGINT,
    I$LANG_CODE VARCHAR(2) = 'RU')
RETURNS (
    REPORT_ID BIGINT,
    REPORT_CAPTION VARCHAR(4000),
    IS_USED SMALLINT,
    GROUP_CAPTION VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LREPORT_ADD (
    I$LEVEL_ID BIGINT,
    I$REPORT_ID BIGINT,
    I$IS_USED SMALLINT,
    I$GROUP_NAME VARCHAR(100))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE LTYPES_LIST (
    I$LEVEL_ID BIGINT,
    I$LANG_CODE VARCHAR(2) = 'RU')
RETURNS (
    LEVEL_ID BIGINT,
    TYPE_ID BIGINT,
    COLOR INTEGER,
    RES_ID BIGINT,
    TYPE_CAPTION VARCHAR(4000),
    EDIT_TYPE SMALLINT,
    SHOW_DEL SMALLINT,
    BAR_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LTYPE_ADD (
    I$LEVEL_ID BIGINT,
    I$TYPE_ID BIGINT,
    I$EDIT_TYPE SMALLINT,
    I$SHOW_DEL SMALLINT,
    I$BAR_ID BIGINT = NULL)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE LUSERS_LIST (
    I$USER_ID BIGINT,
    I$LANG_CODE CHAR(2) = 'RU')
RETURNS (
    ID SMALLINT,
    PARENT_ID SMALLINT,
    IS_CHECKED SMALLINT,
    LEVEL_ID BIGINT,
    USER_ID BIGINT,
    ROOT_TYPE_ID BIGINT,
    PARENT_TYPE_ID BIGINT,
    ROOT_OBJ_ID BIGINT,
    ROOT_PARENT_ID BIGINT,
    CAPTION VARCHAR(4000),
    ROOT_OBJ_CAPTION VARCHAR(4000),
    ROOT_PARENT_CAPTION VARCHAR(4000),
    LEVEL_RULES VARCHAR(400))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LUSERS_ROOT (
    I$TYPE_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    CAPTION VARCHAR(4000),
    SORT_ORDER DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE LUSER_ADD (
    I$LEVEL_ID BIGINT,
    I$USER_ID BIGINT,
    I$IS_CHECKED SMALLINT = 1,
    I$ROOT_OBJ_ID BIGINT = NULL,
    I$ROOT_PARENT_ID BIGINT = NULL)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE MASK_MATCH (
    I$MASK BIGINT,
    I$VALUE INTEGER)
RETURNS (
    RESULT SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE MCAL_HANDLE_EDULOAD (
    I$OBJ_ID BIGINT,
    I$ZONE SMALLINT,
    I$USER_ID VARCHAR(40))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE MCAL_HANDLE_GIA (
    I$OBJ_ID BIGINT,
    I$ZONE SMALLINT,
    I$USER_ID VARCHAR(40))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE MCAL_LIST (
    I$DATE_FROM DATE,
    I$DATE_TO DATE,
    I$ZONE SMALLINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE MCAL_SCHEDULE_GET (
    I$DATE DATE NOT NULL,
    I$ZONE SMALLINT,
    I$FULL SMALLINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE MCAL_VIEW_CPLAN (
    I$OBJ_ID BIGINT,
    I$ZONE SMALLINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE MCAL_VIEW_EDULOAD (
    I$OBJ_ID BIGINT,
    I$ZONE SMALLINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE MCAL_VIEW_GIA (
    I$OBJ_ID BIGINT,
    I$ZONE SMALLINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE MCAL_VIEW_LIBRARY (
    I$OBJ_ID BIGINT,
    I$ZONE SMALLINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE MCAL_VIEW_VACATION (
    I$OBJ_ID BIGINT,
    I$ZONE SMALLINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE MIGRATE_INT128 RETURNS (
    INDEX_FIX VARCHAR(1000),
    SEQ SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE MODULES_ACTIVE_LIST (
    I$LANG_CODE CHAR(2))
RETURNS (
    MODULE_ID BIGINT,
    MODULE_CODE VARCHAR(100),
    MODULE_CAPTION VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE MODULES_LIST (
    I$LANG_CODE VARCHAR(2) = 'RU')
RETURNS (
    MODULE_ID BIGINT,
    MODULE_CODE VARCHAR(100),
    RES_ID BIGINT,
    IS_ACTIVE SMALLINT,
    IS_DEL SMALLINT,
    MODULE_CAPTION VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE MODULE_ACTIVATE (
    I$MODULE_ID BIGINT,
    I$IS_ACTIVE SMALLINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE MODULE_ADD (
    I$MODULE_ID BIGINT,
    I$RES_ID BIGINT,
    I$MODULE_CODE VARCHAR(100),
    I$LANG_CODE CHAR(2),
    I$MODULE_CAPTION VARCHAR(4000),
    I$IS_ACTIVE SMALLINT = 1,
    I$IS_DEL SMALLINT = 0)
RETURNS (
    MODULE_ID BIGINT,
    RES_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE MODULE_MOVE (
    I$MODULE_ID BIGINT,
    I$MOVE SMALLINT)
RETURNS (
    SORT_ORDER SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE MONITORING_BOOKS_GET_STAT (
    I$MONITORING_ID BIGINT,
    I$PARALLEL_LV BIGINT,
    I$STAT INTEGER,
    I$LEVEL_PUPIL_CNT INTEGER)
RETURNS (
    VAL INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE MONITORING_BOOKS_SUBSTAT (
    I$MONITORING_ID BIGINT,
    I$PARALLEL_LV BIGINT,
    I$PLAN_ID BIGINT,
    I$YEAR INTEGER)
RETURNS (
    SUBJECT_ID BIGINT,
    STUDENTS_COUNT INTEGER,
    BOOKS_COUNT INTEGER,
    MISS_COUNT INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE MONITORING_BOOKS_SUMMARY (
    I$SCHOOL_ID BIGINT,
    I$PARALLEL_LV BIGINT,
    I$OLD_BOOKS SMALLINT = 1,
    I$LIB2 SMALLINT = 0)
RETURNS (
    SUBJECT_ID BIGINT,
    PLAN_ID BIGINT,
    STAGE_ID BIGINT,
    LOAD_ID BIGINT,
    STUDENTS_COUNT INTEGER,
    BOOKS_COUNT INTEGER,
    MISS_COUNT INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE MONITORING_BOOK_ADD (
    I$MONITORING_ID BIGINT,
    I$PARALLEL_ID BIGINT,
    I$PLAN_ID BIGINT,
    I$SUBJECT_ID BIGINT,
    I$BOOK_CODE VARCHAR(50),
    I$STUDENTS_CNT INTEGER,
    I$BOOK_CNT INTEGER,
    I$BOOK_YEAR INTEGER)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE MONITORING_BUFFETS (
    I$SCHOOL_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    BUFFET_ID BIGINT,
    BUILDING_ID BIGINT,
    BUFFET_NAME VARCHAR(1000),
    BUFFET_PURPOSE VARCHAR(1000),
    BUILDING_NAME VARCHAR(1000),
    SEATS_PRO INTEGER,
    SEATS_FACT INTEGER,
    BUFFET_SQUARE FLOAT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE MONITORING_BUILDINGS (
    I$SCHOOL_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    BUILDING_ID BIGINT,
    NAME VARCHAR(1000),
    ADDRESS VARCHAR(2000),
    REGION VARCHAR(255),
    DISTRICT VARCHAR(255),
    TOWN VARCHAR(255),
    SETTLEMENT VARCHAR(255),
    STREET VARCHAR(255),
    HOUSE VARCHAR(10),
    LITER VARCHAR(10),
    CORP VARCHAR(10),
    FLAT VARCHAR(10),
    POST_INDEX VARCHAR(20),
    SPORTS_GROUND VARCHAR(10),
    STADIUM_ARTIFICAL VARCHAR(10),
    STADIUM_NATURAL VARCHAR(10),
    FENCE_ID BIGINT,
    FENCE VARCHAR(255),
    STUDY_ROOM_SQUARE FLOAT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE MONITORING_CONTINGENT_ADD
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE MONITORING_CONTINGENT_DO_ADD
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE MONITORING_CURRICULUMTABL10_SET (
    I$SCHOOL_ID BIGINT,
    I$STAGE_ID BIGINT,
    I$GUP_ID BIGINT,
    I$SUBJECT_ID BIGINT,
    I$VAL1 INTEGER,
    I$VAL2 INTEGER,
    I$VAL3 FLOAT)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE MONITORING_CURRICULUMTABL11_SET (
    I$SCHOOL_ID BIGINT,
    I$CURRICULUM_ID BIGINT,
    I$VAL1 BIGINT,
    I$VAL2 BIGINT,
    I$PROFILED_CNT BIGINT,
    I$VAL4 BIGINT,
    I$HOURS_ALL BIGINT,
    I$HOURS_INVAR BIGINT,
    I$HOURS_VAR BIGINT,
    I$VAL7 BIGINT,
    I$VAL8 BIGINT,
    I$STANDARD BIGINT,
    I$SUBJECTS BIGINT,
    I$VAL10 BIGINT)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE MONITORING_CURRICULUMTABL12_SET (
    I$SCHOOL_ID BIGINT,
    I$CURRICULUM_ID BIGINT,
    I$SUBJECTS_MISS VARCHAR(5000))
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE MONITORING_CURRICULUMTABL13_SET (
    I$SCHOOL_ID BIGINT,
    I$CURRICULUM_ID BIGINT,
    I$SUBJECTS_MISS VARCHAR(5000))
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE MONITORING_CURRICULUMTABL14_SET (
    I$SCHOOL_ID BIGINT,
    I$CURRICULUM_ID BIGINT,
    I$SUBJECTS_MISS VARCHAR(5000))
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE MONITORING_CURRICULUMTABL15_SET (
    I$SCHOOL_ID BIGINT,
    I$CURRICULUM_ID BIGINT,
    I$SUBJECT_ID BIGINT,
    I$STAGE_ID BIGINT,
    I$SUBJECT_LEARN_LEVEL_ID BIGINT,
    I$CURRICULUM_HOURS FLOAT,
    I$CHECK_CURRICULUM_HOURS FLOAT)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE MONITORING_CURRICULUMTABLE1_SET (
    I$SCHOOL_ID BIGINT,
    I$CURRICULUM_ID BIGINT,
    I$STD_ID BIGINT,
    VAL1 BIGINT,
    VAL2 BIGINT,
    VAL3 INTEGER,
    VAL4 INTEGER,
    VAL5 INTEGER,
    VAL6 INTEGER,
    VAL7 INTEGER,
    VAL8 INTEGER)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE MONITORING_CURRICULUMTABLE2_SET (
    I$SCHOOL_ID BIGINT,
    I$CURRICULUM_ID BIGINT,
    I$SUBJECTS_MISS VARCHAR(5000),
    I$SUBJECTS_MORE VARCHAR(5000),
    I$SUBJECTS_REPLACEMENT VARCHAR(5000))
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE MONITORING_CURRICULUMTABLE3_SET (
    I$SCHOOL_ID BIGINT,
    I$CURRICULUM_ID BIGINT,
    I$SUBJECT_ID BIGINT,
    I$STAGE_ID BIGINT,
    VAL1 INTEGER,
    VAL2 INTEGER)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE MONITORING_CURRICULUMTABLE4_SET (
    I$SCHOOL_ID BIGINT,
    I$CURRICULUM_ID BIGINT,
    I$STAGE_ID BIGINT,
    VAL1 BIGINT,
    VAL2 INTEGER)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE MONITORING_CURRICULUMTABLE5_SET (
    I$SCHOOL_ID BIGINT,
    I$CURRICULUM_ID BIGINT,
    I$VELEL_ID BIGINT,
    I$CHECK_CURRICULUM_ID BIGINT,
    I$VAL1 BIGINT,
    I$VAL2 BIGINT)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE MONITORING_CURRICULUMTABLE6_SET (
    I$SCHOOL_ID BIGINT,
    I$CURRICULUM_ID BIGINT,
    I$SUBJECT_ID BIGINT,
    I$STAGE_ID BIGINT,
    I$JOURNAL_NAME VARCHAR(1000))
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE MONITORING_CURRICULUMTABLE7_SET (
    I$SCHOOL_ID BIGINT,
    I$CURRICULUM_ID BIGINT,
    I$SUBJECT_ID BIGINT,
    I$STAGE_ID BIGINT,
    I$JOURNAL_NAME VARCHAR(1000),
    I$VAL1 INTEGER,
    I$VAL2 INTEGER)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE MONITORING_CURRICULUMTABLE8_SET (
    I$SCHOOL_ID BIGINT,
    I$STAGE_ID BIGINT,
    I$JOURNAL_NAME VARCHAR(1000),
    I$SUBJECT_ID BIGINT,
    I$VAL1 BIGINT,
    I$VAL2 INTEGER,
    I$VAL3 INTEGER,
    I$VAL4 INTEGER,
    I$VAL5 FLOAT,
    I$VAL6 FLOAT,
    I$VAL7 BIGINT)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE MONITORING_CURRICULUMTABLE9_SET (
    I$SCHOOL_ID BIGINT,
    I$STAGE_ID BIGINT,
    I$JOURNAL_NAME VARCHAR(1000),
    I$SUBJECT_ID BIGINT,
    I$VAL1 INTEGER,
    I$VAL2 FLOAT)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE MONITORING_DATA_REPORT (
    I$OBJ_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    COL_NUM SMALLINT,
    VAL VARCHAR(4000),
    DATA VARCHAR(4000),
    ORIENTATION VARCHAR(20))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE MONITORING_DATA_REPORT2 (
    I$OBJ_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    COL_NUM SMALLINT,
    VAL VARCHAR(4000),
    DATA VARCHAR(4000),
    ORIENTATION VARCHAR(20))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE MONITORING_DO_FUNC (
    I$SCHOOL_ID BIGINT,
    I$PARAM_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    VAL VARCHAR(4000),
    SORT_ORDER DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE MONITORING_DO_FUNC2 (
    I$SCHOOL_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$PARAM_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    VAL VARCHAR(4000),
    SORT_ORDER DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE MONITORING_DO_FUNC3 (
    I$SCHOOL_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    VAL VARCHAR(4000),
    SORT_ORDER DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE MONITORING_DO_FUNC4 (
    I$MONITORING_ID BIGINT)
RETURNS (
    VAL VARCHAR(4000),
    SORT_ORDER DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE MONITORING_DO_FUNC5 (
    I$MONITORING_ID BIGINT)
RETURNS (
    VAL VARCHAR(4000),
    SORT_ORDER DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE MONITORING_DO_FUNC6 (
    I$MONITORING_ID BIGINT)
RETURNS (
    VAL VARCHAR(4000),
    SORT_ORDER DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE MONITORING_DO_FUNC7 (
    I$MONITORING_ID BIGINT)
RETURNS (
    VAL VARCHAR(4000),
    SORT_ORDER DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE MONITORING_DO_FUNC8 (
    I$MONITORING_ID BIGINT)
RETURNS (
    VAL VARCHAR(4000),
    SORT_ORDER DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE MONITORING_DO_FUNC_BOOKS (
    I$MONITORING_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE MONITORING_EXPORT (
    I$SCHOOL_ID BIGINT = null,
    I$USER_ID BIGINT = null)
RETURNS (
    TAG_NAME VARCHAR(255),
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE MONITORING_EXPORT_INFOEQUIPMENT (
    I$SCHOOL_ID BIGINT = null,
    I$USER_ID BIGINT = null)
RETURNS (
    TAG_NAME VARCHAR(255),
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE MONITORING_EXPORT_MONITORING (
    I$SCHOOL_ID BIGINT = null,
    I$USER_ID BIGINT = null)
RETURNS (
    TAG_NAME VARCHAR(255),
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE MONITORING_GYMS (
    I$SCHOOL_ID BIGINT)
RETURNS (
    GYM_ID BIGINT,
    BUILDING_ID BIGINT,
    GYM_NAME VARCHAR(1000),
    BUILDING_NAME VARCHAR(1000),
    GYM_SQUARE FLOAT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE MONITORING_PLAN_SUBJECTS (
    I$PLAN_ID BIGINT,
    I$STAGE_ID BIGINT,
    I$STAGE_LV BIGINT)
RETURNS (
    COMPONENT_ID BIGINT,
    COMPONENT_TYPE BIGINT,
    SUBJECT_ID BIGINT,
    SUBJECT_NAME VARCHAR(4000),
    IS_ELECTIVE SMALLINT,
    LOAD_ID BIGINT,
    IS_COLLEGE SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE MONITORING_PLAN_UPD (
    I$PLAN_ID BIGINT)
RETURNS (
    VAL VARCHAR(5100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE MONITORING_PUPILS_REPORT (
    I$OBJ_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    COL_NUM SMALLINT,
    VAL VARCHAR(4000),
    DATA VARCHAR(4000),
    ORIENTATION VARCHAR(20))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE MONITORING_SCHOOL_LIST (
    I$REGION_ID BIGINT)
RETURNS (
    SCHOOL_ID BIGINT,
    SCHOOL_CAPTION VARCHAR(4000),
    SCHOOL_NUMBER INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE MONITORING_STAFF_REPORT (
    I$OBJ_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    COL_NUM SMALLINT,
    VAL VARCHAR(4000),
    DATA VARCHAR(4000),
    ORIENTATION VARCHAR(20))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE MONITORING_TEACHER_HIDE_DOPS (
    EMPLOYEE_ID BIGINT,
    TABLE_NO SMALLINT)
RETURNS (
    DO_HIDE SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE MONITORING_WORKLOAD_ADD
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE MONITORING_YEAR_REPORT (
    I$OBJ_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    COL_NUM SMALLINT,
    VAL VARCHAR(4000),
    DATA VARCHAR(4000),
    ORIENTATION VARCHAR(20))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE MOVEMENT_VERIFY (
    I$OBJ_ID BIGINT,
    I$USER_ID BIGINT,
    FLGERR1 SMALLINT,
    FLGERR2 SMALLINT,
    FLGERR3 SMALLINT,
    FLGERR4 SMALLINT,
    FLGERR5 SMALLINT,
    FLGERR6 SMALLINT,
    FLGERR7 SMALLINT,
    FLGERR8 SMALLINT,
    FLGERR9 SMALLINT,
    FLGERR10 SMALLINT,
    FLGERR11 SMALLINT,
    FLGERR12 SMALLINT,
    FLGERR13 SMALLINT,
    FLGERR14 SMALLINT,
    FLGERR15 SMALLINT,
    FLGERR16 SMALLINT,
    FLGERR17 SMALLINT)
RETURNS (
    LINK_ID BIGINT,
    SCHOOLAR_ID BIGINT,
    LOCATION VARCHAR(1000),
    PUPIL VARCHAR(1000),
    ERROR_TEXT VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE MREPORT_512_AUTO (
    I$REPORT_ID BIGINT,
    I$ROW_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE MREPORT_512_DTL (
    I$REPORT_ID BIGINT,
    I$ROW_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE MREPORT_512_GET (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE MREPORT_SET_VAL (
    I$OBJ_ID BIGINT,
    I$FIELD_ID BIGINT,
    I$DETAIL_ID BIGINT,
    I$DATE DATE,
    I$VALUE FLOAT,
    I$INDEX SMALLINT,
    I$USER_ID VARCHAR(40))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE MTR_DISTRICT_LIST (
    I$REGION_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    OBJ_CAPTION VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE MTR_FILLING_DATA_REGION (
    I$REGION_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    COL_NUM SMALLINT,
    VAL VARCHAR(4000),
    DATA VARCHAR(4000),
    ORIENTATION VARCHAR(20))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE MTR_FILLING_DATA_REPORT (
    I$REGION_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    COL_NUM SMALLINT,
    VAL VARCHAR(4000),
    DATA VARCHAR(4000),
    ORIENTATION VARCHAR(20))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE MTR_REPORT_ROOMS (
    I$OU_ID BIGINT)
RETURNS (
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE MTR_REPORT_ROOM_EQ (
    I$OU_ID BIGINT)
RETURNS (
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE MTR_SCHOOL_LIST (
    I$DISTRICT_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    OBJ_CAPTION VARCHAR(4000),
    SCHOOL_NUMBER INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE NEW_SPO_CURRICULUM_ADD_LOADS (
    I$DISCIPLINE_ID INTEGER,
    I$PLAN_SUBJECT_ID BIGINT NOT NULL,
    I$SUBJECT_ID SMALLINT NOT NULL,
    I$CURRICULUM_ID BIGINT NOT NULL,
    I$CURR_TEMPLATE_ID BIGINT NOT NULL)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE NEW_SPO_PLAN_SUBJECT (
    I$OBJ_ID BIGINT NOT NULL,
    I$TYPE_ID BIGINT NOT NULL,
    I$SUBJ_ID BIGINT,
    I$FIELD_ID BIGINT,
    I$INDEX BIGINT NOT NULL,
    I$PARENT_ID BIGINT,
    I$LEVEL BIGINT NOT NULL,
    I$PARENT0 BIGINT,
    I$PARENT1 BIGINT,
    I$PARENT2 BIGINT,
    I$ROW_CODE VARCHAR(40))
RETURNS (
    SUBJECT_OBJ_ID BIGINT,
    IND BIGINT,
    PARENT0 BIGINT,
    PARENT1 BIGINT,
    PARENT2 BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OAIS_COLLECT_PARENTS RETURNS (
    SURNAME VARCHAR(1000),
    NAME VARCHAR(1000),
    SECONDNAME VARCHAR(1000),
    IDN VARCHAR(1000),
    OBJ_ID BIGINT,
    JUDGE_PARAM_ID BIGINT,
    DATE_PARAM_ID BIGINT,
    NUM_PARAM_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OAIS_COLLECT_PERSONS RETURNS (
    SURNAME VARCHAR(1000),
    NAME VARCHAR(1000),
    SECONDNAME VARCHAR(1000),
    OBJ_ID BIGINT,
    PARAM_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OBFUSCATE_ALL (
    HASH_METHOD SMALLINT = 0)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE OBJECTS_EXPORT_LIST (
    I$ROOT_ID BIGINT = null,
    I$OBJ_INDEX BIGINT = 0,
    I$LEVEL_ID BIGINT = null)
RETURNS (
    OBJ_INDEX BIGINT,
    PARENT_INDEX BIGINT,
    OBJ_ID BIGINT,
    TYPE_ID BIGINT,
    PARENT_ID BIGINT,
    SORT_ORDER DOUBLE PRECISION,
    CAPTION VARCHAR(4000),
    COLOR INTEGER,
    TYPE_ORDER SMALLINT,
    LINK_ID BIGINT,
    CHECKED SMALLINT,
    DATE_DEL TIMESTAMP)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OBJECTS_LIST (
    I$ROOT_ID BIGINT,
    I$LEVEL_ID BIGINT,
    I$USER_ID BIGINT,
    I$EXPORT_VIEW SMALLINT = 0,
    I$OBJ_ID BIGINT = null,
    I$FROM_IP VARCHAR(200) = null)
RETURNS (
    OBJ_ID BIGINT,
    TYPE_ID BIGINT,
    PARENT_ID BIGINT,
    PARENT_TYPE_ID BIGINT,
    USER_ID BIGINT,
    DATE_INS TIMESTAMP,
    DATE_DEL TIMESTAMP,
    SORT_ORDER DOUBLE PRECISION,
    CAPTION VARCHAR(4000),
    HAS_CHILD INTEGER,
    COLOR INTEGER,
    TAB_ID BIGINT,
    TYPE_ORDER SMALLINT,
    LINK_ID BIGINT,
    TAG VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OBJECTS_LIST_RET (
    I$ROOT_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$LEVEL_ID BIGINT,
    I$EXPORT_VIEW SMALLINT = 0)
RETURNS (
    OBJ_ID BIGINT,
    TYPE_ID BIGINT,
    PARENT_ID BIGINT,
    PARENT_TYPE_ID BIGINT,
    USER_ID BIGINT,
    DATE_INS TIMESTAMP,
    DATE_DEL TIMESTAMP,
    SORT_ORDER DOUBLE PRECISION,
    CAPTION VARCHAR(4000),
    HAS_CHILD INTEGER,
    COLOR INTEGER,
    TAB_ID BIGINT,
    TYPE_ORDER SMALLINT,
    LINK_ID BIGINT,
    TAG VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OBJECTS_LIST_RET_GIA RETURNS (
    OBJ_ID BIGINT,
    TYPE_ID BIGINT,
    PARENT_ID BIGINT,
    PARENT_TYPE_ID BIGINT,
    USER_ID BIGINT,
    DATE_INS TIMESTAMP,
    DATE_DEL TIMESTAMP,
    SORT_ORDER DOUBLE PRECISION,
    CAPTION VARCHAR(4000),
    HAS_CHILD INTEGER,
    COLOR INTEGER,
    TAB_ID BIGINT,
    TYPE_ORDER SMALLINT,
    LINK_ID BIGINT,
    TAG VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OBJECT_ADD (
    I$PARENT_ID BIGINT,
    I$TYPE_ID BIGINT,
    I$REASON_ID BIGINT = NULL,
    I$LISTVAL_ID BIGINT = NULL,
    I$USER_ID BIGINT = NULL,
    I$COST FLOAT = 0,
    I$LEVEL_ID BIGINT = NULL,
    I$DATE_INS TIMESTAMP = CURRENT_TIMESTAMP,
    I$EXT_TYPE_ID BIGINT = NULL)
RETURNS (
    OBJ_ID BIGINT,
    TYPE_ID BIGINT,
    PARENT_ID BIGINT,
    PARENT_TYPE_ID BIGINT,
    USER_ID BIGINT,
    DATE_INS TIMESTAMP,
    DATE_DEL TIMESTAMP,
    SORT_ORDER DOUBLE PRECISION,
    CAPTION VARCHAR(4000),
    HAS_CHILD INTEGER,
    COLOR INTEGER,
    TAB_ID BIGINT,
    TYPE_ORDER SMALLINT,
    LINK_ID BIGINT,
    EXT_OBJ_TYPE_ID BIGINT,
    EXT_OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OBJECT_ADD_400 (
    I$PARENT_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$USER_ID BIGINT,
    I$OU_TYPE VARCHAR(10))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE OBJECT_ADD_BY_CAPTION (
    I$PARENT_ID BIGINT,
    I$TYPE_ID BIGINT,
    I$OBJ_CAPTION VARCHAR(500))
RETURNS (
    OBJ_ID BIGINT,
    NEW_OBJ_INFO VARCHAR(500))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OBJECT_ADD_LINK (
    I$PARENT_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$TYPE_ID BIGINT,
    I$REASON_ID BIGINT = null,
    I$LISTVAL_ID BIGINT = null,
    I$USER_ID BIGINT = null,
    I$COST FLOAT = 0,
    I$LEVEL_ID BIGINT = null,
    I$EXT_TYPE_ID BIGINT = null)
RETURNS (
    OBJ_ID BIGINT,
    TYPE_ID BIGINT,
    PARENT_ID BIGINT,
    USER_ID BIGINT,
    DATE_INS TIMESTAMP,
    DATE_DEL TIMESTAMP,
    SORT_ORDER DOUBLE PRECISION,
    CAPTION VARCHAR(4000),
    HAS_CHILD INTEGER,
    COLOR INTEGER,
    TAB_ID BIGINT,
    TYPE_ORDER SMALLINT,
    LINK_ID BIGINT,
    EXT_OBJ_TYPE_ID BIGINT,
    EXT_OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OBJECT_ADD_WITH_PARAM (
    I$PARENT_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$TYPE_ID BIGINT,
    I$PARAM_ID BIGINT,
    I$PARAM_VAL VARCHAR(4000))
RETURNS (
    PARENT_ID BIGINT,
    OBJ_ID BIGINT,
    COLOR INTEGER,
    NEW_OBJ_INFO VARCHAR(500))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OBJECT_CAN_LINK (
    I$OBJ_ID BIGINT,
    I$PARENT_ID BIGINT)
RETURNS (
    STATUS SMALLINT,
    MSG VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OBJECT_CAPTION_GET (
    I$OBJ_ID BIGINT,
    I$LEVEL_ID BIGINT = NULL,
    I$SEPARATOR VARCHAR(10) = NULL,
    I$USER_ID BIGINT = 1)
RETURNS (
    CAPTION VARCHAR(4000),
    SCAPTION VARCHAR(400),
    SORT_ORDER DOUBLE PRECISION,
    COLOR INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OBJECT_CHILDREN_GET_DEEP (
    I$OBJ_ID BIGINT,
    I$TYPE_ID BIGINT,
    I$DEEP SMALLINT = 2)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OBJECT_CHILDREN_LIST (
    I$TYPE_ID BIGINT,
    I$LEVEL_ID BIGINT)
RETURNS (
    TYPE_ID BIGINT,
    IS_ADD SMALLINT,
    IS_COPY SMALLINT,
    IS_CUT SMALLINT,
    IS_LINK SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OBJECT_COPY (
    I$PARENT_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$TYPE_ID BIGINT = null,
    I$REASON_ID BIGINT = null,
    I$LISTVAL_ID BIGINT = null,
    I$USER_ID BIGINT = null,
    I$COST FLOAT = 0,
    I$LEVEL_ID BIGINT = null)
RETURNS (
    OBJ_ID BIGINT,
    TYPE_ID BIGINT,
    PARENT_ID BIGINT,
    PARENT_TYPE_ID BIGINT,
    USER_ID BIGINT,
    DATE_INS TIMESTAMP,
    DATE_DEL TIMESTAMP,
    SORT_ORDER DOUBLE PRECISION,
    CAPTION VARCHAR(4000),
    HAS_CHILD INTEGER,
    COLOR INTEGER,
    TAB_ID BIGINT,
    TYPE_ORDER SMALLINT,
    LINK_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OBJECT_CREATE_AUTO_PARAMS (
    I$OBJ_ID BIGINT,
    I$TYPE_ID BIGINT,
    I$PARENT_ID BIGINT,
    I$PARENT_TYPE_ID BIGINT,
    I$USER_ID BIGINT,
    I$DATE_INS TIMESTAMP)
RETURNS (
    HAS_CHILD INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OBJECT_DEL (
    I$PARENT_ID BIGINT,
    I$OBJ_ID BIGINT)
RETURNS (
    DEL_COUNT INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OBJECT_FRAMES_LIST (
    I$TYPE_ID BIGINT,
    I$PARENT_TYPE_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$PARENT_ID BIGINT,
    I$LEVEL_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    PARENT_TYPE_ID BIGINT,
    TYPE_ID BIGINT,
    CAPTION VARCHAR(200),
    FRAME_CLASS VARCHAR(100),
    IS_DEL SMALLINT,
    TAB_ID INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OBJECT_GET_BY_PARAMS (
    I$PARENT_ID BIGINT,
    I$TYPE_ID BIGINT,
    I$PARAM_ID0 BIGINT,
    I$VAL0 VARCHAR(500) = '',
    I$PARAM_ID1 BIGINT = NULL,
    I$VAL1 VARCHAR(500) = '',
    I$PARAM_ID2 BIGINT = NULL,
    I$VAL2 VARCHAR(500) = '',
    I$PARAM_ID3 BIGINT = NULL,
    I$VAL3 VARCHAR(500) = '')
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OBJECT_GRIDS_LIST (
    I$USER_ID BIGINT,
    I$TYPE_ID BIGINT,
    I$LEVEL_ID BIGINT,
    I$TAB_ID BIGINT,
    I$OBJ_ID BIGINT = NULL,
    I$PARENT_ID BIGINT = NULL)
RETURNS (
    OBJ_ID BIGINT,
    TYPE_ID BIGINT,
    TYPE_CAPTION VARCHAR(4000),
    IS_ADD SMALLINT,
    IS_COPY SMALLINT,
    IS_CUT SMALLINT,
    IS_LINK SMALLINT,
    IS_FROM_LIST SMALLINT,
    RUN_SQL VARCHAR(1000),
    DO_FUNC SMALLINT,
    IS_AUTO_CREATE SMALLINT,
    EDIT_TYPE SMALLINT,
    IS_SELECT SMALLINT,
    SORT_ORDER SMALLINT,
    IS_TAB_VERTICAL_ALIGNMENT SMALLINT,
    SHOW_ALL_FIELDS SMALLINT,
    RUN_FUNCTION SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OBJECT_GRID_PARAMS (
    I$USER_ID BIGINT,
    I$TYPE_ID BIGINT,
    I$LEVEL_ID BIGINT,
    I$IS_SELECT SMALLINT = 0,
    I$IS_WRITABLE SMALLINT = 0,
    I$PARENT_ID BIGINT = null,
    I$IS_IMPORT SMALLINT = 0)
RETURNS (
    PARAM_ID BIGINT,
    PARAM_TYPE SMALLINT,
    LIST_ID BIGINT,
    IS_SORT SMALLINT,
    IS_REQUIRED SMALLINT,
    IS_HISTORY SMALLINT,
    PARAM_CAPTION VARCHAR(4000),
    SIZE_CAPTION VARCHAR(1000),
    HINT_CAPTION VARCHAR(4000),
    DO_FUNC BIGINT,
    EDIT_MASK VARCHAR(200),
    RUN_SQL VARCHAR(1000),
    IS_AUTO_CREATE SMALLINT,
    TAG VARCHAR(100),
    EDIT_TYPE SMALLINT,
    BKG_COLOR INTEGER,
    COLOR INTEGER,
    LIST_EDIT_TYPE SMALLINT,
    DO_CHECK SMALLINT,
    DO_CHECK_EVENT SMALLINT,
    BEGIN_GROUP SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OBJECT_GRID_VALS (
    I$PARENT_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$TYPE_ID BIGINT,
    I$LEVEL_ID BIGINT,
    I$IS_SELECT SMALLINT = 0,
    I$IS_WRITABLE SMALLINT = 0,
    I$USER_ID BIGINT = null,
    I$IS_EXPORT SMALLINT = 0)
RETURNS (
    LINK_ID BIGINT,
    OBJ_ID BIGINT,
    PARAM_ID BIGINT,
    PARAM_TYPE SMALLINT,
    LIST_ID BIGINT,
    VAL VARCHAR(4000),
    VAL2 VARCHAR(4000),
    COST FLOAT,
    BLOB_ID BIGINT,
    REGION VARCHAR(255),
    DISTRICT VARCHAR(255),
    TOWN VARCHAR(255),
    SETTLEMENT VARCHAR(255),
    STREET VARCHAR(255),
    HOUSE VARCHAR(10),
    CORP VARCHAR(10),
    FLAT VARCHAR(10),
    POST_INDEX VARCHAR(20),
    OCATD VARCHAR(11),
    LISTVAL_ID BIGINT,
    IS_EXISTS SMALLINT,
    SORT_ORDER DOUBLE PRECISION,
    COLOR INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OBJECT_GROUP_DEL (
    I$OBJ_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OBJECT_IS_PARENT (
    I$PARENT_OBJ_ID BIGINT,
    I$CHILD_OBJ_ID BIGINT)
RETURNS (
    YES_NO SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OBJECT_LISTVALS_LIST (
    I$LIST_ID BIGINT,
    I$USER_ID BIGINT,
    I$PARAM_ID BIGINT = NULL,
    I$LANG_CODE VARCHAR(2) = NULL)
RETURNS (
    LISTVAL_ID BIGINT,
    PARENT_ID BIGINT,
    VAL VARCHAR(4000),
    VAL_LONG VARCHAR(4000),
    TAG VARCHAR(100),
    "FILTER" VARCHAR(255))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OBJECT_LISTVALS_LIST_ROOT (
    I$LIST_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    LISTVAL_ID BIGINT,
    PARENT_ID BIGINT,
    VAL VARCHAR(4000),
    VAL_LONG VARCHAR(4000),
    TAG VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OBJECT_LISTVALS_LIST_ROOTS (
    I$LIST_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    LISTVAL_ID BIGINT,
    PARENT_ID BIGINT,
    VAL VARCHAR(4000),
    VAL_LONG VARCHAR(4000),
    TAG VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OBJECT_LISTVALS_UPPROFILE (
    I$LIST_ID BIGINT,
    I$USER_ID BIGINT,
    I$PARAM_ID BIGINT,
    I$OBJ_ID BIGINT)
RETURNS (
    LISTVAL_ID BIGINT,
    PARENT_ID BIGINT,
    VAL VARCHAR(4000),
    VAL_LONG VARCHAR(4000),
    TAG VARCHAR(100),
    "FILTER" VARCHAR(255))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OBJECT_MOVE (
    I$OLD_PARENT_ID BIGINT,
    I$PARENT_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$TYPE_ID BIGINT,
    I$REASON_ID BIGINT = NULL,
    I$LISTVAL_ID BIGINT = NULL,
    I$USER_ID BIGINT = NULL,
    I$COST FLOAT = 0,
    I$LEVEL_ID BIGINT = NULL)
RETURNS (
    OBJ_ID BIGINT,
    TYPE_ID BIGINT,
    PARENT_ID BIGINT,
    PARENT_TYPE_ID BIGINT,
    USER_ID BIGINT,
    DATE_INS TIMESTAMP,
    DATE_DEL TIMESTAMP,
    SORT_ORDER DOUBLE PRECISION,
    CAPTION VARCHAR(4000),
    HAS_CHILD INTEGER,
    COLOR INTEGER,
    TAB_ID BIGINT,
    TYPE_ORDER SMALLINT,
    LINK_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OBJECT_PARAMS (
    I$OBJ_ID BIGINT,
    I$USER_ID BIGINT = 1)
RETURNS (
    PARAM_ID BIGINT,
    PARAM_TYPE SMALLINT,
    PARAM_VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OBJECT_PARAMS_LIST (
    I$USER_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$LEVEL_ID BIGINT,
    I$TAB_ID BIGINT = NULL,
    I$TYPE_ID BIGINT = NULL,
    I$EXPORT_MODE SMALLINT = 0,
    I$PARENT_ID BIGINT = NULL,
    I$FROM_IP VARCHAR(200) = NULL)
RETURNS (
    OBJ_ID BIGINT,
    PARAM_ID BIGINT,
    PARAM_TYPE SMALLINT,
    LIST_ID BIGINT,
    LISTVAL_ID BIGINT,
    AUTO_LISTVAL_ID BIGINT,
    BLOB_ID BIGINT,
    IS_REQUIRED SMALLINT,
    IS_HISTORY SMALLINT,
    IS_TREEVIEW SMALLINT,
    PARAM_CAPTION VARCHAR(4000),
    HINT_CAPTION VARCHAR(4000),
    DO_FUNC BIGINT,
    EDIT_MASK VARCHAR(200),
    RUN_SQL VARCHAR(1000),
    IS_AUTO_CREATE SMALLINT,
    TAG VARCHAR(100),
    EDIT_TYPE SMALLINT,
    VAL VARCHAR(4000),
    COST FLOAT,
    REGION VARCHAR(255),
    DISTRICT VARCHAR(255),
    TOWN VARCHAR(255),
    SETTLEMENT VARCHAR(255),
    STREET VARCHAR(255),
    HOUSE VARCHAR(10),
    LITER VARCHAR(10),
    CORP VARCHAR(10),
    FLAT VARCHAR(10),
    POST_INDEX VARCHAR(20),
    OCATD VARCHAR(11),
    HOUSEGUID VARCHAR(36),
    STREETGUID VARCHAR(36),
    BKG_COLOR INTEGER,
    COLOR INTEGER,
    IS_EXISTS SMALLINT,
    LIST_EDIT_TYPE SMALLINT,
    TAB_ID BIGINT,
    DO_CHECK SMALLINT,
    DO_CHECK_EVENT SMALLINT,
    BEGIN_GROUP SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OBJECT_PARAM_USER_GET (
    I$OBJ_ID BIGINT,
    I$PARAM_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    FIO VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OBJECT_PARENTS_GET (
    I$OBJ_ID BIGINT,
    I$PARENT_TYPE_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OBJECT_RESTORE_LAST_LINK (
    I$PARENT_ID BIGINT,
    I$OBJ_ID BIGINT)
RETURNS (
    LINK_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OBJECT_ROOT_OBJECT (
    I$TYPE_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    CAPTION VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OBJECT_STATE_LIST (
    I$STATE_MASK VARCHAR(100) = NULL)
RETURNS (
    LISTVAL_ID BIGINT,
    LIST_ID BIGINT,
    PARENT_ID BIGINT,
    VAL VARCHAR(4000),
    VAL_LONG VARCHAR(4000),
    TAG VARCHAR(100),
    "FILTER" VARCHAR(255),
    SORT_ORDER SMALLINT,
    COST FLOAT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OBJECT_TABS_LIST (
    I$TYPE_ID BIGINT,
    I$LEVEL_ID BIGINT,
    I$USER_ID BIGINT,
    I$PARENT_TYPE_ID BIGINT = null)
RETURNS (
    TAB_ID BIGINT,
    TAB_NUM SMALLINT,
    TAB_CAPTION VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OBJECT_TABS_LIST_RET (
    I$PARENT_TYPE_ID BIGINT,
    I$TYPE_ID BIGINT,
    I$LEVEL_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    TAB_ID BIGINT,
    TAB_NUM SMALLINT,
    RES_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OBJECT_TAB_GET (
    I$LINK_ID BIGINT)
RETURNS (
    LINK_ID BIGINT,
    PARENT_ID BIGINT,
    OBJ_ID BIGINT,
    TAB_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OBJECT_TREE (
    I$OBJ_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    TYPE_ID BIGINT,
    IS_DEL SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OBJECT_TREE_COPY (
    I$PARENT_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$TYPE_ID BIGINT,
    I$LEVEL SMALLINT = 1)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE OBJECT_TYPES_LIST (
    I$TYPE_ID BIGINT,
    I$LEVEL_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    TYPE_ID BIGINT,
    TYPE_CAPTION VARCHAR(4000),
    DO_FUNC SMALLINT,
    IS_FROM_LIST SMALLINT,
    RUN_SQL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OBJECT_VR_LINKS (
    I$LEVEL_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$TYPE_ID BIGINT)
RETURNS (
    LINK_ID BIGINT,
    OBJ_ID BIGINT,
    OBJ_TYPE_ID BIGINT,
    PARENT_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OD_SUBJECTS_LIST (
    I$OBJ_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    OBJ_CAPTION VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OD_SUBJECT_EXT (
    I$PERSON_ID BIGINT,
    I$SUBJECT_ID BIGINT,
    I$IS_CY SMALLINT,
    I$YEAR_ID BIGINT,
    I$DATE1 DATE,
    I$DATE2 DATE)
RETURNS (
    IS_EXT SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OK009_FILTRED_LIST (
    I$OBJ_ID BIGINT,
    I$LIST_ID BIGINT,
    I$USER_ID BIGINT = NULL)
RETURNS (
    LISTVAL_ID BIGINT,
    PARENT_ID BIGINT,
    VAL VARCHAR(4000),
    VAL_LONG VARCHAR(4000),
    TAG VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OLYMP_EVENT_GET (
    I$ROOT_ID BIGINT)
RETURNS (
    EVENT_ID BIGINT,
    EVENT_CAPTION VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OLYMP_EVENT_PUPIL_GET (
    EVENT_ID BIGINT,
    PUPIL_ID BIGINT)
RETURNS (
    VAL INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OLYMP_PUPIL_GET (
    I$GRADE_ID BIGINT)
RETURNS (
    STAGE_ID BIGINT,
    STAGE_CAPTION VARCHAR(100),
    GRADE_ID BIGINT,
    GRADE_CAPTION VARCHAR(100),
    CLASS_CAPTION VARCHAR(5),
    NPP SMALLINT,
    PUPIL_ID BIGINT,
    PUPIL_CAPTION VARCHAR(100),
    SECOND_NAME VARCHAR(100),
    FIRST_NAME VARCHAR(100),
    PATRONYMIC VARCHAR(100),
    DOB DATE,
    LIMITATION_TYPE BIGINT,
    GENDER BIGINT,
    CITIZENSHIP BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OLYMP_RESULT_SET (
    I$PUPIL_ID BIGINT NOT NULL,
    I$EVENT_EXT_ID VARCHAR(50),
    I$EVENT_TYPE BIGINT,
    I$DESCRIPTION VARCHAR(400),
    I$STATUS BIGINT,
    I$EVENT_DATE DATE,
    I$SUBJECT VARCHAR(400),
    I$EVENT_RESULT BIGINT,
    I$REMOVED SMALLINT = 0)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OLYMP_SCHEDULE_SET (
    I$EVENT_EXT_ID VARCHAR(50),
    I$EVENT_TYPE_ID BIGINT,
    I$EVENT_DESCRIPTION VARCHAR(400),
    I$EVENT_REMOVED SMALLINT,
    I$PHASE_EXT_ID VARCHAR(50),
    I$PHASE_START_DATE TIMESTAMP,
    I$PHASE_END_DATE TIMESTAMP,
    I$PHASE_DESCRIPTION VARCHAR(400),
    I$PHASE_SUBJECT_GIA BIGINT,
    I$PHASE_SUBJECT VARCHAR(400),
    I$PHASE_STAGE BIGINT,
    I$PHASE_REMOVED SMALLINT)
RETURNS (
    EVENT_ID BIGINT,
    PHASE_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OO_ACCEPT_FROM_LIST (
    OBJ_ID BIGINT,
    USER_ID BIGINT = 1)
RETURNS (
    LISTVAL_ID BIGINT,
    PARENT_ID BIGINT,
    VAL VARCHAR(4000),
    VAL_LONG VARCHAR(4000),
    TAG VARCHAR(100),
    "FILTER" VARCHAR(255))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OO_ACCEPT_REASON_LIST (
    OBJ_ID BIGINT,
    USER_ID BIGINT = 1)
RETURNS (
    LISTVAL_ID BIGINT,
    PARENT_ID BIGINT,
    VAL VARCHAR(4000),
    VAL_LONG VARCHAR(4000),
    TAG VARCHAR(100),
    "FILTER" VARCHAR(255))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OO_DOCUMENT_INFO (
    I$OBJ_ID BIGINT)
RETURNS (
    LIC_DATA VARCHAR(400),
    ACCR_DATA VARCHAR(400),
    PRG_VER VARCHAR(40),
    DG_VER VARCHAR(40),
    IO_DATE VARCHAR(40),
    ADDR_DATA VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OO_DOC_LIST (
    I$OBJ_ID BIGINT,
    I$PARENT_ID BIGINT)
RETURNS (
    LISTVAL_ID BIGINT,
    PARENT_ID BIGINT,
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OO_DOC_TYPE_LIST (
    I$OBJ_ID BIGINT,
    I$PARENT_ID BIGINT)
RETURNS (
    LISTVAL_ID BIGINT,
    PARENT_ID BIGINT,
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OO_FILTRED_LIST (
    I$LIST_ID BIGINT,
    I$USER_ID BIGINT = null,
    I$MAX_LEVEL SMALLINT = 0)
RETURNS (
    LISTVAL_ID BIGINT,
    PARENT_ID BIGINT,
    VAL VARCHAR(4000),
    VAL_LONG VARCHAR(4000),
    TAG VARCHAR(100),
    "FILTER" VARCHAR(255),
    COST FLOAT,
    SORT_ORDER SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OO_GRADES_LIST (
    OBJ_ID BIGINT,
    USER_ID BIGINT = 1)
RETURNS (
    LISTVAL_ID BIGINT,
    PARENT_ID BIGINT,
    VAL VARCHAR(4000),
    VAL_LONG VARCHAR(4000),
    TAG VARCHAR(100),
    "FILTER" VARCHAR(255))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OO_LEVEL_LIST (
    I$OBJ_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    PARENT_ID BIGINT,
    LISTVAL_ID BIGINT,
    VAL VARCHAR(4000),
    VAL_LONG VARCHAR(4000),
    TAG VARCHAR(100),
    "FILTER" VARCHAR(255))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OO_ROOM_TYPE_LIST (
    I$USER_ID BIGINT)
RETURNS (
    LISTVAL_ID BIGINT,
    PARENT_ID BIGINT,
    VAL VARCHAR(4000),
    VAL_LONG VARCHAR(4000),
    TAG VARCHAR(100),
    "FILTER" VARCHAR(255),
    COST FLOAT,
    SORT_ORDER SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OO_SPECIALITY_LINK_CREATE (
    I$OP_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE OO_SPECIALITY_LINK_DELETE (
    I$OP_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE OO_STAGE_BASE_LIST (
    I$LIST_ID BIGINT,
    I$USER_ID BIGINT = null)
RETURNS (
    LISTVAL_ID BIGINT,
    PARENT_ID BIGINT,
    VAL VARCHAR(4000),
    VAL_LONG VARCHAR(4000),
    TAG VARCHAR(100),
    "FILTER" VARCHAR(255))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OO_STAGE_LIST (
    I$OBJ_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    PARENT_ID BIGINT,
    LISTVAL_ID BIGINT,
    VAL VARCHAR(4000),
    VAL_LONG VARCHAR(4000),
    TAG VARCHAR(100),
    "FILTER" VARCHAR(255),
    COST FLOAT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OO_STUDY_ACPT_LIST (
    I$OBJ_ID BIGINT)
RETURNS (
    LISTVAL_ID BIGINT,
    PARENT_ID BIGINT,
    VAL VARCHAR(4000),
    VAL_LONG VARCHAR(4000),
    TAG VARCHAR(100),
    "FILTER" VARCHAR(255),
    COST FLOAT,
    SORT_ORDER SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OO_STUDY_FORM_LIST (
    I$OBJ_ID BIGINT)
RETURNS (
    LISTVAL_ID BIGINT,
    PARENT_ID BIGINT,
    VAL VARCHAR(4000),
    VAL_LONG VARCHAR(4000),
    TAG VARCHAR(100),
    "FILTER" VARCHAR(255),
    COST FLOAT,
    SORT_ORDER SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OO_SUBJECT_TYPE_LIST (
    OBJ_ID BIGINT,
    PARAM_ID BIGINT,
    USER_ID BIGINT = 1)
RETURNS (
    LISTVAL_ID BIGINT,
    PARENT_ID BIGINT,
    VAL VARCHAR(4000),
    VAL_LONG VARCHAR(4000),
    TAG VARCHAR(100),
    "FILTER" VARCHAR(255))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OPLIST_BUILD (
    I$OBJ_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE OPLIST_PLAN_DETAILS (
    I$PLAN_ID BIGINT)
RETURNS (
    STAGE_LOADS VARCHAR(400),
    STAGE_COUNTS VARCHAR(400),
    SUBJECT_NAMES VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OPTEXT_DELETE (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE OPTEXT_GET (
    I$OP_ID BIGINT,
    I$PARENT_ID BIGINT,
    I$USER_ID VARCHAR(200))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OPTEXT_INNER_GET (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OPTEXT_MOVE (
    I$OBJ_ID BIGINT NOT NULL,
    I$DEST_ID BIGINT NOT NULL,
    I$AS_CHILD SMALLINT,
    I$USER_ID VARCHAR(40))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE OPTEXT_SET (
    I$OP_ID BIGINT,
    I$PARENT_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$TEXT VARCHAR(1000),
    I$TYPE_ID BIGINT NOT NULL,
    I$SC_INDEX SMALLINT,
    I$CONTENT_NULL SMALLINT NOT NULL,
    I$USER_ID VARCHAR(40))
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OP_ENSURE_UNQ (
    I$OBJ_ID BIGINT,
    I$OP_TYPE BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE ORDER_CHECK_PRINTED (
    I$ORDER_ID BIGINT,
    I$NEW_STATE BIGINT,
    I$USER_ID VARCHAR(40))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE ORDER_DELETE (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE ORDER_GET (
    I$OBJ_ID BIGINT,
    I$TYPE_ID BIGINT,
    I$USER_ID VARCHAR(40),
    I$OWNER_ID BIGINT = NULL)
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE ORDER_GROUP_SORTS (
    I$PERSON_ID BIGINT)
RETURNS (
    STAGE_INDEX BIGINT,
    CLASS_NAME VARCHAR(100),
    PERSON_NAME VARCHAR(400))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE ORDER_MK_NUM (
    I$TYPE_ID BIGINT,
    I$VALIDATE_ONLY SMALLINT,
    I$NUMBER VARCHAR(100))
RETURNS (
    ORDER_NUM VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE ORDER_SET (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40),
    I$PARENT_ID BIGINT,
    I$TYPE_ID BIGINT,
    I$STATE_ID BIGINT,
    I$ORDER_DATE DATE,
    I$ORDER_NUM VARCHAR(100),
    I$ACTION_DATE DATE,
    I$SIGNED_BY BIGINT,
    I$DETAILS_TEXT VARCHAR(1000),
    I$COMMENTS VARCHAR(1000),
    I$SUBTYPE_ID BIGINT = NULL,
    I$OWNER_ID BIGINT = NULL,
    I$VACANCY_ID BIGINT = NULL,
    I$EMPLOYEE_ID BIGINT = NULL)
RETURNS (
    OBJ_ID BIGINT,
    STATE_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE ORDER_SET_ROW (
    I$ORDER_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40),
    I$DELETED SMALLINT,
    I$REF_ID BIGINT,
    I$DESTINATION VARCHAR(400),
    I$IS_PRESENT SMALLINT,
    I$DEST_ID BIGINT = NULL,
    I$ORDER_DATE DATE = NULL,
    I$DST_DATA VARCHAR(1000) = NULL,
    I$JOB_ID BIGINT = NULL,
    I$JOB_ID2 BIGINT = NULL)
RETURNS (
    OBJ_ID BIGINT,
    ORDER_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE ORDER_SET_STATE (
    I$OBJ_ID BIGINT,
    I$STATE_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE ORDER_STATE_GO_EM_CMATE (
    I$ORDER_ID BIGINT,
    I$TYPE_ID BIGINT)
RETURNS (
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE ORDER_STATE_GO_EM_IN (
    I$ORDER_ID BIGINT,
    I$TYPE_ID BIGINT)
RETURNS (
    VAL VARCHAR(400))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE ORDER_STATE_GO_EM_OUT (
    I$ORDER_ID BIGINT,
    I$TYPE_ID BIGINT,
    I$JOB_ID BIGINT = NULL)
RETURNS (
    VAL VARCHAR(400))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE ORDER_STATE_RW_EM_CMATE (
    I$ORDER_ID BIGINT,
    I$TYPE_ID BIGINT)
RETURNS (
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE ORDER_STATE_RW_EM_IN (
    I$ORDER_ID BIGINT,
    I$TYPE_ID BIGINT,
    I$JOB_ID BIGINT = NULL)
RETURNS (
    VAL VARCHAR(400))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE ORDER_STATE_RW_EM_OUT (
    I$ORDER_ID BIGINT,
    I$TYPE_ID BIGINT,
    I$JOB_ID BIGINT = NULL)
RETURNS (
    VAL VARCHAR(400))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE ORD_NM_RULE_AUTO_CREATE (
    I$RULE_TYPE BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE ORGANIZATION_SHORT_NAME_GET RETURNS (
    STR VARCHAR(5000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OSH1_1001 (
    I$OBJ_ID BIGINT,
    I$ROOM_TYPE_ID INTEGER)
RETURNS (
    V VARCHAR(3))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OSH1_101 (
    I$OBJ_ID BIGINT,
    I$ROW_NUM SMALLINT = 0,
    I$DT DATE = CURRENT_DATE)
RETURNS (
    VAL3 INTEGER,
    VAL4 INTEGER,
    VAL5 INTEGER,
    VAL6 INTEGER,
    VAL7 INTEGER,
    VAL8 INTEGER,
    VAL9 INTEGER,
    VAL10 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OSH1_101DTL (
    I$OBJ_ID BIGINT NOT NULL,
    STAGE_NUM SMALLINT NOT NULL)
RETURNS (
    VAL1 VARCHAR(250),
    VAL2 VARCHAR(250),
    VAL3 VARCHAR(250))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OSH1_1101 (
    I$OBJ_ID BIGINT)
RETURNS (
    V VARCHAR(3))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OSH1_1201 (
    I$OBJ_ID BIGINT,
    I$N INTEGER)
RETURNS (
    VAL VARCHAR(10))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OSH1_1201DTL (
    I$OBJ_ID BIGINT NOT NULL,
    STAGE_NUM SMALLINT)
RETURNS (
    VAL1 VARCHAR(250),
    VAL2 VARCHAR(250),
    VAL3 VARCHAR(250))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OSH1_1301 (
    I$OBJ_ID BIGINT,
    I$N INTEGER)
RETURNS (
    V INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OSH1_1301DTL (
    I$OBJ_ID BIGINT NOT NULL,
    STAGE_NUM SMALLINT NOT NULL,
    I$DT DATE = CURRENT_DATE)
RETURNS (
    VAL1 VARCHAR(250),
    VAL2 VARCHAR(250),
    VAL3 VARCHAR(250),
    NAME VARCHAR(250))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OSH1_1308 (
    I$OBJ_ID BIGINT,
    I$ROOM_TYPE1 BIGINT,
    I$ROOM_TYPE2 BIGINT)
RETURNS (
    V VARCHAR(3))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OSH1_1318 (
    I$OBJ_ID BIGINT,
    I$1 BIGINT,
    I$2 BIGINT,
    I$3 BIGINT,
    I$DT DATE = CURRENT_DATE)
RETURNS (
    V INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OSH1_1320 (
    I$OBJ_ID BIGINT)
RETURNS (
    V INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OSH1_1321 (
    I$OBJ_ID BIGINT)
RETURNS (
    V INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OSH1_1322 (
    I$OBJ_ID BIGINT,
    I$BUILDING_SOST BIGINT)
RETURNS (
    V VARCHAR(3),
    X INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OSH1_1326 (
    I$OBJ_ID BIGINT)
RETURNS (
    V VARCHAR(3),
    X INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OSH1_1327 (
    I$OBJ_ID BIGINT)
RETURNS (
    V VARCHAR(3),
    X INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OSH1_1328 (
    I$OBJ_ID BIGINT)
RETURNS (
    V VARCHAR(3),
    X INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OSH1_1329 (
    I$OBJ_ID BIGINT)
RETURNS (
    V VARCHAR(3),
    X INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OSH1_1334 (
    I$OBJ_ID BIGINT,
    I$N INTEGER = NULL)
RETURNS (
    V INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OSH1_1336 (
    I$OBJ_ID BIGINT,
    I$N SMALLINT = 36)
RETURNS (
    V INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OSH1_1340 (
    I$OBJ_ID BIGINT,
    I$N INTEGER)
RETURNS (
    V VARCHAR(3))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OSH1_1346 (
    I$OBJ_ID BIGINT,
    I$N INTEGER)
RETURNS (
    V VARCHAR(3))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OSH1_1401 (
    I$OBJ_ID BIGINT,
    I$SECTION_TYPE_ID BIGINT)
RETURNS (
    V3 INTEGER,
    V4 INTEGER,
    V5 INTEGER,
    V6 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OSH1_1401DTL (
    I$OBJ_ID BIGINT NOT NULL,
    STAGE_NUM SMALLINT NOT NULL,
    STAGE_NUM2 SMALLINT NOT NULL)
RETURNS (
    VAL1 VARCHAR(250),
    VAL2 VARCHAR(250),
    VAL3 VARCHAR(250),
    NAME VARCHAR(250))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OSH1_1407 (
    I$OBJ_ID BIGINT)
RETURNS (
    V3 INTEGER,
    V4 INTEGER,
    V5 INTEGER,
    V6 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OSH1_1408 (
    I$OBJ_ID BIGINT)
RETURNS (
    V5 INTEGER,
    V6 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OSH1_1501DTL (
    I$OBJ_ID BIGINT NOT NULL,
    STAGE_NUM SMALLINT NOT NULL,
    STAGE_NUM2 SMALLINT = NULL,
    I$DT DATE = CURRENT_DATE)
RETURNS (
    VAL1 VARCHAR(250),
    VAL2 VARCHAR(250),
    VAL3 VARCHAR(250))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OSH1_1601DTL (
    I$OBJ_ID BIGINT NOT NULL,
    STAGE_NUM SMALLINT,
    STAGE_NUM2 SMALLINT,
    I$DT DATE = current_date)
RETURNS (
    VAL1 VARCHAR(250),
    VAL2 VARCHAR(250),
    VAL3 VARCHAR(250))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OSH1_1611 (
    I$OBJ_ID BIGINT,
    I$GRADE BIGINT,
    I$LANG BIGINT,
    I$DT DATE = current_date)
RETURNS (
    V1 INTEGER,
    V2 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OSH1_1614 (
    I$OBJ_ID BIGINT,
    I$GRADE BIGINT,
    I$DT DATE = current_date)
RETURNS (
    V1 INTEGER,
    V2 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OSH1_1641 (
    I$OBJ_ID BIGINT,
    I$LANG BIGINT,
    I$DT DATE = current_date)
RETURNS (
    V1 INTEGER,
    V2 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OSH1_1644 (
    I$OBJ_ID BIGINT,
    I$DT DATE = current_date)
RETURNS (
    V1 INTEGER,
    V2 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OSH1_1701 (
    I$OBJ_ID BIGINT,
    I$PROFIL BIGINT)
RETURNS (
    V3 INTEGER,
    V4 INTEGER,
    V5 INTEGER,
    V6 INTEGER,
    V7 INTEGER,
    V8 INTEGER,
    V9 INTEGER,
    V10 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OSH1_1701DTL (
    I$OBJ_ID BIGINT NOT NULL,
    STAGE_NUM SMALLINT,
    STAGE_NUM2 SMALLINT)
RETURNS (
    VAL1 VARCHAR(250),
    VAL2 VARCHAR(250),
    VAL3 VARCHAR(250))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OSH1_1801 (
    I$OBJ_ID BIGINT)
RETURNS (
    V3 INTEGER,
    V4 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OSH1_1801DTL (
    I$OBJ_ID BIGINT NOT NULL,
    STAGE_NUM SMALLINT,
    STAGE_NUM2 SMALLINT)
RETURNS (
    VAL1 VARCHAR(250),
    VAL2 VARCHAR(250),
    VAL3 VARCHAR(250))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OSH1_1802 (
    I$OBJ_ID BIGINT)
RETURNS (
    V3 INTEGER,
    V4 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OSH1_1803 (
    I$OBJ_ID BIGINT,
    I$PROFIL BIGINT)
RETURNS (
    V3 INTEGER,
    V4 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OSH1_201 (
    I$OBJ_ID BIGINT,
    I$STAGE_LISTVAL_ID BIGINT,
    I$DT DATE = CURRENT_DATE)
RETURNS (
    VAL INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OSH1_201DTL (
    I$OBJ_ID BIGINT NOT NULL,
    STAGE_NUM SMALLINT NOT NULL,
    I$DT DATE = CURRENT_DATE)
RETURNS (
    VAL1 VARCHAR(250),
    VAL2 VARCHAR(250),
    VAL3 VARCHAR(250))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OSH1_213 (
    I$OBJ_ID BIGINT,
    I$STAGE_LISTVAL_ID BIGINT,
    I$DT DATE = CURRENT_DATE)
RETURNS (
    VAL INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OSH1_301 (
    I$OBJ_ID BIGINT,
    I$N SMALLINT)
RETURNS (
    VAL3 INTEGER,
    VAL4 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OSH1_301DTL (
    I$OBJ_ID BIGINT NOT NULL,
    STAGE_NUM SMALLINT NOT NULL,
    STAGE_NUM2 SMALLINT)
RETURNS (
    VAL3 VARCHAR(250))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OSH1_40 (
    I$OBJ_ID BIGINT)
RETURNS (
    PRAV_FORMA VARCHAR(1))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OSH1_401 (
    I$OBJ_ID BIGINT,
    I$STAGE_LISTVAL_ID BIGINT,
    I$DT DATE = CURRENT_DATE)
RETURNS (
    V03 INTEGER,
    V04 INTEGER,
    V05 INTEGER,
    V06 INTEGER,
    V07 INTEGER,
    V08 INTEGER,
    V09 INTEGER,
    V10 INTEGER,
    V11 INTEGER,
    V12 INTEGER,
    V13 INTEGER,
    V14 INTEGER,
    V15 INTEGER,
    V16 INTEGER,
    V17 INTEGER,
    V18 INTEGER,
    V19 INTEGER,
    V20 INTEGER,
    V21 INTEGER,
    V22 INTEGER,
    V23 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OSH1_401DTL (
    I$OBJ_ID BIGINT NOT NULL,
    STAGE_NUM SMALLINT NOT NULL,
    STAGE_NUM2 SMALLINT NOT NULL,
    I$DT DATE = CURRENT_DATE)
RETURNS (
    VAL1 VARCHAR(250),
    VAL2 VARCHAR(250),
    VAL3 VARCHAR(250))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OSH1_418 (
    I$OBJ_ID BIGINT,
    I$DT DATE = CURRENT_DATE)
RETURNS (
    V03 INTEGER,
    V04 INTEGER,
    V05 INTEGER,
    V06 INTEGER,
    V07 INTEGER,
    V08 INTEGER,
    V09 INTEGER,
    V10 INTEGER,
    V11 INTEGER,
    V12 INTEGER,
    V13 INTEGER,
    V14 INTEGER,
    V15 INTEGER,
    V16 INTEGER,
    V17 INTEGER,
    V18 INTEGER,
    V19 INTEGER,
    V20 INTEGER,
    V21 INTEGER,
    V22 INTEGER,
    V23 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OSH1_419 (
    I$OBJ_ID BIGINT)
RETURNS (
    V INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OSH1_501 (
    I$OBJ_ID BIGINT,
    I$YEARS_OLD SMALLINT,
    I$MONTH_DELTA SMALLINT = 0,
    I$INVALID_ONLY SMALLINT = 0,
    I$DT DATE = current_date)
RETURNS (
    V3 INTEGER,
    V4 INTEGER,
    V5 INTEGER,
    V6 INTEGER,
    V7 INTEGER,
    V8 INTEGER,
    V9 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OSH1_501DTL (
    I$OBJ_ID BIGINT NOT NULL,
    STAGE_NUM SMALLINT NOT NULL,
    STAGE_NUM2 SMALLINT NOT NULL,
    I$DT DATE = current_date,
    I$MONTH_DELTA SMALLINT = 0,
    I$INVALID_ONLY SMALLINT = 0)
RETURNS (
    VAL1 VARCHAR(250),
    VAL2 VARCHAR(250),
    VAL3 VARCHAR(250))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OSH1_514 (
    I$OBJ_ID BIGINT,
    I$YEARS_OLD SMALLINT = 23,
    I$DT DATE = CURRENT_DATE)
RETURNS (
    V3 INTEGER,
    V4 INTEGER,
    V5 INTEGER,
    V6 INTEGER,
    V7 INTEGER,
    V8 INTEGER,
    V9 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OSH1_515 (
    I$OBJ_ID BIGINT,
    I$DT DATE = CURRENT_DATE)
RETURNS (
    V3 INTEGER,
    V4 INTEGER,
    V5 INTEGER,
    V6 INTEGER,
    V7 INTEGER,
    V8 INTEGER,
    V9 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OSH1_516 (
    I$OBJ_ID BIGINT,
    I$DT DATE = CURRENT_DATE)
RETURNS (
    V INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OSH1_601 (
    I$OBJ_ID BIGINT,
    I$DT DATE = CURRENT_DATE)
RETURNS (
    V INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OSH1_601DTL (
    I$OBJ_ID BIGINT NOT NULL,
    STAGE_NUM SMALLINT NOT NULL,
    I$DT DATE = CURRENT_DATE)
RETURNS (
    VAL1 VARCHAR(250))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OSH1_603 (
    I$OBJ_ID BIGINT)
RETURNS (
    V INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OSH1_604 (
    I$OBJ_ID BIGINT)
RETURNS (
    V INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OSH1_605 (
    I$OBJ_ID BIGINT,
    I$DT DATE = CURRENT_DATE)
RETURNS (
    V INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OSH1_606 (
    I$OBJ_ID BIGINT,
    I$DT DATE = CURRENT_DATE)
RETURNS (
    V INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OSH1_701DTL (
    I$OBJ_ID BIGINT NOT NULL,
    STAGE_NUM SMALLINT NOT NULL)
RETURNS (
    VAL1 VARCHAR(250),
    VAL2 VARCHAR(250),
    VAL3 VARCHAR(250))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OSH1_702 (
    I$OBJ_ID BIGINT,
    I$SMENA INTEGER)
RETURNS (
    V1 INTEGER,
    V2 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OSH1_801 (
    I$OBJ_ID BIGINT,
    I$N INTEGER)
RETURNS (
    V INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OSH1_801DTL (
    I$OBJ_ID BIGINT NOT NULL,
    STAGE_NUM SMALLINT NOT NULL)
RETURNS (
    VAL1 VARCHAR(250),
    VAL2 VARCHAR(250),
    VAL3 VARCHAR(250))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OSH1_PUPIL_COUNT (
    I$OBJ_ID BIGINT,
    I$SUBJECT INTEGER)
RETURNS (
    PUPIL_COUNT INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OSH1_PUPIL_COUNT_ (
    I$OBJ_ID BIGINT)
RETURNS (
    PUPIL_COUNT INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OSH1_T2_1 (
    I$OBJ_ID BIGINT)
RETURNS (
    ETAP_NUM FLOAT,
    PUPIL_COUNT INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OSH1_YEAR_GET (
    I$DELTA SMALLINT,
    I$DT DATE = CURRENT_DATE)
RETURNS (
    Y SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OSH5_101DTL (
    I$OBJ_ID BIGINT NOT NULL,
    I$N SMALLINT = NULL)
RETURNS (
    VAL1 VARCHAR(250),
    VAL2 VARCHAR(250))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OSH5_301 (
    I$OBJ_ID BIGINT,
    I$N SMALLINT)
RETURNS (
    VAL3 INTEGER,
    VAL4 INTEGER,
    VAL5 INTEGER,
    VAL6 INTEGER,
    VAL7 INTEGER,
    VAL8 INTEGER,
    VAL9 INTEGER,
    VAL10 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OSH5_301DTL (
    I$OBJ_ID BIGINT NOT NULL,
    I$N SMALLINT NOT NULL,
    I$N2 SMALLINT = NULL)
RETURNS (
    VAL1 VARCHAR(250),
    VAL2 VARCHAR(250))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OSH5_401 (
    I$OBJ_ID BIGINT NOT NULL,
    I$DT DATE = CURRENT_DATE)
RETURNS (
    VAL3 INTEGER,
    VAL4 INTEGER,
    VAL5 INTEGER,
    VAL6 INTEGER,
    VAL7 INTEGER,
    VAL8 INTEGER,
    VAL9 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OSH5_401DTL (
    I$OBJ_ID BIGINT NOT NULL,
    I$N SMALLINT NOT NULL,
    I$N2 SMALLINT = NULL,
    I$DT DATE = CURRENT_DATE)
RETURNS (
    VAL1 VARCHAR(250),
    VAL2 VARCHAR(250))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OSH5_501 (
    I$OBJ_ID BIGINT NOT NULL,
    I$N SMALLINT NOT NULL,
    I$DT DATE = CURRENT_DATE)
RETURNS (
    V3 INTEGER,
    V4 INTEGER,
    V5 INTEGER,
    V6 INTEGER,
    V7 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OSH5_501DTL (
    I$OBJ_ID BIGINT NOT NULL,
    I$N SMALLINT NOT NULL,
    I$N2 SMALLINT NOT NULL,
    I$DT DATE = CURRENT_DATE)
RETURNS (
    VAL1 VARCHAR(250),
    VAL2 VARCHAR(250))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OSH5_601 (
    I$OBJ_ID BIGINT NOT NULL,
    I$DT DATE = CURRENT_DATE)
RETURNS (
    VAL3 VARCHAR(10))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OSH5_601DTL (
    I$OBJ_ID BIGINT NOT NULL,
    I$N SMALLINT NOT NULL,
    I$N2 SMALLINT = NULL,
    I$DT DATE = CURRENT_DATE)
RETURNS (
    VAL1 VARCHAR(250),
    VAL2 VARCHAR(250),
    VAL3 VARCHAR(250))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OSH5_701DTL (
    I$OBJ_ID BIGINT NOT NULL,
    I$N SMALLINT NOT NULL,
    I$N2 SMALLINT = NULL,
    I$DT DATE = CURRENT_DATE)
RETURNS (
    VAL1 VARCHAR(250),
    VAL2 VARCHAR(250),
    VAL3 VARCHAR(250),
    NAME VARCHAR(250))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OSH5_801 (
    I$OBJ_ID BIGINT NOT NULL)
RETURNS (
    VAL3 INTEGER,
    VAL4 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OSH5_901 (
    I$OBJ_ID BIGINT NOT NULL,
    I$DT DATE = CURRENT_DATE)
RETURNS (
    V03 INTEGER,
    V04 NUMERIC(11,2),
    V05 INTEGER,
    V06 INTEGER,
    V07 INTEGER,
    V08 INTEGER,
    V09 INTEGER,
    V10 INTEGER,
    V11 INTEGER,
    V12 INTEGER,
    V13 INTEGER,
    V14 INTEGER,
    V15 INTEGER,
    V16 INTEGER,
    V17 INTEGER,
    V18 INTEGER,
    V19 INTEGER,
    V20 INTEGER,
    V21 INTEGER,
    V22 INTEGER,
    V23 INTEGER,
    V24 INTEGER,
    V25 INTEGER,
    V26 INTEGER,
    V27 INTEGER,
    V28 INTEGER,
    V29 INTEGER,
    V30 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OSH5_901DTL (
    I$OBJ_ID BIGINT NOT NULL,
    I$N SMALLINT NOT NULL,
    I$N2 SMALLINT = NULL)
RETURNS (
    NAME VARCHAR(250),
    CNT DOUBLE PRECISION,
    VAL1 VARCHAR(250))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OU_ACTION_TYPES RETURNS (
    VAL VARCHAR(400))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OU_CLASS_REPORT (
    I$OBJ_ID BIGINT,
    I$DT DATE = CURRENT_DATE)
RETURNS (
    COLOR CHAR(7),
    NAME VARCHAR(250),
    CLASS_NUM INTEGER,
    CLASS_CNT INTEGER,
    SCHOLAR_CNT INTEGER,
    CLASS_PUB_CNT INTEGER,
    SCHOLAR_PUB_CNT INTEGER,
    CLASS_INC_CNT INTEGER,
    CLASS_ZPR_CNT INTEGER,
    SCHOLAR_ZPR_CNT INTEGER,
    SCHOLAR_HOUSE_CNT INTEGER,
    CLASS_AVG NUMERIC(7,1),
    CLASS_NOT_ZPR_AVG NUMERIC(7,1))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OU_CLASS_REPORT2 (
    I$OBJ_ID BIGINT,
    CLASS_NUM INTEGER = -90,
    SCHOLAR_HOUSE_FL SMALLINT = 0,
    SCHOLAR_ZPR_FL SMALLINT = null,
    I$DT DATE = current_date)
RETURNS (
    VAL1 VARCHAR(250),
    VAL2 VARCHAR(250),
    VAL3 VARCHAR(250))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OU_CLASS_REPORT_DTL (
    I$OBJ_ID BIGINT,
    I$DT DATE = CURRENT_DATE)
RETURNS (
    CLASS_NUM INTEGER,
    CLASS_TYPE INTEGER,
    CLASS_ID BIGINT,
    SCHOLAR_ID BIGINT,
    SCHOLAR_HOUSE_FL SMALLINT,
    IS_OVZ SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OU_CLASS_REPORT_GPD (
    I$OBJ_ID BIGINT,
    I$DT DATE = current_date,
    I$GPD_ONLY SMALLINT = 1)
RETURNS (
    CLASS_NUM INTEGER,
    CLASS_TYPE INTEGER,
    GPD_ID BIGINT,
    SCHOLAR_ID BIGINT,
    IS_OVZ SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OU_EDU_DO_COMMIT (
    I$OU_ID BIGINT,
    I$ILL_STUDENTS INTEGER,
    I$ILL_EMPLOYEES INTEGER,
    I$USER_ID VARCHAR(40))
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OU_EDU_DO_DATA (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OU_EDU_DO_OUTDATA (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(8000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OU_EDU_STAT_OUTDATA (
    I$DATE DATE = current_date,
    I$FORCE SMALLINT = 0)
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OU_FULLNAME_GENITIVE (
    OU_NAME VARCHAR(2000))
RETURNS (
    RESULT VARCHAR(2000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OU_LICENCE_TYPE RETURNS (
    STATUS VARCHAR(1))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OU_LIST (
    I$USER_ID BIGINT,
    I$TYPE SMALLINT = 1)
RETURNS (
    SCHOOLNO VARCHAR(100),
    SHORTNAME VARCHAR(500),
    FULLNAME VARCHAR(1000),
    NEWTYPEID BIGINT,
    PROPERTYFORMID INTEGER,
    DISTRICTID INTEGER,
    EMAIL VARCHAR(100),
    ADDRESS VARCHAR(500),
    CHIEF VARCHAR(100),
    WWW VARCHAR(100),
    PHONE VARCHAR(100),
    FAX VARCHAR(100),
    CHIEFPHONE VARCHAR(100),
    OGRN VARCHAR(100),
    OU_TYPE SMALLINT,
    LEGALNAME VARCHAR(500))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OU_LIST_BY_ROOT (
    I$OBJ_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    OWNER_ID BIGINT,
    OWNER_CAPTION VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE OU_NET_REPORT (
    I$USER_ID BIGINT = 1)
RETURNS (
    F1 VARCHAR(500),
    F2 INTEGER,
    F3 INTEGER,
    F3_NUM VARCHAR(500),
    F4 INTEGER,
    F4_NUM VARCHAR(500),
    F5 INTEGER,
    F5_NUM VARCHAR(500),
    F6 INTEGER,
    F6_NUM VARCHAR(500),
    F7 INTEGER,
    F7_NUM VARCHAR(500),
    F8 INTEGER,
    F8_NUM VARCHAR(500),
    F9 INTEGER,
    F9_NUM VARCHAR(500),
    F10 INTEGER,
    F10_NUM VARCHAR(500),
    F11 INTEGER,
    F11_NUM VARCHAR(500),
    F12 INTEGER,
    F12_NUM VARCHAR(500),
    F13 INTEGER,
    F13_NUM VARCHAR(500),
    F14 INTEGER,
    F14_NUM VARCHAR(500),
    F15 INTEGER,
    F15_NUM VARCHAR(500),
    F16 INTEGER,
    F16_NUM VARCHAR(500),
    F17 INTEGER,
    F17_NUM VARCHAR(500),
    F18 INTEGER,
    F18_NUM VARCHAR(500),
    F19 INTEGER,
    F19_NUM VARCHAR(500),
    F20 INTEGER,
    F20_NUM VARCHAR(500),
    F21 INTEGER,
    F21_NUM VARCHAR(500),
    F22 INTEGER,
    F22_NUM VARCHAR(500),
    F23 INTEGER,
    F23_NUM VARCHAR(500),
    F24 INTEGER,
    F24_NUM VARCHAR(500),
    F25 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_CAN_CHANGE_VAL (
    I$OBJ_ID BIGINT,
    I$PARAM_ID BIGINT,
    I$VAL VARCHAR(4000),
    I$IS_DEL SMALLINT,
    I$USER_ID BIGINT = 1)
RETURNS (
    CAN_CHANGE SMALLINT,
    ERR_MSG VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_CAN_DELETE_OBJECT (
    I$OBJ_ID BIGINT)
RETURNS (
    CAN_DELETE SMALLINT,
    ERR_MSG VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_CLASS_LIST (
    I$OBJ_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    OBJ_CAPTION VARCHAR(4000),
    SORT_ORDER DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_COLLEGE_SUBJECTS_LIST2 (
    I$CURRICULUM_ID BIGINT,
    I$USER_ID BIGINT,
    I$LEVEL_ID INTEGER = 0)
RETURNS (
    SUBJECT_ID BIGINT,
    SUBJECT_CAPTION VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_CURRICULUM_COPY (
    I$OBJ_ID BIGINT,
    I$CURRICULUM_ID BIGINT,
    I$COPY_MODE SMALLINT = 0)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_CURRICULUM_LIST (
    COPY_MODE SMALLINT = 0,
    I$PARENT_TYPE_ID BIGINT = 57,
    I$PARENT_ID BIGINT = NULL)
RETURNS (
    OBJ_ID BIGINT,
    OBJ_CAPTION VARCHAR(4000),
    LEVEL_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_EDUCATION_FLEVELS_LIST (
    I$PUPIL_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    COLOR INTEGER,
    OBJ_CAPTION VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_EDUCATION_LEAVE (
    I$PUPIL_ID BIGINT,
    I$ACTION_DATE DATE,
    I$ACTION_TYPE BIGINT,
    I$ORDER_NUMBER VARCHAR(100),
    I$ORDER_DATE DATE,
    I$LEAVE_FOR BIGINT,
    I$HAVE_DOC BIGINT,
    I$LEAVE_TO BIGINT,
    I$LEAVE_TO_OU_TYPE BIGINT,
    I$LEAVE_TO_OU_NAME VARCHAR(4000),
    I$LEAVE_TO_DISTR BIGINT,
    I$LEAVE_TO_CLASS BIGINT,
    I$USER_ID VARCHAR(40),
    I$MOVEMENT_SOURCE_ID BIGINT = 902,
    I$CLASS_ID BIGINT = NULL,
    I$ACCEPT_DATE DATE = NULL,
    I$ACCEPT_ORDER VARCHAR(100) = NULL)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_EDUCATION_LEAVE_CHECK (
    I$MOVEMENT_ID BIGINT,
    I$MOVEMENT_DATE DATE,
    I$USER_ID BIGINT)
RETURNS (
    X INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_EDUCATION_LEAVE_TYPES (
    I$OBJ_ID BIGINT,
    I$LIST_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    LISTVAL_ID BIGINT,
    PARENT_ID BIGINT,
    VAL VARCHAR(4000),
    VAL_LONG VARCHAR(4000),
    TAG VARCHAR(100),
    "FILTER" VARCHAR(255))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_EDUCATION_LEVELS_LIST (
    I$OBJ_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    EDUCATION_LEVEL_ID BIGINT,
    LEVEL_ID BIGINT,
    SORT_ORDER DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_EDUCATION_LINES_LIST (
    I$EDUCATION_LEVEL_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    EDUCATION_LINE_ID BIGINT,
    LINE_ID BIGINT,
    SORT_ORDER DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_EDUCATION_TRANSFER (
    I$PUPIL_ID BIGINT,
    I$CLASS_ID BIGINT,
    I$ACTION_DATE DATE,
    I$ACTION_TYPE BIGINT,
    I$ORDER_NUMBER VARCHAR(4000),
    I$ORDER_DATE DATE,
    I$USER_ID BIGINT,
    I$GUP_ID BIGINT = NULL)
RETURNS (
    OBJ_ID BIGINT,
    TYPE_ID BIGINT,
    PARENT_ID BIGINT,
    USER_ID BIGINT,
    DATE_INS TIMESTAMP,
    DATE_DEL TIMESTAMP,
    SORT_ORDER DOUBLE PRECISION,
    CAPTION VARCHAR(4000),
    HAS_CHILD INTEGER,
    COLOR INTEGER,
    TAB_ID BIGINT,
    TYPE_ORDER SMALLINT,
    LINK_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_EMPLOYEE_ACCEPT (
    I$SCHOOL_ID BIGINT,
    I$LASTNAME VARCHAR(100),
    I$NAME VARCHAR(100),
    I$MIDDLENAME VARCHAR(100),
    I$DOB DATE,
    I$SEX BIGINT,
    I$VACANCY_ID BIGINT,
    I$RATECOUNT DOUBLE PRECISION,
    I$VACANCY_TYPE BIGINT,
    I$ACCEPTEDDATE DATE,
    I$ORDERDATE DATE,
    I$ORDERNUMBER VARCHAR(100),
    I$CONTRACTTO DATE,
    I$ACCEPTCONDITION BIGINT,
    I$FACT_REGION VARCHAR(255),
    I$FACT_DISTRICT VARCHAR(255),
    I$FACT_TOWN VARCHAR(255),
    I$FACT_SETTLEMENT VARCHAR(255),
    I$FACT_STREET VARCHAR(255),
    I$FACT_HOUSE VARCHAR(10),
    I$FACT_LITER VARCHAR(10),
    I$FACT_CORP VARCHAR(10),
    I$FACT_FLAT VARCHAR(10),
    I$FACT_POST_INDEX VARCHAR(20),
    I$FACT_OCATD VARCHAR(11),
    I$FACT_HOUSEGUID VARCHAR(40),
    I$FACT_STREETGUID VARCHAR(40),
    I$REG_REGION VARCHAR(255),
    I$REG_DISTRICT VARCHAR(255),
    I$REG_TOWN VARCHAR(255),
    I$REG_SETTLEMENT VARCHAR(255),
    I$REG_STREET VARCHAR(255),
    I$REG_HOUSE VARCHAR(10),
    I$REG_LITER VARCHAR(10),
    I$REG_CORP VARCHAR(10),
    I$REG_FLAT VARCHAR(10),
    I$REG_POST_INDEX VARCHAR(20),
    I$REG_OCATD VARCHAR(11),
    I$REG_HOUSEGUID VARCHAR(40),
    I$REG_STREETGUID VARCHAR(40),
    I$CONTRACT_NUMBER VARCHAR(255),
    I$CONTRACT_DATE DATE,
    I$CATEGORY BIGINT,
    I$USER_ID VARCHAR(40) = NULL,
    I$BOOK_NAME VARCHAR(1000) = NULL)
RETURNS (
    EMPLOYEE_ID BIGINT,
    OWNER_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_EMPLOYEE_CANBE_FIRED (
    I$EMPLOYEE_ID BIGINT NOT NULL,
    I$RAISE SMALLINT = 1)
RETURNS (
    OBJ_ID BIGINT,
    LOAD_TYPE_ID SMALLINT,
    LOAD_MSG VARCHAR(2000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_EMPLOYEE_CANCEL_LEAVE (
    I$EMPLOYEE_ID BIGINT,
    I$MOVEMENT_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_EMPLOYEE_HASBASEVAC (
    I$EMPLOYEE_ID BIGINT)
RETURNS (
    HASBASEVACANCY SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_EMPLOYEE_JOB_GET (
    L15_PARENT_OBJ_ID BIGINT,
    L15_OBJ_ID BIGINT,
    JOB_DATE_START DATE,
    JOB_LISTVAL_ID BIGINT)
RETURNS (
    L15_OBJ_ID_START BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_EMPLOYEE_LEAVE (
    I$PARENT_ID BIGINT,
    I$EMPLOYEE_ID BIGINT,
    I$LEAVEDATE DATE,
    I$LEAVEORDERNUMBER VARCHAR(4000),
    I$LEAVEORDERDATE DATE,
    I$LEAVEREASON BIGINT,
    I$LEAVEBASEMENT BIGINT,
    I$USER_ID BIGINT = NULL,
    I$RELEASE SMALLINT = 0)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_EMPLOYEE_LEAVE_CHANGES
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_EMPLOYEE_LIST (
    I$HAS_VACANCY SMALLINT = 1,
    I$USER_ID BIGINT = null)
RETURNS (
    OBJ_ID BIGINT,
    OBJ_CAPTION VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_EMPLOYEE_SENIORITY_ADD (
    I$CAPTION VARCHAR(4000),
    I$LANG_CODE CHAR(2))
RETURNS (
    LISTVAL_ID BIGINT,
    PARAM_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_EMPLOYEE_SENIORITY_DEL (
    SENIORITY_TYPE BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_EMPLOYEE_SENIORITY_LST (
    I$EMPLOYEE_ID BIGINT,
    I$CURRENT_DATE DATE = null,
    I$USER_ID BIGINT = null)
RETURNS (
    SENIORITY_ID BIGINT,
    SENIORITY_TYPE BIGINT,
    SENIORITY_TYPE_CAPTION VARCHAR(4000),
    SENIORITY_FROM DATE,
    SENIORITY_TO DATE,
    DAYS360_COUNT INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_EMPLOYEE_VACANCY_ADD (
    I$MOVEMENT_ID BIGINT,
    I$SCHOOL_ID BIGINT,
    I$EMPLOYEE_ID BIGINT,
    I$VACANCY_ID BIGINT,
    I$RATECOUNT DOUBLE PRECISION,
    I$VACANCY_TYPE BIGINT,
    I$ACCEPTEDDATE DATE,
    I$ORDERDATE DATE,
    I$ORDERNUMBER VARCHAR(100),
    I$CONTRACTTO DATE,
    I$ACCEPTCONDITION BIGINT,
    I$CONTRACT_NUMBER VARCHAR(255),
    I$CONTRACT_DATE DATE,
    I$CATEGORY BIGINT,
    I$BOOK_NAME VARCHAR(1000) = NULL,
    I$USER_ID VARCHAR(40) = NULL)
RETURNS (
    NEED_REFRESH_TREE SMALLINT,
    MOVEMENT_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_EMPLOYEE_VACANCY_GET (
    I$MOVEMENT_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    VACANCY_ID BIGINT,
    VACANCY_CAPTION VARCHAR(4000),
    RATECOUNT DOUBLE PRECISION,
    FREERATECOUNT DOUBLE PRECISION,
    FREERATE_CHECK INTEGER,
    VACANCY_TYPE BIGINT,
    VACANCY_TYPE_CAPTION VARCHAR(4000),
    ACCEPTEDDATE DATE,
    ORDERDATE DATE,
    ORDERNUMBER VARCHAR(100),
    CONTRACTTO DATE,
    ACCEPTCONDITION BIGINT,
    ACCEPTCONDITION_CAPTION VARCHAR(4000),
    CATEGORY BIGINT,
    CATEGORY_CAPTION VARCHAR(1000),
    CONTRACTNUMBER VARCHAR(100),
    CONTRACTDATE DATE)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_EMPLOYEE_VACANCY_LEAVE (
    I$MOVEMENT_ID BIGINT NOT NULL,
    I$LEAVEDATE DATE,
    I$LEAVEORDERNUMBER VARCHAR(4000) NOT NULL,
    I$LEAVEORDERDATE DATE NOT NULL,
    I$LEAVEREASON BIGINT,
    I$LEAVEBASEMENT BIGINT,
    I$USER_ID BIGINT = NULL,
    I$NEW_JOB_ID BIGINT = NULL,
    I$RELEASE SMALLINT = 0)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_EMPLOYEE_VACANCY_LIST (
    I$EMPLOYEE_ID BIGINT,
    I$LIST_TYPE SMALLINT = 1,
    I$USER_ID BIGINT = 1)
RETURNS (
    OBJ_ID BIGINT,
    PARENT_ID BIGINT,
    OBJ_CAPTION VARCHAR(4000),
    COLUMN1 NUMERIC(15,2),
    COLUMN2 VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_ENTERING_CLASS_LIST (
    I$PUPIL_ID BIGINT,
    I$USER_ID BIGINT = 1)
RETURNS (
    OBJ_ID BIGINT,
    OBJ_CAPTION VARCHAR(4000),
    SORT_ORDER DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_ENTERING_TRANSFER (
    I$PUPIL_ID BIGINT,
    I$CLASS_ID BIGINT,
    I$USER_ID BIGINT,
    I$OLDLINK_DEL_FL SMALLINT = 1)
RETURNS (
    OBJ_ID BIGINT,
    TYPE_ID BIGINT,
    PARENT_ID BIGINT,
    USER_ID BIGINT,
    DATE_INS TIMESTAMP,
    DATE_DEL TIMESTAMP,
    SORT_ORDER DOUBLE PRECISION,
    CAPTION VARCHAR(4000),
    HAS_CHILD INTEGER,
    COLOR INTEGER,
    TAB_ID BIGINT,
    TYPE_ORDER SMALLINT,
    LINK_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_EXTMOVEMENT_MAXDATE (
    I$PUPIL_ID BIGINT)
RETURNS (
    ACTION_DATE DATE)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_GRADE_CURRICULUM_LIST (
    I$GRADE_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    CURRICULUM_ID BIGINT,
    CURRICULUM_CAPTION VARCHAR(4000),
    GRADE_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_GRADE_GROUPS_LIST (
    I$GRADE_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    GROUP_ID BIGINT,
    GROUP_SUBJECT_ID BIGINT,
    GROUP_CAPTION VARCHAR(4000),
    SUBJECT_ID BIGINT,
    SUBJECT_CAPTION VARCHAR(4000),
    SUBGROUP_ID BIGINT,
    SUBGROUP_CAPTION VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_GRADE_LOADING_LIST (
    I$GRADE_ID BIGINT,
    I$CURRICULUM_ID BIGINT)
RETURNS (
    LOADING_ID BIGINT,
    STAGE_LOADING_ID BIGINT,
    SUBJECT_ID BIGINT,
    CURRICULUM_SUBJECT_ID BIGINT,
    SUBGROUP_ID BIGINT,
    TEACHER_ID BIGINT,
    TEACHER_CAPTION VARCHAR(4000),
    OO_PARTNER_ID BIGINT,
    OO_PARTNER_CAPTION VARCHAR(4000),
    OOOD_PARTNER INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_GRADE_OO_PARTNERS_LIST (
    I$GRADE_ID BIGINT)
RETURNS (
    OO_PARTNER_ID BIGINT,
    OO_PARTNER_CAPTION VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_GRADE_SUBJECTS_LIST (
    I$GRADE_ID BIGINT,
    I$CURRICULUM_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    STAGE_ID BIGINT,
    STAGE_LOADING_ID BIGINT,
    SUBJECT_ID BIGINT,
    SUBJECT_CAPTION VARCHAR(4000),
    STAGE_LOADING_PERIOD INTEGER,
    STAGE_LOADING_LIMIT INTEGER,
    VAL INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_GRADE_TEACHERS_LIST (
    I$GRADE_ID BIGINT,
    I$NOT_ONLY_PEDAGOGS SMALLINT = 0)
RETURNS (
    TEACHER_ID BIGINT,
    TEACHER_CAPTION VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_GRADE_TEACHER_L_LIST (
    I$TEACHER_ID BIGINT,
    I$GRADE_ID BIGINT = null,
    I$FILTER_VD SMALLINT = 1)
RETURNS (
    PLAN_ID BIGINT,
    CJ_ID BIGINT,
    SUBJECT_ID BIGINT,
    SUBJECT_CAPTION VARCHAR(4000),
    GROUP_CAPTION VARCHAR(4000),
    STAGE_ID BIGINT,
    HOURS DOUBLE PRECISION,
    WEEKS DOUBLE PRECISION,
    SUBJECT_LOADING DOUBLE PRECISION,
    PLAN_TYPE VARCHAR(40))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_GROUP_SUBJECTS_LIST (
    I$OBJ_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    OBJ_CAPTION VARCHAR(4000),
    SORT_ORDER DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_GROUP_SUBJECTS_LISTOLD (
    I$OBJ_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    OBJ_CAPTION VARCHAR(4000),
    SORT_ORDER DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_INPUT_STAGE_LIST (
    I$PUPIL_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    COLOR INTEGER,
    OBJ_CAPTION VARCHAR(4000),
    SORT_ORDER DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_INVENTORY_CARD_LIST (
    I$PARENT_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    OBJ_CAPTION VARCHAR(4000),
    INVENTORY_NUMBER VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_KINSFOLK_LIST (
    I$OBJ_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    OBJ_CAPTION VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_LIST_STAGE_PUPILS (
    STAGE_ID BIGINT)
RETURNS (
    CLASS_NAME VARCHAR(1000),
    PUPIL_NAME VARCHAR(1000),
    PUPIL_ID BIGINT,
    SEL_SUBJECTS VARCHAR(1000),
    SEL_GROUPS VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_LIST_STAGE_SUBJECTS_SE (
    STAGE_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    CAPTION VARCHAR(1000),
    HAS_GROUPS SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_LIST_STREAMS (
    STAGE_ID BIGINT,
    SUBJECT_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    CAPTION VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_LOADING_CLASS_LIST (
    I$STAGE_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    OBJ_CAPTION VARCHAR(4000),
    SORT_ORDER DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_LOADING_COLUMNS (
    I$OBJ_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    OBJ_CAPTION VARCHAR(4000),
    SORT_ORDER DOUBLE PRECISION,
    LOADING_IN_WEEK INTEGER,
    LOADING_WEEK_COUNT INTEGER,
    WEEKS BIGINT,
    STAGE_TYPE BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_LOADING_COMPONENTS (
    I$OBJ_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    OBJ_CAPTION VARCHAR(4000),
    COMPONENT_ID BIGINT,
    STANDARD_ID BIGINT,
    LEVEL_ID BIGINT,
    PROFILE_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_LOADING_EXTERNAL_LIST (
    I$STAGE_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    OBJ_CAPTION VARCHAR(4000),
    SORT_ORDER DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_LOADING_PUPIL_LIST (
    I$STAGE_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    OBJ_ID2 BIGINT,
    OBJ_CAPTION VARCHAR(4000),
    OBJ_CAPTION2 VARCHAR(4000),
    TYPE_ID BIGINT,
    TYPE_ID2 BIGINT,
    SORT_ORDER DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_LOADING_ST_CLASS_LIST (
    I$STAGE_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    OBJ_CAPTION VARCHAR(4000),
    SORT_ORDER DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_LOADING_ST_STREAM_LIST (
    I$STAGE_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    OBJ_CAPTION VARCHAR(4000),
    SORT_ORDER DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_LOADING_ST_UNION_LIST (
    I$STAGE_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    OBJ_CAPTION VARCHAR(4000),
    SORT_ORDER DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_LOADING_SUBJECTS (
    I$COMPONENT_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    OBJ_CAPTION VARCHAR(4000),
    SORT_ORDER DOUBLE PRECISION,
    OBJ302_CAPTION VARCHAR(1000),
    IS_SELECTABLE SMALLINT,
    REPLACE_ID BIGINT,
    IS_PROFILE SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_LOADING_VALS_ADD (
    I$OBJ_ID BIGINT,
    I$STAGE_ID BIGINT,
    I$SUBJECT_ID BIGINT,
    I$COMPONENT_ID BIGINT,
    I$VAL INTEGER,
    I$WEEKS INTEGER,
    I$OOOD_PARTNER INTEGER,
    I$LESSON_METHOD_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_LOADING_VALS_LIST (
    I$OBJ_ID BIGINT,
    I$COMPONENT_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    STAGE_ID BIGINT,
    SUBJECT_ID BIGINT,
    COMPONENT_ID BIGINT,
    OBJ_ID BIGINT,
    STAGE_LOADING_PERIOD INTEGER,
    STAGE_LOADING_LIMIT INTEGER,
    VAL INTEGER,
    WEEKS INTEGER,
    UMK1 INTEGER,
    UMK2 INTEGER,
    UMK3 INTEGER,
    UMK4 INTEGER,
    UMK5 INTEGER,
    OOOD_PARTNER INTEGER,
    LESSON_METHOD_ID BIGINT,
    LESSON_METHOD VARCHAR(255))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_MAKER_LIST RETURNS (
    LISTVAL_ID BIGINT,
    PARENT_ID BIGINT,
    VAL VARCHAR(1000),
    VAL_LONG VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_MOVEMENT_IS_OUT_IN (
    I$PUPIL_ID BIGINT)
RETURNS (
    IS_OUT_IN SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_MOVEMENT_MAXDATE (
    I$PUPIL_ID BIGINT)
RETURNS (
    ACTION_DATE DATE)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_NOT_LINKED_LIST_KK (
    I$OBJ_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    OBJ_CAPTION VARCHAR(4000),
    SORT_ORDER DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_PERIODS_ST_CLASS_LIST (
    I$PERIOD_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    OBJ_CAPTION VARCHAR(4000),
    SORT_ORDER DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_PERIODS_ST_GUP_LIST (
    I$PERIOD_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    OBJ_CAPTION VARCHAR(4000),
    SORT_ORDER DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_PERIODS_ST_STM_LIST (
    I$PERIOD_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    OBJ_CAPTION VARCHAR(4000),
    SORT_ORDER DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_PERIODS_ST_VGRP_LIST (
    I$PERIOD_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    OBJ_CAPTION VARCHAR(4000),
    SORT_ORDER DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_PTP_LINK_LIST (
    I$OBJ_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    PARENT_ID BIGINT,
    OBJ_CAPTION VARCHAR(4000),
    SORT_ORDER DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_PUPIL_NOT_LINKED_LIST (
    I$GROUP_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    PARENT_ID BIGINT,
    OBJ_CAPTION VARCHAR(4000),
    SORT_ORDER DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_PUPIL_REVERT (
    I$PUPIL_ID BIGINT,
    I$MOVEMENT_ID BIGINT)
RETURNS (
    X SMALLINT,
    OBJ_ID BIGINT,
    OBJ_CAPTION VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_RECALC_EMPLOYEES (
    I$OBJ_ID BIGINT,
    I$OPTION INTEGER = 0)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_REF_SUBJECTS RETURNS (
    OBJ_ID BIGINT,
    PARENT_ID BIGINT,
    OBJ_CAPTION VARCHAR(4000),
    SORT_ORDER DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_REPORT_335 (
    I$SCHOOLLEVEL INTEGER)
RETURNS (
    AREA_VALUE VARCHAR(400),
    REGION_VALUE VARCHAR(400),
    CNT_SCOOL_994 INTEGER,
    CNT_WORKER_994 INTEGER,
    CNT_TEACHER_994 INTEGER,
    CNT_SCOOL_1003 INTEGER,
    CNT_WORKER_1003 INTEGER,
    CNT_TEACHER_1003 INTEGER,
    CNT_SCOOL_1021 INTEGER,
    CNT_WORKER_1021 INTEGER,
    CNT_TEACHER_1021 INTEGER,
    TYPE_OOOD VARCHAR(10))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_REPORT_336 (
    I$SCHOOLLEVEL INTEGER)
RETURNS (
    AREA_VALUE VARCHAR(400),
    REGION_VALUE VARCHAR(400),
    CNT_SCOOL INTEGER,
    CNT_DISTRICT INTEGER,
    CNT_PUPIL_IN_DISTRICT INTEGER,
    CNT_PUPIL INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_REPORT_VCN (
    I$OOOD_ID BIGINT)
RETURNS (
    OOOD_ID BIGINT,
    OOOD_NAME VARCHAR(100),
    VAK_TAG VARCHAR(20),
    VAC_ID BIGINT,
    VAC_CAPTION VARCHAR(100),
    FIO_OUT_ID BIGINT,
    FIO_OUT VARCHAR(100),
    DATE_EVENTS_OUT DATE,
    STAVOK_OUT DOUBLE PRECISION,
    FIO_IN_ID BIGINT,
    FIO_IN VARCHAR(100),
    DATE_EVENTS_IN DATE,
    STAVOK_IN DOUBLE PRECISION,
    COMMENT VARCHAR(500))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_ROOMS_LIST (
    I$OBJ_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    ROOM_ID BIGINT,
    ROOM_CAPTION VARCHAR(4000),
    ROOM_NUMBER VARCHAR(100),
    IS_SERVICE_ROOM SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_ROOMS_TREE_LIST (
    I$OBJ_ID BIGINT,
    I$NOT_SERVICE SMALLINT = 0,
    I$USER_ID BIGINT = null)
RETURNS (
    OBJ_ID BIGINT,
    PARENT_ID BIGINT,
    OBJ_CAPTION VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_SUBGROUP_COPY (
    I$OLD_GROUP_ID BIGINT,
    I$SUBJECT_ID BIGINT,
    I$USER_ID BIGINT,
    I$MOVE_DATE DATE = null)
RETURNS (
    NEW_GROUP_ID BIGINT,
    NEW_GROUP_CAPTION VARCHAR(4000),
    NEW_GROUP_COLOR INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_SUBGROUP_SUBJECT_LIST (
    I$OBJ_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    PARENT_ID BIGINT,
    OBJ_CAPTION VARCHAR(4000),
    SORT_ORDER DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_SUBJECTS_LIST (
    I$OBJ_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    OBJ_CAPTION VARCHAR(1000),
    SORT_ORDER DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_SUBJECT_LINK_LIST (
    I$OBJ_ID BIGINT,
    I$USER_ID BIGINT,
    I$ROOT_ID BIGINT = NULL)
RETURNS (
    OBJ_ID BIGINT,
    PARENT_ID BIGINT,
    OBJ_CAPTION VARCHAR(4000),
    SORT_ORDER DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_TEACHERS_COUNT (
    I$SCHOOL_ID BIGINT)
RETURNS (
    X INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_TEACHERS_COUNT_DISTR (
    I$OBJ_ID BIGINT)
RETURNS (
    X INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_TRANSFER_STAGE_LIST (
    I$PUPIL_ID BIGINT,
    I$CLASS_ID BIGINT,
    I$USER_ID BIGINT,
    I$EXTERNAT_ONLY SMALLINT = 0)
RETURNS (
    OBJ_ID BIGINT,
    COLOR INTEGER,
    OBJ_CAPTION VARCHAR(4000),
    SORT_ORDER DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_TYPE_LEVEL (
    I$PARENT_ID BIGINT,
    I$LINKED_TYPE_ID BIGINT,
    I$LEVEL SMALLINT = 1)
RETURNS (
    OBJ_ID BIGINT,
    PARENT_ID BIGINT,
    OBJ_CAPTION VARCHAR(4000),
    SORT_ORDER DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_TYPE_NOT_LINKED_LIST (
    I$PARENT_TYPE_ID BIGINT,
    I$LINKED_TYPE_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$USER_ID BIGINT,
    I$CHECK_PARENT_TYPE_ID BIGINT = null,
    I$ROOT_PARENT_ID BIGINT = null,
    I$ROOT_TYPE_ID BIGINT = null)
RETURNS (
    OBJ_ID BIGINT,
    PARENT_ID BIGINT,
    OBJ_CAPTION VARCHAR(4000),
    SORT_ORDER DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_TYPE_REFERENSE_LIST (
    I$TYPE_ID BIGINT,
    I$PARAM_ID BIGINT = null)
RETURNS (
    OBJ_ID BIGINT,
    OBJ_CAPTION VARCHAR(4000),
    SORT_ORDER DOUBLE PRECISION,
    PARAM_CAPTION VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_UDOD_PUPIL_REVERT (
    I$PUPIL_ID BIGINT,
    I$MOVEMENT_ID BIGINT)
RETURNS (
    X SMALLINT,
    OBJ_ID BIGINT,
    OBJ_CAPTION VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_UMK1_LIST (
    I$OBJ_ID BIGINT,
    I$SUBJECT_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    TYPE_ID BIGINT,
    CAPTION VARCHAR(1000),
    AUTHOR VARCHAR(1000),
    HAS_LINK SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_UMK2_LIST (
    I$OBJ_ID BIGINT,
    I$RES_TYPE SMALLINT = 1,
    I$USER_ID BIGINT = null)
RETURNS (
    OBJ_ID BIGINT,
    TYPE_ID BIGINT,
    SUBJECT VARCHAR(1000),
    GROUP_NAME VARCHAR(1000),
    CAPTION VARCHAR(1000),
    TOTAL VARCHAR(50),
    PUBLISHER VARCHAR(1000),
    AUTHOR VARCHAR(1000),
    PUBLIESHED_YEAR VARCHAR(20),
    HAS_LINK SMALLINT,
    IS_FPU VARCHAR(20),
    YEAR_REMOVE VARCHAR(10),
    SUBJECT_AREA VARCHAR(200),
    STUDENTS_NUM INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_UMK3_LIST (
    I$OBJ_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    TYPE_ID BIGINT,
    SUBJECT VARCHAR(1000),
    GROUP_NAME VARCHAR(1000),
    CAPTION VARCHAR(1000),
    TOTAL VARCHAR(50),
    SUBGROUP_NAME VARCHAR(1000),
    AUTHOR VARCHAR(1000),
    PUBLIESHED_YEAR VARCHAR(20),
    HAS_LINK SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_VACANCY_LIST (
    I$USER_ID BIGINT = 1)
RETURNS (
    OBJ_ID BIGINT,
    OBJ_CAPTION VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_VACANCY_LIST2 (
    I$SCHOOL_ID BIGINT,
    I$EMPLOYEE_ID BIGINT = NULL,
    I$USER_ID BIGINT = NULL)
RETURNS (
    ID BIGINT,
    PARENT_ID BIGINT,
    OBJ_ID BIGINT,
    OBJ_CAPTION VARCHAR(4000),
    COLUMN1 NUMERIC(18,5),
    COLUMN2 VARCHAR(100),
    T DOUBLE PRECISION,
    TFREE DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_VACANCY_LIST3 (
    I$SCHOOL_ID BIGINT,
    I$EMPLOYEE_ID BIGINT = NULL,
    I$USER_ID BIGINT = NULL,
    I$MOVEMENT_ID BIGINT = NULL)
RETURNS (
    ID BIGINT,
    PARENT_ID BIGINT,
    OBJ_ID BIGINT,
    OBJ_CAPTION VARCHAR(4000),
    COLUMN1 NUMERIC(15,2),
    COLUMN2 VARCHAR(100),
    CAT_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAGRAF_VACANCY_VERIFY (
    I$SCHOOL_ID BIGINT,
    I$EMPLOYEE_ID BIGINT,
    I$VACANCY_ID BIGINT,
    I$MOVEMENT_ID BIGINT,
    I$RATECOUNT DOUBLE PRECISION,
    I$ACCEPTCONDITION BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE PARAMS_LIST (
    I$TYPE_ID BIGINT,
    I$LANG_CODE VARCHAR(2) = 'RU')
RETURNS (
    PARAM_ID BIGINT,
    LANG_CODE VARCHAR(2),
    PARAM_CAPTION VARCHAR(4000),
    SIZE_CAPTION VARCHAR(1000),
    TYPE_ID BIGINT,
    PARAM_TYPE SMALLINT,
    VAL_TYPE VARCHAR(100),
    BKG_COLOR INTEGER,
    LIST_ID BIGINT,
    TAB_ID BIGINT,
    GRID_ORDER SMALLINT,
    IS_TREESORT SMALLINT,
    IS_TREEVIEW SMALLINT,
    IS_REQUIRED SMALLINT,
    IS_HISTORY SMALLINT,
    RES_ID BIGINT,
    SIZE_RES_ID BIGINT,
    HINT_RES_ID BIGINT,
    HINT_CAPTION VARCHAR(4000),
    DO_FUNC VARCHAR(100),
    EDIT_MASK VARCHAR(200),
    RUN_SQL VARCHAR(1000),
    IS_AUTO_CREATE SMALLINT,
    AUTO_RES_ID BIGINT,
    AUTO_CAPTION VARCHAR(4000),
    AUTO_LISTVAL_ID BIGINT,
    FOR_REPL_UP SMALLINT,
    FOR_REPL_DOWN SMALLINT,
    TAG VARCHAR(100),
    IS_DEL SMALLINT,
    IS_LINK_REFERENSE SMALLINT,
    LINK_REFERENSE_TYPE_ID BIGINT,
    DO_CHECK SMALLINT,
    DO_CHECK_EVENT SMALLINT,
    BEGIN_GROUP SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAMTYPES_LIST RETURNS (
    PARAM_TYPE SMALLINT,
    VAL_TYPE VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAM_ADD (
    I$PARAM_ID BIGINT,
    I$TYPE_ID BIGINT,
    I$PARAM_TYPE SMALLINT,
    I$LIST_ID BIGINT,
    I$AUTO_LISTVAL_ID BIGINT,
    I$TAB_ID BIGINT,
    I$IS_TREESORT SMALLINT,
    I$IS_TREEVIEW SMALLINT,
    I$IS_REQUIRED SMALLINT,
    I$IS_HISTORY SMALLINT,
    I$RES_ID BIGINT,
    I$HINT_RES_ID BIGINT,
    I$SIZE_RES_ID BIGINT,
    I$AUTO_RES_ID BIGINT,
    I$DO_FUNC VARCHAR(100),
    I$EDIT_MASK VARCHAR(200),
    I$RUN_SQL VARCHAR(1000),
    I$IS_AUTO_CREATE SMALLINT,
    I$FOR_REPL_UP SMALLINT,
    I$FOR_REPL_DOWN SMALLINT,
    I$TAG VARCHAR(100),
    I$LANG_CODE CHAR(2),
    I$PARAM_CAPTION VARCHAR(4000),
    I$HINT_CAPTION VARCHAR(4000),
    I$SIZE_CAPTION VARCHAR(1000),
    I$AUTO_CAPTION VARCHAR(4000),
    I$IS_DEL SMALLINT = 0,
    I$IS_LINK_REFERENSE SMALLINT = 0,
    I$LINK_REFERENSE_TYPE_ID BIGINT = null,
    I$DO_CHECK SMALLINT = 0,
    I$DO_CHECK_EVENT SMALLINT = 0,
    I$BEGIN_GROUP SMALLINT = 0)
RETURNS (
    PARAM_ID BIGINT,
    RES_ID BIGINT,
    HINT_RES_ID BIGINT,
    SIZE_RES_ID BIGINT,
    AUTO_RES_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAM_CAPTION_GET (
    I$OBJ_ID BIGINT,
    I$PARAM_ID BIGINT,
    I$LEVEL_ID BIGINT,
    I$LANG_CODE VARCHAR(2),
    I$ADD_PARAM_SIZE SMALLINT = 0)
RETURNS (
    CAPTION VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAM_GET (
    I$PARAM_ID BIGINT,
    I$LANG_CODE VARCHAR(2) = 'RU')
RETURNS (
    PARAM_ID BIGINT,
    LANG_CODE VARCHAR(2),
    PARAM_CAPTION VARCHAR(4000),
    SIZE_CAPTION VARCHAR(1000),
    TYPE_ID BIGINT,
    PARAM_TYPE SMALLINT,
    VAL_TYPE VARCHAR(100),
    BKG_COLOR INTEGER,
    LIST_ID BIGINT,
    TAB_ID BIGINT,
    GRID_ORDER SMALLINT,
    IS_TREESORT SMALLINT,
    IS_TREEVIEW SMALLINT,
    IS_REQUIRED SMALLINT,
    IS_HISTORY SMALLINT,
    RES_ID BIGINT,
    SIZE_RES_ID BIGINT,
    HINT_RES_ID BIGINT,
    HINT_CAPTION VARCHAR(4000),
    DO_FUNC VARCHAR(100),
    EDIT_MASK VARCHAR(200),
    RUN_SQL VARCHAR(1000),
    IS_AUTO_CREATE SMALLINT,
    AUTO_RES_ID BIGINT,
    AUTO_CAPTION VARCHAR(4000),
    AUTO_LISTVAL_ID BIGINT,
    FOR_REPL_UP SMALLINT,
    FOR_REPL_DOWN SMALLINT,
    TAG VARCHAR(100),
    IS_DEL SMALLINT,
    IS_LINK_REFERENSE SMALLINT,
    LINK_REFERENSE_TYPE_ID BIGINT,
    BEGIN_GROUP SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAM_GET_BY_CAPTION (
    I$TYPE_ID BIGINT,
    I$PARAM_CAPTION VARCHAR(1000),
    I$LANG_CODE VARCHAR(2) = 'RU')
RETURNS (
    TYPE_ID BIGINT,
    PARAM_ID BIGINT,
    PARAM_TYPE SMALLINT,
    LIST_ID BIGINT,
    LINK_REFERENSE_TYPE_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAM_GET_DO_OP_DIRECTION (
    OBJ_ID BIGINT)
RETURNS (
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAM_GET_DO_OP_LIST (
    OBJ_ID BIGINT)
RETURNS (
    OP_ID BIGINT,
    OP_CAPTION VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARAM_MOVE (
    I$PARAM_ID BIGINT,
    I$MOVE SMALLINT)
RETURNS (
    GRID_ORDER SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARENTS_ADD (
    I$TYPE_ID BIGINT,
    I$CHILD_ID BIGINT,
    I$IS_ADD SMALLINT,
    I$IS_INTERNAL_ADD SMALLINT,
    I$IS_COPY SMALLINT,
    I$IS_CUT SMALLINT,
    I$IS_LINK SMALLINT,
    I$DO_FUNC SMALLINT,
    I$IS_FROM_LIST SMALLINT,
    I$RUN_SQL VARCHAR(1000),
    I$IS_AUTO_CREATE SMALLINT,
    I$TAB_ID BIGINT,
    I$IS_REPL SMALLINT,
    I$IS_DEL SMALLINT,
    I$IS_DELETE_OTHER_LINKS SMALLINT,
    I$IS_SELECT SMALLINT,
    I$IS_TAB_VERTICAL_ALIGNMENT SMALLINT,
    I$EXT_TYPE_ID BIGINT,
    I$SHOW_ALL_FIELDS SMALLINT = null,
    I$RUN_FUNCTION SMALLINT = null)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE PARENTS_LIST (
    I$TYPE_ID BIGINT,
    I$LANG_CODE CHAR(2) = 'RU')
RETURNS (
    TYPE_ID BIGINT,
    RES_ID BIGINT,
    CHILD_ID BIGINT,
    IS_ADD SMALLINT,
    IS_INTERNAL_ADD SMALLINT,
    IS_COPY SMALLINT,
    IS_CUT SMALLINT,
    IS_LINK SMALLINT,
    DO_FUNC SMALLINT,
    IS_FROM_LIST SMALLINT,
    RUN_SQL VARCHAR(1000),
    IS_AUTO_CREATE SMALLINT,
    TAB_ID BIGINT,
    IS_REPL SMALLINT,
    IS_DEL SMALLINT,
    TYPE_CAPTION VARCHAR(4000),
    IS_DELETE_OTHER_LINKS SMALLINT,
    IS_SELECT SMALLINT,
    IS_TAB_VERTICAL_ALIGNMENT SMALLINT,
    EXT_TYPE_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARENT_ACCOUNT_INFO (
    I$OBJ_ID BIGINT)
RETURNS (
    USER_NAME VARCHAR(100),
    USER_ID BIGINT,
    IS_BLOCKED SMALLINT,
    VALID_TO DATE)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARENT_CHILDREN_LIST (
    I$PARENT_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    OBJ_CAPTION VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARENT_REF_DOU (
    I$STUDENT_ID BIGINT,
    I$PARENT_ID BIGINT)
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PARSING_STRING_GET (
    I$STRING VARCHAR(4000),
    I$SEPARATOR VARCHAR(10))
RETURNS (
    TAKEN VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PAUTH_APPLY (
    I$GRADE_ID BIGINT,
    I$PARENT_ID BIGINT,
    I$PWD VARCHAR(40),
    I$USER_ID VARCHAR(40))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE PAUTH_CONTENT (
    I$GRADE_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    CAPTION VARCHAR(400),
    PARENT_ID BIGINT,
    PARENT_CAPTION VARCHAR(400),
    PARENT_EMAIL VARCHAR(200),
    PARENT_CFM SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PAUTH_REPORT (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    CHILD_ID BIGINT,
    OBJ_ID BIGINT,
    CHILD_NAME VARCHAR(400),
    CAPTION VARCHAR(400),
    USER_EMAIL VARCHAR(100),
    REG_DATE VARCHAR(40),
    LAST_DATE VARCHAR(40),
    AVG_RATE FLOAT,
    IS_BLOCKED INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PAUTH_RESET (
    I$PARENT_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$PWD VARCHAR(40),
    I$USER_ID VARCHAR(40))
RETURNS (
    EMAIL VARCHAR(400),
    OBJ_ID BIGINT,
    USERNAME VARCHAR(400),
    OU_NAME VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PBDOO_SERIALIZE (
    I$VERSION VARCHAR(100))
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PD_CONTENT_GET (
    I$PERSON_ID BIGINT,
    I$ZONE SMALLINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(40),
    VAL VARCHAR(2000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PERIOD_VERIFY (
    I$OBJ_ID BIGINT,
    I$VAL BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE PERSON_FMARKS (
    I$UUID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PERSON_JOB_DETAILS (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PERSON_MOVEMENTS_GET (
    I$PARENT_ID FLOAT,
    I$OBJ_ID BIGINT,
    I$LEVEL_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PERSON_PATH_GET (
    REG_ID VARCHAR(40))
RETURNS (
    OBJ_ID BIGINT,
    TYPE_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PF_BUILDINGS (
    I$OBJ_ID BIGINT,
    I$BLOCK_NAME VARCHAR(40),
    I$BLOCK_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PF_BUILDINGS_DIST (
    I$OBJ_ID BIGINT,
    I$BLOCK_NAME VARCHAR(40),
    I$BLOCK_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PF_BUILDINGS_OU (
    I$OBJ_ID BIGINT,
    I$BLOCK_NAME VARCHAR(40),
    I$BLOCK_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PF_BUILDINGS_RGN (
    I$OBJ_ID BIGINT,
    I$BLOCK_NAME VARCHAR(40),
    I$BLOCK_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PF_CONTENT_GET (
    I$PERSON_ID BIGINT,
    I$ZONE INTEGER,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PF_EDU (
    I$OBJ_ID BIGINT,
    I$BLOCK_NAME VARCHAR(40),
    I$BLOCK_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PF_EDU_DIST (
    I$OBJ_ID BIGINT,
    I$BLOCK_NAME VARCHAR(40),
    I$BLOCK_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PF_EDU_OU (
    I$OBJ_ID BIGINT,
    I$BLOCK_NAME VARCHAR(40),
    I$BLOCK_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PF_EDU_RGN (
    I$OBJ_ID BIGINT,
    I$BLOCK_NAME VARCHAR(40),
    I$BLOCK_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PF_EQUIPMENT (
    I$OBJ_ID BIGINT,
    I$BLOCK_NAME VARCHAR(40),
    I$BLOCK_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PF_EQUIPMENT_DIST (
    I$OBJ_ID BIGINT,
    I$BLOCK_NAME VARCHAR(40),
    I$BLOCK_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PF_EQUIPMENT_OU (
    I$OBJ_ID BIGINT,
    I$BLOCK_NAME VARCHAR(40),
    I$BLOCK_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PF_EQUIPMENT_RGN (
    I$OBJ_ID BIGINT,
    I$BLOCK_NAME VARCHAR(40),
    I$BLOCK_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PF_ITEM_DELETE (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE PF_ITEM_DO_GET (
    I$PERSON_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$ZONE SMALLINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PF_ITEM_DO_SET (
    I$PERSON_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$OO_VED_ID BIGINT,
    I$DIRECTION BIGINT,
    I$FIN_ID BIGINT,
    I$OO_NAME VARCHAR(1000),
    I$GRADE_NAME VARCHAR(1000),
    I$DUR INTEGER,
    I$STAGE INTEGER,
    I$DATE_IN DATE,
    I$DATE_OUT DATE,
    I$VER SMALLINT NOT NULL,
    I$USER_ID VARCHAR(40))
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PF_ITEM_PF_GET (
    I$PERSON_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$PART BIGINT NOT NULL,
    I$ZONE SMALLINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PF_ITEM_PF_SET (
    I$PERSON_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$PART BIGINT,
    I$DATE DATE,
    I$LEVEL BIGINT,
    I$RESULT BIGINT,
    I$SPORT BIGINT,
    I$NAME VARCHAR(1000),
    I$THEME VARCHAR(1000),
    I$VER SMALLINT NOT NULL,
    I$USER_ID VARCHAR(40))
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PF_KPI (
    I$OBJ_ID BIGINT,
    I$BLOCK_NAME VARCHAR(40),
    I$BLOCK_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PF_KPI_OU (
    I$OBJ_ID BIGINT,
    I$BLOCK_NAME VARCHAR(40),
    I$BLOCK_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PF_PERSONS_LIST (
    I$ZONE INTEGER,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PF_PORTFOLIO (
    I$OBJ_ID BIGINT,
    I$BLOCK_NAME VARCHAR(40),
    I$BLOCK_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PF_PORTFOLIO_DIST (
    I$OBJ_ID BIGINT,
    I$BLOCK_NAME VARCHAR(40),
    I$BLOCK_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PF_PORTFOLIO_OU (
    I$OBJ_ID BIGINT,
    I$BLOCK_NAME VARCHAR(40),
    I$BLOCK_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PF_PORTFOLIO_RGN (
    I$OBJ_ID BIGINT,
    I$BLOCK_NAME VARCHAR(40),
    I$BLOCK_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PF_STUDENTS (
    I$OBJ_ID BIGINT,
    I$BLOCK_NAME VARCHAR(40),
    I$BLOCK_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PF_STUDENTS_DIST (
    I$OBJ_ID BIGINT,
    I$BLOCK_NAME VARCHAR(40),
    I$BLOCK_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PF_STUDENTS_OU (
    I$OBJ_ID BIGINT,
    I$BLOCK_NAME VARCHAR(40),
    I$BLOCK_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PF_STUDENTS_RGN (
    I$OBJ_ID BIGINT,
    I$BLOCK_NAME VARCHAR(40),
    I$BLOCK_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PF_STUFF (
    I$OBJ_ID BIGINT,
    I$BLOCK_NAME VARCHAR(40),
    I$BLOCK_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PF_STUFF_DIST (
    I$OBJ_ID BIGINT,
    I$BLOCK_NAME VARCHAR(40),
    I$BLOCK_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PF_STUFF_OU (
    I$OBJ_ID BIGINT,
    I$BLOCK_NAME VARCHAR(40),
    I$BLOCK_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PF_STUFF_RGN (
    I$OBJ_ID BIGINT,
    I$BLOCK_NAME VARCHAR(40),
    I$BLOCK_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PLANTMPL_OP_LIST (
    I$OBJ_ID BIGINT,
    I$USER_ID BIGINT = NULL)
RETURNS (
    LISTVAL_ID BIGINT,
    PARENT_ID BIGINT,
    VAL VARCHAR(4000),
    VAL_LONG VARCHAR(4000),
    TAG VARCHAR(100),
    "FILTER" VARCHAR(255))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PLAN_CHECK_SAVE (
    I$PLAN_ID BIGINT,
    I$TIMEMARK VARCHAR(40),
    I$USER_ID VARCHAR(40))
RETURNS (
    TIMEMARK VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PLAN_CLEANUP
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE PLAN_CONTENT_GET (
    I$OBJ_ID BIGINT,
    I$USER_ID BIGINT = null)
RETURNS (
    LISTVAL_ID BIGINT,
    PARENT_ID BIGINT,
    VAL VARCHAR(4000),
    VAL_LONG VARCHAR(4000),
    TAG VARCHAR(100),
    "FILTER" VARCHAR(255))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PLAN_COUNT_CLASS_ADD
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE PLAN_COUNT_CLASS_DATA_GET RETURNS (
    UYEAR VARCHAR(100),
    P1 INTEGER,
    P2 INTEGER,
    P3 INTEGER,
    P4 INTEGER,
    P5 INTEGER,
    P6 INTEGER,
    P7 INTEGER,
    P8 INTEGER,
    P9 INTEGER,
    P10 INTEGER,
    P11 INTEGER,
    NYEAR INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PLAN_COUNT_CLASS_DATA_SET (
    I$P1 INTEGER,
    I$P2 INTEGER,
    I$P3 INTEGER,
    I$P4 INTEGER,
    I$P5 INTEGER,
    I$P6 INTEGER,
    I$P7 INTEGER,
    I$P8 INTEGER,
    I$P9 INTEGER,
    I$P10 INTEGER,
    I$P11 INTEGER,
    I$NYEAR INTEGER)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE PLAN_COUNT_CLASS_TRANSFER (
    I$USER_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE PLAN_COUNT_ODOD_ADD
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE PLAN_COUNT_ODOD_DISTRICT_ADD
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE PLAN_COUNT_PUPIL_ADD
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE PLAN_COUNT_PUPIL_DATA_GET RETURNS (
    UYEAR VARCHAR(100),
    P1 INTEGER,
    P2 INTEGER,
    P3 INTEGER,
    P4 INTEGER,
    P5 INTEGER,
    P6 INTEGER,
    P7 INTEGER,
    P8 INTEGER,
    P9 INTEGER,
    P10 INTEGER,
    P11 INTEGER,
    NYEAR INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PLAN_COUNT_PUPIL_DATA_SET (
    I$P1 INTEGER,
    I$P2 INTEGER,
    I$P3 INTEGER,
    I$P4 INTEGER,
    I$P5 INTEGER,
    I$P6 INTEGER,
    I$P7 INTEGER,
    I$P8 INTEGER,
    I$P9 INTEGER,
    I$P10 INTEGER,
    I$P11 INTEGER,
    I$NYEAR INTEGER)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE PLAN_COUNT_PUPIL_DISTRICT_ADD
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE PLAN_COUNT_PUPIL_REGION_ADD
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE PLAN_COUNT_PUPIL_TO_DISTR_COPY
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE PLAN_COUNT_PUPIL_TO_REGION_COPY
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE PLAN_COUNT_PUPIL_TRANSFER (
    I$USER_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE PLAN_DELETE_ROW (
    I$PLAN_ID BIGINT,
    I$ROW_ID BIGINT,
    I$USER_ID VARCHAR(40))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE PLAN_DELTA_SUBJECT_GET (
    I$PLAN_ID BIGINT,
    I$SRC_ID BIGINT,
    I$LEVEL_ID BIGINT)
RETURNS (
    N INTEGER,
    SUBJECTS_MISS VARCHAR(5000),
    SUBJECTS_MORE VARCHAR(5000),
    SUBJECTS_REPLACEMENT VARCHAR(5000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PLAN_DO_FUNC (
    I$OU_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$PARAM_ID BIGINT)
RETURNS (
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PLAN_EVENTS_TO_REGION_COPY
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE PLAN_GET (
    I$OBJ_ID BIGINT,
    I$APP VARCHAR(100),
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PLAN_GUP_RECALC (
    I$GUP_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE PLAN_HISTORY_REPORT (
    I$OBJ_ID BIGINT)
RETURNS (
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PLAN_IMPORT_CLEAR (
    OBJ_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE PLAN_IMPORT_LOAD (
    OBJ_ID BIGINT,
    COMPONENT_INDEX BIGINT,
    SUBJECT_ID BIGINT,
    STAGE_ID BIGINT,
    DURATION INTEGER,
    LOAD_HOURS INTEGER)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE PLAN_IMPORT_STAGE (
    OBJ_ID BIGINT,
    STAGE_INDEX INTEGER,
    WEEK_LENGTH INTEGER,
    DURATION INTEGER,
    WEEK_LOAD INTEGER)
RETURNS (
    STAGE_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PLAN_IMPORT_SUBJECT (
    OBJ_ID BIGINT,
    COMPONENT_INDEX BIGINT,
    SUBJECT_NAME VARCHAR(1000),
    MASTER_NAME VARCHAR(1000),
    IS_PROFILE INTEGER)
RETURNS (
    SUBJECT_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PLAN_IMPORT_TITLE (
    OBJ_ID BIGINT,
    STD_NUM INTEGER,
    PROFILE_NAME VARCHAR(1000))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE PLAN_KIND_GET (
    I$OBJ_ID BIGINT,
    I$USER_ID BIGINT = null)
RETURNS (
    LISTVAL_ID BIGINT,
    PARENT_ID BIGINT,
    VAL VARCHAR(4000),
    VAL_LONG VARCHAR(4000),
    TAG VARCHAR(100),
    "FILTER" VARCHAR(255))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PLAN_MM_GET (
    I$PLAN_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PLAN_ODOD_DATA_GET RETURNS (
    P1 INTEGER,
    P2 INTEGER,
    P3 INTEGER,
    P4 INTEGER,
    P5 INTEGER,
    P6 INTEGER,
    P7 INTEGER,
    UYEAR VARCHAR(100),
    NYEAR INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PLAN_ODOD_DATA_SET (
    I$P1 INTEGER,
    I$P2 INTEGER,
    I$P3 INTEGER,
    I$P4 INTEGER,
    I$P5 INTEGER,
    I$P6 INTEGER,
    I$P7 INTEGER,
    I$NYEAR INTEGER)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE PLAN_OO_GET (
    I$OBJ_ID BIGINT,
    I$USER_ID BIGINT = null)
RETURNS (
    LISTVAL_ID BIGINT,
    PARENT_ID BIGINT,
    VAL VARCHAR(4000),
    VAL_LONG VARCHAR(4000),
    TAG VARCHAR(100),
    "FILTER" VARCHAR(255))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PLAN_PERIOD_GET (
    I$USER_ID BIGINT = null)
RETURNS (
    LISTVAL_ID BIGINT,
    PARENT_ID BIGINT,
    VAL VARCHAR(4000),
    VAL_LONG VARCHAR(4000),
    TAG VARCHAR(100),
    "FILTER" VARCHAR(255))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PLAN_PROFILE_ADD
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE PLAN_PROFILE_DATA_GET RETURNS (
    NYEAR INTEGER,
    NPARAL INTEGER,
    UYEAR VARCHAR(100),
    UPARAL VARCHAR(20),
    P1 INTEGER,
    P2 INTEGER,
    P3 INTEGER,
    P4 INTEGER,
    P5 INTEGER,
    P6 INTEGER,
    P7 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PLAN_PROFILE_DATA_SET (
    I$P1 INTEGER,
    I$P2 INTEGER,
    I$P3 INTEGER,
    I$P4 INTEGER,
    I$P5 INTEGER,
    I$P6 INTEGER,
    I$P7 INTEGER,
    I$NYEAR INTEGER,
    I$NPARAL INTEGER)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE PLAN_PROFILE_VALIDATE (
    I$OBJ_ID BIGINT,
    I$STANDARD BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE PLAN_RECALC (
    I$PLAN_ID BIGINT,
    I$USER_ID VARCHAR(40))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE PLAN_REPORT_COUNT_ODOD_BY_OU RETURNS (
    OU_NAME VARCHAR(200),
    YEAR0 INTEGER,
    YEAR1 INTEGER,
    YEAR2 INTEGER,
    YEAR3 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PLAN_REPORT_COUNT_PUPIL_BY_DSTR RETURNS (
    DISTRICT_NAME VARCHAR(200),
    YEAR0 INTEGER,
    YEAR1 INTEGER,
    YEAR2 INTEGER,
    YEAR3 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PLAN_REPORT_COUNT_PUPIL_BY_OU RETURNS (
    OU_NAME VARCHAR(200),
    YEAR0 INTEGER,
    YEAR1 INTEGER,
    YEAR2 INTEGER,
    YEAR3 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PLAN_REPORT_DISTRICT_ALL_EVENTS (
    I$OBJ_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    P1 VARCHAR(500),
    P2 VARCHAR(500),
    P3 VARCHAR(500),
    P4 VARCHAR(500),
    P5 VARCHAR(500),
    P6 VARCHAR(500))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PLAN_REPORT_LOAD_BY_OU RETURNS (
    OU_NAME VARCHAR(200),
    YEAR0F INTEGER,
    YEAR0P INTEGER,
    YEAR1F INTEGER,
    YEAR1P INTEGER,
    YEAR2F INTEGER,
    YEAR2P INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PLAN_REPORT_YEARS_DOWN_3_GET (
    I$BEGIN VARCHAR(200),
    I$END VARCHAR(200))
RETURNS (
    YEAR11 VARCHAR(50),
    YEAR12 VARCHAR(50),
    YEAR21 VARCHAR(50),
    YEAR22 VARCHAR(50),
    YEAR31 VARCHAR(50),
    YEAR32 VARCHAR(50))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PLAN_REPORT_YEARS_UP_4_GET (
    I$BEGIN VARCHAR(200),
    I$END VARCHAR(200))
RETURNS (
    YEAR1 VARCHAR(50),
    YEAR2 VARCHAR(50),
    YEAR3 VARCHAR(50),
    YEAR4 VARCHAR(50))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PLAN_RESOURCES_SELECT (
    I$PLAN_ID BIGINT,
    I$SUBJECT_ID BIGINT,
    I$STAGE_ID BIGINT,
    I$RES_TYPE SMALLINT,
    I$USER_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    RES_ID BIGINT,
    CAPTION VARCHAR(4000),
    SUBJECT_NAME VARCHAR(1000),
    AVAIL_QTY DOUBLE PRECISION,
    QTY DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PLAN_RESOURCE_SAVE (
    I$SUBJECT_ID BIGINT NOT NULL,
    I$STAGE_ID BIGINT,
    I$RES_TYPE SMALLINT NOT NULL,
    I$RES_ID BIGINT NOT NULL,
    I$QTY DOUBLE PRECISION NOT NULL,
    I$USER_ID VARCHAR(40))
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PLAN_RES_GET (
    I$OBJ_ID BIGINT,
    I$RES_ID INTEGER,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PLAN_SAVE_LOAD (
    I$SUBJECT_ID BIGINT,
    I$STAGE_ID BIGINT,
    I$WEEKS SMALLINT,
    I$HOURS1 FLOAT,
    I$HOURS2 FLOAT,
    I$CONTROL1 BIGINT,
    I$CONTROL2 BIGINT,
    I$HTHEORY1 FLOAT,
    I$HPR1 FLOAT,
    I$HDX1 FLOAT,
    I$HIND1 FLOAT,
    I$HMAX FLOAT,
    I$HCR1 FLOAT,
    I$HATT1 FLOAT,
    I$HGIA FLOAT,
    I$HREST FLOAT,
    I$USER_ID VARCHAR(40))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE PLAN_SET_ROW (
    I$PLAN_ID BIGINT,
    I$ROW_ID BIGINT,
    I$PARENT_ID BIGINT,
    I$LEVEL_INDEX SMALLINT,
    I$SORT_INDEX SMALLINT,
    I$GLOBAL_INDEX SMALLINT,
    I$TYPE SMALLINT,
    I$FIELD_ID BIGINT,
    I$SUBJECT_ID BIGINT,
    I$SRC_SUBJECT_ID BIGINT,
    I$IS_ADV SMALLINT,
    I$IS_STM SMALLINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PLAN_SOO_SUBJECTS_MISS (
    I$PLAN_ID BIGINT,
    I$STD_ID BIGINT)
RETURNS (
    N INTEGER,
    SUBJECTS_MISS VARCHAR(5000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PLAN_STAGE_VERIFY (
    I$OBJ_ID BIGINT,
    I$USER_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE PLAN_SUBJECTS_SELECT (
    I$PLAN_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$FIELD_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    OBJ_ID BIGINT,
    CAPTION VARCHAR(1000),
    ROW_TYPE SMALLINT,
    FIELD_ID BIGINT,
    FIELD_CAPTION VARCHAR(1000),
    COLOR_ID SMALLINT,
    SUBTYPE_ID BIGINT,
    STYPE BIGINT,
    REF_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PLAN_SUBJECT_HOURS_NEQ (
    I$PLAN_ID BIGINT,
    I$SRC_PLAN_ID5 BIGINT,
    I$SRC_PLAN_ID6 BIGINT,
    I$STD_ID BIGINT,
    I$LEVEL_ID BIGINT,
    I$LANG2 SMALLINT)
RETURNS (
    SUBJECT_ID BIGINT,
    STAGE_ID BIGINT,
    HOURS FLOAT,
    CHECK_HOURS FLOAT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PLAN_SUBJECT_LINK_LIST (
    I$OBJ_ID BIGINT,
    I$USER_ID BIGINT,
    I$ROOT_ID BIGINT = null)
RETURNS (
    OBJ_ID BIGINT,
    PARENT_ID BIGINT,
    OBJ_CAPTION VARCHAR(4000),
    SORT_ORDER DOUBLE PRECISION,
    COLOR INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PLAN_SUBJECT_LIST (
    I$OBJ_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    PARENT_ID BIGINT,
    OBJ_CAPTION VARCHAR(4000),
    SORT_ORDER DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PLAN_SUBJECT_LIST2 (
    I$CURRICULUM_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    PARENT_ID BIGINT,
    OBJ_CAPTION VARCHAR(4000),
    SORT_ORDER DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PLAN_VOSP_GET (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(2000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PLAN_WP_GET (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PMPK_PKG_DATA (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PMPK_SEND_DATA (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PORTAL_BROKEN_UID_GET RETURNS (
    STUDENT_CAPTION VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PORTAL_CLASSES_DELETED_GET (
    BEGIN_DATE TIMESTAMP,
    END_DATE TIMESTAMP)
RETURNS (
    CLASS_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PORTAL_CLASSES_GET (
    I$BEGIN_DATE TIMESTAMP,
    I$END_DATE TIMESTAMP,
    I$USER_ID BIGINT)
RETURNS (
    CLASS_ID BIGINT,
    GRADE_NAME VARCHAR(4000),
    STAGE_NAME VARCHAR(4000),
    CLASS_NAME VARCHAR(4000),
    CLASS_MASTER_ID BIGINT,
    PERIOD_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PORTAL_DIRECTORS_DELETED_GET (
    BEGIN_DATE TIMESTAMP,
    END_DATE TIMESTAMP)
RETURNS (
    DIRECTOR_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PORTAL_DIRECTORS_GET (
    BEGIN_DATE TIMESTAMP,
    END_DATE TIMESTAMP,
    I$USER_ID BIGINT)
RETURNS (
    DIRECTOR_ID BIGINT,
    UID VARCHAR(4000),
    FIO VARCHAR(4000),
    POST VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PORTAL_EVENTS_DELETED_GET (
    BEGIN_DATE TIMESTAMP,
    END_DATE TIMESTAMP)
RETURNS (
    EVENT_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PORTAL_EVENTS_GET (
    BEGIN_DATE TIMESTAMP,
    END_DATE TIMESTAMP,
    I$USER_ID BIGINT)
RETURNS (
    EVENT_ID BIGINT,
    STUDENT_ID BIGINT,
    TEACHER_ID BIGINT,
    EVENT_DATE DATE,
    EVENT_NAME VARCHAR(4000),
    EVENT_THEME VARCHAR(4000),
    EVENT_ACHIEVEMENT VARCHAR(4000),
    EVENT_AWARDS VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PORTAL_EXPORT_PROPERTIES_GET RETURNS (
    FTP_ADDRESS VARCHAR(100),
    FTP_LOGIN VARCHAR(100),
    FTP_PWD VARCHAR(100),
    FTP_MODE VARCHAR(100),
    PROXY_IS_USE VARCHAR(100),
    PROXY_ADDRESS VARCHAR(100),
    PROXY_PORT VARCHAR(100),
    EXPORT_INTERVAL VARCHAR(100),
    PROXY_LOGIN VARCHAR(100),
    PROXY_PWD VARCHAR(100),
    ROD_ADDRESS VARCHAR(100),
    ROD_LOGIN VARCHAR(100),
    ROD_PWD VARCHAR(100),
    ROD_TIMEOUT VARCHAR(100),
    ROD_EXPORT_INTERVAL VARCHAR(100),
    KONTINGENT_ADDRESS VARCHAR(100),
    KONTINGENT_PORT VARCHAR(100),
    KONTINGENT_LOGIN VARCHAR(100),
    KONTINGENT_PWD VARCHAR(100),
    KONTINGENT_TIMEOUT VARCHAR(100),
    KONTINGENT_EXPORT_INTERVAL VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PORTAL_EXPORT_PROPERTIES_SET (
    FTP_ADDRESS VARCHAR(100),
    FTP_LOGIN VARCHAR(100),
    FTP_PWD VARCHAR(100),
    FTP_MODE VARCHAR(100),
    PROXY_IS_USE VARCHAR(100),
    PROXY_ADDRESS VARCHAR(100),
    PROXY_PORT VARCHAR(100),
    EXPORT_INTERVAL VARCHAR(100),
    PROXY_LOGIN VARCHAR(100),
    PROXY_PWD VARCHAR(100))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE PORTAL_GIA_ASSN (
    I$BEGIN_DATE TIMESTAMP,
    I$END_DATE TIMESTAMP)
RETURNS (
    TAG_NAME VARCHAR(255),
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PORTAL_GIA_MARKS_DELETED_GET (
    BEGIN_DATE TIMESTAMP,
    END_DATE TIMESTAMP)
RETURNS (
    USE_MARK_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PORTAL_GIA_MARKS_GET (
    I$BEGIN_DATE TIMESTAMP,
    I$END_DATE TIMESTAMP,
    I$USER_ID BIGINT)
RETURNS (
    USE_MARK_ID BIGINT,
    GIA_SUBJECT_CODE SMALLINT,
    STUDENT_ID BIGINT,
    GIA_YEAR SMALLINT,
    GIA_TYPE SMALLINT,
    MARK_100 SMALLINT,
    MARK SMALLINT,
    RESULTS_A VARCHAR(400),
    RESULTS_B VARCHAR(400),
    RESULTS_C VARCHAR(400),
    RESULTS_D VARCHAR(400))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PORTAL_GIS_DATA_GET (
    I$USER_ID BIGINT)
RETURNS (
    SCHOOL_ID BIGINT,
    FIELD_BLOCK VARCHAR(10),
    FIELD_TYPE VARCHAR(10),
    FIELD_NAME VARCHAR(30),
    FIELD_ITEM VARCHAR(10),
    FIELD_VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PORTAL_GROUP_TEACHER (
    GROUP_ID BIGINT,
    SUBJECT_ID BIGINT)
RETURNS (
    TEACHER_ID BIGINT,
    DATE_MODIFY TIMESTAMP)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PORTAL_LAST_EXPORT_DATE_GET RETURNS (
    DT VARCHAR(30))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PORTAL_LAST_EXPORT_DATE_SET (
    I$DT TIMESTAMP)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE PORTAL_LAST_MARKS_DELETED_GET (
    BEGIN_DATE TIMESTAMP,
    END_DATE TIMESTAMP)
RETURNS (
    LAST_MARK_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PORTAL_LAST_MARKS_GET (
    I$BEGIN_DATE TIMESTAMP,
    I$END_DATE TIMESTAMP,
    I$USER_ID BIGINT)
RETURNS (
    LAST_MARK_ID BIGINT,
    SUBJECT_ID BIGINT,
    STUDENT_ID BIGINT,
    SCHOOL_YEAR VARCHAR(4000),
    MARK_NAME VARCHAR(4000),
    FINAL_NAME VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PORTAL_LIST_GROUPS (
    GROUP_ID BIGINT,
    STUDENT_ID BIGINT = null)
RETURNS (
    CLASS_ID BIGINT,
    VIRT_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PORTAL_OGRN_GET RETURNS (
    OGRN VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PORTAL_OU_DATA_GET (
    I$USER_ID BIGINT)
RETURNS (
    SCHOOL_ID BIGINT,
    FIELD_BLOCK VARCHAR(10),
    FIELD_TYPE VARCHAR(10),
    FIELD_NAME VARCHAR(30),
    FIELD_ITEM VARCHAR(10),
    FIELD_VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PORTAL_PERIODS_DELETED_GET (
    BEGIN_DATE TIMESTAMP,
    END_DATE TIMESTAMP)
RETURNS (
    PERIOD_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PORTAL_PERIODS_GET (
    BEGIN_DATE TIMESTAMP,
    END_DATE TIMESTAMP,
    I$USER_ID BIGINT)
RETURNS (
    PERIOD_ID BIGINT,
    INTERVAL_NAME VARCHAR(4000),
    INTERVAL_BEGIN DATE,
    INTERVAL_END DATE)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PORTAL_STUDENTS_DELETED_GET (
    BEGIN_DATE TIMESTAMP,
    END_DATE TIMESTAMP)
RETURNS (
    STUDENT_ID BIGINT,
    RETIRED VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PORTAL_STUDENTS_PARENT_GET (
    STUDENT_ID BIGINT)
RETURNS (
    SUID VARCHAR(4000),
    PUID VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PORTAL_STUDENTS_WITH_UID_LIST (
    BEGIN_DATE TIMESTAMP,
    END_DATE TIMESTAMP)
RETURNS (
    STUDENT_ID BIGINT,
    IS_FULL_EXPORT SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PORTAL_SUBJECTS_GET (
    BEGIN_DATE TIMESTAMP,
    END_DATE TIMESTAMP)
RETURNS (
    SUBJECT_ID BIGINT,
    SUBJECT_NAME VARCHAR(4000),
    SUBJECT_CODE VARCHAR(4000),
    SUBJECT_GIA_CODE VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PORTAL_TEACHERS_GET (
    BEGIN_DATE TIMESTAMP,
    END_DATE TIMESTAMP)
RETURNS (
    TEACHER_ID BIGINT,
    UID VARCHAR(4000),
    FIO VARCHAR(4000),
    RETIRED BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE POSTEVENT (
    I$EVENT VARCHAR(20),
    I$MSG VARCHAR(4000) = NULL)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE PR3_FIND_EMPLOYEES (
    I$NAME_LAST VARCHAR(400),
    I$NAME_FIRST VARCHAR(400),
    I$NAME_MID VARCHAR(400),
    I$BIRTH_DATE DATE,
    I$SNILS VARCHAR(40),
    I$DOC_TYPE BIGINT,
    I$DOC_SERIE VARCHAR(40),
    I$DOC_NUM VARCHAR(40),
    I$DOC_DATE DATE,
    I$USER_ID VARCHAR(40),
    I$FROM_IP VARCHAR(200) = NULL)
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PR3_FIND_PARENTS (
    I$NAME_LAST VARCHAR(400),
    I$NAME_FIRST VARCHAR(400),
    I$NAME_MID VARCHAR(400),
    I$BIRTH_DATE DATE,
    I$SNILS VARCHAR(40),
    I$USER_ID VARCHAR(40),
    I$FROM_IP VARCHAR(200) = NULL)
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PR3_FIND_STUDENTS (
    I$NAME_LAST VARCHAR(400),
    I$NAME_FIRST VARCHAR(400),
    I$NAME_MID VARCHAR(400),
    I$BIRTH_DATE DATE,
    I$SNILS VARCHAR(40),
    I$DOC_TYPE BIGINT,
    I$DOC_SERIE VARCHAR(40),
    I$DOC_NUM VARCHAR(40),
    I$DOC_DATE DATE,
    I$USER_ID VARCHAR(40),
    I$OBJ_ID BIGINT = NULL,
    I$FROM_IP VARCHAR(200) = NULL)
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PRE_ACCEPT_PERSON (
    I$OBJ_ID BIGINT = NULL)
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PRG3_ABSENCE_IMPORT (
    TEACHER_FIO VARCHAR(400),
    DATE_FROM DATE,
    DATE_TO DATE,
    REASON_TEXT VARCHAR(200))
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PRG_PLAN_CMP_TYPES (
    OBJ_ID BIGINT)
RETURNS (
    LISTVAL_ID BIGINT,
    PARENT_ID BIGINT,
    VAL VARCHAR(4000),
    VAL_LONG VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PROCEDURES_EXPORT (
    I$CONTENT SMALLINT = 1)
RETURNS (
    VAL VARCHAR(4000) CHARACTER SET WIN1251)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PROCESS_VERIFY (
    I$OBJ_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE PROCESS_VERIFY_OBJ (
    I$OU_ID BIGINT,
    I$FROM_ID BIGINT,
    I$TO_ID BIGINT,
    I$TYPE_ID BIGINT,
    I$PATH BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    TYPE_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PROCESS_VERIFY_SUBFLT (
    I$PARENT_TYPE_ID BIGINT,
    I$PARENT_ID BIGINT,
    I$OBJ_TYPE_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$PARAM_ID BIGINT,
    I$PARAM_LV BIGINT)
RETURNS (
    IS_MATCH SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PROJECT_NAME_GET RETURNS (
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PROJECT_TYPE RETURNS (
    STATUS VARCHAR(25))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PTP_ALT_SUBJECTS (
    I$SUBJECT_ID BIGINT)
RETURNS (
    SUBJECT_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PTP_ASSIGNMENTS_LIST (
    I$PTP_ID BIGINT)
RETURNS (
    VAL VARCHAR(4000),
    MAXSTATE SMALLINT,
    HAS_CHILDREN SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PTP_CEC_SPLIT (
    I$PTP_ID BIGINT)
RETURNS (
    LESSON_ID BIGINT,
    CEC_TEXT VARCHAR(400),
    CEC_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PTP_EDS_REPORT (
    I$OBJ_ID BIGINT,
    I$FILTER SMALLINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PTP_EDS_REPORT2 (
    I$OBJ_ID BIGINT,
    I$FILTER SMALLINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PTP_STAGE_NAME (
    I$LEVEL_ID BIGINT)
RETURNS (
    CAPTION VARCHAR(200),
    SORT_ORDER SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PTP_TEST_BROWSE (
    I$SUBJECT_ID BIGINT,
    I$STAGE_ID BIGINT,
    I$RANGE INTEGER,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PTP_TEST_JOIN (
    I$SUBJECT_ID BIGINT,
    I$STAGE_ID BIGINT,
    I$TEST_ID BIGINT,
    I$GROUP_NAME VARCHAR(400),
    I$THEME VARCHAR(400),
    I$LESSON_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TEST_ID BIGINT,
    NAME VARCHAR(1000),
    TEST_STATE SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PUPIL_ACCEPTED_INFO_GET (
    I$PUPIL_ID BIGINT)
RETURNS (
    ACCEPTED_INFO VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PUPIL_ACCEPT_MOVEMENTS (
    I$GRADE_ID BIGINT,
    I$STUDENT_ID BIGINT,
    I$REASON_ID BIGINT,
    I$DATE DATE,
    I$ORDER_DATE DATE,
    I$ORDER_NUM VARCHAR(400),
    I$USER_ID BIGINT,
    I$ORDER_ID BIGINT = null)
RETURNS (
    MOVE_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PUPIL_ADDITIONAL_EDUCATION_DEL (
    I$OBJ_ID BIGINT)
RETURNS (
    DEL_COUNT SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PUPIL_ADDITIONAL_EDUCATION_LIST (
    I$PUPIL_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    NUMBER SMALLINT,
    OOOD_TYPE_ID BIGINT,
    ORIENTATION_ID BIGINT,
    FINANCING_ID BIGINT,
    YEAR_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PUPIL_ADDITIONAL_EDUCATION_SET (
    I$OBJ_ID BIGINT,
    I$PUPIL_ID BIGINT,
    I$OOOD_TYPE_ID BIGINT,
    I$ORIENTATION_ID BIGINT,
    I$FINANCING_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PUPIL_CHILDREN_LIST (
    I$PARENT_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    PUPIL_ID BIGINT,
    PUPIL_NAME VARCHAR(400),
    CLASS_NAME VARCHAR(400),
    DATAPATH VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PUPIL_DUPLICATE_CHECK (
    I$OBJ_ID BIGINT,
    I$PUPIL_ID BIGINT,
    I$FIRSTNAME VARCHAR(255),
    I$MIDDLENAME VARCHAR(255),
    I$LASTNAME VARCHAR(255),
    I$DOB DATE)
RETURNS (
    IS_DUPLICATE SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PUPIL_DUPLICATE_LIST (
    I$OBJ_ID BIGINT,
    I$PUPIL_ID BIGINT,
    I$LASTNAME VARCHAR(255),
    I$FIRSTNAME VARCHAR(255),
    I$MIDDLENAME VARCHAR(255),
    I$DOB DATE)
RETURNS (
    PUPIL_ID BIGINT,
    PASSPORT_ID BIGINT,
    LASTNAME VARCHAR(100),
    FIRSTNAME VARCHAR(100),
    MIDDLENAME VARCHAR(100),
    DOB DATE,
    SCHOOL_CAPTION VARCHAR(1000),
    SCHOOL_DIST VARCHAR(1000),
    LINK_ID BIGINT,
    CURRENT_CLASS_ID BIGINT,
    CURRENT_CLASS_TYPE_ID BIGINT,
    CLASS_NAME VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PUPIL_GPD_LIST_BY_DATE (
    I$SCHOOL_ID BIGINT,
    I$DT DATE)
RETURNS (
    PUPIL_ID BIGINT,
    GRADE_ID BIGINT,
    GRADE_LV BIGINT,
    GPD_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PUPIL_GROUP_ACCEPT (
    I$STUDENT_ID BIGINT,
    I$GROUPS VARCHAR(400),
    I$ORDER_ID BIGINT = null)
RETURNS (
    OBJ_ID BIGINT,
    MOVE_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PUPIL_LEAVED_INFO_GET (
    I$PUPIL_ID BIGINT)
RETURNS (
    LEAVED_INFO VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PUPIL_LIST_BY_DATE (
    I$SCHOOL_ID BIGINT,
    CLASS_TYPE_MIN BIGINT,
    CLASS_TYPE_MAX BIGINT,
    I$DT DATE,
    I$IS_HOME SMALLINT = NULL)
RETURNS (
    PUPIL_ID BIGINT,
    GRADE_ID BIGINT,
    GRADE_LV BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PUPIL_MOVEMENT_LIST (
    I$PUPIL_ID BIGINT)
RETURNS (
    MOVEMENT_ID BIGINT,
    CLASS_ID BIGINT,
    MOVEMENT_TYPE VARCHAR(80),
    MOVEMENT_DATE DATE,
    MOVEMENT_ORDER_NUMBER VARCHAR(50),
    MOVEMENT_ORDER_DATE DATE,
    MOVEMENT_TO_STAGE VARCHAR(80),
    MOVEMENT_TO_CLASS VARCHAR(400),
    MOVEMENT_RECORD_TYPE VARCHAR(80),
    ENABLED SMALLINT,
    GROUPING_NAME VARCHAR(400))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PUPIL_PARENTS_DUPLICATE_CHECK (
    I$PUPIL_ID BIGINT,
    I$PARENTS_ID BIGINT,
    I$FIRSTNAME VARCHAR(255),
    I$MIDDLENAME VARCHAR(255),
    I$LASTNAME VARCHAR(255),
    I$DOB DATE)
RETURNS (
    IS_DUPLICATE SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PUPIL_PARENTS_LIST (
    I$PUPIL_ID BIGINT,
    I$PARENTS_ID BIGINT,
    I$LASTNAME VARCHAR(255),
    I$FIRSTNAME VARCHAR(255),
    I$MIDDLENAME VARCHAR(255),
    I$DOB DATE,
    I$SHOW_EMPLOYEE SMALLINT = 0)
RETURNS (
    STATUS VARCHAR(255),
    PARENT_ID BIGINT,
    PASSPORT_ID BIGINT,
    IS_EMPLOYEE SMALLINT,
    LASTNAME VARCHAR(100),
    FIRSTNAME VARCHAR(100),
    MIDDLENAME VARCHAR(100),
    DOB DATE,
    ADRESS VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE PUPIL_REGION_COUNT_GET (
    I$DT DATE,
    I$USER_ID BIGINT)
RETURNS (
    DISTRICT_NAME VARCHAR(255),
    PART1P1 INTEGER,
    PART1P2 INTEGER,
    PART1P3 INTEGER,
    PART1P4 INTEGER,
    PART1P5 INTEGER,
    PART1P6 INTEGER,
    PART1P7 INTEGER,
    PART1P8 INTEGER,
    PART1ALL INTEGER,
    PART2P1 INTEGER,
    PART2P2 INTEGER,
    PART2P3 INTEGER,
    PART2P4 INTEGER,
    PART2ALL INTEGER,
    PART3P1 INTEGER,
    PART3P2 INTEGER,
    PART3P3 INTEGER,
    PART3ALL INTEGER,
    COUNT_ALL INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE QUERYS_LIST (
    I$REPORT_ID BIGINT,
    I$LANG_CODE VARCHAR(2) = 'RU')
RETURNS (
    REPORT_ID BIGINT,
    RES_ID BIGINT,
    QUERY_NUM SMALLINT,
    QUERY_TYPE SMALLINT,
    IS_INSERT SMALLINT,
    SQL_TEXT VARCHAR(1000),
    WARNING_CAPTION VARCHAR(4000),
    IS_DEL SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE QUERYTYPES_LIST RETURNS (
    QUERY_TYPE SMALLINT,
    QUERY_NAME VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE QUERY_ADD (
    I$REPORT_ID BIGINT,
    I$RES_ID BIGINT,
    I$QUERY_NUM SMALLINT,
    I$QUERY_TYPE SMALLINT,
    I$IS_INSERT SMALLINT,
    I$SQL_TEXT VARCHAR(1000),
    I$WARNING_CAPTION VARCHAR(4000),
    I$LANG_CODE CHAR(2),
    I$IS_DEL SMALLINT = 0)
RETURNS (
    REPORT_ID BIGINT,
    QUERY_NUM SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE READ_REGISTRATION_PARAMS (
    I$PUPIL_ID BIGINT)
RETURNS (
    NUMBER VARCHAR(100),
    "DATE" DATE,
    DATE_FROM DATE,
    DATE_TO DATE,
    AUTHOR VARCHAR(2000),
    FILENAME VARCHAR(2000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE RECALC_STUDENT_AGG (
    I$STUDENT_ID BIGINT,
    I$YEAR_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE REFERENCE_LIST (
    I$TYPE_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    OBJ_CAPTION VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE REGION_APPLY_TIMEMARK (
    I$TM TIMESTAMP)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE REGION_SERIALIZE_PRE
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE REGION_SERIALIZE_TM (
    I$DATE TIMESTAMP)
RETURNS (
    TM TIMESTAMP,
    CURRENT_TM TIMESTAMP,
    LIC_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE REMOVE_FALSE_PUPIL_WITH_EDU_DOC (
    I$YEAR BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    "COUNT" SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE REPORTS_LEVEL_LIST (
    I$USER_ID BIGINT,
    I$LEVEL_ID BIGINT)
RETURNS (
    REPORT_ID BIGINT,
    TYPE_ID BIGINT,
    TEMPL_ID BIGINT,
    SORT_ORDER SMALLINT,
    REPORT_CAPTION VARCHAR(4000),
    TAG VARCHAR(100),
    GROUP_CAPTION VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE REPORTS_LIST (
    I$LANG_CODE VARCHAR(2) = 'RU')
RETURNS (
    REPORT_ID BIGINT,
    TYPE_ID BIGINT,
    RES_ID BIGINT,
    TEMPL_ID BIGINT,
    SORT_ORDER SMALLINT,
    IS_DEL SMALLINT,
    REPORT_CAPTION VARCHAR(4000),
    TAG VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE REPORT_357_358 (
    I$OBJ_ID_T57 BIGINT,
    I$OBJ_ID_T69 BIGINT,
    I$IS_ACTUAL INTEGER = null,
    I$ADAPTED INTEGER = null)
RETURNS (
    O$OOOD_NAME VARCHAR(100),
    O$OBJ_ID_T50 BIGINT,
    O$OBJ_ID_T57 BIGINT,
    O$R2470_VAL VARCHAR(100),
    O$V374_VAL VARCHAR(100),
    O$R2478_VAL VARCHAR(100),
    O$R2101_VAL VARCHAR(100),
    O$R2166_VAL VARCHAR(100),
    O$PLANTYPE INTEGER,
    O$STUDYLEVEL INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE REPORT_85K_NEW (
    I$OBJ_ID BIGINT,
    I$DATE DATE)
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE REPORT_ADD (
    I$REPORT_ID BIGINT,
    I$TYPE_ID BIGINT,
    I$RES_ID BIGINT,
    I$TEMPL_ID BIGINT,
    I$LANG_CODE CHAR(2),
    I$REPORT_CAPTION VARCHAR(4000),
    I$TAG VARCHAR(100),
    I$IS_DEL SMALLINT = 0)
RETURNS (
    REPORT_ID BIGINT,
    RES_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE REPORT_CJ_CORRS (
    I$OBJ_ID BIGINT)
RETURNS (
    REG_NAME VARCHAR(100),
    OOOD_NAME VARCHAR(400),
    OOOD_NUM VARCHAR(30),
    CLASS_NUM VARCHAR(20),
    CLASS_NAME VARCHAR(200),
    PUPIL_NAME VARCHAR(400),
    SUBJECT_NAME VARCHAR(600),
    USER_NAME VARCHAR(400),
    DATE_SRC VARCHAR(16),
    DATE_DST VARCHAR(16),
    TEXT_SRC VARCHAR(1000),
    TEXT_DST VARCHAR(1000),
    REASON VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE REPORT_CLASSNET (
    I$SCHOOL_ID BIGINT,
    I$DATE DATE = CURRENT_DATE,
    I$LEVEL_ID BIGINT = NULL,
    I$FILTER VARCHAR(100) = NULL,
    I$MASTER_ID BIGINT = NULL)
RETURNS (
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE REPORT_DO (
    I$OBJ_ID BIGINT)
RETURNS (
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE REPORT_EMPLOYEES_LIST (
    OBJ_ID BIGINT)
RETURNS (
    ROW_NUM INTEGER,
    FIO VARCHAR(400),
    JOB_GROUP VARCHAR(200),
    JOB_NAME VARCHAR(400),
    SUBJECT_NAME VARCHAR(2000),
    EDU_NAME VARCHAR(400),
    SC_NAME VARCHAR(100),
    SC_TITLE VARCHAR(100),
    SC_STR VARCHAR(100),
    QUAL_CAT VARCHAR(100),
    ATT_DATE DATE,
    WORK_AGE VARCHAR(30),
    EDU_AGE VARCHAR(30),
    OO_AGE VARCHAR(30),
    JOB_AGE VARCHAR(30),
    EDU_KIND VARCHAR(100),
    EDU_ORG VARCHAR(600),
    SPECIALITY VARCHAR(400),
    EDU_QUAL VARCHAR(400),
    EDU_PROFILE VARCHAR(100),
    CC_DC VARCHAR(200),
    CC_OO VARCHAR(600),
    CC_DATE DATE,
    CC_SPEC VARCHAR(300),
    CC_QUAL VARCHAR(200),
    KR_KIND VARCHAR(200),
    KR_OO VARCHAR(600),
    KR_COURSE VARCHAR(600),
    KR_CKIND VARCHAR(40),
    KR_DURATION INTEGER,
    KR_DKIND VARCHAR(40),
    KR_DATE DATE)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE REPORT_EMP_FORM (
    I$OBJ_ID BIGINT,
    I$PLACE VARCHAR(1000),
    I$NUMBER VARCHAR(1000))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE REPORT_FIS_FRDO (
    I$REC_ID BIGINT = null,
    I$PUPIL_ID BIGINT = null,
    I$USER_ID BIGINT = 1,
    I$DATE1 DATE = null,
    I$DATE2 DATE = null,
    I$STAGE_ID BIGINT = null,
    I$VALID SMALLINT = null)
RETURNS (
    CERTIFICATE_NAME VARCHAR(50),
    CERTIFICATE_TYPE VARCHAR(100),
    CERTIFICATE_STATUS VARCHAR(30),
    CONFIRMATION_OF_LOSS VARCHAR(10),
    CONFIRMATION_OF_EXCHANGE VARCHAR(10),
    CONFIRMATION_OF_DROP VARCHAR(10),
    STAGE VARCHAR(100),
    FORM_SERIA VARCHAR(20),
    FORM_NUMBER VARCHAR(20),
    GIVE_DATE DATE,
    REGNO VARCHAR(20),
    IN_YEAR INTEGER,
    OUT_YEAR INTEGER,
    TRAINING_PERIOD VARCHAR(20),
    F VARCHAR(200),
    I VARCHAR(200),
    O VARCHAR(200),
    DOB DATE,
    SNILS VARCHAR(20),
    CITIZENSHIP VARCHAR(200),
    EDU_AVAIL VARCHAR(50),
    SEX VARCHAR(10),
    PAY_SRC VARCHAR(100),
    EDU_FORM VARCHAR(50),
    ORIG_CERTIFICATE_NAME VARCHAR(50),
    ORIG_FORM_SERIA VARCHAR(20),
    ORIG_FORM_NUMBER VARCHAR(20),
    ORIG_REGNO VARCHAR(20),
    ORIG_GIVE_DATE DATE,
    ORIG_F VARCHAR(200),
    ORIG_I VARCHAR(200),
    ORIG_O VARCHAR(200))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE REPORT_FSPEO_DATA (
    I$SECTION INTEGER NOT NULL)
RETURNS (
    SECTION_NO VARCHAR(10),
    TITLE VARCHAR(200),
    VAL INTEGER,
    CONDITION VARCHAR(1000),
    HELPER VARCHAR(1000),
    ONE_STRING SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE REPORT_FSPEO_HTML RETURNS (
    HTML VARCHAR(8000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE REPORT_FSPEO_JSON RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE REPORT_GET (
    I$REPORT_ID BIGINT,
    I$LANG_CODE CHAR(2) = 'RU')
RETURNS (
    REPORT_ID BIGINT,
    TYPE_ID BIGINT,
    RES_ID BIGINT,
    REPORT_CAPTION VARCHAR(4000),
    TAG VARCHAR(100),
    TEMPL_ID BIGINT,
    SORT_ORDER SMALLINT,
    IS_DEL SMALLINT,
    IS_REPL SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE REPORT_MOVE (
    I$REPORT_ID BIGINT,
    I$MOVE SMALLINT)
RETURNS (
    SORT_ORDER SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE REPORT_MTR (
    OBJ_ID BIGINT,
    MTR_GROUP_ID BIGINT,
    SUBTYPE SMALLINT = 0)
RETURNS (
    VAL VARCHAR(6000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE REPORT_MTR13 (
    OBJ_ID BIGINT,
    REPORT_DATE DATE)
RETURNS (
    VAL VARCHAR(6000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE REPORT_OO1 (
    I$OBJ_ID BIGINT)
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(2000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE REPORT_OO1_IN_VCS (
    I$PERSON_ID BIGINT,
    I$DATE_START DATE,
    I$DATE_END DATE)
RETURNS (
    GROUP_ID BIGINT,
    SUBGROUP_ID BIGINT,
    POSITION_ID BIGINT,
    POSITION_TYPE BIGINT,
    IS_EDU SMALLINT,
    RATE DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE REPORT_OO1_OUT_VCS (
    I$PERSON_ID BIGINT,
    I$DATE_START DATE,
    I$DATE_END DATE)
RETURNS (
    GROUP_ID BIGINT,
    SUBGROUP_ID BIGINT,
    POSITION_ID BIGINT,
    POSITION_TYPE BIGINT,
    IS_EDU SMALLINT,
    REASON_ID BIGINT,
    RATE DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE REPORT_OO1_R13 RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE REPORT_OO1_R13_ROW (
    I$ROW SMALLINT,
    I$STAGE_ID INTEGER,
    I$ADAPT_ID BIGINT,
    I$ADAPT_ID2 BIGINT = null)
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE REPORT_OO1_R210 (
    I$STUDY_TYPE BIGINT)
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE REPORT_OO1_R210_COL (
    I$STUDY_TYPE BIGINT,
    I$COL VARCHAR(10),
    I$CS SMALLINT)
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE REPORT_OO1_R211 (
    I$STUDY_TYPE BIGINT)
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE REPORT_OO1_R211_COL (
    I$STUDY_TYPE BIGINT,
    I$COL VARCHAR(10),
    I$GRADE SMALLINT)
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE REPORT_OO1_R212 (
    I$STUDY_TYPE BIGINT)
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE REPORT_OO1_R212_COL (
    I$STUDY_TYPE BIGINT,
    I$COL VARCHAR(10),
    I$GRADE SMALLINT)
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE REPORT_OO1_R213 (
    I$STUDY_TYPE BIGINT)
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE REPORT_OO1_R213_COL (
    I$STUDY_TYPE BIGINT,
    I$COL VARCHAR(10),
    I$GRADE SMALLINT)
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE REPORT_OO1_R22 (
    I$STUDY_TYPE BIGINT)
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE REPORT_OO1_R22_COL (
    I$STUDY_TYPE BIGINT,
    I$COL VARCHAR(10),
    I$GRADE SMALLINT)
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE REPORT_OO1_R23 (
    I$STUDY_TYPE BIGINT)
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE REPORT_OO1_R23_ROW (
    I$ROW SMALLINT,
    I$STUDY_TYPE BIGINT)
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE REPORT_OO1_R24 (
    I$OU_ID BIGINT,
    I$STUDY_TYPE BIGINT)
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE REPORT_OO1_R251 (
    I$OU_ID BIGINT,
    I$STUDY_TYPE BIGINT)
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE REPORT_OO1_R251_COL (
    I$OU_ID BIGINT,
    I$STUDY_TYPE BIGINT,
    I$COL VARCHAR(10),
    I$GRADE SMALLINT)
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE REPORT_OO1_R252 (
    I$OU_ID BIGINT,
    I$STUDY_TYPE BIGINT)
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE REPORT_OO1_R252_COL (
    I$OU_ID BIGINT,
    I$STUDY_TYPE BIGINT,
    I$COL VARCHAR(10),
    I$GRADE SMALLINT)
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE REPORT_OO1_R253 (
    I$OU_ID BIGINT,
    I$STUDY_TYPE BIGINT)
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE REPORT_OO1_R253_COL (
    I$OU_ID BIGINT,
    I$STUDY_TYPE BIGINT,
    I$COL VARCHAR(10),
    I$GRADE SMALLINT)
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE REPORT_OO1_R27 (
    I$OU_ID BIGINT,
    I$OVZ BIGINT)
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE REPORT_OO1_R27_ROW (
    I$OU_ID BIGINT,
    I$OVZ SMALLINT,
    I$ROW INTEGER,
    I$AGE SMALLINT)
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE REPORT_OO1_R28 (
    I$OU_ID BIGINT)
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE REPORT_OO1_R28_COL (
    I$OU_ID BIGINT,
    I$COL VARCHAR(10),
    I$STAGE SMALLINT,
    I$OVZ SMALLINT,
    I$Y18 SMALLINT,
    I$FORM BIGINT)
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE REPORT_OO1_R29 (
    I$OU_ID BIGINT)
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE REPORT_OO1_R31 RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE REPORT_OO1_R31_COL (
    I$COL SMALLINT,
    I$CS VARCHAR(10))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE REPORT_OO1_R32 RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE REPORT_OO1_R32_COL (
    I$COL SMALLINT,
    I$CS VARCHAR(10))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE REPORT_OO1_R331 RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE REPORT_OO1_R331_COL (
    I$COL SMALLINT,
    I$CS VARCHAR(10))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE REPORT_OO1_R34 (
    I$OU_ID BIGINT)
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE REPORT_OO1_R34_COL (
    I$OU_ID BIGINT,
    I$COL SMALLINT,
    I$CS VARCHAR(10))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE REPORT_OO1_R34_EA_COL (
    I$OU_ID BIGINT,
    I$COL SMALLINT,
    I$CS VARCHAR(10))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE REPORT_OO1_R34_IN_COL (
    I$OU_ID BIGINT,
    I$COL SMALLINT,
    I$CS VARCHAR(10))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE REPORT_OO1_R34_OUT_COL (
    I$OU_ID BIGINT,
    I$COL SMALLINT,
    I$CS VARCHAR(10))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE REPORT_OO1_R35 RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE REPORT_OO1_R35_COL (
    I$COL SMALLINT,
    I$CS VARCHAR(10))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE REPORT_OO1_VCS (
    I$PERSON_ID BIGINT,
    I$DATE DATE)
RETURNS (
    GROUP_ID BIGINT,
    SUBGROUP_ID BIGINT,
    POSITION_ID BIGINT,
    POSITION_TYPE BIGINT,
    IS_EDU SMALLINT,
    RATE DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE REPORT_PROGNOSE_STUDENTS (
    OBJ_ID BIGINT,
    KO_FILTER VARCHAR(100) = null)
RETURNS (
    VAL VARCHAR(6000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE REPORT_RKSYNC (
    I$OBJ_ID BIGINT,
    I$LEVEL_ID BIGINT)
RETURNS (
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE REPORT_RKS_CARDS (
    I$OBJ_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE REPORT_SCHOLAR (
    I$USER_ID BIGINT = 1)
RETURNS (
    DISTRICT_ID BIGINT,
    F1 VARCHAR(500),
    F2 INTEGER,
    F3 INTEGER,
    F4 INTEGER,
    F5 INTEGER,
    F6 INTEGER,
    F7 INTEGER,
    F8 INTEGER,
    F9 INTEGER,
    F10 INTEGER,
    F11 INTEGER,
    F12 INTEGER,
    F13 INTEGER,
    F14 INTEGER,
    F15 INTEGER,
    F16 INTEGER,
    F17 INTEGER,
    F18 INTEGER,
    F19 INTEGER,
    F20 INTEGER,
    F21 INTEGER,
    F22 INTEGER,
    F23 INTEGER,
    F24 INTEGER,
    F25 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE REPORT_SCHOLAR_DTL (
    I$DISTRICT_ID BIGINT NOT NULL,
    I$N INTEGER NOT NULL,
    I$USER_ID BIGINT = 1)
RETURNS (
    F1 VARCHAR(250),
    VAL2 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE REPORT_STUDENTS_NG (
    I$OBJ_ID BIGINT)
RETURNS (
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE REPORT_UP_CONTROL_P1 (
    OBJ_ID BIGINT)
RETURNS (
    OO_NAME VARCHAR(1000),
    OO_DISTRICT VARCHAR(400),
    LEVEL_NAME VARCHAR(400),
    V1 VARCHAR(10),
    V2 VARCHAR(10),
    V3 INTEGER,
    V4 INTEGER,
    V5 VARCHAR(1000),
    V6 INTEGER,
    V7 INTEGER,
    V8 INTEGER,
    V9 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE REPORT_UP_CONTROL_P2 (
    OBJ_ID BIGINT)
RETURNS (
    OO_NAME VARCHAR(1000),
    OO_DISTRICT VARCHAR(400),
    V1 VARCHAR(10),
    V2 VARCHAR(10),
    V3 VARCHAR(10),
    V4 VARCHAR(10),
    V5 VARCHAR(10),
    V6 VARCHAR(10),
    V7 VARCHAR(10),
    V8 INTEGER,
    V9 INTEGER,
    PUPIL_ALL INTEGER,
    PUPIL_CNT INTEGER,
    V14 INTEGER,
    V11 INTEGER,
    V12 INTEGER,
    V13 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE REPORT_VAL_GET (
    I$REPORT_ID BIGINT,
    I$QUERY_NUM SMALLINT,
    I$OBJ_ID BIGINT = NULL,
    I$USER_ID BIGINT = 1,
    I$PARAM_VAL BIGINT = NULL,
    I$PARAM2_VAL BIGINT = NULL)
RETURNS (
    V VARCHAR(4000),
    V2 VARCHAR(1000),
    V3 VARCHAR(255),
    V4 VARCHAR(255),
    V5 VARCHAR(255))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE RESET_REGISTRATION_DATE (
    OBJ_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE RES_ADD (
    I$RES_ID BIGINT,
    I$LANG_CODE CHAR(2),
    I$VAL VARCHAR(4000),
    I$VAL_LONG VARCHAR(4000) = NULL)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE RES_DEL (
    I$RES_ID BIGINT,
    I$LANG_CODE CHAR(2) = NULL,
    I$IS_DEL SMALLINT = 1)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE RES_GET (
    I$RES_ID BIGINT,
    I$LANG_CODE CHAR(2))
RETURNS (
    VAL VARCHAR(4000),
    VAL_LONG VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE RES_LIST (
    I$RES_ID BIGINT)
RETURNS (
    RES_ID BIGINT,
    LANG_CODE CHAR(2),
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE RGN_ALLOWED_PARENTS (
    I$TYPE_ID BIGINT)
RETURNS (
    TYPE_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE RGN_FILTER_SET (
    I$ROW_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$DELETED SMALLINT,
    I$SORT_INDEX INTEGER,
    I$PARAM_ID BIGINT,
    I$EQU_INDEX SMALLINT,
    I$EQU_VALUE VARCHAR(400),
    I$EQU_VALUE2 VARCHAR(400))
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE RGN_ITEM_SET (
    I$RGN_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40),
    I$DELETED SMALLINT,
    I$PARENT_ID BIGINT,
    I$SORT_INDEX INTEGER,
    I$TYPE_ID BIGINT,
    I$LIST_MODE SMALLINT)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE RGN_MENU (
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE RGN_PARAM_SET (
    I$ROW_ID BIGINT,
    I$DELETED SMALLINT,
    I$SORT_INDEX INTEGER,
    I$PARAM_ID BIGINT,
    I$ALIAS VARCHAR(100))
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE RGN_POSTFIX (
    I$OBJ_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE RGN_REPORT_DELETE (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE RGN_REPORT_GET (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE RGN_REPORT_LINKS RETURNS (
    TYPE_ID BIGINT,
    CHILD_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE RGN_REPORT_SET (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40),
    I$NAME VARCHAR(400),
    I$ICON VARCHAR(100),
    I$COLOR VARCHAR(40),
    I$SIZE SMALLINT,
    I$LIVE SMALLINT,
    I$IS_ARCHIVE SMALLINT,
    I$SORT_INDEX INTEGER)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE RIK83 (
    I$OBJ_ID BIGINT,
    I$N INTEGER,
    I$SELF_FL SMALLINT = 0)
RETURNS (
    V03 INTEGER,
    V04 NUMERIC(11,2),
    V05 INTEGER,
    V06 INTEGER,
    V07 INTEGER,
    V08 INTEGER,
    V09 INTEGER,
    V10 INTEGER,
    V11 INTEGER,
    V12 INTEGER,
    V13 INTEGER,
    V14 INTEGER,
    V15 INTEGER,
    V16 INTEGER,
    V17 INTEGER,
    V18 INTEGER,
    V19 INTEGER,
    V20 INTEGER,
    V21 INTEGER,
    V22 INTEGER,
    V23 INTEGER,
    V24 INTEGER,
    V25 INTEGER,
    V26 INTEGER,
    V27 INTEGER,
    V28 INTEGER,
    V29 INTEGER,
    V30 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE RIK83_ALL (
    I$OBJ_ID BIGINT NOT NULL,
    I$POD_NAME VARCHAR(1000) = NULL,
    I$OPF_NAME VARCHAR(1000) = NULL,
    REFRESH_FL SMALLINT = 1,
    R_1DO_6_FL SMALLINT = 0,
    I$G SMALLINT = NULL,
    I$N SMALLINT = NULL,
    I$DT DATE = CURRENT_DATE)
RETURNS (
    G SMALLINT,
    N SMALLINT,
    V03 INTEGER,
    V04 NUMERIC(11,2),
    V05 INTEGER,
    V06 INTEGER,
    V07 INTEGER,
    V08 INTEGER,
    V09 INTEGER,
    V10 INTEGER,
    V11 INTEGER,
    V12 INTEGER,
    V13 INTEGER,
    V14 INTEGER,
    V15 INTEGER,
    V16 INTEGER,
    V17 INTEGER,
    V18 INTEGER,
    V19 INTEGER,
    V20 INTEGER,
    V21 INTEGER,
    V22 INTEGER,
    V23 INTEGER,
    V24 INTEGER,
    V25 INTEGER,
    V26 INTEGER,
    V27 INTEGER,
    V28 INTEGER,
    V29 INTEGER,
    V30 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE RIK83_DISTR1_1 (
    I$OBJ_ID BIGINT,
    I$N INTEGER)
RETURNS (
    V03 INTEGER,
    V04 NUMERIC(11,2),
    V05 INTEGER,
    V06 INTEGER,
    V07 INTEGER,
    V08 INTEGER,
    V09 INTEGER,
    V10 INTEGER,
    V11 INTEGER,
    V12 INTEGER,
    V13 INTEGER,
    V14 INTEGER,
    V15 INTEGER,
    V16 INTEGER,
    V17 INTEGER,
    V18 INTEGER,
    V19 INTEGER,
    V20 INTEGER,
    V21 INTEGER,
    V22 INTEGER,
    V23 INTEGER,
    V24 INTEGER,
    V25 INTEGER,
    V26 INTEGER,
    V27 INTEGER,
    V28 INTEGER,
    V29 INTEGER,
    V30 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE RIK83_DISTR1_10 (
    I$OBJ_ID BIGINT,
    I$N INTEGER)
RETURNS (
    V03 INTEGER,
    V04 NUMERIC(11,2),
    V05 INTEGER,
    V06 INTEGER,
    V07 INTEGER,
    V08 INTEGER,
    V09 INTEGER,
    V10 INTEGER,
    V11 INTEGER,
    V12 INTEGER,
    V13 INTEGER,
    V14 INTEGER,
    V15 INTEGER,
    V16 INTEGER,
    V17 INTEGER,
    V18 INTEGER,
    V19 INTEGER,
    V20 INTEGER,
    V21 INTEGER,
    V22 INTEGER,
    V23 INTEGER,
    V24 INTEGER,
    V25 INTEGER,
    V26 INTEGER,
    V27 INTEGER,
    V28 INTEGER,
    V29 INTEGER,
    V30 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE RIK83_DISTR1_11 (
    I$OBJ_ID BIGINT,
    I$N INTEGER)
RETURNS (
    V03 INTEGER,
    V04 NUMERIC(11,2),
    V05 INTEGER,
    V06 INTEGER,
    V07 INTEGER,
    V08 INTEGER,
    V09 INTEGER,
    V10 INTEGER,
    V11 INTEGER,
    V12 INTEGER,
    V13 INTEGER,
    V14 INTEGER,
    V15 INTEGER,
    V16 INTEGER,
    V17 INTEGER,
    V18 INTEGER,
    V19 INTEGER,
    V20 INTEGER,
    V21 INTEGER,
    V22 INTEGER,
    V23 INTEGER,
    V24 INTEGER,
    V25 INTEGER,
    V26 INTEGER,
    V27 INTEGER,
    V28 INTEGER,
    V29 INTEGER,
    V30 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE RIK83_DISTR1_2 (
    I$OBJ_ID BIGINT,
    I$N INTEGER)
RETURNS (
    V03 INTEGER,
    V04 NUMERIC(11,2),
    V05 INTEGER,
    V06 INTEGER,
    V07 INTEGER,
    V08 INTEGER,
    V09 INTEGER,
    V10 INTEGER,
    V11 INTEGER,
    V12 INTEGER,
    V13 INTEGER,
    V14 INTEGER,
    V15 INTEGER,
    V16 INTEGER,
    V17 INTEGER,
    V18 INTEGER,
    V19 INTEGER,
    V20 INTEGER,
    V21 INTEGER,
    V22 INTEGER,
    V23 INTEGER,
    V24 INTEGER,
    V25 INTEGER,
    V26 INTEGER,
    V27 INTEGER,
    V28 INTEGER,
    V29 INTEGER,
    V30 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE RIK83_DISTR1_3 (
    I$OBJ_ID BIGINT,
    I$N INTEGER)
RETURNS (
    V03 INTEGER,
    V04 NUMERIC(11,2),
    V05 INTEGER,
    V06 INTEGER,
    V07 INTEGER,
    V08 INTEGER,
    V09 INTEGER,
    V10 INTEGER,
    V11 INTEGER,
    V12 INTEGER,
    V13 INTEGER,
    V14 INTEGER,
    V15 INTEGER,
    V16 INTEGER,
    V17 INTEGER,
    V18 INTEGER,
    V19 INTEGER,
    V20 INTEGER,
    V21 INTEGER,
    V22 INTEGER,
    V23 INTEGER,
    V24 INTEGER,
    V25 INTEGER,
    V26 INTEGER,
    V27 INTEGER,
    V28 INTEGER,
    V29 INTEGER,
    V30 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE RIK83_DISTR1_4 (
    I$OBJ_ID BIGINT,
    I$N INTEGER)
RETURNS (
    V03 INTEGER,
    V04 NUMERIC(11,2),
    V05 INTEGER,
    V06 INTEGER,
    V07 INTEGER,
    V08 INTEGER,
    V09 INTEGER,
    V10 INTEGER,
    V11 INTEGER,
    V12 INTEGER,
    V13 INTEGER,
    V14 INTEGER,
    V15 INTEGER,
    V16 INTEGER,
    V17 INTEGER,
    V18 INTEGER,
    V19 INTEGER,
    V20 INTEGER,
    V21 INTEGER,
    V22 INTEGER,
    V23 INTEGER,
    V24 INTEGER,
    V25 INTEGER,
    V26 INTEGER,
    V27 INTEGER,
    V28 INTEGER,
    V29 INTEGER,
    V30 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE RIK83_DISTR1_5 (
    I$OBJ_ID BIGINT,
    I$N INTEGER)
RETURNS (
    V03 INTEGER,
    V04 NUMERIC(11,2),
    V05 INTEGER,
    V06 INTEGER,
    V07 INTEGER,
    V08 INTEGER,
    V09 INTEGER,
    V10 INTEGER,
    V11 INTEGER,
    V12 INTEGER,
    V13 INTEGER,
    V14 INTEGER,
    V15 INTEGER,
    V16 INTEGER,
    V17 INTEGER,
    V18 INTEGER,
    V19 INTEGER,
    V20 INTEGER,
    V21 INTEGER,
    V22 INTEGER,
    V23 INTEGER,
    V24 INTEGER,
    V25 INTEGER,
    V26 INTEGER,
    V27 INTEGER,
    V28 INTEGER,
    V29 INTEGER,
    V30 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE RIK83_DISTR1_6 (
    I$OBJ_ID BIGINT,
    I$N INTEGER)
RETURNS (
    V03 INTEGER,
    V04 NUMERIC(11,2),
    V05 INTEGER,
    V06 INTEGER,
    V07 INTEGER,
    V08 INTEGER,
    V09 INTEGER,
    V10 INTEGER,
    V11 INTEGER,
    V12 INTEGER,
    V13 INTEGER,
    V14 INTEGER,
    V15 INTEGER,
    V16 INTEGER,
    V17 INTEGER,
    V18 INTEGER,
    V19 INTEGER,
    V20 INTEGER,
    V21 INTEGER,
    V22 INTEGER,
    V23 INTEGER,
    V24 INTEGER,
    V25 INTEGER,
    V26 INTEGER,
    V27 INTEGER,
    V28 INTEGER,
    V29 INTEGER,
    V30 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE RIK83_DISTR1_7 (
    I$OBJ_ID BIGINT,
    I$N INTEGER)
RETURNS (
    V03 INTEGER,
    V04 NUMERIC(11,2),
    V05 INTEGER,
    V06 INTEGER,
    V07 INTEGER,
    V08 INTEGER,
    V09 INTEGER,
    V10 INTEGER,
    V11 INTEGER,
    V12 INTEGER,
    V13 INTEGER,
    V14 INTEGER,
    V15 INTEGER,
    V16 INTEGER,
    V17 INTEGER,
    V18 INTEGER,
    V19 INTEGER,
    V20 INTEGER,
    V21 INTEGER,
    V22 INTEGER,
    V23 INTEGER,
    V24 INTEGER,
    V25 INTEGER,
    V26 INTEGER,
    V27 INTEGER,
    V28 INTEGER,
    V29 INTEGER,
    V30 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE RIK83_DISTR1_8 (
    I$OBJ_ID BIGINT,
    I$N INTEGER)
RETURNS (
    V03 INTEGER,
    V04 NUMERIC(11,2),
    V05 INTEGER,
    V06 INTEGER,
    V07 INTEGER,
    V08 INTEGER,
    V09 INTEGER,
    V10 INTEGER,
    V11 INTEGER,
    V12 INTEGER,
    V13 INTEGER,
    V14 INTEGER,
    V15 INTEGER,
    V16 INTEGER,
    V17 INTEGER,
    V18 INTEGER,
    V19 INTEGER,
    V20 INTEGER,
    V21 INTEGER,
    V22 INTEGER,
    V23 INTEGER,
    V24 INTEGER,
    V25 INTEGER,
    V26 INTEGER,
    V27 INTEGER,
    V28 INTEGER,
    V29 INTEGER,
    V30 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE RIK83_DISTR1_9 (
    I$OBJ_ID BIGINT,
    I$N INTEGER)
RETURNS (
    V03 INTEGER,
    V04 NUMERIC(11,2),
    V05 INTEGER,
    V06 INTEGER,
    V07 INTEGER,
    V08 INTEGER,
    V09 INTEGER,
    V10 INTEGER,
    V11 INTEGER,
    V12 INTEGER,
    V13 INTEGER,
    V14 INTEGER,
    V15 INTEGER,
    V16 INTEGER,
    V17 INTEGER,
    V18 INTEGER,
    V19 INTEGER,
    V20 INTEGER,
    V21 INTEGER,
    V22 INTEGER,
    V23 INTEGER,
    V24 INTEGER,
    V25 INTEGER,
    V26 INTEGER,
    V27 INTEGER,
    V28 INTEGER,
    V29 INTEGER,
    V30 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE RIK83_DTL (
    G SMALLINT NOT NULL,
    N SMALLINT NOT NULL,
    V SMALLINT NOT NULL,
    BY_SCHOOL SMALLINT = 0)
RETURNS (
    NAME VARCHAR(250),
    CNT DOUBLE PRECISION,
    VAL1 VARCHAR(250))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE RIK83_GRID (
    I$OBJ_ID BIGINT NOT NULL,
    I$POD_NAME VARCHAR(1000),
    I$OPF_NAME VARCHAR(1000),
    I$G SMALLINT,
    I$N SMALLINT)
RETURNS (
    V03 INTEGER,
    V04 NUMERIC(11,2),
    V05 INTEGER,
    V06 INTEGER,
    V07 INTEGER,
    V08 INTEGER,
    V09 INTEGER,
    V10 INTEGER,
    V11 INTEGER,
    V12 INTEGER,
    V13 INTEGER,
    V14 INTEGER,
    V15 INTEGER,
    V16 INTEGER,
    V17 INTEGER,
    V18 INTEGER,
    V19 INTEGER,
    V20 INTEGER,
    V21 INTEGER,
    V22 INTEGER,
    V23 INTEGER,
    V24 INTEGER,
    V25 INTEGER,
    V26 INTEGER,
    V27 INTEGER,
    V28 INTEGER,
    V29 INTEGER,
    V30 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE RIK83_INFO (
    I$POST_ID BIGINT,
    I$WORKER_ID BIGINT,
    V03 INTEGER = null,
    V04 NUMERIC(11,2) = null,
    V05 INTEGER = null,
    V06 INTEGER = null,
    V07 INTEGER = null,
    V08 INTEGER = null,
    V09 INTEGER = null,
    V10 INTEGER = null,
    V11 INTEGER = null,
    V12 INTEGER = null,
    V13 INTEGER = null,
    V14 INTEGER = null,
    V15 INTEGER = null,
    V16 INTEGER = null,
    V17 INTEGER = null,
    V18 INTEGER = null,
    V19 INTEGER = null,
    V20 INTEGER = null,
    V21 INTEGER = null,
    V22 INTEGER = null,
    V23 INTEGER = null,
    V24 INTEGER = null,
    V25 INTEGER = null,
    V26 INTEGER = null,
    V27 INTEGER = null,
    V28 INTEGER = null,
    V29 INTEGER = null,
    V30 INTEGER = null)
RETURNS (
    X03 INTEGER,
    X04 NUMERIC(11,2),
    X05 INTEGER,
    X06 INTEGER,
    X07 INTEGER,
    X08 INTEGER,
    X09 INTEGER,
    X10 INTEGER,
    X11 INTEGER,
    X12 INTEGER,
    X13 INTEGER,
    X14 INTEGER,
    X15 INTEGER,
    X16 INTEGER,
    X17 INTEGER,
    X18 INTEGER,
    X19 INTEGER,
    X20 INTEGER,
    X21 INTEGER,
    X22 INTEGER,
    X23 INTEGER,
    X24 INTEGER,
    X25 INTEGER,
    X26 INTEGER,
    X27 INTEGER,
    X28 INTEGER,
    X29 INTEGER,
    X30 INTEGER,
    AGE SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE RIK83_INSERT (
    I$OBJ_ID BIGINT NOT NULL,
    I$POD_NAME VARCHAR(1000) = null,
    I$OPF_ID VARCHAR(1000) = null,
    R_1DO_6_FL SMALLINT = 0,
    I$DT DATE = current_date)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE RIK83_STAVOK (
    I$POST_ID BIGINT)
RETURNS (
    Z NUMERIC(11,2))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE RKS_ACCEPT_CHECK (
    I$NAME_LAST VARCHAR(200),
    I$NAME_FIRST VARCHAR(200),
    I$NAME_MID VARCHAR(200),
    I$BIRTH_DATE DATE,
    I$SNILS VARCHAR(200),
    I$CLAIM_ID VARCHAR(40),
    I$REG_ID VARCHAR(40),
    I$PASS_TYPE BIGINT = null,
    I$PASS_DATE DATE = null,
    I$PASS_NUM VARCHAR(100) = null)
RETURNS (
    IS_EXIST SMALLINT,
    MATCH_FIO SMALLINT,
    OBJ_ID BIGINT,
    TYPE_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE RKS_ACCEPT_QUEUE (
    I$CLAIM_ID VARCHAR(40),
    I$REG_ID VARCHAR(100),
    I$STAGE VARCHAR(100),
    I$NAME_LAST VARCHAR(200),
    I$NAME_FIRST VARCHAR(200),
    I$NAME_MID VARCHAR(200),
    I$BIRTH_DATE DATE,
    I$SNILS VARCHAR(40),
    I$SEX VARCHAR(40),
    I$PASS_TYPE VARCHAR(100),
    I$PASS_SERIE VARCHAR(100),
    I$PASS_NUM VARCHAR(100),
    I$PASS_DATE DATE,
    I$PASS_ISSUER VARCHAR(1000),
    I$CITIZENSHIP VARCHAR(200),
    I$BIRTH_PLACE VARCHAR(200),
    I$REG_TYPE VARCHAR(40),
    I$REQUEST_DATE DATE,
    I$STUDY_YEAR INTEGER,
    I$BENEFIT_NAME VARCHAR(400),
    I$BENEFIT_NAME2 VARCHAR(400),
    I$USER_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE RKS_ACCEPT_WARNING (
    I$REG_ID VARCHAR(100),
    I$OU_NAME VARCHAR(4000),
    I$OU_PHONE VARCHAR(400),
    I$OU_EMAIL VARCHAR(400),
    I$OU_AREA VARCHAR(100),
    I$GRADE_NAME VARCHAR(400))
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE RKS_ACTIVE_PERSON_IDS RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE RKS_APPLY_PERSON (
    I$OBJ_ID BIGINT,
    I$STATUS INTEGER,
    I$REG_ID VARCHAR(100),
    I$MSG VARCHAR(1000))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE RKS_APPLY_TIMEMARK (
    I$TM TIMESTAMP)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE RKS_APPLY_WARNING (
    I$REG_ID VARCHAR(100),
    I$MSG VARCHAR(1000),
    I$OBJ_ID BIGINT = null)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE RKS_DN_QUEUE (
    I$REG_ID VARCHAR(100) NOT NULL,
    I$REL_NAME VARCHAR(200) NOT NULL,
    I$PERSON_CODE VARCHAR(100) NOT NULL,
    I$REL_CODE VARCHAR(100) NOT NULL)
RETURNS (
    OBJ_ID BIGINT,
    REL_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE RKS_DO_EVENT (
    I$REG_ID VARCHAR(100),
    I$REC_ID VARCHAR(40),
    I$ORG_NAME VARCHAR(400),
    I$DATE_FROM DATE,
    I$DATE_TO DATE,
    I$STAGE_NAME VARCHAR(400),
    I$DO_NAME VARCHAR(400),
    I$TYPE_ID BIGINT,
    I$DIR_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE RKS_LIST_PERSONS (
    LEVEL_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    PERSON_FIO VARCHAR(1000),
    PERSON_TYPE_ID BIGINT,
    GRADE_NAME VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE RKS_OD_EVENT (
    I$REG_ID VARCHAR(40),
    I$REC_ID VARCHAR(40),
    I$EVENT_DATE DATE,
    I$STAGE_ID BIGINT,
    I$LEVEL_ID SMALLINT,
    I$SUBJECT_ID BIGINT,
    I$PRE_VAL FLOAT,
    I$PRE_CUSTOM_VAL FLOAT,
    I$RES_VAL FLOAT,
    I$RES_CUSTOM_VAL FLOAT,
    I$RESULT_ID SMALLINT)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE RKS_OU_INFO RETURNS (
    OBJ_ID BIGINT,
    NAME_SHORT VARCHAR(1000),
    EMAIL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE RKS_SAVE_PERSON_ID (
    PERSON_ID BIGINT,
    REG_ID VARCHAR(100),
    I$MODE SMALLINT = 0,
    I$STATUS SMALLINT = 0)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE RKS_SAVE_ULS (
    I$REG_ID VARCHAR(100),
    I$VAL VARCHAR(100))
RETURNS (
    OBJ_ID BIGINT,
    TYPE_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE RKS_SERIALIZE (
    I$OBJ_ID BIGINT,
    I$MODE SMALLINT = 0,
    I$EXCEPT SMALLINT NOT NULL = 1)
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE RKS_SERIALIZE_ALL (
    I$DATE TIMESTAMP)
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE RKS_SERIALIZE_DPO (
    I$DATE TIMESTAMP)
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE RKS_SERIALIZE_GRADES RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE RKS_SERIALIZE_HEADERS (
    I$DATE TIMESTAMP,
    I$ORGDATA SMALLINT = 0)
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE RKS_SERIALIZE_NOULS RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE RKS_SERIALIZE_OODATA (
    I$DT TIMESTAMP)
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE RKS_SERIALIZE_OVZCNT RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE RKS_SERIALIZE_PERIODS RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE RKS_UPDATE_ALLOW2 (
    I$STATE SMALLINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE ROD_EXPORT (
    I$USER_ID BIGINT = 1)
RETURNS (
    TAG_NAME VARCHAR(255),
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE ROD_EXPORT_PROPERTIES_SET (
    ROD_ADDRESS VARCHAR(100),
    ROD_LOGIN VARCHAR(100),
    ROD_PWD VARCHAR(100),
    ROD_TIMEOUT VARCHAR(100),
    ROD_EXPORT_INTERVAL VARCHAR(100))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE ROD_LAST_EXPORT_DATE_SET (
    I$DT TIMESTAMP)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE RPARAMS_LIST (
    I$REPORT_ID BIGINT,
    I$LANG_CODE CHAR(2) = 'RU')
RETURNS (
    REPORT_ID BIGINT,
    RPARAM VARCHAR(100),
    RES_ID BIGINT,
    RPARAM_CAPTION VARCHAR(4000),
    PARAM_TYPE SMALLINT,
    LIST_ID BIGINT,
    SQL_TEXT VARCHAR(1000),
    IS_DEL SMALLINT,
    IS_REQUIRED SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE RPARAM_ADD (
    I$REPORT_ID BIGINT,
    I$RPARAM VARCHAR(100),
    I$RES_ID BIGINT,
    I$PARAM_TYPE SMALLINT,
    I$LIST_ID BIGINT,
    I$SQL_TEXT VARCHAR(1000),
    I$LANG_CODE CHAR(2),
    I$RPARAM_CAPTION VARCHAR(4000),
    I$IS_DEL SMALLINT = 0,
    I$IS_REQUIRED SMALLINT = 0)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE RSOKO_CALC_PUPIL_ABSENCES_COUNT (
    I$SCHOOL_ID BIGINT = null)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE R_1DO_5 (
    I$OBJ_ID BIGINT NOT NULL,
    I$N SMALLINT NOT NULL)
RETURNS (
    V03 INTEGER,
    V04 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_1DO_6 (
    I$OBJ_ID BIGINT NOT NULL,
    I$N SMALLINT NOT NULL)
RETURNS (
    V03 INTEGER,
    V04 NUMERIC(11,2),
    V05 INTEGER,
    V06 INTEGER,
    V07 INTEGER,
    V08 INTEGER,
    V09 INTEGER,
    V10 INTEGER,
    V11 INTEGER,
    V12 INTEGER,
    V13 INTEGER,
    V14 INTEGER,
    V15 INTEGER,
    V16 INTEGER,
    V17 INTEGER,
    V18 INTEGER,
    V19 INTEGER,
    V20 INTEGER,
    V21 INTEGER,
    V22 INTEGER,
    V23 INTEGER,
    V24 INTEGER,
    V25 INTEGER,
    V26 INTEGER,
    V27 INTEGER,
    V28 INTEGER,
    V29 INTEGER,
    V30 INTEGER,
    V31 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_1DO_ODOD_1 (
    I$PARAM_ID INTEGER,
    I$YEAR INTEGER = NULL)
RETURNS (
    I INTEGER,
    VAL VARCHAR(200),
    D DATE)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_1DO_ODOD_2 (
    I$PARAM_ID INTEGER,
    I$YEAR SMALLINT = null)
RETURNS (
    V3 INTEGER,
    V4 VARCHAR(10),
    V5 INTEGER,
    V6 INTEGER,
    V7 VARCHAR(10),
    V8 VARCHAR(10),
    V9 VARCHAR(10),
    V10 VARCHAR(10),
    V11 VARCHAR(10))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_1DO_ODOD_2_DTL (
    I$OU_ID BIGINT,
    I$DIR_TYPE VARCHAR(200),
    I$FIN_TYPE BIGINT)
RETURNS (
    STUDENT_ID BIGINT,
    GROUP_ID BIGINT,
    DIR_NAME VARCHAR(200))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_1DO_ODOD_5 (
    I$PARAM_ID INTEGER,
    I$YEAR SMALLINT = null)
RETURNS (
    V3 INTEGER,
    V4 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_1DO_ODOD_6_1 (
    I$PARAM_ID INTEGER,
    I$YEAR SMALLINT = null)
RETURNS (
    V3 INTEGER,
    V4 NUMERIC(15,2),
    V5 INTEGER,
    V6 INTEGER,
    V7 INTEGER,
    V8 INTEGER,
    V9 INTEGER,
    V10 INTEGER,
    V11 INTEGER,
    V12 INTEGER,
    V13 INTEGER,
    V14 INTEGER,
    V15 INTEGER,
    V16 INTEGER,
    V17 INTEGER,
    V18 INTEGER,
    V19 INTEGER,
    V20 INTEGER,
    V21 INTEGER,
    V22 INTEGER,
    V23 INTEGER,
    V24 INTEGER,
    V25 INTEGER,
    V26 INTEGER,
    V27 INTEGER,
    V28 INTEGER,
    V29 INTEGER,
    V30 INTEGER,
    V31 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_1DO_ODOD_6_2 (
    I$PARAM_ID INTEGER,
    I$YEAR SMALLINT = null)
RETURNS (
    V3 INTEGER,
    V4 NUMERIC(15,2),
    V5 INTEGER,
    V6 INTEGER,
    V7 INTEGER,
    V8 INTEGER,
    V9 INTEGER,
    V10 INTEGER,
    V11 INTEGER,
    V12 INTEGER,
    V13 INTEGER,
    V14 INTEGER,
    V15 INTEGER,
    V16 INTEGER,
    V17 INTEGER,
    V18 INTEGER,
    V19 INTEGER,
    V20 INTEGER,
    V21 INTEGER,
    V22 INTEGER,
    V23 INTEGER,
    V24 INTEGER,
    V25 INTEGER,
    V26 INTEGER,
    V27 INTEGER,
    V28 INTEGER,
    V29 INTEGER,
    V30 INTEGER,
    V31 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_1DO_ODOD_6_3 (
    I$PARAM_ID INTEGER,
    I$YEAR SMALLINT = null)
RETURNS (
    V3 INTEGER,
    V4 NUMERIC(15,2),
    V5 INTEGER,
    V6 INTEGER,
    V7 INTEGER,
    V8 INTEGER,
    V9 INTEGER,
    V10 INTEGER,
    V11 INTEGER,
    V12 INTEGER,
    V13 INTEGER,
    V14 INTEGER,
    V15 INTEGER,
    V16 INTEGER,
    V17 INTEGER,
    V18 INTEGER,
    V19 INTEGER,
    V20 INTEGER,
    V21 INTEGER,
    V22 INTEGER,
    V23 INTEGER,
    V24 INTEGER,
    V25 INTEGER,
    V26 INTEGER,
    V27 INTEGER,
    V28 INTEGER,
    V29 INTEGER,
    V30 INTEGER,
    V31 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_1DO_ODOD_6_4 (
    I$PARAM_ID INTEGER,
    I$YEAR SMALLINT = null)
RETURNS (
    V3 INTEGER,
    V4 NUMERIC(15,2),
    V5 INTEGER,
    V6 INTEGER,
    V7 INTEGER,
    V8 INTEGER,
    V9 INTEGER,
    V10 INTEGER,
    V11 INTEGER,
    V12 INTEGER,
    V13 INTEGER,
    V14 INTEGER,
    V15 INTEGER,
    V16 INTEGER,
    V17 INTEGER,
    V18 INTEGER,
    V19 INTEGER,
    V20 INTEGER,
    V21 INTEGER,
    V22 INTEGER,
    V23 INTEGER,
    V24 INTEGER,
    V25 INTEGER,
    V26 INTEGER,
    V27 INTEGER,
    V28 INTEGER,
    V29 INTEGER,
    V30 INTEGER,
    V31 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_1DO_ODOD_6_DTL (
    I$OU_ID BIGINT)
RETURNS (
    PERSON_ID BIGINT,
    BIRTH_DATE DATE,
    SEX BIGINT,
    STAGE_YEARS FLOAT,
    EDU_ID BIGINT,
    FULL_OCCP SMALLINT,
    PART_OCCP SMALLINT,
    CAT_TOP SMALLINT,
    CAT_1 SMALLINT,
    CAT_2 SMALLINT,
    CAT_NONE SMALLINT,
    IS_PD SMALLINT,
    IS_PD2 SMALLINT,
    IS_MANAGER SMALLINT,
    IS_M1 SMALLINT,
    IS_M2 SMALLINT,
    IS_GB SMALLINT,
    IS_MX SMALLINT,
    IS_PDD SMALLINT,
    IS_TEACHER SMALLINT,
    IS_DO SMALLINT,
    IS_PORG SMALLINT,
    IS_SOC SMALLINT,
    IS_TRAIN SMALLINT,
    IS_MTD SMALLINT,
    IS_PDO SMALLINT,
    IS_AUX SMALLINT,
    IS_WRK SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_1DO_ODOD_6_DTL2 (
    I$OU_ID BIGINT)
RETURNS (
    PERSON_ID BIGINT,
    BIRTH_DATE DATE,
    SEX BIGINT,
    STAGE_YEARS FLOAT,
    EDU_ID BIGINT,
    IS_MANAGER SMALLINT,
    IS_M1 SMALLINT,
    IS_M2 SMALLINT,
    IS_MX SMALLINT,
    IS_GB SMALLINT,
    IS_PDD SMALLINT,
    IS_TEACHER SMALLINT,
    IS_DO SMALLINT,
    IS_PORG SMALLINT,
    IS_SOC SMALLINT,
    IS_TRAIN SMALLINT,
    IS_MTD SMALLINT,
    IS_PDO SMALLINT,
    IS_AUX SMALLINT,
    IS_WRK SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_1DO_ODOD_6_DTL3 (
    I$OU_ID BIGINT)
RETURNS (
    PERSON_ID BIGINT,
    BIRTH_DATE DATE,
    SEX BIGINT,
    STAGE_YEARS FLOAT,
    EDU_ID BIGINT,
    IS_MANAGER SMALLINT,
    IS_M1 SMALLINT,
    IS_M2 SMALLINT,
    IS_GB SMALLINT,
    IS_MX SMALLINT,
    IS_PDD SMALLINT,
    IS_TEACHER SMALLINT,
    IS_DO SMALLINT,
    IS_PORG SMALLINT,
    IS_SOC SMALLINT,
    IS_TRAIN SMALLINT,
    IS_MTD SMALLINT,
    IS_PDO SMALLINT,
    IS_AUX SMALLINT,
    IS_WRK SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_85K_1 (
    I$OBJ_ID BIGINT NOT NULL,
    I$NUM SMALLINT NOT NULL)
RETURNS (
    V03 SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_85K_11 (
    I$OBJ_ID BIGINT NOT NULL,
    I$NUM SMALLINT NOT NULL)
RETURNS (
    V03 SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_85K_12 (
    I$OBJ_ID BIGINT NOT NULL,
    I$NUM SMALLINT NOT NULL)
RETURNS (
    V03 SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_85K_2 (
    I$OBJ_ID BIGINT NOT NULL,
    I$N SMALLINT NOT NULL)
RETURNS (
    SCHOLAR_ID BIGINT,
    GROUP_ID BIGINT,
    GROUP_ID_STAGE3 BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_85K_21 (
    I$OBJ_ID BIGINT NOT NULL,
    I$N SMALLINT NOT NULL)
RETURNS (
    V03 INTEGER,
    V04 VARCHAR(10),
    V05 VARCHAR(10),
    V06 INTEGER,
    V07 VARCHAR(10))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_85K_21DTL (
    I$OBJ_ID BIGINT NOT NULL,
    I$N SMALLINT NOT NULL,
    I$N2 SMALLINT NOT NULL)
RETURNS (
    VAL1 VARCHAR(250),
    VAL2 VARCHAR(250),
    NAME VARCHAR(250))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_85K_22 (
    I$OBJ_ID BIGINT NOT NULL,
    I$N SMALLINT NOT NULL)
RETURNS (
    V03 INTEGER,
    V04 INTEGER,
    V05 INTEGER,
    V06 INTEGER,
    V07 INTEGER,
    V08 INTEGER,
    V09 INTEGER,
    V10 INTEGER,
    V11 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_85K_22DTL (
    I$OBJ_ID BIGINT NOT NULL,
    I$N SMALLINT NOT NULL,
    I$N2 SMALLINT NOT NULL)
RETURNS (
    VAL1 VARCHAR(250),
    VAL2 VARCHAR(250))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_85K_3 (
    I$OBJ_ID BIGINT NOT NULL,
    I$N SMALLINT NOT NULL)
RETURNS (
    TEACHER_ID BIGINT,
    V03 SMALLINT,
    V04 SMALLINT,
    V05 SMALLINT,
    V06 SMALLINT,
    V07 SMALLINT,
    V08 SMALLINT,
    V09 SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_85K_31 (
    I$OBJ_ID BIGINT NOT NULL,
    I$N SMALLINT NOT NULL)
RETURNS (
    V03 INTEGER,
    V04 VARCHAR(10),
    V05 VARCHAR(10),
    V06 VARCHAR(10),
    V07 VARCHAR(10),
    V08 INTEGER,
    V09 VARCHAR(10))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_85K_31DTL (
    I$OBJ_ID BIGINT NOT NULL,
    I$N SMALLINT NOT NULL,
    I$N2 SMALLINT NOT NULL)
RETURNS (
    VAL1 VARCHAR(250))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_85K_32 (
    I$OBJ_ID BIGINT NOT NULL,
    I$N SMALLINT NOT NULL)
RETURNS (
    V03 INTEGER,
    V04 INTEGER,
    V05 INTEGER,
    V06 INTEGER,
    V07 INTEGER,
    V08 INTEGER,
    V09 INTEGER,
    V10 INTEGER,
    V11 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_85K_32DTL (
    I$OBJ_ID BIGINT NOT NULL,
    I$N SMALLINT NOT NULL,
    I$N2 SMALLINT NOT NULL)
RETURNS (
    VAL1 VARCHAR(250),
    VAL2 VARCHAR(250))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_85K_33 (
    I$OBJ_ID BIGINT NOT NULL,
    I$N SMALLINT NOT NULL)
RETURNS (
    V03 INTEGER,
    V04 INTEGER,
    V05 INTEGER,
    V06 INTEGER,
    V07 INTEGER,
    V08 INTEGER,
    V09 INTEGER,
    V10 INTEGER,
    V11 INTEGER,
    V12 INTEGER,
    V13 INTEGER,
    V14 INTEGER,
    V15 INTEGER,
    V16 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_85K_33DTL (
    I$OBJ_ID BIGINT NOT NULL,
    I$N SMALLINT NOT NULL,
    I$N2 SMALLINT NOT NULL)
RETURNS (
    VAL1 VARCHAR(250))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_85K_41 (
    I$OBJ_ID BIGINT NOT NULL,
    I$N SMALLINT NOT NULL)
RETURNS (
    V03 DOUBLE PRECISION,
    V04 DOUBLE PRECISION,
    V05 DOUBLE PRECISION,
    V06 DOUBLE PRECISION,
    V07 DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_85K_DISTR_11 (
    I$OBJ_ID BIGINT NOT NULL,
    I$NUM SMALLINT NOT NULL)
RETURNS (
    V03 VARCHAR(250))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_85K_DISTR_12 (
    I$OBJ_ID BIGINT NOT NULL,
    I$NUM SMALLINT NOT NULL)
RETURNS (
    V03 VARCHAR(250))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_85K_DISTR_21 (
    I$OBJ_ID BIGINT NOT NULL,
    I$N SMALLINT NOT NULL)
RETURNS (
    V03 INTEGER,
    V04 VARCHAR(10),
    V05 VARCHAR(10),
    V06 INTEGER,
    V07 VARCHAR(10))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_85K_DISTR_21DTL (
    I$OBJ_ID BIGINT NOT NULL,
    I$N SMALLINT NOT NULL,
    I$N2 SMALLINT NOT NULL)
RETURNS (
    VAL1 VARCHAR(250),
    VAL2 VARCHAR(250),
    NAME VARCHAR(250),
    VAL3 VARCHAR(250))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_85K_DISTR_22 (
    I$OBJ_ID BIGINT NOT NULL,
    I$N SMALLINT NOT NULL)
RETURNS (
    V03 INTEGER,
    V04 INTEGER,
    V05 INTEGER,
    V06 INTEGER,
    V07 INTEGER,
    V08 INTEGER,
    V09 INTEGER,
    V10 INTEGER,
    V11 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_85K_DISTR_22DTL (
    I$OBJ_ID BIGINT NOT NULL,
    I$N SMALLINT NOT NULL,
    I$N2 SMALLINT NOT NULL)
RETURNS (
    VAL1 VARCHAR(250),
    VAL2 VARCHAR(250),
    VAL3 VARCHAR(250))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_85K_DISTR_31 (
    I$OBJ_ID BIGINT NOT NULL,
    I$N SMALLINT NOT NULL)
RETURNS (
    V03 INTEGER,
    V04 VARCHAR(10),
    V05 VARCHAR(10),
    V06 VARCHAR(10),
    V07 VARCHAR(10),
    V08 INTEGER,
    V09 VARCHAR(10))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_85K_DISTR_31DTL (
    I$OBJ_ID BIGINT NOT NULL,
    I$N SMALLINT NOT NULL,
    I$N2 SMALLINT NOT NULL)
RETURNS (
    VAL1 VARCHAR(250),
    VAL3 VARCHAR(250))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_85K_DISTR_32 (
    I$OBJ_ID BIGINT NOT NULL,
    I$N SMALLINT NOT NULL)
RETURNS (
    V03 INTEGER,
    V04 INTEGER,
    V05 INTEGER,
    V06 INTEGER,
    V07 INTEGER,
    V08 INTEGER,
    V09 INTEGER,
    V10 INTEGER,
    V11 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_85K_DISTR_32DTL (
    I$OBJ_ID BIGINT NOT NULL,
    I$N SMALLINT NOT NULL,
    I$N2 SMALLINT NOT NULL)
RETURNS (
    VAL1 VARCHAR(250),
    VAL2 VARCHAR(250),
    VAL3 VARCHAR(250))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_85K_DISTR_33 (
    I$OBJ_ID BIGINT NOT NULL,
    I$N SMALLINT NOT NULL)
RETURNS (
    V03 INTEGER,
    V04 INTEGER,
    V05 INTEGER,
    V06 INTEGER,
    V07 INTEGER,
    V08 INTEGER,
    V09 INTEGER,
    V10 INTEGER,
    V11 INTEGER,
    V12 INTEGER,
    V13 INTEGER,
    V14 INTEGER,
    V15 INTEGER,
    V16 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_85K_DISTR_33DTL (
    I$OBJ_ID BIGINT NOT NULL,
    I$N SMALLINT NOT NULL,
    I$N2 SMALLINT NOT NULL)
RETURNS (
    VAL1 VARCHAR(250),
    VAL3 VARCHAR(250))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_85K_DISTR_41 (
    I$OBJ_ID BIGINT NOT NULL,
    I$N SMALLINT NOT NULL)
RETURNS (
    V03 DOUBLE PRECISION,
    V04 DOUBLE PRECISION,
    V05 DOUBLE PRECISION,
    V06 DOUBLE PRECISION,
    V07 DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_85K_DISTR_42 (
    I$OBJ_ID BIGINT NOT NULL,
    I$NUM SMALLINT NOT NULL)
RETURNS (
    V03 VARCHAR(250))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_85K_NEW_HAS_DOO (
    I$OBJ_ID BIGINT)
RETURNS (
    HAS_DOO SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_CERTIFICATE_REG_LIST (
    I$OBJ_ID BIGINT,
    I$DT_FROM DATE,
    I$DT_TO DATE,
    I$USER_ID BIGINT)
RETURNS (
    VAL1 INTEGER,
    VAL0 VARCHAR(4000),
    VAL2 VARCHAR(30),
    VAL3 VARCHAR(30),
    VAL4 VARCHAR(1000),
    VAL5 DATE,
    VAL6 DATE,
    VAL7 VARCHAR(255),
    VAL8 VARCHAR(255),
    VAL9 DATE,
    VAL11 VARCHAR(255),
    VAL12 DATE)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_CLASS_SHORT_DOU (
    I$REGION_ID BIGINT NOT NULL,
    I$OPF_FILTER VARCHAR(1000),
    I$POD_FILTER VARCHAR(1000))
RETURNS (
    V00 VARCHAR(1000),
    V01 INTEGER,
    V02 INTEGER,
    V03 INTEGER,
    V04 INTEGER,
    V05 INTEGER,
    V06 INTEGER,
    V07 INTEGER,
    V08 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_COMPENSATION_DOU (
    I$OBJ_ID BIGINT,
    I$SUM_COMP NUMERIC(8,2),
    I$DT_FROM DATE,
    I$DT_TO DATE)
RETURNS (
    C1 INTEGER,
    C2 VARCHAR(200),
    C3 VARCHAR(200),
    C4 DATE,
    C5 DATE,
    C6 VARCHAR(10),
    C7 VARCHAR(350),
    C8 VARCHAR(4),
    C9 VARCHAR(10),
    C10 VARCHAR(10),
    C11 VARCHAR(10),
    C12 VARCHAR(10))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_EMPLOYEE (
    I$OBJ_ID BIGINT,
    I$DT DATE)
RETURNS (
    C1 VARCHAR(500),
    C2 VARCHAR(500),
    C3 VARCHAR(500),
    C4 VARCHAR(500),
    C5 VARCHAR(500),
    C6 VARCHAR(500),
    C7 VARCHAR(500),
    C8 VARCHAR(100),
    C9 VARCHAR(100),
    C10 VARCHAR(100),
    C11 VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_EMPLOYEE_DOU (
    I$OBJ_ID BIGINT,
    I$DT DATE,
    I$TEACHER_ONLY SMALLINT = 1)
RETURNS (
    C1 VARCHAR(500),
    C2 VARCHAR(500),
    C3 VARCHAR(500),
    C4 DATE,
    C5 VARCHAR(500),
    C6 VARCHAR(500),
    C7 VARCHAR(500),
    C8 VARCHAR(100),
    C9 VARCHAR(100),
    C10 VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_EMPLOYEE_IN (
    I$SCHOOL_ID BIGINT,
    I$FROM DATE,
    I$TO DATE)
RETURNS (
    C1 DATE,
    C2 VARCHAR(1000),
    C3 VARCHAR(1000),
    C4 DATE,
    C5 VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_EMPLOYEE_OUT (
    I$SCHOOL_ID BIGINT,
    I$FROM DATE,
    I$TO DATE)
RETURNS (
    C1 DATE,
    C2 VARCHAR(1000),
    C3 VARCHAR(1000),
    C4 DATE,
    C5 VARCHAR(1000),
    C6 VARCHAR(1000),
    C7 VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_GET_WEBLINKS (
    OBJ_ID BIGINT)
RETURNS (
    OO_NAME VARCHAR(300),
    OO_NUM VARCHAR(10),
    OO_DISTRICT VARCHAR(100),
    OO_KIND VARCHAR(100),
    F_5 VARCHAR(500),
    F_6 VARCHAR(500),
    F_7 VARCHAR(500),
    F_8 VARCHAR(500),
    F_9 VARCHAR(500),
    F_10 VARCHAR(500),
    F_11 VARCHAR(500),
    F_12 VARCHAR(500),
    F_13 VARCHAR(500),
    F_14 VARCHAR(500),
    F_15 VARCHAR(500),
    F_16 VARCHAR(500),
    F_17 VARCHAR(500),
    F_18 VARCHAR(500),
    F_19 VARCHAR(500),
    F_20 VARCHAR(500),
    F_21 VARCHAR(500),
    F_22 VARCHAR(500),
    F_23 VARCHAR(500),
    F_24 VARCHAR(500),
    F_25 VARCHAR(500),
    F_26 VARCHAR(500),
    F_27 VARCHAR(500),
    F_28 VARCHAR(500),
    F_29 VARCHAR(500))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_GET_WEBLINKS_STR (
    OBJ_ID BIGINT)
RETURNS (
    OO_NAME VARCHAR(300),
    OO_NUM VARCHAR(10),
    OO_DISTRICT VARCHAR(100),
    OO_KIND VARCHAR(100),
    F_5 VARCHAR(500),
    F_6 VARCHAR(500),
    F_7 VARCHAR(500),
    F_8 VARCHAR(500),
    F_9 VARCHAR(500),
    F_10 VARCHAR(500),
    F_11 VARCHAR(500),
    F_12 VARCHAR(500),
    F_13 VARCHAR(500),
    F_14 VARCHAR(500),
    F_15 VARCHAR(500),
    F_16 VARCHAR(500),
    F_17 VARCHAR(500))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_HOT_FOOD (
    I$SCHOOL_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    SCHOOLAR VARCHAR(1000),
    CLASS VARCHAR(100),
    FOOD VARCHAR(100),
    SORT_ORDER DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_HOT_FOOD2 (
    I$SCHOOL_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    V1 VARCHAR(1000),
    V2 VARCHAR(100),
    V3 VARCHAR(100),
    V4 VARCHAR(100),
    V5 VARCHAR(100),
    V6 VARCHAR(100),
    V7 VARCHAR(100),
    V8 VARCHAR(100),
    V9 VARCHAR(1000),
    CLASS_ORDER DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_INFOCARD_202 (
    I$OBJ_ID BIGINT)
RETURNS (
    PARAM_VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_INFOCARD_209 (
    I$OBJ_ID BIGINT)
RETURNS (
    NAZVANIE_PHIO VARCHAR(500),
    ADRES VARCHAR(500),
    TELEPHON VARCHAR(500))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_INFOCARD_210 (
    I$OBJ_ID BIGINT,
    TYPE_DOC INTEGER,
    FLAG_MAXDATE SMALLINT = 0)
RETURNS (
    ORG VARCHAR(500),
    DOCSERIE VARCHAR(500),
    DOCNO VARCHAR(500),
    STARTDATE VARCHAR(500),
    ENDDATE VARCHAR(500))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_INFOCARD_225 (
    I$OBJ_ID BIGINT)
RETURNS (
    PROGNAME VARCHAR(500),
    PROGTYPENAME VARCHAR(500),
    PROGLEVELNAME VARCHAR(500),
    KOL_VO_CLASS INTEGER,
    OVERALL INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_INFOCARD_300 (
    I$OBJ_ID BIGINT,
    TYPE_DOLJ INTEGER)
RETURNS (
    F VARCHAR(100),
    I VARCHAR(100),
    O VARCHAR(100),
    TEL VARCHAR(50),
    TELEPHON_DIREKTORA VARCHAR(500),
    TELEFON_BUHGALTERA VARCHAR(500))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_INFOCARD_400 (
    I$OBJ_ID BIGINT)
RETURNS (
    VAL VARCHAR(10))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_INFOCARD_600 (
    I$OBJ_ID BIGINT)
RETURNS (
    FORM_NAME VARCHAR(10),
    OCH_GR INTEGER,
    OCH_IND INTEGER,
    OCH_ZOCH_VECH INTEGER,
    ZAOCH INTEGER,
    SEME_OBCH INTEGER,
    SAMOBCHTOTEL INTEGER,
    EKST INTEGER,
    TOTAL INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_INFOCARD_610 (
    I$OBJ_ID BIGINT)
RETURNS (
    OCH_GR INTEGER,
    OCH_IND INTEGER,
    OCH_ZOCH_VECH INTEGER,
    ZAOCH INTEGER,
    SEME_OBCH INTEGER,
    SAMOBCHTOTEL INTEGER,
    EKST INTEGER,
    TOTAL INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_MOVEMENT_DOU (
    I$OBJ_ID BIGINT,
    I$DT DATE)
RETURNS (
    C1 VARCHAR(100),
    C2 VARCHAR(500),
    C3 VARCHAR(100),
    C4 VARCHAR(5),
    C5 INTEGER,
    C6 INTEGER,
    C7 INTEGER,
    C8 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_MOVEMENT_JOURNAL (
    I$DISTR_ID BIGINT,
    I$FROM DATE,
    I$TO DATE)
RETURNS (
    SCHOOLAR_ID BIGINT,
    PUPIL VARCHAR(100),
    SEX VARCHAR(8),
    DATE_BIRTHDAY DATE,
    DATE_OUT DATE,
    OUT_OU VARCHAR(500),
    OUT_CLASS VARCHAR(50),
    OUT_TYPE_CLASS VARCHAR(255),
    OUT_NUM_ORDER VARCHAR(50),
    OUT_DATE_ORDER DATE,
    OUT_IS VARCHAR(100),
    OUT_OU_VID VARCHAR(255),
    OUT_OU_SHORT VARCHAR(500),
    OUT_OU_LEGAL VARCHAR(100),
    OUT_OU_DISTRICT VARCHAR(50),
    OUT_OU_DISTRICT_ID BIGINT,
    DATE_IN DATE,
    IN_OU VARCHAR(500),
    IN_CLASS VARCHAR(50),
    IN_TYPE_CLASS VARCHAR(255),
    IN_NUM_ORDER VARCHAR(50),
    IN_DATE_ORDER DATE,
    IN_IS VARCHAR(100),
    IN_OU_VID VARCHAR(255),
    IN_OU_SHORT VARCHAR(500),
    IN_OU_LEGAL VARCHAR(100),
    IN_OU_DISTRICT VARCHAR(50),
    IN_OU_DISTRICT_ID BIGINT,
    LINK_ID BIGINT,
    TYPE_ SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_MOVEMENT_JOURNAL_SVOD (
    I$DISTR_ID BIGINT,
    I$FROM DATE,
    I$TO DATE)
RETURNS (
    SCHOOLAR_ID BIGINT,
    PUPIL VARCHAR(100),
    SEX VARCHAR(8),
    DATE_BIRTHDAY DATE,
    DATE_OUT DATE,
    OUT_OU VARCHAR(500),
    OUT_CLASS VARCHAR(50),
    OUT_TYPE_CLASS VARCHAR(255),
    OUT_NUM_ORDER VARCHAR(50),
    OUT_DATE_ORDER DATE,
    OUT_IS VARCHAR(100),
    OUT_OU_VID VARCHAR(255),
    OUT_OU_SHORT VARCHAR(500),
    OUT_OU_LEGAL VARCHAR(100),
    OUT_OU_DISTRICT VARCHAR(50),
    OUT_OU_DISTRICT_ID BIGINT,
    DATE_IN DATE,
    IN_OU VARCHAR(500),
    IN_CLASS VARCHAR(50),
    IN_TYPE_CLASS VARCHAR(255),
    IN_NUM_ORDER VARCHAR(50),
    IN_DATE_ORDER DATE,
    IN_IS VARCHAR(100),
    IN_OU_VID VARCHAR(255),
    IN_OU_SHORT VARCHAR(500),
    IN_OU_LEGAL VARCHAR(100),
    IN_OU_DISTRICT VARCHAR(50),
    IN_OU_DISTRICT_ID BIGINT,
    LINK_ID BIGINT,
    INCORRECT_ROW SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_MTR_BY_NUMER_GET (
    I$INVENTORY_NUM VARCHAR(4000))
RETURNS (
    OBJECT_ID BIGINT,
    LINK_ID BIGINT,
    INVENTORY_NUM VARCHAR(4000),
    OBJ_CAPTION VARCHAR(400),
    OWNERSHIP VARCHAR(400),
    LACATION VARCHAR(400),
    RESPONSIBLE VARCHAR(400))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_PRG3_CLASSNET (
    I$OBJ_ID BIGINT,
    I$DT DATE = current_date)
RETURNS (
    V00 INTEGER,
    V01 VARCHAR(1000),
    V02 INTEGER,
    V03 INTEGER,
    V04 INTEGER,
    V05 INTEGER,
    V06 INTEGER,
    V07 INTEGER,
    V08 INTEGER,
    V09 INTEGER,
    V10 INTEGER,
    V11 INTEGER,
    V12 INTEGER,
    V13 INTEGER,
    V14 INTEGER,
    V15 INTEGER,
    V16 INTEGER,
    V17 INTEGER,
    V18 INTEGER,
    V19 INTEGER,
    V20 INTEGER,
    V21 INTEGER,
    V22 INTEGER,
    V23 INTEGER,
    V24 INTEGER,
    V25 INTEGER,
    V26 INTEGER,
    V27 INTEGER,
    V28 INTEGER,
    V29 INTEGER,
    V30 INTEGER,
    V31 INTEGER,
    V32 INTEGER,
    V33 INTEGER,
    V34 INTEGER,
    V35 INTEGER,
    V36 VARCHAR(1000),
    V37 INTEGER,
    V38 INTEGER,
    V39 INTEGER,
    V40 INTEGER,
    V41 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_PRG3_CLASSNET_GET (
    I$SCHOOL_ID BIGINT,
    I$CLASS_TYPE SMALLINT,
    I$DT DATE = current_date)
RETURNS (
    V01 VARCHAR(1000),
    V02 INTEGER,
    V03 INTEGER,
    V04 INTEGER,
    V05 INTEGER,
    V06 INTEGER,
    V07 INTEGER,
    V08 INTEGER,
    V09 INTEGER,
    V10 INTEGER,
    V11 INTEGER,
    V12 INTEGER,
    V13 INTEGER,
    V14 INTEGER,
    V15 INTEGER,
    V16 INTEGER,
    V17 INTEGER,
    V18 INTEGER,
    V19 INTEGER,
    V20 INTEGER,
    V21 INTEGER,
    V22 INTEGER,
    V23 INTEGER,
    V24 INTEGER,
    V25 INTEGER,
    V26 INTEGER,
    V27 INTEGER,
    V28 INTEGER,
    V29 INTEGER,
    V30 INTEGER,
    V31 INTEGER,
    V32 INTEGER,
    V33 INTEGER,
    V34 INTEGER,
    V35 INTEGER,
    V36 VARCHAR(1000),
    V37 INTEGER,
    V38 INTEGER,
    V39 INTEGER,
    V40 INTEGER,
    V41 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_PRG3_CLASSNET_GET_OLD (
    I$SCHOOL_ID BIGINT,
    I$CLASS_TYPE SMALLINT,
    I$DT DATE = current_date)
RETURNS (
    V01 VARCHAR(1000),
    V02 INTEGER,
    V03 INTEGER,
    V04 INTEGER,
    V05 INTEGER,
    V06 INTEGER,
    V07 INTEGER,
    V08 INTEGER,
    V09 INTEGER,
    V10 INTEGER,
    V11 INTEGER,
    V12 INTEGER,
    V13 INTEGER,
    V14 INTEGER,
    V15 INTEGER,
    V16 INTEGER,
    V17 INTEGER,
    V18 INTEGER,
    V19 INTEGER,
    V20 INTEGER,
    V21 INTEGER,
    V22 INTEGER,
    V23 INTEGER,
    V24 INTEGER,
    V25 INTEGER,
    V26 INTEGER,
    V27 INTEGER,
    V28 INTEGER,
    V29 INTEGER,
    V30 INTEGER,
    V31 INTEGER,
    V32 INTEGER,
    V33 INTEGER,
    V34 INTEGER,
    V35 INTEGER,
    V36 VARCHAR(1000),
    V37 INTEGER,
    V38 INTEGER,
    V39 INTEGER,
    V40 INTEGER,
    V41 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_PRG3_CLASSNET_OU (
    I$OBJ_ID BIGINT,
    I$DT DATE = current_date)
RETURNS (
    SCHOOL_REC INTEGER,
    V00 INTEGER,
    V01 VARCHAR(1000),
    V02 INTEGER,
    V03 INTEGER,
    V04 INTEGER,
    V05 INTEGER,
    V06 INTEGER,
    V07 INTEGER,
    V08 INTEGER,
    V09 INTEGER,
    V10 INTEGER,
    V11 INTEGER,
    V12 INTEGER,
    V13 INTEGER,
    V14 INTEGER,
    V15 INTEGER,
    V16 INTEGER,
    V17 INTEGER,
    V18 INTEGER,
    V19 INTEGER,
    V20 INTEGER,
    V21 INTEGER,
    V22 INTEGER,
    V23 INTEGER,
    V24 INTEGER,
    V25 INTEGER,
    V26 INTEGER,
    V27 INTEGER,
    V28 INTEGER,
    V29 INTEGER,
    V30 INTEGER,
    V31 INTEGER,
    V32 INTEGER,
    V33 INTEGER,
    V34 INTEGER,
    V35 INTEGER,
    V36 VARCHAR(1000),
    V37 INTEGER,
    V38 INTEGER,
    V39 INTEGER,
    V40 INTEGER,
    V41 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_PRG3_CLASSNET_OULIST (
    I$OBJ_ID BIGINT,
    I$OPF VARCHAR(1000),
    I$POD VARCHAR(1000))
RETURNS (
    OBJ_ID BIGINT,
    CAPTION VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_PRG3_CLASS_FILL (
    I$OBJ_ID BIGINT,
    I$DT DATE,
    I$USER_ID BIGINT,
    I$LEVEL_ID BIGINT)
RETURNS (
    CLASS VARCHAR(1000),
    CL_RUK VARCHAR(1000),
    BOYS INTEGER,
    GIRLS INTEGER,
    TOTAL INTEGER,
    CLASS_ID BIGINT,
    COLOR CHAR(7))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_PRG3_CLASS_FILL_DISTR (
    I$OBJ_ID BIGINT,
    I$DT DATE,
    I$USER_ID BIGINT)
RETURNS (
    OU VARCHAR(4000),
    CLASS VARCHAR(1000),
    BOYS INTEGER,
    GIRLS INTEGER,
    TOTAL INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_PRG3_FILL_DISTR_DOU (
    I$DISTR_ID BIGINT,
    I$OU_TYPE_NUM SMALLINT = 0,
    I$REAL_FL SMALLINT = 1,
    I$OPF_FILTER VARCHAR(1000) = null,
    I$POD_FILTER VARCHAR(1000) = null)
RETURNS (
    OU_ID BIGINT,
    NAME VARCHAR(1000),
    CNT INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_PRG3_FILL_REGION_DOU (
    I$REGION_ID BIGINT,
    I$OPF_FILTER VARCHAR(1000),
    I$POD_FILTER VARCHAR(1000))
RETURNS (
    DISTR_ID BIGINT,
    DISTR_NAME VARCHAR(1000),
    VAL1 INTEGER,
    VAL2 INTEGER,
    VAL3 INTEGER,
    VAL4 INTEGER,
    VAL5 INTEGER,
    VAL6 INTEGER,
    VAL7 INTEGER,
    VAL8 INTEGER,
    VAL9 INTEGER,
    VAL10 INTEGER,
    VAL11 INTEGER,
    VAL12 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_PRG3_FILL_REGION_DOU_ALL (
    I$REGION_ID BIGINT,
    I$OPF_FILTER VARCHAR(1000) = null,
    I$POD_FILTER VARCHAR(1000) = null)
RETURNS (
    DISTR_ID BIGINT,
    OU_ID BIGINT,
    OU_TYPE_NUM SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_PRG3_PERSONS_DEGREES (
    I$OBJ_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    F VARCHAR(250),
    I VARCHAR(250),
    O VARCHAR(250),
    DOVJ VARCHAR(4000),
    UCH VARCHAR(250),
    ZVAN VARCHAR(250))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_PRG3_PERSONS_FLUOROGRAPHY (
    I$OBJ_ID BIGINT,
    I$DT DATE)
RETURNS (
    F VARCHAR(250),
    I VARCHAR(250),
    O VARCHAR(250),
    FLU DATE)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_PRG3_PERSON_ACHIEVE (
    I$OBJ_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    F VARCHAR(250),
    I VARCHAR(250),
    O VARCHAR(250),
    DOVJ VARCHAR(4000),
    PKPD INTEGER,
    PPO INTEGER,
    PUBL INTEGER,
    UKS INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_PRG3_PERSON_AWARDS (
    I$OBJ_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    F VARCHAR(250),
    I VARCHAR(250),
    O VARCHAR(250),
    DOVJ VARCHAR(250),
    MED INTEGER,
    OTRN INTEGER,
    REGN INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_PRG3_STAGE_FILL (
    I$OBJ_ID BIGINT,
    I$DT DATE,
    I$LEVEL_ID BIGINT)
RETURNS (
    STAGE VARCHAR(1000),
    C0 INTEGER,
    C1 INTEGER,
    C2 INTEGER,
    C3 INTEGER,
    C4 INTEGER,
    C5 INTEGER,
    C6 INTEGER,
    C7 INTEGER,
    C8 INTEGER,
    C9 INTEGER,
    C10 INTEGER,
    C11 INTEGER,
    C12 INTEGER,
    C13 INTEGER,
    C14 INTEGER,
    C15 INTEGER,
    C16 INTEGER,
    C17 INTEGER,
    C18 INTEGER,
    C19 INTEGER,
    CLASS INTEGER,
    CFILL INTEGER,
    GPD INTEGER,
    GPDFILL INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_PRG3_TARIFICATION (
    I$OBJ_ID BIGINT)
RETURNS (
    V01 VARCHAR(10),
    V02 VARCHAR(100),
    V03 VARCHAR(250),
    V04 VARCHAR(250),
    V05 VARCHAR(1000),
    V06 VARCHAR(1000),
    V07 VARCHAR(1000),
    V08 VARCHAR(100),
    V09 VARCHAR(1),
    V10 VARCHAR(1),
    V11 VARCHAR(1),
    V12 VARCHAR(30),
    V13 VARCHAR(30),
    V14 VARCHAR(30),
    V15 VARCHAR(30),
    V16 VARCHAR(30),
    V17 VARCHAR(30),
    V18 VARCHAR(30),
    V19 VARCHAR(1),
    V20 VARCHAR(1),
    V21 VARCHAR(1),
    V22 VARCHAR(1),
    V23 VARCHAR(1),
    V24 VARCHAR(1),
    V25 VARCHAR(1),
    V26 VARCHAR(1),
    V27 VARCHAR(1),
    V28 VARCHAR(1),
    V29 VARCHAR(1),
    V30 VARCHAR(1),
    V31 VARCHAR(1),
    V32 VARCHAR(1),
    V33 VARCHAR(1),
    V34 VARCHAR(1),
    V35 VARCHAR(1),
    V36 VARCHAR(1),
    V37 VARCHAR(1),
    V38 VARCHAR(1),
    V39 VARCHAR(1),
    V40 VARCHAR(1))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_PRG3_TOTAL_TEACHER_LOADING (
    I$OBJ_ID BIGINT)
RETURNS (
    TEACHER_CAPTION VARCHAR(4000),
    SUMMARY_LOADING INTEGER,
    GROUP_CAPTION VARCHAR(4000),
    SUBJECT_CAPTION VARCHAR(4000),
    SUBJECT_LOADING INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_PRG3_TOTAL_WORKERS (
    I$OBJ_ID BIGINT,
    I$POD_NAME VARCHAR(1000) = null,
    I$OPF_NAME VARCHAR(1000) = null)
RETURNS (
    C BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_PRG3_WORKERS_BIRTHDAY (
    I$OBJ_ID BIGINT)
RETURNS (
    DATEBIRTH DATE,
    F VARCHAR(250),
    I VARCHAR(250),
    O VARCHAR(250))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_PROF_DOC (
    I$OBJ_ID BIGINT NOT NULL,
    I$DOC_TYPE_ID INTEGER,
    I$DT_FROM DATE,
    I$DT_TO DATE,
    I$USER_ID BIGINT)
RETURNS (
    V1 INTEGER,
    V2 VARCHAR(250),
    V3 DATE,
    V4 VARCHAR(250),
    V5 VARCHAR(250),
    V6 VARCHAR(1000),
    V7 VARCHAR(250),
    V8 SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_QUAL_PROGRAMS (
    I$OBJ_ID BIGINT,
    I$DT_FROM DATE,
    I$DT_TO DATE)
RETURNS (
    V305 VARCHAR(4000),
    V306 INTEGER,
    CNT INTEGER,
    V4 INTEGER,
    V5 INTEGER,
    V6 INTEGER,
    V7 INTEGER,
    V8 INTEGER,
    V9 INTEGER,
    V10 INTEGER,
    V11 INTEGER,
    V12 INTEGER,
    V13 INTEGER,
    V14 INTEGER,
    V15 INTEGER,
    V16 INTEGER,
    V17 INTEGER,
    V18 INTEGER,
    V19 INTEGER,
    V20 INTEGER,
    V21 INTEGER,
    V22 INTEGER,
    V23 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_QUAL_WORKERS (
    I$OBJ_ID BIGINT,
    I$DT_FROM DATE,
    I$DT_TO DATE)
RETURNS (
    V1 VARCHAR(300),
    V2 VARCHAR(1000),
    V3 INTEGER,
    V4 VARCHAR(1000),
    V5 VARCHAR(500),
    V6 VARCHAR(1000),
    V7 VARCHAR(1000),
    V8 VARCHAR(300),
    V9 INTEGER,
    V10 VARCHAR(300),
    V11 VARCHAR(100),
    V12 VARCHAR(100),
    V13 DATE)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_QUAL_WORKERS_CNT (
    I$OBJ_ID BIGINT,
    I$DT_FROM DATE,
    I$DT_TO DATE)
RETURNS (
    V1 VARCHAR(4000),
    V2 INTEGER,
    V3 VARCHAR(4000),
    V4 INTEGER,
    V5 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_SCHOLAR (
    I$SCHOOL_ID BIGINT NOT NULL,
    I$USER_ID BIGINT NOT NULL,
    I$DT DATE = current_date)
RETURNS (
    SCHOLAR_ID BIGINT,
    VID_GROUP BIGINT,
    AGE_GROUP SMALLINT,
    BIRTHDATE DATE)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_SCHOLAR2 (
    I$SCHOOL_ID BIGINT NOT NULL,
    I$USER_ID BIGINT,
    I$DT DATE = current_date)
RETURNS (
    SCHOLAR_ID BIGINT,
    VID_GROUP BIGINT,
    WORK_HOURS BIGINT,
    AGE_GROUP SMALLINT,
    BIRTHDATE DATE)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_SCHOLAR_AGE (
    I$OBJ_ID BIGINT NOT NULL,
    I$DT DATE,
    I$USER_ID BIGINT)
RETURNS (
    V1 VARCHAR(250),
    V2 VARCHAR(250),
    V3 VARCHAR(250),
    V4 VARCHAR(250),
    V5 DATE,
    V6 SMALLINT,
    V7 VARCHAR(250))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_SCHOLAR_BY_NAME_GET (
    I$FIRST_NAME VARCHAR(4000))
RETURNS (
    SCHOLAR_ID BIGINT,
    OU_CAPTION VARCHAR(4000),
    CLASS_CAPTION VARCHAR(400),
    DIVISION_CAPTION VARCHAR(400),
    STRUCTURE_CAPTION VARCHAR(400),
    F VARCHAR(400),
    I VARCHAR(400),
    O VARCHAR(400),
    CLASS_ID BIGINT,
    STRUCTURE_ID BIGINT,
    DIVISION_ID BIGINT,
    LINK_ID BIGINT,
    CLASS_TYPE_ID BIGINT,
    D DATE)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_SCHOLAR_BY_PARENT_GET (
    I$PARENT_ID BIGINT)
RETURNS (
    SCHOLAR_ID BIGINT,
    CLASS_CAPTION VARCHAR(400),
    F VARCHAR(400),
    I VARCHAR(400),
    O VARCHAR(400),
    CLASS_ID BIGINT,
    LINK_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_SCHOLAR_BY_YEAR (
    I$OBJ_ID BIGINT,
    I$Y INTEGER,
    I$USER_ID BIGINT)
RETURNS (
    OU_NAME VARCHAR(4000),
    OU_TYPE VARCHAR(500),
    OU_VID VARCHAR(500),
    OU_ADDRESS VARCHAR(1000),
    OU_DIRECTOR VARCHAR(500),
    OU_PHONE VARCHAR(100),
    OU_EMAIL VARCHAR(100),
    SCHOLAR_COUNT INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_SCHOLAR_CNT (
    I$SCHOOL_ID BIGINT NOT NULL,
    I$USER_ID BIGINT,
    I$DT DATE = current_date,
    I$VID_GROUP BIGINT = null)
RETURNS (
    V01 INTEGER,
    V02 INTEGER,
    V03 INTEGER,
    V04 INTEGER,
    V05 INTEGER,
    V06 INTEGER,
    V07 INTEGER,
    V08 INTEGER,
    V09 INTEGER,
    V10 INTEGER,
    V11 INTEGER,
    V12 INTEGER,
    V13 INTEGER,
    V14 INTEGER,
    V15 INTEGER,
    V_ALL INTEGER,
    VID_GROUP BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_SCHOLAR_CNT_DOU (
    I$OBJ_ID BIGINT NOT NULL,
    I$OPF_FILTER VARCHAR(1000),
    I$POD_FILTER VARCHAR(1000))
RETURNS (
    V00 VARCHAR(1000),
    V01 INTEGER,
    V02 INTEGER,
    V03 INTEGER,
    V04 INTEGER,
    V_ALL INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_SCHOLAR_DTL (
    I$SCHOOL_ID BIGINT NOT NULL,
    I$USER_ID BIGINT NOT NULL,
    I$DT DATE = current_date,
    I$VID_GROUP BIGINT = null,
    I$AGE_GROUP INTEGER = null)
RETURNS (
    VAL1 VARCHAR(250),
    VAL2 VARCHAR(250))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_SCHOOLAR_FINISH (
    I$SCHOOL_ID BIGINT,
    I$FROM DATE,
    I$TO DATE,
    I$LEVEL_ID BIGINT = NULL)
RETURNS (
    C1 DATE,
    C2 VARCHAR(1000),
    C3 VARCHAR(1000),
    C4 DATE,
    CC VARCHAR(1000),
    C5 VARCHAR(1000),
    C6 VARCHAR(1000),
    C7 VARCHAR(1000),
    C8 VARCHAR(1000),
    C9 VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_SCHOOLAR_IN (
    I$SCHOOL_ID BIGINT,
    I$FROM DATE,
    I$TO DATE,
    I$LEVEL_ID BIGINT = NULL)
RETURNS (
    C1 DATE,
    C2 VARCHAR(1000),
    C3 VARCHAR(1000),
    C4 DATE,
    C5 VARCHAR(1000),
    C6 VARCHAR(1000),
    C7 VARCHAR(1000),
    C8 VARCHAR(1000),
    C9 VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_SCHOOLAR_IN_DISTR (
    I$DISTR_ID BIGINT,
    I$FROM DATE,
    I$TO DATE)
RETURNS (
    C1 DATE,
    C8 VARCHAR(500),
    C9 VARCHAR(100),
    C2 VARCHAR(255),
    C3 VARCHAR(100),
    C4 DATE,
    C5 VARCHAR(100),
    C6 VARCHAR(255),
    C7 VARCHAR(500),
    CA VARCHAR(100),
    CB VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_SCHOOLAR_OUT (
    I$SCHOOL_ID BIGINT,
    I$FROM DATE,
    I$TO DATE,
    I$LEVEL_ID BIGINT = NULL)
RETURNS (
    C1 DATE,
    C2 VARCHAR(1000),
    C3 VARCHAR(1000),
    C4 DATE,
    CC VARCHAR(1000),
    C5 VARCHAR(1000),
    C6 VARCHAR(1000),
    C7 VARCHAR(1000),
    C8 VARCHAR(1000),
    C9 VARCHAR(1000),
    C0 VARCHAR(1000),
    CR BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_SCHOOLAR_OUT_DISTR (
    I$DISTR_ID BIGINT,
    I$FROM DATE,
    I$TO DATE)
RETURNS (
    C1 DATE,
    C0 VARCHAR(1000),
    C5 VARCHAR(1000),
    C2 VARCHAR(1000),
    C3 VARCHAR(1000),
    C4 DATE,
    C6 VARCHAR(1000),
    C7 VARCHAR(1000),
    C8 VARCHAR(1000),
    CA VARCHAR(1000),
    CB VARCHAR(1000),
    C9 VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_SPB_INFOCARD (
    I$OBJ_ID BIGINT,
    I$Q SMALLINT,
    I$USER_ID BIGINT)
RETURNS (
    V VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_SPB_INFOCARD_270 (
    I$OBJ_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    KK VARCHAR(200),
    LVS VARCHAR(4),
    INET VARCHAR(4),
    KONTENT VARCHAR(4),
    LOAD1 INTEGER,
    LOAD2 INTEGER,
    LOAD3 INTEGER,
    ALLIN INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_SPB_INF_OU_0 RETURNS (
    X1 VARCHAR(12),
    X2 VARCHAR(12),
    X3 VARCHAR(12))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_SPB_INF_OU_1 (
    I$OBJ_ID BIGINT,
    I$X SMALLINT)
RETURNS (
    X1 INTEGER,
    X2 INTEGER,
    X3 INTEGER,
    X4 INTEGER,
    X5 NUMERIC(9,3))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_SPB_INF_OU_10 (
    I$OBJ_ID BIGINT)
RETURNS (
    C NUMERIC(9,2))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_SPB_INF_OU_11 (
    I$OBJ_ID BIGINT)
RETURNS (
    C INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_SPB_INF_OU_1_DTL (
    I$OBJ_ID BIGINT,
    I$X SMALLINT,
    I$COL SMALLINT)
RETURNS (
    NAME VARCHAR(1000),
    YYYY VARCHAR(10))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_SPB_INF_OU_2 (
    I$OBJ_ID BIGINT)
RETURNS (
    N SMALLINT,
    NM VARCHAR(1000),
    TP VARCHAR(100),
    Y VARCHAR(4),
    X1 INTEGER,
    X2 INTEGER,
    S1 VARCHAR(4),
    S2 VARCHAR(4))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_SPB_INF_OU_2_ALL (
    I$OBJ_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    N SMALLINT,
    NM VARCHAR(1000),
    TP VARCHAR(100),
    Y VARCHAR(4),
    X1 INTEGER,
    X2 INTEGER,
    S1 VARCHAR(4),
    S2 VARCHAR(4))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_SPB_INF_OU_2_DTL (
    I$OBJ_ID BIGINT,
    I$IS_TEACHER SMALLINT)
RETURNS (
    NAME VARCHAR(1000),
    YYYY VARCHAR(4))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_SPB_INF_OU_3 (
    I$OBJ_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    C1 INTEGER,
    C2 VARCHAR(4000),
    C3 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_SPB_INF_OU_3_DTL (
    I$OBJ_ID BIGINT,
    I$LISTVAL_CAPTION VARCHAR(1000),
    I$USER_ID BIGINT)
RETURNS (
    NAME VARCHAR(1000),
    YYYY VARCHAR(4))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_SPB_INF_OU_4 (
    I$OBJ_ID BIGINT)
RETURNS (
    X INTEGER,
    Y NUMERIC(9,2))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_SPB_INF_OU_41 (
    I$OBJ_ID BIGINT)
RETURNS (
    X INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_SPB_INF_OU_41_DTL (
    I$OBJ_ID BIGINT,
    I$ROW SMALLINT)
RETURNS (
    NAME VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_SPB_INF_OU_4_DTL (
    I$OBJ_ID BIGINT,
    I$ROW SMALLINT)
RETURNS (
    NAME VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_SPB_INF_OU_5 (
    I$OBJ_ID BIGINT)
RETURNS (
    Y NUMERIC(9,2))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_SPB_INF_OU_6 (
    I$OBJ_ID BIGINT)
RETURNS (
    V VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_SPB_INF_OU_7 (
    I$OBJ_ID BIGINT)
RETURNS (
    C NUMERIC(9,2))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_SPB_INF_OU_8 (
    I$OBJ_ID BIGINT)
RETURNS (
    C NUMERIC(9,2))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_SPB_INF_OU_9 (
    I$OBJ_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    C NUMERIC(9,2))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_SPB_POST_BUHGALTER (
    I$OBJ_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    F VARCHAR(250),
    I VARCHAR(250),
    O VARCHAR(250),
    FIO VARCHAR(250),
    POST VARCHAR(250))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_SPB_POST_DIRECTOR (
    I$OBJ_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    POST_ID BIGINT,
    F VARCHAR(250),
    I VARCHAR(250),
    O VARCHAR(250),
    POST VARCHAR(250),
    FIO VARCHAR(250))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_SPB_POST_EGE_RESPONSIBLE (
    I$OBJ_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    F VARCHAR(250),
    I VARCHAR(250),
    O VARCHAR(250),
    POST VARCHAR(250))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_SPB_QUAL_DISTR_1 (
    I$OBJ_ID BIGINT)
RETURNS (
    N0 VARCHAR(4),
    OU VARCHAR(1000),
    CS FLOAT,
    CF INTEGER,
    X1 INTEGER,
    X2 INTEGER,
    X3 INTEGER,
    Z1 INTEGER,
    Z2 INTEGER,
    Z3 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_SPB_QUAL_DISTR_2 (
    I$OBJ_ID BIGINT)
RETURNS (
    N0 VARCHAR(4),
    PT VARCHAR(1000),
    CS FLOAT,
    CF INTEGER,
    X1 INTEGER,
    X2 INTEGER,
    X3 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_SPB_QUAL_DISTR_3 (
    I$OBJ_ID BIGINT)
RETURNS (
    N0 VARCHAR(4),
    DPO VARCHAR(1000),
    X1 INTEGER,
    X2 INTEGER,
    X3 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_SPB_QUAL_DISTR_4 (
    I$OBJ_ID BIGINT)
RETURNS (
    N INTEGER,
    T VARCHAR(1000),
    F VARCHAR(1000),
    DPO VARCHAR(1000),
    CNT INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_SPB_QUAL_DISTR_5 (
    I$OBJ_ID BIGINT)
RETURNS (
    N0 VARCHAR(4),
    TP VARCHAR(1000),
    CS FLOAT,
    CF INTEGER,
    X1 INTEGER,
    X2 INTEGER,
    X3 INTEGER,
    Z1 INTEGER,
    Z2 INTEGER,
    Z3 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_SPB_QUAL_DISTR_6 (
    I$OBJ_ID BIGINT)
RETURNS (
    N0 VARCHAR(4),
    TP VARCHAR(1000),
    CS FLOAT,
    CF INTEGER,
    X1 INTEGER,
    X2 INTEGER,
    X3 INTEGER,
    Z1 INTEGER,
    Z2 INTEGER,
    Z3 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_SPB_QUAL_NEEDS RETURNS (
    N0 VARCHAR(4),
    DPO VARCHAR(1000),
    X4 INTEGER,
    X3 INTEGER,
    X2 INTEGER,
    X1 INTEGER,
    X0 INTEGER,
    XA INTEGER,
    XB INTEGER,
    XC INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_SPB_QUAL_OU_1 (
    I$OBJ_ID BIGINT)
RETURNS (
    N0 VARCHAR(4),
    FIO VARCHAR(1000),
    POST VARCHAR(1000),
    DTQ DATE,
    DTA DATE,
    X1 VARCHAR(4),
    X2 VARCHAR(4),
    X3 VARCHAR(4))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_SPB_QUAL_OU_1P (
    I$OBJ_ID BIGINT)
RETURNS (
    N0 VARCHAR(4),
    FIO VARCHAR(1000),
    POST VARCHAR(1000),
    DTQ DATE,
    DTA DATE,
    X1 VARCHAR(1000),
    X2 VARCHAR(1000),
    X3 VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_SPB_QUAL_OU_1SV (
    I$OBJ_ID BIGINT)
RETURNS (
    N0 VARCHAR(4),
    X VARCHAR(4),
    X1 INTEGER,
    X2 INTEGER,
    X3 INTEGER,
    Z1 INTEGER,
    Z2 INTEGER,
    Z3 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_SPB_QUAL_OU_2 (
    I$OBJ_ID BIGINT)
RETURNS (
    N0 VARCHAR(4),
    FIO VARCHAR(1000),
    POST VARCHAR(1000),
    X1 VARCHAR(1000),
    X2 VARCHAR(1000),
    X3 VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_SPB_QUAL_REQUEST_LIST (
    I$DPO VARCHAR(4000),
    I$YEAR INTEGER,
    I$USER_ID BIGINT)
RETURNS (
    N INTEGER,
    DISTR VARCHAR(1000),
    OU VARCHAR(1000),
    POST VARCHAR(1000),
    TEACHER VARCHAR(1000),
    OP VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_SPB_SKILL_0 (
    I$X SMALLINT = 10)
RETURNS (
    N0 VARCHAR(4),
    DPO VARCHAR(1000),
    X5 NUMERIC(14,2),
    X4 NUMERIC(14,2),
    X3 NUMERIC(14,2),
    X2 NUMERIC(14,2),
    X1 NUMERIC(14,2),
    X0 NUMERIC(14,2))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_SPB_SKILL_1_VID (
    I$X SMALLINT = 10,
    I$USER_ID BIGINT = 1)
RETURNS (
    N0 VARCHAR(4),
    DPO VARCHAR(1000),
    TOU VARCHAR(1000),
    VOU VARCHAR(1000),
    X5 NUMERIC(14,2),
    X4 NUMERIC(14,2),
    X3 NUMERIC(14,2),
    X2 NUMERIC(14,2),
    X1 NUMERIC(14,2),
    X0 NUMERIC(14,2))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_SPB_SKILL_2_QUAL (
    I$X SMALLINT = 10)
RETURNS (
    N0 VARCHAR(4),
    DPO_VAL VARCHAR(1000),
    QUAL VARCHAR(1000),
    X5 NUMERIC(14,2),
    X4 NUMERIC(14,2),
    X3 NUMERIC(14,2),
    X2 NUMERIC(14,2),
    X1 NUMERIC(14,2),
    X0 NUMERIC(14,2))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_SPB_SKILL_3_SENIORITY (
    I$X SMALLINT = 10)
RETURNS (
    N0 VARCHAR(4),
    DPO_VAL VARCHAR(1000),
    SENIORITY_VAL VARCHAR(100),
    X5 NUMERIC(14,2),
    X4 NUMERIC(14,2),
    X3 NUMERIC(14,2),
    X2 NUMERIC(14,2),
    X1 NUMERIC(14,2),
    X0 NUMERIC(14,2))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_SPB_SKILL_4_POST (
    I$X SMALLINT = 10,
    I$USER_ID BIGINT = 1)
RETURNS (
    N0 VARCHAR(4),
    DPO_VAL VARCHAR(1000),
    POST_VAL VARCHAR(100),
    X5 NUMERIC(14,2),
    X4 NUMERIC(14,2),
    X3 NUMERIC(14,2),
    X2 NUMERIC(14,2),
    X1 NUMERIC(14,2),
    X0 NUMERIC(14,2))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_SPB_TEACHER_POST (
    I$TEACHER_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    TEACHER_POST VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_SPB_TOTAL_QUALIFIED (
    I$YEAR SMALLINT = 2009)
RETURNS (
    T INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_SPB_TOTAL_SENIORITY RETURNS (
    MIN_SENIORITY INTEGER,
    MAX_SENIORITY INTEGER,
    SENIORITY_VAL VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_SPB_TOTAL_TEACHERS (
    I$YEAR SMALLINT = 2009)
RETURNS (
    T INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_TWINS (
    I$OBJ_ID BIGINT,
    DEEP SMALLINT,
    I$USER_ID BIGINT)
RETURNS (
    DISTR VARCHAR(400),
    OU VARCHAR(4000),
    CLASS VARCHAR(400),
    F VARCHAR(400),
    I VARCHAR(400),
    O VARCHAR(400),
    D DATE,
    DOC VARCHAR(400),
    SER VARCHAR(400),
    NUM VARCHAR(400),
    M_DT DATE,
    M_STAGE VARCHAR(400),
    M_CLASS VARCHAR(400),
    M_TYPE VARCHAR(400))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_TWINSY_FIO (
    I$OBJ_ID BIGINT,
    DEEP SMALLINT,
    I$USER_ID BIGINT)
RETURNS (
    DISTR VARCHAR(400),
    OU VARCHAR(4000),
    CLASS VARCHAR(400),
    F VARCHAR(400),
    I VARCHAR(400),
    O VARCHAR(400),
    D DATE,
    DOC VARCHAR(400),
    SER VARCHAR(400),
    NUM VARCHAR(400),
    ORDER_DATE DATE,
    ORDER_NUM VARCHAR(400))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_TWINSY_ID (
    I$OBJ_ID BIGINT,
    DEEP SMALLINT)
RETURNS (
    DISTR_ID BIGINT,
    OU_ID BIGINT,
    CLASS_ID BIGINT,
    SCHOOLAR_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_TWINS_FIO (
    I$OBJ_ID BIGINT,
    DEEP SMALLINT,
    I$USER_ID BIGINT)
RETURNS (
    DISTR VARCHAR(400),
    OU VARCHAR(4000),
    CLASS VARCHAR(400),
    F VARCHAR(400),
    I VARCHAR(400),
    O VARCHAR(400),
    D DATE,
    DOC VARCHAR(400),
    SER VARCHAR(400),
    NUM VARCHAR(400),
    SCHOOLAR_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_TWINS_HEAD RETURNS (
    V1 VARCHAR(30),
    V2 VARCHAR(30))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_TWINS_ID (
    I$OBJ_ID BIGINT,
    DEEP SMALLINT)
RETURNS (
    DISTR_ID BIGINT,
    OU_ID BIGINT,
    CLASS_ID BIGINT,
    SCHOOLAR_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE R_WORKER_BY_NAME_GET (
    I$FIRST_NAME VARCHAR(4000))
RETURNS (
    SCHOLAR_ID BIGINT,
    OU_CAPTION VARCHAR(4000),
    STRUCTURE_CAPTION VARCHAR(400),
    CLASS_CAPTION VARCHAR(400),
    F VARCHAR(400),
    I VARCHAR(400),
    O VARCHAR(400),
    CLASS_ID BIGINT,
    STRUCTURE_ID BIGINT,
    LINK_ID BIGINT,
    CLASS_TYPE_ID BIGINT,
    D DATE)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SAVE_REGISTRATION_PARAMS (
    I$PUPIL_ID BIGINT,
    I$NUMBER VARCHAR(100),
    I$DATE DATE,
    I$DATE_FROM DATE,
    I$DATE_TO DATE,
    I$AUTHOR VARCHAR(2000))
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SCARDS_CARD_SET (
    I$PERSON_ID BIGINT,
    I$CARD_TYPE SMALLINT,
    I$CARDNUM VARCHAR(100),
    I$USER_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SCARDS_GET_PERSDATA (
    OBJ_ID BIGINT)
RETURNS (
    SCHOOL_ID BIGINT,
    REG_ID VARCHAR(100),
    SURNAME VARCHAR(1000),
    NAME VARCHAR(1000),
    PATRONYMIC VARCHAR(1000),
    DOB VARCHAR(10),
    PERSON_TYPE BIGINT,
    CLASS VARCHAR(1000),
    BENEFIT VARCHAR(100),
    BENEFIT_FROM VARCHAR(10),
    BENEFIT_TO VARCHAR(10),
    IS_OUTER INTEGER,
    CLASS_TYPE BIGINT,
    "YEAR" INTEGER,
    SNILS VARCHAR(40),
    FROM_FOR BIGINT,
    FROM_SRC BIGINT,
    ULS VARCHAR(100),
    CLAIM_ID VARCHAR(100),
    DOCUMENTS VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SCHEDULE_CJ_IDATA (
    I$SCHEDULE_ID BIGINT,
    I$DATE DATE,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SCHEDULE_CLASSES_LIST (
    I$SCHEDULE_TEMPLATE_ID BIGINT)
RETURNS (
    CLASS_ID BIGINT,
    CLASS_CAPTION VARCHAR(4000),
    SORT_ORDER BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SCHEDULE_COPY (
    I$RASP_ID BIGINT,
    I$SCHEDULE_TEMPLATE_ID BIGINT,
    I$COPY_DESCRIPTION VARCHAR(4000))
RETURNS (
    COPY_ID BIGINT,
    LINK_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SCHEDULE_COPY_ADD (
    I$PERIOD_ID BIGINT,
    I$SCHEDULE_TEMPLATE_ID BIGINT,
    I$WEEK_START_DATE DATE,
    I$COPY_DESCRIPTION VARCHAR(4000))
RETURNS (
    COPY_ID BIGINT,
    LINK_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SCHEDULE_DATA_LIST (
    I$SCHEDULE_TEMPLATE_ID BIGINT,
    I$SCHEDULE_ELEMENT_ID BIGINT,
    I$USER_ID BIGINT,
    I$IS_TEMPLATE SMALLINT = 1)
RETURNS (
    SCHEDULE_ELEMENT_ID BIGINT,
    DAY_ID BIGINT,
    DAY_CAPTION VARCHAR(20),
    DAY_DATE DATE,
    DAY_ORDER DOUBLE PRECISION,
    HOUR_ID BIGINT,
    HOUR_NUM INTEGER,
    HOUR_BEGIN TIME,
    HOUR_END TIME,
    GRADE_LOADING_ID BIGINT,
    TEACHER_ID BIGINT,
    TEACHER_CAPTION VARCHAR(1000),
    SUBJECT_ID BIGINT,
    SUBJECT_CAPTION VARCHAR(1000),
    SUBJECT_SMALL_CAPTION VARCHAR(200),
    ROOM_ID BIGINT,
    ROOM_CAPTION VARCHAR(1000),
    CLASS_ID BIGINT,
    CLASS_CAPTION VARCHAR(1000),
    CLASS_ORDER DOUBLE PRECISION,
    SUBGROUP_ID BIGINT,
    SUBGROUP_CAPTION VARCHAR(1000),
    LOADING_COUNT INTEGER,
    GRADE_LOADING_COUNT INTEGER,
    IS_DEL INTEGER,
    IS_INCORRECT_BY_LOADING INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SCHEDULE_DAYS_LIST (
    I$SCHEDULE_TEMPLATE_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    DAY_ID BIGINT,
    DAY_CAPTION VARCHAR(4000),
    DAY_DATE DATE,
    DAY_INDEX INTEGER,
    DAY_ORDER SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SCHEDULE_DELETE (
    I$SCHEDULE_ID BIGINT,
    I$ITEM_ID BIGINT,
    I$ITEM_TYPE SMALLINT,
    I$DATE DATE,
    I$LESSON INTEGER,
    I$USER_ID VARCHAR(40))
RETURNS (
    ID BIGINT,
    "DAY" INTEGER,
    "DATE" VARCHAR(40),
    LESSON INTEGER,
    CJ BIGINT,
    ROOM BIGINT,
    DURATION INTEGER,
    TEMPLATE SMALLINT,
    TEACHER BIGINT,
    PARENT BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SCHEDULE_FLOW (
    I$OBJ_ID BIGINT,
    I$DATE DATE,
    I$FULL SMALLINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SCHEDULE_GET (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SCHEDULE_GRADE_LIST (
    I$SCHEDULE_TEMPLATE_ID BIGINT,
    I$TEACHER_ID BIGINT,
    I$SUBJECT_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    GRADE_LOADING_ID BIGINT,
    SUBJECT_ID BIGINT,
    TEACHER_ID BIGINT,
    CLASS_CAPTION VARCHAR(1000),
    CLASS_ORDER DOUBLE PRECISION,
    STAGE_LOADING_PERIOD INTEGER,
    LOADING_HOURS DOUBLE PRECISION,
    LOADING_COUNT INTEGER,
    GRADE_LOADING_COUNT INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SCHEDULE_HOURS_LIST (
    I$SCHEDULE_TEMPLATE_ID BIGINT,
    I$USER_ID BIGINT = null)
RETURNS (
    HOUR_ID BIGINT,
    HOUR_NUMBER INTEGER,
    HOUR_START TIME,
    HOUR_END TIME)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SCHEDULE_LIST (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    OBJ_ID BIGINT,
    CAPTION VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SCHEDULE_REPORT_ALL_CLASSES (
    I$SCHEDULE_TEMPLATE_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    COL_NUM SMALLINT,
    VAL VARCHAR(4000),
    DATA VARCHAR(4000),
    ORIENTATION VARCHAR(20))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SCHEDULE_REPORT_ALL_ROOMS (
    I$SCHEDULE_TEMPLATE_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    COL_NUM SMALLINT,
    VAL VARCHAR(4000),
    DATA VARCHAR(4000),
    ORIENTATION VARCHAR(20))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SCHEDULE_REPORT_ALL_TEACHERS (
    I$SCHEDULE_TEMPLATE_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    COL_NUM SMALLINT,
    VAL VARCHAR(4000),
    DATA VARCHAR(4000),
    ORIENTATION VARCHAR(20))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SCHEDULE_REPORT_ALONE_CLASS (
    I$SCHEDULE_TEMPLATE_ID BIGINT,
    I$CLASS_ID BIGINT)
RETURNS (
    C1 VARCHAR(500),
    C2 VARCHAR(500),
    C3 VARCHAR(500),
    C4 VARCHAR(500),
    C5 VARCHAR(500),
    C6 VARCHAR(500))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SCHEDULE_REPORT_ALONE_ROOM (
    I$SCHEDULE_TEMPLATE_ID BIGINT,
    I$ROOM_ID BIGINT)
RETURNS (
    C1 VARCHAR(500),
    C2 VARCHAR(500),
    C3 VARCHAR(500),
    C4 VARCHAR(500),
    C5 VARCHAR(500),
    C6 VARCHAR(500))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SCHEDULE_REPORT_ALONE_TEACHER (
    I$SCHEDULE_TEMPLATE_ID BIGINT,
    I$TEACHER_ID BIGINT)
RETURNS (
    C1 VARCHAR(500),
    C2 VARCHAR(500),
    C3 VARCHAR(500),
    C4 VARCHAR(500),
    C5 VARCHAR(500),
    C6 VARCHAR(500))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SCHEDULE_ROOMS_LIST (
    I$SCHEDULE_TEMPLATE_ID BIGINT,
    I$USER_ID BIGINT = null)
RETURNS (
    ROOM_ID BIGINT,
    ROOM_CAPTION VARCHAR(1000),
    ROOM_NUMBER VARCHAR(40),
    TEACHER_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SCHEDULE_SET (
    I$SCHEDULE_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$DELETE SMALLINT,
    I$DAY SMALLINT,
    I$DATE DATE,
    I$LESSON SMALLINT,
    I$CJ_ID BIGINT,
    I$ROOM_ID BIGINT,
    I$DURATION SMALLINT,
    I$PARENT_ID BIGINT,
    I$EXT_INFO VARCHAR(1000),
    I$USER_ID VARCHAR(40))
RETURNS (
    ID BIGINT,
    "DAY" INTEGER,
    "DATE" INTEGER,
    LESSON INTEGER,
    CJ BIGINT,
    ROOM BIGINT,
    DURATION INTEGER,
    PARENT BIGINT,
    TEMPLATE INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SCHEDULE_SET_SUBST (
    I$OBJ_ID BIGINT,
    I$ID BIGINT,
    I$NEW SMALLINT,
    I$SRC_CJ BIGINT,
    I$DATE DATE,
    I$LESSON INTEGER,
    I$CJ_ID BIGINT,
    I$TEACHER_ID BIGINT,
    I$ROOM_ID BIGINT,
    I$DURATION INTEGER,
    I$USER_ID VARCHAR(40))
RETURNS (
    ID BIGINT,
    "DAY" INTEGER,
    "DATE" INTEGER,
    LESSON INTEGER,
    CJ BIGINT,
    SRC_CJ BIGINT,
    ROOM BIGINT,
    DURATION INTEGER,
    TEACHER BIGINT,
    TEMPLATE INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SCHEDULE_SUBJECTS_LIST (
    I$SCHEDULE_TEMPLATE_ID BIGINT,
    I$TEACHER_ID BIGINT)
RETURNS (
    SUBJECT_ID BIGINT,
    SUBJECT_CAPTION VARCHAR(1000),
    SUBJECT_ORDER DOUBLE PRECISION,
    LOADING_COUNT INTEGER,
    GRADE_LOADING_COUNT INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SCHEDULE_TEACHERS_LIST (
    I$SCHEDULE_TEMPLATE_ID BIGINT)
RETURNS (
    TEACHER_ID BIGINT,
    TEACHER_CAPTION VARCHAR(4000),
    LOADING_COUNT INTEGER,
    GRADE_LOADING_COUNT INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SCHEDULE_TO_DATE (
    I$DAYNUM INTEGER,
    I$YEAR INTEGER)
RETURNS (
    DAY_DAY INTEGER,
    DAY_DATE DATE)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SCHOLAR_BY_DATE (
    I$OBJ_ID BIGINT,
    I$DT DATE = current_date)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE SCHOLAR_CNT_CS_GET RETURNS (
    F1 VARCHAR(40),
    F2 VARCHAR(1000),
    F3 INTEGER,
    F4 INTEGER,
    F5 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SCHOLAR_CNT_DISTR_GET RETURNS (
    F1 VARCHAR(1000),
    F2 INTEGER,
    F3 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SCHOLAR_CNT_DISTR_GET2 RETURNS (
    F1 VARCHAR(1000),
    F2 INTEGER,
    F3 INTEGER,
    F4 INTEGER,
    F5 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SCHOLAR_CNT_DISTR_INS (
    I$OBJ_ID BIGINT,
    I$DT DATE,
    I$STAGE_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE SCHOLAR_CNT_REGION_CD_GET RETURNS (
    FN INTEGER,
    F1 VARCHAR(1000),
    F2 VARCHAR(1000),
    F3 VARCHAR(1000),
    F4 VARCHAR(1000),
    F5 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SCHOLAR_CNT_REGION_GET RETURNS (
    F1 VARCHAR(1000),
    F2 INTEGER,
    F3 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SCHOLAR_CNT_REGION_GET2 RETURNS (
    F1 VARCHAR(1000),
    F2 INTEGER,
    F3 INTEGER,
    F4 INTEGER,
    F5 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SCHOLAR_CNT_UDOD_GET RETURNS (
    F1 VARCHAR(40),
    F2 VARCHAR(1000),
    F3 INTEGER,
    F4 INTEGER,
    F5 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SCHOOL_WEEK_ADD (
    I$OBJ_ID BIGINT,
    I$VAL BIGINT,
    IS_RECURRENCE SMALLINT = 0)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE SCUD_STREAM_EXPORT (
    I$USER_ID BIGINT = null)
RETURNS (
    TAG_NAME VARCHAR(255),
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SDOCS_ADD_PERSON (
    I$NAME_LAST VARCHAR(400),
    I$NAME_FIRST VARCHAR(400),
    I$NAME_MID VARCHAR(400),
    I$BIRTH_DATE DATE,
    I$SNILS VARCHAR(40),
    I$GRAD_YEAR INTEGER,
    I$FINAL_FL SMALLINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SDOCS_APPLY_DOC (
    I$PERSON_ID BIGINT,
    I$DOC_ID BIGINT,
    I$DOC_TYPE_ID BIGINT,
    I$ORDER_ID BIGINT,
    V$SERIE VARCHAR(40),
    V$NUM VARCHAR(40),
    I$RN INTEGER,
    I$STATUS BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE SDOCS_APPLY_DUB (
    I$PERSON_ID BIGINT,
    I$DOC_ID BIGINT,
    I$PREV_DOC_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE SDOCS_BLANK_GET (
    I$LEVEL_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SDOCS_CHANGE_TYPE (
    I$ORDER_ID BIGINT,
    I$DOC_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SDOCS_DELETE_ORDER (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE SDOCS_DOCUMENT_GET (
    I$PERSON_ID BIGINT,
    I$DOC_TYPE_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SDOCS_LEVELS_LIST (
    I$LEVEL_ID INTEGER,
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    OBJ_ID BIGINT,
    NAME VARCHAR(1000),
    NAME_SHORT VARCHAR(1000),
    LEVEL_ID INTEGER,
    HAS_CHILDREN SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SDOCS_MARKS_GET (
    I$PERSON_ID BIGINT,
    I$STAGE_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SDOCS_MIGRATE RETURNS (
    STUDENT_ID BIGINT,
    BOOK_ID BIGINT,
    DOC_ID BIGINT,
    DOC_TYPE BIGINT,
    ORDER_ID BIGINT,
    BLANK_ID BIGINT,
    STATE_ID BIGINT,
    NAME1 VARCHAR(100),
    NAME2 VARCHAR(100),
    NAME3 VARCHAR(100),
    BS VARCHAR(20),
    BN VARCHAR(20),
    CNT_ID BIGINT,
    DATA_ID BIGINT,
    Y INTEGER,
    PREV_DUBL VARCHAR(40),
    CLASS_NAME VARCHAR(400))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SDOCS_MIGRATE_LINKS RETURNS (
    PERSON_ID BIGINT,
    DOC_ID BIGINT,
    DOC_TYPE BIGINT,
    DOC_SERIE VARCHAR(40),
    DOC_NUM VARCHAR(40),
    DOC_DATE VARCHAR(20),
    ATT_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SDOCS_MIGRATE_ORDER (
    I$ORDER_DATE DATE,
    I$ORDER_NUM VARCHAR(100),
    I$STUDENT_ID BIGINT,
    I$DOC_TYPE BIGINT,
    I$ISSUE_DATE DATE)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SDOCS_ORDER_CHECK_PERSON (
    I$ORDER_ID BIGINT,
    I$PERSON_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    STATE_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SDOCS_ORDER_DUB (
    I$PERSON_ID BIGINT,
    I$ORDER_DATE DATE,
    I$ORDER_NUM VARCHAR(100),
    I$ACTION_DATE DATE,
    I$SIGNED_BY BIGINT,
    I$SUBTYPE_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SDOCS_ORDER_GET (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SDOCS_ORDER_REPORT (
    I$STAGE_ID BIGINT,
    I$TYPE_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SDOCS_ORDER_SET (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40),
    I$ACTION_DATE DATE,
    I$ORDER_DATE DATE,
    I$ORDER_NUM VARCHAR(100),
    I$COMMENTS VARCHAR(1000),
    I$SIGNED_BY BIGINT,
    I$STATE_ID BIGINT,
    I$SUBTYPE_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    STATE_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SDOCS_PERSONS_LIST (
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SDOCS_SETTINGS_GET (
    I$CLASS_ID BIGINT,
    I$STAGE_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SDOCS_STATE_REPORT (
    I$STAGE_ID BIGINT,
    I$TYPE_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SDO_CLASS_LIST (
    I$OBJ_ID BIGINT)
RETURNS (
    F VARCHAR(1000),
    I VARCHAR(1000),
    O VARCHAR(1000),
    L VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SDO_EXPORT RETURNS (
    TAG_NAME VARCHAR(255),
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SDO_EXPORT_CLASS (
    I$CLASS_ID BIGINT)
RETURNS (
    TAG_NAME VARCHAR(255),
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SDO_OU_NUM RETURNS (
    NUM VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SEARCHFIELDS_ADD (
    I$SEARCH_ID BIGINT,
    I$TYPE_ID BIGINT,
    I$PARAM_ID BIGINT,
    I$GRID_ORDER SMALLINT,
    I$SEARCH_AGREGATE VARCHAR(3))
RETURNS (
    SEARCH_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SEARCHFIELDS_GET (
    I$SEARCH_ID BIGINT)
RETURNS (
    SEARCH_ID BIGINT,
    TYPE_ID BIGINT,
    PARAM_ID BIGINT,
    GRID_ORDER SMALLINT,
    SEARCH_AGREGATE VARCHAR(3))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SEARCHPARAMS_ADD (
    I$SEARCH_ID BIGINT,
    I$TYPE_ID BIGINT,
    I$EXT_TYPE_ID BIGINT,
    I$PARAM_ID BIGINT,
    I$SORT_ORDER SMALLINT,
    I$SEARCH_TERM VARCHAR(10),
    I$VAL_S VARCHAR(4000),
    I$VAL_I BIGINT,
    I$VAL_F DOUBLE PRECISION,
    I$VAL_D DATE)
RETURNS (
    SEARCH_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SEARCHPARAMS_GET (
    I$SEARCH_ID BIGINT,
    I$LANG_CODE VARCHAR(2) = 'RU')
RETURNS (
    SEARCH_ID BIGINT,
    TYPE_ID BIGINT,
    EXT_TYPE_ID BIGINT,
    PARAM_ID BIGINT,
    ROW_INDEX SMALLINT,
    SEARCH_TERM VARCHAR(10),
    VAL_S VARCHAR(4000),
    VAL_I BIGINT,
    VAL_F DOUBLE PRECISION,
    VAL_D DATE,
    TAB_ID BIGINT,
    TAB_CAPTION VARCHAR(4000),
    TAB_NUM SMALLINT,
    PARAM_TYPE SMALLINT,
    EDIT_TYPE SMALLINT,
    NATIVE SMALLINT,
    CAPTION VARCHAR(4000),
    IS_CHECKED SMALLINT,
    GRID_ORDER SMALLINT,
    LIST_ID BIGINT,
    TAG VARCHAR(100),
    RUN_SQL VARCHAR(1000),
    BKG_COLOR INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SEARCHTYPES_ADD (
    I$SEARCH_ID BIGINT,
    I$TYPE_ID BIGINT,
    I$SEARCH_ORDER SMALLINT,
    I$SEARCH_TERM VARCHAR(10),
    I$SEARCH_VIEW VARCHAR(10),
    I$OWNER_TYPE_ID BIGINT)
RETURNS (
    SEARCH_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SEARCHTYPES_GET (
    I$SEARCH_ID BIGINT,
    I$LANG_CODE VARCHAR(2) = 'RU')
RETURNS (
    ROW_INDEX SMALLINT,
    SEARCH_ID BIGINT,
    TYPE_ID BIGINT,
    TYPE_CAPTION VARCHAR(4000),
    SEARCH_ORDER SMALLINT,
    SEARCH_TERM VARCHAR(10),
    SEARCH_VIEW VARCHAR(10),
    COLOR INTEGER,
    OWNER_TYPE_ID BIGINT,
    OWNER_TYPE_CAPTION VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SEARCH_ADD (
    I$SEARCH_ID BIGINT,
    I$USER_ID BIGINT,
    I$TYPE_ID BIGINT,
    I$LEVEL_ID BIGINT,
    I$IS_ACTIVE SMALLINT,
    I$SEARCH_NAME VARCHAR(100))
RETURNS (
    SEARCH_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SEARCH_APPLY (
    I$USER_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$LEVEL_ID BIGINT)
RETURNS (
    COL_NUM SMALLINT,
    SEARCH_ORDER SMALLINT,
    PARENT_ID BIGINT,
    LINK_ID BIGINT,
    OBJ_ID BIGINT,
    PARAM_ID BIGINT,
    VAL VARCHAR(4000),
    LISTVAL_ID BIGINT,
    DATA_PATH VARCHAR(200))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SEARCH_CHECK_BIGINT (
    VAL BIGINT,
    CURR_VAL BIGINT,
    PARAM_SEARCH_TERM VARCHAR(10))
RETURNS (
    C SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SEARCH_CHECK_DATE (
    VAL DATE,
    CURR_VAL DATE,
    PARAM_SEARCH_TERM VARCHAR(10))
RETURNS (
    C SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SEARCH_CHECK_DOUBLE (
    VAL DOUBLE PRECISION,
    CURR_VAL DOUBLE PRECISION,
    PARAM_SEARCH_TERM VARCHAR(10))
RETURNS (
    C SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SEARCH_CHECK_STRING (
    VAL VARCHAR(4000),
    CURR_VAL VARCHAR(4000),
    PARAM_SEARCH_TERM VARCHAR(10))
RETURNS (
    C SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SEARCH_COLUMNS_LIST (
    I$USER_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$LEVEL_ID BIGINT)
RETURNS (
    SEARCH_ID BIGINT,
    TYPE_ID BIGINT,
    TYPE_CAPTION VARCHAR(3000),
    SEARCH_ORDER SMALLINT,
    SEARCH_VIEW VARCHAR(10),
    PARAM_ID BIGINT,
    PARAM_TYPE SMALLINT,
    TAG VARCHAR(100),
    EDIT_TYPE SMALLINT,
    LIST_ID BIGINT,
    LIST_EDIT_TYPE SMALLINT,
    EDIT_MASK VARCHAR(200),
    RUN_SQL VARCHAR(1000),
    BKG_COLOR INTEGER,
    PARAM_CAPTION VARCHAR(3000),
    HINT_CAPTION VARCHAR(3000),
    BAND_NUM SMALLINT,
    COL_NUM SMALLINT,
    SEARCH_AGREGATE VARCHAR(3),
    MAX_ROW_COUNT INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SEARCH_DEL (
    I$SEARCH_ID BIGINT)
RETURNS (
    SEARCH_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SEARCH_FIND (
    I$USER_ID BIGINT,
    I$TYPE_ID BIGINT,
    I$LEVEL_ID BIGINT,
    I$FIND_TYPE_ID BIGINT)
RETURNS (
    SEARCH_ID BIGINT,
    USER_ID BIGINT,
    TYPE_ID BIGINT,
    LEVEL_ID BIGINT,
    IS_ACTIVE SMALLINT,
    SEARCH_NAME VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SEARCH_INSERT (
    SEARCH_ID BIGINT NOT NULL,
    SEARCH_ORDER SMALLINT NOT NULL,
    CURR_OBJECT_ID BIGINT,
    CURR_OBJECT_TYPE_ID BIGINT,
    TYPE_SEARCH_TERM VARCHAR(10),
    PRIOR_PARAM_ID BIGINT,
    SEARCH_PARENT_TYPE_ID BIGINT,
    SEARCH_TYPE_ID BIGINT,
    CHECK_OBJ_ID BIGINT,
    CHILD_LINK_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE SEARCH_LIST (
    I$USER_ID BIGINT,
    I$TYPE_ID BIGINT,
    I$LEVEL_ID BIGINT)
RETURNS (
    SEARCH_ID BIGINT,
    USER_ID BIGINT,
    TYPE_ID BIGINT,
    LEVEL_ID BIGINT,
    IS_ACTIVE SMALLINT,
    SEARCH_NAME VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SEARCH_OBJECT_CHILDREN_GET (
    I$OBJ_ID BIGINT,
    I$LINK_ID BIGINT,
    I$TYPE_ID BIGINT,
    I$CHILDREN_TYPE_ID BIGINT,
    I$LEVEL_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    LINK_ID BIGINT,
    TYPE_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SEARCH_PARAMS_LIST (
    I$TYPE_ID BIGINT,
    I$LEVEL_ID BIGINT,
    I$LANG_CODE VARCHAR(2) = 'RU')
RETURNS (
    TYPE_ID BIGINT,
    EXT_TYPE_ID BIGINT,
    TAB_ID BIGINT,
    TAB_CAPTION VARCHAR(4000),
    TAB_NUM INTEGER,
    PARAM_ID BIGINT,
    PARAM_TYPE SMALLINT,
    EDIT_TYPE SMALLINT,
    NATIVE SMALLINT,
    CAPTION VARCHAR(4000),
    IS_CHECKED SMALLINT,
    GRID_ORDER SMALLINT,
    LIST_ID BIGINT,
    TAG VARCHAR(100),
    RUN_SQL VARCHAR(1000),
    BKG_COLOR INTEGER,
    VAL_S VARCHAR(4000),
    VAL_I BIGINT,
    VAL_F DOUBLE PRECISION,
    VAL_D DATE)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SEARCH_TYPES_GET (
    I$TYPE_ID BIGINT,
    I$CHILD_ID BIGINT,
    I$LEVEL_ID BIGINT)
RETURNS (
    TYPE_ID BIGINT,
    CHILD_ID BIGINT,
    FLAG SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SEARCH_TYPES_GET2 (
    I$SEARCH_ID BIGINT)
RETURNS (
    TYPE_ID BIGINT,
    SEARCH_ORDER SMALLINT,
    SEARCH_TERM VARCHAR(10),
    SEARCH_VIEW VARCHAR(10),
    OWNER_TYPE_ID BIGINT,
    IS_SKIPED SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SERIALIZE_OBJECT (
    PARENT_ID BIGINT,
    OBJ_ID BIGINT,
    TREE_LEVEL SMALLINT = 0,
    EXPAND_REFS SMALLINT = 0,
    MAX_LEVELS SMALLINT = 2,
    LOCAL_ONLY SMALLINT = 0,
    PARENT_TAG VARCHAR(400) = '')
RETURNS (
    TAG VARCHAR(200),
    VAL VARCHAR(6000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SERVICE_MEO_DEFS (
    I$TIMEMARK TIMESTAMP)
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SITELOAD_CONTENT (
    I$TYPE_ID BIGINT = NULL,
    I$OBJ_ID BIGINT = NULL)
RETURNS (
    OBJ_ID BIGINT,
    TYPE_ID BIGINT,
    SITE_URL VARCHAR(1000),
    TEMPLATE_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SITELOAD_DATA_18581 RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SITELOAD_DATA_18582 RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SITELOAD_DATA_18583 RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SITELOAD_DATA_18584 RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SITELOAD_DATA_18585 RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SITELOAD_DATA_18586 RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SITELOAD_DATA_18587 RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SITELOAD_DATA_18588 RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SITELOAD_DATA_18589 RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SITELOAD_DATA_18590 RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SITELOAD_DATA_18591 RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SITELOAD_DATA_18592 RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SITELOAD_DATA_18593 RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SITELOAD_DATA_18594 RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SITELOAD_DATA_18595 RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SITELOAD_GET (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100) NOT NULL,
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SITELOAD_STATUS (
    I$OBJ_ID BIGINT,
    I$STATUS VARCHAR(4000))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE SMIR_MOVE_ENTER (
    I$OU_ID BIGINT)
RETURNS (
    STUDENT_ID BIGINT,
    NAME_LAST VARCHAR(1000),
    STAGE_ID BIGINT,
    STAGE_INDEX BIGINT,
    GRADE_ID BIGINT,
    PAPER_DATE DATE,
    ORDER_DATE DATE,
    ORDER_NUM VARCHAR(1000),
    DOG_DATE DATE)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SMIR_MOVE_ERR_REPORT (
    I$OBJ_ID BIGINT,
    I$TYPE SMALLINT = null)
RETURNS (
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SMIR_MOVE_ERR_REPORT_2 (
    I$OBJ_ID BIGINT,
    I$TYPE SMALLINT = null)
RETURNS (
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SMIR_MOVE_ERR_REPORT_3 (
    I$OBJ_ID BIGINT,
    I$TYPE SMALLINT = null)
RETURNS (
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SMIR_MOVE_LEAVE (
    I$OU_ID BIGINT)
RETURNS (
    STUDENT_ID BIGINT,
    NAME_LAST VARCHAR(1000),
    STAGE_ID BIGINT,
    STAGE_INDEX BIGINT,
    GRADE_ID BIGINT,
    ORDER_DATE DATE,
    PAPER_DATE DATE,
    ORDER_NUM VARCHAR(200))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SOCPASS_DATA (
    I$PARAM INTEGER,
    I$OBJ_ID BIGINT = null)
RETURNS (
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SOCPASS_GET (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SOCPASS_SET (
    I$PARAM BIGINT,
    I$VALUE INTEGER,
    I$USER_ID VARCHAR(40))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE STAGE_AVAILABLE_GUP_LIST (
    I$STAGE_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    PARENT_ID BIGINT,
    OBJ_CAPTION VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE STAGE_GROUPS_LIST (
    PLAN_ID BIGINT,
    STAGE_LV BIGINT)
RETURNS (
    GROUP_ID BIGINT,
    GROUP_TYPE_ID BIGINT,
    GROUP_NAME VARCHAR(1000),
    PARENT_ID BIGINT,
    SUBJECT_ID BIGINT,
    AFFECTS_THIS SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE STAGE_GROUPS_MAP (
    PLAN_ID BIGINT,
    STAGE_LV BIGINT)
RETURNS (
    PUPIL_ID BIGINT,
    GROUP_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE STAGE_PUPIL_LIST (
    PLAN_ID BIGINT,
    STAGE_LV BIGINT)
RETURNS (
    PUPIL_ID BIGINT,
    PUPIL_NAME VARCHAR(1000),
    GRADE_ID BIGINT,
    GRADE_NAME VARCHAR(100),
    GRADE_TYPE_ID BIGINT,
    GRADE_SORT DOUBLE PRECISION,
    ACCEPT_DATE DATE)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE STAGE_SUBJECTS_LIST (
    PLAN_ID BIGINT,
    STAGE_LV BIGINT)
RETURNS (
    SUBJECT_ID BIGINT,
    SUBJECT_NAME VARCHAR(1000),
    SORT_INDEX DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE STAT_UPDATE_FIELD (
    I$FIELD_ID BIGINT,
    I$GROUPING_ID BIGINT,
    I$PERIOD INTEGER,
    I$VAL DOUBLE PRECISION)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE STDFORM_LIST (
    I$OBJ_ID BIGINT,
    I$LIST_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    PARENT_ID BIGINT,
    LISTVAL_ID BIGINT,
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE STDWEEK_LIST (
    I$OBJ_ID BIGINT,
    I$LIST_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    PARENT_ID BIGINT,
    LISTVAL_ID BIGINT,
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE STEAD_DELETE (
    I$OBJ_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE STREAM_CREATE (
    STAGE_ID BIGINT,
    SUBJECT_ID BIGINT)
RETURNS (
    STREAMS_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE STREAM_MOVE_PUPIL (
    I$PUPIL_ID BIGINT,
    I$STREAM_ID BIGINT,
    I$USER_ID BIGINT,
    I$MOVE_TYPE_ID INTEGER = null,
    I$MOVE_DATE DATE = null,
    I$MOVEMENT_SOURCE_ID BIGINT = 902,
    I$LINK_CURGROUP SMALLINT = 0)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE STREAM_MOVE_PUPIL_FRC (
    I$PUPIL_ID BIGINT,
    I$GUP_ID BIGINT,
    I$USER_ID BIGINT,
    I$MOVE_TYPE_ID INTEGER,
    I$MOVE_DATE DATE,
    I$MOVEMENT_SOURCE_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE STREAM_SCHOOLARS_LIST (
    I$STREAM_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    PARENT_ID BIGINT,
    TREE_PARENT_ID VARCHAR(255),
    OBJ_ID BIGINT,
    TREE_OBJ_ID VARCHAR(255),
    TYPE_ID BIGINT,
    OBJ_CAPTION VARCHAR(4000),
    COLOR INTEGER,
    SORT_ORDER VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE STRING_PART (
    I$VALS VARCHAR(4000),
    I$PART SMALLINT,
    I$LENGTH INTEGER)
RETURNS (
    VAL VARCHAR(2000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE STRUCTURE_OO_EMPLOYEE_LIST (
    I$USER_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    PARENT_ID BIGINT,
    OBJ_CAPTION VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE STRUCTURE_OO_POSITION_LIST (
    I$USER_ID BIGINT)
RETURNS (
    LISTVAL_ID BIGINT,
    PARENT_ID BIGINT,
    VAL VARCHAR(4000),
    VAL_LONG VARCHAR(4000),
    TAG VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE STRUCTURE_OO_REPORT (
    I$OBJ_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    "LEVEL" SMALLINT,
    NAME VARCHAR(1000),
    SHORTNAME VARCHAR(1000),
    EMPLOYEE VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE STR_IN_LIST (
    VAL_S VARCHAR(100),
    S VARCHAR(2000),
    SEPARATOR CHAR(1) = ',')
RETURNS (
    IS_PRESENT SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE STR_REMOVE_FROM_LIST (
    IN_S VARCHAR(2000),
    REMOVE_S VARCHAR(100),
    SEPARATOR CHAR(1) = ',')
RETURNS (
    OUT_S VARCHAR(2000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE STR_TO_ID_LIST (
    I$LIST VARCHAR(4000))
RETURNS (
    ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE STR_TO_YEAR (
    S VARCHAR(100))
RETURNS (
    Y INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE STUDENTS_LIST_12932 RETURNS (
    OBJ_ID BIGINT,
    CAPTION VARCHAR(400),
    GRADE_ID BIGINT,
    GRADE_CAPTION VARCHAR(400),
    STAGE_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE STUDENT_ATTENDANCE_REF (
    I$OBJ_ID BIGINT,
    I$REF_NUM VARCHAR(20) = NULL,
    I$REF_TO VARCHAR(1000) = NULL)
RETURNS (
    TAG_NAME VARCHAR(30),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE STUDENT_EXISTS_AT (
    I$STUDENT_ID BIGINT,
    I$GRADE_ID BIGINT,
    I$GRADE_TYPE_ID BIGINT,
    I$DATE_FROM DATE,
    I$DATE_TO DATE)
RETURNS (
    IS_EXISTS SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE STUDENT_STUDY_INFO (
    I$OBJ_ID BIGINT,
    I$PARENT_ID BIGINT = null)
RETURNS (
    STUDY_FORM VARCHAR(200),
    LEAVE_DATE VARCHAR(20),
    BIRTH_DATE VARCHAR(20),
    ACCEPT_DATE VARCHAR(20),
    ORDER_DATE VARCHAR(20),
    ORDER_NUM VARCHAR(400))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SUBGROUP_SCHOOLARS_LIST (
    I$SUBGROUP_ID BIGINT,
    I$USER_ID BIGINT,
    I$IN_SUBGROUP_FL SMALLINT = NULL)
RETURNS (
    PARENT_ID BIGINT,
    TREE_PARENT_ID VARCHAR(255),
    OBJ_ID BIGINT,
    TREE_OBJ_ID VARCHAR(255),
    TYPE_ID BIGINT,
    OBJ_CAPTION VARCHAR(4000),
    COLOR INTEGER,
    SORT_ORDER VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SUBJECT_DECODE_DIFF (
    I$VAL VARCHAR(100),
    I$TYPE_ID BIGINT)
RETURNS (
    VAL VARCHAR(400),
    MDVAL INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SUBJECT_DELETE (
    I$OBJ_ID BIGINT NOT NULL,
    I$USER_ID VARCHAR(100))
RETURNS (
    DEL_COUNT INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SUBJECT_ENUM_DIR (
    I$OBJ_ID BIGINT,
    I$DIR BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE SUBJECT_ENUM_MASTER (
    I$OBJ_ID BIGINT,
    I$AREA BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE SUBJECT_GET (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(20),
    I$PARENT_ID BIGINT)
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SUBJECT_GET_SCOPE (
    I$SUBJECT_ID BIGINT)
RETURNS (
    SCOPE VARCHAR(400))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SUBJECT_SET (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(100),
    I$PARENT_ID BIGINT,
    I$OBJ_NAME VARCHAR(1000),
    I$TYPE BIGINT,
    I$CODE VARCHAR(50),
    I$COLOR VARCHAR(100),
    I$BASE_SUBJECT BIGINT,
    I$ELECTIVE SMALLINT,
    I$DIFF_LEVEL VARCHAR(100),
    I$MAX_HOURS DOUBLE PRECISION,
    I$RESTRICTION VARCHAR(100),
    I$OBLIGATORY SMALLINT,
    I$SCOPE_LIST VARCHAR(100),
    I$CODE_GIA INTEGER,
    I$ORDER INTEGER,
    I$FGOS SMALLINT,
    I$SUBJ_FIELD BIGINT)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE SUBJECT_TYPES RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE TABS_LIST (
    I$TYPE_ID BIGINT,
    I$LANG_CODE VARCHAR(2) = 'RU')
RETURNS (
    TAB_ID BIGINT,
    TYPE_ID BIGINT,
    TAB_NUM SMALLINT,
    RES_ID BIGINT,
    IS_DEL SMALLINT,
    TAB_CAPTION VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE TAB_ADD (
    I$TAB_ID BIGINT,
    I$TYPE_ID BIGINT,
    I$TAB_NUM SMALLINT,
    I$RES_ID BIGINT,
    I$IS_DEL SMALLINT,
    I$LANG_CODE CHAR(2),
    I$TAB_CAPTION VARCHAR(4000))
RETURNS (
    RC INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE TAB_MOVE (
    I$TAB_ID BIGINT,
    I$MOVE SMALLINT)
RETURNS (
    TN SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE TAB_PARAMS_LIST (
    I$TYPE_ID BIGINT,
    I$LANG_CODE VARCHAR(2) = 'RU')
RETURNS (
    OBJ_ID VARCHAR(40),
    PARENT_ID VARCHAR(40),
    CAPTION VARCHAR(4000),
    PARAM_TYPE SMALLINT,
    LIST_ID BIGINT,
    DO_FUNC VARCHAR(100),
    TAG VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE TAB_PARAMS_LIST2 (
    I$TYPE_ID BIGINT,
    I$LEVEL_ID BIGINT,
    I$LANG_CODE VARCHAR(2) = 'RU')
RETURNS (
    OBJ_ID VARCHAR(40),
    PARENT_ID VARCHAR(40),
    CAPTION VARCHAR(4000),
    PARAM_TYPE SMALLINT,
    LIST_ID BIGINT,
    DO_FUNC VARCHAR(100),
    TAG VARCHAR(100),
    RUN_SQL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE TARIFF_ADD (
    I$OBJ_ID BIGINT,
    I$TYPE_ID BIGINT,
    I$RANGE_ID BIGINT,
    I$NAME VARCHAR(1000),
    I$DATE DATE,
    I$RATE_MGMT FLOAT,
    I$RATE_BASE FLOAT,
    I$RATE_CLASS FLOAT,
    I$RATE_ROOM FLOAT,
    I$RATE_CHECK FLOAT,
    I$USER_ID VARCHAR(40),
    I$CORR_LIST VARCHAR(4000))
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE TARIFF_ADD_ROW (
    I$PARENT_ID BIGINT,
    I$JOB_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    OBJ_ID BIGINT,
    PERSON_ID BIGINT,
    PERSON_NAME VARCHAR(400),
    JOB_ID BIGINT,
    JOB_NAME VARCHAR(400),
    JOB_TYPE VARCHAR(40),
    JOB_GROUP VARCHAR(400),
    JOB_SUBGROUP VARCHAR(400),
    VAL VARCHAR(2000),
    EDU_COL BIGINT,
    QUAL_COL BIGINT,
    SDEG_COL BIGINT,
    RANK_COL BIGINT,
    EXPR_COL INTEGER,
    GRADES_K INTEGER,
    ROOMS_K INTEGER,
    COPYBOOK_K INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE TARIFF_CLONE (
    I$PARENT_ID BIGINT,
    I$NAME VARCHAR(1000),
    I$DATE DATE,
    I$RATE_MGMT FLOAT,
    I$RATE_BASE FLOAT,
    I$RATE_CLASS FLOAT,
    I$RATE_ROOM FLOAT,
    I$RATE_CHECK FLOAT,
    I$USER_ID VARCHAR(40))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE TARIFF_CORR_SEL (
    I$RANGE_ID BIGINT,
    I$DATE DATE,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE TARIFF_DELETE (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE TARIFF_FILL (
    I$PARENT_ID BIGINT NOT NULL,
    I$JOB_ID BIGINT NOT NULL,
    I$PERSON_ID BIGINT,
    I$INI_VAL VARCHAR(4000) NOT NULL,
    I$ROW_INDEX BIGINT NOT NULL)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE TARIFF_GET (
    I$OBJ_ID BIGINT,
    I$HEADERS INTEGER,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE TARIFF_REORDER (
    I$OBJ_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE TARIFF_SET (
    I$PARENT_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$VALUE VARCHAR(4000),
    I$USER_ID VARCHAR(40),
    I$JOB_ID BIGINT,
    I$PERSON_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE TARIFF_SETTINGS_GET (
    I$OBJ_ID BIGINT)
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE TARIFF_STATUS (
    I$OBJ_ID BIGINT,
    I$STATE_ID BIGINT,
    I$USER_ID VARCHAR(40))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE TASKS_ACTIVE_LIST (
    I$MODULE_ID BIGINT = NULL,
    I$LANG_CODE CHAR(2) = 'RU')
RETURNS (
    MODULE_ID BIGINT,
    MODULE_CAPTION VARCHAR(4000),
    TASK_ID BIGINT,
    TASK_CAPTION VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE TASKS_LIST (
    I$MODULE_ID BIGINT,
    I$LANG_CODE VARCHAR(2) = 'RU')
RETURNS (
    TASK_ID BIGINT,
    RES_ID BIGINT,
    MODULE_ID BIGINT,
    IS_DEL SMALLINT,
    TASK_CAPTION VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE TASK_ADD (
    I$TASK_ID BIGINT,
    I$RES_ID BIGINT,
    I$MODULE_ID BIGINT,
    I$LANG_CODE CHAR(2),
    I$TASK_CAPTION VARCHAR(4000),
    I$IS_DEL SMALLINT = 0)
RETURNS (
    TASK_ID BIGINT,
    RES_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE TASK_MOVE (
    I$TASK_ID BIGINT,
    I$MOVE SMALLINT)
RETURNS (
    SORT_ORDER SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE TEACHER_CAPTION_GET (
    OBJ_ID BIGINT)
RETURNS (
    CAPTION VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE TEST_D_12 RETURNS (
    ROW_NUM INTEGER,
    C1 INTEGER,
    C2 INTEGER,
    C3 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE THE_CAPTION_CLASS (
    I$OBJ_ID BIGINT,
    I$CAPTION VARCHAR(4000))
RETURNS (
    CAPTION VARCHAR(4000),
    SORT_ORDER SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE THE_CAPTION_CLASS_GIA_VIRTUAL (
    I$OBJ_ID BIGINT,
    I$CAPTION VARCHAR(4000))
RETURNS (
    CAPTION VARCHAR(4000),
    SORT_ORDER SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE THE_CAPTION_COLLEGE_GROUP (
    I$OBJ_ID BIGINT,
    I$CAPTION VARCHAR(4000))
RETURNS (
    CAPTION VARCHAR(4000),
    SORT_ORDER SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE THE_CAPTION_DYNAMIC (
    I$OBJ_ID BIGINT,
    I$CAPTION VARCHAR(4000),
    I$USER_ID BIGINT)
RETURNS (
    CAPTION VARCHAR(4000),
    SORT_ORDER SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE THE_CAPTION_FINISHED (
    I$OBJ_ID BIGINT,
    I$CAPTION VARCHAR(4000),
    I$USER_ID BIGINT)
RETURNS (
    CAPTION VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE THE_CAPTION_GROUP (
    I$OBJ_ID BIGINT,
    I$CAPTION VARCHAR(4000),
    I$USER_ID BIGINT)
RETURNS (
    CAPTION VARCHAR(4000),
    SORT_ORDER SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE THE_CAPTION_GUP (
    I$OBJ_ID BIGINT,
    I$CAPTION VARCHAR(4000))
RETURNS (
    CAPTION VARCHAR(4000),
    SORT_ORDER SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE THE_CAPTION_LEAVED (
    I$OBJ_ID BIGINT,
    I$CAPTION VARCHAR(4000),
    I$USER_ID BIGINT)
RETURNS (
    CAPTION VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE THE_CAPTION_STREAM (
    I$OBJ_ID BIGINT,
    I$CAPTION VARCHAR(4000))
RETURNS (
    CAPTION VARCHAR(4000),
    SORT_ORDER SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE THE_CAPTION_TEACHER (
    I$TEACHER_ID BIGINT)
RETURNS (
    CAPTION VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE TRANSFER_GRADE_LIST (
    I$OBJ_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    CAPTION VARCHAR(1000),
    OBJ_TYPE_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE TRANSFER_GUP_LIST (
    I$OBJ_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    OBJ_TYPE_ID BIGINT,
    CAPTION VARCHAR(1000),
    SUBJECT_NAME VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE TRANSLITERATION (
    I$VAL VARCHAR(250))
RETURNS (
    VAL VARCHAR(250))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE TYPES_ACTIVE_LIST (
    I$LANG_CODE VARCHAR(2) = 'RU')
RETURNS (
    TYPE_ID BIGINT,
    COLOR INTEGER,
    RES_ID BIGINT,
    FOR_REPL_UP SMALLINT,
    FOR_REPL_DOWN SMALLINT,
    TAG VARCHAR(100),
    TYPE_CAPTION VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE TYPES_LIST (
    I$LANG_CODE VARCHAR(2) = 'RU')
RETURNS (
    TYPE_ID BIGINT,
    COLOR INTEGER,
    RES_ID BIGINT,
    FOR_REPL_UP SMALLINT,
    FOR_REPL_DOWN SMALLINT,
    TAG VARCHAR(100),
    IS_DEL SMALLINT,
    IS_HIDDEN SMALLINT,
    TYPE_CAPTION VARCHAR(4000),
    CAPTION_SEPARATOR VARCHAR(10))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE TYPE_ADD (
    I$TYPE_ID BIGINT,
    I$RES_ID BIGINT,
    I$COLOR INTEGER,
    I$FOR_REPL_UP SMALLINT,
    I$FOR_REPL_DOWN SMALLINT,
    I$TAG VARCHAR(100),
    I$LANG_CODE CHAR(2),
    I$TYPE_CAPTION VARCHAR(4000),
    I$IS_DEL SMALLINT = 0,
    I$IS_HIDDEN SMALLINT = 0,
    I$CAPTION_SEPARATOR VARCHAR(10) = '')
RETURNS (
    TYPE_ID BIGINT,
    RES_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE TYPE_CAPTION_GET (
    I$TYPE_ID BIGINT,
    I$LANG_CODE VARCHAR(2) = 'RU')
RETURNS (
    TYPE_CAPTION VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE TYPE_MOVE (
    I$TYPE_ID BIGINT,
    I$MOVE SMALLINT)
RETURNS (
    SORT_ORDER SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE TYPE_PARENTS_LIST (
    I$TYPE_ID BIGINT,
    I$LANG_CODE VARCHAR(2) = 'RU')
RETURNS (
    TYPE_ID BIGINT,
    TYPE_CAPTION VARCHAR(4000),
    CHILD_ID BIGINT,
    IS_ADD SMALLINT,
    IS_INTERNAL_ADD SMALLINT,
    IS_COPY SMALLINT,
    IS_CUT SMALLINT,
    IS_LINK SMALLINT,
    DO_FUNC SMALLINT,
    IS_FROM_LIST SMALLINT,
    RUN_SQL VARCHAR(1000),
    IS_AUTO_CREATE SMALLINT,
    TAB_ID BIGINT,
    IS_DEL SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE TYPE_PARENT_ADD (
    I$TYPE_ID BIGINT,
    I$CHILD_ID BIGINT,
    I$IS_ADD SMALLINT,
    I$IS_INTERNAL_ADD SMALLINT,
    I$IS_COPY SMALLINT,
    I$IS_CUT SMALLINT,
    I$IS_LINK SMALLINT,
    I$DO_FUNC SMALLINT,
    I$IS_FROM_LIST SMALLINT,
    I$RUN_SQL VARCHAR(1000),
    I$IS_AUTO_CREATE SMALLINT,
    I$TAB_ID BIGINT,
    I$IS_DEL SMALLINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE UDOD_EMPLOYEE_LIST (
    I$SCHOOL_ID BIGINT = null)
RETURNS (
    EMPLOYEE_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UDOD_LOADING_UNION_LIST (
    I$STAGE_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    PARENT_ID BIGINT,
    OBJ_CAPTION VARCHAR(4000),
    SORT_ORDER DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UDOD_PERSON_LIST (
    I$SCHOOL_ID BIGINT = null)
RETURNS (
    PERSON_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UDOD_PUPIL_LIST (
    I$SCHOOL_ID BIGINT = null)
RETURNS (
    LINK_ID BIGINT,
    PUPIL_ID BIGINT,
    UNION_ID BIGINT,
    STAGE_ID BIGINT,
    LASTNAME VARCHAR(255),
    FIRSTNAME VARCHAR(255),
    MIDDLENAME VARCHAR(255),
    DOB DATE,
    ACCEPTEDDISTR VARCHAR(255),
    ACCEPTEDOOOD VARCHAR(255),
    ACCEPTEDTYPE VARCHAR(255))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UDOD_PUPIL_TWINS_REPORT (
    I$SCHOOL_ID BIGINT = null)
RETURNS (
    LINK_ID BIGINT,
    OBJ_ID BIGINT,
    UNION_ID BIGINT,
    STAGE_ID BIGINT,
    UNION_NAME VARCHAR(255),
    STAGE_NAME VARCHAR(255),
    LASTNAME VARCHAR(255),
    FIRSTNAME VARCHAR(255),
    MIDDLENAME VARCHAR(255),
    DOB DATE,
    ACCEPTEDDISTR VARCHAR(255),
    ACCEPTEDOOOD VARCHAR(255),
    ACCEPTEDTYPE VARCHAR(255))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UDOD_PUPIL_TWINS_UNITE (
    I$MAIN_PUPIL_ID BIGINT,
    I$ADD_PUPIL_ID BIGINT)
RETURNS (
    PUPIL_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UDOD_TEACHER_LIST (
    I$OBJ_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    PARENT_ID BIGINT,
    OBJ_CAPTION VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UDOD_TRANSFER_STAGE_LIST (
    I$PUPIL_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    COLOR INTEGER,
    OBJ_CAPTION VARCHAR(4000),
    SORT_ORDER DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UDOD_YEAR_CHANGER_PUPIL_LIST (
    I$UNION_ID BIGINT)
RETURNS (
    PUPIL_ID BIGINT,
    FIO VARCHAR(1000),
    STAGE_ID BIGINT,
    STAGE_CAPTION VARCHAR(255),
    DISABLED SMALLINT,
    MOVE_DATE DATE)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UDOD_YEAR_CHANGER_PUPIL_MOVE (
    I$PUPIL_ID BIGINT,
    I$STAGE_ID BIGINT,
    I$UNION_ID BIGINT,
    I$MOVEMENT_DATE DATE,
    I$ORDER_NUMBER VARCHAR(255),
    I$ORDER_DATE DATE,
    I$OPERATION SMALLINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE UNDO_GPD_MOVEMENT (
    I$GUP_ID BIGINT,
    I$PUPIL_ID BIGINT)
RETURNS (
    X SMALLINT,
    OBJ_ID BIGINT,
    OBJ_CAPTION VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UNI_STRING_COMPARE (
    S1 VARCHAR(4000),
    S2 VARCHAR(4000))
RETURNS (
    RESULT SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UPDATE_4LINKS (
    I$OBJ_ID BIGINT)
RETURNS (
    LINK_ID BIGINT,
    PARENT_ID BIGINT,
    OBJ_ID BIGINT,
    REASON_ID BIGINT,
    LISTVAL_ID BIGINT,
    USER_ID BIGINT,
    DATE_INS TIMESTAMP,
    DATE_DEL TIMESTAMP,
    COST FLOAT,
    IS_REPL SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UPDATE_4LISTVALS (
    I$OBJ_ID BIGINT)
RETURNS (
    LISTVAL_ID BIGINT,
    LIST_ID BIGINT,
    PARENT_ID BIGINT,
    RES_ID BIGINT,
    TAG VARCHAR(100),
    SORT_ORDER SMALLINT,
    COST FLOAT,
    IS_REPL SMALLINT,
    IS_DEL SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UPDATE_4OBJECTS (
    I$OBJ_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    TYPE_ID BIGINT,
    IS_REPL SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UPDATE_4RES (
    I$OBJ_ID BIGINT)
RETURNS (
    RES_ID BIGINT,
    LANG_CODE CHAR(2),
    VAL VARCHAR(4000),
    VAL_LONG VARCHAR(4000),
    IS_REPL SMALLINT,
    IS_DEL SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UPDATE_4VALA (
    I$OBJ_ID BIGINT)
RETURNS (
    PARAM_ID BIGINT,
    OBJ_ID BIGINT,
    USER_ID BIGINT,
    IS_REPL SMALLINT,
    IS_DEL SMALLINT,
    REGION VARCHAR(255),
    DISTRICT VARCHAR(255),
    TOWN VARCHAR(255),
    SETTLEMENT VARCHAR(255),
    STREET VARCHAR(255),
    HOUSE VARCHAR(10),
    LITER VARCHAR(10),
    CORP VARCHAR(10),
    FLAT VARCHAR(10),
    POST_INDEX VARCHAR(20),
    OCATD VARCHAR(11),
    FIAS_UID VARCHAR(36),
    STREET_UID VARCHAR(36))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UPDATE_4VALB (
    I$OBJ_ID BIGINT)
RETURNS (
    PARAM_ID BIGINT,
    OBJ_ID BIGINT,
    USER_ID BIGINT,
    IS_REPL SMALLINT,
    IS_DEL SMALLINT,
    VAL VARCHAR(4000),
    BLOB_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UPDATE_4VALD (
    I$OBJ_ID BIGINT)
RETURNS (
    PARAM_ID BIGINT,
    OBJ_ID BIGINT,
    USER_ID BIGINT,
    IS_REPL SMALLINT,
    IS_DEL SMALLINT,
    VAL DATE)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UPDATE_4VALDT (
    I$OBJ_ID BIGINT)
RETURNS (
    PARAM_ID BIGINT,
    OBJ_ID BIGINT,
    USER_ID BIGINT,
    IS_REPL SMALLINT,
    IS_DEL SMALLINT,
    VAL TIMESTAMP)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UPDATE_4VALF (
    I$OBJ_ID BIGINT)
RETURNS (
    PARAM_ID BIGINT,
    OBJ_ID BIGINT,
    USER_ID BIGINT,
    IS_REPL SMALLINT,
    IS_DEL SMALLINT,
    VAL DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UPDATE_4VALI (
    I$OBJ_ID BIGINT)
RETURNS (
    PARAM_ID BIGINT,
    OBJ_ID BIGINT,
    USER_ID BIGINT,
    IS_REPL SMALLINT,
    IS_DEL SMALLINT,
    VAL INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UPDATE_4VALL (
    I$OBJ_ID BIGINT)
RETURNS (
    PARAM_ID BIGINT,
    OBJ_ID BIGINT,
    USER_ID BIGINT,
    IS_REPL SMALLINT,
    IS_DEL SMALLINT,
    LISTVAL_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UPDATE_4VALR (
    I$OBJ_ID BIGINT)
RETURNS (
    PARAM_ID BIGINT,
    OBJ_ID BIGINT,
    USER_ID BIGINT,
    IS_REPL SMALLINT,
    IS_DEL SMALLINT,
    VAL BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UPDATE_4VALS (
    I$OBJ_ID BIGINT)
RETURNS (
    PARAM_ID BIGINT,
    OBJ_ID BIGINT,
    USER_ID BIGINT,
    IS_REPL SMALLINT,
    IS_DEL SMALLINT,
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UPDATE_4VALT (
    I$OBJ_ID BIGINT)
RETURNS (
    PARAM_ID BIGINT,
    OBJ_ID BIGINT,
    USER_ID BIGINT,
    IS_REPL SMALLINT,
    IS_DEL SMALLINT,
    VAL TIME)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UPDATE_CHECK_PLAN (
    I$OBJ_ID BIGINT,
    I$NEW SMALLINT,
    I$USER_ID VARCHAR(40) = NULL)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE UPDATE_DOCUMENT_STATUS (
    I$OBJ_ID BIGINT,
    I$VAL BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE UPDATE_LESSON_TIME (
    I$OBJ_ID BIGINT,
    I$TIME TIME)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE UPDATE_MOVEMENTS_CNAME (
    I$OBJ_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE UPDATE_PROFESSION_CODE (
    I$OBJ_ID BIGINT,
    I$LISTVAL_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE UPDATE_PUPIL_MK_SUBJECTS (
    I$PLAN_ID BIGINT,
    I$USER_ID VARCHAR(40))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE UPDATE_PUPIL_SEL_SUBJECTS (
    I$PLAN_ID BIGINT,
    I$PUPIL_ID BIGINT NOT NULL,
    I$SEL_SUBJECTS VARCHAR(1000) NOT NULL,
    I$SEL_GROUPS VARCHAR(1000) NOT NULL,
    I$ACTION_DATE DATE,
    I$USER_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE UPDATE_SPECIALITY_CODE (
    I$OBJ_ID BIGINT,
    I$PARAM_ID BIGINT,
    I$CODE_PARAM_ID BIGINT,
    I$VAL BIGINT,
    I$USER_ID BIGINT,
    I$IS_DEL SMALLINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE USA_LIST_LEVELS (
    I$MASK BIGINT)
RETURNS (
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE USERADM_ACCOUNT_EXTEND
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE USERADM_ACTIVITES_LIST (
    I$LANG_CODE CHAR(2) = 'RU')
RETURNS (
    DATE_START TIMESTAMP,
    FIO VARCHAR(100),
    PC_NAME VARCHAR(100),
    LEVEL_CAPTION VARCHAR(1000),
    TASK_CAPTION VARCHAR(1000),
    MODULE_CAPTION VARCHAR(1000),
    USER_NAME VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE USERADM_ADD (
    I$USER_ID BIGINT,
    I$USER_TYPE SMALLINT,
    I$USER_NAME VARCHAR(100),
    I$PWD VARCHAR(100),
    I$OBJ_ID BIGINT,
    I$IS_BLOCKED SMALLINT,
    I$MUST_CHANGE SMALLINT,
    I$EXP_DATE DATE = null,
    I$LANG_CODE CHAR(2) = 'RU',
    I$IS_BLOCKED_PWD SMALLINT = null)
RETURNS (
    USER_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE USERADM_ADD_USER (
    I$USER_ID BIGINT,
    I$USER_TYPE SMALLINT,
    I$USER_NAME VARCHAR(100),
    I$PWD VARCHAR(100),
    I$IS_BLOCKED SMALLINT,
    I$MUST_CHANGE SMALLINT,
    I$DATE_DEL TIMESTAMP,
    I$FIRST_NAME VARCHAR(100),
    I$MIDDLE_NAME VARCHAR(100),
    I$LAST_NAME VARCHAR(100),
    I$EXP_DATE DATE = null,
    I$LANG_CODE CHAR(2) = 'RU',
    I$SNILS VARCHAR(40) = null)
RETURNS (
    USER_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE USERADM_APP_ADD (
    I$LEVEL_ID BIGINT,
    I$USER_ID BIGINT,
    I$ROOT_OBJ_ID BIGINT,
    I$READ_ONLY SMALLINT = 0)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE USERADM_APP_CLEAR (
    I$USER_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE USERADM_APP_GET (
    I$USER_ID BIGINT)
RETURNS (
    LEVEL_ID BIGINT,
    IS_CHECKED SMALLINT,
    LEVEL_NAME VARCHAR(4000),
    READ_ONLY SMALLINT,
    MODULE_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE USERADM_CHECK (
    I$USER_ID BIGINT,
    I$USER_NAME VARCHAR(100))
RETURNS (
    IS_LOGIN_EXISTS INTEGER,
    OWNER_CAPTION VARCHAR(500))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE USERADM_CJ_ACCESS_CLEAR (
    I$USER_ID BIGINT,
    I$CLASS_ID BIGINT,
    I$LEVEL_ID BIGINT = 0)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE USERADM_CJ_ACCESS_GET (
    I$USER_ID BIGINT)
RETURNS (
    CLASS_CAPTION VARCHAR(4000),
    SUBJECT_CAPTION VARCHAR(4000),
    SORT_ORDER1 DOUBLE PRECISION,
    SORT_ORDER2 DOUBLE PRECISION,
    CLASS_ID BIGINT,
    SUBJECT_ID BIGINT,
    LEVEL_ID BIGINT,
    SUBJECT_TYPE SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE USERADM_CJ_ACCESS_SET (
    I$USER_ID BIGINT,
    I$CLASS_ID BIGINT,
    I$SUBJECT_ID BIGINT,
    DODELETE SMALLINT = 0,
    I$LEVEL_ID BIGINT = null)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE USERADM_CJ_DEFAULT_ACCESS (
    I$USER_ID BIGINT)
RETURNS (
    CAPTION VARCHAR(4000),
    SORT_ORDER1 DOUBLE PRECISION,
    SORT_ORDER2 DOUBLE PRECISION,
    SUBJECT_TYPE SMALLINT,
    GROUP_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE USERADM_CLASSES_LIST (
    FOR_USERS SMALLINT = 1)
RETURNS (
    OBJ_ID BIGINT,
    OBJ_CAPTION VARCHAR(4000),
    SORT_ORDER DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE USERADM_CLASS_SUBJECTS_LIST (
    I$USER_ID BIGINT,
    I$CLASS_ID BIGINT,
    I$TYPE_VD SMALLINT = 0)
RETURNS (
    SUBJECT_ID BIGINT,
    SUBJECT_CAPTION VARCHAR(4000),
    IS_CHECKED SMALLINT,
    SORT_ORDER DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE USERADM_DEL (
    I$USER_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE USERADM_GET (
    I$OBJ_ID BIGINT)
RETURNS (
    USER_ID BIGINT,
    USER_TYPE SMALLINT,
    USER_NAME VARCHAR(100),
    PWD VARCHAR(100),
    IS_BLOCKED SMALLINT,
    MUST_CHANGE SMALLINT,
    EXP_DATE DATE,
    CLASS_ID BIGINT,
    USER_TYPE_NAME VARCHAR(4000),
    CLASS_NAME VARCHAR(4000),
    IS_BLOCKED_PWD SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE USERADM_GRADE_DISCIPLINES_LIST (
    I$USER_ID BIGINT,
    I$LEVEL_ID BIGINT,
    I$GRADE_ID BIGINT)
RETURNS (
    DISCIPLINE_ID BIGINT,
    DISCIPLINE_CAPTION VARCHAR(4000),
    IS_CHECKED SMALLINT,
    SORT_ORDER DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE USERADM_GUPS_LIST (
    TYPE_VD SMALLINT)
RETURNS (
    OBJ_ID BIGINT,
    OBJ_CAPTION VARCHAR(4000),
    SORT_ORDER DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE USERADM_JGPD_LIST (
    I$USER_ID BIGINT,
    I$LEVEL_ID INTEGER = 189)
RETURNS (
    GPD_ID BIGINT,
    GPD_CAPTION VARCHAR(500),
    IS_CHECKED SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE USERADM_LOG_LIST (
    I$DATA_START TIMESTAMP,
    I$DATE_END TIMESTAMP,
    I$LANG_CODE CHAR(2))
RETURNS (
    DATE_START TIMESTAMP,
    DATE_EXIT TIMESTAMP,
    PC_NAME VARCHAR(100),
    LEVEL_CAPTION VARCHAR(1000),
    TASK_CAPTION VARCHAR(1000),
    MODULE_CAPTION VARCHAR(1000),
    FIO VARCHAR(100),
    USER_NAME VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE USERADM_PUPILS_LIST (
    I$CLASS_ID BIGINT)
RETURNS (
    PUPIL_ID BIGINT,
    USER_ID BIGINT,
    USER_NAME VARCHAR(100),
    FIO VARCHAR(500),
    USER_TYPE SMALLINT,
    PWD VARCHAR(100),
    DATE_DEL TIMESTAMP,
    MUST_CHANGE SMALLINT,
    FIRST_NAME VARCHAR(100),
    MIDDLE_NAME VARCHAR(100),
    LAST_NAME VARCHAR(100),
    DESCRIPTION VARCHAR(100),
    LANG_CODE CHAR(2),
    IS_BLOCKED SMALLINT,
    EXP_DATE DATE,
    IS_DEL SMALLINT,
    USER_TYPE_NAME VARCHAR(100),
    DOB DATE,
    SDO_ID VARCHAR(100),
    CLASS_NAME VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE USERADM_ROLE_LIST (
    I$ROLEUSER_ID BIGINT,
    I$LANG_CODE CHAR(2))
RETURNS (
    FIO VARCHAR(100),
    USER_NAME VARCHAR(50),
    IS_BLOCKED VARCHAR(12))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE USERADM_TEACHERS_LIST RETURNS (
    PUPIL_ID BIGINT,
    USER_ID BIGINT,
    USER_NAME VARCHAR(100),
    USER_TYPE SMALLINT,
    PWD VARCHAR(100),
    FIRST_NAME VARCHAR(100),
    MIDDLE_NAME VARCHAR(100),
    LAST_NAME VARCHAR(100),
    IS_BLOCKED SMALLINT,
    DOB DATE,
    TESTING_ONLY SMALLINT,
    SDO_ID VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE USERADM_USERS_LIST RETURNS (
    USER_ID BIGINT,
    USER_NAME VARCHAR(100),
    FIO VARCHAR(500),
    USER_TYPE SMALLINT,
    PWD VARCHAR(100),
    DATE_DEL TIMESTAMP,
    MUST_CHANGE SMALLINT,
    FIRST_NAME VARCHAR(100),
    MIDDLE_NAME VARCHAR(100),
    LAST_NAME VARCHAR(100),
    DESCRIPTION VARCHAR(100),
    LANG_CODE CHAR(2),
    IS_BLOCKED SMALLINT,
    EXP_DATE DATE,
    IS_DEL SMALLINT,
    CLASS_ID BIGINT,
    USER_TYPE_NAME VARCHAR(100),
    CLASS_NAME VARCHAR(100),
    SNILS VARCHAR(40))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE USERADM_USERS_LIST2 (
    I$USER_ID VARCHAR(40))
RETURNS (
    USER_ID BIGINT,
    USER_NAME VARCHAR(100),
    FIO VARCHAR(500),
    USER_TYPE SMALLINT,
    MUST_CHANGE SMALLINT,
    DESCRIPTION VARCHAR(100),
    LANG_CODE CHAR(2),
    IS_BLOCKED SMALLINT,
    EXP_DATE DATE,
    IS_DEL SMALLINT,
    CLASS_ID BIGINT,
    USER_TYPE_NAME VARCHAR(100),
    CLASS_NAME VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE USERADM_USERTYPES_LIST RETURNS (
    OBJ_ID BIGINT,
    OBJ_CAPTION VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE USERS_LIST (
    I$USER_TYPE SMALLINT)
RETURNS (
    USER_ID BIGINT,
    USER_TYPE SMALLINT,
    USER_NAME VARCHAR(100),
    DATE_DEL TIMESTAMP,
    PWD VARCHAR(100),
    FIRST_NAME VARCHAR(100),
    MIDDLE_NAME VARCHAR(100),
    LAST_NAME VARCHAR(100),
    DESCRIPTION VARCHAR(100),
    LANG_CODE CHAR(2),
    OBJ_ID BIGINT,
    OBJECT_CAPTION VARCHAR(4000),
    IS_BLOCKED SMALLINT,
    MUST_CHANGE SMALLINT,
    EXP_DATE DATE,
    IS_DEL SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE USERS_SEC_UPDATE RETURNS (
    USER_EMAIL VARCHAR(200),
    USER_NAME VARCHAR(200),
    USER_TITLE VARCHAR(1000),
    STATE_ID SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE USERTYPES_LIST (
    I$LANG_CODE CHAR(2) = 'RU')
RETURNS (
    USER_TYPE SMALLINT,
    TAG VARCHAR(100),
    TYPE_ID BIGINT,
    USERTYPE_NAME VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE USER_ADD (
    I$USER_ID BIGINT,
    I$USER_TYPE SMALLINT,
    I$USER_NAME VARCHAR(100),
    I$PWD VARCHAR(100),
    I$FIRST_NAME VARCHAR(100),
    I$MIDDLE_NAME VARCHAR(100),
    I$LAST_NAME VARCHAR(100),
    I$DESCRIPTION VARCHAR(100),
    I$LANG_CODE CHAR(2),
    I$OBJ_ID BIGINT,
    I$IS_BLOCKED SMALLINT,
    I$MUST_CHANGE SMALLINT,
    I$EXP_DATE DATE = NULL,
    I$IS_DEL SMALLINT = 0)
RETURNS (
    USER_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE USER_CHANGE_PASS (
    I$USER_ID BIGINT,
    I$OLDPASSWORD VARCHAR(200),
    I$NEWPASSWORD VARCHAR(200),
    I$FROM VARCHAR(1000) = NULL,
    I$OLDPASSWORD2 VARCHAR(200) = NULL)
RETURNS (
    STATUS SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE USER_CHANGE_PWD (
    I$USER_ID BIGINT,
    I$PWD VARCHAR(200))
RETURNS (
    IS_CHANGED SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE USER_CLASS_GEN (
    I$OBJ_ID BIGINT,
    I$GRADE_ID BIGINT,
    I$METHOD SMALLINT,
    I$ROLE INTEGER,
    I$ACTION SMALLINT,
    I$PASSWORD VARCHAR(40),
    I$USER_ID VARCHAR(40))
RETURNS (
    USER_ID BIGINT,
    USER_EMAIL VARCHAR(100),
    USER_NAME VARCHAR(100),
    CLASS_NAME VARCHAR(100),
    USER_FIO VARCHAR(400),
    MODIFIED SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE USER_COPY (
    I$USER_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE USER_GRANT_SET (
    I$USER_ID BIGINT,
    I$LEVEL_ID BIGINT,
    I$ACCESS SMALLINT,
    I$OBJ_ID BIGINT,
    I$AUTHOR_ID VARCHAR(40) = NULL)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE USER_ID_GET (
    I$USER_NAME VARCHAR(100),
    I$PWD VARCHAR(200),
    I$PWD2 VARCHAR(200) = NULL)
RETURNS (
    USER_ID BIGINT,
    USER_FIO VARCHAR(4000),
    LANG_CODE CHAR(2),
    IS_BLOCKED SMALLINT,
    IS_EXPIRE SMALLINT,
    MUST_CHANGE SMALLINT,
    USER_TYPE SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE USER_ITEM_DEL (
    I$USER_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$USER_ID1 VARCHAR(40))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE USER_ITEM_GET (
    I$OBJ_ID BIGINT,
    I$IS_EXT SMALLINT,
    I$APPNAME VARCHAR(100),
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE USER_ITEM_SET (
    I$USER_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$USER_NAME VARCHAR(100),
    I$USER_TYPE SMALLINT,
    I$PWD VARCHAR(200),
    I$FIRST_NAME VARCHAR(100),
    I$MIDDLE_NAME VARCHAR(100),
    I$LAST_NAME VARCHAR(100),
    I$IS_DEL SMALLINT,
    I$IS_BLOCKED SMALLINT,
    I$IS_BLOCKED_PWD SMALLINT,
    I$MUST_CHANGE SMALLINT,
    I$EXP_DATE DATE,
    I$DESCRIPTION VARCHAR(100),
    I$LANG_CODE VARCHAR(3),
    I$SNILS VARCHAR(40),
    M$USER_ID VARCHAR(40),
    I$SECTION_ID VARCHAR(100))
RETURNS (
    USER_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE USER_LEVEL_GET (
    I$USER_ID BIGINT)
RETURNS (
    LEVEL_ID BIGINT,
    LEVEL_NAME VARCHAR(400))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE USER_SETTINGS_GET (
    USER_ID BIGINT,
    MODULE_ID BIGINT)
RETURNS (
    SETTINGS VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE USER_SETTINGS_SET (
    I$USER_ID BIGINT,
    I$MODULE_ID BIGINT,
    I$SETTINGS VARCHAR(4000))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE USER_STAT_GET (
    I$ROLE SMALLINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE USER_TASKS_LIST (
    I$USER_ID BIGINT,
    I$MODULE_ID BIGINT = NULL)
RETURNS (
    MODULE_ID BIGINT,
    MODULE_CAPTION VARCHAR(4000),
    TASK_ID BIGINT,
    TASK_CAPTION VARCHAR(4000),
    LEVEL_ID BIGINT,
    LEVEL_CAPTION VARCHAR(4000),
    MODULE_CODE VARCHAR(100),
    ROOT_OBJ_ID BIGINT,
    ROOT_PARENT_ID BIGINT,
    ICON_ID BIGINT,
    READ_ONLY SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE USER_TRANSFER_EXPORT RETURNS (
    USER_ID BIGINT,
    USER_TYPE SMALLINT,
    USER_NAME VARCHAR(100),
    DATE_DEL TIMESTAMP,
    PWD VARCHAR(100),
    FIRST_NAME VARCHAR(100),
    MIDDLE_NAME VARCHAR(100),
    LAST_NAME VARCHAR(100),
    DESCRIPTION VARCHAR(100),
    LANG_CODE VARCHAR(2),
    OBJ_ID BIGINT,
    IS_BLOCKED SMALLINT,
    MUST_CHANGE SMALLINT,
    EXP_DATE DATE,
    IS_BLOCKED_PWD SMALLINT,
    ADDED_BY BIGINT,
    DATE_MODIFY TIMESTAMP,
    SNILS VARCHAR(40),
    REG_ID VARCHAR(60),
    ACCESS_LEVEL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE USER_TRANSFER_IMPORT (
    I$USER_ID BIGINT,
    I$USER_TYPE SMALLINT,
    I$USER_NAME VARCHAR(100),
    I$DATE_DEL TIMESTAMP,
    I$PWD VARCHAR(100),
    I$FIRST_NAME VARCHAR(100),
    I$MIDDLE_NAME VARCHAR(100),
    I$LAST_NAME VARCHAR(100),
    I$DESCRIPTION VARCHAR(100),
    I$LANG_CODE VARCHAR(2),
    I$OBJ_ID BIGINT,
    I$IS_BLOCKED SMALLINT,
    I$MUST_CHANGE SMALLINT,
    I$EXP_DATE DATE,
    I$IS_BLOCKED_PWD SMALLINT,
    I$ADDED_BY BIGINT,
    I$DATE_MODIFY TIMESTAMP,
    I$SNILS VARCHAR(40),
    I$REG_ID VARCHAR(60),
    I$ACCESS_LEVEL VARCHAR(4000))
RETURNS (
    USER_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_ANSWER_SUBMIT (
    I$SQ_ID BIGINT,
    I$USER_ID BIGINT,
    I$ANSWER_DATA VARCHAR(4000),
    I$METADATA_ID VARCHAR(40),
    I$NETWORK_DATA VARCHAR(100),
    I$TIME INTEGER)
RETURNS (
    STATE_ID INTEGER,
    SESSION_STATE_ID INTEGER,
    QUESTION_NUM INTEGER,
    SESSION_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_BLANK_ACQUIRE (
    I$EXAM_ID BIGINT,
    I$STATION_ID VARCHAR(40),
    I$USER_ID VARCHAR(40))
RETURNS (
    EXAM_ID BIGINT,
    PACKET_ID BIGINT,
    PAGE_ID BIGINT,
    FILE_ID VARCHAR(40),
    TEMPLATE_ID INTEGER,
    SIDE SMALLINT,
    BARCODE1 VARCHAR(128),
    CHARSETS VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_CHECKSUM_EAN128 (
    I$S VARCHAR(128) NOT NULL)
RETURNS (
    VAL VARCHAR(1))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_CHECKSUM_EAN13 (
    I$S VARCHAR(128) NOT NULL)
RETURNS (
    VAL VARCHAR(1))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_CHECKSUM_EAN39 (
    I$S VARCHAR(128) NOT NULL)
RETURNS (
    VAL VARCHAR(1))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_CLASS_GET RETURNS (
    FORMSTEP INTEGER,
    FORMNUM INTEGER,
    FORMINDEX VARCHAR(5),
    KEYFIELD VARCHAR(25))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_CODING_TREE_GET (
    I$OBJ_ID BIGINT,
    I$SHOW_QUESTIONS SMALLINT = 1)
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_DISTRICT_LIST RETURNS (
    DISTRICT_ID BIGINT,
    DISTRICT_CAPTION VARCHAR(4000),
    SORT_ORDER DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_EMPLOYEE_DESC (
    I$OBJ_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    NAME_LAST VARCHAR(200),
    NAME_FIRST VARCHAR(200),
    NAME_MID VARCHAR(200),
    NAME_FULL VARCHAR(400),
    BIRTH_DATE DATE,
    JOB_TITLE VARCHAR(400),
    OU_ID BIGINT,
    OU_NAME VARCHAR(200),
    AREA_ID BIGINT,
    AREA_NAME VARCHAR(200),
    JOB_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_EPLAN_GET (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_EPLAN_GETCODES (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_EPLAN_OU_GET (
    I$EXAM_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_EPLAN_OWNER_LIST (
    I$TYPE INTEGER,
    I$LEVEL INTEGER,
    I$PARENT_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_EPLAN_SETCODE (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40),
    I$CODE VARCHAR(40))
RETURNS (
    STUB INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_EXAMS_LIST_REG (
    I$LIC_ID INTEGER,
    I$EXAM_ID BIGINT)
RETURNS (
    EXAM_ID BIGINT,
    DATE_ADD TIMESTAMP,
    DATE_MODIFY TIMESTAMP,
    DATE_DEL TIMESTAMP)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_EXAM_BLANK_SET (
    I$EXAM_ID BIGINT,
    I$PACKET_ID BIGINT,
    I$FILE_ID VARCHAR(40),
    I$HASH VARCHAR(40),
    I$BLANK_TYPE BIGINT,
    I$BLANK_SIDE SMALLINT,
    I$BARCODE1 VARCHAR(128),
    I$BARCODE2 VARCHAR(128),
    I$USER_ID VARCHAR(40))
RETURNS (
    OBJ_ID BIGINT,
    STATE_ID INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_EXAM_DATES_SET (
    I$OBJ_ID BIGINT,
    I$NAME VARCHAR(400),
    I$EXAM_STATE INTEGER,
    I$SUBJECT_ID BIGINT,
    I$STAGE_ID INTEGER,
    I$EXAM_DATE_START DATE,
    I$EXAM_DATE_END DATE,
    I$DURATION INTEGER,
    I$EXAM_DAY_TYPE INTEGER,
    I$C_CALC_MODE INTEGER,
    I$C_EXPERT_NUM INTEGER,
    I$C_DIFF_QUESTION INTEGER,
    I$C_DIFF_TOTAL INTEGER,
    I$METHOD_ID INTEGER,
    I$PLAN_METHOD_ID INTEGER,
    I$ATTEMPTS INTEGER,
    I$OWNER_ID BIGINT,
    I$H_LEVEL INTEGER,
    I$ORG_REF BIGINT,
    I$FLOW_MODE SMALLINT,
    I$PAUSE_ENABLED SMALLINT,
    I$EXPERT_ASSN_MODE SMALLINT,
    I$BLANK_AB_ID BIGINT,
    I$BLANK_C_ID BIGINT,
    I$BLANK_EXT_ID BIGINT,
    I$BLANK_GEN_ID BIGINT,
    I$SCALE_N0 SMALLINT,
    I$SCALE_NMIN SMALLINT,
    I$SCALE_N4 SMALLINT,
    I$SCALE_N5 SMALLINT,
    I$SCALE_NMAX SMALLINT,
    I$PPE_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_EXAM_DATES_STATE_SET (
    I$OBJ_ID BIGINT,
    I$EXAM_STATE INTEGER)
RETURNS (
    STUB INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_EXAM_DATE_DELETE (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE UT_EXAM_DATE_READY (
    I$ED_ID BIGINT)
RETURNS (
    READY_STATE SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_EXAM_DATE_RESULTS (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40) = null)
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_EXAM_DROP (
    I$EXAM_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE UT_EXAM_EXPERT_ASSN_SET (
    I$EXAM_ID BIGINT,
    I$EXPERT_ID BIGINT,
    I$ROLE_ID INTEGER,
    I$SECOND_CHECK INTEGER,
    I$USER_ID VARCHAR(40),
    I$OP SMALLINT)
RETURNS (
    OBJ_ID BIGINT,
    EXAM_ID BIGINT,
    EXAM_NAME VARCHAR(200),
    EXAM_DATE DATE,
    STATE INTEGER,
    ROLE_ID INTEGER,
    ROLE_NAME VARCHAR(200),
    SECOND_CHECK SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_EXAM_EXPORT_DESC RETURNS (
    USER_LEVEL INTEGER,
    LEVEL_ID BIGINT,
    LEVEL_NAME VARCHAR(400))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_EXAM_FILE_ACCESS (
    I$EXAM_ID BIGINT,
    I$PACKET_ID BIGINT,
    I$FILE_ID VARCHAR(40),
    I$USER_ID VARCHAR(40),
    I$MODE SMALLINT = 0)
RETURNS (
    OBJ_ID BIGINT,
    TEMPLATE_ID BIGINT,
    BLANK_TYPE SMALLINT,
    SIDE SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_EXAM_FILE_FINISH (
    I$OBJ_ID BIGINT)
RETURNS (
    STUB INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_EXAM_FILE_RESULT_SET (
    I$OBJ_ID BIGINT,
    I$PARAM_ID VARCHAR(40),
    I$VALUE VARCHAR(100))
RETURNS (
    STUB INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_EXAM_FILE_SETBC (
    I$EXAM_ID BIGINT,
    I$PACKET_ID BIGINT,
    I$FILE_ID VARCHAR(40),
    I$USER_ID VARCHAR(40),
    I$BC1 VARCHAR(128),
    I$BC2 VARCHAR(128),
    I$BC3 VARCHAR(128))
RETURNS (
    STUB INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_EXAM_FORSCAN_LIST (
    I$USER_ID VARCHAR(40))
RETURNS (
    EXAM_ID BIGINT,
    EXAM_NAME VARCHAR(200),
    SUBJECT_ID BIGINT,
    SUBJECT_NAME VARCHAR(200),
    EXAM_STATE INTEGER,
    EXAM_STATE_NAME VARCHAR(200),
    EXAM_DATE DATE)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_EXAM_FORVERIFY_LIST (
    I$USER_ID VARCHAR(40))
RETURNS (
    EXAM_ID BIGINT,
    EXAM_NAME VARCHAR(200),
    SUBJECT_ID BIGINT,
    SUBJECT_NAME VARCHAR(200),
    EXAM_STATE INTEGER,
    EXAM_STATE_NAME VARCHAR(200),
    EXAM_DATE DATE,
    N_BLANKS INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_EXAM_KEYS_APPLY (
    I$EXAM_ID BIGINT,
    I$QUESTION_ID BIGINT,
    I$TEXT VARCHAR(100),
    I$STATE SMALLINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    STUB INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_EXAM_MON_LIST (
    I$USER_ID VARCHAR(40))
RETURNS (
    EXAM_ID BIGINT,
    EXAM_NAME VARCHAR(200),
    EXAM_DATE DATE,
    SUBJECT_ID BIGINT,
    SUBJECT_NAME VARCHAR(200),
    EXAM_STATE INTEGER,
    EXAM_STATE_NAME VARCHAR(200),
    METHOD_ID INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_EXAM_OLYMPIC_DEL (
    I$OBJ_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_EXAM_OLYMPIC_LIST (
    I$VERSION VARCHAR(100) = null)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_EXAM_OLYMPIC_RES (
    I$REG_ID VARCHAR(100),
    I$OD_ID VARCHAR(100),
    I$OD_NAME VARCHAR(400),
    I$SUBJECT_ID BIGINT,
    I$PLAN_ID VARCHAR(100),
    I$DATE_FROM DATE,
    I$DATE_TO DATE,
    I$PERIOD_ID VARCHAR(100),
    I$LEVEL SMALLINT,
    I$STAGE_ID VARCHAR(100),
    I$RESULT_ID BIGINT,
    I$RESULT_VAL VARCHAR(100),
    I$RESULT_RATE VARCHAR(100))
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_EXAM_OLYMPIC_SET (
    I$YEAR_ID BIGINT,
    I$OD_ID VARCHAR(40),
    I$OD_NAME VARCHAR(1000),
    I$SUBJECT_ID BIGINT,
    I$PLAN_ID VARCHAR(40),
    I$DATE_FROM DATE,
    I$DATE_TO DATE,
    I$PERIOD_ID VARCHAR(40),
    I$LEVEL SMALLINT,
    I$GRADE_MASK INTEGER)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_EXAM_OU_ASSN_SET (
    I$EXAM_ID BIGINT,
    I$OU_ID BIGINT,
    I$USER_ID VARCHAR(40),
    I$OP SMALLINT)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_EXAM_PACKET_DEL (
    I$EXAM_ID BIGINT,
    I$PACKET_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    OBJ_ID BIGINT,
    FILE_ID VARCHAR(40))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_EXAM_PACKET_FILE_DEL (
    I$EXAM_ID BIGINT,
    I$PACKET_ID BIGINT,
    I$FILE_ID VARCHAR(40),
    I$USER_ID VARCHAR(40))
RETURNS (
    DELETED SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_EXAM_PACKET_SET (
    I$EXAM_ID BIGINT,
    I$PACKET_ID BIGINT,
    I$PPE_CODE VARCHAR(40),
    I$ROOM_CODE VARCHAR(40),
    I$N_PAGES INTEGER,
    I$USER_ID VARCHAR(40),
    I$IP_INFO VARCHAR(200))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_EXAM_PACKET_START (
    I$EXAM_ID BIGINT,
    I$PACKET_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    FILE_ID VARCHAR(40),
    BARCODE_ID VARCHAR(40),
    BARCODE3_ID VARCHAR(40),
    FILE_HASH VARCHAR(40))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_EXAM_PACKET_STATUS (
    I$PACKET_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_EXAM_PERSON_ASSN_SET (
    I$EXAM_ID BIGINT,
    I$PERSON_ID BIGINT,
    I$USER_ID VARCHAR(40),
    I$OP SMALLINT)
RETURNS (
    OBJ_ID BIGINT,
    EXAM_ID BIGINT,
    EXAM_NAME VARCHAR(200),
    EXAM_DATE DATE)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_EXAM_PPE_ASSN_SET (
    I$EXAM_ID BIGINT,
    I$PPE_ID BIGINT,
    I$USER_ID VARCHAR(40),
    I$OP SMALLINT)
RETURNS (
    OBJ_ID BIGINT,
    EXAM_ID BIGINT,
    EXAM_NAME VARCHAR(200),
    EXAM_DATE DATE)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_EXAM_PRINT_GET (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_EXAM_PRINT_LIST (
    I$USER_ID VARCHAR(40))
RETURNS (
    EXAM_ID BIGINT,
    EXAM_NAME VARCHAR(200),
    EXAM_DATE DATE,
    SUBJECT_ID BIGINT,
    SUBJECT_NAME VARCHAR(200),
    EXAM_STATE INTEGER,
    EXAM_STATE_NAME VARCHAR(200),
    METHOD_ID INTEGER,
    BLANKS_PRINTED INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_EXAM_QUESTION_SET (
    I$EXAM_ID BIGINT NOT NULL,
    I$OBJ_ID BIGINT,
    I$QUESTION_ID BIGINT,
    I$VARIANT_INDEX INTEGER NOT NULL,
    I$SORT_INDEX INTEGER NOT NULL,
    I$USER_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_EXAM_RECALC (
    I$EXAM_ID BIGINT,
    I$SCALE_N0 INTEGER,
    I$SCALE_NMIN INTEGER,
    I$SCALE_N4 INTEGER,
    I$SCALE_N5 INTEGER,
    I$SCALE_NMAX INTEGER,
    I$USER_ID VARCHAR(40))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE UT_EXAM_REPORT_EXPERTS (
    I$EXAM_ID BIGINT,
    I$USER_ID VARCHAR(40),
    I$ORDER VARCHAR(40) = null)
RETURNS (
    VAL VARCHAR(8000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_EXAM_REPORT_MEMBERS (
    I$EXAM_ID BIGINT,
    I$USER_ID VARCHAR(40),
    I$ORDER VARCHAR(40) = null)
RETURNS (
    VAL VARCHAR(8000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_EXAM_REPORT_MEMBERS_DTL (
    I$EXAM_ID BIGINT,
    I$DETAIL_ID BIGINT,
    I$USER_ID VARCHAR(40),
    I$ORDER VARCHAR(40) = null)
RETURNS (
    VAL VARCHAR(8000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_EXAM_RESULTS_EXPORT (
    I$EXAM_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    SESSION_ID BIGINT,
    PERSON_ID BIGINT,
    NAME_FULL VARCHAR(400),
    OU_ID BIGINT,
    OU_NAME VARCHAR(400),
    COL_INDEX INTEGER,
    VAL INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_EXAM_RESULTS_RESET (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    N INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_EXAM_RESULTS_RUN (
    I$EXAM_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    N INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_EXAM_RES_ASSN_SET (
    I$EXAM_ID BIGINT NOT NULL,
    I$RES_ID BIGINT NOT NULL,
    I$QTY INTEGER NOT NULL,
    I$USER_ID VARCHAR(40) NOT NULL)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_EXAM_ROOM_ASSN_SET (
    I$EXAM_ID BIGINT,
    I$ROOM_ID BIGINT,
    I$ROLE_ID INTEGER,
    I$USER_ID VARCHAR(40))
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_EXAM_SCALE_APPLY (
    I$EXAM_ID BIGINT NOT NULL,
    I$USER_ID VARCHAR(40),
    I$SESSION_ID BIGINT = NULL)
RETURNS (
    STUB INTEGER,
    RESULTS_DONE SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_EXAM_SCALE_SET (
    I$EXAM_ID BIGINT,
    I$SCALE VARCHAR(20),
    I$VALUE INTEGER,
    I$USER_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_EXAM_SCAN_STATS (
    I$EXAM_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$LEVEL INTEGER,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_EXAM_SETTINGS (
    I$OBJ_ID BIGINT)
RETURNS (
    H_LEVEL INTEGER,
    DB_LEVEL INTEGER,
    EXPERT_ASSN_MODE INTEGER,
    ORG_ID BIGINT,
    THIS_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_EXAM_SMPL_RESULTS (
    I$EXAM_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_EXAM_TEST_VARS_SET (
    I$EXAM_ID BIGINT NOT NULL,
    I$TEST_VAR_ID BIGINT NOT NULL,
    I$STATE INTEGER)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_EXAM_TITLE_GET (
    I$EXAM_ID BIGINT,
    I$SESSION_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    EXAM_ID BIGINT,
    SESSION_ID BIGINT,
    OBJ_NAME VARCHAR(200),
    USER_NAME VARCHAR(200),
    EXAM_CURRENT_DATE TIMESTAMP,
    EXAM_COMPLETED_DATE TIMESTAMP,
    DURATION INTEGER,
    EXAM_EXEC_PERCENT SMALLINT,
    AUDIO_CHECK SMALLINT,
    PAUSE_ENABLED SMALLINT,
    EXAM_STATE SMALLINT,
    TOTAL_COUNT SMALLINT,
    SESSION_STATE_ID INTEGER,
    SESSION_STATE_TEXT VARCHAR(200),
    PERSON_ID BIGINT,
    PERSON_TYPE_ID BIGINT,
    EXAM_TIME INTEGER,
    FLOW_MODE SMALLINT,
    RAW_RESULT INTEGER,
    FINAL_RESULT_ID BIGINT,
    FINAL_RESULT_TEXT VARCHAR(100),
    N_ATTEMPS SMALLINT,
    START_ALLOWED SMALLINT,
    PLAN_METHOD_ID INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_EXPARENTS_VIEW (
    I$LEVEL_ID INTEGER,
    I$USER_ID VARCHAR(40))
RETURNS (
    OBJ_ID BIGINT,
    OBJ_NAME VARCHAR(1000),
    LEVEL_ID SMALLINT,
    LEVEL_TITLE VARCHAR(1000),
    LEVEL_PARENT VARCHAR(1000),
    DATE_DEL TIMESTAMP)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_EXPERTS_LIST (
    I$EXPERT_ID BIGINT,
    I$AREA_ID BIGINT,
    I$ACC_AREA_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    PERSON_NAME VARCHAR(1000),
    LAST_NAME VARCHAR(400),
    FIRST_NAME VARCHAR(400),
    MIDDLE_NAME VARCHAR(400),
    BIRTH_DATE DATE,
    JOB_TITLE VARCHAR(400),
    AREA_ID BIGINT,
    AREA_NAME VARCHAR(400),
    OU_NAME VARCHAR(400),
    ACC_AREA_TEXT VARCHAR(1000),
    IS_ACTIVE INTEGER,
    IS_ACTIVE_TEXT VARCHAR(10),
    TEACHER_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_EXPERT_DELETE (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    STUB INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_EXPERT_DESC (
    I$OBJ_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    NAME_LAST VARCHAR(200),
    NAME_FIRST VARCHAR(200),
    NAME_MID VARCHAR(200),
    NAME_FULL VARCHAR(400),
    BIRTH_DATE DATE,
    JOB_TITLE VARCHAR(400),
    OU_ID BIGINT,
    OU_NAME VARCHAR(200),
    AREA_ID BIGINT,
    AREA_NAME VARCHAR(200),
    JOB_ID BIGINT,
    IS_ACTIVE SMALLINT,
    IS_ACTIVE_TEXT VARCHAR(10),
    ACC_AREA_TEXT VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_EXPERT_EXAM_ASSNS_LIST (
    I$PERSON_ID BIGINT,
    I$PERIOD_ID INTEGER,
    I$USER_ID VARCHAR(40) = null)
RETURNS (
    OBJ_ID BIGINT,
    EXAM_ID BIGINT,
    EXAM_NAME VARCHAR(200),
    EXAM_DATE DATE,
    STATE INTEGER,
    ROLE_ID INTEGER,
    ROLE_NAME VARCHAR(200),
    SECOND_CHECK SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_EXPERT_EXAM_CA_LIST (
    I$USER_ID VARCHAR(40))
RETURNS (
    EXAM_ID BIGINT,
    EXAM_NAME VARCHAR(200),
    SUBJECT_ID BIGINT,
    SUBJECT_NAME VARCHAR(200),
    EXAM_STATE INTEGER,
    EXAM_STATE_NAME VARCHAR(200),
    ROLE_ID INTEGER,
    ROLE_NAME VARCHAR(200),
    EXAM_DATE DATE,
    N_TASKS INTEGER,
    N_SECOND INTEGER,
    METHOD_ID INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_EXPERT_GET (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_EXPERT_MARKUP_SUBMIT (
    I$OBJ_ID BIGINT,
    I$TASK_ID BIGINT,
    I$RESULT_ID BIGINT,
    I$USER_ID VARCHAR(40),
    I$TYPE SMALLINT,
    I$TEXT VARCHAR(1000),
    I$X1 INTEGER,
    I$Y1 INTEGER,
    I$X2 INTEGER,
    I$Y2 INTEGER,
    I$DELETE SMALLINT = 0)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_EXPERT_NEXT_TASK (
    I$EXAM_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(8000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_EXPERT_SAVE (
    I$OBJ_ID BIGINT,
    I$INT_ID BIGINT,
    I$NAME_LAST VARCHAR(200),
    I$NAME_FIRST VARCHAR(200),
    I$NAME_MID VARCHAR(200),
    I$BIRTH_DATE DATE,
    I$AREA_ID BIGINT,
    I$JOB_TITLE VARCHAR(400),
    I$ORG_NAME VARCHAR(400),
    I$IS_ACTIVE SMALLINT,
    I$USER_NAME VARCHAR(100),
    I$PASSWORD VARCHAR(40),
    I$USER_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_EXPERT_TASK_CR_SUBMIT (
    I$TASK_ID BIGINT,
    I$USER_ID VARCHAR(40),
    I$QUESTION SMALLINT,
    I$INDEX SMALLINT,
    I$SCORE SMALLINT)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_EXPERT_TASK_DEFER (
    I$TASK_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_EXPERT_TASK_FORWARD (
    I$TASK_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_EXPERT_TASK_SUBMIT (
    I$TASK_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_FIND_TEST_FREE_PLACE (
    I$EXAM_ID BIGINT,
    I$PPE_ID BIGINT,
    I$ROOM_ID BIGINT,
    I$PERSON_ID BIGINT,
    I$LEVEL1 INTEGER,
    I$FLAGS INTEGER)
RETURNS (
    ROOM_ID BIGINT,
    PLACE_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_FIND_TEST_FREE_PPE (
    I$EXAM_ID BIGINT,
    I$LEVEL INTEGER,
    I$OBJ_ID BIGINT,
    I$FLAGS INTEGER,
    I$PPE_ID BIGINT = null)
RETURNS (
    PPE_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_GET_STRUCTURE_BY_ID (
    I$ID BIGINT)
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_GIA_PRINT_CONFIRM (
    I$GRADE_ID BIGINT,
    I$USER_ID VARCHAR(40))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE UT_KIM_CDLEVEL_SYNC (
    I$CODING_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$PARENT_ID BIGINT,
    I$OBJ_NAME VARCHAR(400),
    I$N_LEVEL INTEGER,
    I$SORT_ORDER INTEGER)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_KIM_CODING_CNT (
    I$OBJ_ID BIGINT)
RETURNS (
    MAX_LEVEL INTEGER,
    MIN_QUESTIONS INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_KIM_CODING_DELETE (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    ERROR_TEXT VARCHAR(200))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_KIM_CODING_EVENT_SET (
    I$CODING_ID BIGINT,
    I$PARENT_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$STATE SMALLINT,
    I$OBJ_NAME VARCHAR(1000),
    I$ORDER INTEGER)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_KIM_CODING_GET (
    I$OBJ_ID BIGINT = NULL,
    I$DETAILS SMALLINT = 0)
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_KIM_CODING_LEVELS_LIST (
    I$PARENT_ID BIGINT,
    I$OBJ_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    CODING_ID BIGINT,
    PARENT_ID BIGINT,
    CODING_LEVEL_NAME VARCHAR(200),
    N_LEVEL SMALLINT,
    SORT_ORDER SMALLINT,
    N_CHILDREN INTEGER,
    N_QUESTIONS INTEGER,
    ALLOWED SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_KIM_CODING_LIST (
    I$OBJ_ID BIGINT = null,
    I$SUBJECT_ID BIGINT = null)
RETURNS (
    OBJ_ID BIGINT,
    DATE_ADD TIMESTAMP,
    DATE_MODIFY TIMESTAMP,
    DATE_DEL TIMESTAMP,
    CODING_NAME VARCHAR(200),
    N_LEVELS SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_KIM_CODING_SET (
    I$OBJ_ID BIGINT,
    I$OBJ_NAME VARCHAR(1000) NOT NULL,
    I$N_LEVELS INTEGER NOT NULL,
    I$SUBJECTS VARCHAR(4000) NOT NULL,
    I$STAGES VARCHAR(4000) NOT NULL,
    I$USER_ID VARCHAR(40))
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_KIM_CODING_SUB_CNT (
    I$SECTION_ID BIGINT)
RETURNS (
    N INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_KIM_CODING_SYNC (
    I$OBJ_ID BIGINT,
    I$OBJ_NAME VARCHAR(400),
    I$LEVELS INTEGER,
    I$SUBJECTS VARCHAR(1000),
    I$STAGES VARCHAR(1000))
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_KIM_CODING_VIEW (
    I$SUBJECT_ID BIGINT = NULL,
    I$STAGE_ID BIGINT = NULL)
RETURNS (
    OBJ_ID BIGINT,
    SUBJECT_ID BIGINT,
    STAGE_ID BIGINT,
    OBJ_NAME VARCHAR(1000),
    SUBJECT_NAME VARCHAR(2000),
    STAGE_NAME VARCHAR(2000),
    N_LEVELS SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_KIM_QUESTION_DESC (
    I$OBJ_ID BIGINT,
    I$CODING_ID BIGINT = NULL)
RETURNS (
    SUBJECTS_TEXT VARCHAR(4000),
    STAGES_TEXT VARCHAR(1000),
    LEVELS_TEXT VARCHAR(400))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_LEVEL_GROUP_UA_LIST (
    I$EXAM_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$LEVEL INTEGER)
RETURNS (
    OBJ_ID BIGINT,
    N_MEMBERS INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_OU_DESC (
    I$OBJ_ID BIGINT,
    I$CUT_NAME SMALLINT = 0)
RETURNS (
    OBJ_ID BIGINT,
    NAME_FULL VARCHAR(400),
    NAME_SHORT VARCHAR(200),
    AREA_ID BIGINT,
    AREA_NAME VARCHAR(100),
    OPF_ID BIGINT,
    OPF_NAME VARCHAR(100),
    PROP_TYPE_ID BIGINT,
    PROP_TYPE_NAME VARCHAR(100),
    ORG_TYPE_ID BIGINT,
    ORG_TYPE_NAME VARCHAR(100),
    ORG_KIND_ID BIGINT,
    ORG_KIND_NAME VARCHAR(100),
    ORG_STATE_ID BIGINT,
    ORG_STATE_NAME VARCHAR(100),
    OGRN VARCHAR(100),
    INN VARCHAR(100),
    IS_ALL SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_PARTICIPANTS_GET (
    SCBOYCOD BIGINT)
RETURNS (
    SCBOYCODE BIGINT,
    FORMID BIGINT,
    FORMNUM INTEGER,
    FORMNAME VARCHAR(1000),
    FIRSTNAME VARCHAR(1000),
    NAME VARCHAR(1000),
    LASTNAME VARCHAR(1000),
    SCHOOLID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_PERSONS_DD_GRADES RETURNS (
    OBJ_ID BIGINT,
    OBJ_CAPTION VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_PERSONS_DD_STAGES RETURNS (
    OBJ_ID BIGINT,
    OBJ_CAPTION VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_PERSONS_LIST (
    I$FROM INTEGER,
    I$COUNT INTEGER,
    I$SORT_BY VARCHAR(20),
    I$STAGE_FILTER BIGINT,
    I$SUBJECT_FILTER BIGINT,
    I$FIO_FILTER VARCHAR(400),
    I$OBJ_ID BIGINT,
    I$GRADE_ID BIGINT,
    I$STAGE_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    OBJ_TYPE_ID BIGINT,
    PERSON_NAME VARCHAR(1000),
    GRADE_ID BIGINT,
    GRADE_NAME VARCHAR(1000),
    STAGE_ID BIGINT,
    STAGE_NAME VARCHAR(1000),
    EXAM_STATE SMALLINT,
    CNT INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_PERSON_DESC (
    I$OBJ_ID BIGINT,
    I$ZONE SMALLINT = 0,
    I$FIO_ONLY SMALLINT = 0)
RETURNS (
    OBJ_ID BIGINT,
    TYPE_ID BIGINT,
    NAME_LAST VARCHAR(200),
    NAME_FIRST VARCHAR(200),
    NAME_MID VARCHAR(200),
    NAME_FULL VARCHAR(400),
    BIRTH_DATE DATE,
    OU_ID BIGINT,
    OU_NAME VARCHAR(200),
    AREA_ID BIGINT,
    AREA_NAME VARCHAR(200),
    STAGE_ID BIGINT,
    STAGE_NAME VARCHAR(100),
    CLASS_ID BIGINT,
    CLASS_NAME VARCHAR(100),
    NAME_ALIAS VARCHAR(400))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_PERSON_EXAMS_GET (
    I$USER_ID BIGINT,
    I$ACTIVE SMALLINT = NULL)
RETURNS (
    OBJ_ID BIGINT,
    SESSION_ID BIGINT,
    EXAM_NAME VARCHAR(200),
    EXAM_LOCATION VARCHAR(200),
    EXAM_DATE_START TIMESTAMP,
    EXAM_DATE_END TIMESTAMP,
    DURATION INTEGER,
    EXAM_DATE_EXEC TIMESTAMP,
    EXAM_STATE VARCHAR(100),
    SESSION_STATE_ID INTEGER,
    SESSION_STATE VARCHAR(100),
    EXAM_RESULT VARCHAR(100),
    VARIANT_NAME VARCHAR(100),
    RAW_RESULT INTEGER,
    DATE_CLASS VARCHAR(40))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_PERSON_EXAM_ADD_LIST (
    I$PERSON_ID BIGINT,
    I$USER_ID VARCHAR(40),
    I$PERSON_TYPE SMALLINT = 0)
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_PERSON_EXAM_ASSNS_LIST (
    I$PERSON_ID BIGINT,
    I$PERIOD_ID INTEGER,
    I$USER_ID VARCHAR(40) = null)
RETURNS (
    OBJ_ID BIGINT,
    EXAM_ID BIGINT,
    EXAM_NAME VARCHAR(200),
    EXAM_DATE DATE,
    STATE INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_PLACES_LEVEL_UA_LIST (
    I$EXAM_ID BIGINT,
    I$PPE_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$LEVEL INTEGER)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_PPE_DELETE (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    ERROR_TEXT VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_PPE_DESC (
    I$OBJ_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    ORG_ID BIGINT,
    NAME_SHORT VARCHAR(1000),
    NAME_FULL VARCHAR(1000),
    PPE_CODE VARCHAR(40),
    FLAGS INTEGER,
    N_PLACES INTEGER,
    AREA_ID BIGINT,
    AREA_NAME VARCHAR(200),
    IS_OU VARCHAR(10),
    ADDRESS VARCHAR(1000),
    IS_SPEC VARCHAR(10))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_PPE_EXAM_ADD_LIST (
    I$PPE_ID BIGINT,
    I$USER_ID VARCHAR(40),
    I$PERSON_TYPE SMALLINT = 0)
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_PPE_EXAM_ASSNS_LIST (
    I$PPE_ID BIGINT,
    I$PERIOD_ID INTEGER,
    I$USER_ID VARCHAR(40) = null)
RETURNS (
    OBJ_ID BIGINT,
    EXAM_ID BIGINT,
    EXAM_NAME VARCHAR(200),
    EXAM_DATE DATE,
    STATE INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_PPE_EXAM_ASSN_SET (
    I$PPE_ID BIGINT,
    I$EXAM_ID BIGINT,
    I$STATE SMALLINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_PPE_GET (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40) = null)
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_PPE_PLACES_GET (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40) = null)
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_PPE_PLACES_LIST (
    I$ROOM_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_PPE_PLACE_DELETE (
    I$OBJ_ID BIGINT)
RETURNS (
    ERROR_TEXT VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_PPE_PLACE_SET (
    I$OBJ_ID BIGINT,
    I$ROOM_ID BIGINT,
    I$PLACE_NUM SMALLINT,
    I$N_ROW SMALLINT,
    I$N_COL SMALLINT,
    I$OBJ_NAME VARCHAR(100),
    I$FLAGS INTEGER,
    I$IS_DELETED SMALLINT,
    I$COORD_X FLOAT,
    I$COORD_Y FLOAT,
    I$COORD_R FLOAT)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_PPE_RECALC (
    I$OBJ_ID BIGINT)
RETURNS (
    ERROR_TEXT VARCHAR(10))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_PPE_ROOMS_LIST (
    I$PPE_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_PPE_ROOM_ASSN_GET (
    I$PPE_ID BIGINT,
    I$EXAMS VARCHAR(1000),
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_PPE_ROOM_DELETE (
    I$OBJ_ID BIGINT)
RETURNS (
    ERROR_TEXT VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_PPE_ROOM_SET (
    I$OBJ_ID BIGINT,
    I$PPE_ID BIGINT,
    I$OBJ_NAME VARCHAR(100),
    I$LOCATION VARCHAR(400),
    I$PPE_CODE VARCHAR(40),
    I$N_FLOOR SMALLINT,
    I$ROOM_NUM VARCHAR(20),
    I$N_ROWS SMALLINT,
    I$N_COLS SMALLINT,
    I$FLAGS INTEGER,
    I$IS_ACTIVE SMALLINT,
    I$MAP VARCHAR(8000))
RETURNS (
    OBJ_ID BIGINT,
    GEOMETRY_CHANGED SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_PPE_SET (
    I$OBJ_ID BIGINT,
    I$ORG_ID BIGINT,
    I$USER_ID VARCHAR(40),
    I$NAME_SHORT VARCHAR(1000),
    I$NAME_FULL VARCHAR(1000),
    I$AREA_ID BIGINT,
    I$PPE_CODE VARCHAR(40),
    I$FLAGS INTEGER,
    I$N_PLACES INTEGER)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_PUPIL_GET (
    SCBOYCOD BIGINT)
RETURNS (
    SCBOYCODE BIGINT,
    FORMID BIGINT,
    FORMNUM INTEGER,
    FORMNAME VARCHAR(1000),
    FIRSTNAME VARCHAR(1000),
    NAME VARCHAR(1000),
    LASTNAME VARCHAR(1000),
    SCHOOLID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_PUPIL_GET_NEW (
    SCBOYCOD BIGINT)
RETURNS (
    SCBOYCODE BIGINT,
    FORMID BIGINT,
    FORMNUM INTEGER,
    FORMNAME VARCHAR(1000),
    FIRSTNAME VARCHAR(1000),
    NAME VARCHAR(1000),
    LASTNAME VARCHAR(1000),
    SCHOOLID BIGINT,
    SCHOOLSHORTNAME VARCHAR(100),
    DISTRICTID BIGINT,
    DISTRICTNAME VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_QUESTIONS_GET (
    I$SECTION_ID BIGINT NOT NULL,
    I$TEST_ID BIGINT = null,
    I$OBJ_ID BIGINT = null)
RETURNS (
    OBJ_ID BIGINT,
    SECTION_ID BIGINT,
    CODING_ID BIGINT,
    OBJ_NAME VARCHAR(100),
    QUESTION_TYPE SMALLINT,
    QUESTION_TYPE_VALUE CHAR(1),
    SORT_ORDER SMALLINT,
    MAX_SCORE SMALLINT,
    STAGE SMALLINT,
    QUESTION BLOB SUB_TYPE 1 SEGMENT SIZE 80,
    ONLY_FOR_CONTROL SMALLINT,
    ANSWER VARCHAR(250),
    CASE_SENSITIVE SMALLINT,
    ANSWER_HINT VARCHAR(100),
    IGNORE_SPACES SMALLINT,
    HINT BLOB SUB_TYPE 1 SEGMENT SIZE 80,
    SOLUTION BLOB SUB_TYPE 1 SEGMENT SIZE 80)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_QUESTIONS_LIST (
    I$SECTION_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    SECTION_ID BIGINT,
    CODING_ID BIGINT,
    OBJ_NAME VARCHAR(400),
    QUESTION_TYPE SMALLINT,
    QUESTION_TYPE_VALUE VARCHAR(50),
    SORT_ORDER SMALLINT,
    MAX_SCORE SMALLINT,
    "LEVEL" SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_QUESTION_ANSWERS_GET (
    I$QUESTION_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    SORT_ORDER SMALLINT,
    VARIANT BLOB SUB_TYPE 1 SEGMENT SIZE 80,
    A_LEVEL SMALLINT,
    OBJ_NAME VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_QUESTION_ANSWERS_IDS (
    I$QUESTION_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_QUESTION_ANSWER_DEL (
    I$OBJ_ID BIGINT)
RETURNS (
    STUB INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_QUESTION_ANSWER_SET (
    I$OBJ_ID BIGINT,
    I$QUESTION_ID BIGINT,
    I$SORT_ORDER SMALLINT,
    I$OBJ_NAME VARCHAR(400),
    I$VARIANT BLOB SUB_TYPE 1 SEGMENT SIZE 8,
    I$A_LEVEL SMALLINT,
    I$APPLY_ALL SMALLINT = 1)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_QUESTION_CLONE (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_QUESTION_DELETE (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    ERROR_TEXT VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_QUESTION_GET (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    OBJ_ID BIGINT,
    SECTION_ID BIGINT,
    SECTION_PRE VARCHAR(1000),
    CODING_ID BIGINT,
    OBJ_NAME VARCHAR(400),
    SORT_ORDER SMALLINT,
    QUESTION_TYPE SMALLINT,
    QUESTION_TYPE_VALUE VARCHAR(10),
    QUESTION BLOB SUB_TYPE 1 SEGMENT SIZE 80,
    HINT BLOB SUB_TYPE 1 SEGMENT SIZE 80,
    TIME_LIMIT INTEGER,
    METADATA_ID VARCHAR(40),
    FLAGS INTEGER,
    MAX_SCORE SMALLINT,
    "LEVEL" SMALLINT,
    ALLOWED SMALLINT,
    CHARSET_ID SMALLINT,
    FILE_SIZE INTEGER,
    K VARCHAR(64),
    SUBJECT_ID BIGINT,
    USER_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_QUESTION_KIM_CAT (
    I$SUBJECT_ID BIGINT,
    I$CAT_ID BIGINT = NULL,
    I$USER_ID VARCHAR(40) = NULL)
RETURNS (
    TAG_NAME VARCHAR(400),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_QUESTION_MOVE (
    I$OBJ_ID BIGINT,
    I$SECTION_ID BIGINT,
    I$USER_ID VARCHAR(40))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE UT_QUESTION_REORDER (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40),
    I$AFTER_ID BIGINT)
RETURNS (
    ERROR_TEXT VARCHAR(10))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_QUESTION_SET (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40),
    SECTION_ID BIGINT,
    SECTION_IDS VARCHAR(1000),
    PARENT_ID BIGINT,
    OBJ_NAME VARCHAR(400),
    SORT_ORDER SMALLINT,
    QUESTION_TYPE SMALLINT,
    QUESTION BLOB SUB_TYPE 1 SEGMENT SIZE 80,
    "LEVEL" SMALLINT,
    MAX_SCORE SMALLINT,
    HINT BLOB SUB_TYPE 1 SEGMENT SIZE 80,
    FLAGS INTEGER,
    TIME_LIMIT INTEGER,
    METADATA_ID VARCHAR(40),
    CHARSET_ID SMALLINT,
    FILE_SIZE INTEGER,
    I$K VARCHAR(64),
    I$REF_ID VARCHAR(64) = NULL)
RETURNS (
    OBJ_ID BIGINT,
    IS_AUTOCODING SMALLINT,
    METADATA_OLD VARCHAR(40),
    OUTPUT_KEY VARCHAR(64))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_SCHOLAR_GET RETURNS (
    FIRSTNAME VARCHAR(50),
    NAME VARCHAR(50),
    LASTNAME VARCHAR(50),
    S_SEX INTEGER,
    S_BIRTHDAY DATE,
    KEYFIELD VARCHAR(25),
    KEYFIELDFULL VARCHAR(500))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_SCHOOL_LIST (
    DISTRICT_ID BIGINT)
RETURNS (
    SCHOOL_ID BIGINT,
    SCHOOL_CAPTION VARCHAR(4000),
    SORT_ORDER DOUBLE PRECISION)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_SESSION_COMPLETE (
    I$SESSION_ID BIGINT,
    I$USER_ID BIGINT,
    I$FORCE SMALLINT = 0)
RETURNS (
    SESSION_STATE_ID INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_SESSION_GET (
    I$SESSION_ID BIGINT,
    I$QUESTION_NUM INTEGER,
    I$USER_ID BIGINT)
RETURNS (
    FLOW_MODE SMALLINT,
    QUESTIONS_MASK VARCHAR(1000),
    QUESTION_NUM INTEGER,
    MAX_ORDER INTEGER,
    IS_LAST SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_SESSION_QUESTIONS_GET (
    I$SESSION_ID BIGINT,
    I$QUESTION_NUM INTEGER)
RETURNS (
    RECORD_TYPE SMALLINT,
    INSTANCE_ID BIGINT,
    QUESTION_ID BIGINT,
    TYPE_ID SMALLINT,
    TYPE_NAME VARCHAR(100),
    Q_ORDER SMALLINT,
    MAX_SCORE SMALLINT,
    ANSWER_STATE INTEGER,
    ANSWER_STATE_NAME VARCHAR(100),
    METADATA_SID VARCHAR(40),
    METADATA_ID VARCHAR(40),
    ANSWER_DATA VARCHAR(4000),
    RAW_RESULT INTEGER,
    QUESTION_NAME VARCHAR(400),
    QUESTION_DATA BLOB SUB_TYPE 1 SEGMENT SIZE 80,
    QUESTION_SIGNATURE SMALLINT,
    FLAGS INTEGER,
    SESSION_Q_FILE_ID VARCHAR(40),
    K VARCHAR(64),
    FILE_SIZE INTEGER,
    TIME_LIMIT INTEGER,
    HINT BLOB SUB_TYPE 1 SEGMENT SIZE 80,
    HSIGNATURE BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_SESSION_START (
    I$SESSION_ID BIGINT,
    I$EXAM_ID BIGINT,
    I$MODE SMALLINT,
    I$PERSON_ID BIGINT,
    I$NETWORK_DATA VARCHAR(100),
    I$USER_ID VARCHAR(40))
RETURNS (
    SESSION_ID BIGINT,
    DURATION INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_SESSION_TIME_SET (
    I$SESSION_ID BIGINT,
    I$USER_ID BIGINT,
    I$TIME INTEGER)
RETURNS (
    SESSION_STATE_ID INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_SET_STRUCTS_LIST (
    I$SUBJECT_ID BIGINT,
    I$STAGE_ID INTEGER,
    I$METHOD_ID INTEGER)
RETURNS (
    OBJ_ID BIGINT,
    OBJ_NAME VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_STUDENT_DESC (
    I$OBJ_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    NAME_LAST VARCHAR(200),
    NAME_FIRST VARCHAR(200),
    NAME_MID VARCHAR(200),
    NAME_FULL VARCHAR(400),
    BIRTH_DATE DATE,
    OU_ID BIGINT,
    OU_NAME VARCHAR(200),
    AREA_ID BIGINT,
    AREA_NAME VARCHAR(200),
    STAGE_ID BIGINT,
    STAGE_NAME VARCHAR(40),
    CLASS_ID BIGINT,
    CLASS_NAME VARCHAR(40))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_STUDENT_GET (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_STUFF_GET (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_SUBJECTS RETURNS (
    OBJ_ID BIGINT,
    OBJ_NAME VARCHAR(1000),
    DATE_DEL TIMESTAMP,
    TYPE_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_SYNC_EXPERT (
    I$PERSON_ID BIGINT,
    I$IS_EXPERT VARCHAR(100))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE UT_TEMPLATES_LIST (
    I$USER_ID VARCHAR(40))
RETURNS (
    OBJ_ID BIGINT,
    OBJ_NAME VARCHAR(400),
    BLANK_TYPE SMALLINT,
    BLANK_TYPE_NAME VARCHAR(100),
    IS_DS SMALLINT,
    IS_ACTIVE SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEMPLATE_ACCESS (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    STUB INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEMPLATE_COPY (
    I$OBJ_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    OBJ_NAME VARCHAR(400))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEMPLATE_DELETE (
    I$OBJ_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEMPLATE_GET (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40),
    I$FIELD SMALLINT)
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEMPLATE_SAVE (
    I$OBJ_ID BIGINT,
    I$OBJ_NAME VARCHAR(400),
    I$BLANK_TYPE SMALLINT,
    I$IS_DS SMALLINT,
    I$IS_ACTIVE SMALLINT)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TESTS_GET (
    I$EXAM_ID BIGINT,
    I$VARIANT_ID BIGINT = null)
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TESTS_SET (
    I$OBJ_ID BIGINT,
    I$STRUCT_ID BIGINT,
    I$OBJ_NAME VARCHAR(1000),
    I$EXAM_ID BIGINT = null)
RETURNS (
    OBJ_ID BIGINT,
    OBJ_NAME VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_ASSN_PLACE_APPLY (
    I$EXAM_ID BIGINT,
    I$PPE_ID BIGINT,
    I$LEVEL1 INTEGER,
    I$OBJ_ID1 BIGINT,
    I$LEVEL2 INTEGER,
    I$OBJ_ID2 BIGINT,
    I$USER_ID VARCHAR(40),
    I$FLAGS INTEGER = 0)
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(200))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_ASSN_PLACE_APPLY_PERSON (
    I$EXAM_ID BIGINT,
    I$PERSON_ID BIGINT,
    I$PLACE_ID BIGINT)
RETURNS (
    ASSN_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_ASSN_PLACE_CHANGES (
    I$EXAM_ID BIGINT,
    I$PPE_ID BIGINT,
    I$LEVEL INTEGER,
    I$TIME TIMESTAMP,
    I$USER_LEVEL SMALLINT)
RETURNS (
    OBJ_ID BIGINT,
    OBJ_LEVEL INTEGER,
    N_ASSN INTEGER,
    N_FREE INTEGER,
    PLACE_ID BIGINT,
    PLACE_NUM SMALLINT,
    ROOM_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_ASSN_PLACE_LTREE (
    I$EXAM_ID BIGINT,
    I$PPE_ID BIGINT,
    I$LEVEL INTEGER,
    I$PARENT_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_ASSN_PLACE_RCHANGES (
    I$EXAM_ID BIGINT,
    I$PPE_ID BIGINT,
    I$LEVEL INTEGER,
    I$TIME TIMESTAMP,
    I$USER_LEVEL SMALLINT)
RETURNS (
    OBJ_ID BIGINT,
    OBJ_LEVEL INTEGER,
    PERSON_ID BIGINT,
    PERSON_NAME VARCHAR(1000),
    N_TOTAL INTEGER,
    N_ASSN INTEGER,
    N_FREE INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_ASSN_PLACE_REVERT (
    I$EXAM_ID BIGINT,
    I$PPE_ID BIGINT,
    I$SIDE INTEGER,
    I$LEVEL INTEGER,
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(200))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_ASSN_PLACE_RTREE (
    I$EXAM_ID BIGINT,
    I$PPE_ID BIGINT,
    I$LEVEL INTEGER,
    I$PARENT_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(8000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_ASSN_PLC_REVERT_PERSON (
    I$EXAM_ID BIGINT,
    I$PERSON_ID BIGINT)
RETURNS (
    OLD_PLACE_ID BIGINT,
    DONE SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_ASSN_PPE_APPLY (
    I$EXAM_ID BIGINT,
    I$LEVEL1 INTEGER,
    I$OBJ_ID1 BIGINT,
    I$LEVEL2 INTEGER,
    I$OBJ_ID2 BIGINT,
    I$USER_ID VARCHAR(40),
    I$FLAGS INTEGER = 0)
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(200))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_ASSN_PPE_APPLY_PERSON (
    I$EXAM_ID BIGINT,
    I$PERSON_ID BIGINT,
    I$PPE_ID BIGINT)
RETURNS (
    ASSN_ID BIGINT,
    PPE_ID BIGINT,
    OLD_PPE_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_ASSN_PPE_CHANGES (
    I$EXAM_ID BIGINT,
    I$LEVEL INTEGER,
    I$TIME TIMESTAMP,
    I$USER_LEVEL SMALLINT)
RETURNS (
    OBJ_ID BIGINT,
    OBJ_LEVEL INTEGER,
    N_ASSN INTEGER,
    N_FREE INTEGER,
    PPE_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_ASSN_PPE_LTREE (
    I$EXAM_ID BIGINT,
    I$LEVEL INTEGER,
    I$PARENT_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_ASSN_PPE_RCHANGES (
    I$EXAM_ID BIGINT,
    I$LEVEL INTEGER,
    I$TIME TIMESTAMP,
    I$USER_LEVEL SMALLINT)
RETURNS (
    OBJ_ID BIGINT,
    OBJ_LEVEL INTEGER,
    N_TOTAL INTEGER,
    N_ASSN INTEGER,
    N_FREE INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_ASSN_PPE_REVERT (
    I$EXAM_ID BIGINT,
    I$SIDE INTEGER,
    I$LEVEL INTEGER,
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(200))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_ASSN_PPE_REVERT_PERSON (
    I$EXAM_ID BIGINT,
    I$PERSON_ID BIGINT)
RETURNS (
    OLD_PPE_ID BIGINT,
    DONE SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_ASSN_PPE_RTREE (
    I$EXAM_ID BIGINT,
    I$LEVEL INTEGER,
    I$PARENT_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_ATTR_CHARSETS (
    I$EXAM_ID BIGINT)
RETURNS (
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_AUTOCODING (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_BLANKS_GET (
    I$EXAM_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    BLANK_NAME VARCHAR(100),
    BLOB_ID BLOB SUB_TYPE 1 SEGMENT SIZE 80)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_BLANKS_LIST (
    I$EXAM_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_BLANK_CONFIRM (
    I$EXAM_ID BIGINT,
    I$BLANK_ID BIGINT,
    I$BLANK_TYPE VARCHAR(100),
    I$USER_ID VARCHAR(40))
RETURNS (
    STUB INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_CHOOSE_ASSN (
    I$PERIOD_ID BIGINT,
    I$PARENT_ID BIGINT,
    I$PAGE SMALLINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_CHOOSE_REPORT (
    I$PERIOD_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$PAGE INTEGER,
    I$USER_ID VARCHAR(40))
RETURNS (
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_CHOOSE_SET (
    I$PERSON_ID BIGINT,
    I$EXAM_ID BIGINT,
    I$SUBJECT_ID BIGINT,
    I$LEVEL SMALLINT,
    I$STATE INTEGER,
    I$USER_ID VARCHAR(40))
RETURNS (
    OBJ_ID BIGINT,
    STATE_ID INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_CHOOSE_TREE (
    I$PERIOD_ID BIGINT,
    I$LEVEL INTEGER,
    I$PARENT_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_CLONE (
    I$TEST_ID BIGINT,
    I$NEW_STATE INTEGER,
    I$DATE_FROM DATE,
    I$DATE_TO DATE,
    I$TIME_FROM TIME,
    I$GRADE_NAME VARCHAR(100))
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_DELETE (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40) = null)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_DETAILS (
    I$STUDENT_ID BIGINT,
    I$SUBJECT_ID BIGINT)
RETURNS (
    PLAN_ID BIGINT,
    LOAD_HOURS INTEGER,
    UMK VARCHAR(1000),
    TEACHER_NAME VARCHAR(400))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_EXPORT_B0 (
    I$EXAM_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_EXPORT_CS (
    I$CODING_ID BIGINT,
    I$PARENT_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_EXPORT_LOCAL (
    I$OBJ_ID BIGINT = null)
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_EXPORT_P0 (
    I$EXAM_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_EXPORT_P1 (
    I$EXAM_ID BIGINT)
RETURNS (
    REF_ID BIGINT,
    REF_TYPE VARCHAR(20),
    BLOB_DATA BLOB SUB_TYPE 1 SEGMENT SIZE 80)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_EXT_BLANKS (
    I$EXAM_ID BIGINT,
    I$N_BLANKS INTEGER,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_EXT_LIST (
    I$EXAM_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_GENERIC_BLANKS (
    I$EXAM_ID BIGINT,
    I$LOC_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_GET (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_GIA_SIGNATURE (
    I$YEAR_ID BIGINT)
RETURNS (
    FILE_ID VARCHAR(100),
    YEAR_VAL VARCHAR(40))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_IMPORT_B0 (
    I$USER_ID VARCHAR(40),
    I$SOURCE_LEVEL SMALLINT,
    I$OBJ_ID BIGINT)
RETURNS (
    STUB INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_IMPORT_B1 (
    I$SOURCE_LEVEL SMALLINT,
    I$OBJ_ID BIGINT,
    I$DATE_ADD TIMESTAMP,
    I$DATE_MODIFY TIMESTAMP,
    I$DATE_DEL TIMESTAMP,
    I$ED_ID BIGINT,
    I$PPE_ID BIGINT,
    I$ROOM_ID BIGINT,
    I$USER_ID BIGINT,
    I$N_PAGES INTEGER,
    I$STATE_ID BIGINT,
    I$IP_INFO VARCHAR(200))
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_IMPORT_B2 (
    I$SOURCE_LEVEL SMALLINT,
    I$OBJ_ID BIGINT,
    I$DATE_ADD TIMESTAMP,
    I$DATE_MODIFY TIMESTAMP,
    I$DATE_DEL TIMESTAMP,
    I$PACKAGE_ID BIGINT,
    I$BLANK_TYPE BIGINT,
    I$BLANK_SIDE SMALLINT,
    I$PARENT_ID BIGINT,
    I$FILE_ID VARCHAR(40),
    I$FILE_HASH VARCHAR(40),
    I$BARCODE1 VARCHAR(128),
    I$BARCODE2 VARCHAR(128),
    I$BARCODE3 VARCHAR(128),
    I$STATE_ID INTEGER,
    I$RCV_STATION_ID VARCHAR(40),
    I$VER_USER_ID BIGINT)
RETURNS (
    STUB INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_IMPORT_B3 (
    I$OBJ_ID BIGINT,
    I$NEXT_ID BIGINT)
RETURNS (
    STUB INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_IMPORT_MD0 (
    I$SOURCE_LEVEL INTEGER,
    I$REF_ID BIGINT,
    I$REF_TYPE VARCHAR(40))
RETURNS (
    BLOB_DATA BLOB SUB_TYPE 1 SEGMENT SIZE 80)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_IMPORT_MD1 (
    I$SOURCE_LEVEL INTEGER,
    I$REF_ID BIGINT,
    I$REF_TYPE VARCHAR(40),
    I$BLOB_DATA BLOB SUB_TYPE 1 SEGMENT SIZE 80)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_IMPORT_P0 (
    I$USER_ID VARCHAR(40),
    I$SOURCE_LEVEL SMALLINT,
    I$OBJ_ID BIGINT,
    I$DATE_ADD TIMESTAMP,
    I$DATE_MODIFY TIMESTAMP,
    I$DATE_DEL TIMESTAMP,
    I$BLANK_TYPE SMALLINT,
    I$OBJ_NAME VARCHAR(400),
    I$IS_DS SMALLINT,
    I$IS_ACTIVE SMALLINT)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_IMPORT_P1 (
    I$USER_ID VARCHAR(40),
    I$SOURCE_LEVEL SMALLINT,
    I$EXAM_ID BIGINT,
    I$DATE_ADD TIMESTAMP,
    I$DATE_MODIFY TIMESTAMP,
    I$DATE_DEL TIMESTAMP,
    I$OBJ_NAME VARCHAR(400),
    I$EXAM_STATE INTEGER,
    I$SUBJECT_ID BIGINT,
    I$STAGE_ID INTEGER,
    I$EXAM_DATE_START DATE,
    I$EXAM_DATE_END DATE,
    I$DURATION INTEGER,
    I$EXAM_DAY_TYPE INTEGER,
    I$C_CALC_MODE INTEGER,
    I$C_EXPERT_NUM INTEGER,
    I$C_DIFF_QUESTION INTEGER,
    I$C_DIFF_TOTAL INTEGER,
    I$METHOD_ID INTEGER,
    I$PLAN_METHOD_ID INTEGER,
    I$ATTEMPTS INTEGER,
    I$OWNER_ID BIGINT,
    I$H_LEVEL INTEGER,
    I$ORG_REF BIGINT,
    I$FLOW_MODE SMALLINT,
    I$PAUSE_ENABLED SMALLINT,
    I$EXPERT_ASSN_MODE SMALLINT,
    I$BLANK_AB_ID BIGINT,
    I$BLANK_C_ID BIGINT,
    I$BLANK_EXT_ID BIGINT,
    I$BLANK_GEN_ID BIGINT,
    I$SCALE_N0 SMALLINT,
    I$SCALE_NMIN SMALLINT,
    I$SCALE_N4 SMALLINT,
    I$SCALE_N5 SMALLINT,
    I$SCALE_NMAX SMALLINT)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_IMPORT_P10 (
    I$SOURCE_LEVEL SMALLINT,
    I$EXAM_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$DATE_ADD TIMESTAMP,
    I$DATE_MODIFY TIMESTAMP,
    I$DATE_DEL TIMESTAMP,
    I$PERSON_ID BIGINT,
    I$LOCAL_ID VARCHAR(40),
    I$BLANKS_PRINTED SMALLINT,
    I$OU_ID BIGINT,
    I$AREA_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_IMPORT_P11 (
    I$SOURCE_LEVEL SMALLINT,
    I$EXAM_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$DATE_ADD TIMESTAMP,
    I$DATE_MODIFY TIMESTAMP,
    I$DATE_DEL TIMESTAMP,
    I$EXPERT_ID BIGINT,
    I$ROLE_ID VARCHAR(40),
    I$SECOND_CHECK SMALLINT)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_IMPORT_P11X (
    I$SOURCE_LEVEL SMALLINT,
    I$EXAM_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$DATE_ADD TIMESTAMP,
    I$DATE_MODIFY TIMESTAMP,
    I$DATE_DEL TIMESTAMP,
    I$TEACHER_ID BIGINT,
    I$ORG_ID BIGINT,
    I$USER_NAME VARCHAR(100),
    I$PWD VARCHAR(100),
    I$IS_ACTIVE SMALLINT,
    I$LAST_NAME VARCHAR(400),
    I$FIRST_NAME VARCHAR(400),
    I$MID_NAME VARCHAR(400))
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_IMPORT_P1_2 (
    I$EXAM_ID BIGINT,
    I$SOURCE_LEVEL INTEGER,
    I$OBJ_ID BIGINT,
    I$DATE_ADD TIMESTAMP,
    I$DATE_MODIFY TIMESTAMP,
    I$DATE_DEL TIMESTAMP,
    I$OU_ID BIGINT,
    I$DATE_START DATE,
    I$DATE_END DATE)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_IMPORT_P1_3 (
    I$EXAM_ID BIGINT,
    I$IMPORT_METHOD SMALLINT)
RETURNS (
    N_OU INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_IMPORT_P2 (
    I$SOURCE_LEVEL SMALLINT,
    I$OBJ_ID BIGINT,
    I$DATE_ADD TIMESTAMP,
    I$DATE_MODIFY TIMESTAMP,
    I$DATE_DEL TIMESTAMP,
    I$SUBJECT_ID BIGINT,
    I$STAGE_ID INTEGER,
    I$METHOD_ID INTEGER,
    I$OBJ_NAME VARCHAR(1000),
    I$IS_AUTO SMALLINT,
    I$STR_HASH VARCHAR(100))
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_IMPORT_P2_1 (
    I$SOURCE_LEVEL SMALLINT,
    I$STRUCT_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$DATE_ADD TIMESTAMP,
    I$DATE_MODIFY TIMESTAMP,
    I$DATE_DEL TIMESTAMP,
    I$TYPE_ID SMALLINT,
    I$ORDER SMALLINT,
    I$LEVEL SMALLINT,
    I$SCORE SMALLINT,
    I$CHARSET_ID SMALLINT,
    I$NOTES VARCHAR(8000))
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_IMPORT_P3 (
    I$SOURCE_LEVEL SMALLINT,
    I$OBJ_ID BIGINT,
    I$DATE_ADD TIMESTAMP,
    I$DATE_MODIFY TIMESTAMP,
    I$DATE_DEL TIMESTAMP,
    I$OBJ_NAME VARCHAR(1000),
    I$N_LEVELS SMALLINT,
    I$OWNER_LEVEL INTEGER,
    I$OWNER_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_IMPORT_P3_1 (
    I$SOURCE_LEVEL SMALLINT,
    I$CODING_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$DATE_ADD TIMESTAMP,
    I$DATE_MODIFY TIMESTAMP,
    I$DATE_DEL TIMESTAMP,
    I$PARENT_ID BIGINT,
    I$OBJ_NAME VARCHAR(1000),
    I$ORDER INTEGER,
    I$N_LEVEL INTEGER)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_IMPORT_P3_2 (
    I$SOURCE_LEVEL SMALLINT,
    I$CODING_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$DATE_ADD TIMESTAMP,
    I$DATE_MODIFY TIMESTAMP,
    I$DATE_DEL TIMESTAMP,
    I$STAGE_ID INTEGER)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_IMPORT_P3_3 (
    I$SOURCE_LEVEL SMALLINT,
    I$CODING_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$DATE_ADD TIMESTAMP,
    I$DATE_MODIFY TIMESTAMP,
    I$DATE_DEL TIMESTAMP,
    I$SUBJECT_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_IMPORT_P4 (
    I$SOURCE_LEVEL SMALLINT,
    I$OBJ_ID BIGINT,
    I$DATE_ADD TIMESTAMP,
    I$DATE_MODIFY TIMESTAMP,
    I$DATE_DEL TIMESTAMP,
    I$SECTION_ID BIGINT,
    I$OBJ_NAME VARCHAR(1000),
    I$PARENT_ID BIGINT,
    I$Q_ORDER INTEGER,
    I$Q_TYPE INTEGER,
    I$MAX_SCORE INTEGER,
    I$TIME_LIMIT INTEGER,
    I$METADATA_ID VARCHAR(40),
    I$FLAGS INTEGER,
    I$CHARSET_ID INTEGER,
    I$Q_LEVEL INTEGER)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_IMPORT_P4_1 (
    I$SOURCE_LEVEL SMALLINT,
    I$QUESTION_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$DATE_ADD TIMESTAMP,
    I$DATE_MODIFY TIMESTAMP,
    I$DATE_DEL TIMESTAMP,
    I$OBJ_NAME VARCHAR(400),
    I$ORDER INTEGER,
    I$A_LEVEL INTEGER,
    I$FAKE_ORDER INTEGER,
    I$SIGNATURE SMALLINT)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_IMPORT_P5 (
    I$SOURCE_LEVEL SMALLINT,
    I$OBJ_ID BIGINT,
    I$DATE_ADD TIMESTAMP,
    I$DATE_MODIFY TIMESTAMP,
    I$DATE_DEL TIMESTAMP,
    I$OBJ_NAME VARCHAR(1000),
    I$STRUCT_ID BIGINT,
    I$MASTER_ED_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_IMPORT_P5_1 (
    I$SOURCE_LEVEL SMALLINT,
    I$TEST_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$DATE_ADD TIMESTAMP,
    I$DATE_MODIFY TIMESTAMP,
    I$DATE_DEL TIMESTAMP,
    I$OBJ_NAME VARCHAR(400),
    I$NUM INTEGER,
    I$MASTER_ED_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_IMPORT_P5_2 (
    I$SOURCE_LEVEL SMALLINT,
    I$VAR_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$DATE_ADD TIMESTAMP,
    I$DATE_MODIFY TIMESTAMP,
    I$DATE_DEL TIMESTAMP,
    I$STRUCT_POINT_ID BIGINT,
    I$QUESTION_ID BIGINT,
    I$ORDER_INDEX INTEGER)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_IMPORT_P6 (
    I$SOURCE_LEVEL SMALLINT,
    I$EXAM_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$DATE_ADD TIMESTAMP,
    I$DATE_MODIFY TIMESTAMP,
    I$DATE_DEL TIMESTAMP,
    I$VARIANT_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_IMPORT_P7 (
    I$SOURCE_LEVEL SMALLINT,
    I$OBJ_ID BIGINT NOT NULL,
    I$DATE_ADD TIMESTAMP NOT NULL,
    I$DATE_MODIFY TIMESTAMP NOT NULL,
    I$DATE_DEL TIMESTAMP,
    I$VAR_ID BIGINT NOT NULL,
    I$OBJ_NAME VARCHAR(1000) NOT NULL,
    I$FILE_HASH VARCHAR(40),
    I$CONTENT_TYPE VARCHAR(40) NOT NULL,
    I$ATTR_MASK INTEGER)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_KIM_LIST (
    I$EXAM_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_MON_DATA (
    I$EXAM_ID BIGINT,
    I$USER_ID VARCHAR(40),
    I$EXT SMALLINT = 0)
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_PERSON_BLANKS (
    I$EXAM_ID BIGINT,
    I$PERSON_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_QVECTOR (
    I$EXAM_ID BIGINT,
    I$INDEX INTEGER,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_RANDOM_RESULTS (
    I$EXAM_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_SCAN_GET (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_SESSION_RV_GET (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_SESSION_TOTAL_RECALC (
    I$SESSION_ID BIGINT,
    I$STATE_ID INTEGER,
    I$RAW_SUM INTEGER,
    I$UPDATE SMALLINT = 1)
RETURNS (
    RAW_RESULT INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_STRUCTS_GET (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(8000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_STRUCTS_LIST (
    I$SUBJECT_ID BIGINT,
    I$STAGE_ID INTEGER,
    I$METHOD_ID INTEGER)
RETURNS (
    OBJ_ID BIGINT,
    OBJ_NAME VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_STRUCTS_SET (
    I$OBJ_ID BIGINT,
    I$SUBJECT_ID BIGINT,
    I$STAGE_ID INTEGER,
    I$METHOD_ID INTEGER,
    I$OBJ_NAME VARCHAR(100),
    I$IS_AUTO SMALLINT,
    I$TEXT_NOTES BLOB SUB_TYPE 1 SEGMENT SIZE 80 = null,
    I$NOTES_DELETE SMALLINT = 0)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_STRUCT_DELETE (
    I$OBJ_ID BIGINT)
RETURNS (
    ERROR_TEXT VARCHAR(10))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_STRUCT_POINTS_DELETE (
    I$OBJ_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_STRUCT_POINTS_GET (
    I$STRUCT_ID BIGINT = null)
RETURNS (
    OBJ_ID BIGINT,
    STRUCT_ID BIGINT,
    Q_TYPE_ID SMALLINT,
    Q_ORDER INTEGER,
    Q_MAX_SCORE SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_STRUCT_POINTS_SET (
    I$OBJ_ID BIGINT,
    I$STRUCT_ID BIGINT,
    I$Q_TYPE_ID SMALLINT,
    I$Q_ORDER SMALLINT,
    I$Q_LEVEL SMALLINT,
    I$Q_MAX_SCORE SMALLINT,
    I$CHARSET_ID SMALLINT = null,
    I$TEXT_NOTES VARCHAR(8000) = null,
    I$WND_MIN FLOAT = null,
    I$WND_MAX FLOAT = null)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_STRUCT_POINT_DELETE (
    I$OBJ_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_STRUCT_VALIDATE (
    I$OBJ_ID BIGINT)
RETURNS (
    ERROR_TEXT VARCHAR(10))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_SYNC_EXPERT (
    I$EXAM_ID BIGINT,
    I$OU_ID INTEGER,
    I$OBJ_ID BIGINT,
    I$DATE_ADD TIMESTAMP,
    I$DATE_MODIFY TIMESTAMP,
    I$DATE_DEL TIMESTAMP,
    I$PERSON_ID BIGINT,
    I$ROLE_ID INTEGER,
    I$SECOND_CHECK SMALLINT,
    I$TEACHER_ID BIGINT,
    I$ORG_ID BIGINT,
    I$USERNAME VARCHAR(100),
    I$PWD VARCHAR(100),
    I$IS_ACTIVE SMALLINT,
    I$NAME_LAST VARCHAR(400),
    I$NAME_FIRST VARCHAR(400),
    I$NAME_MID VARCHAR(400),
    I$DATE_ADD2 TIMESTAMP,
    I$DATE_MODIFY2 TIMESTAMP,
    I$DATE_DEL2 TIMESTAMP)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_SYNC_MEMBER (
    I$EXAM_ID BIGINT,
    I$OU_ID INTEGER,
    I$OBJ_ID BIGINT,
    I$DATE_ADD TIMESTAMP,
    I$DATE_MODIFY TIMESTAMP,
    I$DATE_DEL TIMESTAMP,
    I$PERSON_ID BIGINT,
    I$LOCAL_ID VARCHAR(40),
    I$BLANKS_PRINTED SMALLINT,
    I$LEVEL_ID SMALLINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_TASK_TOTAL_RECALC (
    I$TASK_ID BIGINT,
    I$STATE_ID INTEGER,
    I$RAW_SUM INTEGER,
    I$UPDATE INTEGER = 1)
RETURNS (
    RAW_RESULT INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_VARS_LIST (
    I$OBJ_ID BIGINT = null)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_VARS_SET (
    I$OBJ_ID BIGINT,
    I$TEST_ID BIGINT,
    I$NUM SMALLINT,
    I$OBJ_NAME VARCHAR(1000),
    I$EXAM_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    OBJ_NAME VARCHAR(1000),
    NUM INTEGER,
    IS_USED SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_VAR_DELETE (
    I$OBJ_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_VAR_FILE_DEL (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(100))
RETURNS (
    OBJ_ID BIGINT,
    CONTENT_TYPE VARCHAR(10))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_VAR_FILE_GET (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(100))
RETURNS (
    CONTENT_DATA BLOB SUB_TYPE 0 SEGMENT SIZE 80,
    OBJ_NAME VARCHAR(1000),
    CONTENT_TYPE VARCHAR(40))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_VAR_GET (
    I$TEST_ID BIGINT,
    I$OBJ_ID BIGINT)
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_VAR_PRINT (
    I$EXAM_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$VAR_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    VARIANT_ID BIGINT,
    VARIANT_NUM INTEGER,
    POINT_INDEX INTEGER,
    POINT_LEVEL SMALLINT,
    POINT_SCORE SMALLINT,
    TEXT_NOTES VARCHAR(8000),
    QUESTION_TYPE SMALLINT,
    QUESTION_DATA BLOB SUB_TYPE 1 SEGMENT SIZE 80,
    ANSWER_INDEX INTEGER,
    ANSWER_DATA BLOB SUB_TYPE 1 SEGMENT SIZE 80)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_VAR_QUESTIONS_GET (
    I$VAR_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    VAR_ID BIGINT,
    STRUCT_POINT_ID BIGINT,
    QUESTION_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_VAR_QUESTIONS_SET (
    I$OBJ_ID BIGINT,
    I$VAR_ID BIGINT,
    I$STRUCT_POINT_ID BIGINT,
    I$QUESTION_ID BIGINT,
    I$ORDER_INDEX INTEGER,
    I$STATUS SMALLINT = 1)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TEST_VAR_QUESTION_DELETE (
    I$OBJ_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_TIME_SUBMIT (
    I$QUESTION_ID BIGINT,
    I$TIME INTEGER)
RETURNS (
    STATUS_CODE INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_USER_TO_EXPERT (
    I$USER_ID VARCHAR(40))
RETURNS (
    EXPERT_ID BIGINT,
    EXPERT_ROLE SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_VALIDATE_ANSWER_01 (
    I$QUESTION_ID BIGINT,
    I$ANSWER_DATA VARCHAR(4000) NOT NULL)
RETURNS (
    STATE_ID INTEGER,
    RATE INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_VALIDATE_ANSWER_02 (
    I$QUESTION_ID BIGINT,
    I$ANSWER_DATA VARCHAR(4000) NOT NULL)
RETURNS (
    STATE_ID INTEGER,
    RATE INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_VALIDATE_ANSWER_04 (
    I$QUESTION_ID BIGINT,
    I$ANSWER_DATA VARCHAR(4000) NOT NULL)
RETURNS (
    STATE_ID INTEGER,
    RATE INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_VALIDATE_ANSWER_05 (
    I$QUESTION_ID BIGINT,
    I$ANSWER_DATA VARCHAR(4000) NOT NULL)
RETURNS (
    STATE_ID INTEGER,
    RATE INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_VARIANTS_GET (
    I$EXAM_ID BIGINT,
    I$TEST_ID BIGINT)
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_VERIFY_ANSWERS_APPLY (
    I$BLANK_ID BIGINT,
    I$SESSION_ID BIGINT,
    I$VARIANT_ID BIGINT)
RETURNS (
    STATE_ID SMALLINT,
    RAW_RESULT INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_VERIFY_ANSWERS_DICT (
    I$VARIANT_ID BIGINT,
    I$ATTR_NAME VARCHAR(100),
    I$ATTR_VALUE VARCHAR(100),
    I$STATE SMALLINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE UT_VERIFY_ATTR_SUBMIT (
    I$BLANK_ID BIGINT,
    I$USER_ID VARCHAR(40),
    I$ATTR_NAME VARCHAR(40),
    I$ATTR_VALUE VARCHAR(100),
    I$STATE SMALLINT)
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_VERIFY_NEXT_TASK (
    I$EXAM_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_VERIFY_QUESTIONS_LIST (
    I$VARIANT_ID BIGINT)
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_VERIFY_RUN_C (
    I$EXAM_ID BIGINT,
    I$BLANK_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE UT_VERIFY_TASK_ASCLEAN (
    I$BLANK_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_VERIFY_TASK_ASINC (
    I$BLANK_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_VERIFY_TASK_DEFER (
    I$BLANK_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_VERIFY_TASK_FORWARD (
    I$BLANK_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE UT_VERIFY_TASK_SUBMIT (
    I$BLANK_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE VACANCY_GET_CAT (
    I$OBJ_ID BIGINT)
RETURNS (
    VAL VARCHAR(1000),
    LISTVAL_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE VACANCY_NUM_OCCUPIED (
    OBJ_ID BIGINT)
RETURNS (
    VAL NUMERIC(15,5))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE VACANCY_NUM_TEMPFREE (
    OBJ_ID BIGINT)
RETURNS (
    VAL NUMERIC(15,5))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE VACANCY_UPDATE_CAT (
    I$OBJ_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE VACATION_ADD (
    I$PERSON_ID BIGINT,
    I$JOB_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$PLAN_TYPE BIGINT,
    I$TYPE_ID BIGINT,
    I$DATE_FROM DATE,
    I$DATE_TO DATE,
    I$PERIOD INTEGER,
    I$DAYS INTEGER,
    I$COMMENTS VARCHAR(1000),
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE VACATION_ADD_OU (
    I$YEAR INTEGER NOT NULL,
    I$USER_ID VARCHAR(40))
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE VACATION_APPROVE (
    I$OBJ_ID BIGINT,
    I$STATE_ID BIGINT,
    I$USER_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE VACATION_CHECK_EXISTS (
    I$PERSON_ID BIGINT,
    I$JOB_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$PLAN_TYPE BIGINT,
    I$DATE_FROM DATE,
    I$DATE_TO DATE)
RETURNS (
    VAC_EXISTS SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE VACATION_CLONE (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    OBJ_ID BIGINT,
    JOB_ID BIGINT,
    TYPE_ID BIGINT,
    TYPE_NAME VARCHAR(100),
    PLAN_TYPE BIGINT,
    DATE_FROM VARCHAR(40),
    DATE_TO VARCHAR(40),
    DAYS INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE VACATION_DAYS_REST (
    I$OBJ_ID BIGINT)
RETURNS (
    N INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE VACATION_DELETE (
    I$PARENT_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE VACATION_DELETE_PLAN (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE VACATION_GET (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE VALIDATE_CURRENT_YEAR (
    I$YEAR_LV BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE VALIDATE_DEFAULT_JOB (
    I$OBJ_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE VALIDATE_KUG (
    I$OBJ_ID BIGINT,
    I$YEAR_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE VALIDATE_LAST_JOB (
    I$OBJ_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE VAL_ADD (
    I$PARAM_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$VAL VARCHAR(4000),
    I$USER_ID BIGINT = null,
    I$IS_DEL SMALLINT = 0,
    I$PROCESS_TAG SMALLINT = 1,
    I$LINK_ID BIGINT = null)
RETURNS (
    BLOB_ID BIGINT,
    REFRESH_FLAG VARCHAR(100),
    ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE VAL_ADD_AFTER (
    I$PARAM_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$VAL VARCHAR(4000),
    I$USER_ID BIGINT,
    I$IS_DEL SMALLINT,
    I$PROCESS_TAG SMALLINT,
    TAG VARCHAR(100),
    LANG_CODE VARCHAR(2),
    TYPE_ID BIGINT)
RETURNS (
    BLOB_ID BIGINT,
    REFRESH_FLAG VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE VAL_DOCUMENT_CHECK (
    I$OBJ_ID BIGINT,
    I$PARAM_ID BIGINT,
    I$VAL VARCHAR(4000),
    I$IS_DEL SMALLINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE VAL_GET (
    I$OBJ_ID BIGINT,
    I$PARAM_ID BIGINT,
    I$IS_DEL SMALLINT = 0,
    I$USER_ID BIGINT = 1,
    I$PARENT_ID BIGINT = null)
RETURNS (
    I BIGINT,
    F DOUBLE PRECISION,
    DT TIMESTAMP,
    D DATE,
    T TIME,
    V VARCHAR(4000),
    SORT_ORDER DOUBLE PRECISION,
    USER_ID BIGINT,
    IS_EXISTS INTEGER,
    V_LONG VARCHAR(4000),
    COST FLOAT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE VAL_SERIALIZE (
    I$OBJ_ID BIGINT,
    I$PARAM_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(2000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE VAL_SQL_QUERY_GET_INT (
    I$1 INTEGER,
    I$2 INTEGER)
RETURNS (
    V VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE VAL_TAG_GET (
    I$OBJ_ID BIGINT,
    I$TAG VARCHAR(100))
RETURNS (
    I BIGINT,
    F DOUBLE PRECISION,
    DT TIMESTAMP,
    D DATE,
    T TIME,
    V VARCHAR(4000),
    SORT_ORDER DOUBLE PRECISION,
    USER_ID BIGINT,
    IS_EXISTS INTEGER,
    V_LONG VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE VARGRP_APPLY (
    I$STAGE_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$NAME VARCHAR(1000),
    I$MASK BIGINT,
    I$DELETE SMALLINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    OBJ_ID BIGINT,
    TYPE_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE VARGRP_GUP_ASSIGN (
    I$OBJ_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE VARGRP_MOVE_PUPIL (
    I$PUPIL_ID BIGINT,
    I$GROUP_ID BIGINT,
    I$ORDER_NUM VARCHAR(100),
    I$ORDER_DATE DATE,
    I$ACTION_DATE DATE,
    I$ACTION_TYPE SMALLINT,
    I$USER_ID VARCHAR(40),
    I$ORDER_ID BIGINT = NULL,
    I$MOVE_TYPE BIGINT = NULL,
    I$MOVE_SOURCE BIGINT = 903)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE VERIFY_ADMIN2 (
    I$FROM VARCHAR(1000),
    I$RT VARCHAR(100),
    I$OLD_RT VARCHAR(100) = NULL)
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE VERIFY_ALL (
    I$OBJ_ID BIGINT,
    I$USER_ID BIGINT = 1)
RETURNS (
    LINK_ID BIGINT,
    OBJECT_ID BIGINT,
    PARENT_ID BIGINT,
    NAME_TASK VARCHAR(1000),
    ERROR_NAME VARCHAR(1000),
    PARAMS_NAME VARCHAR(1000),
    ERROR_TEXT VARCHAR(1000),
    ERROR_TYPE SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE VERIFY_ALL_DICT (
    I$LEVEL_ID BIGINT)
RETURNS (
    TYPE_ID BIGINT,
    TYPE_NAME VARCHAR(400),
    PARAM_ID BIGINT,
    PARAM_NAME VARCHAR(400),
    PARAM_TYPE_ID BIGINT,
    PARAM_TYPE_NAME VARCHAR(100),
    VAL_REQUIRED SMALLINT,
    VAL_CHECK SMALLINT,
    VAL_MASK VARCHAR(400),
    VAL_EXTRA VARCHAR(400),
    BLOCK_NAME VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE VERIFY_AOOP_TYPES (
    I$OBJ_ID BIGINT,
    I$OP_TYPE BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE VERIFY_ATT_TYPE (
    I$OBJ_ID BIGINT,
    I$VAL BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE VERIFY_BUILDING (
    I$OBJ_ID BIGINT,
    I$USER_ID BIGINT = 1)
RETURNS (
    LINK_ID BIGINT,
    OBJECT_ID BIGINT,
    PARENT_ID BIGINT,
    NAME_TASK VARCHAR(1000),
    ERROR_NAME VARCHAR(1000),
    PARAMS_NAME VARCHAR(1000),
    ERROR_TEXT VARCHAR(1000),
    ERROR_TYPE SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE VERIFY_BUILDING_DICT (
    I$LEVEL_ID BIGINT)
RETURNS (
    TYPE_ID BIGINT,
    TYPE_NAME VARCHAR(400),
    PARAM_ID BIGINT,
    PARAM_NAME VARCHAR(400),
    PARAM_TYPE_ID BIGINT,
    PARAM_TYPE_NAME VARCHAR(100),
    VAL_REQUIRED SMALLINT,
    VAL_CHECK SMALLINT,
    VAL_MASK VARCHAR(400),
    VAL_EXTRA VARCHAR(400))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE VERIFY_CLASS (
    I$OBJ_ID BIGINT)
RETURNS (
    LINK_ID BIGINT,
    OBJECT_ID BIGINT,
    PARENT_ID BIGINT,
    NAME_TASK VARCHAR(1000),
    ERROR_NAME VARCHAR(1000),
    PARAMS_NAME VARCHAR(1000),
    ERROR_TEXT VARCHAR(1000),
    ERROR_TYPE SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE VERIFY_CLASS_DICT (
    I$LEVEL_ID BIGINT)
RETURNS (
    TYPE_ID BIGINT,
    TYPE_NAME VARCHAR(400),
    PARAM_ID BIGINT,
    PARAM_NAME VARCHAR(400),
    PARAM_TYPE_ID BIGINT,
    PARAM_TYPE_NAME VARCHAR(100),
    VAL_REQUIRED SMALLINT,
    VAL_CHECK SMALLINT,
    VAL_MASK VARCHAR(400),
    VAL_EXTRA VARCHAR(400))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE VERIFY_CURRENT_CLASS (
    I$CLASS_ID BIGINT,
    I$CURRSUFFIX VARCHAR(400))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE VERIFY_DOCS (
    I$OBJ_ID BIGINT)
RETURNS (
    LINK_ID BIGINT,
    OBJECT_ID BIGINT,
    PARENT_ID BIGINT,
    NAME_TASK VARCHAR(1000),
    ERROR_NAME VARCHAR(1000),
    PARAMS_NAME VARCHAR(1000),
    ERROR_TEXT VARCHAR(1000),
    ERROR_TYPE SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE VERIFY_DOCS_DICT (
    I$LEVEL_ID BIGINT)
RETURNS (
    TYPE_ID BIGINT,
    TYPE_NAME VARCHAR(400),
    PARAM_ID BIGINT,
    PARAM_NAME VARCHAR(400),
    PARAM_TYPE_ID BIGINT,
    PARAM_TYPE_NAME VARCHAR(100),
    VAL_REQUIRED SMALLINT,
    VAL_CHECK SMALLINT,
    VAL_MASK VARCHAR(400),
    VAL_EXTRA VARCHAR(400))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE VERIFY_FOOD_BENEFIT_APP_EXPORT (
    I$OBJ_ID BIGINT,
    I$USER_ID BIGINT)
RETURNS (
    LINK_ID BIGINT,
    OBJECT_ID BIGINT,
    NAME_TASK VARCHAR(1000),
    ERROR_NAME VARCHAR(1000),
    PARAMS_NAME VARCHAR(1000),
    ERROR_TEXT VARCHAR(1000),
    ERROR_TYPE SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE VERIFY_FUTURE_CLASS (
    I$CLASS_ID BIGINT,
    I$SUFFIX VARCHAR(1000))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE VERIFY_GIA (
    I$OBJ_ID BIGINT,
    I$VPL_CHECKS SMALLINT = 0)
RETURNS (
    LINK_ID BIGINT,
    OBJECT_ID BIGINT,
    PARENT_ID BIGINT,
    NAME_TASK VARCHAR(1000),
    ERROR_NAME VARCHAR(1000),
    PARAMS_NAME VARCHAR(1000),
    ERROR_TEXT VARCHAR(1000),
    ERROR_TYPE SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE VERIFY_GIA_DICT (
    I$LEVEL_ID BIGINT)
RETURNS (
    TYPE_ID BIGINT,
    TYPE_NAME VARCHAR(400),
    PARAM_ID BIGINT,
    PARAM_NAME VARCHAR(400),
    PARAM_TYPE_ID BIGINT,
    PARAM_TYPE_NAME VARCHAR(100),
    VAL_REQUIRED SMALLINT,
    VAL_CHECK SMALLINT,
    VAL_MASK VARCHAR(400),
    VAL_EXTRA VARCHAR(400))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE VERIFY_MONITORING (
    I$OBJ_ID BIGINT)
RETURNS (
    LINK_ID BIGINT,
    OBJECT_ID BIGINT,
    PARENT_ID BIGINT,
    NAME_TASK VARCHAR(1000),
    ERROR_NAME VARCHAR(1000),
    PARAMS_NAME VARCHAR(1000),
    ERROR_TEXT VARCHAR(1000),
    ERROR_TYPE SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE VERIFY_MONITORING_DICT (
    I$LEVEL_ID BIGINT)
RETURNS (
    TYPE_ID BIGINT,
    TYPE_NAME VARCHAR(400),
    PARAM_ID BIGINT,
    PARAM_NAME VARCHAR(400),
    PARAM_TYPE_ID BIGINT,
    PARAM_TYPE_NAME VARCHAR(100),
    VAL_REQUIRED SMALLINT,
    VAL_CHECK SMALLINT,
    VAL_MASK VARCHAR(400),
    VAL_EXTRA VARCHAR(400))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE VERIFY_MOVEMENT (
    I$OBJ_ID BIGINT,
    I$USER_ID BIGINT = 1,
    FLGERR1 SMALLINT = 0,
    FLGERR2 SMALLINT = 0,
    FLGERR3 SMALLINT = 0,
    FLGERR4 SMALLINT = 0,
    FLGERR5 SMALLINT = 0,
    FLGERR6 SMALLINT = 0,
    FLGERR7 SMALLINT = 0,
    FLGERR8 SMALLINT = 0,
    FLGERR9 SMALLINT = 0,
    FLGERR10 SMALLINT = 0,
    FLGERR11 SMALLINT = 0,
    FLGERR12 SMALLINT = 0,
    FLGERR13 SMALLINT = 0,
    FLGERR14 SMALLINT = 0)
RETURNS (
    LINK_ID BIGINT,
    SCHOOLAR_ID BIGINT,
    PARENT_ID BIGINT,
    NAME_TASK VARCHAR(1000),
    ERROR_NAME VARCHAR(1000),
    PARAMS_NAME VARCHAR(1000),
    LOCATION VARCHAR(1000),
    PUPIL VARCHAR(1000),
    ERROR_TEXT VARCHAR(1000),
    ERROR_TYPE SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE VERIFY_MOVEMENT_DICT (
    I$LEVEL_ID BIGINT)
RETURNS (
    TYPE_ID BIGINT,
    TYPE_NAME VARCHAR(400),
    PARAM_ID BIGINT,
    PARAM_NAME VARCHAR(400),
    PARAM_TYPE_ID BIGINT,
    PARAM_TYPE_NAME VARCHAR(100),
    VAL_REQUIRED SMALLINT,
    VAL_CHECK SMALLINT,
    VAL_MASK VARCHAR(400),
    VAL_EXTRA VARCHAR(400))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE VERIFY_MTR (
    I$OBJ_ID BIGINT)
RETURNS (
    LINK_ID BIGINT,
    OBJECT_ID BIGINT,
    PARENT_ID BIGINT,
    NAME_TASK VARCHAR(1000),
    ERROR_NAME VARCHAR(1000),
    PARAMS_NAME VARCHAR(1000),
    ERROR_TEXT VARCHAR(1000),
    ERROR_TYPE SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE VERIFY_MTR_DICT (
    I$LEVEL_ID BIGINT)
RETURNS (
    TYPE_ID BIGINT,
    TYPE_NAME VARCHAR(400),
    PARAM_ID BIGINT,
    PARAM_NAME VARCHAR(400),
    PARAM_TYPE_ID BIGINT,
    PARAM_TYPE_NAME VARCHAR(100),
    VAL_REQUIRED SMALLINT,
    VAL_CHECK SMALLINT,
    VAL_MASK VARCHAR(400),
    VAL_EXTRA VARCHAR(400))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE VERIFY_OBJECT_FIELDS (
    I$OBJ_ID BIGINT,
    I$TYPE_ID BIGINT,
    I$SUBTITLE VARCHAR(100),
    I$TITLE VARCHAR(400))
RETURNS (
    ERROR_TYPE SMALLINT,
    PARAM_ID BIGINT,
    PARAMS_NAME VARCHAR(400),
    ERROR_NAME VARCHAR(1000),
    ERROR_TEXT VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE VERIFY_OP (
    I$OBJ_ID BIGINT)
RETURNS (
    LINK_ID BIGINT,
    OBJECT_ID BIGINT,
    PARENT_ID BIGINT,
    NAME_TASK VARCHAR(1000),
    ERROR_NAME VARCHAR(1000),
    PARAMS_NAME VARCHAR(1000),
    ERROR_TEXT VARCHAR(1000),
    ERROR_TYPE SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE VERIFY_OP_DICT (
    I$LEVEL_ID BIGINT)
RETURNS (
    TYPE_ID BIGINT,
    TYPE_NAME VARCHAR(400),
    PARAM_ID BIGINT,
    PARAM_NAME VARCHAR(400),
    PARAM_TYPE_ID BIGINT,
    PARAM_TYPE_NAME VARCHAR(100),
    VAL_REQUIRED SMALLINT,
    VAL_CHECK SMALLINT,
    VAL_MASK VARCHAR(400),
    VAL_EXTRA VARCHAR(400))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE VERIFY_OP_DURATION (
    I$OBJ_ID BIGINT,
    I$VAL VARCHAR(1000))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE VERIFY_PARAM_ADD (
    I$OBJ_ID BIGINT,
    I$TYPE_ID BIGINT,
    I$PARAM_ID BIGINT,
    I$MATCH_VAL_ID BIGINT,
    I$MATCH_VAL VARCHAR(4000),
    I$LIVE_ID BIGINT,
    I$ACTIVE BIGINT,
    I$MINVAL DOUBLE PRECISION,
    I$MAXVAL DOUBLE PRECISION,
    I$USER_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE VERIFY_PARAM_GET (
    I$OBJ_ID BIGINT)
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE VERIFY_POST (
    I$OBJ_ID BIGINT)
RETURNS (
    LINK_ID BIGINT,
    OBJECT_ID BIGINT,
    PARENT_ID BIGINT,
    NAME_TASK VARCHAR(1000),
    ERROR_NAME VARCHAR(1000),
    PARAMS_NAME VARCHAR(1000),
    ERROR_TEXT VARCHAR(1000),
    ERROR_TYPE SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE VERIFY_POST_DICT (
    I$LEVEL_ID BIGINT)
RETURNS (
    TYPE_ID BIGINT,
    TYPE_NAME VARCHAR(400),
    PARAM_ID BIGINT,
    PARAM_NAME VARCHAR(400),
    PARAM_TYPE_ID BIGINT,
    PARAM_TYPE_NAME VARCHAR(100),
    VAL_REQUIRED SMALLINT,
    VAL_CHECK SMALLINT,
    VAL_MASK VARCHAR(400),
    VAL_EXTRA VARCHAR(400))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE VERIFY_PUPIL (
    I$OBJ_ID BIGINT)
RETURNS (
    LINK_ID BIGINT,
    OBJECT_ID BIGINT,
    PARENT_ID BIGINT,
    NAME_TASK VARCHAR(1000),
    ERROR_NAME VARCHAR(1000),
    PARAMS_NAME VARCHAR(1000),
    ERROR_TEXT VARCHAR(1000),
    ERROR_TYPE SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE VERIFY_PUPIL_DICT (
    I$LEVEL_ID BIGINT)
RETURNS (
    TYPE_ID BIGINT,
    TYPE_NAME VARCHAR(400),
    PARAM_ID BIGINT,
    PARAM_NAME VARCHAR(400),
    PARAM_TYPE_ID BIGINT,
    PARAM_TYPE_NAME VARCHAR(100),
    VAL_REQUIRED SMALLINT,
    VAL_CHECK SMALLINT,
    VAL_MASK VARCHAR(400),
    VAL_EXTRA VARCHAR(400))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE VERIFY_SUBJECT (
    I$OBJ_ID BIGINT)
RETURNS (
    LINK_ID BIGINT,
    OBJECT_ID BIGINT,
    PARENT_ID BIGINT,
    NAME_TASK VARCHAR(1000),
    ERROR_NAME VARCHAR(1000),
    PARAMS_NAME VARCHAR(1000),
    ERROR_TEXT VARCHAR(1000),
    ERROR_TYPE SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE VERIFY_SUBJECT_DICT (
    I$LEVEL_ID BIGINT)
RETURNS (
    TYPE_ID BIGINT,
    TYPE_NAME VARCHAR(400),
    PARAM_ID BIGINT,
    PARAM_NAME VARCHAR(400),
    PARAM_TYPE_ID BIGINT,
    PARAM_TYPE_NAME VARCHAR(100),
    VAL_REQUIRED SMALLINT,
    VAL_CHECK SMALLINT,
    VAL_MASK VARCHAR(400),
    VAL_EXTRA VARCHAR(400))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE VERIFY_TIMETABLE (
    I$OBJ_ID BIGINT)
RETURNS (
    LINK_ID BIGINT,
    OBJECT_ID BIGINT,
    PARENT_ID BIGINT,
    NAME_TASK VARCHAR(1000),
    ERROR_NAME VARCHAR(1000),
    PARAMS_NAME VARCHAR(1000),
    ERROR_TEXT VARCHAR(1000),
    ERROR_TYPE SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE VERIFY_TIMETABLE_DICT (
    I$LEVEL_ID BIGINT)
RETURNS (
    TYPE_ID BIGINT,
    TYPE_NAME VARCHAR(400),
    PARAM_ID BIGINT,
    PARAM_NAME VARCHAR(400),
    PARAM_TYPE_ID BIGINT,
    PARAM_TYPE_NAME VARCHAR(100),
    VAL_REQUIRED SMALLINT,
    VAL_CHECK SMALLINT,
    VAL_MASK VARCHAR(400),
    VAL_EXTRA VARCHAR(400))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE VERIFY_UP_STD (
    I$OBJ_ID BIGINT,
    I$VAL BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE VERIFY_USER2 (
    I$NAME VARCHAR(100),
    I$PASSWORD VARCHAR(200),
    I$FROM VARCHAR(1000),
    I$ID VARCHAR(40),
    I$RT VARCHAR(100),
    I$OLD_RT VARCHAR(100) = NULL,
    I$PASSWORD2 VARCHAR(200) = NULL)
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE VERIFY_WORKERS (
    I$OBJ_ID BIGINT)
RETURNS (
    LINK_ID BIGINT,
    OBJECT_ID BIGINT,
    PARENT_ID BIGINT,
    NAME_TASK VARCHAR(1000),
    ERROR_NAME VARCHAR(1000),
    PARAMS_NAME VARCHAR(1000),
    ERROR_TEXT VARCHAR(1000),
    ERROR_TYPE SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE VERIFY_WORKERS2 (
    I$OBJ_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE VERIFY_WORKERS_DICT (
    I$LEVEL_ID BIGINT)
RETURNS (
    TYPE_ID BIGINT,
    TYPE_NAME VARCHAR(400),
    PARAM_ID BIGINT,
    PARAM_NAME VARCHAR(400),
    PARAM_TYPE_ID BIGINT,
    PARAM_TYPE_NAME VARCHAR(100),
    VAL_REQUIRED SMALLINT,
    VAL_CHECK SMALLINT,
    VAL_MASK VARCHAR(400),
    VAL_EXTRA VARCHAR(400))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE VERIFY_YEAR_CHANGER (
    I$USER_ID BIGINT)
RETURNS (
    LINK_ID BIGINT,
    SCHOOLAR_ID BIGINT,
    NAME_TASK VARCHAR(1000),
    ERROR_NAME VARCHAR(1000),
    PARAMS_NAME VARCHAR(1000),
    LOCATION VARCHAR(1000),
    PUPIL VARCHAR(1000),
    ERROR_TEXT VARCHAR(1000),
    ERROR_TYPE SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE VOSP_MEMBERS_LIST (
    I$LESSON_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT,
    MG_ID BIGINT,
    DATE_MODIFY TIMESTAMP)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE VOSP_PLAN_DELETE (
    I$OBJ_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE WORKDAYS_TO_TEXT (
    V VARCHAR(10))
RETURNS (
    VAL VARCHAR(100))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE WORKTAB_ADD (
    I$PARENT_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE WORKTAB_CHANGE (
    I$OBJ_ID BIGINT,
    I$OP VARCHAR(100),
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE WORKTAB_DELETE (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE WORKTAB_DT_SET (
    I$OBJ_ID BIGINT NOT NULL,
    I$DATE_FROM DATE NOT NULL,
    I$DATE_TO DATE NOT NULL,
    I$USER_ID VARCHAR(40) NOT NULL)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE WORKTAB_GET (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40),
    I$TM TIMESTAMP = NULL)
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE WORKTAB_PERSON_FIND (
    I$OBJ_ID BIGINT,
    I$NAME VARCHAR(400),
    I$JOB VARCHAR(400))
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE WORKTAB_SETTINGS (
    I$USER_ID VARCHAR(40),
    I$VERIFY SMALLINT = 0)
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE WORKTAB_SETTINGS_DEL (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE WORKTAB_SETTINGS_GET (
    I$PARENT_ID BIGINT NOT NULL,
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE WORKTAB_SETTINGS_SET (
    I$PARENT_ID BIGINT,
    I$OBJ_ID BIGINT,
    I$NAME VARCHAR(400),
    I$EX_PERSON BIGINT,
    I$RESP_PERSON BIGINT,
    I$JOBS VARCHAR(4000),
    I$PERSONS VARCHAR(4000),
    I$COLUMNS VARCHAR(1000),
    I$USER_ID VARCHAR(40))
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE WORKTAB_SET_COL_DEL (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE WORKTAB_SET_COL_GET (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE WORKTAB_SET_COL_SET (
    I$OBJ_ID BIGINT,
    I$VALUE VARCHAR(100),
    I$SORT_INDEX SMALLINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE WORKTAB_SET_GROUP_DEL (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE WORKTAB_SET_GROUP_GET (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE WORKTAB_SET_GROUP_SET (
    I$OBJ_ID BIGINT,
    I$VALUE VARCHAR(1000),
    I$USER_ID VARCHAR(40))
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE WORKTAB_SET_TYPE_DEL (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE WORKTAB_SET_TYPE_GET (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE WORKTAB_SET_TYPE_SET (
    I$OBJ_ID BIGINT,
    I$VALUE VARCHAR(1000),
    I$CODE VARCHAR(10),
    I$TYPE_ID SMALLINT,
    I$WANT_HOURS SMALLINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE WORKTAB_UPDATE_EXTRA (
    I$OBJ_ID BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE WORKTAB_VAL_IMPORT (
    I$ROW_ID BIGINT,
    I$COL_ID BIGINT,
    I$COL_NAME VARCHAR(400),
    I$CODES VARCHAR(1000),
    I$VALUES VARCHAR(1000))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE WORKTAB_VAL_SET (
    I$PARENT_ID BIGINT NOT NULL,
    I$OBJ_ID BIGINT,
    I$PERSON_ID BIGINT,
    I$JOB_ID BIGINT,
    I$COL_ID BIGINT,
    I$TYPE_ID BIGINT,
    I$VALUE VARCHAR(1000),
    I$USER_ID VARCHAR(40))
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE WORKTIME_GET (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE WORKTIME_SET (
    I$PARENT_ID BIGINT NOT NULL,
    I$DAY BIGINT NOT NULL,
    I$TIMEFROM INTEGER NOT NULL,
    I$TIMETO INTEGER NOT NULL)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE WORK_DIFF (
    I$DATE DATE,
    I$DAYS INTEGER)
RETURNS (
    RESULT DATE)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE WSTAGE_LIST (
    I$OBJ_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(100),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE WSTAGE_SET (
    I$OBJ_ID BIGINT NOT NULL,
    I$WS_ID BIGINT,
    I$TYPE_ID BIGINT,
    I$DATE1 DATE,
    I$DATE2 DATE,
    I$USER_ID VARCHAR(40))
RETURNS (
    OBJ_ID BIGINT,
    D360 INTEGER)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE YANDEX_HOMETASK_GET (
    I$GROUP VARCHAR(400),
    I$STUDENT VARCHAR(400),
    I$DATE DATE)
RETURNS (
    OBJ_ID BIGINT,
    SUBJECT_NAME VARCHAR(400),
    FROMDATE VARCHAR(20),
    HOMETASK VARCHAR(2000),
    NFILES SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE YANDEX_SCHEDULE_GET (
    I$GROUP VARCHAR(400),
    I$STUDENT VARCHAR(400),
    I$DATE DATE)
RETURNS (
    LESSON_NUM INTEGER,
    SUBJECT_NAME VARCHAR(400),
    IS_REPL SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE YCHANGE_GRADE_DETAILS (
    I$GRADE_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(40),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE YCHANGE_GRADE_MEMBERS (
    I$GRADE_ID BIGINT)
RETURNS (
    PERSON_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE YCHANGE_PLAN_ASSIGN (
    I$PERSON_ID BIGINT,
    I$PLAN_ID BIGINT,
    I$USER_ID VARCHAR(40))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE YCHANGE_PLAN_DETAILS (
    I$GRADE_ID BIGINT,
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(40),
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE YCHANGE_PROCESS (
    I$USER_ID VARCHAR(40))
RETURNS (
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE YCHANGE_REVIEW (
    I$USER_ID VARCHAR(40))
RETURNS (
    TAG_NAME VARCHAR(200),
    VAL VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE YCHANGE_REVIEW_GRADES (
    I$OU_TYPE CHAR(1) = 'O',
    I$GRADE_ID BIGINT = NULL)
RETURNS (
    GRADE_ID BIGINT,
    TYPE_ID BIGINT,
    STAGE_ID_OLD BIGINT,
    STAGE_NAME_OLD VARCHAR(100),
    STAGE_COST_OLD INTEGER,
    STAGE_ID_NEW BIGINT,
    STAGE_NAME_NEW VARCHAR(100),
    STAGE_COST_NEW INTEGER,
    GRADE_NAME_OLD VARCHAR(400),
    GRADE_NAME_NEW VARCHAR(400),
    GRADE_SUFFIX_NEW VARCHAR(400),
    OVZ BIGINT,
    OVZ_YEAR BIGINT,
    CNT_OLD INTEGER,
    CNT_NEW INTEGER,
    IS_OUT BIGINT,
    OVZ_CHANGE SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE YCHANGE_SETATTR (
    I$GRADE_ID BIGINT,
    I$NAME VARCHAR(1000),
    I$ATTR INTEGER,
    I$USER_ID VARCHAR(40))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE YCHANGE_SETCAL (
    I$FROM1 DATE NOT NULL,
    I$TO1 DATE NOT NULL,
    I$FROM2 DATE NOT NULL,
    I$TO2 DATE NOT NULL,
    I$FROM3 DATE NOT NULL,
    I$TO3 DATE NOT NULL,
    I$USER_ID VARCHAR(40))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE Z RETURNS (
    TYPE_ID BIGINT,
    CNT INTEGER,
    TYPE_NAME VARCHAR(4000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE Z_COPY_LEVEL (
    I$FROM BIGINT,
    I$TO BIGINT)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE Z_DEL RETURNS (
    CNT BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE Z_DEL_MOVEMENT RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE Z_DEL_OBJ_TYPE RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE Z_EXPERT_BASE (
    F VARCHAR(255),
    I VARCHAR(255),
    O VARCHAR(255),
    S VARCHAR(255),
    N VARCHAR(255))
RETURNS (
    W VARCHAR(255),
    X INTEGER,
    Y VARCHAR(255),
    Z DATE,
    LISTVAL_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE Z_GUID RETURNS (
    A BIGINT,
    B BIGINT,
    C VARCHAR(36),
    G VARCHAR(36),
    GUID VARCHAR(36),
    D BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE Z_IMPORT_JOBS (
    I$CODE BIGINT,
    I$VALUE VARCHAR(1000),
    I$L SMALLINT = 0)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE Z_IS_FOREIGN_KEY (
    TABLE_NAME VARCHAR(100),
    FIELD_NAME VARCHAR(100))
RETURNS (
    IS_FK SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE Z_IS_PRIMARY_KEY (
    TABLE_NAME VARCHAR(100),
    FIELD_NAME VARCHAR(100))
RETURNS (
    IS_PK SMALLINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE Z_OD_RESULTS (
    I$START_DATE DATE)
RETURNS (
    STUDENT_ID BIGINT,
    STUDENT_NAME VARCHAR(400),
    SNILS VARCHAR(40),
    CLASS_NAME VARCHAR(200),
    SUBJECT_NAME VARCHAR(400),
    RESULT_TYPE VARCHAR(40),
    SUBJECT_ID BIGINT,
    TEACHER_NAME VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE Z_OKPDTR (
    I$CODE BIGINT,
    I$NAME VARCHAR(1000))
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE Z_OU_TO_POSTGRES RETURNS (
    VAL VARCHAR(1000))
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE Z_PLAN_CLONE_TMPL (
    I$OBJ_ID BIGINT)
RETURNS (
    OBJ_ID BIGINT)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE Z_PLAN_CONVERT (
    I$PLAN_ID BIGINT NOT NULL)
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE Z_PP_IMPORT
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE Z_RANDOM_SCUD
AS
BEGIN
END
 ^

CREATE OR ALTER PROCEDURE Z_SCHOLAR (
    I$USER_ID BIGINT)
RETURNS (
    SCHOOL VARCHAR(500),
    CLASS VARCHAR(25),
    F VARCHAR(100),
    I VARCHAR(100),
    O VARCHAR(100),
    SEX VARCHAR(10),
    BIRTHDAY DATE,
    PLACE_OF_BIRTH VARCHAR(1000),
    DT_IN DATE,
    DT_OUT DATE)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE Z_SCHOLAR_IN (
    I$USER_ID BIGINT)
RETURNS (
    SCHOOL VARCHAR(100),
    CLASS VARCHAR(20),
    F VARCHAR(50),
    I VARCHAR(50),
    O VARCHAR(50),
    SEX VARCHAR(10),
    BIRTHDAY DATE,
    PLACE_OF_BIRTH VARCHAR(100),
    DT_IN DATE)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE Z_SCHOLAR_OUT (
    I$USER_ID BIGINT)
RETURNS (
    SCHOOL VARCHAR(100),
    F VARCHAR(50),
    I VARCHAR(50),
    O VARCHAR(50),
    SEX VARCHAR(10),
    BIRTHDAY DATE,
    PLACE_OF_BIRTH VARCHAR(100),
    DT_IN DATE,
    DT_OUT DATE)
AS
BEGIN
  SUSPEND;
END
 ^

CREATE OR ALTER PROCEDURE Z_UPDATE_SPEC (
    TAG VARCHAR(100),
    NAME VARCHAR(1000),
    CAT_NAME VARCHAR(200))
AS
BEGIN
END
 ^

