/* Added by Mahendra Jadhav on 20/MAR/14 for 'Freight Charges Table'*/




INSERT INTO itm2menu (application,level_1,level_2,level_3,level_4,level_5,win_name,descr,comments,menu_path,icon_path,obj_type,chg_user,chg_term,chg_date,open_icon,mob_deploy,close_icon)
VALUES ('FRT',1,2,0,0,0,'w_frt_chgs_table','Freight Charges Table',NULL,'FRT.1.2.0.0.0','e12_logo.gif','T','BASE','BASE',SYSDATE,NULL,NULL,NULL);

INSERT INTO transetup (tran_window,save_flag,val_flag,key_flag,key_string,repeate_add,chg_date,chg_user,chg_term,edi_option,site_acc_col,confirm_col,confirm_val,auto_confirm,ledg_post_conf,tran_id_col,workflow_opt,ref_ser,tax_forms,wrkflw_init,audit_trail_opt) 
VALUES ('w_frt_chgs_table','2','2','M',NULL,null,SYSDATE,'BASE','BASE','0',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'F-TBL',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 )
VALUES ('w_frt_chgs_table','FrtChgsTbl','d_frt_chgs_table_brow','d_frt_chgs_table_edit',NULL,NULL,NULL,NULL,'1');

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,IS_CONFIRMATION_REQ)
VALUES ('frt_chgs_table',1,'add.gif','Adding New','a','a','A','Add','1',NULL,NULL,'S',NULL,SYSDATE,'BASE','BASE',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,IS_CONFIRMATION_REQ)
VALUES ('frt_chgs_table',2,'edit.gif','Editing Existing Record','a','a','E','Edit','1',NULL,NULL,'S',NULL,SYSDATE,'BASE','BASE',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,IS_CONFIRMATION_REQ)
VALUES ('frt_chgs_table',4,'save.gif','Saving','a','a','S','Save','1',NULL,NULL,'S',NULL,SYSDATE,'BASE','BASE',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,IS_CONFIRMATION_REQ)
VALUES ('frt_chgs_table',21,'menu.bmp','View Audit Trail','audit_trail','1','X','View Audit','1','1','1','U',NULL,SYSDATE,'BASE','BASE',NULL);

INSERT INTO obj_itemchange (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY)
VALUES ('frt_chgs_table','1','charge_code',NULL);

INSERT INTO obj_itemchange (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY)
VALUES ('frt_chgs_table','1','load_type',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 ('frt_chgs_table','audit_trail','1','project_audit_trail',NULL,'0',SYSDATE,'BASE','BASE','2',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 ('frt_chgs_table','post_item_change','1','poic_default_ejb',NULL,'0',SYSDATE,'BASE','BASE','2','EJB','FreightChargeIC',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 ('frt_chgs_table','post_save','1','createedi',NULL,'0',SYSDATE,'BASE','BASE','2','WSR','nvo_business_object_win_methods',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 ('frt_chgs_table','pre_validate','1','prv_default_ejb',NULL,'0',SYSDATE,'BASE','BASE','2','EJB','FreightChargeIC',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,POPUP_XSL_NAME) values ('FRT_CHGS_TABLE','W_FRT_CHGS_TABLE','select fld_value,descr from gencodes where fld_name = ''FRT_CHGS_TABLE'' and mod_name = ''W_FRT_CHGS_TABLE''',null,'Freight Chgs. Table',0,0,to_timestamp('07-JAN-14','DD-MON-RR HH.MI.SSXFF AM'),'BASE','99BASE007      ','0',null,null,null,null,null,null,null,null,null,'0',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,POPUP_XSL_NAME) values ('LOAD_TYPE','X','select fld_value, descr from gencodes where fld_name = ''LOAD_TYPE'' and mod_name = ''X''',null,'Load Type',0,0,to_timestamp('07-JAN-14','DD-MON-RR HH.MI.SSXFF AM'),'BASE ','99BASE007 ','0',null,null,null,null,null,null,null,null,null,'0',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,POPUP_XSL_NAME) values ('CHARGE_CODE','X','select rtrim(fld_value),descr from gencodes where fld_name = ''CHARGE_CODE'' and mod_name = ''X''',null,'Charge Code',0,0,to_timestamp('07-SEP-05','DD-MON-RR HH.MI.SSXFF AM'),'BASE      ','99BASE004      ','0',null,null,0,'C',null,null,null,null,null,'0',null);


INSERT INTO MESSAGES (msg_no , msg_str , msg_descr , msg_type , msg_opt , chg_date , chg_user , chg_term )
VALUES ('VMFCTEMT', 'Invalid Freigth Charges Table','Freigth Charges Table cannot be Empty!', 'E', 'Y', SYSDATE, 'BASE', 'BASE');


INSERT INTO MESSAGES (msg_no , msg_str , msg_descr , msg_type , msg_opt , chg_date , chg_user , chg_term )
VALUES ('VMFCTEX', 'Already exist','Freigth Charges Table should not exist in master!', 'E', 'Y', SYSDATE, 'BASE', 'BASE');


INSERT INTO MESSAGES (msg_no , msg_str , msg_descr , msg_type , msg_opt , chg_date , chg_user , chg_term )
VALUES ('VMLTEMT', 'Invalid Load Type','Load Type can not be empty,Please enter Load Type!', 'E', 'Y', SYSDATE, 'BASE', 'BASE');

INSERT INTO MESSAGES (msg_no , msg_str , msg_descr , msg_type , msg_opt , chg_date , chg_user , chg_term )
VALUES ('VMCHCOEMT', 'Invalid Charge Code','Charge Code can not be empty,Please enter Charge Code!', 'E', 'Y', SYSDATE, 'BASE', 'BASE');

INSERT INTO MESSAGES (msg_no , msg_str , msg_descr , msg_type , msg_opt , chg_date , chg_user , chg_term )
VALUES ('VMCHMDEMT', 'Invalid Charges Mode','Charge Mode can not be empty,Please enter Charge Mode!', 'E', 'Y', SYSDATE, 'BASE', 'BASE');

INSERT INTO MESSAGES (msg_no , msg_str , msg_descr , msg_type , msg_opt , chg_date , chg_user , chg_term )
VALUES ('VMAMTEMT', 'Invalid Amount','Amount can not be empty,Please enter Amount!', 'E', 'Y', SYSDATE, 'BASE', 'BASE');


INSERT INTO MESSAGES (msg_no , msg_str , msg_descr , msg_type , msg_opt , chg_date , chg_user , chg_term )
VALUES ('VMADCHEMT', 'Invalid Add charges','Add Charges can not be empty,Please enter Add Charges!', 'E', 'Y', SYSDATE, 'BASE', 'BASE');


INSERT INTO MESSAGES (msg_no , msg_str , msg_descr , msg_type , msg_opt , chg_date , chg_user , chg_term )
VALUES ('VMSEQEMT', 'Invalid Sequence','Sequence can not be empty,Please enter Sequence!', 'E', 'Y', SYSDATE, 'BASE', 'BASE');

