
insert into TRANSETUP (TRAN_WINDOW,SAVE_FLAG,VAL_FLAG,KEY_FLAG,KEY_STRING,REPEATE_ADD,CHG_DATE,CHG_USER,CHG_TERM,EDI_OPTION,TRAN_ID_COL,CONFIRM_MODE,MAIL_OPTION,GARBAGE_OPT,WORKFLOW_OPT,TABLE_NAME,AUDIT_TRAIL_OPT,PERIOD_OPTION,EDIT_OPT,REF_SER,CONFIRM_COL,CONFIRM_VAL,SITE_ACC_COL,ledg_post_conf,chg_date_on_conf)
VALUES ('w_sorddealloc','2','2','A','seq10','Y',sysdate,'BASE','BASE','1', 'TRAN_ID','0','0','N','0',null,'0','M','0','D-ALC','confirmed','Y','SITE_CODE','N','Y');

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) 
values ('WMS',1,45,0,0,0,'w_sorddealloc','Manual Stock De-Allocation','Manual Stock De-Allocation','WMS.1.45.0.0.0','e12_logo.gif','T','base','base',sysdate);

insert into obj_forms (WIN_NAME,TITLE,OBJ_BROW_NAME,OBJ_EDIT_NAME,FORM_NO)
values('w_sorddealloc','Header','d_sorddealloc11','d_sorddealloc21','1');

insert into obj_forms (WIN_NAME,TITLE,OBJ_BROW_NAME,OBJ_EDIT_NAME,FORM_NO)
values('w_sorddealloc','Detail','d_sorddealloc12','d_sorddealloc22','2');

insert into OBJ_ACTIONS (OBJ_NAME,LINE_NO,RIGHTS_CHAR,INTERACTIVE,SERVICE_CODE,DESCRIPTION,TITLE,IMAGE,FORM_NO,ACTION_TYPE)
VALUES ('sorddealloc',1,'A','a','a','Adding New','Add','add.gif','1','S');

insert into OBJ_ACTIONS (OBJ_NAME,LINE_NO,RIGHTS_CHAR,INTERACTIVE,SERVICE_CODE,DESCRIPTION,TITLE,IMAGE,FORM_NO,ACTION_TYPE)
VALUES ('sorddealloc',2,'E','a','a','Editing','Edit','edit.gif','1','S');

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 ('sorddealloc',3,'confirm.gif','Action Button for Confirmation','act_confirm','a','F','Confirm','1','2',null,'U',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 ('sorddealloc','pre_validate','1','prv_default_ejb',null,'0',sysdate,'base','base','2','EJB','StockDeAllocIC',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 ('sorddealloc','post_item_change','1','poic_default_ejb',null,'0',sysdate,'base','base','2','EJB','StockDeAllocIC',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 ('sorddealloc','act_confirm','1','confirm_stock_dealloc',null,'0',sysdate,'base','base','2','EJB','StockDeAllocConf',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 ('confirm_stock_dealloc','Action For Confirm','http://localhost:9090/axis/services/ActionHandlerService','BASE','confirm','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 ('confirm_stock_dealloc',1,'COMPONENT_TYPE','I','Component Type','S',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 ('confirm_stock_dealloc',2,'COMPONENT_NAME','I','Component Name','S',null,sysdate,'BASE','BASE','StockDeAllocConf');

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 ('confirm_stock_dealloc',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 ('confirm_stock_dealloc',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 ('confirm_stock_dealloc',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 ('confirm_stock_dealloc',6,'XTRA_PARAMS','I','Extra Arguments','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 ('confirm_stock_dealloc',7,'EDIT_FLAG','I','Edit Flag','S',null,sysdate,'BASE','BASE',null);

Insert into obj_itemchange (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) values ('sorddealloc','1','itm_default',null);
Insert into obj_itemchange (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) values ('sorddealloc','1','sale_order',null);
Insert into obj_itemchange (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) values ('sorddealloc','1','site_code__ship',null);
Insert into obj_itemchange (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) values ('sorddealloc','1','itm_defaultedit',null);

Insert into obj_itemchange (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) values ('sorddealloc','2','itm_default',null);
Insert into obj_itemchange (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) values ('sorddealloc','2','itm_defaultedit',null);
Insert into obj_itemchange (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) values ('sorddealloc','2','line_no__sord',null);
Insert into obj_itemchange (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) values ('sorddealloc','2','item_code',null);
Insert into obj_itemchange (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) values ('sorddealloc','2','lot_no',null);
Insert into obj_itemchange (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) values ('sorddealloc','2','sale_order',null);


INSERT INTO MESSAGES (msg_no , msg_str , msg_descr ,  msg_type ,  msg_opt , chg_date , chg_user , chg_term  )
VALUES ('INVSITSHIP', 'Invalid Site Code Ship!',  'Site Code Ship of allocation and Site Code Ship in deallocation is different!',   '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 ('INVTRANID1', 'Inavlid Transaction Id!',  'Transaction Id Can not be null !',   '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 ('VTDUPTRNID', 'Invalid Transaction Id!',  'Transaction Id cannot be duplicate,Please enter unique value!',   'E',   'Y',  SYSDATE,  'BASE ', 'BASE ');



