------------------------------------------------K. Holiday--------------------------------------------------
--Transetup

INSERT INTO TRANSETUP
  (
    tran_window,
    save_flag,
    val_flag,
    key_flag,
    key_string,
    udf_1,
    udf_2,
    udf_3,
    udf_4,
    udf_5,
    repeate_add,
    chg_date ,
    chg_user,
    chg_term,
    edi_option,
    site_acc_col,
    confirm_col,
    confirm_val,
    repeat_add_det,
    repeatadddet,
    load_mode,
    auto_confirm,
    ledg_post_conf,
    chg_date_on_conf,
    tran_id_col,
    mail_option,
    confirm_mode,
    garbage_opt,
    val_flag_edi,
    verify_password,
    cust_acc_col,
    sales_pers_acc_col,
    supp_acc_col,
    item_ser_acc_code,
    emp_acc_col,
    item_ser_acc_col,
    workflow_opt,
    table_name,
    application,
    table_desc,
    tran_date_col,
    tran_id__from,
    tran_id__to,
    table_name_det1,
    table_name_det2,
    table_name_det3,
    multitire_opt,
    ref_ser,
    view_mode,
    tax_forms,
    sign_status,
    user_tran_window,
    custom_preview_obj,
    ignoreerrlist_onload,
    childdata_argopt,
    edit_tmplt,
    wrkflw_init,
    edittax,
    formal_args,
    audit_trail_opt,
    edit_opt,
    cache_opt,
    optimize_mode,
    edit_expr,
    rate_col,
    qty_col,
    edit_expr_inp,
    rcp_cache_status,
    print_control,
    transfer_mode,
    profile_id__res,
    tran_compl_msg,
    period_option,
    wrkflw_priority,
    exec_type,
    disp_meta_data,
    allow_attach,
    start_form,
    isattachment,
    header_form_no,
    msg_onsave,
    wf_status
  )
  VALUES
  (
    'w_hol_param',
    '2',
    '2',
    'M',
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    'Y',
    TO_DATE('8-11-2013 00:00:00','DD-MM-YYYY HH24:MI:SS'),
    'Nikhil',
    'payroll',
    '0',
    'SITE_CODE',
    NULL,
    NULL,
    'Y',
    NULL,
    NULL,
    'N',
    'N',
    NULL,
    'hol_tblno',
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    'F',
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    '0',
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    'M',
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL
  ); 

--System_Events 

INSERT INTO SYSTEM_EVENTS
  (
    obj_name,
    event_code,
    event_context,
    service_code,
    method_rule,
    overwrite_core,
    chg_date,
    chg_user,
    chg_term,
    result_handle,
    comp_type,
    comp_name,
    comm_format
  )
  VALUES
  (
    'hol_param',
    'pre_save',
    '1',
    'presave_holparam',
    NULL,
    '0',
    TO_DATE('8-11-2013 14:58:23','DD-MM-YYYY HH24:MI:SS'),
    'BASE      ',
    'BASE',
    '2',
    'EJB',
    'CopyHolParamPrs',
    NULL
  );

--System_event_services

INSERT INTO SYSTEM_EVENT_SERVICES
  (
    service_code,
    service_descr,
    service_uri,
    service_provider,
    method_name,
    return_value,
    return_type,
    return_descr,
    return_xfrm,
    chg_date,
    chg_user,
    chg_term
  )
  VALUES
  (
    'presave_holparam',
    'preSaveRec',
    'http://172.16.145.69/BaseE12DotNetService6-3-0-135/E12BusinessLogic6-3-0-135.asmx',
    'BASE',
    'preSaveRec',
    'String',
    'S',
    NULL,
    NULL,
    TO_DATE('8-11-2013 14:59:25','DD-MM-YYYY HH24:MI:SS'),
    'BASE',
    'BASE'
  ); 

--System_Service_Args

INSERT INTO SYSTEM_SERVICE_ARGS
  (
    service_code,
    line_no,
    arg_name,
    arg_mode,
    descr,
    arg_type,
    arg_xfrm,
    chg_date,
    chg_user,
    chg_term,
    arg_value
  )
  VALUES
  (
    'presave_holparam',
    1,
    'COMPONENT_TYPE',
    'I',
    NULL,
    'C.String',
    NULL,
    TO_DATE('8-11-2013 15:00:37','DD-MM-YYYY HH24:MI:SS'),
    'BASE',
    'BASE',
    'EJB'
  );
INSERT INTO SYSTEM_SERVICE_ARGS
  (
    service_code,
    line_no,
    arg_name,
    arg_mode,
    descr,
    arg_type,
    arg_xfrm,
    chg_date,
    chg_user,
    chg_term,
    arg_value
  )
  VALUES
  (
    'presave_holparam',
    2,
    'COMPONENT_NAME',
    'I',
    NULL,
    'C.String',
    NULL,
    TO_DATE('8-11-2013 15:00:37','DD-MM-YYYY HH24:MI:SS'),
    'BASE',
    'BASE',
    'CopyHolParamPrs'
  );
INSERT INTO SYSTEM_SERVICE_ARGS
  (
    service_code,
    line_no,
    arg_name,
    arg_mode,
    descr,
    arg_type,
    arg_xfrm,
    chg_date,
    chg_user,
    chg_term,
    arg_value
  )
  VALUES
  (
    'presave_holparam',
    3,
    'XML_DATA',
    'I',
    NULL,
    'S',
    NULL,
    TO_DATE('8-11-2013 15:00:37','DD-MM-YYYY HH24:MI:SS'),
    'BASE',
    'BASE',
    NULL
  );
INSERT INTO SYSTEM_SERVICE_ARGS
  (
    service_code,
    line_no,
    arg_name,
    arg_mode,
    descr,
    arg_type,
    arg_xfrm,
    chg_date,
    chg_user,
    chg_term,
    arg_value
  )
  VALUES
  (
    'presave_holparam',
    4,
    'DOM_ID',
    'I',
    NULL,
    'S',
    NULL,
    TO_DATE('8-11-2013 15:00:37','DD-MM-YYYY HH24:MI:SS'),
    'BASE',
    'BASE',
    NULL
  );
INSERT INTO SYSTEM_SERVICE_ARGS
  (
    service_code,
    line_no,
    arg_name,
    arg_mode,
    descr,
    arg_type,
    arg_xfrm,
    chg_date,
    chg_user,
    chg_term,
    arg_value
  )
  VALUES
  (
    'presave_holparam',
    5,
    'OBJ_CONTEXT',
    'I',
    NULL,
    'S',
    NULL,
    TO_DATE('8-11-2013 15:00:37','DD-MM-YYYY HH24:MI:SS'),
    'BASE',
    'BASE',
    NULL
  );
INSERT INTO SYSTEM_SERVICE_ARGS
  (
    service_code,
    line_no,
    arg_name,
    arg_mode,
    descr,
    arg_type,
    arg_xfrm,
    chg_date,
    chg_user,
    chg_term,
    arg_value
  )
  VALUES
  (
    'presave_holparam',
    6,
    'EDIT_FLAG',
    'I',
    NULL,
    'S',
    NULL,
    TO_DATE('8-11-2013 15:00:37','DD-MM-YYYY HH24:MI:SS'),
    'BASE',
    'BASE',
    NULL
  );
INSERT INTO SYSTEM_SERVICE_ARGS
  (
    service_code,
    line_no,
    arg_name,
    arg_mode,
    descr,
    arg_type,
    arg_xfrm,
    chg_date,
    chg_user,
    chg_term,
    arg_value
  )
  VALUES
  (
    'presave_holparam',
    7,
    'XTRA_PARAMS',
    'I',
    NULL,
    'S',
    NULL,
    TO_DATE('8-11-2013 15:00:37','DD-MM-YYYY HH24:MI:SS'),
    'BASE',
    'BASE',
    NULL
  );
INSERT INTO SYSTEM_SERVICE_ARGS
  (
    service_code,
    line_no,
    arg_name,
    arg_mode,
    descr,
    arg_type,
    arg_xfrm,
    chg_date,
    chg_user,
    chg_term,
    arg_value
  )
  VALUES
  (
    'presave_holparam',
    8,
    'DB_CONN',
    'I',
    NULL,
    'S.Connection',
    NULL,
    TO_DATE('8-11-2013 15:00:37','DD-MM-YYYY HH24:MI:SS'),
    'BASE',
    'BASE',
    NULL
  );

--Obj_Links

INSERT INTO OBJ_LINKS
  (
    obj_name,
    form_no,
    field_name,
    target_obj_name,
    link_form_name,
    link_title,
    link_uri,
    link_type,
    link_arg,
    update_flag,
    link_name,
    rights_char,
    image
  )
  VALUES
  (
    'holiday_tbl',
    '1',
    'hol_tblno',
    'hol_param',
    'hol_param21',
    'Copy Button',
    NULL,
    '4',
    'hol_tblno.String',
    '0',
    NULL,
    '*',
    NULL
  );
 --Messages

INSERT INTO MESSAGES
  (
    msg_no,
    msg_str,
    msg_descr,
    msg_type,
    msg_opt,
    msg_time,
    alarm,
    err_source,
    chg_date,
    chg_user,
    chg_term,
    override_input,
    mail_option
  )
  VALUES
  (
    'NEWTBLINV',
    'Max size is 5 for New Table No',
    'Maximum New Table Number length should be 5 ',
    'E',
    'Y',
    NULL,
    NULL,
    NULL,
    TO_DATE('9-11-2013 00:00:00','DD-MM-YYYY HH24:MI:SS'),
    'Nikhil',
    'payroll',
    NULL,
    NULL
  );
INSERT INTO MESSAGES
  (
    msg_no,
    msg_str,
    msg_descr,
    msg_type,
    msg_opt,
    msg_time,
    alarm,
    err_source,
    chg_date,
    chg_user,
    chg_term,
    override_input,
    mail_option
  )
  VALUES
  (
    'NEWTBLNUL ',
    'New Table No is Mandatory',
    'New Table Number should not be blank',
    'E',
    'Y',
    NULL,
    NULL,
    NULL,
    TO_DATE('9-11-2013 00:00:00','DD-MM-YYYY HH24:MI:SS'),
    'Nikhil',
    'payroll',
    NULL,
    NULL
  );
commit;

---------------------- Employee WOrk Balance ----------------------------

INSERT INTO POPHELP
  (
    FIELD_NAME,
    MOD_NAME,
    SQL_STR,
    DW_OBJECT,
    MSG_TITLE,
    WIDTH,
    HEIGHT,
    CHG_DATE,
    CHG_USER,
    CHG_TERM,
    DIST_OPT,
    FILTER_STRING,
    SQL_INPUT,
    DEFAULT_COL,
    POP_ALIGN,
    QUERY_MODE,
    PAGE_CONTEXT,
    POPHELP_COLS,
    POPHELP_SOURCE,
    MULTI_OPT,
    HELP_OPTION
  )
  VALUES
  (
    'WORK_TBLNO',
    'W_WORK_BALANCE',
    'SELECT WORK_TBLNO, LINE_NO FROM WORK_TABLE ',
    'Work Table No',
    'Work Table No',
    0,0,
    TO_TIMESTAMP('20-MAY-13','DD-MON-RR HH.MI.SSXFF AM'),
    'VENKAT    ',
    'BASE           ',
    '1',
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL
  );
commit;

----------------- It Load ---------------------------

INSERT INTO POPHELP
  (
    FIELD_NAME,
    MOD_NAME,
    SQL_STR,
    DW_OBJECT,
    MSG_TITLE,
    WIDTH,
    HEIGHT,
    CHG_DATE,
    CHG_USER,
    CHG_TERM,
    DIST_OPT,
    FILTER_STRING,
    SQL_INPUT,
    DEFAULT_COL,
    POP_ALIGN,
    QUERY_MODE,
    PAGE_CONTEXT,
    POPHELP_COLS,
    POPHELP_SOURCE,
    MULTI_OPT,
    HELP_OPTION
  )
  VALUES
  (
    'AS_ACCTPRD',
    'W_INCOMETAX_LOAD',
    'SELECT ACCT_PRD, EMP_CODE FROM IT_CALCHDR ',
    'AS ACCTPRD',
    'AS ACCTPRD',
    0,0,
    TO_TIMESTAMP('20-MAY-13','DD-MON-RR HH.MI.SSXFF AM'),
    'VENKAT    ',
    'BASE           ',
    '1',
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL
  );
commit;


INSERT INTO POPHELP
  (
    FIELD_NAME,
    MOD_NAME,
    SQL_STR,
    DW_OBJECT,
    MSG_TITLE,
    WIDTH,
    HEIGHT,
    CHG_DATE,
    CHG_USER,
    CHG_TERM,
    DIST_OPT,
    FILTER_STRING,
    SQL_INPUT,
    DEFAULT_COL,
    POP_ALIGN,
    QUERY_MODE,
    PAGE_CONTEXT,
    POPHELP_COLS,
    POPHELP_SOURCE,
    MULTI_OPT,
    HELP_OPTION
  )
  VALUES
  (
    'AS_EMPCD',
    'W_INCOMETAX_LOAD',
    'SELECT EMP_CODE,ACCT_PRD FROM IT_CALCHDR ',
    'AS ACCTPRD',
    'AS EMP CODE',
    0,0,
    TO_TIMESTAMP('20-MAY-13','DD-MON-RR HH.MI.SSXFF AM'),
    'VENKAT    ',
    'BASE           ',
    '1',
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL
  );
commit;

------------------- Arrears Load ----------------------

INSERT INTO obj_actions
  (
    obj_name,
    line_no,
    rights_char,
    interactive,
    service_code,
    description,
    title,
    image,
    action_type,
    form_no,
    service_handler,
    placement,
    tran_type
  )
  VALUES
  (
    'emparrears',
    1,
    'A',
    NULL,
    NULL,
    NULL,
    'Add',
    'add.gif',
    'S',
    '1',
    NULL,
    NULL,
    NULL
  );
COMMIT;
INSERT INTO OBJ_ACTIONS
  (
    OBJ_NAME,
    LINE_NO,
    RIGHTS_CHAR,
    INTERACTIVE,
    SERVICE_CODE,
    DESCRIPTION,
    TITLE,
    IMAGE,
    ACTION_TYPE,
    FORM_NO,
    SERVICE_HANDLER,
    PLACEMENT,
    TRAN_TYPE
  )
  VALUES
  (
    'emparrears',
    2,
    'E',
    NULL,
    NULL,
    NULL,
    'Edit',
    'edit.gif',
    'S',
    '1',
    NULL,
    NULL,
    NULL
  );
COMMIT;
 
---------------------- Employee Transfer_sql -----------------

Insert into obj_actions (OBJ_NAME,LINE_NO,IMAGE,DESCRIPTION,SERVICE_CODE,INTERACTIVE,RIGHTS_CHAR,TITLE,FORM_NO,SERVICE_HANDLER,PLACEMENT,ACTION_TYPE,TRAN_TYPE,CHG_DATE,CHG_TERM,CHG_USER) values ('emptransfersql',1,'add.gif',null,null,null,'A','Add','1',null,null,'S',null,null,null,null);
commit;
Insert into obj_actions (OBJ_NAME,LINE_NO,IMAGE,DESCRIPTION,SERVICE_CODE,INTERACTIVE,RIGHTS_CHAR,TITLE,FORM_NO,SERVICE_HANDLER,PLACEMENT,ACTION_TYPE,TRAN_TYPE,CHG_DATE,CHG_TERM,CHG_USER) values ('emptransfersql',2,'edit.gif',null,null,null,'E','Edit','1',null,null,'S',null,null,null,null);
commit;



INSERT INTO obj_actions
  (
    obj_name,
    line_no,
    rights_char,
    interactive,
    service_code,
    description,
    title,
    image,
    action_type,
    form_no,
    service_handler,
    placement,
    tran_type
  )
  VALUES
  (
    'emptransfersql',
    1,
    'A',
    NULL,
    NULL,
    NULL,
    'Add',
    'add.gif',
    'S',
    '1',
    NULL,
    NULL,
    NULL
  );
commit;

INSERT INTO OBJ_ACTIONS
  (
    OBJ_NAME,
    LINE_NO,
    RIGHTS_CHAR,
    INTERACTIVE,
    SERVICE_CODE,
    DESCRIPTION,
    TITLE,
    IMAGE,
    ACTION_TYPE,
    FORM_NO,
    SERVICE_HANDLER,
    PLACEMENT,
    TRAN_TYPE
  )
  VALUES
  (
    'emptransfersql',
    2,
    'E',
    NULL,
    NULL,
    NULL,
    'Edit',
    'edit.gif',
    'S',
    '1',
    NULL,
    NULL,
    NULL
  );
commit;


 INSERT INTO TRANSETUP
  (
    TRAN_WINDOW,
    SAVE_FLAG,
    VAL_FLAG,
    KEY_FLAG,
    KEY_STRING,
    UDF_1,
    UDF_2,
    UDF_3,
    UDF_4,
    UDF_5,
    REPEATE_ADD,
    CHG_DATE,
    CHG_USER,
    CHG_TERM,
    EDI_OPTION,
    SITE_ACC_COL,
    CONFIRM_COL,
    CONFIRM_VAL,
    REPEAT_ADD_DET,
    REPEATADDDET,
    LOAD_MODE,
    AUTO_CONFIRM,
    LEDG_POST_CONF,
    CHG_DATE_ON_CONF,
    TRAN_ID_COL,
    MAIL_OPTION,
    CONFIRM_MODE,
    GARBAGE_OPT,
    VAL_FLAG_EDI,
    VERIFY_PASSWORD,
    CUST_ACC_COL,
    SALES_PERS_ACC_COL,
    SUPP_ACC_COL,
    ITEM_SER_ACC_CODE,
    EMP_ACC_COL,
    ITEM_SER_ACC_COL,
    WORKFLOW_OPT,
    TABLE_NAME,
    APPLICATION,
    TABLE_DESC,
    TRAN_DATE_COL,
    TRAN_ID__FROM,
    TRAN_ID__TO,
    TABLE_NAME_DET1,
    TABLE_NAME_DET2,
    TABLE_NAME_DET3,
    MULTITIRE_OPT,
    REF_SER,
    VIEW_MODE,
    TAX_FORMS,
    SIGN_STATUS,
    USER_TRAN_WINDOW,
    CUSTOM_PREVIEW_OBJ,
    IGNOREERRLIST_ONLOAD,
    CHILDDATA_ARGOPT,
    EDIT_TMPLT,
    WRKFLW_INIT,
    EDITTAX,
    FORMAL_ARGS,
    AUDIT_TRAIL_OPT,
    EDIT_OPT,
    CACHE_OPT,
    OPTIMIZE_MODE,
    EDIT_EXPR,
    RATE_COL,
    QTY_COL,
    EDIT_EXPR_INP,
    RCP_CACHE_STATUS,
    PRINT_CONTROL,
    TRANSFER_MODE,
    PROFILE_ID__RES,
    TRAN_COMPL_MSG,
    PERIOD_OPTION,
    WRKFLW_PRIORITY,
    EXEC_TYPE,
    DISP_META_DATA,
    ALLOW_ATTACH,
    START_FORM,
    ISATTACHMENT,
    HEADER_FORM_NO,
    MSG_ONSAVE,
    WF_STATUS
  )
  VALUES
  (
    'w_emptransfersql',
    '2',
    '2',
    'A',
    'seq10',
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    'Y',
    to_timestamp('08-NOV-13','DD-MON-RR HH.MI.SSXFF AM'),
    'Nikhil    ',
    'payroll        ',
    '0',
    'SITE_CODE',
    NULL,
    NULL,
    'Y',
    NULL,
    NULL,
    'N',
    'N',
    NULL,
    'pay_table',
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    'PAYTBL',
    'F',
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    '0',
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    'M',
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL
  );



/**-----------------------------*/

INSERT INTO REFSER
  (
    REF_SER,
    DESCR,
    TYPE,
    SYS_SER,
    PREFIX,
    CHG_DATE,
    CHG_USER,
    CHG_TERM,
    SEQ_NAME,
    TAX_FORM_REQD,
    TRANS_TYPE
  )
  VALUES
  (
    'PAYTBL',
    'PAY TABLE',
    'S',
    'PAYTBL',
    'PAYTBL                        ',
    TO_TIMESTAMP('25-MAY-05 11.31.31.000000000 AM','DD-MON-RR HH.MI.SS.FF AM'),
    'ADMIN     ',
    '00NILESH       ',
    'PAYTBL',
    NULL,
    NULL
  );
COMMIT;



INSERT INTO POPHELP
  (
    FIELD_NAME,
    MOD_NAME,
    SQL_STR,
    DW_OBJECT,
    MSG_TITLE,
    WIDTH,
    HEIGHT,
    CHG_DATE,
    CHG_USER,
    CHG_TERM,
    DIST_OPT,
    FILTER_STRING,
    SQL_INPUT,
    DEFAULT_COL,
    POP_ALIGN,
    QUERY_MODE,
    PAGE_CONTEXT,
    POPHELP_COLS,
    POPHELP_SOURCE,
    MULTI_OPT,
    HELP_OPTION
  )
  VALUES
  (
    'WORK_TBLNO',
    'W_WORK_BALANCE',
    'SELECT WORK_TBLNO, LINE_NO FROM WORK_TABLE ',
    'Work Table No',
    'Work Table No',
    0,0,
    TO_TIMESTAMP('20-MAY-13','DD-MON-RR HH.MI.SSXFF AM'),
    'VENKAT    ',
    'BASE           ',
    '1',
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL
  );
commit;

INSERT INTO POPHELP
  (
    FIELD_NAME,
    MOD_NAME,
    SQL_STR,
    DW_OBJECT,
    MSG_TITLE,
    WIDTH,
    HEIGHT,
    CHG_DATE,
    CHG_USER,
    CHG_TERM,
    DIST_OPT,
    FILTER_STRING,
    SQL_INPUT,
    DEFAULT_COL,
    POP_ALIGN,
    QUERY_MODE,
    PAGE_CONTEXT,
    POPHELP_COLS,
    POPHELP_SOURCE,
    MULTI_OPT,
    HELP_OPTION
  )
  VALUES
  (
    'LINE_NO',
    'W_WORK_BALANCE',
    'SELECT LINE_NO,WORK_TBLNO  FROM WORK_TABLE ',
    'Work Table No',
    'Work Table No',
    0,0,
    TO_TIMESTAMP('20-MAY-13','DD-MON-RR HH.MI.SSXFF AM'),
    'VENKAT    ',
    'BASE           ',
    '1',
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL
  );
commit;

----------------------- site holiday ----------------------------

INSERT INTO POPHELP
  (
    FIELD_NAME,
    MOD_NAME,
    SQL_STR,
    DW_OBJECT,
    MSG_TITLE,
    WIDTH,
    HEIGHT,
    CHG_DATE,
    CHG_USER,
    CHG_TERM,
    DIST_OPT,
    FILTER_STRING,
    SQL_INPUT,
    DEFAULT_COL,
    POP_ALIGN,
    QUERY_MODE,
    PAGE_CONTEXT,
    POPHELP_COLS,
    POPHELP_SOURCE,
    MULTI_OPT,
    HELP_OPTION
  )
  VALUES
  (
    'SITE_CODE',
    'W_SITE_HOLTLB',
    'SELECT SITE_CODE,hol_tblno FROM SITE_HOLTLB ',
    'SITE HOLTLB',
    'SITE HOLTLB',
    0,0,
    TO_TIMESTAMP('20-MAY-13','DD-MON-RR HH.MI.SSXFF AM'),
    'VENKAT    ',
    'BASE           ',
    '1',
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL
  );
commit;



Insert into obj_actions (OBJ_NAME,LINE_NO,IMAGE,DESCRIPTION,SERVICE_CODE,INTERACTIVE,RIGHTS_CHAR,TITLE,FORM_NO,SERVICE_HANDLER,PLACEMENT,ACTION_TYPE,TRAN_TYPE,CHG_DATE,CHG_TERM,CHG_USER) values ('site_holtbl',1,'add.gif',null,null,null,'A','Add','1',null,null,'S',null,null,null,null);
commit;


Insert into obj_actions (OBJ_NAME,LINE_NO,IMAGE,DESCRIPTION,SERVICE_CODE,INTERACTIVE,RIGHTS_CHAR,TITLE,FORM_NO,SERVICE_HANDLER,PLACEMENT,ACTION_TYPE,TRAN_TYPE,CHG_DATE,CHG_TERM,CHG_USER) values ('site_holtbl',2,'edit.gif',null,null,null,'E','Edit','1',null,null,'S',null,null,null,null);
commit;

--------------------- Payroll Load -------------------------------

INSERT INTO obj_actions
  (
    obj_name,
    line_no,
    rights_char,
    interactive,
    service_code,
    description,
    title,
    image,
    action_type,
    form_no,
    service_handler,
    placement,
    tran_type
  )
  VALUES
  (
    'emppayroll',
    1,
    'A',
    NULL,
    NULL,
    NULL,
    'Add',
    'add.gif',
    'S',
    '1',
    NULL,
    NULL,
    NULL
  );
COMMIT;

INSERT INTO OBJ_ACTIONS
  (
    OBJ_NAME,
    LINE_NO,
    RIGHTS_CHAR,
    INTERACTIVE,
    SERVICE_CODE,
    DESCRIPTION,
    TITLE,
    IMAGE,
    ACTION_TYPE,
    FORM_NO,
    SERVICE_HANDLER,
    PLACEMENT,
    TRAN_TYPE
  )
  VALUES
  (
    'emppayroll',
    2,
    'E',
    NULL,
    NULL,
    NULL,
    'Edit',
    'edit.gif',
    'S',
    '1',
    NULL,
    NULL,
    NULL
  );
COMMIT;


--------------------- p-27 -----------------------------

INSERT INTO system_event_services (
	service_code ,
	service_descr ,
	service_uri ,
	service_provider ,
	method_name ,
	return_value ,
	return_type ,	
	chg_date ,
	chg_user ,
	chg_term) 
VALUES (
	'poic_reco',
	'post item change',
	'http://172.16.145.69/BaseE12DotNetService6-3-0-135/E12BusinessLogic6-3-0-135.asmx',
	'BASE',
	'itemChanged',
	'String',
	'S',
	fn_sysdate(),
	'1234',
	'BASE');

commit;

----------------------- Grade wise Perk --------------------

INSERT INTO OBJ_LINKS
  (
    obj_name,
    form_no,
    field_name,
    target_obj_name,
    link_form_name,
    link_title,
    link_uri,
    link_type,
    link_arg,
    update_flag,
    link_name,
    rights_char,
    image
  )
  VALUES
  (
    'grade_perk',
    '1',
    'pay_table',
    'gradewise_perk_param',
    'gradewise_perk_param21',
    'Copy Button',
    NULL,
    '4',
    'pay_table.String',
    '0',
    NULL,
    '*',
    NULL
  );
  
INSERT INTO TRANSETUP
  (
    tran_window,
    save_flag,
    val_flag,
    key_flag,
    key_string,
    udf_1,
    udf_2,
    udf_3,
    udf_4,
    udf_5,
    repeate_add,
    chg_date ,
    chg_user,
    chg_term,
    edi_option,
    site_acc_col,
    confirm_col,
    confirm_val,
    repeat_add_det,
    repeatadddet,
    load_mode,
    auto_confirm,
    ledg_post_conf,
    chg_date_on_conf,
    tran_id_col,
    mail_option,
    confirm_mode,
    garbage_opt,
    val_flag_edi,
    verify_password,
    cust_acc_col,
    sales_pers_acc_col,
    supp_acc_col,
    item_ser_acc_code,
    emp_acc_col,
    item_ser_acc_col,
    workflow_opt,
    table_name,
    application,
    table_desc,
    tran_date_col,
    tran_id__from,
    tran_id__to,
    table_name_det1,
    table_name_det2,
    table_name_det3,
    multitire_opt,
    ref_ser,
    view_mode,
    tax_forms,
    sign_status,
    user_tran_window,
    custom_preview_obj,
    ignoreerrlist_onload,
    childdata_argopt,
    edit_tmplt,
    wrkflw_init,
    edittax,
    formal_args,
    audit_trail_opt,
    edit_opt,
    cache_opt,
    optimize_mode,
    edit_expr,
    rate_col,
    qty_col,
    edit_expr_inp,
    rcp_cache_status,
    print_control,
    transfer_mode,
    profile_id__res,
    tran_compl_msg,
    period_option,
    wrkflw_priority,
    exec_type,
    disp_meta_data,
    allow_attach,
    start_form,
    isattachment,
    header_form_no,
    msg_onsave,
    wf_status
  )
  VALUES
  (
    'w_gradewise_perk_param',
    '2',
    '2',
    'M',
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    'Y',
    TO_DATE('8-11-2013 00:00:00','DD-MM-YYYY HH24:MI:SS'),
    'Nikhil',
    'payroll',
    '0',
    'SITE_CODE',
    NULL,
    NULL,
    'Y',
    NULL,
    NULL,
    'N',
    'N',
    NULL,
    'pay_table',
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    'F',
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    '0',
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    'M',
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL
  );
  
--System Events
INSERT INTO SYSTEM_EVENTS
  (
    obj_name,
    event_code,
    event_context,
    service_code,
    method_rule,
    overwrite_core,
    chg_date,
    chg_user,
    chg_term,
    result_handle,
    comp_type,
    comp_name,
    comm_format
  )
  VALUES
  (
    'gradewise_perk_param',
    'pre_save',
    '1',
    'presave_gradewiseperkparam',
    NULL,
    '0',
    TO_DATE('8-11-2013 14:58:23','DD-MM-YYYY HH24:MI:SS'),
    'BASE      ',
    'BASE',
    '2',
    'EJB',
    'CopyGradePerkParamPrs',
    NULL
  );
  
--System Event Services
INSERT INTO SYSTEM_EVENT_SERVICES
  (
    service_code,
    service_descr,
    service_uri,
    service_provider,
    method_name,
    return_value,
    return_type,
    return_descr,
    return_xfrm,
    chg_date,
    chg_user,
    chg_term
  )
  VALUES
  (
    'presave_gradewiseperkparam',
    'preSaveRec',
    'http://172.16.145.69/BaseE12DotNetService6-3-0-135/E12BusinessLogic6-3-0-135.asmx',
    'BASE',
    'preSaveRec',
    'String',
    'S',
    NULL,
    NULL,
    TO_DATE('8-11-2013 14:59:25','DD-MM-YYYY HH24:MI:SS'),
    'BASE',
    'BASE'
  );
  
--System Service Args
INSERT INTO SYSTEM_SERVICE_ARGS
  (
    service_code,
    line_no,
    arg_name,
    arg_mode,
    descr,
    arg_type,
    arg_xfrm,
    chg_date,
    chg_user,
    chg_term,
    arg_value
  )
  VALUES
  (
    'presave_gradewiseperkparam',
    1,
    'COMPONENT_TYPE',
    'I',
    NULL,
    'C.String',
    NULL,
    TO_DATE('8-11-2013 15:00:37','DD-MM-YYYY HH24:MI:SS'),
    'BASE',
    'BASE',
    'EJB'
  );
  
INSERT INTO SYSTEM_SERVICE_ARGS
  (
    service_code,
    line_no,
    arg_name,
    arg_mode,
    descr,
    arg_type,
    arg_xfrm,
    chg_date,
    chg_user,
    chg_term,
    arg_value
  )
  VALUES
  (
    'presave_gradewiseperkparam',
    2,
    'COMPONENT_NAME',
    'I',
    NULL,
    'C.String',
    NULL,
    TO_DATE('8-11-2013 15:00:37','DD-MM-YYYY HH24:MI:SS'),
    'BASE',
    'BASE',
    'CopyGradePerkParamPrs'
  );
  
INSERT INTO SYSTEM_SERVICE_ARGS
  (
    service_code,
    line_no,
    arg_name,
    arg_mode,
    descr,
    arg_type,
    arg_xfrm,
    chg_date,
    chg_user,
    chg_term,
    arg_value
  )
  VALUES
  (
    'presave_gradewiseperkparam',
    3,
    'XML_DATA',
    'I',
    NULL,
    'S',
    NULL,
    TO_DATE('8-11-2013 15:00:37','DD-MM-YYYY HH24:MI:SS'),
    'BASE',
    'BASE',
    NULL
  );
  
INSERT INTO SYSTEM_SERVICE_ARGS
  (
    service_code,
    line_no,
    arg_name,
    arg_mode,
    descr,
    arg_type,
    arg_xfrm,
    chg_date,
    chg_user,
    chg_term,
    arg_value
  )
  VALUES
  (
    'presave_gradewiseperkparam',
    4,
    'DOM_ID',
    'I',
    NULL,
    'S',
    NULL,
    TO_DATE('8-11-2013 15:00:37','DD-MM-YYYY HH24:MI:SS'),
    'BASE',
    'BASE',
    NULL
  );
  
INSERT INTO SYSTEM_SERVICE_ARGS
  (
    service_code,
    line_no,
    arg_name,
    arg_mode,
    descr,
    arg_type,
    arg_xfrm,
    chg_date,
    chg_user,
    chg_term,
    arg_value
  )
  VALUES
  (
    'presave_gradewiseperkparam',
    5,
    'OBJ_CONTEXT',
    'I',
    NULL,
    'S',
    NULL,
    TO_DATE('8-11-2013 15:00:37','DD-MM-YYYY HH24:MI:SS'),
    'BASE',
    'BASE',
    NULL
  );
  
INSERT INTO SYSTEM_SERVICE_ARGS
  (
    service_code,
    line_no,
    arg_name,
    arg_mode,
    descr,
    arg_type,
    arg_xfrm,
    chg_date,
    chg_user,
    chg_term,
    arg_value
  )
  VALUES
  (
    'presave_gradewiseperkparam',
    6,
    'EDIT_FLAG',
    'I',
    NULL,
    'S',
    NULL,
    TO_DATE('8-11-2013 15:00:37','DD-MM-YYYY HH24:MI:SS'),
    'BASE',
    'BASE',
    NULL
  );
  
INSERT INTO SYSTEM_SERVICE_ARGS
  (
    service_code,
    line_no,
    arg_name,
    arg_mode,
    descr,
    arg_type,
    arg_xfrm,
    chg_date,
    chg_user,
    chg_term,
    arg_value
  )
  VALUES
  (
    'presave_gradewiseperkparam',
    7,
    'XTRA_PARAMS',
    'I',
    NULL,
    'S',
    NULL,
    TO_DATE('8-11-2013 15:00:37','DD-MM-YYYY HH24:MI:SS'),
    'BASE',
    'BASE',
    NULL
  );
  
INSERT INTO SYSTEM_SERVICE_ARGS
  (
    service_code,
    line_no,
    arg_name,
    arg_mode,
    descr,
    arg_type,
    arg_xfrm,
    chg_date,
    chg_user,
    chg_term,
    arg_value
  )
  VALUES
  (
    'presave_gradewiseperkparam',
    8,
    'DB_CONN',
    'I',
    NULL,
    'S.Connection',
    NULL,
    TO_DATE('8-11-2013 15:00:37','DD-MM-YYYY HH24:MI:SS'),
    'BASE',
    'BASE',
    NULL
  );
--Messages

INSERT INTO MESSAGES
  (
    msg_no,
    msg_str,
    msg_descr,
    msg_type,
    msg_opt,
    msg_time,
    alarm,
    err_source,
    chg_date,
    chg_user,
    chg_term,
    override_input,
    mail_option
  )
  VALUES
  (
    'NEWPAYTBL',
    'New Pay table Mandatory',
    'New Pay table should not leave Empty ',
    'E',
    'Y',
    NULL,
    NULL,
    NULL,
    TO_DATE('9-11-2013 00:00:00','DD-MM-YYYY HH24:MI:SS'),
    'Nikhil',
    'payroll',
    NULL,
    NULL
  );
  
  
INSERT INTO MESSAGES
  (
    msg_no,
    msg_str,
    msg_descr,
    msg_type,
    msg_opt,
    msg_time,
    alarm,
    err_source,
    chg_date,
    chg_user,
    chg_term,
    override_input,
    mail_option
  )
  VALUES
  (
    'NEWPAYNO',
    'New Pay table Not Exist',
    'Please check New Pay table entry  ',
    'E',
    'Y',
    NULL,
    NULL,
    NULL,
    TO_DATE('9-11-2013 00:00:00','DD-MM-YYYY HH24:MI:SS'),
    'Nikhil',
    'payroll',
    NULL,
    NULL
  );
  
INSERT INTO MESSAGES
  (
    msg_no,
    msg_str,
    msg_descr,
    msg_type,
    msg_opt,
    msg_time,
    alarm,
    err_source,
    chg_date,
    chg_user,
    chg_term,
    override_input,
    mail_option
  )
  VALUES
  (
    'NEWPAYAA',
    'New Pay table Already Exist',
    'Please check New Pay table Already Exist  ',
    'E',
    'Y',
    NULL,
    NULL,
    NULL,
    TO_DATE('9-11-2013 00:00:00','DD-MM-YYYY HH24:MI:SS'),
    'Nikhil',
    'payroll',
    NULL,
    NULL
  );
  
  
  ///---------------------------------------------
  
  
  INSERT INTO MESSAGES
  (
    msg_no,
    msg_str,
    msg_descr,
    msg_type,
    msg_opt,
    msg_time,
    alarm,
    err_source,
    chg_date,
    chg_user,
    chg_term,
    override_input,
    mail_option
  )
  VALUES
  (
    'PAYGRTBL',
    'Enter Newpaytable or Gradecode',
    'NewPaytable or Grade Code one of them is  Mandatory',
    'E',
    'Y',
    NULL,
    NULL,
    NULL,
    TO_DATE('9-11-2013 00:00:00','DD-MM-YYYY HH24:MI:SS'),
    'Nikhil',
    'payroll',
    NULL,
    NULL
  );
  INSERT INTO MESSAGES
  (
    msg_no,
    msg_str,
    msg_descr,
    msg_type,
    msg_opt,
    msg_time,
    alarm,
    err_source,
    chg_date,
    chg_user,
    chg_term,
    override_input,
    mail_option
  )
  VALUES
  (
    'GCNOEXIST',
    'Grade Code Not Exist',
    'Please check Grade code entry  ',
    'E',
    'Y',
    NULL,
    NULL,
    NULL,
    TO_DATE('9-11-2013 00:00:00','DD-MM-YYYY HH24:MI:SS'),
    'Nikhil',
    'payroll',
    NULL,
    NULL
  );
  
  INSERT INTO MESSAGES
  (
    msg_no,
    msg_str,
    msg_descr,
    msg_type,
    msg_opt,
    msg_time,
    alarm,
    err_source,
    chg_date,
    chg_user,
    chg_term,
    override_input,
    mail_option
  )
  VALUES
  (
    'NEWMCNEMP',
    'Month Code is Mandatory',
    'Month Code should not leave Empty ',
    'E',
    'Y',
    NULL,
    NULL,
    NULL,
    TO_DATE('9-11-2013 00:00:00','DD-MM-YYYY HH24:MI:SS'),
    'Nikhil',
    'payroll',
    NULL,
    NULL
  );
  
  INSERT INTO POPHELP
  (
    FIELD_NAME,
    MOD_NAME,
    SQL_STR,
    DW_OBJECT,
    MSG_TITLE,
    WIDTH,
    HEIGHT,
    CHG_DATE,
    CHG_USER,
    CHG_TERM,
    DIST_OPT,
    FILTER_STRING,
    SQL_INPUT,
    DEFAULT_COL,
    POP_ALIGN,
    QUERY_MODE,
    PAGE_CONTEXT,
    POPHELP_COLS,
    POPHELP_SOURCE,
    MULTI_OPT,
    HELP_OPTION
  )
  VALUES
  (
    'NEW_GRADE_CODE',
    'W_GRADEWISE_PERK_PARAM',
    'SELECT  GRADE_CODE,DESCR FROM GRADE ',
    'Grade Code',
    'Grade Code',
    0,0,
    TO_TIMESTAMP('20-MAY-13','DD-MON-RR HH.MI.SSXFF AM'),
    'VENKAT    ',
    'BASE           ',
    '1',
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL
  );
  
   INSERT INTO POPHELP
  (
    FIELD_NAME,
    MOD_NAME,
    SQL_STR,
    DW_OBJECT,
    MSG_TITLE,
    WIDTH,
    HEIGHT,
    CHG_DATE,
    CHG_USER,
    CHG_TERM,
    DIST_OPT,
    FILTER_STRING,
    SQL_INPUT,
    DEFAULT_COL,
    POP_ALIGN,
    QUERY_MODE,
    PAGE_CONTEXT,
    POPHELP_COLS,
    POPHELP_SOURCE,
    MULTI_OPT,
    HELP_OPTION
  )
  VALUES
  (
    'NEW_PAY_TABLE',
    'W_GRADEWISE_PERK_PARAM',
    'SELECT PAY_TABLE, DESCR FROM PAYTABLE ',
    'Pay Table No.',
    'Pay Table',
    0,0,
    TO_TIMESTAMP('20-MAY-13','DD-MON-RR HH.MI.SSXFF AM'),
    'VENKAT    ',
    'BASE           ',
    '1',
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL
  );

  ---------------- Gradewise AD -----------------------------
  
  INSERT INTO OBJ_LINKS
  (
    obj_name,
    form_no,
    field_name,
    target_obj_name,
    link_form_name,
    link_title,
    link_uri,
    link_type,
    link_arg,
    update_flag,
    link_name,
    rights_char,
    image
  )
  VALUES
  (
    'grade_ad',
    '1',
    'pay_table',
    'gradewise_ad_param',
    'gradewise_ad_param21',
    'Copy Button',
    NULL,
    '4',
    'pay_table.String',
    '0',
    NULL,
    '*',
    NULL
  );


INSERT INTO TRANSETUP
  (
    tran_window,
    save_flag,
    val_flag,
    key_flag,
    key_string,
    udf_1,
    udf_2,
    udf_3,
    udf_4,
    udf_5,
    repeate_add,
    chg_date ,
    chg_user,
    chg_term,
    edi_option,
    site_acc_col,
    confirm_col,
    confirm_val,
    repeat_add_det,
    repeatadddet,
    load_mode,
    auto_confirm,
    ledg_post_conf,
    chg_date_on_conf,
    tran_id_col,
    mail_option,
    confirm_mode,
    garbage_opt,
    val_flag_edi,
    verify_password,
    cust_acc_col,
    sales_pers_acc_col,
    supp_acc_col,
    item_ser_acc_code,
    emp_acc_col,
    item_ser_acc_col,
    workflow_opt,
    table_name,
    application,
    table_desc,
    tran_date_col,
    tran_id__from,
    tran_id__to,
    table_name_det1,
    table_name_det2,
    table_name_det3,
    multitire_opt,
    ref_ser,
    view_mode,
    tax_forms,
    sign_status,
    user_tran_window,
    custom_preview_obj,
    ignoreerrlist_onload,
    childdata_argopt,
    edit_tmplt,
    wrkflw_init,
    edittax,
    formal_args,
    audit_trail_opt,
    edit_opt,
    cache_opt,
    optimize_mode,
    edit_expr,
    rate_col,
    qty_col,
    edit_expr_inp,
    rcp_cache_status,
    print_control,
    transfer_mode,
    profile_id__res,
    tran_compl_msg,
    period_option,
    wrkflw_priority,
    exec_type,
    disp_meta_data,
    allow_attach,
    start_form,
    isattachment,
    header_form_no,
    msg_onsave,
    wf_status
  )
  VALUES
  (
    'w_gradewise_ad_param',
    '2',
    '2',
    'M',
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    'Y',
    TO_DATE('8-11-2013 00:00:00','DD-MM-YYYY HH24:MI:SS'),
    'Nikhil',
    'payroll',
    '0',
    'SITE_CODE',
    NULL,
    NULL,
    'Y',
    NULL,
    NULL,
    'N',
    'N',
    NULL,
    'pay_table',
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    'F',
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    '0',
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    'M',
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL
  );

--System Events
INSERT INTO SYSTEM_EVENTS
  (
    obj_name,
    event_code,
    event_context,
    service_code,
    method_rule,
    overwrite_core,
    chg_date,
    chg_user,
    chg_term,
    result_handle,
    comp_type,
    comp_name,
    comm_format
  )
  VALUES
  (
    'gradewise_ad_param',
    'pre_save',
    '1',
    'presave_gradewiseadparam',
    NULL,
    '0',
    TO_DATE('8-11-2013 14:58:23','DD-MM-YYYY HH24:MI:SS'),
    'BASE      ',
    'BASE',
    '2',
    'EJB',
    'CopyGradeAdParamPrs',
    NULL
  );

--System Event Services
INSERT INTO SYSTEM_EVENT_SERVICES
  (
    service_code,
    service_descr,
    service_uri,
    service_provider,
    method_name,
    return_value,
    return_type,
    return_descr,
    return_xfrm,
    chg_date,
    chg_user,
    chg_term
  )
  VALUES
  (
    'presave_gradewiseadparam',
    'preSaveRec',
    'http://172.16.145.69/BaseE12DotNetService6-3-0-135/E12BusinessLogic6-3-0-135.asmx',
    'BASE',
    'preSaveRec',
    'String',
    'S',
    NULL,
    NULL,
    TO_DATE('8-11-2013 14:59:25','DD-MM-YYYY HH24:MI:SS'),
    'BASE',
    'BASE'
  );

--System Service Args

INSERT INTO SYSTEM_SERVICE_ARGS
  (
    service_code,
    line_no,
    arg_name,
    arg_mode,
    descr,
    arg_type,
    arg_xfrm,
    chg_date,
    chg_user,
    chg_term,
    arg_value
  )
  VALUES
  (
    'presave_gradewiseadparam',
    1,
    'COMPONENT_TYPE',
    'I',
    NULL,
    'C.String',
    NULL,
    TO_DATE('8-11-2013 15:00:37','DD-MM-YYYY HH24:MI:SS'),
    'BASE',
    'BASE',
    'EJB'
  );
  
INSERT INTO SYSTEM_SERVICE_ARGS
  (
    service_code,
    line_no,
    arg_name,
    arg_mode,
    descr,
    arg_type,
    arg_xfrm,
    chg_date,
    chg_user,
    chg_term,
    arg_value
  )
  VALUES
  (
    'presave_gradewiseadparam',
    2,
    'COMPONENT_NAME',
    'I',
    NULL,
    'C.String',
    NULL,
    TO_DATE('8-11-2013 15:00:37','DD-MM-YYYY HH24:MI:SS'),
    'BASE',
    'BASE',
    'CopyGradeAdParamPrs'
  );
  
INSERT INTO SYSTEM_SERVICE_ARGS
  (
    SERVICE_CODE,
    LINE_NO,
    ARG_NAME,
    ARG_MODE,
    DESCR,
    ARG_TYPE,
    ARG_XFRM,
    CHG_DATE,
    CHG_USER,
    CHG_TERM,
    ARG_VALUE
  )
  VALUES
  (
    'presave_gradewiseadparam',
    3,
    'XML_DATA',
    'I',
    NULL,
    'S',
    NULL,
    TO_DATE('8-11-2013 15:00:37','DD-MM-YYYY HH24:MI:SS'),
    'BASE',
    'BASE',
    NULL
  );
INSERT INTO SYSTEM_SERVICE_ARGS
  (
    service_code,
    line_no,
    arg_name,
    arg_mode,
    descr,
    arg_type,
    arg_xfrm,
    chg_date,
    chg_user,
    chg_term,
    arg_value
  )
  VALUES
  (
    'presave_gradewiseadparam',
    4,
    'DOM_ID',
    'I',
    NULL,
    'S',
    NULL,
    TO_DATE('8-11-2013 15:00:37','DD-MM-YYYY HH24:MI:SS'),
    'BASE',
    'BASE',
    NULL
  );
INSERT INTO SYSTEM_SERVICE_ARGS
  (
    service_code,
    line_no,
    arg_name,
    arg_mode,
    descr,
    arg_type,
    arg_xfrm,
    chg_date,
    chg_user,
    chg_term,
    arg_value
  )
  VALUES
  (
    'presave_gradewiseadparam',
    5,
    'OBJ_CONTEXT',
    'I',
    NULL,
    'S',
    NULL,
    TO_DATE('8-11-2013 15:00:37','DD-MM-YYYY HH24:MI:SS'),
    'BASE',
    'BASE',
    NULL
  );
INSERT INTO SYSTEM_SERVICE_ARGS
  (
    service_code,
    line_no,
    arg_name,
    arg_mode,
    descr,
    arg_type,
    arg_xfrm,
    chg_date,
    chg_user,
    chg_term,
    arg_value
  )
  VALUES
  (
    'presave_gradewiseadparam',
    6,
    'EDIT_FLAG',
    'I',
    NULL,
    'S',
    NULL,
    TO_DATE('8-11-2013 15:00:37','DD-MM-YYYY HH24:MI:SS'),
    'BASE',
    'BASE',
    NULL
  );
INSERT INTO SYSTEM_SERVICE_ARGS
  (
    service_code,
    line_no,
    arg_name,
    arg_mode,
    descr,
    arg_type,
    arg_xfrm,
    chg_date,
    chg_user,
    chg_term,
    arg_value
  )
  VALUES
  (
    'presave_gradewiseadparam',
    7,
    'XTRA_PARAMS',
    'I',
    NULL,
    'S',
    NULL,
    TO_DATE('8-11-2013 15:00:37','DD-MM-YYYY HH24:MI:SS'),
    'BASE',
    'BASE',
    NULL
  );
INSERT INTO SYSTEM_SERVICE_ARGS
  (
    service_code,
    line_no,
    arg_name,
    arg_mode,
    descr,
    arg_type,
    arg_xfrm,
    chg_date,
    chg_user,
    chg_term,
    arg_value
  )
  VALUES
  (
    'presave_gradewiseadparam',
    8,
    'DB_CONN',
    'I',
    NULL,
    'S.Connection',
    NULL,
    TO_DATE('8-11-2013 15:00:37','DD-MM-YYYY HH24:MI:SS'),
    'BASE',
    'BASE',
    NULL
  );


 --Messages

INSERT INTO MESSAGES
  (
    msg_no,
    msg_str,
    msg_descr,
    msg_type,
    msg_opt,
    msg_time,
    alarm,
    err_source,
    chg_date,
    chg_user,
    chg_term,
    override_input,
    mail_option
  )
  VALUES
  (
    'NEWPAYTBL',
    'New Pay table Mandatory',
    'New Pay table should not leave Empty ',
    'E',
    'Y',
    NULL,
    NULL,
    NULL,
    TO_DATE('9-11-2013 00:00:00','DD-MM-YYYY HH24:MI:SS'),
    'Nikhil',
    'payroll',
    NULL,
    NULL
  );
INSERT INTO MESSAGES
  (
    msg_no,
    msg_str,
    msg_descr,
    msg_type,
    msg_opt,
    msg_time,
    alarm,
    err_source,
    chg_date,
    chg_user,
    chg_term,
    override_input,
    mail_option
  )
  VALUES
  (
    'NEWPAYNO',
    'New Pay table Not Exist',
    'Please check New Pay table entry  ',
    'E',
    'Y',
    NULL,
    NULL,
    NULL,
    TO_DATE('9-11-2013 00:00:00','DD-MM-YYYY HH24:MI:SS'),
    'Nikhil',
    'payroll',
    NULL,
    NULL
  );
INSERT INTO MESSAGES
  (
    msg_no,
    msg_str,
    msg_descr,
    msg_type,
    msg_opt,
    msg_time,
    alarm,
    err_source,
    chg_date,
    chg_user,
    chg_term,
    override_input,
    mail_option
  )
  VALUES
  (
    'NEWPAYAA',
    'New Pay table Already Exist',
    'Please check New Pay table Already Exist  ',
    'E',
    'Y',
    NULL,
    NULL,
    NULL,
    TO_DATE('9-11-2013 00:00:00','DD-MM-YYYY HH24:MI:SS'),
    'Nikhil',
    'payroll',
    NULL,
    NULL
  );

//---------------------------------


INSERT INTO POPHELP
  (
    FIELD_NAME,
    MOD_NAME,
    SQL_STR,
    DW_OBJECT,
    MSG_TITLE,
    WIDTH,
    HEIGHT,
    CHG_DATE,
    CHG_USER,
    CHG_TERM,
    DIST_OPT,
    FILTER_STRING,
    SQL_INPUT,
    DEFAULT_COL,
    POP_ALIGN,
    QUERY_MODE,
    PAGE_CONTEXT,
    POPHELP_COLS,
    POPHELP_SOURCE,
    MULTI_OPT,
    HELP_OPTION
  )
  VALUES
  (
    'NEW_PAY_TABLE',
    'W_GRADEWISE_AD_PARAM',
    'SELECT PAY_TABLE, DESCR FROM PAYTABLE ',
    'Pay Table No.',
    'Pay Table',
    0,0,
    TO_TIMESTAMP('20-MAY-13','DD-MON-RR HH.MI.SSXFF AM'),
    'VENKAT    ',
    'BASE           ',
    '1',
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL
  );
  
   INSERT INTO POPHELP
  (
    FIELD_NAME,
    MOD_NAME,
    SQL_STR,
    DW_OBJECT,
    MSG_TITLE,
    WIDTH,
    HEIGHT,
    CHG_DATE,
    CHG_USER,
    CHG_TERM,
    DIST_OPT,
    FILTER_STRING,
    SQL_INPUT,
    DEFAULT_COL,
    POP_ALIGN,
    QUERY_MODE,
    PAGE_CONTEXT,
    POPHELP_COLS,
    POPHELP_SOURCE,
    MULTI_OPT,
    HELP_OPTION
  )
  VALUES
  (
    'NEW_GRADE_CODE',
    'W_GRADEWISE_AD_PARAM',
    'SELECT  GRADE_CODE,DESCR FROM GRADE ',
    'Grade Code',
    'Grade Code',
    0,0,
    TO_TIMESTAMP('20-MAY-13','DD-MON-RR HH.MI.SSXFF AM'),
    'VENKAT    ',
    'BASE           ',
    '1',
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL
  );
  
  ----------------------- Cadre wise Month ----------------------------
  
  INSERT INTO OBJ_LINKS
  (
    obj_name,
    form_no,
    field_name,
    target_obj_name,
    link_form_name,
    link_title,
    link_uri,
    link_type,
    link_arg,
    update_flag,
    link_name,
    rights_char,
    image
  )
  VALUES
  (
    'cadre_mthad',
    '1',
    'pay_table',
    'cadrewise_mthad_param',
    'cadrewise_mthad_param21',
    'Copy Button',
    NULL,
    '4',
    'pay_table.String',
    '0',
    NULL,
    '*',
    NULL
  );
INSERT INTO TRANSETUP
  (
    tran_window,
    save_flag,
    val_flag,
    key_flag,
    key_string,
    udf_1,
    udf_2,
    udf_3,
    udf_4,
    udf_5,
    repeate_add,
    chg_date ,
    chg_user,
    chg_term,
    edi_option,
    site_acc_col,
    confirm_col,
    confirm_val,
    repeat_add_det,
    repeatadddet,
    load_mode,
    auto_confirm,
    ledg_post_conf,
    chg_date_on_conf,
    tran_id_col,
    mail_option,
    confirm_mode,
    garbage_opt,
    val_flag_edi,
    verify_password,
    cust_acc_col,
    sales_pers_acc_col,
    supp_acc_col,
    item_ser_acc_code,
    emp_acc_col,
    item_ser_acc_col,
    workflow_opt,
    table_name,
    application,
    table_desc,
    tran_date_col,
    tran_id__from,
    tran_id__to,
    table_name_det1,
    table_name_det2,
    table_name_det3,
    multitire_opt,
    ref_ser,
    view_mode,
    tax_forms,
    sign_status,
    user_tran_window,
    custom_preview_obj,
    ignoreerrlist_onload,
    childdata_argopt,
    edit_tmplt,
    wrkflw_init,
    edittax,
    formal_args,
    audit_trail_opt,
    edit_opt,
    cache_opt,
    optimize_mode,
    edit_expr,
    rate_col,
    qty_col,
    edit_expr_inp,
    rcp_cache_status,
    print_control,
    transfer_mode,
    profile_id__res,
    tran_compl_msg,
    period_option,
    wrkflw_priority,
    exec_type,
    disp_meta_data,
    allow_attach,
    start_form,
    isattachment,
    header_form_no,
    msg_onsave,
    wf_status
  )
  VALUES
  (
    'w_cadrewise_mthad_param',
    '2',
    '2',
    'M',
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    'Y',
    TO_DATE('8-11-2013 00:00:00','DD-MM-YYYY HH24:MI:SS'),
    'Nikhil',
    'payroll',
    '0',
    'SITE_CODE',
    NULL,
    NULL,
    'Y',
    NULL,
    NULL,
    'N',
    'N',
    NULL,
    'pay_table',
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    'F',
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    '0',
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    'M',
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL
  );
--System Events
INSERT INTO SYSTEM_EVENTS
  (
    obj_name,
    event_code,
    event_context,
    service_code,
    method_rule,
    overwrite_core,
    chg_date,
    chg_user,
    chg_term,
    result_handle,
    comp_type,
    comp_name,
    comm_format
  )
  VALUES
  (
    'cadrewise_mthad_param',
    'pre_save',
    '1',
    'presave_cadrewisemthadparam',
    NULL,
    '0',
    TO_DATE('8-11-2013 14:58:23','DD-MM-YYYY HH24:MI:SS'),
    'BASE      ',
    'BASE',
    '2',
    'EJB',
    'CopyCadreMthadParamPrs',
    NULL
  );
--System Event Services
INSERT INTO SYSTEM_EVENT_SERVICES
  (
    service_code,
    service_descr,
    service_uri,
    service_provider,
    method_name,
    return_value,
    return_type,
    return_descr,
    return_xfrm,
    chg_date,
    chg_user,
    chg_term
  )
  VALUES
  (
    'presave_cadrewisemthadparam',
    'preSaveRec',
    'http://172.16.145.69/BaseE12DotNetService6-3-0-135/E12BusinessLogic6-3-0-135.asmx',
    'BASE',
    'preSaveRec',
    'String',
    'S',
    NULL,
    NULL,
    TO_DATE('8-11-2013 14:59:25','DD-MM-YYYY HH24:MI:SS'),
    'BASE',
    'BASE'
  );
--System Service Args
INSERT INTO SYSTEM_SERVICE_ARGS
  (
    service_code,
    line_no,
    arg_name,
    arg_mode,
    descr,
    arg_type,
    arg_xfrm,
    chg_date,
    chg_user,
    chg_term,
    arg_value
  )
  VALUES
  (
    'presave_cadrewisemthadparam',
    1,
    'COMPONENT_TYPE',
    'I',
    NULL,
    'C.String',
    NULL,
    TO_DATE('8-11-2013 15:00:37','DD-MM-YYYY HH24:MI:SS'),
    'BASE',
    'BASE',
    'EJB'
  );
INSERT INTO SYSTEM_SERVICE_ARGS
  (
    service_code,
    line_no,
    arg_name,
    arg_mode,
    descr,
    arg_type,
    arg_xfrm,
    chg_date,
    chg_user,
    chg_term,
    arg_value
  )
  VALUES
  (
    'presave_cadrewisemthadparam',
    2,
    'COMPONENT_NAME',
    'I',
    NULL,
    'C.String',
    NULL,
    TO_DATE('8-11-2013 15:00:37','DD-MM-YYYY HH24:MI:SS'),
    'BASE',
    'BASE',
    'CopyCadreMthadParamPrs'
  );
INSERT INTO SYSTEM_SERVICE_ARGS
  (
    service_code,
    line_no,
    arg_name,
    arg_mode,
    descr,
    arg_type,
    arg_xfrm,
    chg_date,
    chg_user,
    chg_term,
    arg_value
  )
  VALUES
  (
    'presave_cadrewisemthadparam',
    3,
    'XML_DATA',
    'I',
    NULL,
    'S',
    NULL,
    TO_DATE('8-11-2013 15:00:37','DD-MM-YYYY HH24:MI:SS'),
    'BASE',
    'BASE',
    NULL
  );
INSERT INTO SYSTEM_SERVICE_ARGS
  (
    service_code,
    line_no,
    arg_name,
    arg_mode,
    descr,
    arg_type,
    arg_xfrm,
    chg_date,
    chg_user,
    chg_term,
    arg_value
  )
  VALUES
  (
    'presave_cadrewisemthadparam',
    4,
    'DOM_ID',
    'I',
    NULL,
    'S',
    NULL,
    TO_DATE('8-11-2013 15:00:37','DD-MM-YYYY HH24:MI:SS'),
    'BASE',
    'BASE',
    NULL
  );
INSERT INTO SYSTEM_SERVICE_ARGS
  (
    service_code,
    line_no,
    arg_name,
    arg_mode,
    descr,
    arg_type,
    arg_xfrm,
    chg_date,
    chg_user,
    chg_term,
    arg_value
  )
  VALUES
  (
    'presave_cadrewisemthadparam',
    5,
    'OBJ_CONTEXT',
    'I',
    NULL,
    'S',
    NULL,
    TO_DATE('8-11-2013 15:00:37','DD-MM-YYYY HH24:MI:SS'),
    'BASE',
    'BASE',
    NULL
  );
INSERT INTO SYSTEM_SERVICE_ARGS
  (
    service_code,
    line_no,
    arg_name,
    arg_mode,
    descr,
    arg_type,
    arg_xfrm,
    chg_date,
    chg_user,
    chg_term,
    arg_value
  )
  VALUES
  (
    'presave_cadrewisemthadparam',
    6,
    'EDIT_FLAG',
    'I',
    NULL,
    'S',
    NULL,
    TO_DATE('8-11-2013 15:00:37','DD-MM-YYYY HH24:MI:SS'),
    'BASE',
    'BASE',
    NULL
  );
INSERT INTO SYSTEM_SERVICE_ARGS
  (
    service_code,
    line_no,
    arg_name,
    arg_mode,
    descr,
    arg_type,
    arg_xfrm,
    chg_date,
    chg_user,
    chg_term,
    arg_value
  )
  VALUES
  (
    'presave_cadrewisemthadparam',
    7,
    'XTRA_PARAMS',
    'I',
    NULL,
    'S',
    NULL,
    TO_DATE('8-11-2013 15:00:37','DD-MM-YYYY HH24:MI:SS'),
    'BASE',
    'BASE',
    NULL
  );
INSERT INTO SYSTEM_SERVICE_ARGS
  (
    service_code,
    line_no,
    arg_name,
    arg_mode,
    descr,
    arg_type,
    arg_xfrm,
    chg_date,
    chg_user,
    chg_term,
    arg_value
  )
  VALUES
  (
    'presave_cadrewisemthadparam',
    8,
    'DB_CONN',
    'I',
    NULL,
    'S.Connection',
    NULL,
    TO_DATE('8-11-2013 15:00:37','DD-MM-YYYY HH24:MI:SS'),
    'BASE',
    'BASE',
    NULL
  );
--Messages
INSERT INTO MESSAGES
  (
    msg_no,
    msg_str,
    msg_descr,
    msg_type,
    msg_opt,
    msg_time,
    alarm,
    err_source,
    chg_date,
    chg_user,
    chg_term,
    override_input,
    mail_option
  )
  VALUES
  (
    'NEWPAYTBL',
    'New Pay table Mandatory',
    'New Pay table should not leave Empty ',
    'E',
    'Y',
    NULL,
    NULL,
    NULL,
    TO_DATE('9-11-2013 00:00:00','DD-MM-YYYY HH24:MI:SS'),
    'Nikhil',
    'payroll',
    NULL,
    NULL
  );
INSERT INTO MESSAGES
  (
    msg_no,
    msg_str,
    msg_descr,
    msg_type,
    msg_opt,
    msg_time,
    alarm,
    err_source,
    chg_date,
    chg_user,
    chg_term,
    override_input,
    mail_option
  )
  VALUES
  (
    'NEWPAYNO',
    'New Pay table Not Exist',
    'Please check New Pay table entry  ',
    'E',
    'Y',
    NULL,
    NULL,
    NULL,
    TO_DATE('9-11-2013 00:00:00','DD-MM-YYYY HH24:MI:SS'),
    'Nikhil',
    'payroll',
    NULL,
    NULL
  );
INSERT INTO MESSAGES
  (
    msg_no,
    msg_str,
    msg_descr,
    msg_type,
    msg_opt,
    msg_time,
    alarm,
    err_source,
    chg_date,
    chg_user,
    chg_term,
    override_input,
    mail_option
  )
  VALUES
  (
    'NEWPAYAA',
    'New Pay table Already Exist',
    'Please check New Pay table Already Exist  ',
    'E',
    'Y',
    NULL,
    NULL,
    NULL,
    TO_DATE('9-11-2013 00:00:00','DD-MM-YYYY HH24:MI:SS'),
    'Nikhil',
    'payroll',
    NULL,
    NULL
  );
//-----------------------------

INSERT INTO POPHELP
  (
    FIELD_NAME,
    MOD_NAME,
    SQL_STR,
    DW_OBJECT,
    MSG_TITLE,
    WIDTH,
    HEIGHT,
    CHG_DATE,
    CHG_USER,
    CHG_TERM,
    DIST_OPT,
    FILTER_STRING,
    SQL_INPUT,
    DEFAULT_COL,
    POP_ALIGN,
    QUERY_MODE,
    PAGE_CONTEXT,
    POPHELP_COLS,
    POPHELP_SOURCE,
    MULTI_OPT,
    HELP_OPTION
  )
  VALUES
  (
    'NEW_MONTH_CODE',
    'W_CADREWISE_MTHAD_PARAM',
    'SELECT DISTINCT(MONTH_CODE) FROM CADRE_MTHAD ',
    'Month Code',
    'Month Code',
    0,0,
    TO_TIMESTAMP('20-MAY-13','DD-MON-RR HH.MI.SSXFF AM'),
    'VENKAT    ',
    'BASE           ',
    '1',
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL
  );
  
    
  INSERT INTO POPHELP
  (
    FIELD_NAME,
    MOD_NAME,
    SQL_STR,
    DW_OBJECT,
    MSG_TITLE,
    WIDTH,
    HEIGHT,
    CHG_DATE,
    CHG_USER,
    CHG_TERM,
    DIST_OPT,
    FILTER_STRING,
    SQL_INPUT,
    DEFAULT_COL,
    POP_ALIGN,
    QUERY_MODE,
    PAGE_CONTEXT,
    POPHELP_COLS,
    POPHELP_SOURCE,
    MULTI_OPT,
    HELP_OPTION
  )
  VALUES
  (
    'NEW_PAY_TABLE',
    'W_CADREWISE_MTHAD_PARAM',
    'SELECT PAY_TABLE, DESCR FROM PAYTABLE ',
    'Pay Table No.',
    'Pay Table',
    0,0,
    TO_TIMESTAMP('20-MAY-13','DD-MON-RR HH.MI.SSXFF AM'),
    'VENKAT    ',
    'BASE           ',
    '1',
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL
  );
  
  
    INSERT INTO POPHELP
  (
    FIELD_NAME,
    MOD_NAME,
    SQL_STR,
    DW_OBJECT,
    MSG_TITLE,
    WIDTH,
    HEIGHT,
    CHG_DATE,
    CHG_USER,
    CHG_TERM,
    DIST_OPT,
    FILTER_STRING,
    SQL_INPUT,
    DEFAULT_COL,
    POP_ALIGN,
    QUERY_MODE,
    PAGE_CONTEXT,
    POPHELP_COLS,
    POPHELP_SOURCE,
    MULTI_OPT,
    HELP_OPTION
  )
  VALUES
  (
    'NEW_CADRE_CODE',
    'W_CADREWISE_MTHAD_PARAM',
    'SELECT CADRE_CODE,DESCR  FROM CADRE ',
    'Cadre Code',
    'Cadre Code',
    0,0,
    TO_TIMESTAMP('20-MAY-13','DD-MON-RR HH.MI.SSXFF AM'),
    'VENKAT    ',
    'BASE           ',
    '1',
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL
  );
  
    INSERT INTO POPHELP
  (
    FIELD_NAME,
    MOD_NAME,
    SQL_STR,
    DW_OBJECT,
    MSG_TITLE,
    WIDTH,
    HEIGHT,
    CHG_DATE,
    CHG_USER,
    CHG_TERM,
    DIST_OPT,
    FILTER_STRING,
    SQL_INPUT,
    DEFAULT_COL,
    POP_ALIGN,
    QUERY_MODE,
    PAGE_CONTEXT,
    POPHELP_COLS,
    POPHELP_SOURCE,
    MULTI_OPT,
    HELP_OPTION
  )
  VALUES
  (
    'MONTH_CODE',
    'W_CADRE_MTHAD',
    'SELECT DISTINCT(MONTH_CODE) FROM CADRE_MTHAD ',
    'Month Code',
    'Month Code',
    0,0,
    TO_TIMESTAMP('20-MAY-13','DD-MON-RR HH.MI.SSXFF AM'),
    'VENKAT    ',
    'BASE           ',
    '1',
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL
  );
  
  
  commit;
  
  ------------------ Cadre wise AD -----------------------
  
  --object links
INSERT INTO OBJ_LINKS
  (
    obj_name,
    form_no,
    field_name,
    target_obj_name,
    link_form_name,
    link_title,
    link_uri,
    link_type,
    link_arg,
    update_flag,
    link_name,
    rights_char,
    image
  )
  VALUES
  (
    'cadre_ad',
    '1',
    'pay_table',
    'cadrewise_ad_param',
    'cadrewise_ad_param21',
    'Copy Button',
    NULL,
    '4',
    'pay_table.String',
    '0',
    NULL,
    '*',
    NULL
  );
--trans setup
INSERT INTO TRANSETUP
  (
    tran_window,
    save_flag,
    val_flag,
    key_flag,
    key_string,
    udf_1,
    udf_2,
    udf_3,
    udf_4,
    udf_5,
    repeate_add,
    chg_date ,
    chg_user,
    chg_term,
    edi_option,
    site_acc_col,
    confirm_col,
    confirm_val,
    repeat_add_det,
    repeatadddet,
    load_mode,
    auto_confirm,
    ledg_post_conf,
    chg_date_on_conf,
    tran_id_col,
    mail_option,
    confirm_mode,
    garbage_opt,
    val_flag_edi,
    verify_password,
    cust_acc_col,
    sales_pers_acc_col,
    supp_acc_col,
    item_ser_acc_code,
    emp_acc_col,
    item_ser_acc_col,
    workflow_opt,
    table_name,
    application,
    table_desc,
    tran_date_col,
    tran_id__from,
    tran_id__to,
    table_name_det1,
    table_name_det2,
    table_name_det3,
    multitire_opt,
    ref_ser,
    view_mode,
    tax_forms,
    sign_status,
    user_tran_window,
    custom_preview_obj,
    ignoreerrlist_onload,
    childdata_argopt,
    edit_tmplt,
    wrkflw_init,
    edittax,
    formal_args,
    audit_trail_opt,
    edit_opt,
    cache_opt,
    optimize_mode,
    edit_expr,
    rate_col,
    qty_col,
    edit_expr_inp,
    rcp_cache_status,
    print_control,
    transfer_mode,
    profile_id__res,
    tran_compl_msg,
    period_option,
    wrkflw_priority,
    exec_type,
    disp_meta_data,
    allow_attach,
    start_form,
    isattachment,
    header_form_no,
    msg_onsave,
    wf_status
  )
  VALUES
  (
    'w_cadrewise_ad_param',
    '2',
    '2',
    'M',
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    'Y',
    TO_DATE('8-11-2013 00:00:00','DD-MM-YYYY HH24:MI:SS'),
    'Nikhil',
    'payroll',
    '0',
    'SITE_CODE',
    NULL,
    NULL,
    'Y',
    NULL,
    NULL,
    'N',
    'N',
    NULL,
    'pay_table',
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    'F',
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    '0',
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    'M',
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL
  );
--System Events
INSERT INTO SYSTEM_EVENTS
  (
    obj_name,
    event_code,
    event_context,
    service_code,
    method_rule,
    overwrite_core,
    chg_date,
    chg_user,
    chg_term,
    result_handle,
    comp_type,
    comp_name,
    comm_format
  )
  VALUES
  (
    'cadrewise_ad_param',
    'pre_save',
    '1',
    'presave_Cadrewiseadparam',
    NULL,
    '0',
    TO_DATE('8-11-2013 14:58:23','DD-MM-YYYY HH24:MI:SS'),
    'BASE      ',
    'BASE',
    '2',
    'EJB',
    'CopycadreAdParamPrs',
    NULL
  ) ;
--System Event Services
INSERT INTO SYSTEM_EVENT_SERVICES
  (
    service_code,
    service_descr,
    service_uri,
    service_provider,
    method_name,
    return_value,
    return_type,
    return_descr,
    return_xfrm,
    chg_date,
    chg_user,
    chg_term
  )
  VALUES
  (
    'presave_cadrewiseadparam',
    'preSaveRec',
    'http://172.16.145.69/BaseE12DotNetService6-3-0-135/E12BusinessLogic6-3-0-135.asmx',
    'BASE',
    'preSaveRec',
    'String',
    'S',
    NULL,
    NULL,
    TO_DATE('8-11-2013 14:59:25','DD-MM-YYYY HH24:MI:SS'),
    'BASE',
    'BASE'
  );
--System Service Args
INSERT INTO SYSTEM_SERVICE_ARGS
  (
    service_code,
    line_no,
    arg_name,
    arg_mode,
    descr,
    arg_type,
    arg_xfrm,
    chg_date,
    chg_user,
    chg_term,
    arg_value
  )
  VALUES
  (
    'presave_cadrewiseadparam',
    1,
    'COMPONENT_TYPE',
    'I',
    NULL,
    'C.String',
    NULL,
    TO_DATE('8-11-2013 15:00:37','DD-MM-YYYY HH24:MI:SS'),
    'BASE',
    'BASE',
    'EJB'
  );
INSERT INTO SYSTEM_SERVICE_ARGS
  (
    service_code,
    line_no,
    arg_name,
    arg_mode,
    descr,
    arg_type,
    arg_xfrm,
    chg_date,
    chg_user,
    chg_term,
    arg_value
  )
  VALUES
  (
    'presave_cadrewiseadparam',
    2,
    'COMPONENT_NAME',
    'I',
    NULL,
    'C.String',
    NULL,
    TO_DATE('8-11-2013 15:00:37','DD-MM-YYYY HH24:MI:SS'),
    'BASE',
    'BASE',
    'CopyCadreAdParamPrs'
  );
INSERT INTO SYSTEM_SERVICE_ARGS
  (
    service_code,
    line_no,
    arg_name,
    arg_mode,
    descr,
    arg_type,
    arg_xfrm,
    chg_date,
    chg_user,
    chg_term,
    arg_value
  )
  VALUES
  (
    'presave_cadrewiseadparam',
    3,
    'XML_DATA',
    'I',
    NULL,
    'S',
    NULL,
    TO_DATE('8-11-2013 15:00:37','DD-MM-YYYY HH24:MI:SS'),
    'BASE',
    'BASE',
    NULL
  );
INSERT INTO SYSTEM_SERVICE_ARGS
  (
    service_code,
    line_no,
    arg_name,
    arg_mode,
    descr,
    arg_type,
    arg_xfrm,
    chg_date,
    chg_user,
    chg_term,
    arg_value
  )
  VALUES
  (
    'presave_cadrewiseadparam',
    4,
    'DOM_ID',
    'I',
    NULL,
    'S',
    NULL,
    TO_DATE('8-11-2013 15:00:37','DD-MM-YYYY HH24:MI:SS'),
    'BASE',
    'BASE',
    NULL
  );
INSERT INTO SYSTEM_SERVICE_ARGS
  (
    service_code,
    line_no,
    arg_name,
    arg_mode,
    descr,
    arg_type,
    arg_xfrm,
    chg_date,
    chg_user,
    chg_term,
    arg_value
  )
  VALUES
  (
    'presave_cadrewiseadparam',
    5,
    'OBJ_CONTEXT',
    'I',
    NULL,
    'S',
    NULL,
    TO_DATE('8-11-2013 15:00:37','DD-MM-YYYY HH24:MI:SS'),
    'BASE',
    'BASE',
    NULL
  );
INSERT INTO SYSTEM_SERVICE_ARGS
  (
    service_code,
    line_no,
    arg_name,
    arg_mode,
    descr,
    arg_type,
    arg_xfrm,
    chg_date,
    chg_user,
    chg_term,
    arg_value
  )
  VALUES
  (
    'presave_cadrewiseadparam',
    6,
    'EDIT_FLAG',
    'I',
    NULL,
    'S',
    NULL,
    TO_DATE('8-11-2013 15:00:37','DD-MM-YYYY HH24:MI:SS'),
    'BASE',
    'BASE',
    NULL
  );
INSERT INTO SYSTEM_SERVICE_ARGS
  (
    service_code,
    line_no,
    arg_name,
    arg_mode,
    descr,
    arg_type,
    arg_xfrm,
    chg_date,
    chg_user,
    chg_term,
    arg_value
  )
  VALUES
  (
    'presave_cadrewiseadparam',
    7,
    'XTRA_PARAMS',
    'I',
    NULL,
    'S',
    NULL,
    TO_DATE('8-11-2013 15:00:37','DD-MM-YYYY HH24:MI:SS'),
    'BASE',
    'BASE',
    NULL
  );
INSERT INTO SYSTEM_SERVICE_ARGS
  (
    service_code,
    line_no,
    arg_name,
    arg_mode,
    descr,
    arg_type,
    arg_xfrm,
    chg_date,
    chg_user,
    chg_term,
    arg_value
  )
  VALUES
  (
    'presave_cadrewiseadparam',
    8,
    'DB_CONN',
    'I',
    NULL,
    'S.Connection',
    NULL,
    TO_DATE('8-11-2013 15:00:37','DD-MM-YYYY HH24:MI:SS'),
    'BASE',
    'BASE',
    NULL
  );
--Messages
INSERT INTO MESSAGES
  (
    msg_no,
    msg_str,
    msg_descr,
    msg_type,
    msg_opt,
    msg_time,
    alarm,
    err_source,
    chg_date,
    chg_user,
    chg_term,
    override_input,
    mail_option
  )
  VALUES
  (
    'NEWPAYTBL',
    'New Pay table Mandatory',
    'New Pay table should not leave Empty ',
    'E',
    'Y',
    NULL,
    NULL,
    NULL,
    TO_DATE('9-11-2013 00:00:00','DD-MM-YYYY HH24:MI:SS'),
    'Nikhil',
    'payroll',
    NULL,
    NULL
  );
INSERT INTO MESSAGES
  (
    msg_no,
    msg_str,
    msg_descr,
    msg_type,
    msg_opt,
    msg_time,
    alarm,
    err_source,
    chg_date,
    chg_user,
    chg_term,
    override_input,
    mail_option
  )
  VALUES
  (
    'NEWPAYNO',
    'New Pay table Not Exist',
    'Please check New Pay table entry  ',
    'E',
    'Y',
    NULL,
    NULL,
    NULL,
    TO_DATE('9-11-2013 00:00:00','DD-MM-YYYY HH24:MI:SS'),
    'Nikhil',
    'payroll',
    NULL,
    NULL
  );
INSERT INTO MESSAGES
  (
    msg_no,
    msg_str,
    msg_descr,
    msg_type,
    msg_opt,
    msg_time,
    alarm,
    err_source,
    chg_date,
    chg_user,
    chg_term,
    override_input,
    mail_option
  )
  VALUES
  (
    'NEWPAYAA',
    'New Pay table Already Exist',
    'Please check New Pay table Already Exist  ',
    'E',
    'Y',
    NULL,
    NULL,
    NULL,
    TO_DATE('9-11-2013 00:00:00','DD-MM-YYYY HH24:MI:SS'),
    'Nikhil',
    'payroll',
    NULL,
    NULL
  );

  //-------------------------
  
    
  
   INSERT INTO POPHELP
  (
    FIELD_NAME,
    MOD_NAME,
    SQL_STR,
    DW_OBJECT,
    MSG_TITLE,
    WIDTH,
    HEIGHT,
    CHG_DATE,
    CHG_USER,
    CHG_TERM,
    DIST_OPT,
    FILTER_STRING,
    SQL_INPUT,
    DEFAULT_COL,
    POP_ALIGN,
    QUERY_MODE,
    PAGE_CONTEXT,
    POPHELP_COLS,
    POPHELP_SOURCE,
    MULTI_OPT,
    HELP_OPTION
  )
  VALUES
  (
    'NEW_GRADE_CODE',
    'W_CADREWISE_AD_PARAM',
    'SELECT  CADRE_CODE,DESCR FROM CADRE ',
    'Cadre Code',
    'Cadre Code',
    0,0,
    TO_TIMESTAMP('20-MAY-13','DD-MON-RR HH.MI.SSXFF AM'),
    'VENKAT    ',
    'BASE           ',
    '1',
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL
  );
  
    
  INSERT INTO POPHELP
  (
    FIELD_NAME,
    MOD_NAME,
    SQL_STR,
    DW_OBJECT,
    MSG_TITLE,
    WIDTH,
    HEIGHT,
    CHG_DATE,
    CHG_USER,
    CHG_TERM,
    DIST_OPT,
    FILTER_STRING,
    SQL_INPUT,
    DEFAULT_COL,
    POP_ALIGN,
    QUERY_MODE,
    PAGE_CONTEXT,
    POPHELP_COLS,
    POPHELP_SOURCE,
    MULTI_OPT,
    HELP_OPTION
  )
  VALUES
  (
    'NEW_PAY_TABLE',
    'W_CADREWISE_AD_PARAM',
    'SELECT PAY_TABLE, DESCR FROM PAYTABLE ',
    'Pay Table No.',
    'Pay Table',
    0,0,
    TO_TIMESTAMP('20-MAY-13','DD-MON-RR HH.MI.SSXFF AM'),
    'VENKAT    ',
    'BASE           ',
    '1',
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL
  );
  
  ------------------------- Cadre wise Perk --------------------------
  
  
Insert into OBJ_LINKS (OBJ_NAME,FORM_NO,FIELD_NAME,TARGET_OBJ_NAME,LINK_FORM_NAME,LINK_TITLE,LINK_URI,LINK_TYPE,LINK_ARG,UPDATE_FLAG,LINK_NAME,RIGHTS_CHAR,IMAGE) values ('cadre_perk','1','pay_table','cadrewise_perk_param','cadrewise_perk_param21','Copy Button',null,'4','pay_table.String','0',null,'*',null);

UPDATE OBJ_LINKS SET TARGET_OBJ_NAME = 'cadrewise_perk_param', LINK_FORM_NAME = 'cadrewise_perk_param21' WHERE OBJ_NAME='cadre_perk';
COMMIT;


--System Events
INSERT INTO SYSTEM_EVENTS
  (
    obj_name,
    event_code,
    event_context,
    service_code,
    method_rule,
    overwrite_core,
    chg_date,
    chg_user,
    chg_term,
    result_handle,
    comp_type,
    comp_name,
    comm_format
  )
  VALUES
  (
    'cadrewise_perk_param',
    'pre_save',
    '1',
    'presave_cadrewiseperkparam',
    NULL,
    '0',
    TO_DATE('8-11-2013 14:58:23','DD-MM-YYYY HH24:MI:SS'),
    'BASE      ',
    'BASE',
    '2',
    'EJB',
    'CopyCadrePerkParamPrs',
    NULL
  );
  commit;
  
  
  INSERT INTO TRANSETUP
  (
    tran_window,
    save_flag,
    val_flag,
    key_flag,
    key_string,
    udf_1,
    udf_2,
    udf_3,
    udf_4,
    udf_5,
    repeate_add,
    chg_date ,
    chg_user,
    chg_term,
    edi_option,
    site_acc_col,
    confirm_col,
    confirm_val,
    repeat_add_det,
    repeatadddet,
    load_mode,
    auto_confirm,
    ledg_post_conf,
    chg_date_on_conf,
    tran_id_col,
    mail_option,
    confirm_mode,
    garbage_opt,
    val_flag_edi,
    verify_password,
    cust_acc_col,
    sales_pers_acc_col,
    supp_acc_col,
    item_ser_acc_code,
    emp_acc_col,
    item_ser_acc_col,
    workflow_opt,
    table_name,
    application,
    table_desc,
    tran_date_col,
    tran_id__from,
    tran_id__to,
    table_name_det1,
    table_name_det2,
    table_name_det3,
    multitire_opt,
    ref_ser,
    view_mode,
    tax_forms,
    sign_status,
    user_tran_window,
    custom_preview_obj,
    ignoreerrlist_onload,
    childdata_argopt,
    edit_tmplt,
    wrkflw_init,
    edittax,
    formal_args,
    audit_trail_opt,
    edit_opt,
    cache_opt,
    optimize_mode,
    edit_expr,
    rate_col,
    qty_col,
    edit_expr_inp,
    rcp_cache_status,
    print_control,
    transfer_mode,
    profile_id__res,
    tran_compl_msg,
    period_option,
    wrkflw_priority,
    exec_type,
    disp_meta_data,
    allow_attach,
    start_form,
    isattachment,
    header_form_no,
    msg_onsave,
    wf_status
  )
  VALUES
  (
    'w_cadrewise_perk_param',
    '2',
    '2',
    'M',
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    'Y',
    TO_DATE('8-11-2013 00:00:00','DD-MM-YYYY HH24:MI:SS'),
    'Nikhil',
    'payroll',
    '0',
    'SITE_CODE',
    NULL,
    NULL,
    'Y',
    NULL,
    NULL,
    'N',
    'N',
    NULL,
    'pay_table',
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    'F',
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    '0',
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    'M',
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL
  );
commit;




INSERT INTO SYSTEM_EVENT_SERVICES
  (
    service_code,
    service_descr,
    service_uri,
    service_provider,
    method_name,
    return_value,
    return_type,
    return_descr,
    return_xfrm,
    chg_date,
    chg_user,
    chg_term
  )
  VALUES
  (
    'presave_cadrewiseperkparam',
    'preSaveRec',
    'http://172.16.145.69/BaseE12DotNetService6-3-0-135/E12BusinessLogic6-3-0-135.asmx',
    'BASE',
    'preSaveRec',
    'String',
    'S',
    NULL,
    NULL,
    TO_DATE('8-11-2013 14:59:25','DD-MM-YYYY HH24:MI:SS'),
    'BASE',
    'BASE'
  );
--System Service Args
INSERT INTO SYSTEM_SERVICE_ARGS
  (
    service_code,
    line_no,
    arg_name,
    arg_mode,
    descr,
    arg_type,
    arg_xfrm,
    chg_date,
    chg_user,
    chg_term,
    arg_value
  )
  VALUES
  (
    'presave_cadrewiseperkparam',
    1,
    'COMPONENT_TYPE',
    'I',
    NULL,
    'C.String',
    NULL,
    TO_DATE('8-11-2013 15:00:37','DD-MM-YYYY HH24:MI:SS'),
    'BASE',
    'BASE',
    'EJB'
  );
INSERT INTO SYSTEM_SERVICE_ARGS
  (
    service_code,
    line_no,
    arg_name,
    arg_mode,
    descr,
    arg_type,
    arg_xfrm,
    chg_date,
    chg_user,
    chg_term,
    arg_value
  )
  VALUES
  (
    'presave_cadrewiseperkparam',
    2,
    'COMPONENT_NAME',
    'I',
    NULL,
    'C.String',
    NULL,
    TO_DATE('8-11-2013 15:00:37','DD-MM-YYYY HH24:MI:SS'),
    'BASE',
    'BASE',
    'CopyCadrePerkParamPrs'
  );
INSERT INTO SYSTEM_SERVICE_ARGS
  (
    service_code,
    line_no,
    arg_name,
    arg_mode,
    descr,
    arg_type,
    arg_xfrm,
    chg_date,
    chg_user,
    chg_term,
    arg_value
  )
  VALUES
  (
    'presave_cadrewiseperkparam',
    3,
    'XML_DATA',
    'I',
    NULL,
    'S',
    NULL,
    TO_DATE('8-11-2013 15:00:37','DD-MM-YYYY HH24:MI:SS'),
    'BASE',
    'BASE',
    NULL
  );
INSERT INTO SYSTEM_SERVICE_ARGS
  (
    service_code,
    line_no,
    arg_name,
    arg_mode,
    descr,
    arg_type,
    arg_xfrm,
    chg_date,
    chg_user,
    chg_term,
    arg_value
  )
  VALUES
  (
    'presave_cadrewiseperkparam',
    4,
    'DOM_ID',
    'I',
    NULL,
    'S',
    NULL,
    TO_DATE('8-11-2013 15:00:37','DD-MM-YYYY HH24:MI:SS'),
    'BASE',
    'BASE',
    NULL
  );
INSERT INTO SYSTEM_SERVICE_ARGS
  (
    service_code,
    line_no,
    arg_name,
    arg_mode,
    descr,
    arg_type,
    arg_xfrm,
    chg_date,
    chg_user,
    chg_term,
    arg_value
  )
  VALUES
  (
    'presave_cadrewiseperkparam',
    5,
    'OBJ_CONTEXT',
    'I',
    NULL,
    'S',
    NULL,
    TO_DATE('8-11-2013 15:00:37','DD-MM-YYYY HH24:MI:SS'),
    'BASE',
    'BASE',
    NULL
  );
INSERT INTO SYSTEM_SERVICE_ARGS
  (
    service_code,
    line_no,
    arg_name,
    arg_mode,
    descr,
    arg_type,
    arg_xfrm,
    chg_date,
    chg_user,
    chg_term,
    arg_value
  )
  VALUES
  (
    'presave_cadrewiseperkparam',
    6,
    'EDIT_FLAG',
    'I',
    NULL,
    'S',
    NULL,
    TO_DATE('8-11-2013 15:00:37','DD-MM-YYYY HH24:MI:SS'),
    'BASE',
    'BASE',
    NULL
  );
INSERT INTO SYSTEM_SERVICE_ARGS
  (
    service_code,
    line_no,
    arg_name,
    arg_mode,
    descr,
    arg_type,
    arg_xfrm,
    chg_date,
    chg_user,
    chg_term,
    arg_value
  )
  VALUES
  (
    'presave_cadrewiseperkparam',
    7,
    'XTRA_PARAMS',
    'I',
    NULL,
    'S',
    NULL,
    TO_DATE('8-11-2013 15:00:37','DD-MM-YYYY HH24:MI:SS'),
    'BASE',
    'BASE',
    NULL
  );
INSERT INTO SYSTEM_SERVICE_ARGS
  (
    service_code,
    line_no,
    arg_name,
    arg_mode,
    descr,
    arg_type,
    arg_xfrm,
    chg_date,
    chg_user,
    chg_term,
    arg_value
  )
  VALUES
  (
    'presave_cadrewiseperkparam',
    8,
    'DB_CONN',
    'I',
    NULL,
    'S.Connection',
    NULL,
    TO_DATE('8-11-2013 15:00:37','DD-MM-YYYY HH24:MI:SS'),
    'BASE',
    'BASE',
    NULL
  );
  
  //--------------------------------------------
  
    INSERT INTO POPHELP
  (
    FIELD_NAME,
    MOD_NAME,
    SQL_STR,
    DW_OBJECT,
    MSG_TITLE,
    WIDTH,
    HEIGHT,
    CHG_DATE,
    CHG_USER,
    CHG_TERM,
    DIST_OPT,
    FILTER_STRING,
    SQL_INPUT,
    DEFAULT_COL,
    POP_ALIGN,
    QUERY_MODE,
    PAGE_CONTEXT,
    POPHELP_COLS,
    POPHELP_SOURCE,
    MULTI_OPT,
    HELP_OPTION
  )
  VALUES
  (
    'NEW_PAY_TABLE',
    'W_CADREWISE_PERK_PARAM',
    'SELECT PAY_TABLE, DESCR FROM PAYTABLE ',
    'Pay Table No.',
    'Pay Table',
    0,0,
    TO_TIMESTAMP('20-MAY-13','DD-MON-RR HH.MI.SSXFF AM'),
    'VENKAT    ',
    'BASE           ',
    '1',
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL
  );
  
  INSERT INTO POPHELP
  (
    FIELD_NAME,
    MOD_NAME,
    SQL_STR,
    DW_OBJECT,
    MSG_TITLE,
    WIDTH,
    HEIGHT,
    CHG_DATE,
    CHG_USER,
    CHG_TERM,
    DIST_OPT,
    FILTER_STRING,
    SQL_INPUT,
    DEFAULT_COL,
    POP_ALIGN,
    QUERY_MODE,
    PAGE_CONTEXT,
    POPHELP_COLS,
    POPHELP_SOURCE,
    MULTI_OPT,
    HELP_OPTION
  )
  VALUES
  (
    'NEW_CADRE_CODE',
    'W_CADREWISE_PERK_PARAM',
    'SELECT CADRE_CODE,DESCR  FROM CADRE ',
    'Cadre Code',
    'Cadre Code',
    0,0,
    TO_TIMESTAMP('20-MAY-13','DD-MON-RR HH.MI.SSXFF AM'),
    'VENKAT    ',
    'BASE           ',
    '1',
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL
  );
  
   INSERT INTO MESSAGES
  (
    msg_no,
    msg_str,
    msg_descr,
    msg_type,
    msg_opt,
    msg_time,
    alarm,
    err_source,
    chg_date,
    chg_user,
    chg_term,
    override_input,
    mail_option
  )
  VALUES
  (
    'CCNOEXIST',
    'Cadre Code Not Exist',
    'Please check Cadre code entry  ',
    'E',
    'Y',
    NULL,
    NULL,
    NULL,
    TO_DATE('9-11-2013 00:00:00','DD-MM-YYYY HH24:MI:SS'),
    'Nikhil',
    'payroll',
    NULL,
    NULL
  );
  
  INSERT INTO MESSAGES
  (
    msg_no,
    msg_str,
    msg_descr,
    msg_type,
    msg_opt,
    msg_time,
    alarm,
    err_source,
    chg_date,
    chg_user,
    chg_term,
    override_input,
    mail_option
  )
  VALUES
  (
    'PAYCCTBL',
    'Enter Newpaytable or Cadrecode',
    'NewPaytable or Cadre Code one of them is  Mandatory',
    'E',
    'Y',
    NULL,
    NULL,
    NULL,
    TO_DATE('9-11-2013 00:00:00','DD-MM-YYYY HH24:MI:SS'),
    'Nikhil',
    'payroll',
    NULL,
    NULL
  );
  
  INSERT INTO MESSAGES
  (
    msg_no,
    msg_str,
    msg_descr,
    msg_type,
    msg_opt,
    msg_time,
    alarm,
    err_source,
    chg_date,
    chg_user,
    chg_term,
    override_input,
    mail_option
  )
  VALUES
  (
    'NEWCCNEMP',
    'Cadre Code is Mandatory',
    'Cadre Code should not leave Empty ',
    'E',
    'Y',
    NULL,
    NULL,
    NULL,
    TO_DATE('9-11-2013 00:00:00','DD-MM-YYYY HH24:MI:SS'),
    'Nikhil',
    'payroll',
    NULL,
    NULL
  );
  
  
  
  commit;
  
  ------------------------ Grade wise Monthly -------------------------
  
  
INSERT INTO OBJ_LINKS (	obj_name, 	form_no, 	field_name, 	target_obj_name, 	link_form_name, 	link_title, 	link_uri, 	link_type, 	link_arg, 	update_flag, 	link_name, 	rights_char, 	image )
VALUES ( 	'grade_mthad', 	'1', 	'pay_table', 	'gradewise_mthad_param', 	'gradewise_mthad_param21', 	'Copy Button', 	NULL, 	'4' ,'pay_table.String:pay_table,grade_code.String:grade_code,month_code.String:month_code', 	'0', 	NULL, 	'*', NULL);
commit; 
//============================================================

INSERT INTO SYSTEM_EVENTS (obj_name, 	event_code, 	event_context, 	service_code, 	method_rule, 	overwrite_core, 	chg_date, 	chg_user, 	chg_term, 	result_handle, 	comp_type, 	comp_name, 	comm_format )
VALUES ( 'gradewise_mthad_param', 	'pre_save', 	'1', 	'presave_gradewise_mthad_param', 	NULL, 	'0', 	TO_DATE('8-11-2013 14:58:23','DD-MM-YYYY HH24:MI:SS'), 	'BASE      ', 	'BASE', 	'2', 	'EJB', 	'CopyGradeMthad', 	NULL);
commit;
//==========================================================

INSERT INTO SYSTEM_EVENT_SERVICES (	service_code, 	service_descr, 	service_uri, 	service_provider, 	method_name, 	return_value, 	return_type, 	return_descr, 	return_xfrm, 	chg_date, 	chg_user, 	chg_term ) 
VALUES ( 	'presave_gradewise_mthad_param', 	'preSaveRec', 	'http://172.16.145.69/BaseE12DotNetService6-3-0-135/E12BusinessLogic6-3-0-135.asmx', 	'BASE', 	'preSaveRec', 	'String', 	'S', 	NULL, 	NULL, 	TO_DATE('8-11-2013 14:59:25','DD-MM-YYYY HH24:MI:SS'), 	'BASE', 	'BASE'); 
commit;
---------------------------------------------------------------------------------------


INSERT INTO SYSTEM_SERVICE_ARGS (	service_code, 	line_no, 	arg_name, 	arg_mode, 	descr, 	arg_type, 	arg_xfrm, 	chg_date, 	chg_user, 	chg_term, 	arg_value 	    ) 
VALUES ( 	'presave_gradewise_mthad_param', 	1, 	'COMPONENT_TYPE', 	'I', 	NULL, 	'C.String', 	NULL, 	TO_DATE('8-11-2013 15:00:37','DD-MM-YYYY HH24:MI:SS'), 	'BASE', 	'BASE', 	'EJB'); 
commit;
-----------------------------------------------------------------------

INSERT INTO SYSTEM_SERVICE_ARGS (	service_code, 	line_no, 	arg_name, 	arg_mode, 	descr, 	arg_type, 	arg_xfrm, 	chg_date, 	chg_user, 	chg_term, 	arg_value 	 	) 
VALUES ( 	'presave_gradewise_mthad_param', 	2, 	'COMPONENT_NAME', 	'I', 	NULL, 	'C.String', 	NULL, 	TO_DATE('8-11-2013 15:00:37','DD-MM-YYYY HH24:MI:SS'), 	'BASE', 	'BASE', 	'CopyGradeMthad');
commit;
---------------------------------------------------------------------------

INSERT INTO SYSTEM_SERVICE_ARGS (	service_code, 	line_no, 	arg_name, 	arg_mode, 	descr, 	arg_type, 	arg_xfrm, 	chg_date, 	chg_user, 	chg_term, 	arg_value 	 	) 
VALUES ( 	'presave_gradewise_mthad_param', 	3, 	'XML_DATA', 	'I', 	NULL, 	'S', 	NULL, 	TO_DATE('8-11-2013 15:00:37','DD-MM-YYYY HH24:MI:SS'), 	'BASE', 	'BASE', 	NULL);
commit;

INSERT INTO SYSTEM_SERVICE_ARGS (	service_code, 	line_no, 	arg_name, 	arg_mode, 	descr, 	arg_type, 	arg_xfrm, 	chg_date, 	chg_user, 	chg_term, 	arg_value 	 	) 
VALUES ( 	'presave_gradewise_mthad_param', 	4, 	'DOM_ID', 	'I', 	NULL, 	'S', 	NULL, 	TO_DATE('8-11-2013 15:00:37','DD-MM-YYYY HH24:MI:SS'), 	'BASE', 	'BASE', 	NULL);
commit;

INSERT INTO SYSTEM_SERVICE_ARGS (	service_code, 	line_no, 	arg_name, 	arg_mode, 	descr, 	arg_type, 	arg_xfrm, 	chg_date, 	chg_user, 	chg_term, 	arg_value 	 	) 
VALUES ( 	'presave_gradewise_mthad_param', 	5, 	'OBJ_CONTEXT', 	'I', 	NULL, 	'S', 	NULL, 	TO_DATE('8-11-2013 15:00:37','DD-MM-YYYY HH24:MI:SS'), 	'BASE', 	'BASE', 	NULL);
commit;

INSERT INTO SYSTEM_SERVICE_ARGS (	service_code, 	line_no, 	arg_name, 	arg_mode, 	descr, 	arg_type, 	arg_xfrm, 	chg_date, 	chg_user, 	chg_term, 	arg_value 	 	)
VALUES ( 	'presave_gradewise_mthad_param', 	6, 	'EDIT_FLAG', 	'I', 	NULL, 	'S', 	NULL, 	TO_DATE('8-11-2013 15:00:37','DD-MM-YYYY HH24:MI:SS'), 	'BASE', 	'BASE', 	NULL);
commit;

INSERT INTO SYSTEM_SERVICE_ARGS (	service_code, 	line_no, 	arg_name, 	arg_mode, 	descr, 	arg_type, 	arg_xfrm, 	chg_date, 	chg_user, 	chg_term, 	arg_value 	 	) 
VALUES ( 	'presave_gradewise_mthad_param', 	7, 	'XTRA_PARAMS', 	'I', 	NULL, 	'S', 	NULL, 	TO_DATE('8-11-2013 15:00:37','DD-MM-YYYY HH24:MI:SS'), 	'BASE', 	'BASE', 	NULL);
commit;

INSERT INTO SYSTEM_SERVICE_ARGS (	service_code, 	line_no, 	arg_name, 	arg_mode, 	descr, 	arg_type, 	arg_xfrm, 	chg_date, 	chg_user, 	chg_term, 	arg_value 	 	) 
VALUES ( 	'presave_gradewise_mthad_param', 	8, 	'DB_CONN', 	'I', 	NULL, 	'S.Connection', 	NULL, 	TO_DATE('8-11-2013 15:00:37','DD-MM-YYYY HH24:MI:SS'), 	'BASE', 	'BASE', 	NULL);
commit;
----------------------------------------------------------------------------

INSERT INTO TRANSETUP (	tran_window, 	save_flag, 	val_flag, 	key_flag, 	key_string, 	udf_1, 	udf_2, 	udf_3, 	udf_4, 	udf_5, 	repeate_add, 	chg_date , 	chg_user, 	chg_term, 	edi_option, 	site_acc_col, 	confirm_col, 	confirm_val, 	repeat_add_det, 	repeatadddet, 	load_mode, 	auto_confirm, 	ledg_post_conf, 	chg_date_on_conf, 	tran_id_col, 	mail_option, 	confirm_mode, 	garbage_opt, 	val_flag_edi, 	verify_password, 	cust_acc_col, 	sales_pers_acc_col, 	supp_acc_col, 	item_ser_acc_code, 	emp_acc_col, 	item_ser_acc_col, 	workflow_opt, 	table_name, 	application, 	table_desc, 	tran_date_col, 	tran_id__from, 	tran_id__to, 	table_name_det1, 	table_name_det2, 	table_name_det3, 	multitire_opt, 	ref_ser, 	view_mode, 	tax_forms, 	sign_status, 	user_tran_window, 	custom_preview_obj, 	ignoreerrlist_onload, 	childdata_argopt, 	edit_tmplt, 	wrkflw_init, 	edittax, 	formal_args, 	audit_trail_opt, 	edit_opt, 	cache_opt, 	optimize_mode, 	edit_expr, 	rate_col, 	qty_col, 	edit_expr_inp, 	rcp_cache_status, 	print_control, 	transfer_mode, 	profile_id__res, 	tran_compl_msg, 	period_option, 	wrkflw_priority, 	exec_type, 	disp_meta_data, 	allow_attach, 	start_form, 	isattachment, 	header_form_no, 	msg_onsave, 	wf_status )
VALUES ( 	'w_gradewise_mthad_param', 	'2', 	'2', 	'M', 	NULL, 	NULL, 	NULL, 	NULL, 	NULL, 	NULL, 	'Y', 	TO_DATE('8-11-2013 00:00:00','DD-MM-YYYY HH24:MI:SS'), 	'Nikhil', 	'payroll', 	'0', 	'SITE_CODE', 	NULL, 	NULL, 	'Y', 	NULL, 	NULL, 	'N', 	'N', 	NULL, 	'pay_table', 	NULL, 	NULL, 	NULL, 	NULL, 	NULL, 	NULL, 	NULL, 	NULL, 	NULL, 	NULL, 	NULL, 	NULL, 	NULL, 	NULL, 	NULL, 	NULL, 	NULL, 	NULL, 	NULL, 	NULL, 	NULL, 	NULL, 	NULL, 	'F', 	NULL, 	NULL, 	NULL, 	NULL, 	NULL, 	NULL, 	NULL, 	NULL, 	NULL, 	NULL, 	'0', 	NULL, 	NULL, 	NULL, 	NULL, 	NULL, 	NULL, 	NULL, 	NULL, 	NULL, 	NULL, 	NULL, 	NULL, 	'M', 	NULL, 	NULL, 	NULL, 	NULL, 	NULL, 	NULL, 	NULL, 	NULL, 	NULL); 
commit;

------------------------------------------------------------------------------


INSERT INTO Messages (
	msg_no,
	msg_str,
	msg_descr,
	msg_type,
	msg_opt,
	msg_time,
	alarm,
	err_source ,
	chg_date,
	chg_user,
	chg_term,
	override_input ,
	mail_option )
 VALUES (
	'NEWPATBNUL',
	'New Pay Table is empty',
	'Please enter New Pay Table , it can not be blank.',
	'E',
	'Y',
	NULL,
	NULL,
	NULL,
	TO_DATE('16-10-2012 17:35:00','DD-MM-YYYY HH24:MI:SS'),
	'SumitP    ',
	'BASE           ',
	NULL,
	NULL);

commit;

INSERT INTO Messages (
	msg_no,
	msg_str,
	msg_descr,
	msg_type,
	msg_opt,
	msg_time,
	alarm,
	err_source ,
	chg_date,
	chg_user,
	chg_term,
	override_input ,
	mail_option )
 VALUES (
	'NEWPATBINV',
	'New Pay Table is invalid',
	'Please enter only 5 characters.',
	'E',
	'Y',
	NULL,
	NULL,
	NULL,
	TO_DATE('16-10-2012 17:35:00','DD-MM-YYYY HH24:MI:SS'),
	'SumitP    ',
	'BASE           ',
	NULL,
	NULL);

commit;

INSERT INTO Messages (
	msg_no,
	msg_str,
	msg_descr,
	msg_type,
	msg_opt,
	msg_time,
	alarm,
	err_source ,
	chg_date,
	chg_user,
	chg_term,
	override_input ,
	mail_option )
 VALUES (
	'NEWPATBEXT',
	'New Pay Table already exists',
	'Please enter other New Pay Table.',
	'E',
	'Y',
	NULL,
	NULL,
	NULL,
	TO_DATE('16-10-2012 17:35:00','DD-MM-YYYY HH24:MI:SS'),
	'SumitP    ',
	'BASE           ',
	NULL,
	NULL);

commit;

INSERT INTO Messages (
	msg_no,
	msg_str,
	msg_descr,
	msg_type,
	msg_opt,
	msg_time,
	alarm,
	err_source ,
	chg_date,
	chg_user,
	chg_term,
	override_input ,
	mail_option )
 VALUES (
	'NEWMNTCNUL',
	'New Month Code is empty',
	'Please enter New Month Code , it can not be blank.',
	'E',
	'Y',
	NULL,
	NULL,
	NULL,
	TO_DATE('16-10-2012 17:35:00','DD-MM-YYYY HH24:MI:SS'),
	'SumitP    ',
	'BASE           ',
	NULL,
	NULL);

commit;

INSERT INTO Messages (
	msg_no,
	msg_str,
	msg_descr,
	msg_type,
	msg_opt,
	msg_time,
	alarm,
	err_source ,
	chg_date,
	chg_user,
	chg_term,
	override_input ,
	mail_option )
 VALUES (
	'NEWMNTHINV',
	'New Month Code is invalid',
	'Please enter correct New Month Code.',
	'E',
	'Y',
	NULL,
	NULL,
	NULL,
	TO_DATE('16-10-2012 17:35:00','DD-MM-YYYY HH24:MI:SS'),
	'SumitP    ',
	'BASE           ',
	NULL,
	NULL);

commit;

INSERT INTO Messages (
	msg_no,
	msg_str,
	msg_descr,
	msg_type,
	msg_opt,
	msg_time,
	alarm,
	err_source ,
	chg_date,
	chg_user,
	chg_term,
	override_input ,
	mail_option )
 VALUES (
	'NEWGRADNUL',
	'New Grade Code is empty',
	'Please enter New Grade Code , it can not be blank.',
	'E',
	'Y',
	NULL,
	NULL,
	NULL,
	TO_DATE('16-10-2012 17:35:00','DD-MM-YYYY HH24:MI:SS'),
	'SumitP    ',
	'BASE           ',
	NULL,
	NULL);

commit;

INSERT INTO Messages (
	msg_no,
	msg_str,
	msg_descr,
	msg_type,
	msg_opt,
	msg_time,
	alarm,
	err_source ,
	chg_date,
	chg_user,
	chg_term,
	override_input ,
	mail_option )
 VALUES (
	'NEWGRADINV',
	'New Grade Code is invalid',
	'Please enter correct New Grade Code.',
	'E',
	'Y',
	NULL,
	NULL,
	NULL,
	TO_DATE('16-10-2012 17:35:00','DD-MM-YYYY HH24:MI:SS'),
	'SumitP    ',
	'BASE           ',
	NULL,
	NULL);

	
	///-----------------------------
	
	INSERT INTO POPHELP
  (
    FIELD_NAME,
    MOD_NAME,
    SQL_STR,
    DW_OBJECT,
    MSG_TITLE,
    WIDTH,
    HEIGHT,
    CHG_DATE,
    CHG_USER,
    CHG_TERM,
    DIST_OPT,
    FILTER_STRING,
    SQL_INPUT,
    DEFAULT_COL,
    POP_ALIGN,
    QUERY_MODE,
    PAGE_CONTEXT,
    POPHELP_COLS,
    POPHELP_SOURCE,
    MULTI_OPT,
    HELP_OPTION
  )
  VALUES
  (
    'NEW_PAY_TABLE',
    'W_GRADEWISE_MTHAD_PARAM',
    'SELECT PAY_TABLE, DESCR FROM PAYTABLE ',
    'Pay Table No.',
    'Pay Table',
    0,0,
    TO_TIMESTAMP('20-MAY-13','DD-MON-RR HH.MI.SSXFF AM'),
    'VENKAT    ',
    'BASE           ',
    '1',
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL
  );
  
    INSERT INTO POPHELP
  (
    FIELD_NAME,
    MOD_NAME,
    SQL_STR,
    DW_OBJECT,
    MSG_TITLE,
    WIDTH,
    HEIGHT,
    CHG_DATE,
    CHG_USER,
    CHG_TERM,
    DIST_OPT,
    FILTER_STRING,
    SQL_INPUT,
    DEFAULT_COL,
    POP_ALIGN,
    QUERY_MODE,
    PAGE_CONTEXT,
    POPHELP_COLS,
    POPHELP_SOURCE,
    MULTI_OPT,
    HELP_OPTION
  )
  VALUES
  (
    'NEW_GRADE_CODE',
    'W_GRADEWISE_MTHAD_PARAM',
    'SELECT  GRADE_CODE,DESCR FROM GRADE ',
    'Grade Code',
    'Grade Code',
    0,0,
    TO_TIMESTAMP('20-MAY-13','DD-MON-RR HH.MI.SSXFF AM'),
    'VENKAT    ',
    'BASE           ',
    '1',
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL
  );
  
  INSERT INTO POPHELP
  (
    FIELD_NAME,
    MOD_NAME,
    SQL_STR,
    DW_OBJECT,
    MSG_TITLE,
    WIDTH,
    HEIGHT,
    CHG_DATE,
    CHG_USER,
    CHG_TERM,
    DIST_OPT,
    FILTER_STRING,
    SQL_INPUT,
    DEFAULT_COL,
    POP_ALIGN,
    QUERY_MODE,
    PAGE_CONTEXT,
    POPHELP_COLS,
    POPHELP_SOURCE,
    MULTI_OPT,
    HELP_OPTION
  )
  VALUES
  (
    'NEW_MONTH_CODE',
    'W_GRADEWISE_MTHAD_PARAM',
    'SELECT DISTINCT(MONTH_CODE) FROM GRADE_MTHAD ',
    'Month Code',
    'Month Code',
    0,0,
    TO_TIMESTAMP('20-MAY-13','DD-MON-RR HH.MI.SSXFF AM'),
    'VENKAT    ',
    'BASE           ',
    '1',
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL
  );
  
	  INSERT INTO POPHELP
  (
    FIELD_NAME,
    MOD_NAME,
    SQL_STR,
    DW_OBJECT,
    MSG_TITLE,
    WIDTH,
    HEIGHT,
    CHG_DATE,
    CHG_USER,
    CHG_TERM,
    DIST_OPT,
    FILTER_STRING,
    SQL_INPUT,
    DEFAULT_COL,
    POP_ALIGN,
    QUERY_MODE,
    PAGE_CONTEXT,
    POPHELP_COLS,
    POPHELP_SOURCE,
    MULTI_OPT,
    HELP_OPTION
  )
  VALUES
  (
    'MONTH_CODE',
    'W_GRADE_MTHAD',
    'SELECT DISTINCT(MONTH_CODE) FROM GRADE_MTHAD ',
    'Month Code',
    'Month Code',
    0,0,
    TO_TIMESTAMP('20-MAY-13','DD-MON-RR HH.MI.SSXFF AM'),
    'VENKAT    ',
    'BASE           ',
    '1',
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL
  );
  
  
  INSERT INTO MESSAGES
  (
    msg_no,
    msg_str,
    msg_descr,
    msg_type,
    msg_opt,
    msg_time,
    alarm,
    err_source,
    chg_date,
    chg_user,
    chg_term,
    override_input,
    mail_option
  )
  VALUES
  (
    'MNCNOEXIST',
    'Month Code is not Exists',
    'Month Code must between 1 to 12 ',
    'E',
    'Y',
    NULL,
    NULL,
    NULL,
    TO_DATE('9-11-2013 00:00:00','DD-MM-YYYY HH24:MI:SS'),
    'Nikhil',
    'payroll',
    NULL,
    NULL
  );
  
    INSERT INTO MESSAGES
  (
    msg_no,
    msg_str,
    msg_descr,
    msg_type,
    msg_opt,
    msg_time,
    alarm,
    err_source,
    chg_date,
    chg_user,
    chg_term,
    override_input,
    mail_option
  )
  VALUES
  (
    'NEWMCNEMP',
    'Month Code is Mandatory',
    'Month Code should not leave Empty ',
    'E',
    'Y',
    NULL,
    NULL,
    NULL,
    TO_DATE('9-11-2013 00:00:00','DD-MM-YYYY HH24:MI:SS'),
    'Nikhil',
    'payroll',
    NULL,
    NULL
  );
  
  INSERT INTO MESSAGES
  (
    msg_no,
    msg_str,
    msg_descr,
    msg_type,
    msg_opt,
    msg_time,
    alarm,
    err_source,
    chg_date,
    chg_user,
    chg_term,
    override_input,
    mail_option
  )
  VALUES
  (
    'PAYGRTBL',
    'Enter Newpaytable or Gradecode',
    'NewPaytable or Grade Code one of them is  Mandatory',
    'E',
    'Y',
    NULL,
    NULL,
    NULL,
    TO_DATE('9-11-2013 00:00:00','DD-MM-YYYY HH24:MI:SS'),
    'Nikhil',
    'payroll',
    NULL,
    NULL
  );
  INSERT INTO MESSAGES
  (
    msg_no,
    msg_str,
    msg_descr,
    msg_type,
    msg_opt,
    msg_time,
    alarm,
    err_source,
    chg_date,
    chg_user,
    chg_term,
    override_input,
    mail_option
  )
  VALUES
  (
    'GCNOEXIST',
    'Grade Code Not Exist',
    'Please check Grade code entry  ',
    'E',
    'Y',
    NULL,
    NULL,
    NULL,
    TO_DATE('9-11-2013 00:00:00','DD-MM-YYYY HH24:MI:SS'),
    'Nikhil',
    'payroll',
    NULL,
    NULL
  );
	
	
commit;


------------------------k.holiday------------------------



------------------------------------------------K. Holiday--------------------------------------------------
--Transetup

INSERT INTO TRANSETUP
  (
    tran_window,
    save_flag,
    val_flag,
    key_flag,
    key_string,
    udf_1,
    udf_2,
    udf_3,
    udf_4,
    udf_5,
    repeate_add,
    chg_date ,
    chg_user,
    chg_term,
    edi_option,
    site_acc_col,
    confirm_col,
    confirm_val,
    repeat_add_det,
    repeatadddet,
    load_mode,
    auto_confirm,
    ledg_post_conf,
    chg_date_on_conf,
    tran_id_col,
    mail_option,
    confirm_mode,
    garbage_opt,
    val_flag_edi,
    verify_password,
    cust_acc_col,
    sales_pers_acc_col,
    supp_acc_col,
    item_ser_acc_code,
    emp_acc_col,
    item_ser_acc_col,
    workflow_opt,
    table_name,
    application,
    table_desc,
    tran_date_col,
    tran_id__from,
    tran_id__to,
    table_name_det1,
    table_name_det2,
    table_name_det3,
    multitire_opt,
    ref_ser,
    view_mode,
    tax_forms,
    sign_status,
    user_tran_window,
    custom_preview_obj,
    ignoreerrlist_onload,
    childdata_argopt,
    edit_tmplt,
    wrkflw_init,
    edittax,
    formal_args,
    audit_trail_opt,
    edit_opt,
    cache_opt,
    optimize_mode,
    edit_expr,
    rate_col,
    qty_col,
    edit_expr_inp,
    rcp_cache_status,
    print_control,
    transfer_mode,
    profile_id__res,
    tran_compl_msg,
    period_option,
    wrkflw_priority,
    exec_type,
    disp_meta_data,
    allow_attach,
    start_form,
    isattachment,
    header_form_no,
    msg_onsave,
    wf_status
  )
  VALUES
  (
    'w_hol_param',
    '2',
    '2',
    'M',
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    'Y',
    TO_DATE('8-11-2013 00:00:00','DD-MM-YYYY HH24:MI:SS'),
    'Nikhil',
    'payroll',
    '0',
    'SITE_CODE',
    NULL,
    NULL,
    'Y',
    NULL,
    NULL,
    'N',
    'N',
    NULL,
    'hol_tblno',
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    'F',
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    '0',
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    'M',
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL
  ); 

--System_Events 

INSERT INTO SYSTEM_EVENTS
  (
    obj_name,
    event_code,
    event_context,
    service_code,
    method_rule,
    overwrite_core,
    chg_date,
    chg_user,
    chg_term,
    result_handle,
    comp_type,
    comp_name,
    comm_format
  )
  VALUES
  (
    'hol_param',
    'pre_save',
    '1',
    'presave_holparam',
    NULL,
    '0',
    TO_DATE('8-11-2013 14:58:23','DD-MM-YYYY HH24:MI:SS'),
    'BASE      ',
    'BASE',
    '2',
    'EJB',
    'CopyHolParamPrs',
    NULL
  );

--System_event_services

INSERT INTO SYSTEM_EVENT_SERVICES
  (
    service_code,
    service_descr,
    service_uri,
    service_provider,
    method_name,
    return_value,
    return_type,
    return_descr,
    return_xfrm,
    chg_date,
    chg_user,
    chg_term
  )
  VALUES
  (
    'presave_holparam',
    'preSaveRec',
    'http://172.16.145.69/BaseE12DotNetService6-3-0-135/E12BusinessLogic6-3-0-135.asmx',
    'BASE',
    'preSaveRec',
    'String',
    'S',
    NULL,
    NULL,
    TO_DATE('8-11-2013 14:59:25','DD-MM-YYYY HH24:MI:SS'),
    'BASE',
    'BASE'
  ); 

--System_Service_Args

INSERT INTO SYSTEM_SERVICE_ARGS
  (
    service_code,
    line_no,
    arg_name,
    arg_mode,
    descr,
    arg_type,
    arg_xfrm,
    chg_date,
    chg_user,
    chg_term,
    arg_value
  )
  VALUES
  (
    'presave_holparam',
    1,
    'COMPONENT_TYPE',
    'I',
    NULL,
    'C.String',
    NULL,
    TO_DATE('8-11-2013 15:00:37','DD-MM-YYYY HH24:MI:SS'),
    'BASE',
    'BASE',
    'EJB'
  );
INSERT INTO SYSTEM_SERVICE_ARGS
  (
    service_code,
    line_no,
    arg_name,
    arg_mode,
    descr,
    arg_type,
    arg_xfrm,
    chg_date,
    chg_user,
    chg_term,
    arg_value
  )
  VALUES
  (
    'presave_holparam',
    2,
    'COMPONENT_NAME',
    'I',
    NULL,
    'C.String',
    NULL,
    TO_DATE('8-11-2013 15:00:37','DD-MM-YYYY HH24:MI:SS'),
    'BASE',
    'BASE',
    'CopyHolParamPrs'
  );
INSERT INTO SYSTEM_SERVICE_ARGS
  (
    service_code,
    line_no,
    arg_name,
    arg_mode,
    descr,
    arg_type,
    arg_xfrm,
    chg_date,
    chg_user,
    chg_term,
    arg_value
  )
  VALUES
  (
    'presave_holparam',
    3,
    'XML_DATA',
    'I',
    NULL,
    'S',
    NULL,
    TO_DATE('8-11-2013 15:00:37','DD-MM-YYYY HH24:MI:SS'),
    'BASE',
    'BASE',
    NULL
  );
INSERT INTO SYSTEM_SERVICE_ARGS
  (
    service_code,
    line_no,
    arg_name,
    arg_mode,
    descr,
    arg_type,
    arg_xfrm,
    chg_date,
    chg_user,
    chg_term,
    arg_value
  )
  VALUES
  (
    'presave_holparam',
    4,
    'DOM_ID',
    'I',
    NULL,
    'S',
    NULL,
    TO_DATE('8-11-2013 15:00:37','DD-MM-YYYY HH24:MI:SS'),
    'BASE',
    'BASE',
    NULL
  );
INSERT INTO SYSTEM_SERVICE_ARGS
  (
    service_code,
    line_no,
    arg_name,
    arg_mode,
    descr,
    arg_type,
    arg_xfrm,
    chg_date,
    chg_user,
    chg_term,
    arg_value
  )
  VALUES
  (
    'presave_holparam',
    5,
    'OBJ_CONTEXT',
    'I',
    NULL,
    'S',
    NULL,
    TO_DATE('8-11-2013 15:00:37','DD-MM-YYYY HH24:MI:SS'),
    'BASE',
    'BASE',
    NULL
  );
INSERT INTO SYSTEM_SERVICE_ARGS
  (
    service_code,
    line_no,
    arg_name,
    arg_mode,
    descr,
    arg_type,
    arg_xfrm,
    chg_date,
    chg_user,
    chg_term,
    arg_value
  )
  VALUES
  (
    'presave_holparam',
    6,
    'EDIT_FLAG',
    'I',
    NULL,
    'S',
    NULL,
    TO_DATE('8-11-2013 15:00:37','DD-MM-YYYY HH24:MI:SS'),
    'BASE',
    'BASE',
    NULL
  );
INSERT INTO SYSTEM_SERVICE_ARGS
  (
    service_code,
    line_no,
    arg_name,
    arg_mode,
    descr,
    arg_type,
    arg_xfrm,
    chg_date,
    chg_user,
    chg_term,
    arg_value
  )
  VALUES
  (
    'presave_holparam',
    7,
    'XTRA_PARAMS',
    'I',
    NULL,
    'S',
    NULL,
    TO_DATE('8-11-2013 15:00:37','DD-MM-YYYY HH24:MI:SS'),
    'BASE',
    'BASE',
    NULL
  );
INSERT INTO SYSTEM_SERVICE_ARGS
  (
    service_code,
    line_no,
    arg_name,
    arg_mode,
    descr,
    arg_type,
    arg_xfrm,
    chg_date,
    chg_user,
    chg_term,
    arg_value
  )
  VALUES
  (
    'presave_holparam',
    8,
    'DB_CONN',
    'I',
    NULL,
    'S.Connection',
    NULL,
    TO_DATE('8-11-2013 15:00:37','DD-MM-YYYY HH24:MI:SS'),
    'BASE',
    'BASE',
    NULL
  );

--Obj_Links

INSERT INTO OBJ_LINKS
  (
    obj_name,
    form_no,
    field_name,
    target_obj_name,
    link_form_name,
    link_title,
    link_uri,
    link_type,
    link_arg,
    update_flag,
    link_name,
    rights_char,
    image
  )
  VALUES
  (
    'holiday_tbl',
    '1',
    'hol_tblno',
    'hol_param',
    'hol_param21',
    'Copy Button',
    NULL,
    '4',
    'hol_tblno.String',
    '0',
    NULL,
    '*',
    NULL
  );
 --Messages

INSERT INTO MESSAGES
  (
    msg_no,
    msg_str,
    msg_descr,
    msg_type,
    msg_opt,
    msg_time,
    alarm,
    err_source,
    chg_date,
    chg_user,
    chg_term,
    override_input,
    mail_option
  )
  VALUES
  (
    'NEWTBLINV',
    'Max size is 5 for New Table No',
    'Maximum New Table Number length should be 5 ',
    'E',
    'Y',
    NULL,
    NULL,
    NULL,
    TO_DATE('9-11-2013 00:00:00','DD-MM-YYYY HH24:MI:SS'),
    'Nikhil',
    'payroll',
    NULL,
    NULL
  );
INSERT INTO MESSAGES
  (
    msg_no,
    msg_str,
    msg_descr,
    msg_type,
    msg_opt,
    msg_time,
    alarm,
    err_source,
    chg_date,
    chg_user,
    chg_term,
    override_input,
    mail_option
  )
  VALUES
  (
    'NEWTBLNUL ',
    'New Table No is Mandatory',
    'New Table Number should not be blank',
    'E',
    'Y',
    NULL,
    NULL,
    NULL,
    TO_DATE('9-11-2013 00:00:00','DD-MM-YYYY HH24:MI:SS'),
    'Nikhil',
    'payroll',
    NULL,
    NULL
  );
commit;


INSERT INTO POPHELP
  (
    FIELD_NAME,
    MOD_NAME,
    SQL_STR,
    DW_OBJECT,
    MSG_TITLE,
    WIDTH,
    HEIGHT,
    CHG_DATE,
    CHG_USER,
    CHG_TERM,
    DIST_OPT,
    FILTER_STRING,
    SQL_INPUT,
    DEFAULT_COL,
    POP_ALIGN,
    QUERY_MODE,
    PAGE_CONTEXT,
    POPHELP_COLS,
    POPHELP_SOURCE,
    MULTI_OPT,
    HELP_OPTION
  )
  VALUES
  (
    'NEW_HOL_TBLNO',
    'W_HOL_PARAM',
    'select descr as Description,trim(fld_value) as Code,sh_descr as Short_Description from gencodes where fld_name = ''HOL_TBLNO'' and active = ''Y''',
    'HOLIDAY',
    'HOLIDAY TABLE',
    0,0,
    TO_TIMESTAMP('20-MAY-13','DD-MON-RR HH.MI.SSXFF AM'),
    'VENKAT    ',
    'BASE           ',
    '1',
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL
  );
commit;

----------------------A. employee- g.update PFNO -------------------------alter

Insert into TRANSETUP (TRAN_WINDOW,SAVE_FLAG,VAL_FLAG,KEY_FLAG,KEY_STRING,UDF_1,UDF_2,UDF_3,UDF_4,UDF_5,REPEATE_ADD,CHG_DATE,CHG_USER,CHG_TERM,EDI_OPTION,SITE_ACC_COL,CONFIRM_COL,CONFIRM_VAL,REPEAT_ADD_DET,REPEATADDDET,LOAD_MODE,AUTO_CONFIRM,LEDG_POST_CONF,CHG_DATE_ON_CONF,TRAN_ID_COL,MAIL_OPTION,CONFIRM_MODE,GARBAGE_OPT,VAL_FLAG_EDI,VERIFY_PASSWORD,CUST_ACC_COL,SALES_PERS_ACC_COL,SUPP_ACC_COL,ITEM_SER_ACC_CODE,EMP_ACC_COL,ITEM_SER_ACC_COL,WORKFLOW_OPT,TABLE_NAME,APPLICATION,TABLE_DESC,TRAN_DATE_COL,TRAN_ID__FROM,TRAN_ID__TO,TABLE_NAME_DET1,TABLE_NAME_DET2,TABLE_NAME_DET3,MULTITIRE_OPT,REF_SER,VIEW_MODE,TAX_FORMS,SIGN_STATUS,USER_TRAN_WINDOW,CUSTOM_PREVIEW_OBJ,IGNOREERRLIST_ONLOAD,CHILDDATA_ARGOPT,EDIT_TMPLT,WRKFLW_INIT,EDITTAX,FORMAL_ARGS,AUDIT_TRAIL_OPT,EDIT_OPT,CACHE_OPT,OPTIMIZE_MODE,EDIT_EXPR,RATE_COL,QTY_COL,EDIT_EXPR_INP,RCP_CACHE_STATUS,PRINT_CONTROL,TRANSFER_MODE,PROFILE_ID__RES,TRAN_COMPL_MSG,PERIOD_OPTION,WRKFLW_PRIORITY,EXEC_TYPE,DISP_META_DATA,ALLOW_ATTACH,START_FORM,ISATTACHMENT,HEADER_FORM_NO,MSG_ONSAVE,WF_STATUS,RESTART_FORM,ISGWTINITIATED) values ('w_pfno_change','2','2','A','_spsite_code,_pptran_date,seq06',null,null,null,null,null,'Y',to_timestamp('11-AUG-06','DD-MON-RR HH.MI.SSXFF AM'),'VISHAL    ','VISHAL         ','0','site_code',null,null,'Y',null,null,'N','N',null,'tran_id',null,null,null,null,null,null,null,null,null,null,null,null,'PFNO_CHANGE',null,null,null,null,null,null,null,null,null,'TRANID','F',null,null,null,'0',null,null,null,null,null,null,'0',null,null,null,null,null,null,null,null,null,null,null,null,'M',null,null,null,null,null,null,null,null,null,null,null);
Insert into REFSER (REF_SER,DESCR,TYPE,SYS_SER,PREFIX,CHG_DATE,CHG_USER,CHG_TERM,SEQ_NAME,TAX_FORM_REQD,TRANS_TYPE) values ('TRANID','TRAN ID','S','TRANID',null,to_timestamp('25-MAY-05','DD-MON-RR HH.MI.SSXFF AM'),'ADMIN     ','00NILESH       ',null,null,null);
COMMIT;


-------------------- copy button itm2menu and user rights entries------------------


Insert into itm2menu (APPLICATION,LEVEL_1,LEVEL_2,LEVEL_3,LEVEL_4,LEVEL_5,WIN_NAME,DESCR,COMMENTS,MENU_PATH,ICON_PATH,CLOSE_ICON,OPEN_ICON,OBJ_TYPE,CHG_DATE,CHG_TERM,CHG_USER,MOB_DEPLOY) values ('ADM',4,1,8,0,2,'w_gradewise_ad_param','grade wise copy','Grade wise copy window','ADM.4.1.8.0.2',null,null,null,null,null,null,null,null);
Insert into itm2menu (APPLICATION,LEVEL_1,LEVEL_2,LEVEL_3,LEVEL_4,LEVEL_5,WIN_NAME,DESCR,COMMENTS,MENU_PATH,ICON_PATH,CLOSE_ICON,OPEN_ICON,OBJ_TYPE,CHG_DATE,CHG_TERM,CHG_USER,MOB_DEPLOY) values ('ADM',4,1,8,0,3,'w_hol_param','holiday wise copy','holiday wise copy window','ADM.4.1.8.0.3',null,null,null,null,null,null,null,null);
Insert into itm2menu (APPLICATION,LEVEL_1,LEVEL_2,LEVEL_3,LEVEL_4,LEVEL_5,WIN_NAME,DESCR,COMMENTS,MENU_PATH,ICON_PATH,CLOSE_ICON,OPEN_ICON,OBJ_TYPE,CHG_DATE,CHG_TERM,CHG_USER,MOB_DEPLOY) values ('ADM',4,1,8,0,4,'w_gradewise_perk_param','grade wise perk copy','Grade wise copy window','ADM.4.1.8.0.4',null,null,null,null,null,null,null,null);
Insert into itm2menu (APPLICATION,LEVEL_1,LEVEL_2,LEVEL_3,LEVEL_4,LEVEL_5,WIN_NAME,DESCR,COMMENTS,MENU_PATH,ICON_PATH,CLOSE_ICON,OPEN_ICON,OBJ_TYPE,CHG_DATE,CHG_TERM,CHG_USER,MOB_DEPLOY) values ('ADM',4,1,8,0,5,'w_cadrewise_mthad_param','cadre mthad wise copy','Grade wise copy window','ADM.4.1.8.0.5',null,null,null,null,null,null,null,null);
Insert into itm2menu (APPLICATION,LEVEL_1,LEVEL_2,LEVEL_3,LEVEL_4,LEVEL_5,WIN_NAME,DESCR,COMMENTS,MENU_PATH,ICON_PATH,CLOSE_ICON,OPEN_ICON,OBJ_TYPE,CHG_DATE,CHG_TERM,CHG_USER,MOB_DEPLOY) values ('ADM',4,1,8,0,6,'w_cadrewise_ad_param','grade wise copy','Grade wise copy window','ADM.4.1.8.0.6',null,null,null,null,null,null,null,null);
Insert into itm2menu (APPLICATION,LEVEL_1,LEVEL_2,LEVEL_3,LEVEL_4,LEVEL_5,WIN_NAME,DESCR,COMMENTS,MENU_PATH,ICON_PATH,CLOSE_ICON,OPEN_ICON,OBJ_TYPE,CHG_DATE,CHG_TERM,CHG_USER,MOB_DEPLOY) values ('ADM',4,1,8,0,7,'w_cadrewise_perk_param','grade wise copy','Grade wise copy window','ADM.4.1.8.0.7',null,null,null,null,null,null,null,null);
Insert into itm2menu (APPLICATION,LEVEL_1,LEVEL_2,LEVEL_3,LEVEL_4,LEVEL_5,WIN_NAME,DESCR,COMMENTS,MENU_PATH,ICON_PATH,CLOSE_ICON,OPEN_ICON,OBJ_TYPE,CHG_DATE,CHG_TERM,CHG_USER,MOB_DEPLOY) values ('ADM',4,1,8,0,8,'w_gradewise_mthad_param','grade wise copy','Grade wise copy window','ADM.4.1.8.0.8',null,null,null,null,null,null,null,null);
Insert into itm2menu (APPLICATION,LEVEL_1,LEVEL_2,LEVEL_3,LEVEL_4,LEVEL_5,WIN_NAME,DESCR,COMMENTS,MENU_PATH,ICON_PATH,CLOSE_ICON,OPEN_ICON,OBJ_TYPE,CHG_DATE,CHG_TERM,CHG_USER,MOB_DEPLOY) values ('ADM',4,1,8,0,9,'w_gradewise_ad_param','grade wise copy','Grade wise copy window','ADM.4.1.8.0.9',null,null,null,null,null,null,null,null);


Insert into user_rights(PROFILE_ID,APPLICATION,MENU_ROW,MENU_COL,MENU_SUBCOL,LEVEL_4,LEVEL_5,MENU_NAME,RIGHTS,ACC_FILT,DEF_FILT,OBJ_NAME,FAV_OPTION,FAV_ORDER) values ('ADMIN     ','ADM',4,1,8,0,6,'Test','*',null,null,'cadrewise_ad_param',null,null);
Insert into  user_rights  (PROFILE_ID,APPLICATION,MENU_ROW,MENU_COL,MENU_SUBCOL,LEVEL_4,LEVEL_5,MENU_NAME,RIGHTS,ACC_FILT,DEF_FILT,OBJ_NAME,FAV_OPTION,FAV_ORDER) values ('ADMIN     ','ADM',4,1,8,0,2,'Test','*',null,null,'gradewise_ad_param',null,null);

Insert into user_rights(PROFILE_ID,APPLICATION,MENU_ROW,MENU_COL,MENU_SUBCOL,LEVEL_4,LEVEL_5,MENU_NAME,RIGHTS,ACC_FILT,DEF_FILT,OBJ_NAME,FAV_OPTION,FAV_ORDER) values ('ADMIN     ','ADM',4,1,8,0,3,'Test','*',null,null,'hol_param',null,null);
Insert into  user_rights  (PROFILE_ID,APPLICATION,MENU_ROW,MENU_COL,MENU_SUBCOL,LEVEL_4,LEVEL_5,MENU_NAME,RIGHTS,ACC_FILT,DEF_FILT,OBJ_NAME,FAV_OPTION,FAV_ORDER) values ('ADMIN     ','ADM',4,1,8,0,4,'Test','*',null,null,'gradewise_perk_param',null,null);

Insert into user_rights(PROFILE_ID,APPLICATION,MENU_ROW,MENU_COL,MENU_SUBCOL,LEVEL_4,LEVEL_5,MENU_NAME,RIGHTS,ACC_FILT,DEF_FILT,OBJ_NAME,FAV_OPTION,FAV_ORDER) values ('ADMIN     ','ADM',4,1,8,0,5,'Test','*',null,null,'cadrewise_mthad_param',null,null);
Insert into  user_rights  (PROFILE_ID,APPLICATION,MENU_ROW,MENU_COL,MENU_SUBCOL,LEVEL_4,LEVEL_5,MENU_NAME,RIGHTS,ACC_FILT,DEF_FILT,OBJ_NAME,FAV_OPTION,FAV_ORDER) values ('ADMIN     ','ADM',4,1,8,0,7,'Test','*',null,null,'cadrewise_perk_param',null,null);

Insert into user_rights(PROFILE_ID,APPLICATION,MENU_ROW,MENU_COL,MENU_SUBCOL,LEVEL_4,LEVEL_5,MENU_NAME,RIGHTS,ACC_FILT,DEF_FILT,OBJ_NAME,FAV_OPTION,FAV_ORDER) values ('ADMIN     ','ADM',4,1,8,0,8,'Test','*',null,null,'gradewise_mthad_param',null,null);

commit;
Insert into itm2menu (APPLICATION,LEVEL_1,LEVEL_2,LEVEL_3,LEVEL_4,LEVEL_5,WIN_NAME,DESCR,COMMENTS,MENU_PATH,ICON_PATH,CLOSE_ICON,OPEN_ICON,OBJ_TYPE,CHG_DATE,CHG_TERM,CHG_USER,MOB_DEPLOY) values ('ADM',4,1,9,0,1,'w_grade_ot_param','grade site ot copy','Grade wise OT copy window','ADM.4.1.8.0.2',null,null,null,null,null,null,null,null);
Insert into user_rights(PROFILE_ID,APPLICATION,MENU_ROW,MENU_COL,MENU_SUBCOL,LEVEL_4,LEVEL_5,MENU_NAME,RIGHTS,ACC_FILT,DEF_FILT,OBJ_NAME,FAV_OPTION,FAV_ORDER) values ('ADMIN     ','ADM',4,1,9,0,1,'grade ot','*',null,null,'grade_ot_param',null,null);
commit;

Insert into itm2menu (APPLICATION,LEVEL_1,LEVEL_2,LEVEL_3,LEVEL_4,LEVEL_5,WIN_NAME,DESCR,COMMENTS,MENU_PATH,ICON_PATH,CLOSE_ICON,OPEN_ICON,OBJ_TYPE,CHG_DATE,CHG_TERM,CHG_USER,MOB_DEPLOY) values ('ADM',4,1,9,0,2,'w_pay_param','grade site ot copy','PAY PARAMT copy window','ADM.4.1.8.0.2',null,null,null,null,null,null,null,null);
Insert into user_rights(PROFILE_ID,APPLICATION,MENU_ROW,MENU_COL,MENU_SUBCOL,LEVEL_4,LEVEL_5,MENU_NAME,RIGHTS,ACC_FILT,DEF_FILT,OBJ_NAME,FAV_OPTION,FAV_ORDER) values ('ADMIN     ','ADM',4,1,9,0,2,'PAY PARM','*',null,null,'pay_param',null,null);
commit;

------------ shift patteren-------------


Insert into  obj_actions  (OBJ_NAME,LINE_NO,IMAGE,DESCRIPTION,SERVICE_CODE,INTERACTIVE,RIGHTS_CHAR,TITLE,FORM_NO,SERVICE_HANDLER,PLACEMENT,ACTION_TYPE,TRAN_TYPE,CHG_DATE,CHG_TERM,CHG_USER) values ('shift_pattern',1,'add.gif','Adding New','a','a','A','Add','1',null,null,'S',null,null,null,null);
Insert into  obj_actions  (OBJ_NAME,LINE_NO,IMAGE,DESCRIPTION,SERVICE_CODE,INTERACTIVE,RIGHTS_CHAR,TITLE,FORM_NO,SERVICE_HANDLER,PLACEMENT,ACTION_TYPE,TRAN_TYPE,CHG_DATE,CHG_TERM,CHG_USER) values ('shift_pattern',2,'edit.gif','Editing Existing Record','a','a','E','Edit','1',null,null,'S',null,null,null,null);
Insert into  obj_actions  (OBJ_NAME,LINE_NO,IMAGE,DESCRIPTION,SERVICE_CODE,INTERACTIVE,RIGHTS_CHAR,TITLE,FORM_NO,SERVICE_HANDLER,PLACEMENT,ACTION_TYPE,TRAN_TYPE,CHG_DATE,CHG_TERM,CHG_USER) values ('shift_pattern',4,'save.gif','Saving','a','a','S','Save','1',null,null,'S',null,null,null,null);
Insert into  obj_actions  (OBJ_NAME,LINE_NO,IMAGE,DESCRIPTION,SERVICE_CODE,INTERACTIVE,RIGHTS_CHAR,TITLE,FORM_NO,SERVICE_HANDLER,PLACEMENT,ACTION_TYPE,TRAN_TYPE,CHG_DATE,CHG_TERM,CHG_USER) values ('shift_pattern',5,null,'Action Button to Confirm','act_confirm','a','F','Confirm','1','2',null,'U',null,null,null,null);
Insert into  obj_actions  (OBJ_NAME,LINE_NO,IMAGE,DESCRIPTION,SERVICE_CODE,INTERACTIVE,RIGHTS_CHAR,TITLE,FORM_NO,SERVICE_HANDLER,PLACEMENT,ACTION_TYPE,TRAN_TYPE,CHG_DATE,CHG_TERM,CHG_USER) values ('shift_pattern',21,'menu.bmp','View Audit Trail','audit_trail','1','X','View Audit','1','1','1','U',null,null,null,null);
commit;

------------- G. UpdatePfno---------------------------

Insert into SYSTEM_EVENTS (OBJ_NAME,EVENT_CODE,EVENT_CONTEXT,SERVICE_CODE,METHOD_RULE,OVERWRITE_CORE,CHG_DATE,CHG_USER,CHG_TERM,RESULT_HANDLE,COMP_TYPE,COMP_NAME,COMM_FORMAT) values ('shift_pattern','post_item_change','1','poic_shift_pattern',null,'0',to_timestamp('25-FEB-14','DD-MON-RR HH.MI.SSXFF AM'),'venkat    ','BASE','2','EJB','ShiftPattern',null);
Insert into SYSTEM_EVENTS (OBJ_NAME,EVENT_CODE,EVENT_CONTEXT,SERVICE_CODE,METHOD_RULE,OVERWRITE_CORE,CHG_DATE,CHG_USER,CHG_TERM,RESULT_HANDLE,COMP_TYPE,COMP_NAME,COMM_FORMAT) values ('shift_pattern','pre_validate','1','prv_shift_pattern',null,'0',to_timestamp('25-FEB-14','DD-MON-RR HH.MI.SSXFF AM'),'venkat    ','BASE','2','EJB','ShiftPattern',null);

Insert into SYSTEM_EVENT_SERVICES (SERVICE_CODE,SERVICE_DESCR,SERVICE_URI,SERVICE_PROVIDER,METHOD_NAME,RETURN_VALUE,RETURN_TYPE,RETURN_DESCR,RETURN_XFRM,RETURN_XFRM_XSL,CHG_DATE,CHG_USER,CHG_TERM) values ('poic_shift_pattern','post item change shift pattern','http://172.16.145.69/BaseE12DotNetService6-3-0-135/E12BusinessLogic6-3-0-135.asmx',null,'itemChanged','String','S',null,null, EMPTY_BLOB(),to_timestamp('18-OCT-08','DD-MON-RR HH.MI.SSXFF AM'),'VISHAL    ','VISHAL');
Insert into SYSTEM_EVENT_SERVICES (SERVICE_CODE,SERVICE_DESCR,SERVICE_URI,SERVICE_PROVIDER,METHOD_NAME,RETURN_VALUE,RETURN_TYPE,RETURN_DESCR,RETURN_XFRM,RETURN_XFRM_XSL,CHG_DATE,CHG_USER,CHG_TERM) values ('prv_shift_pattern','validation shift pattern','http://localhost:9090/axis/services/ValidatorService',null,'wfValData','String','S',null,null, EMPTY_BLOB(),to_timestamp('18-OCT-08','DD-MON-RR HH.MI.SSXFF AM'),'VISHAL    ','VISHAL');
update SYSTEM_EVENT_SERVICES set METHOD_NAME = 'wfValData' where service_code = 'prv_shift_pattern';
commit;

Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_shift_pattern',1,'COMPONENT_TYPE','I',null,'S',null,to_timestamp('18-OCT-08','DD-MON-RR HH.MI.SSXFF AM'),'VISHAL    ','VISHAL         ','EJB');
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_shift_pattern',2,'COMPONENT_NAME','I',null,'S',null,to_timestamp('18-OCT-08','DD-MON-RR HH.MI.SSXFF AM'),'VISHAL    ','VISHAL         ','ShiftPattern');
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_shift_pattern',3,'XML_DATA','I',null,'S',null,to_timestamp('18-OCT-08','DD-MON-RR HH.MI.SSXFF AM'),'VISHAL    ','VISHAL         ',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_shift_pattern',4,'XML_DATA_1','I',null,'S',null,to_timestamp('18-OCT-08','DD-MON-RR HH.MI.SSXFF AM'),'VISHAL    ','VISHAL         ',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_shift_pattern',5,'XML_DATA_ALL','I',null,'S',null,to_timestamp('18-OCT-08','DD-MON-RR HH.MI.SSXFF AM'),'VISHAL    ','VISHAL         ',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_shift_pattern',6,'OBJ_CONTEXT','I',null,'S',null,to_timestamp('18-OCT-08','DD-MON-RR HH.MI.SSXFF AM'),'VISHAL    ','VISHAL         ',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_shift_pattern',7,'FOCUSED_COLUMN','I',null,'S',null,to_timestamp('18-OCT-08','DD-MON-RR HH.MI.SSXFF AM'),'VISHAL    ','VISHAL         ',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_shift_pattern',8,'EDIT_FLAG','I',null,'S',null,to_timestamp('18-OCT-08','DD-MON-RR HH.MI.SSXFF AM'),'VISHAL    ','VISHAL         ',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_shift_pattern',9,'XTRA_PARAMS','I',null,'S',null,to_timestamp('18-OCT-08','DD-MON-RR HH.MI.SSXFF AM'),'VISHAL    ','VISHAL         ',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prv_shift_pattern',1,'component_type','I',null,'S',null,to_timestamp('18-OCT-08','DD-MON-RR HH.MI.SSXFF AM'),'VISHAL    ','VISHAL         ','EJB');
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prv_shift_pattern',2,'component_name','I',null,'S',null,to_timestamp('18-OCT-08','DD-MON-RR HH.MI.SSXFF AM'),'VISHAL    ','VISHAL         ','ShiftPattern');
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prv_shift_pattern',3,'XML_DATA','I',null,'S',null,to_timestamp('18-OCT-08','DD-MON-RR HH.MI.SSXFF AM'),'VISHAL    ','VISHAL         ',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prv_shift_pattern',4,'XML_DATA_1','I',null,'S',null,to_timestamp('18-OCT-08','DD-MON-RR HH.MI.SSXFF AM'),'VISHAL    ','VISHAL         ',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prv_shift_pattern',5,'XML_DATA_ALL','I',null,'S',null,to_timestamp('18-OCT-08','DD-MON-RR HH.MI.SSXFF AM'),'VISHAL    ','VISHAL         ',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prv_shift_pattern',6,'OBJ_CONTEXT','I',null,'S',null,to_timestamp('18-OCT-08','DD-MON-RR HH.MI.SSXFF AM'),'VISHAL    ','VISHAL         ',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prv_shift_pattern',7,'EDIT_FLAG','I',null,'S',null,to_timestamp('18-OCT-08','DD-MON-RR HH.MI.SSXFF AM'),'VISHAL    ','VISHAL         ',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prv_shift_pattern',8,'XTRA_PARAMS','I',null,'S',null,to_timestamp('18-OCT-08','DD-MON-RR HH.MI.SSXFF AM'),'VISHAL    ','VISHAL         ',null);
commit;


update system_service_args set ARG_NAME = 'XML_DATA' where service_code = 'poic_shift_pattern' AND LINE_NO = '3';
commit;
update system_service_args set ARG_NAME = 'XML_DATA_1' where service_code = 'poic_shift_pattern' AND LINE_NO = '4';
commit;
update system_service_args set ARG_NAME = 'XML_DATA_ALL' where service_code = 'poic_shift_pattern' AND LINE_NO = '5';
commit;

update system_service_args set ARG_NAME = 'XML_DATA' where service_code = 'prv_shift_pattern' AND LINE_NO = '3';
commit;
update system_service_args set ARG_NAME = 'XML_DATA_1' where service_code = 'prv_shift_pattern' AND LINE_NO = '4';
commit;
update system_service_args set ARG_NAME = 'XML_DATA_ALL' where service_code = 'prv_shift_pattern' AND LINE_NO = '5';
commit;

-------------------- pay roll -----------------------------

delete from obj_actions where obj_name = 'payroll' and description = 'Adding New';
commit;

------------------------- empit declarion ----------------

Insert into obj_forms (WIN_NAME,TITLE,OBJ_BROW_NAME,OBJ_EDIT_NAME,CROSS_UPDATE_EXPR,EXPR_FLD_INFO,TARGET_FLD_INFO,EXPR_COMMENT,FORM_NO,SCR_FLAG,AUTO_ACCEPT_SCAN,SCAN_FLAG,SCAN_METADATA,PROPERTY_INFO,SCAN_DELIMITER,COLUMN_ON_SAVE,AFTER_SAVE,EXT_SETUP,EXT_METADATA,EXT_COM,AUTO_ACCEPT_WEIGHDATA,FORM_TYPE,DISP_METADATA,PARENT_KEY_COL,QTY_COL,RATE_COL,ASSISTED_MODE,STORAGE_KEY_METADATA,SELECTION_MODE,DEFAULT_VIEW,AUTO_ADDON_ENTRY) values ('w_emp_itdecl_multi','Auto itconfirm',null,null,null,null,null,null,'1',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);
Insert into obj_forms (WIN_NAME,TITLE,OBJ_BROW_NAME,OBJ_EDIT_NAME,CROSS_UPDATE_EXPR,EXPR_FLD_INFO,TARGET_FLD_INFO,EXPR_COMMENT,FORM_NO,SCR_FLAG,AUTO_ACCEPT_SCAN,SCAN_FLAG,SCAN_METADATA,PROPERTY_INFO,SCAN_DELIMITER,COLUMN_ON_SAVE,AFTER_SAVE,EXT_SETUP,EXT_METADATA,EXT_COM,AUTO_ACCEPT_WEIGHDATA,FORM_TYPE,DISP_METADATA,PARENT_KEY_COL,QTY_COL,RATE_COL,ASSISTED_MODE,STORAGE_KEY_METADATA,SELECTION_MODE,DEFAULT_VIEW,AUTO_ADDON_ENTRY) values ('w_emp_itdecl_multi','Auto itconfirm',null,null,null,null,null,null,'2',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);
commit;
Insert into  obj_actions  (OBJ_NAME,LINE_NO,IMAGE,DESCRIPTION,SERVICE_CODE,INTERACTIVE,RIGHTS_CHAR,TITLE,FORM_NO,SERVICE_HANDLER,PLACEMENT,ACTION_TYPE,TRAN_TYPE,CHG_DATE,CHG_TERM,CHG_USER) values ('emp_itdecl_multi',1,null,'GetData','get_data','a','R','GetData','1',null,null,'U',null,to_timestamp('20-AUG-13','DD-MON-RR HH.MI.SSXFF AM'),'BASE   ','venkat    ');
Insert into  obj_actions  (OBJ_NAME,LINE_NO,IMAGE,DESCRIPTION,SERVICE_CODE,INTERACTIVE,RIGHTS_CHAR,TITLE,FORM_NO,SERVICE_HANDLER,PLACEMENT,ACTION_TYPE,TRAN_TYPE,CHG_DATE,CHG_TERM,CHG_USER) values ('emp_itdecl_multi',2,null,'Process','process','a','R','Process','1',null,null,'U',null,to_timestamp('20-AUG-13','DD-MON-RR HH.MI.SSXFF AM'),'BASE    ','venkat    ');
commit;


-------------------------------- D. Incometax Refund Adjustment

Insert into obj_forms (WIN_NAME,TITLE,OBJ_BROW_NAME,OBJ_EDIT_NAME,CROSS_UPDATE_EXPR,EXPR_FLD_INFO,TARGET_FLD_INFO,EXPR_COMMENT,FORM_NO,SCR_FLAG,AUTO_ACCEPT_SCAN,SCAN_FLAG,SCAN_METADATA,PROPERTY_INFO,SCAN_DELIMITER,COLUMN_ON_SAVE,AFTER_SAVE,EXT_SETUP,EXT_METADATA,EXT_COM,AUTO_ACCEPT_WEIGHDATA,FORM_TYPE,DISP_METADATA,PARENT_KEY_COL,QTY_COL,RATE_COL,ASSISTED_MODE,STORAGE_KEY_METADATA,SELECTION_MODE,DEFAULT_VIEW,AUTO_ADDON_ENTRY) values ('w_auto_itconfirm','Auto itconfirm',null,null,null,null,null,null,'1',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);
Insert into obj_forms (WIN_NAME,TITLE,OBJ_BROW_NAME,OBJ_EDIT_NAME,CROSS_UPDATE_EXPR,EXPR_FLD_INFO,TARGET_FLD_INFO,EXPR_COMMENT,FORM_NO,SCR_FLAG,AUTO_ACCEPT_SCAN,SCAN_FLAG,SCAN_METADATA,PROPERTY_INFO,SCAN_DELIMITER,COLUMN_ON_SAVE,AFTER_SAVE,EXT_SETUP,EXT_METADATA,EXT_COM,AUTO_ACCEPT_WEIGHDATA,FORM_TYPE,DISP_METADATA,PARENT_KEY_COL,QTY_COL,RATE_COL,ASSISTED_MODE,STORAGE_KEY_METADATA,SELECTION_MODE,DEFAULT_VIEW,AUTO_ADDON_ENTRY) values ('w_auto_itconfirm','Auto itconfirm',null,null,null,null,null,null,'2',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);
commit;



Insert into  obj_actions  (OBJ_NAME,LINE_NO,IMAGE,DESCRIPTION,SERVICE_CODE,INTERACTIVE,RIGHTS_CHAR,TITLE,FORM_NO,SERVICE_HANDLER,PLACEMENT,ACTION_TYPE,TRAN_TYPE,CHG_DATE,CHG_TERM,CHG_USER) values ('auto_itconfirm',1,null,'GetData','get_data','a','R','GetData','1',null,null,'U',null,to_timestamp('20-AUG-13','DD-MON-RR HH.MI.SSXFF AM'),'BASE   ','venkat    ');
Insert into  obj_actions  (OBJ_NAME,LINE_NO,IMAGE,DESCRIPTION,SERVICE_CODE,INTERACTIVE,RIGHTS_CHAR,TITLE,FORM_NO,SERVICE_HANDLER,PLACEMENT,ACTION_TYPE,TRAN_TYPE,CHG_DATE,CHG_TERM,CHG_USER) values ('auto_itconfirm',2,null,'Process','process','a','R','Process','1',null,null,'U',null,to_timestamp('20-AUG-13','DD-MON-RR HH.MI.SSXFF AM'),'BASE    ','venkat    ');
commit;

---------------------------------  D. Incometax Refund Adjustment

Insert into obj_forms (WIN_NAME,TITLE,OBJ_BROW_NAME,OBJ_EDIT_NAME,CROSS_UPDATE_EXPR,EXPR_FLD_INFO,TARGET_FLD_INFO,EXPR_COMMENT,FORM_NO,SCR_FLAG,AUTO_ACCEPT_SCAN,SCAN_FLAG,SCAN_METADATA,PROPERTY_INFO,SCAN_DELIMITER,COLUMN_ON_SAVE,AFTER_SAVE,EXT_SETUP,EXT_METADATA,EXT_COM,AUTO_ACCEPT_WEIGHDATA,FORM_TYPE,DISP_METADATA,PARENT_KEY_COL,QTY_COL,RATE_COL,ASSISTED_MODE,STORAGE_KEY_METADATA,SELECTION_MODE,DEFAULT_VIEW,AUTO_ADDON_ENTRY) values ('w_it_refund','Auto itconfirm',null,null,null,null,null,null,'1',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);
Insert into obj_forms (WIN_NAME,TITLE,OBJ_BROW_NAME,OBJ_EDIT_NAME,CROSS_UPDATE_EXPR,EXPR_FLD_INFO,TARGET_FLD_INFO,EXPR_COMMENT,FORM_NO,SCR_FLAG,AUTO_ACCEPT_SCAN,SCAN_FLAG,SCAN_METADATA,PROPERTY_INFO,SCAN_DELIMITER,COLUMN_ON_SAVE,AFTER_SAVE,EXT_SETUP,EXT_METADATA,EXT_COM,AUTO_ACCEPT_WEIGHDATA,FORM_TYPE,DISP_METADATA,PARENT_KEY_COL,QTY_COL,RATE_COL,ASSISTED_MODE,STORAGE_KEY_METADATA,SELECTION_MODE,DEFAULT_VIEW,AUTO_ADDON_ENTRY) values ('w_it_refund','Auto itconfirm',null,null,null,null,null,null,'2',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);
commit;



Insert into  obj_actions  (OBJ_NAME,LINE_NO,IMAGE,DESCRIPTION,SERVICE_CODE,INTERACTIVE,RIGHTS_CHAR,TITLE,FORM_NO,SERVICE_HANDLER,PLACEMENT,ACTION_TYPE,TRAN_TYPE,CHG_DATE,CHG_TERM,CHG_USER) values ('it_refund',1,null,'GetData','get_data','a','R','GetData','1',null,null,'U',null,to_timestamp('20-AUG-13','DD-MON-RR HH.MI.SSXFF AM'),'BASE   ','venkat    ');
Insert into  obj_actions  (OBJ_NAME,LINE_NO,IMAGE,DESCRIPTION,SERVICE_CODE,INTERACTIVE,RIGHTS_CHAR,TITLE,FORM_NO,SERVICE_HANDLER,PLACEMENT,ACTION_TYPE,TRAN_TYPE,CHG_DATE,CHG_TERM,CHG_USER) values ('it_refund',2,null,'Process','process','a','R','Process','1',null,null,'U',null,to_timestamp('20-AUG-13','DD-MON-RR HH.MI.SSXFF AM'),'BASE    ','venkat    ');
commit;


---------------------------------- D. Employee IT Declaration ---------EMP_IT_DECL_QTR 


Insert into obj_forms (WIN_NAME,TITLE,OBJ_BROW_NAME,OBJ_EDIT_NAME,CROSS_UPDATE_EXPR,EXPR_FLD_INFO,TARGET_FLD_INFO,EXPR_COMMENT,FORM_NO,SCR_FLAG,AUTO_ACCEPT_SCAN,SCAN_FLAG,SCAN_METADATA,PROPERTY_INFO,SCAN_DELIMITER,COLUMN_ON_SAVE,AFTER_SAVE,EXT_SETUP,EXT_METADATA,EXT_COM,AUTO_ACCEPT_WEIGHDATA,FORM_TYPE,DISP_METADATA,PARENT_KEY_COL,QTY_COL,RATE_COL,ASSISTED_MODE,STORAGE_KEY_METADATA,SELECTION_MODE,DEFAULT_VIEW,AUTO_ADDON_ENTRY) values ('w_emp_it_decl_qtr','emp_it_decl_qtr ',null,null,null,null,null,null,'1',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);
Insert into obj_forms (WIN_NAME,TITLE,OBJ_BROW_NAME,OBJ_EDIT_NAME,CROSS_UPDATE_EXPR,EXPR_FLD_INFO,TARGET_FLD_INFO,EXPR_COMMENT,FORM_NO,SCR_FLAG,AUTO_ACCEPT_SCAN,SCAN_FLAG,SCAN_METADATA,PROPERTY_INFO,SCAN_DELIMITER,COLUMN_ON_SAVE,AFTER_SAVE,EXT_SETUP,EXT_METADATA,EXT_COM,AUTO_ACCEPT_WEIGHDATA,FORM_TYPE,DISP_METADATA,PARENT_KEY_COL,QTY_COL,RATE_COL,ASSISTED_MODE,STORAGE_KEY_METADATA,SELECTION_MODE,DEFAULT_VIEW,AUTO_ADDON_ENTRY) values ('w_emp_it_decl_qtr','emp_it_decl_qtr',null,null,null,null,null,null,'2',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);
commit;



Insert into  obj_actions  (OBJ_NAME,LINE_NO,IMAGE,DESCRIPTION,SERVICE_CODE,INTERACTIVE,RIGHTS_CHAR,TITLE,FORM_NO,SERVICE_HANDLER,PLACEMENT,ACTION_TYPE,TRAN_TYPE,CHG_DATE,CHG_TERM,CHG_USER) values ('emp_it_decl_qtr',1,null,'GetData','get_data','a','R','GetData','1',null,null,'U',null,to_timestamp('20-AUG-13','DD-MON-RR HH.MI.SSXFF AM'),'BASE   ','venkat    ');
Insert into  obj_actions  (OBJ_NAME,LINE_NO,IMAGE,DESCRIPTION,SERVICE_CODE,INTERACTIVE,RIGHTS_CHAR,TITLE,FORM_NO,SERVICE_HANDLER,PLACEMENT,ACTION_TYPE,TRAN_TYPE,CHG_DATE,CHG_TERM,CHG_USER) values ('emp_it_decl_qtr',2,null,'Process','process','a','R','Process','1',null,null,'U',null,to_timestamp('20-AUG-13','DD-MON-RR HH.MI.SSXFF AM'),'BASE    ','venkat    ');
commit;





INSERT INTO transetup VALUES (
	'w_att_proc_lwp',
	'2',
	'2',
	'M',
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	'Y',
	TO_DATE('17-06-2006 13:41:16','DD-MM-YYYY HH24:MI:SS'),
	'BASE      ',
	'01BASE215      ',
	'0',
	NULL,
	NULL,
	NULL,
	'Y',
	NULL,
	NULL,
	'N',
	'N',
	NULL,
	NULL,
	NULL,
	'0',
	NULL,
	'0',
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	'F',
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	'0',
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL);
commit;

----------------------- form 16 payment

update transetup set ref_ser = 'FRM' WHERE TRAN_WINDOW = 'w_form16_payment';
COMMIT;

INSERT INTO refser (
	ref_ser,
	descr ,
	type ,
	sys_ser ,
	prefix ,
	chg_date ,
	chg_user ,
	chg_term ,
	seq_name ,
	tax_form_reqd ,
	trans_type )
VALUES (
	'FRM',
	'Form 16 payment',
	'S',
	'HTREF',
	NULL,
	TO_DATE('13-04-2013 13:06:19','DD-MM-YYYY HH24:MI:SS'),
	'venkat',
	'Base',
	NULL,
	NULL,
	NULL);	
	commit;
	
	
	------------------------------------ Grade site Ot -------------------------------
	
	
Insert into OBJ_LINKS (OBJ_NAME,FORM_NO,FIELD_NAME,TARGET_OBJ_NAME,LINK_FORM_NAME,LINK_TITLE,LINK_URI,LINK_TYPE,LINK_ARG,UPDATE_FLAG,LINK_NAME,RIGHTS_CHAR,IMAGE) values ('grade_site_ot','1','site_code','grade_ot_param','grade_ot_param21','Copy Button',null,'4','site_code.String','0',null,'*',null);

Insert into TRANSETUP (TRAN_WINDOW,SAVE_FLAG,VAL_FLAG,KEY_FLAG,KEY_STRING,UDF_1,UDF_2,UDF_3,UDF_4,UDF_5,REPEATE_ADD,CHG_DATE,CHG_USER,CHG_TERM,EDI_OPTION,SITE_ACC_COL,CONFIRM_COL,CONFIRM_VAL,REPEAT_ADD_DET,REPEATADDDET,LOAD_MODE,AUTO_CONFIRM,LEDG_POST_CONF,CHG_DATE_ON_CONF,TRAN_ID_COL,MAIL_OPTION,CONFIRM_MODE,GARBAGE_OPT,VAL_FLAG_EDI,VERIFY_PASSWORD,CUST_ACC_COL,SALES_PERS_ACC_COL,SUPP_ACC_COL,ITEM_SER_ACC_CODE,EMP_ACC_COL,ITEM_SER_ACC_COL,WORKFLOW_OPT,TABLE_NAME,APPLICATION,TABLE_DESC,TRAN_DATE_COL,TRAN_ID__FROM,TRAN_ID__TO,TABLE_NAME_DET1,TABLE_NAME_DET2,TABLE_NAME_DET3,MULTITIRE_OPT,REF_SER,VIEW_MODE,TAX_FORMS,SIGN_STATUS,USER_TRAN_WINDOW,CUSTOM_PREVIEW_OBJ,IGNOREERRLIST_ONLOAD,CHILDDATA_ARGOPT,EDIT_TMPLT,WRKFLW_INIT,EDITTAX,FORMAL_ARGS,AUDIT_TRAIL_OPT,EDIT_OPT,CACHE_OPT,OPTIMIZE_MODE,EDIT_EXPR,RATE_COL,QTY_COL,EDIT_EXPR_INP,RCP_CACHE_STATUS,PRINT_CONTROL,TRANSFER_MODE,PROFILE_ID__RES,TRAN_COMPL_MSG,PERIOD_OPTION,WRKFLW_PRIORITY,EXEC_TYPE,DISP_META_DATA,ALLOW_ATTACH,START_FORM,ISATTACHMENT,HEADER_FORM_NO,MSG_ONSAVE,WF_STATUS) values ('w_grade_ot_param','2','2','M',null,null,null,null,null,null,'Y',to_timestamp('08-NOV-13','DD-MON-RR HH.MI.SSXFF AM'),'Nikhil    ','payroll        ','0',null,null,null,'Y',null,null,'N','N',null,'hol_tblno',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,'F',null,null,null,null,null,null,null,null,null,null,'0',null,null,null,null,null,null,null,null,null,null,null,null,'M',null,null,null,null,null,null,null,null,null);

Insert into  system_events  (OBJ_NAME,EVENT_CODE,EVENT_CONTEXT,SERVICE_CODE,METHOD_RULE,OVERWRITE_CORE,CHG_DATE,CHG_USER,CHG_TERM,RESULT_HANDLE,COMP_TYPE,COMP_NAME,COMM_FORMAT) values ('grade_ot_param','pre_save','1','presave_gradeotparam',null,'0',to_timestamp('08-NOV-13','DD-MON-RR HH.MI.SSXFF AM'),'BASE      ','BASE','2','EJB','CopyGradeOtParamPrs',null);


INSERT INTO system_event_services (
	service_code ,
	service_descr ,
	service_uri ,
	service_provider ,
	method_name ,
	return_value ,
	return_type ,	
	chg_date ,
	chg_user ,
	chg_term) 
VALUES (
	'presave_gradeotparam',
	'preSaveRec',
	'http://172.16.145.69/BaseE12DotNetService6-3-0-135/E12BusinessLogic6-3-0-135.asmx',
	'BASE',
	'preSaveRec',
	'String',
	'S',
	fn_sysdate(),
	'1234',
	'BASE');

commit;

Insert into  system_service_args  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('presave_gradeotparam',1,'COMPONENT_TYPE','I',null,'C.String',null,to_timestamp('08-NOV-13','DD-MON-RR HH.MI.SSXFF AM'),'BASE      ','BASE','EJB');
Insert into  system_service_args  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('presave_gradeotparam',2,'COMPONENT_NAME','I',null,'C.String',null,to_timestamp('08-NOV-13','DD-MON-RR HH.MI.SSXFF AM'),'BASE      ','BASE','CopyGradeOtParamPrs');
Insert into  system_service_args  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('presave_gradeotparam',3,'XML_DATA','I',null,'S',null,to_timestamp('08-NOV-13','DD-MON-RR HH.MI.SSXFF AM'),'BASE      ','BASE',null);
Insert into  system_service_args  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('presave_gradeotparam',4,'DOM_ID','I',null,'S',null,to_timestamp('08-NOV-13','DD-MON-RR HH.MI.SSXFF AM'),'BASE      ','BASE',null);
Insert into  system_service_args  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('presave_gradeotparam',5,'OBJ_CONTEXT','I',null,'S',null,to_timestamp('08-NOV-13','DD-MON-RR HH.MI.SSXFF AM'),'BASE      ','BASE',null);
Insert into  system_service_args  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('presave_gradeotparam',6,'EDIT_FLAG','I',null,'S',null,to_timestamp('08-NOV-13','DD-MON-RR HH.MI.SSXFF AM'),'BASE      ','BASE',null);
Insert into  system_service_args  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('presave_gradeotparam',7,'XTRA_PARAMS','I',null,'S',null,to_timestamp('08-NOV-13','DD-MON-RR HH.MI.SSXFF AM'),'BASE      ','BASE',null);
Insert into  system_service_args  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('presave_gradeotparam',8,'DB_CONN','I',null,'S.Connection',null,to_timestamp('08-NOV-13','DD-MON-RR HH.MI.SSXFF AM'),'BASE      ','BASE',null);
Insert into messages (MSG_NO,MSG_STR,MSG_DESCR,MSG_TYPE,MSG_OPT,MSG_TIME,ALARM,ERR_SOURCE,CHG_DATE,CHG_USER,CHG_TERM,OVERRIDE_INPUT,MAIL_OPTION) values ('NEWSITEINV','Max size is 5 for New Site','Maximum New Site Code length should be 5 ','E','Y',null,null,null,to_timestamp('09-NOV-13','DD-MON-RR HH.MI.SSXFF AM'),'Nikhil    ','payroll        ',null,null);
Insert into  messages  (MSG_NO,MSG_STR,MSG_DESCR,MSG_TYPE,MSG_OPT,MSG_TIME,ALARM,ERR_SOURCE,CHG_DATE,CHG_USER,CHG_TERM,OVERRIDE_INPUT,MAIL_OPTION) values ('NEWSITENUL','New Site Code is Mandatory','New site Code should not be blank','E','Y',null,null,null,to_timestamp('09-NOV-13','DD-MON-RR HH.MI.SSXFF AM'),'Nikhil    ','payroll        ',null,null);
Insert into  messages  (MSG_NO,MSG_STR,MSG_DESCR,MSG_TYPE,MSG_OPT,MSG_TIME,ALARM,ERR_SOURCE,CHG_DATE,CHG_USER,CHG_TERM,OVERRIDE_INPUT,MAIL_OPTION) values ('NEWSITNEXI','New Site Code not exist','New site Code not exist','E','Y',null,null,null,to_timestamp('09-NOV-13','DD-MON-RR HH.MI.SSXFF AM'),'Nikhil    ','payroll        ',null,null);
commit

------------------------------------------ payroll variables-           alter



Insert into OBJ_LINKS (OBJ_NAME,FORM_NO,FIELD_NAME,TARGET_OBJ_NAME,LINK_FORM_NAME,LINK_TITLE,LINK_URI,LINK_TYPE,LINK_ARG,UPDATE_FLAG,LINK_NAME,RIGHTS_CHAR,IMAGE) values ('pay_var','1','prd_code','pay_param','pay_param21','Copy Button',null,'4','prd_code.String','0',null,'*',null);

Insert into TRANSETUP (TRAN_WINDOW,SAVE_FLAG,VAL_FLAG,KEY_FLAG,KEY_STRING,UDF_1,UDF_2,UDF_3,UDF_4,UDF_5,REPEATE_ADD,CHG_DATE,CHG_USER,CHG_TERM,EDI_OPTION,SITE_ACC_COL,CONFIRM_COL,CONFIRM_VAL,REPEAT_ADD_DET,REPEATADDDET,LOAD_MODE,AUTO_CONFIRM,LEDG_POST_CONF,CHG_DATE_ON_CONF,TRAN_ID_COL,MAIL_OPTION,CONFIRM_MODE,GARBAGE_OPT,VAL_FLAG_EDI,VERIFY_PASSWORD,CUST_ACC_COL,SALES_PERS_ACC_COL,SUPP_ACC_COL,ITEM_SER_ACC_CODE,EMP_ACC_COL,ITEM_SER_ACC_COL,WORKFLOW_OPT,TABLE_NAME,APPLICATION,TABLE_DESC,TRAN_DATE_COL,TRAN_ID__FROM,TRAN_ID__TO,TABLE_NAME_DET1,TABLE_NAME_DET2,TABLE_NAME_DET3,MULTITIRE_OPT,REF_SER,VIEW_MODE,TAX_FORMS,SIGN_STATUS,USER_TRAN_WINDOW,CUSTOM_PREVIEW_OBJ,IGNOREERRLIST_ONLOAD,CHILDDATA_ARGOPT,EDIT_TMPLT,WRKFLW_INIT,EDITTAX,FORMAL_ARGS,AUDIT_TRAIL_OPT,EDIT_OPT,CACHE_OPT,OPTIMIZE_MODE,EDIT_EXPR,RATE_COL,QTY_COL,EDIT_EXPR_INP,RCP_CACHE_STATUS,PRINT_CONTROL,TRANSFER_MODE,PROFILE_ID__RES,TRAN_COMPL_MSG,PERIOD_OPTION,WRKFLW_PRIORITY,EXEC_TYPE,DISP_META_DATA,ALLOW_ATTACH,START_FORM,ISATTACHMENT,HEADER_FORM_NO,MSG_ONSAVE,WF_STATUS) values ('w_pay_param','2','2','M',null,null,null,null,null,null,'Y',to_timestamp('01-NOV-13','DD-MON-RR HH.MI.SSXFF AM'),'Nikhil    ','payroll        ','0','SITE_CODE',null,null,'Y',null,null,'N','N',null,'prd_code',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,'F',null,null,null,null,null,null,null,null,null,null,'0',null,null,null,null,null,null,null,null,null,null,null,null,'M',null,null,null,null,null,null,null,null,null);

Insert into  system_events  (OBJ_NAME,EVENT_CODE,EVENT_CONTEXT,SERVICE_CODE,METHOD_RULE,OVERWRITE_CORE,CHG_DATE,CHG_USER,CHG_TERM,RESULT_HANDLE,COMP_TYPE,COMP_NAME,COMM_FORMAT) values ('pay_param','pre_save','1','presave_payparam',null,'0',to_timestamp('01-NOV-13','DD-MON-RR HH.MI.SSXFF AM'),'BASE      ','BASE','2','EJB','CopyPayParamPrs',null);
INSERT INTO system_event_services (
	service_code ,
	service_descr ,
	service_uri ,
	service_provider ,
	method_name ,
	return_value ,
	return_type ,	
	chg_date ,
	chg_user ,
	chg_term) 
VALUES (
	'presave_payparam',
	'preSaveRec',
	'http://172.16.145.69/BaseE12DotNetService6-3-0-135/E12BusinessLogic6-3-0-135.asmx',
	'BASE',
	'preSaveRec',
	'String',
	'S',
	fn_sysdate(),
	'1234',
	'BASE');

commit;

Insert into  system_service_args  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('presave_payparam',1,'COMPONENT_TYPE','I',null,'C.String',null,to_timestamp('01-NOV-13','DD-MON-RR HH.MI.SSXFF AM'),'BASE      ','BASE','EJB');
Insert into  system_service_args  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('presave_payparam',2,'COMPONENT_NAME','I',null,'C.String',null,to_timestamp('01-NOV-13','DD-MON-RR HH.MI.SSXFF AM'),'BASE      ','BASE','CopyPayParamPrs');
Insert into  system_service_args  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('presave_payparam',3,'XML_DATA','I',null,'S',null,to_timestamp('01-NOV-13','DD-MON-RR HH.MI.SSXFF AM'),'BASE      ','BASE',null);
Insert into  system_service_args  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('presave_payparam',4,'DOM_ID','I',null,'S',null,to_timestamp('01-NOV-13','DD-MON-RR HH.MI.SSXFF AM'),'BASE      ','BASE',null);
Insert into  system_service_args  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('presave_payparam',5,'OBJ_CONTEXT','I',null,'S',null,to_timestamp('01-NOV-13','DD-MON-RR HH.MI.SSXFF AM'),'BASE      ','BASE',null);
Insert into  system_service_args  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('presave_payparam',6,'EDIT_FLAG','I',null,'S',null,to_timestamp('01-NOV-13','DD-MON-RR HH.MI.SSXFF AM'),'BASE      ','BASE',null);
Insert into  system_service_args  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('presave_payparam',7,'XTRA_PARAMS','I',null,'S',null,to_timestamp('01-NOV-13','DD-MON-RR HH.MI.SSXFF AM'),'BASE      ','BASE',null);
Insert into  system_service_args  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('presave_payparam',8,'DB_CONN','I',null,'S.Connection',null,to_timestamp('01-NOV-13','DD-MON-RR HH.MI.SSXFF AM'),'BASE      ','BASE',null);
commit;


INSERT INTO Messages (
	msg_no,
	msg_str,
	msg_descr,
	msg_type,
	msg_opt,
	msg_time,
	alarm,
	err_source ,
	chg_date,
	chg_user,
	chg_term,
	override_input ,
	mail_option )
 VALUES (
	'PRDCODNULL',
	'Blank Period Code',
	'Period code should not be left blank',
	'E',
	'Y',
	NULL,
	NULL,
	NULL,
	TO_DATE('16-10-2012 17:35:00','DD-MM-YYYY HH24:MI:SS'),
	'venkat',
	'BASE',
	NULL,
	NULL);

commit;


INSERT INTO Messages (
	msg_no,
	msg_str,
	msg_descr,
	msg_type,
	msg_opt,
	msg_time,
	alarm,
	err_source ,
	chg_date,
	chg_user,
	chg_term,
	override_input ,
	mail_option )
 VALUES (
	'NEWPRCONUL',
	'Blank New Period Code',
	'New Period code should not be left blank',
	'E',
	'Y',
	NULL,
	NULL,
	NULL,
	TO_DATE('16-10-2012 17:35:00','DD-MM-YYYY HH24:MI:SS'),
	'venkat',
	'BASE',
	NULL,
	NULL);

commit;


INSERT INTO Messages (
	msg_no,
	msg_str,
	msg_descr,
	msg_type,
	msg_opt,
	msg_time,
	alarm,
	err_source ,
	chg_date,
	chg_user,
	chg_term,
	override_input ,
	mail_option )
 VALUES (
	'NEWPRCOINV',
	'Invalid new period code',
	'enter valid new period code',
	'E',
	'Y',
	NULL,
	NULL,
	NULL,
	TO_DATE('16-10-2012 17:35:00','DD-MM-YYYY HH24:MI:SS'),
	'venkat',
	'BASE',
	NULL,
	NULL);

commit;


--------------------- Update PFNO -----------


INSERT INTO system_events (
	obj_name ,
	event_code ,
	event_context,
	service_code ,
	chg_date ,
	chg_user ,
	chg_term ,
	result_handle ,
	overwrite_core ,
	comp_type ,
	comp_name )
VALUES (
	'pfno_change',
	'pre_save',
	'1',
	'pre_save_pfno_change',
	 fn_sysdate(),
	'venkat',
	'BASE',
	'2',
	'0',
	'EJB',
	'PfNumberprs');
commit;

INSERT INTO system_event_services (
	service_code,
	service_descr,
	service_uri,
	service_provider,
	method_name,
	return_value,
	return_type,
	return_descr,
	return_xfrm,
	chg_date,
	chg_user ,
	chg_term )
 VALUES (
	'pre_save_pfno_change',
	'preSave',
	'http://172.16.145.69/BaseE12DotNetService6-3-0-135/E12BusinessLogic6-3-0-135.asmx',
	'BASE',
	'preSave',
	'String',
	'S',
	NULL,
	NULL,
	fn_sysdate(),
	'venkat',
	'BASE');
commit;

INSERT INTO system_service_args  (
	service_code,
	line_no,
	arg_name,
	arg_mode ,
	descr ,
	arg_type,
	arg_xfrm,
	chg_date ,
	chg_user ,
	chg_term ,
	arg_value )
VALUES (
	'pre_save_pfno_change',
	1,
	'COMPONENT_TYPE',
	'I',
	NULL,
	'C.String',
	NULL,
	fn_sysdate(),
	'venkat ',
	'Base',
	'EJB');
commit;

INSERT INTO system_service_args  (
	service_code,
	line_no,
	arg_name,
	arg_mode ,
	descr ,
	arg_type,
	arg_xfrm,
	chg_date ,
	chg_user ,
	chg_term ,
	arg_value )
VALUES (
	'pre_save_pfno_change',
	2,
	'COMPONENT_NAME',
	'I',
	NULL,
	'C.String',
	NULL,
	fn_sysdate(),
	'venkat',
	'Base',
	'PfNumberprs');
	commit;
	

INSERT INTO system_service_args  (
	service_code,
	line_no,
	arg_name,
	arg_mode ,
	descr ,
	arg_type,
	arg_xfrm,
	chg_date ,
	chg_user ,
	chg_term ,
	arg_value )
VALUES (
	'pre_save_pfno_change',
	3,
	'XML_DATA_ALL',
	'I',
	NULL,
	'S',
	NULL,
	fn_sysdate(),
	'venkat',
	'Base',
	NULL);
commit;

INSERT INTO system_service_args  (
	service_code,
	line_no,
	arg_name,
	arg_mode ,
	descr ,
	arg_type,
	arg_xfrm,
	chg_date ,
	chg_user ,
	chg_term ,
	arg_value )
VALUES (
	'pre_save_pfno_change',
	4,
	'EDIT_FLAG',
	'I',
	NULL,
	'S',
	NULL,
	fn_sysdate(),
	'venkat',
	'Base',
	NULL);

commit;
INSERT INTO system_service_args  (
	service_code,
	line_no,
	arg_name,
	arg_mode ,
	descr ,
	arg_type,
	arg_xfrm,
	chg_date ,
	chg_user ,
	chg_term ,
	arg_value )
VALUES (
	'pre_save_pfno_change',
	5,
	'XTRA_PARAMS',
	'I',
	NULL,
	'S',
	NULL,
	fn_sysdate(),
	'venkat',
	'Base',
	NULL);

	commit;
	
	INSERT INTO system_service_args  (
	service_code,
	line_no,
	arg_name,
	arg_mode ,
	descr ,
	arg_type,
	arg_xfrm,
	chg_date ,
	chg_user ,
	chg_term ,
	arg_value )
VALUES (
	'pre_save_pfno_change',
	6,
	'DB_CONN',
	'I',
	NULL,
	'S.Connection',
	NULL,
	fn_sysdate(),
	'venkat ',
	'Base',
	NULL);

commit;


INSERT INTO obj_actions
  (
    obj_name,
    line_no,
    rights_char,
    interactive,
    service_code,
    description,
    title,
    image,
    action_type,
    form_no,
    service_handler,
    placement,
    tran_type
  )
  VALUES
  (
    'pfno_change',
    1,
    'A',
    NULL,
    NULL,
    NULL,
    'Add',
    'add.gif',
    'S',
    '1',
    NULL,
    NULL,
    NULL
  );
COMMIT;
INSERT INTO OBJ_ACTIONS
  (
    OBJ_NAME,
    LINE_NO,
    RIGHTS_CHAR,
    INTERACTIVE,
    SERVICE_CODE,
    DESCRIPTION,
    TITLE,
    IMAGE,
    ACTION_TYPE,
    FORM_NO,
    SERVICE_HANDLER,
    PLACEMENT,
    TRAN_TYPE
  )
  VALUES
  (
    'pfno_change',
    2,
    'E',
    NULL,
    NULL,
    NULL,
    'Edit',
    'edit.gif',
    'S',
    '1',
    NULL,
    NULL,
    NULL
  );
COMMIT;


----------------- full and final  -----------alter


INSERT INTO REFSER
  (
    REF_SER,
    DESCR,
    TYPE,
    SYS_SER,
    PREFIX,
    CHG_DATE,
    CHG_USER,
    CHG_TERM,
    SEQ_NAME,
    TAX_FORM_REQD,
    TRANS_TYPE
  )
  VALUES
  (
    'ABC',
    'Full final',
    'S',
    'PAYTBL',
    'PAYTBL                        ',
    TO_TIMESTAMP('25-MAY-05 11.31.31.000000000 AM','DD-MON-RR HH.MI.SS.FF AM'),
    'ADMIN     ',
    '00NILESH       ',
    'PAYTBL',
    NULL,
    NULL
  );
COMMIT;

------------------------ SEPARATION CLOSE --------------

update transetup set ref_ser = 'sepcl' where tran_window = 'w_sep_close';
commit;

update system_event_services set service_uri = 'http://localhost:9090/axis/services/ValidatorService' where service_code = 'poic_sep_close';
commit;

update system_event_services set METHOD_NAME = 'wfValData' where service_code = 'prv_sep_close';
commit;
update system_service_args set ARG_NAME = 'XML_DATA' where service_code = 'prv_sep_close' AND LINE_NO = '3';
commit;
update system_service_args set ARG_NAME = 'XML_DATA_1' where service_code = 'prv_sep_close' AND LINE_NO = '4';
commit;
update system_service_args set ARG_NAME = 'XML_DATA_ALL' where service_code = 'prv_sep_close' AND LINE_NO = '5';
commit;


update system_event_services set METHOD_NAME = 'wfValData' where service_code = 'prv_sep_close';
commit;
update system_service_args set ARG_NAME = 'XML_DATA' where service_code = 'poic_sep_close' AND LINE_NO = '3';
commit;
update system_service_args set ARG_NAME = 'XML_DATA_1' where service_code = 'poic_sep_close' AND LINE_NO = '4';
commit;
update system_service_args set ARG_NAME = 'XML_DATA_ALL' where service_code = 'poic_sep_close' AND LINE_NO = '5';
commit;



INSERT INTO REFSER
  (
    REF_SER,
    DESCR,
    TYPE,
    SYS_SER,
    PREFIX,
    CHG_DATE,
    CHG_USER,
    CHG_TERM,
    SEQ_NAME,
    TAX_FORM_REQD,
    TRANS_TYPE
  )
  VALUES
  (
    'sepcl',
    'Separation close',
    'S',
    'B. sep',
    'B.sep',
    TO_TIMESTAMP('25-MAY-05 11.31.31.000000000 AM','DD-MON-RR HH.MI.SS.FF AM'),
    'ADMIN     ',
    '00NILESH       ',
    'PAYTBL',
    NULL,
    NULL
  );
COMMIT;


INSERT INTO obj_itemchange (
	obj_name ,
	form_no ,
	field_name ,
	mandatory )
VALUES (
	'pfno_change',
	'1',
	'itm_default',
	NULL);
commit;


INSERT INTO system_events (
	obj_name ,
	event_code ,
	event_context,
	service_code ,
	chg_date ,
	chg_user ,
	chg_term ,
	result_handle ,
	overwrite_core ,
	comp_type ,
	comp_name )
VALUES (
	'pfno_change',
	'post_item_change',
	'1',
	'poic_pfno_change',
	 fn_sysdate(),
	'venkat',
	'BASE',
	'2',
	'0',
	'EJB',
	'PfNumberprs');

commit;	

INSERT INTO system_event_services (
	service_code ,
	service_descr ,
	service_uri ,
	service_provider ,
	method_name ,
	return_value ,
	return_type ,	
	chg_date ,
	chg_user ,
	chg_term) 
VALUES (
	'poic_pfno_change',
	'post item change',
	'http://localhost:9090/axis/services/ValidatorService',
	'BASE',
	'itemChanged',
	'String',
	'S',
	fn_sysdate(),
	'venkat',
	'BASE');

commit;

INSERT INTO system_service_args (
	service_code ,
	line_no ,
	arg_name ,
	arg_mode ,
	arg_type ,	
	chg_date ,
	chg_user,
	chg_term ,
	arg_value )
VALUES (
	'poic_pfno_change',
	 1,
	'COMPONENT_TYPE',
	'I',
	'S',
	fn_sysdate(),
	'venkat',
	'BASE',
	'EJB');	

commit;

INSERT INTO system_service_args (
	service_code ,
	line_no ,
	arg_name ,
	arg_mode ,
	arg_type ,	
	chg_date ,
	chg_user,
	chg_term ,
	arg_value )
VALUES (
	'poic_pfno_change',
	 2,
	'COMPONENT_NAME',
	'I',	
	'S',	
	fn_sysdate(),
	'venkat',
	'BASE',
	'PfNumberprs');	

commit;

INSERT INTO system_service_args (
	service_code ,
	line_no ,
	arg_name ,
	arg_mode ,
	arg_type ,	
	chg_date ,
	chg_user,
	chg_term )
VALUES (
	'poic_pfno_change',
	3,
	'XML_DATA',
	'I',
	'S',
	fn_sysdate(),
	'venkat ',
	'BASE');	

commit;


INSERT INTO system_service_args (
	service_code ,
	line_no ,
	arg_name ,
	arg_mode ,
	arg_type ,	
	chg_date ,
	chg_user,
	chg_term )
VALUES (
	'poic_pfno_change',
	4,
	'XML_DATA_1',
	'I',
	'S',
	fn_sysdate(),
	'venkat ',
	'BASE');

commit;

	
INSERT INTO system_service_args (
	service_code ,
	line_no ,
	arg_name ,
	arg_mode ,
	arg_type ,	
	chg_date ,
	chg_user,
	chg_term )
VALUES (
	'poic_pfno_change',
	5,
	'XML_DATA_ALL',
	'I',	
	'S',
	fn_sysdate(),
	'venkat',
	'BASE');

commit;


INSERT INTO system_service_args (
	service_code ,
	line_no ,
	arg_name ,
	arg_mode ,
	arg_type ,	
	chg_date ,
	chg_user,
	chg_term )
VALUES (
	'poic_pfno_change',
	6,
	'OBJ_CONTEXT',
	'I',
	'S',	
	fn_sysdate(),
	'venkat ',
	'BASE');	

commit;

	
INSERT INTO system_service_args (
	service_code ,
	line_no ,
	arg_name ,
	arg_mode ,
	arg_type ,	
	chg_date ,
	chg_user,
	chg_term )
VALUES (
	'poic_pfno_change',
	 7,
	'FOCUSED_COLUMN',
	'I',	
	'S',
	fn_sysdate(),
	'venkat',
	'BASE');	

commit;

	
INSERT INTO system_service_args (
	service_code ,
	line_no ,
	arg_name ,
	arg_mode ,
	arg_type ,	
	chg_date ,
	chg_user,
	chg_term )
VALUES (
	'poic_pfno_change',
	8,
	'EDIT_FLAG',
	'I',
	'S',	
	fn_sysdate(),
	'venkat ',
	'BASE');	

commit;

	
INSERT INTO system_service_args (
	service_code ,
	line_no ,
	arg_name ,
	arg_mode ,
	arg_type ,	
	chg_date ,
	chg_user,
	chg_term )
VALUES(
	'poic_pfno_change',
	9,
	'XTRA_PARAMS',
	'I',
	'S',	
	fn_sysdate(),
	'venkat',
	'BASE');	
	
commit;

---- function for employee holiday change-----


create or replace
function fn_get_holtblno (AS_EMP_CODE char,AS_DATE date) return char is
  cursor c1 is select eff_date,conf_date,chg_date,hol_tblno__fr from emp_employ_events
    where emp_code = AS_EMP_CODE
    and eff_date > AS_DATE
    and confirmed = 'Y'
    order by emp_code,eff_date;
  a_hol_tblno employee.hol_tblno%type;
  a_eff_date date;
  a_conf_date date;
  a_chg_date date;
begin
  for i in c1
  loop
    if (i.eff_date != a_eff_date and a_eff_date is not null) then
      exit;
    end if;
    if (a_conf_date is null) then
      a_hol_tblno := i.hol_tblno__fr;
      a_conf_date := i.conf_date;
      a_chg_date := i.chg_date;
    else
      if (i.conf_date < a_conf_date) then
        a_hol_tblno := i.hol_tblno__fr;
        a_conf_date := i.conf_date;
        a_chg_date := i.chg_date;
      elsif (i.conf_date = a_conf_date) then
        if (i.chg_date < a_chg_date) then
          a_hol_tblno := i.hol_tblno__fr;
          a_chg_date := i.chg_date;
        end if;
      end if;
    end if;
    a_eff_date := i.eff_date;
  end loop;
  if (trim(a_hol_tblno) is null) then
    select hol_tblno into a_hol_tblno from employee where emp_code = AS_EMP_CODE;
  end if;
  if (trim(a_hol_tblno) is null) then
    select hol_tblno into a_hol_tblno from site where site_code = ddf_hr_status(AS_EMP_CODE,AS_DATE,'W');
  end if;
  return a_hol_tblno;
end;
/


commit;

INSERT INTO obj_itemchange (
	obj_name ,
	form_no ,
	field_name ,
	mandatory )
VALUES (
	'shortlist',
	'1',
	'prev_employed',
	NULL);
commit;

INSERT INTO obj_itemchange (
	obj_name ,
	form_no ,
	field_name ,
	mandatory )
VALUES (
	'mpreqmnt',
	'1',
	'new_vacancy',
	NULL);
commit;

alter table emp_employ_events add ( WORK_CTR__TO    char(10), WORK_CTR__FR char(10));
commit;

UPDATE ITM2MENU SET OBJ_TYPE = 'P' WHERE WIN_NAME = 'w_emp_ad_browse';
COMMIT;

INSERT INTO obj_itemchange (
	obj_name ,
	form_no ,
	field_name ,
	mandatory )
VALUES (
	'perk_lapse_proc',
	'1  ',
	'emp_code__from',
	NULL);
commit;
INSERT INTO obj_itemchange (
	obj_name ,
	form_no ,
	field_name ,
	mandatory )
VALUES (
	'perk_lapse_proc',
	'1  ',
	'emp_code__to',
	NULL);
commit;
INSERT INTO obj_itemchange (
	obj_name ,
	form_no ,
	field_name ,
	mandatory )
VALUES (
	'perk_lapse_proc',
	'1  ',
	'ad_code',
	NULL);
commit;
INSERT INTO obj_itemchange (
	obj_name ,
	form_no ,
	field_name ,
	mandatory )
VALUES (
	'perk_lapse_proc',
	'1  ',
	'site_code__from',
	NULL);
commit;
INSERT INTO obj_itemchange (
	obj_name ,
	form_no ,
	field_name ,
	mandatory )
VALUES (
	'perk_lapse_proc',
	'1  ',
	'site_code__to',
	NULL);
commit;
INSERT INTO obj_itemchange (
	obj_name ,
	form_no ,
	field_name ,
	mandatory )
VALUES (
	'perk_lapse_proc',
	'1  ',
	'proc_group__from',
	NULL);
commit;
INSERT INTO obj_itemchange (
	obj_name ,
	form_no ,
	field_name ,
	mandatory )
VALUES (
	'perk_lapse_proc',
	'1  ',
	'proc_group__to',
	NULL);
commit; 

alter table emp_employ_events add ( WORK_CTR__TO    char(10));
commit;

alter table emp_employ_events add ( WORK_CTR__FR char(10));
commit;


Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) values ('shift_pattern','1  ','itm_default',null);
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) values ('shift_pattern','1  ','shift_pattern',null);

COMMIT;


Insert into OBJ_ACTIONS (OBJ_NAME,LINE_NO,IMAGE,DESCRIPTION,SERVICE_CODE,INTERACTIVE,RIGHTS_CHAR,TITLE,FORM_NO,SERVICE_HANDLER,PLACEMENT,ACTION_TYPE,TRAN_TYPE,CHG_DATE,CHG_TERM,CHG_USER) values ('auto_itconfirm',1,null,'GetData','get_data','a','R','GetData','1',null,null,'U',null,to_timestamp('20-AUG-13','DD-MON-RR HH.MI.SSXFF AM'),'BASE           ','venkat    ');
Insert into OBJ_ACTIONS (OBJ_NAME,LINE_NO,IMAGE,DESCRIPTION,SERVICE_CODE,INTERACTIVE,RIGHTS_CHAR,TITLE,FORM_NO,SERVICE_HANDLER,PLACEMENT,ACTION_TYPE,TRAN_TYPE,CHG_DATE,CHG_TERM,CHG_USER) values ('auto_itconfirm',2,null,'Process','process','a','R','Process','1',null,null,'U',null,to_timestamp('20-AUG-13','DD-MON-RR HH.MI.SSXFF AM'),'BASE           ','venkat    ');
COMMIT;


------------------ holiday table   

update genmst set sql_input = ':0.hol_tblno', fld_min = 'select count(*) from holiday where hol_tblno = ''?''' , fld_type = 'N', fld_max = '0', val_type = 'Q', fld_width = '14' where fld_name = 'HOL_TBLNO';
commit;

INSERT INTO obj_itemchange (
	obj_name ,
	form_no ,
	field_name ,
	mandatory )
VALUES (
	'report_to_change',
	'1',
	'reporting_type',
	NULL);
commit; 


update system_event_services set method_name = 'getData' where service_code = 'prc_reco'; 
commit;

update genmst set sql_input = ':0.publ_code', fld_min = 'SELECT COUNT(*) FROM GENCODES WHERE FLD_NAME = ? AND MOD_NAME = ''W_VACAGENCY''' , fld_type = 'N', fld_max = '0', val_type = 'Q', fld_width = '14' where fld_name = 'PUBL_CODE';
commit;

------ SEPERATION CLOSE ----------


update system_event_services set service_uri = 'http://localhost/BaseE12DotNetService6-3-0-135/E12BusinessLogic6-3-0-135.asmx'  where service_code = 'prcm_sep_close';
update system_events set comp_type = 'EJB' WHERE SERVICE_CODE = 'prcm_sep_close';

Insert into  system_service_args  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prcm_bill',1,'COMPONENT_TYPE','I','Component Type','C.String',null,to_timestamp('08-MAY-12','DD-MON-RR HH.MI.SSXFF AM'),'venkat    ','Base','EJB');
Insert into  system_service_args  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prcm_bill',2,'COMPONENT_NAME','I','Component Name','C.String',null,to_timestamp('08-MAY-12','DD-MON-RR HH.MI.SSXFF AM'),'venkat    ','Base','BillVoucherGeneration');
Insert into  system_service_args  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prcm_bill',3,'<tran_id>','I','htl_bill_id','C.String',null,to_timestamp('08-MAY-12','DD-MON-RR HH.MI.SSXFF AM'),'venkat    ','Base',null);
Insert into  system_service_args  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prcm_bill',4,'XTRA_PARAMS','I','Extra Arguments','S',null,to_timestamp('08-MAY-12','DD-MON-RR HH.MI.SSXFF AM'),'venkat    ','Base',null);
Insert into  system_service_args  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prcm_bill',5,'FORCED_FLAG','I','Forced Flag','S',null,to_timestamp('08-MAY-12','DD-MON-RR HH.MI.SSXFF AM'),'venkat    ','Base',null);

commit;

INSERT INTO MESSAGES
  (
    msg_no,
    msg_str,
    msg_descr,
    msg_type,
    msg_opt,
    msg_time,
    alarm,
    err_source,
    chg_date,
    chg_user,
    chg_term,
    override_input,
    mail_option
  )
  VALUES
  (
    'VTBLKCHDTE',
    'Tran Date',
    'Tran date should not be left blank ',
    'E',
    'Y',
    NULL,
    NULL,
    NULL,
    TO_DATE('9-11-2013 00:00:00','DD-MM-YYYY HH24:MI:SS'),
    'Nikhil',
    'payroll',
    NULL,
    NULL
  );
  
  INSERT INTO MESSAGES
  (
    msg_no,
    msg_str,
    msg_descr,
    msg_type,
    msg_opt,
    msg_time,
    alarm,
    err_source,
    chg_date,
    chg_user,
    chg_term,
    override_input,
    mail_option
  )
  VALUES
  (
    'VTBLKCHODN',
    'Employee code',
    'Employee code should not be left blank ',
    'E',
    'Y',
    NULL,
    NULL,
    NULL,
    TO_DATE('9-11-2013 00:00:00','DD-MM-YYYY HH24:MI:SS'),
    'Nikhil',
    'payroll',
    NULL,
    NULL
  );
  INSERT INTO MESSAGES
  (
    msg_no,
    msg_str,
    msg_descr,
    msg_type,
    msg_opt,
    msg_time,
    alarm,
    err_source,
    chg_date,
    chg_user,
    chg_term,
    override_input,
    mail_option
  )
  VALUES
  (
    'VTINVCHODN',
    'Employee code',
    'Invalid employee code, please enter valid employee code ',
    'E',
    'Y',
    NULL,
    NULL,
    NULL,
    TO_DATE('9-11-2013 00:00:00','DD-MM-YYYY HH24:MI:SS'),
    'Nikhil',
    'payroll',
    NULL,
    NULL
  );
  
   INSERT INTO MESSAGES
  (
    msg_no,
    msg_str,
    msg_descr,
    msg_type,
    msg_opt,
    msg_time,
    alarm,
    err_source,
    chg_date,
    chg_user,
    chg_term,
    override_input,
    mail_option
  )
  VALUES
  (
    'VTBLKPFODN',
    'PF Number',
    'Pf number should not be left blank ',
    'E',
    'Y',
    NULL,
    NULL,
    NULL,
    TO_DATE('9-11-2013 00:00:00','DD-MM-YYYY HH24:MI:SS'),
    'Nikhil',
    'payroll',
    NULL,
    NULL
  );
  commit;
  
  update system_service_args set  arg_value = 'WSR' where service_code = 'pr_default_1' AND ARG_NAME = 'COMPONENT_TYPE';
COMMIT;
update system_service_args set  arg_value = 'WSR' where service_code = 'prv_default_1' AND ARG_NAME = 'COMPONENT_TYPE';
update system_service_args set  arg_value = 'nvo_bo_attd_proc_norule' where service_code = 'pr_default_1' AND ARG_NAME = 'COMPONENT_NAME';
update system_service_args set  arg_value = 'nvo_bo_attd_proc_norule' where service_code = 'prv_default_1' AND ARG_NAME = 'COMPONENT_NAME';
COMMIT;

delete from system_events where obj_name = 'att_proc_lwp';
commit;

Insert into  system_events  (OBJ_NAME,EVENT_CODE,EVENT_CONTEXT,SERVICE_CODE,METHOD_RULE,OVERWRITE_CORE,CHG_DATE,CHG_USER,CHG_TERM,RESULT_HANDLE,COMP_TYPE,COMP_NAME,COMM_FORMAT) values ('att_proc_lwp','post_item_change','1','poic_att_proc_lwp',null,'0',to_timestamp('20-AUG-13','DD-MON-RR HH.MI.SSXFF AM'),'venkat    ','BASE','2','WSR','nvo_bo_att_proc_lwp',null);
Insert into  system_events  (OBJ_NAME,EVENT_CODE,EVENT_CONTEXT,SERVICE_CODE,METHOD_RULE,OVERWRITE_CORE,CHG_DATE,CHG_USER,CHG_TERM,RESULT_HANDLE,COMP_TYPE,COMP_NAME,COMM_FORMAT) values ('att_proc_lwp','pre_validate','1','prv_att_proc_lwp',null,'0',to_timestamp('20-AUG-13','DD-MON-RR HH.MI.SSXFF AM'),'venkat    ','BASE','2','WSR','nvo_bo_att_proc_lwp',null);
Insert into  system_events  (OBJ_NAME,EVENT_CODE,EVENT_CONTEXT,SERVICE_CODE,METHOD_RULE,OVERWRITE_CORE,CHG_DATE,CHG_USER,CHG_TERM,RESULT_HANDLE,COMP_TYPE,COMP_NAME,COMM_FORMAT) values ('att_proc_lwp','process','1','proc_att_proc_lwp',null,'0',to_timestamp('20-AUG-13','DD-MON-RR HH.MI.SSXFF AM'),'venkat    ','BASE','2','WSR','nvo_bo_att_proc_lwp',null);

Insert into  system_events  (OBJ_NAME,EVENT_CODE,EVENT_CONTEXT,SERVICE_CODE,METHOD_RULE,OVERWRITE_CORE,CHG_DATE,CHG_USER,CHG_TERM,RESULT_HANDLE,COMP_TYPE,COMP_NAME,COMM_FORMAT) values ('att_proc_lwp','post_validate','1','post_att_proc_lwp',null,'0',to_timestamp('15-MAY-09','DD-MON-RR HH.MI.SSXFF AM'),'system    ','system','2','EJB','GenValidate',null);
commit;


Insert into  system_events  (OBJ_NAME,EVENT_CODE,EVENT_CONTEXT,SERVICE_CODE,METHOD_RULE,OVERWRITE_CORE,CHG_DATE,CHG_USER,CHG_TERM,RESULT_HANDLE,COMP_TYPE,COMP_NAME,COMM_FORMAT) values ('att_proc_lwp','post_item_change','1','poic_att_proc_lwp',null,'0',to_timestamp('20-AUG-13','DD-MON-RR HH.MI.SSXFF AM'),'venkat    ','BASE','2','WSR','nvo_bo_att_proc_lwp',null);
Insert into  system_events  (OBJ_NAME,EVENT_CODE,EVENT_CONTEXT,SERVICE_CODE,METHOD_RULE,OVERWRITE_CORE,CHG_DATE,CHG_USER,CHG_TERM,RESULT_HANDLE,COMP_TYPE,COMP_NAME,COMM_FORMAT) values ('att_proc_lwp','pre_validate','1','prv_att_proc_lwp',null,'0',to_timestamp('20-AUG-13','DD-MON-RR HH.MI.SSXFF AM'),'venkat    ','BASE','2','WSR','nvo_bo_att_proc_lwp',null);
Insert into  system_events  (OBJ_NAME,EVENT_CODE,EVENT_CONTEXT,SERVICE_CODE,METHOD_RULE,OVERWRITE_CORE,CHG_DATE,CHG_USER,CHG_TERM,RESULT_HANDLE,COMP_TYPE,COMP_NAME,COMM_FORMAT) values ('att_proc_lwp','process','1','proc_att_proc_lwp',null,'0',to_timestamp('20-AUG-13','DD-MON-RR HH.MI.SSXFF AM'),'venkat    ','BASE','2','WSR','nvo_bo_att_proc_lwp',null);

Insert into  system_events  (OBJ_NAME,EVENT_CODE,EVENT_CONTEXT,SERVICE_CODE,METHOD_RULE,OVERWRITE_CORE,CHG_DATE,CHG_USER,CHG_TERM,RESULT_HANDLE,COMP_TYPE,COMP_NAME,COMM_FORMAT) values ('att_proc_lwp','post_validate','1','post_att_proc_lwp',null,'0',to_timestamp('15-MAY-09','DD-MON-RR HH.MI.SSXFF AM'),'system    ','system','2','EJB','GenValidate',null);


Insert into  system_event_services 
 (SERVICE_CODE,SERVICE_DESCR,SERVICE_URI,SERVICE_PROVIDER,METHOD_NAME,
RETURN_VALUE,RETURN_TYPE,RETURN_DESCR,RETURN_XFRM,CHG_DATE,
CHG_USER,CHG_TERM) values 
('poic_att_proc_lwp','post item change',
'http://localhost:9090/axis/services/ValidatorService',
'BASE','itemChanged','String','S',null,null, 
to_timestamp('20-AUG-13','DD-MON-RR HH.MI.SSXFF AM'),'venkat    ','BASE');

Insert into  system_event_services  (SERVICE_CODE,SERVICE_DESCR,SERVICE_URI,SERVICE_PROVIDER,METHOD_NAME,RETURN_VALUE,RETURN_TYPE,RETURN_DESCR,RETURN_XFRM,CHG_DATE,CHG_USER,CHG_TERM) values ('proc_att_proc_lwp','process','http://localhost/axis/services/ProcessService','BASE','process','String','S',null,null, to_timestamp('20-AUG-13','DD-MON-RR HH.MI.SSXFF AM'),'venkat    ','BASE');
Insert into  system_event_services  (SERVICE_CODE,SERVICE_DESCR,SERVICE_URI,SERVICE_PROVIDER,METHOD_NAME,RETURN_VALUE,RETURN_TYPE,RETURN_DESCR,RETURN_XFRM,CHG_DATE,CHG_USER,CHG_TERM) values ('prv_att_proc_lwp','Validation','http://localhost:9090/axis/services/ValidatorService','BASE','wfValData','String','S',null,null,to_timestamp('20-AUG-13','DD-MON-RR HH.MI.SSXFF AM'),'venkat    ','BASE');

Insert into  system_event_services  (SERVICE_CODE,SERVICE_DESCR,SERVICE_URI,SERVICE_PROVIDER,METHOD_NAME,RETURN_VALUE,RETURN_TYPE,RETURN_DESCR,RETURN_XFRM,CHG_DATE,CHG_USER,CHG_TERM) values ('post_att_proc_lwp','validation','http://localhost:9090/axis/services/ValidatorService','BASE iformation','wfValData','String','S',null,null, to_timestamp('01-JUN-12','DD-MON-RR HH.MI.SSXFF AM'),'ALKA      ','BASE');

commit;

Insert into  system_service_args  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_att_proc_lwp',1,'COMPONENT_TYPE','I',null,'S',null,to_timestamp('20-AUG-13','DD-MON-RR HH.MI.SSXFF AM'),'venkat    ','BASE','WSR');
Insert into  system_service_args  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_att_proc_lwp',2,'COMPONENT_NAME','I',null,'S',null,to_timestamp('20-AUG-13','DD-MON-RR HH.MI.SSXFF AM'),'venkat    ','BASE','nvo_bo_att_proc_lwp');
Insert into  system_service_args  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_att_proc_lwp',3,'XML_DATA','I',null,'S',null,to_timestamp('20-AUG-13','DD-MON-RR HH.MI.SSXFF AM'),'venkat    ','BASE',null);
Insert into  system_service_args  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_att_proc_lwp',4,'XML_DATA_1','I',null,'S',null,to_timestamp('20-AUG-13','DD-MON-RR HH.MI.SSXFF AM'),'venkat    ','BASE',null);
Insert into  system_service_args  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_att_proc_lwp',5,'XML_DATA_ALL','I',null,'S',null,to_timestamp('20-AUG-13','DD-MON-RR HH.MI.SSXFF AM'),'venkat    ','BASE',null);
Insert into  system_service_args  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_att_proc_lwp',6,'OBJ_CONTEXT','I',null,'S',null,to_timestamp('20-AUG-13','DD-MON-RR HH.MI.SSXFF AM'),'venkat    ','BASE',null);
Insert into  system_service_args  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_att_proc_lwp',7,'FOCUSED_COLUMN','I',null,'S',null,to_timestamp('20-AUG-13','DD-MON-RR HH.MI.SSXFF AM'),'venkat    ','BASE',null);
Insert into  system_service_args  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_att_proc_lwp',8,'EDIT_FLAG','I',null,'S',null,to_timestamp('20-AUG-13','DD-MON-RR HH.MI.SSXFF AM'),'venkat    ','BASE',null);
Insert into  system_service_args  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_att_proc_lwp',9,'XTRA_PARAMS','I',null,'S',null,to_timestamp('20-AUG-13','DD-MON-RR HH.MI.SSXFF AM'),'venkat    ','BASE',null);
Insert into  system_service_args  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('proc_att_proc_lwp',1,'COMPONENT_TYPE','I',null,'C.String',null,to_timestamp('20-AUG-13','DD-MON-RR HH.MI.SSXFF AM'),'venkat    ','BASE','WSR');
Insert into  system_service_args  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('proc_att_proc_lwp',2,'COMPONENT_NAME','I',null,'C.String',null,to_timestamp('20-AUG-13','DD-MON-RR HH.MI.SSXFF AM'),'venkat    ','BASE','nvo_bo_att_proc_lwp');
Insert into  system_service_args  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('proc_att_proc_lwp',3,'XML_DATA_1','l',null,'S',null,to_timestamp('20-AUG-13','DD-MON-RR HH.MI.SSXFF AM'),'venkat    ','BASE',null);
Insert into  system_service_args  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('proc_att_proc_lwp',4,'XML_DATA__ALL','l',null,'S',null,to_timestamp('20-AUG-13','DD-MON-RR HH.MI.SSXFF AM'),'venkat    ','BASE',null);
Insert into  system_service_args  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('proc_att_proc_lwp',5,'OBJ_CONTEXT','l',null,'S',null,to_timestamp('20-AUG-13','DD-MON-RR HH.MI.SSXFF AM'),'venkat    ','BASE',null);
Insert into  system_service_args  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('proc_att_proc_lwp',6,'XTRA_PARAMS','l',null,'S',null,to_timestamp('20-AUG-13','DD-MON-RR HH.MI.SSXFF AM'),'venkat    ','BASE',null);
Insert into  system_service_args  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prv_att_proc_lwp',1,'COMPONENT_TYPE','I',null,'S',null,to_timestamp('20-AUG-13','DD-MON-RR HH.MI.SSXFF AM'),'venkat    ','BASE','WSR');
Insert into  system_service_args  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prv_att_proc_lwp',2,'COMPONENT_NAME','I',null,'S',null,to_timestamp('20-AUG-13','DD-MON-RR HH.MI.SSXFF AM'),'venkat    ','BASE','nvo_bo_att_proc_lwp');
Insert into  system_service_args  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prv_att_proc_lwp',3,'XML_DATA','l',null,'S',null,to_timestamp('20-AUG-13','DD-MON-RR HH.MI.SSXFF AM'),'venkat    ','BASE',null);
Insert into  system_service_args  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prv_att_proc_lwp',4,'XML_DATA_1','l',null,'S',null,to_timestamp('20-AUG-13','DD-MON-RR HH.MI.SSXFF AM'),'venkat    ','BASE',null);
Insert into  system_service_args  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prv_att_proc_lwp',5,'XML_DATA_ALL','l',null,'S',null,to_timestamp('20-AUG-13','DD-MON-RR HH.MI.SSXFF AM'),'venkat    ','BASE',null);
Insert into  system_service_args  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prv_att_proc_lwp',6,'OBJ_CONTEXT','l',null,'S',null,to_timestamp('20-AUG-13','DD-MON-RR HH.MI.SSXFF AM'),'venkat    ','BASE',null);
Insert into  system_service_args  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prv_att_proc_lwp',7,'EDIT_FLAG','l',null,'S',null,to_timestamp('20-AUG-13','DD-MON-RR HH.MI.SSXFF AM'),'venkat    ','BASE',null);
Insert into  system_service_args  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prv_att_proc_lwp',8,'XTRA_PARAMS','l',null,'S',null,to_timestamp('20-AUG-13','DD-MON-RR HH.MI.SSXFF AM'),'venkat    ','BASE',null);
commit;


Insert into  system_service_args  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('post_att_proc_lwp',1,'COMPONENT_TYPE','I',null,'C.String',null,to_timestamp('01-JUN-12','DD-MON-RR HH.MI.SSXFF AM'),'Jiten     ','Base218','EJB');
Insert into  system_service_args  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('post_att_proc_lwp',2,'COMPONENT_NAME','I',null,'C.String',null,to_timestamp('01-JUN-12','DD-MON-RR HH.MI.SSXFF AM'),'Jiten     ','Base218','GenValidate');
Insert into  system_service_args  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('post_att_proc_lwp',3,'XML_DATA','I',null,'S',null,to_timestamp('01-JUN-12','DD-MON-RR HH.MI.SSXFF AM'),'Jiten     ','Base218',null);
Insert into  system_service_args  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('post_att_proc_lwp',4,'XML_DATA_ALL','I',null,'S',null,to_timestamp('01-JUN-12','DD-MON-RR HH.MI.SSXFF AM'),'Jiten     ','Base218',null);
Insert into  system_service_args  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('post_att_proc_lwp',5,'XML_DATA_ALL','I',null,'S',null,to_timestamp('01-JUN-12','DD-MON-RR HH.MI.SSXFF AM'),'Jiten     ','Base218',null);
Insert into  system_service_args  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('post_att_proc_lwp',6,'OBJ_CONTEXT','I',null,'S',null,to_timestamp('01-JUN-12','DD-MON-RR HH.MI.SSXFF AM'),'Jiten     ','Base218',null);
Insert into  system_service_args  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('post_att_proc_lwp',7,'WIN_NAME','I',null,'S',null,to_timestamp('01-JUN-12','DD-MON-RR HH.MI.SSXFF AM'),'Jiten     ','Base218',null);
Insert into  system_service_args  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('post_att_proc_lwp',8,'XTRA_PARAMS','I',null,'S',null,to_timestamp('01-JUN-12','DD-MON-RR HH.MI.SSXFF AM'),'Jiten     ','Base218',null);

commit;

-----------05-04-14--------------



INSERT INTO obj_itemchange (
	obj_name ,
	form_no ,
	field_name ,
	mandatory )
VALUES (
	'incometax_load',
	'1',
	'itm_default',
	NULL);
commit;
INSERT INTO obj_itemchange (
	obj_name ,
	form_no ,
	field_name ,
	mandatory )
VALUES (
	'incometax_load',
	'1',
	'emp_code',
	NULL);
commit;
INSERT INTO obj_itemchange (
	obj_name ,
	form_no ,
	field_name ,
	mandatory )
VALUES (
	'incometax_load',
	'1',
	'dept_code',
	NULL);
commit;

--- shift process

update system_eventS set comp_TYPE = 'EJB', COMP_NAME = 'ShiftProcess' , EVENT_CODE = 'process' WHERE OBJ_NAME LIKE '%shiftpattern_proc%' AND SERVICE_CODE = 'pcs_shiftpatten_process';
COMMIT;


INSERT INTO system_events VALUES (
	'shiftpattern_proc',
	'PROCESS',
	'1',
	'pcs_shiftpatten_process',
	NULL,
	'0',
	TO_DATE('23-03-2006 17:09:05','DD-MM-YYYY HH24:MI:SS'),
	'Vanita    ',
	'Base215',
	'2',
	NULL,
	'EJB',
	'ShiftProcess');
  commit;
  
INSERT INTO system_service_args VALUES (
	'pcs_shiftpatten_process',
	1,
	'COMPONENT_TYPE',
	'I',
	NULL,
	'S',
	NULL,
	TO_DATE('23-03-2006 17:09:08','DD-MM-YYYY HH24:MI:SS'),
	'Vanita    ',
	'Base215',
	'EJB');
	
	INSERT INTO system_service_args VALUES (
	'pcs_shiftpatten_process',
	1,
	'COMPONENT_TYPE',
	'I',
	NULL,
	'S',
	NULL,
	TO_DATE('23-03-2006 17:09:08','DD-MM-YYYY HH24:MI:SS'),
	'Vanita    ',
	'Base215',
	'EJB');
INSERT INTO system_service_args VALUES (
	'pcs_shiftpatten_process',
	2,
	'COMPONENT_NAME',
	'I',
	NULL,
	'S',
	NULL,
	TO_DATE('23-03-2006 17:09:08','DD-MM-YYYY HH24:MI:SS'),
	'Vanita    ',
	'Base215',
	'ShiftProcess');
INSERT INTO system_service_args VALUES (
	'pcs_shiftpatten_process',
	3,
	'TAB_XML_DATA',
	'I',
	NULL,
	'S',
	NULL,
	TO_DATE('23-03-2006 17:09:09','DD-MM-YYYY HH24:MI:SS'),
	'Vanita    ',
	'Base215',
	NULL);
INSERT INTO system_service_args VALUES (
	'pcs_shiftpatten_process',
	4,
	'TAB_XML_DATA_2',
	'I',
	NULL,
	'S',
	NULL,
	TO_DATE('23-03-2006 17:09:09','DD-MM-YYYY HH24:MI:SS'),
	'Vanita    ',
	'Base215',
	NULL);
INSERT INTO system_service_args VALUES (
	'pcs_shiftpatten_process',
	5,
	'window_name',
	'I',
	NULL,
	'S',
	NULL,
	TO_DATE('23-03-2006 17:09:09','DD-MM-YYYY HH24:MI:SS'),
	'Vanita    ',
	'Base215',
	'w_shiftpattern_proc');
INSERT INTO system_service_args VALUES (
	'pcs_shiftpatten_process',
	6,
	'XTRA_PARAMS',
	'I',
	NULL,
	'S',
	NULL,
	TO_DATE('23-03-2006 17:09:09','DD-MM-YYYY HH24:MI:SS'),
	'Vanita    ',
	'Base215',
	NULL);
	commit;
	
	
	
Insert into  obj_forms  (WIN_NAME,TITLE,OBJ_BROW_NAME,OBJ_EDIT_NAME,CROSS_UPDATE_EXPR,EXPR_FLD_INFO,TARGET_FLD_INFO,EXPR_COMMENT,FORM_NO,SCR_FLAG,AUTO_ACCEPT_SCAN,SCAN_FLAG,SCAN_METADATA,PROPERTY_INFO,SCAN_DELIMITER,COLUMN_ON_SAVE,AFTER_SAVE,EXT_SETUP,EXT_METADATA,EXT_COM,AUTO_ACCEPT_WEIGHDATA,FORM_TYPE,DISP_METADATA,PARENT_KEY_COL,QTY_COL,RATE_COL,ASSISTED_MODE,STORAGE_KEY_METADATA,SELECTION_MODE,DEFAULT_VIEW,AUTO_ADDON_ENTRY) values ('w_claim_multi_wo_loanadj','perk cliam',null,null,null,null,null,null,'1',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);
Insert into  obj_forms  (WIN_NAME,TITLE,OBJ_BROW_NAME,OBJ_EDIT_NAME,CROSS_UPDATE_EXPR,EXPR_FLD_INFO,TARGET_FLD_INFO,EXPR_COMMENT,FORM_NO,SCR_FLAG,AUTO_ACCEPT_SCAN,SCAN_FLAG,SCAN_METADATA,PROPERTY_INFO,SCAN_DELIMITER,COLUMN_ON_SAVE,AFTER_SAVE,EXT_SETUP,EXT_METADATA,EXT_COM,AUTO_ACCEPT_WEIGHDATA,FORM_TYPE,DISP_METADATA,PARENT_KEY_COL,QTY_COL,RATE_COL,ASSISTED_MODE,STORAGE_KEY_METADATA,SELECTION_MODE,DEFAULT_VIEW,AUTO_ADDON_ENTRY) values ('w_claim_multi_wo_loanadj','perk cliam',null,null,null,null,null,null,'2',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);


Insert into  obj_actions  (OBJ_NAME,LINE_NO,IMAGE,DESCRIPTION,SERVICE_CODE,INTERACTIVE,RIGHTS_CHAR,TITLE,FORM_NO,SERVICE_HANDLER,PLACEMENT,ACTION_TYPE,TRAN_TYPE,CHG_DATE,CHG_TERM,CHG_USER) values ('empleave_ench_arr',5,'approve.gif','approve','pre_confirm','a','F','approve','1','2',null,'U',null,null,null,null);
Insert into  obj_actions  (OBJ_NAME,LINE_NO,IMAGE,DESCRIPTION,SERVICE_CODE,INTERACTIVE,RIGHTS_CHAR,TITLE,FORM_NO,SERVICE_HANDLER,PLACEMENT,ACTION_TYPE,TRAN_TYPE,CHG_DATE,CHG_TERM,CHG_USER) values ('empleave_ench_arr',6,'cancel.gif','cancel','pre_cancel','a','F','cancel','1','2',null,'U',null,null,null,null);
commit;

INSERT INTO system_events VALUES (
	'empleave',
	'pre_cancel',
	'1',
	'prcm_default_1',
	NULL,
	'0',
	TO_DATE('23-03-2006 17:09:05','DD-MM-YYYY HH24:MI:SS'),
	'Vanita    ',
	'Base215',
	'2',
	NULL,
	'EJB',
	'nvo_business_object_leave_canc');
  commit;
  
  
  -----------shift process----------------------
  
  
Insert into SYSTEM_EVENTS (OBJ_NAME,EVENT_CODE,EVENT_CONTEXT,SERVICE_CODE,METHOD_RULE,OVERWRITE_CORE,CHG_DATE,CHG_USER,CHG_TERM,RESULT_HANDLE,COMP_TYPE,COMP_NAME,COMM_FORMAT) values ('shiftpattern_proc','process','1','proc_shiftpattern_proc',null,'0',to_timestamp('20-AUG-13','DD-MON-RR HH.MI.SSXFF AM'),'venkat    ','BASE','2','EJB','ShiftProcess',null);

Insert into SYSTEM_EVENTS (OBJ_NAME,EVENT_CODE,EVENT_CONTEXT,SERVICE_CODE,METHOD_RULE,OVERWRITE_CORE,CHG_DATE,CHG_USER,CHG_TERM,RESULT_HANDLE,COMP_TYPE,COMP_NAME,COMM_FORMAT) values ('shiftpattern_proc','process','1','proc_shiftpattern_proc',null,'0',to_timestamp('20-AUG-13','DD-MON-RR HH.MI.SSXFF AM'),'venkat    ','BASE','2','EJB','ShiftProcess',null);


Insert into system_event_services (SERVICE_CODE,SERVICE_DESCR,SERVICE_URI,SERVICE_PROVIDER,METHOD_NAME,RETURN_VALUE,RETURN_TYPE,RETURN_DESCR,RETURN_XFRM,CHG_DATE,CHG_USER,CHG_TERM) values ('proc_shiftpattern_proc','process','http://localhost/axis/services/ProcessService','BASE','process','String','S',null,null,to_timestamp('20-AUG-13','DD-MON-RR HH.MI.SSXFF AM'),'venkat    ','BASE');
commit;


Insert into  system_service_ARGS  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('proc_shiftpattern_proc',1,'COMPONENT_TYPE','I',null,'C.String',null,to_timestamp('20-AUG-13','DD-MON-RR HH.MI.SSXFF AM'),'venkat    ','BASE','EJB');
Insert into  system_service_ARGS  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('proc_shiftpattern_proc',2,'COMPONENT_NAME','I',null,'C.String',null,to_timestamp('20-AUG-13','DD-MON-RR HH.MI.SSXFF AM'),'venkat    ','BASE','ShiftProcess');
Insert into  system_service_ARGS  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('proc_shiftpattern_proc',3,'XML_DATA_1','l',null,'S',null,to_timestamp('20-AUG-13','DD-MON-RR HH.MI.SSXFF AM'),'venkat    ','BASE',null);
Insert into  system_service_ARGS  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('proc_shiftpattern_proc',4,'XML_DATA__ALL','l',null,'S',null,to_timestamp('20-AUG-13','DD-MON-RR HH.MI.SSXFF AM'),'venkat    ','BASE',null);
Insert into  system_service_ARGS  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('proc_shiftpattern_proc',5,'OBJ_CONTEXT','l',null,'S',null,to_timestamp('20-AUG-13','DD-MON-RR HH.MI.SSXFF AM'),'venkat    ','BASE',null);
Insert into  system_service_ARGS  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('proc_shiftpattern_proc',6,'XTRA_PARAMS','l',null,'S',null,to_timestamp('20-AUG-13','DD-MON-RR HH.MI.SSXFF AM'),'venkat    ','BASE',null);

commit;

update SYSTEM_EVENTS set comp_name = 'ShiftPatternProcIC', comp_type = 'EJB'  where service_code='poic_default_1' AND OBJ_NAME = 'shiftpattern_proc';
COMMIT;


update SYSTEM_EVENTS set service_code = 'poic_shiftpattern_proc'  WHERE OBJ_NAME = 'shiftpattern_proc' and event_code = 'post_item_change';
commit;
Insert into  system_event_services  (SERVICE_CODE,SERVICE_DESCR,SERVICE_URI,SERVICE_PROVIDER,METHOD_NAME,RETURN_VALUE,RETURN_TYPE,RETURN_DESCR,RETURN_XFRM,CHG_DATE,CHG_USER,CHG_TERM) values ('poic_shiftpattern_proc','post item change default','http://172.16.145.69/BaseE12DotNetService6-3-0-135/E12BusinessLogic6-3-0-135.asmx','Base Information','itemChanged','String','S',null,null,to_timestamp('18-DEC-06','DD-MON-RR HH.MI.SSXFF AM'),'Deepali   ','User1');
Insert into  system_service_ARGS  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_shiftpattern_proc',1,'COMPONENT_TYPE','I',null,'S',null,to_timestamp('20-NOV-08','DD-MON-RR HH.MI.SSXFF AM'),'BASE      ','BASE           ','EJB');
Insert into  system_service_ARGS  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_shiftpattern_proc',2,'COMPONENT_NAME','I',null,'S',null,to_timestamp('20-NOV-08','DD-MON-RR HH.MI.SSXFF AM'),'BASE      ','BASE           ','ShiftPatternProcIC');
Insert into  system_service_ARGS  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_shiftpattern_proc',3,'XML_DATA','I',null,'S',null,to_timestamp('20-NOV-08','DD-MON-RR HH.MI.SSXFF AM'),'Base      ','Base91         ',null);
Insert into  system_service_ARGS  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_shiftpattern_proc',4,'XML_DATA_1','I',null,'S',null,to_timestamp('20-NOV-08','DD-MON-RR HH.MI.SSXFF AM'),'Base      ','Base91         ',null);
Insert into  system_service_ARGS  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_shiftpattern_proc',5,'XML_DATA_ALL','I',null,'S',null,to_timestamp('20-NOV-08','DD-MON-RR HH.MI.SSXFF AM'),'Base      ','Base91         ',null);
Insert into  system_service_ARGS  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_shiftpattern_proc',6,'OBJ_CONTEXT','I',null,'S',null,to_timestamp('20-NOV-08','DD-MON-RR HH.MI.SSXFF AM'),'Base      ','Base91         ',null);
Insert into  system_service_ARGS  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_shiftpattern_proc',7,'FOCUSED_COLUMN','I',null,'S',null,to_timestamp('20-NOV-08','DD-MON-RR HH.MI.SSXFF AM'),'Base      ','Base91         ',null);
Insert into  system_service_ARGS  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_shiftpattern_proc',8,'EDIT_FLAG','I',null,'S',null,to_timestamp('20-NOV-08','DD-MON-RR HH.MI.SSXFF AM'),'Base      ','Base91         ',null);
Insert into  system_service_ARGS  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_shiftpattern_proc',9,'XTRA_PARAMS','I',null,'S',null,to_timestamp('20-AUG-13','DD-MON-RR HH.MI.SSXFF AM'),'BASE      ','BASE',null);
commit;

update system_service_ARGS set arg_name = 'XML_DATA'  where service_code='poic_default_1' AND line_no = 3;
update system_service_ARGS set arg_name = 'XML_DATA_1'  where service_code='poic_default_1' AND line_no = 4;
update system_service_ARGS set arg_name = 'XML_DATA_ALL'  where service_code='poic_default_1' AND line_no = 5;
update system_service_ARGS set arg_name = 'OBJ_CONTEXT'  where service_code='poic_default_1' AND line_no = 6;
update system_service_ARGS set arg_name = 'FOCUSED_COLUMN'  where service_code='poic_default_1' AND line_no = 7;
update system_service_ARGS set arg_name = 'EDIT_FLAG'  where service_code='poic_default_1' AND line_no = 8;
update system_service_ARGS set arg_name = 'XTRA_PARAMS'  where service_code='poic_default_1' AND line_no = 9;
commit;

INSERT INTO obj_itemchange (
	obj_name ,
	form_no ,
	field_name ,
	mandatory )
VALUES (
	'shiftpattern_proc',
	'1',
	'itm_default',
	NULL);
commit;
INSERT INTO obj_itemchange (
	obj_name ,
	form_no ,
	field_name ,
	mandatory )
VALUES (
	'shiftpattern_proc',
	'1',
	'shift_to',
	NULL);
commit;

Insert into  obj_forms  (WIN_NAME,TITLE,OBJ_BROW_NAME,OBJ_EDIT_NAME,CROSS_UPDATE_EXPR,EXPR_FLD_INFO,TARGET_FLD_INFO,EXPR_COMMENT,FORM_NO,SCR_FLAG,AUTO_ACCEPT_SCAN,SCAN_FLAG,SCAN_METADATA,PROPERTY_INFO,SCAN_DELIMITER,COLUMN_ON_SAVE,AFTER_SAVE,EXT_SETUP,EXT_METADATA,EXT_COM,AUTO_ACCEPT_WEIGHDATA,FORM_TYPE,DISP_METADATA,PARENT_KEY_COL,QTY_COL,RATE_COL,ASSISTED_MODE,STORAGE_KEY_METADATA,SELECTION_MODE,DEFAULT_VIEW,AUTO_ADDON_ENTRY) values ('w_shiftpattern_proc','Shift process',null,null,null,null,null,null,'1',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);
commit;

--- shift_rotate---

Insert into SYSTEM_EVENTS (OBJ_NAME,EVENT_CODE,EVENT_CONTEXT,SERVICE_CODE,METHOD_RULE,OVERWRITE_CORE,CHG_DATE,CHG_USER,CHG_TERM,RESULT_HANDLE,COMP_TYPE,COMP_NAME,COMM_FORMAT) values ('shift_rotate','post_item_change','1','poic_shift_rotate',null,'0',to_timestamp('18-OCT-08','DD-MON-RR HH.MI.SSXFF AM'),'VISHAL    ','VISHAL','2','WSR','nvo_bo_shift_rotate',null);
Insert into SYSTEM_EVENTS (OBJ_NAME,EVENT_CODE,EVENT_CONTEXT,SERVICE_CODE,METHOD_RULE,OVERWRITE_CORE,CHG_DATE,CHG_USER,CHG_TERM,RESULT_HANDLE,COMP_TYPE,COMP_NAME,COMM_FORMAT) values ('shift_rotate','pre_validate','1','poic_shift_rotate',null,'0',to_timestamp('18-OCT-08','DD-MON-RR HH.MI.SSXFF AM'),'VISHAL    ','VISHAL','2','WSR','nvo_bo_shift_rotate',null);
update SYSTEM_EVENTS set service_code = 'poic_shift_rotate'  WHERE OBJ_NAME = 'shift_rotate' and event_code = 'post_item_change';
update SYSTEM_EVENTS set service_code = 'prv_shift_rotate'  WHERE OBJ_NAME = 'shift_rotate' and event_code = 'pre_validate';
commit;
Insert into  system_event_services  (SERVICE_CODE,SERVICE_DESCR,SERVICE_URI,SERVICE_PROVIDER,METHOD_NAME,RETURN_VALUE,RETURN_TYPE,RETURN_DESCR,RETURN_XFRM,CHG_DATE,CHG_USER,CHG_TERM) values ('poic_shift_rotate','post item change default','http://172.16.145.69/BaseE12DotNetService6-3-0-135/E12BusinessLogic6-3-0-135.asmx','Base Information','gbf_itemchanged','String','S',null,null,to_timestamp('18-DEC-06','DD-MON-RR HH.MI.SSXFF AM'),'Deepali   ','User1');

Insert into  system_event_services  (SERVICE_CODE,SERVICE_DESCR,SERVICE_URI,SERVICE_PROVIDER,METHOD_NAME,RETURN_VALUE,RETURN_TYPE,RETURN_DESCR,RETURN_XFRM,CHG_DATE,CHG_USER,CHG_TERM) values ('prv_shift_rotate','post item change default','http://172.16.145.69/BaseE12DotNetService6-3-0-135/E12BusinessLogic6-3-0-135.asmx','Base Information','gbf_valdata','String','S',null,null,to_timestamp('18-DEC-06','DD-MON-RR HH.MI.SSXFF AM'),'Deepali   ','User1');
commit;




Insert into  system_service_ARGS  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_shift_rotate',1,'COMPONENT_TYPE','I',null,'S',null,to_timestamp('20-NOV-08','DD-MON-RR HH.MI.SSXFF AM'),'BASE      ','BASE           ','WSR');
Insert into  system_service_ARGS  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_shift_rotate',2,'COMPONENT_NAME','I',null,'S',null,to_timestamp('20-NOV-08','DD-MON-RR HH.MI.SSXFF AM'),'BASE      ','BASE           ','nvo_bo_shift_rotate');
Insert into  system_service_ARGS  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_shift_rotate',3,'XML_DATA','I',null,'S',null,to_timestamp('20-NOV-08','DD-MON-RR HH.MI.SSXFF AM'),'Base      ','Base91         ',null);
Insert into  system_service_ARGS  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_shift_rotate',4,'XML_DATA_1','I',null,'S',null,to_timestamp('20-NOV-08','DD-MON-RR HH.MI.SSXFF AM'),'Base      ','Base91         ',null);
Insert into  system_service_ARGS  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_shift_rotate',5,'XML_DATA_ALL','I',null,'S',null,to_timestamp('20-NOV-08','DD-MON-RR HH.MI.SSXFF AM'),'Base      ','Base91         ',null);
Insert into  system_service_ARGS  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_shift_rotate',6,'OBJ_CONTEXT','I',null,'S',null,to_timestamp('20-NOV-08','DD-MON-RR HH.MI.SSXFF AM'),'Base      ','Base91         ',null);
Insert into  system_service_ARGS  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_shift_rotate',7,'FOCUSED_COLUMN','I',null,'S',null,to_timestamp('20-NOV-08','DD-MON-RR HH.MI.SSXFF AM'),'Base      ','Base91         ',null);
Insert into  system_service_ARGS  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_shift_rotate',8,'EDIT_FLAG','I',null,'S',null,to_timestamp('20-NOV-08','DD-MON-RR HH.MI.SSXFF AM'),'Base      ','Base91         ',null);
Insert into  system_service_ARGS  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_shift_rotate',9,'XTRA_PARAMS','I',null,'S',null,to_timestamp('20-AUG-13','DD-MON-RR HH.MI.SSXFF AM'),'BASE      ','BASE',null);

Insert into  system_service_ARGS  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prv_shift_rotate',1,'COMPONENT_TYPE','I',null,'S',null,to_timestamp('20-NOV-08','DD-MON-RR HH.MI.SSXFF AM'),'BASE      ','BASE           ','WSR');
Insert into  system_service_ARGS  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prv_shift_rotate',2,'COMPONENT_NAME','I',null,'S',null,to_timestamp('20-NOV-08','DD-MON-RR HH.MI.SSXFF AM'),'BASE      ','BASE           ','nvo_bo_shift_rotate');
Insert into  system_service_ARGS  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prv_shift_rotate',3,'XML_DATA','I',null,'S',null,to_timestamp('20-NOV-08','DD-MON-RR HH.MI.SSXFF AM'),'Base      ','Base91         ',null);
Insert into  system_service_ARGS  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prv_shift_rotate',4,'XML_DATA_1','I',null,'S',null,to_timestamp('20-NOV-08','DD-MON-RR HH.MI.SSXFF AM'),'Base      ','Base91         ',null);
Insert into  system_service_ARGS  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prv_shift_rotate',5,'XML_DATA_ALL','I',null,'S',null,to_timestamp('20-NOV-08','DD-MON-RR HH.MI.SSXFF AM'),'Base      ','Base91         ',null);
Insert into  system_service_ARGS  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prv_shift_rotate',6,'OBJ_CONTEXT','I',null,'S',null,to_timestamp('20-NOV-08','DD-MON-RR HH.MI.SSXFF AM'),'Base      ','Base91         ',null);

Insert into  system_service_ARGS  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prv_shift_rotate',7,'EDIT_FLAG','I',null,'S',null,to_timestamp('20-NOV-08','DD-MON-RR HH.MI.SSXFF AM'),'Base      ','Base91         ',null);
Insert into  system_service_ARGS  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prv_shift_rotate',8,'XTRA_PARAMS','I',null,'S',null,to_timestamp('20-AUG-13','DD-MON-RR HH.MI.SSXFF AM'),'BASE      ','BASE',null);
commit;

----LOANS WITH SCHDULE---------


update SYSTEM_EVENTS set service_code = 'poic_loanschedule', comp_type = 'WSR'  where event_code ='post_item_change' AND OBJ_NAME = 'loanschedule';
COMMIT;


update SYSTEM_EVENTS set service_code = 'poic_shiftpattern_proc'  WHERE OBJ_NAME = 'shiftpattern_proc' and event_code = 'post_item_change';
commit;
Insert into  system_event_services  (SERVICE_CODE,SERVICE_DESCR,SERVICE_URI,SERVICE_PROVIDER,METHOD_NAME,RETURN_VALUE,RETURN_TYPE,RETURN_DESCR,RETURN_XFRM,CHG_DATE,CHG_USER,CHG_TERM) values ('poic_loanschedule','post item change default','http://172.16.145.69/BaseE12DotNetService6-3-0-135/E12BusinessLogic6-3-0-135.asmx','Base Information','gbf_itemchanged','String','S',null,null,to_timestamp('18-DEC-06','DD-MON-RR HH.MI.SSXFF AM'),'Deepali   ','User1');
Insert into  system_service_ARGS  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_loanschedule',1,'COMPONENT_TYPE','I',null,'S',null,to_timestamp('20-NOV-08','DD-MON-RR HH.MI.SSXFF AM'),'BASE      ','BASE           ','WSR');
Insert into  system_service_ARGS  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_loanschedule',2,'COMPONENT_NAME','I',null,'S',null,to_timestamp('20-NOV-08','DD-MON-RR HH.MI.SSXFF AM'),'BASE      ','BASE           ','nvo_bo_loanschedule');
Insert into  system_service_ARGS  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_loanschedule',3,'TAB_XML_DATA','I',null,'S',null,to_timestamp('20-NOV-08','DD-MON-RR HH.MI.SSXFF AM'),'Base      ','Base91         ',null);
Insert into  system_service_ARGS  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_loanschedule',4,'TAB_XML_DATA_1','I',null,'S',null,to_timestamp('20-NOV-08','DD-MON-RR HH.MI.SSXFF AM'),'Base      ','Base91         ',null);
Insert into  system_service_ARGS  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_loanschedule',5,'TAB_XML_DATA_2','I',null,'S',null,to_timestamp('20-NOV-08','DD-MON-RR HH.MI.SSXFF AM'),'Base      ','Base91         ',null);
Insert into  system_service_ARGS  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_loanschedule',6,'OBJ_CONTEXT','I',null,'S',null,to_timestamp('20-NOV-08','DD-MON-RR HH.MI.SSXFF AM'),'Base      ','Base91         ',null);
Insert into  system_service_ARGS  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_loanschedule',7,'FOCUSED_COLUMN','I',null,'S',null,to_timestamp('20-NOV-08','DD-MON-RR HH.MI.SSXFF AM'),'Base      ','Base91         ',null);
Insert into  system_service_ARGS  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_loanschedule',8,'EDIT_FLAG','I',null,'S',null,to_timestamp('20-NOV-08','DD-MON-RR HH.MI.SSXFF AM'),'Base      ','Base91         ',null);
Insert into  system_service_ARGS  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_loanschedule',9,'XTRA_PARAMS','I',null,'S',null,to_timestamp('20-AUG-13','DD-MON-RR HH.MI.SSXFF AM'),'BASE      ','BASE',null);
commit;


update SYSTEM_EVENTS set service_code = 'poic_period_stat', comp_type = 'WSR'  where event_code ='post_item_change' AND OBJ_NAME = 'period_stat';
COMMIT;



Insert into  system_event_services  (SERVICE_CODE,SERVICE_DESCR,SERVICE_URI,SERVICE_PROVIDER,METHOD_NAME,RETURN_VALUE,RETURN_TYPE,RETURN_DESCR,RETURN_XFRM,CHG_DATE,CHG_USER,CHG_TERM) values ('poic_period_stat','post item change default','http://172.16.145.69/BaseE12DotNetService6-3-0-135/E12BusinessLogic6-3-0-135.asmx','Base Information','gbf_itemchanged','String','S',null,null,to_timestamp('18-DEC-06','DD-MON-RR HH.MI.SSXFF AM'),'Deepali   ','User1');
Insert into  system_service_ARGS  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_period_stat',1,'COMPONENT_TYPE','I',null,'S',null,to_timestamp('20-NOV-08','DD-MON-RR HH.MI.SSXFF AM'),'BASE      ','BASE           ','WSR');
Insert into  system_service_ARGS  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_period_stat',2,'COMPONENT_NAME','I',null,'S',null,to_timestamp('20-NOV-08','DD-MON-RR HH.MI.SSXFF AM'),'BASE      ','BASE           ','nvo_bo_period_stat');
Insert into  system_service_ARGS  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_period_stat',3,'TAB_XML_DATA','I',null,'S',null,to_timestamp('20-NOV-08','DD-MON-RR HH.MI.SSXFF AM'),'Base      ','Base91         ',null);
Insert into  system_service_ARGS  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_period_stat',4,'TAB_XML_DATA_1','I',null,'S',null,to_timestamp('20-NOV-08','DD-MON-RR HH.MI.SSXFF AM'),'Base      ','Base91         ',null);
Insert into  system_service_ARGS  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_period_stat',5,'TAB_XML_DATA_2','I',null,'S',null,to_timestamp('20-NOV-08','DD-MON-RR HH.MI.SSXFF AM'),'Base      ','Base91         ',null);
Insert into  system_service_ARGS  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_period_stat',6,'OBJ_CONTEXT','I',null,'S',null,to_timestamp('20-NOV-08','DD-MON-RR HH.MI.SSXFF AM'),'Base      ','Base91         ',null);
Insert into  system_service_ARGS  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_period_stat',7,'FOCUSED_COLUMN','I',null,'S',null,to_timestamp('20-NOV-08','DD-MON-RR HH.MI.SSXFF AM'),'Base      ','Base91         ',null);
Insert into  system_service_ARGS  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_period_stat',8,'EDIT_FLAG','I',null,'S',null,to_timestamp('20-NOV-08','DD-MON-RR HH.MI.SSXFF AM'),'Base      ','Base91         ',null);
Insert into  system_service_ARGS  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_period_stat',9,'XTRA_PARAMS','I',null,'S',null,to_timestamp('20-AUG-13','DD-MON-RR HH.MI.SSXFF AM'),'BASE      ','BASE',null);
commit;

--- ATTENENCE PROCESS ON HOURS-------------

update system_events set comp_name = 'AttendancePrc' , comp_type = 'EJB', service_code = 'poic_att_proc_hours' where obj_name = 'att_proc_hours' and event_code = 'post_item_change';
COMMIT;

Insert into  system_event_services  (SERVICE_CODE,SERVICE_DESCR,SERVICE_URI,SERVICE_PROVIDER,METHOD_NAME,RETURN_VALUE,RETURN_TYPE,RETURN_DESCR,RETURN_XFRM,CHG_DATE,CHG_USER,CHG_TERM) values ('poic_att_proc_hours','post item change default','http://172.16.145.69/BaseE12DotNetService6-3-0-135/E12BusinessLogic6-3-0-135.asmx','Base Information','itemChanged','String','S',null,null,to_timestamp('18-DEC-06','DD-MON-RR HH.MI.SSXFF AM'),'Deepali   ','User1');
Insert into  system_service_ARGS  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_att_proc_hours',1,'COMPONENT_TYPE','I',null,'S',null,to_timestamp('20-NOV-08','DD-MON-RR HH.MI.SSXFF AM'),'BASE      ','BASE           ','EJB');
Insert into  system_service_ARGS  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_att_proc_hours',2,'COMPONENT_NAME','I',null,'S',null,to_timestamp('20-NOV-08','DD-MON-RR HH.MI.SSXFF AM'),'BASE      ','BASE           ','AttendancePrc');
Insert into  system_service_ARGS  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_att_proc_hours',3,'XML_DATA','I',null,'S',null,to_timestamp('20-NOV-08','DD-MON-RR HH.MI.SSXFF AM'),'Base      ','Base91         ',null);
Insert into  system_service_ARGS  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_att_proc_hours',4,'XML_DATA_1','I',null,'S',null,to_timestamp('20-NOV-08','DD-MON-RR HH.MI.SSXFF AM'),'Base      ','Base91         ',null);
Insert into  system_service_ARGS  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_att_proc_hours',5,'XML_DATA_ALL','I',null,'S',null,to_timestamp('20-NOV-08','DD-MON-RR HH.MI.SSXFF AM'),'Base      ','Base91         ',null);
Insert into  system_service_ARGS  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_att_proc_hours',6,'OBJ_CONTEXT','I',null,'S',null,to_timestamp('20-NOV-08','DD-MON-RR HH.MI.SSXFF AM'),'Base      ','Base91         ',null);
Insert into  system_service_ARGS  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_att_proc_hours',7,'FOCUSED_COLUMN','I',null,'S',null,to_timestamp('20-NOV-08','DD-MON-RR HH.MI.SSXFF AM'),'Base      ','Base91         ',null);
Insert into  system_service_ARGS  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_att_proc_hours',8,'EDIT_FLAG','I',null,'S',null,to_timestamp('20-NOV-08','DD-MON-RR HH.MI.SSXFF AM'),'Base      ','Base91         ',null);
Insert into  system_service_ARGS  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_att_proc_hours',9,'XTRA_PARAMS','I',null,'S',null,to_timestamp('20-AUG-13','DD-MON-RR HH.MI.SSXFF AM'),'BASE      ','BASE',null);
commit;


Insert into  system_event_services  (SERVICE_CODE,SERVICE_DESCR,SERVICE_URI,SERVICE_PROVIDER,METHOD_NAME,RETURN_VALUE,RETURN_TYPE,RETURN_DESCR,RETURN_XFRM,CHG_DATE,CHG_USER,CHG_TERM) values ('prv_att_proc_hours','post item change default','http://localhost:9090/axis/services/ValidatorService','Base Information','wfValData','String','S',null,null,to_timestamp('18-DEC-06','DD-MON-RR HH.MI.SSXFF AM'),'Deepali   ','User1');
Insert into  system_service_ARGS  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prv_att_proc_hours',1,'COMPONENT_TYPE','I',null,'S',null,to_timestamp('20-NOV-08','DD-MON-RR HH.MI.SSXFF AM'),'BASE      ','BASE           ','EJB');
Insert into  system_service_ARGS  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prv_att_proc_hours',2,'COMPONENT_NAME','I',null,'S',null,to_timestamp('20-NOV-08','DD-MON-RR HH.MI.SSXFF AM'),'BASE      ','BASE           ','AttendancePrc');
Insert into  system_service_ARGS  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prv_att_proc_hours',3,'XML_DATA','I',null,'S',null,to_timestamp('20-NOV-08','DD-MON-RR HH.MI.SSXFF AM'),'Base      ','Base91         ',null);
Insert into  system_service_ARGS  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prv_att_proc_hours',4,'XML_DATA_1','I',null,'S',null,to_timestamp('20-NOV-08','DD-MON-RR HH.MI.SSXFF AM'),'Base      ','Base91         ',null);
Insert into  system_service_ARGS  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prv_att_proc_hours',5,'XML_DATA_ALL','I',null,'S',null,to_timestamp('20-NOV-08','DD-MON-RR HH.MI.SSXFF AM'),'Base      ','Base91         ',null);
Insert into  system_service_ARGS  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prv_att_proc_hours',6,'OBJ_CONTEXT','I',null,'S',null,to_timestamp('20-NOV-08','DD-MON-RR HH.MI.SSXFF AM'),'Base      ','Base91         ',null);

Insert into  system_service_ARGS  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prv_att_proc_hours',7,'EDIT_FLAG','I',null,'S',null,to_timestamp('20-NOV-08','DD-MON-RR HH.MI.SSXFF AM'),'Base      ','Base91         ',null);
Insert into  system_service_ARGS  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prv_att_proc_hours',8,'XTRA_PARAMS','I',null,'S',null,to_timestamp('20-AUG-13','DD-MON-RR HH.MI.SSXFF AM'),'BASE      ','BASE',null);
commit;

update system_events set comp_name = 'AttdProcess' , comp_type = 'EJB', service_code = 'proc_att_proc_hours' where obj_name = 'att_proc_hours' and event_code = 'process';
COMMIT;


Insert into system_event_services (SERVICE_CODE,SERVICE_DESCR,SERVICE_URI,SERVICE_PROVIDER,METHOD_NAME,RETURN_VALUE,RETURN_TYPE,RETURN_DESCR,RETURN_XFRM,CHG_DATE,CHG_USER,CHG_TERM) values ('proc_att_proc_hours','process','http://localhost/axis/services/ProcessService','BASE','process','String','S',null,null,to_timestamp('20-AUG-13','DD-MON-RR HH.MI.SSXFF AM'),'venkat    ','BASE');
commit;


Insert into  system_service_ARGS  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('proc_att_proc_hours',1,'COMPONENT_TYPE','I',null,'C.String',null,to_timestamp('20-AUG-13','DD-MON-RR HH.MI.SSXFF AM'),'venkat    ','BASE','EJB');
Insert into  system_service_ARGS  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('proc_att_proc_hours',2,'COMPONENT_NAME','I',null,'C.String',null,to_timestamp('20-AUG-13','DD-MON-RR HH.MI.SSXFF AM'),'venkat    ','BASE','AttdProcess');
Insert into  system_service_ARGS  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('proc_att_proc_hours',3,'XML_DATA_1','l',null,'S',null,to_timestamp('20-AUG-13','DD-MON-RR HH.MI.SSXFF AM'),'venkat    ','BASE',null);
Insert into  system_service_ARGS  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('proc_att_proc_hours',4,'XML_DATA__ALL','l',null,'S',null,to_timestamp('20-AUG-13','DD-MON-RR HH.MI.SSXFF AM'),'venkat    ','BASE',null);
Insert into  system_service_ARGS  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('proc_att_proc_hours',5,'OBJ_CONTEXT','l',null,'S',null,to_timestamp('20-AUG-13','DD-MON-RR HH.MI.SSXFF AM'),'venkat    ','BASE',null);
Insert into  system_service_ARGS  (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('proc_att_proc_hours',6,'XTRA_PARAMS','l',null,'S',null,to_timestamp('20-AUG-13','DD-MON-RR HH.MI.SSXFF AM'),'venkat    ','BASE',null);

commit;
