
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,MOB_DEPLY) 
values ('FIN',8,1,22,0,0,'w_milestone_pay_gen','Milestone Pay Generation','Milestone Pay Generation','FIN.8.1.22.0.0','itm_logo.ico',null,null,'P',null,null,null,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,CONFIRM_DATE_COL,CONFIRM_BY_COL,MSG_ONSAVE,WF_STATUS,RESTART_FORM,CMS_PATH,BROW_DATA_DEF,DEF_VIEW,VIEW_OPTS) values ('w_milestone_pay_gen','2','2','A','seq10',null,null,null,null,null,'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',null,null,null,null,null,null,null,null,null,null,'2',null,null,null,null,null,null,null,null,null,null,null,null,'M',null,'T',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,DUPLICATE_ADD) values ('w_milestone_pay_gen','header',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,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,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 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','process','1','prc_milestone_pay_gen',null,'0',sysdate,'BASE','BASE','2','EJB','MilestonePayGenPrc',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 ('prc_milestone_pay_gen','Action To process the Data','http://localhost:8080/axis/services/ProcessService','BASE','process','String','S',null,null,sysdate,'BASE','BASE');


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 ('prc_milestone_pay_gen',1,'COMPONENT_TYPE','I','Component Type','C.String',null,sysdate,'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 ('prc_milestone_pay_gen',2,'COMPONENT_NAME','I','Component Name','C.String',null,sysdate,'BASE','BASE','MilestonePayGenPrc');
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 ('prc_milestone_pay_gen',3,'XML_DATA_1','I','XML data of form no 1','S',null,sysdate,'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 ('prc_milestone_pay_gen',4,'XML_DATA__ALL','I','XML data of form no 1','S',null,sysdate,'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 ('prc_milestone_pay_gen',5,'OBJ_CONTEXT','I','Object Context','S',null,sysdate,'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 ('prc_milestone_pay_gen',6,'XTRA_PARAMS','I','Extra Arguments','S',null,sysdate,'BASE','BASE',null);



/*----------------------------------------20-MAR-2015-------------------------------------------------*/

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',1,null,'Action Button for getting data','get_data','a','R','getData','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');



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('data_milestone_pay','Action To get the Data','http://localhost/axis/services/ProcessService','BASE','getData','String','S',NULL,NULL,sysdate,'BASE','User');



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

INSERT INTO system_events(OBJ_NAME,EVENT_CODE,EVENT_CONTEXT,SERVICE_CODE,OVERWRITE_CORE,CHG_DATE,CHG_USER,CHG_TERM,RESULT_HANDLE,COMP_TYPE,COMP_NAME)
VALUES ('milestone_pay_gen','get_data','1','data_milestone_pay','0',SYSDATE,'BASE','BASE','2','EJB','MilestonePayGenPrc');




INSERT INTO system_service_args(SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE)
VALUES('data_milestone_pay','1','COMPONENT_TYPE','I','Component Type','S',SYSDATE,'mahendra','BASE','EJB');


INSERT INTO system_service_args(SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE)
VALUES('data_milestone_pay','2','COMPONENT_NAME','I','Component Name','S',SYSDATE,'mahendra','BASE','MilestonePayGenPrc');


INSERT INTO system_service_args(SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE)
VALUES('data_milestone_pay','3','XML_DATA','I','XML data of form no 1','S',SYSDATE,'mahendra','BASE',null);


INSERT INTO system_service_args(SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE)
VALUES('data_milestone_pay','4','XML_DATA_1','I','XML data of form no All','S',SYSDATE,'mahendra','BASE',null);

INSERT INTO system_service_args(SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE)
VALUES('data_milestone_pay','5','WINDOW_NAME','I','Window Name','S',SYSDATE,'mahendra','BASE','w_invholdrelgen_adm');

INSERT INTO system_service_args(SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE)
VALUES('data_milestone_pay','6','XTRA_PARAMS','I','Extra Arguments','S',SYSDATE,'mahendra','BASE',null);


delete from obj_actions where obj_name = 'milestone_pay_gen';


INSERT INTO system_events(OBJ_NAME,EVENT_CODE,EVENT_CONTEXT,SERVICE_CODE,OVERWRITE_CORE,CHG_DATE,CHG_USER,CHG_TERM,RESULT_HANDLE,COMP_TYPE,COMP_NAME)
VALUES ('milestone_pay_gen','post_item_change','1','poic_default_ejb','0',SYSDATE,'BASE','BASE','2','EJB','MilestonePayGenPrc');

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 itm2menu set win_name='w_milestone_pay_gen' , obj_type='P'  where win_name='w_milestone_pay_gen';
<!--update itm2menu set win_name='/ibase/webitm/jsp/MilestonePayGenHd.jsp' , obj_type='I'  where win_name='w_milestone_pay_gen';-->


update itm2menu set win_name='/ibase/webitm/jsp/E12WizardPage.jsp?OBJ_NAME=milestone_pay_gen&amp;FORM_NO=1' , obj_type='I'  where win_name='w_milestone_pay_gen';

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);
























