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) values ('FIN',8,1,22,0,0,'/ibase/webitm/jsp/E12WizardPage.jsp?OBJ_NAME=milestone_pay_gen&amp;FORM_NO=1','Milestone Pay Generation','Milestone Pay Generation','FIN.8.1.22.0.0','itm_logo.ico',null,null,'I');



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,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,AUDIT_TRAIL_OPT,EDIT_OPT,CACHE_OPT,PERIOD_OPTION,WRKFLW_PRIORITY,EXEC_TYPE) values ('w_milestone_pay_gen','2','2','A','seq10','N',sysdate,'BASE','Base','0',null,null,'Y','N',null,null,null,null,null,'TRAN_ID','0','0',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,'M-POV','F','2',null,null,'M',null,'T');

Insert into obj_forms  (WIN_NAME,TITLE,FORM_NO) values ('w_milestone_pay_gen','header','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,SEP_DUTY_OPT,RE_AUTH_OPT) values ('milestone_pay_gen',2,null,'Action Button for processing the data','process','a','R','Process','2','3',null,'U',null,null,null,null,null,null,null);




INSERT INTO obj_forms(WIN_NAME,TITLE,OBJ_BROW_NAME,OBJ_EDIT_NAME,FORM_NO,DEFAULT_VIEW)
VALUES ('w_milestone_pay_gen','Data',null,null,'2','A');




update obj_forms set default_view='A' where win_name = 'w_milestone_pay_gen' and title='header';

delete from obj_actions where obj_name = 'milestone_pay_gen';



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 ('milestone_pay_gen','pre_validate','1','prv_default_ejb',sysdate,'BASE','BASE','2','0','EJB','MilestonePayGenPrc');

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 ('milestone_pay_gen','pre_navigate','1','prv_requirement',null,'0',sysdate,'BASE      ','BASE ','2','EJB','MilestonePayGenPrc',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 ('milestone_pay_gen','default_data_wiz','1','default_requirement',null,'0',sysdate,'BASE      ','BASE ','2','EJB','MilestonePayGenPrc',null);


delete from system_events  where obj_name='milestone_pay_gen' and event_code in ('get_data','process');



update obj_forms set default_view = null where win_name='w_milestone_pay_gen';

update obj_forms set title = 'Wizard' where win_name='w_milestone_pay_gen' and form_no='1';

update obj_forms set title = 'Details' where win_name='w_milestone_pay_gen' and form_no='2';

update  system_events set service_code ='prv_default_ejb' where obj_name='milestone_pay_gen' and event_code='pre_navigate';

update system_events set service_code ='poic_default_ejb' where obj_name='milestone_pay_gen' and event_code='default_data_wiz';

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 ('VTPURCEMP','Empty purchase order','Empty purchase order,please enter purchase order','E','Y',NULL,NULL,NULL,SYSDATE,'BASE','BASE',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 ('VTPRJCDINV','Invalid project code','Invalid project code,please enter valid project code','E','Y',NULL,NULL,NULL,SYSDATE,'BASE','BASE',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 ('VTEMPPROCD','Enter purcorder/project code','please enter either purchase order or project code','E','Y',NULL,NULL,NULL,SYSDATE,'BASE','BASE',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 ('VTVOULN1','Invalid Line No','Invalid Line No','W','Y',NULL,NULL,NULL,SYSDATE,'BASE','BASE',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 ('VTPROCINV','Invalid process date','Invalid process date,process date should not be greater than current date','E','Y',NULL,NULL,NULL,SYSDATE,'BASE','BASE',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 ('VTINVPUORD','Invalid purchase order','Purchase Order not exist.Please enter valid Purchase Order','E','Y',null,null,null,to_timestamp('23-SEP-14','DD-MON-RR HH.MI.SSXFF AM'),'Base      ','Base           ',null,null);


update transetup set key_string='_spsite_code,PDN,_pptran_date,seq02' where tran_window='w_drcrpay_dr';


update transetup set key_string='_spsite_code,PDN,_pptran_date,seq03' where tran_window='w_drcrpay_dr';



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 ('VTINVPROPR','Invalid purchase order','Purchase order and project code not exist in master','E','Y',NULL,NULL,NULL,SYSDATE,'BASE','BASE',NULL,NULL);































