spool C:\wms_log\WM1ESUN002.txt

CREATE TABLE LOCK_GROUP(
LOCK_GROUP CHAR(10) NOT NULL,
DESCR VARCHAR2(60) NOT NULL,
LOCK_CODE CHAR(10) NOT NULL,
CHG_DATE DATE ,
CHG_USER CHAR(10),
CHG_TERM CHAR(15)) tablespace itm_dis_d1;

ALTER TABLE LOCK_GROUP ADD CONSTRAINT PK_LOCK_GROUP PRIMARY KEY(LOCK_GROUP,LOCK_CODE) using index tablespace itm_dis_i1 ;

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 (
	'NULLGRPCD',
	'Null Group Code',
	'Group Code can not be null',
	'E',
	'Y',
	5,
	NULL,
	NULL,
	fn_sysdate(),
	'sandesh',
	'192.168.0.209',
	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 (
	'NULLLOCKCD',
	'Null Lock Code',
	'Entered lock code can not be blank, please enter valid Lock code',
	'E',
	'Y',
	5,
	NULL,
	NULL,
	fn_sysdate(),
	'sandesh',
	'192.168.0.209',
	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 (
	'NULGRPDESC',
	'Null Group Description',
	'Group Description can not be null',
	'E',
	'Y',
	5,
	NULL,
	NULL,
	fn_sysdate(),
	'sandesh',
	'192.168.0.209',
	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 (
	'UNQGRPLOCK',
	'Duplicates not allowed',
	'Group Code and Lock Code allready Exist ',
	'E',
	'Y',
	5,
	NULL,
	NULL,
	fn_sysdate(),
	'sandesh',
	'192.168.0.209',
	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 (
	'INVLOCKCD',
	'Invalid Lock Code',
	'Lock Code not valid',
	'E',
	'Y',
	5,
	NULL,
	NULL,
	fn_sysdate(),
	'sandesh',
	'192.168.0.209',
	NULL,
	NULL);

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_date ,
	chg_term ,
	chg_user)
VALUES (
	'SFA',
	14,
	1,
	4,
	0,
	0,
	'w_lock_group',
	'Lock Group',
	'',
	'SFA.14.1.4.0.0',
	'e12_logo.gif',	
	'T',
	fn_sysdate(),
	'BASE',
	'Sandesh');

INSERT INTO transetup (
	tran_window ,
	save_flag ,
	val_flag ,
	key_flag ,
	repeate_add ,
	chg_date ,
	chg_user ,
	chg_term ,
	edi_option ,
	confirm_mode ,
	mail_option ,
	garbage_opt ,
	table_name,
	application )
VALUES (
	'w_lock_group',
	'2',
	'2',
	'M',
	'N',
	fn_sysdate(),
	'Sandesh ',
	'BASE ',
	'0',
	'0',
	'0',
	'N',
	'lock_group',
	'WMS');
	
INSERT INTO obj_forms (
	win_name ,
	title ,
	obj_brow_name ,
	obj_edit_name ,
	form_no)
VALUES (
	'w_lock_group',
	'Lock Group',
	'd_lock_group_brow',
	'd_lock_group_edit',
	'1');

INSERT INTO obj_actions (
	obj_name ,
	line_no ,
	rights_char ,
	interactive ,
	service_code ,
	description ,
	title ,
	image ,
	action_type ,
	form_no ,
	chg_date ,
	chg_term ,
	chg_user)
VALUES (
	'lock_group',
	 1,
	'A',
	'a',
	'a',
	'Adding New',
	'Add',
	'add~normal.gif',
	'S',
	'1',
	fn_sysdate(),
	'BASE ',
	'Sandesh');

INSERT INTO obj_actions (
	obj_name ,
	line_no ,
	rights_char ,
	interactive ,
	service_code ,
	description ,
	title ,
	image ,
	action_type ,
	form_no ,
	chg_date ,
	chg_term ,
	chg_user)
VALUES (
	'lock_group',
	2,
	'E',
	'a',
	'a',
	'Editing Existing Record',
	'Edit',
	'edit~normal.gif',
	'S',
	'1',
	fn_sysdate(),
	'BASE ',
	'Sandesh');

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 (
	'lock_group',
	'pre_validate',
	'1',
	'prv_lock_group',
	fn_sysdate(),
	'Sandesh',
	'BASE',
	'2',
	'0',
	'EJB',
	'LockGroupIC');

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 (
	'lock_group',
	'post_item_change',
	'1',
	'poic_lock_group',
	 fn_sysdate(),
	'Sandesh',
	'BASE',
	'2',
	'0',
	'EJB',
	'LockGroupIC');

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 (
	'prv_lock_group',
	'Validation',
	'http://localhost:9090/axis/services/ValidatorService',
	'BASE',
	'wfValData',
	'String',
	'S',
	fn_sysdate(),
	'Sandesh',
	'BASE');
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_lock_group',
	'post item change',
	'http://localhost:9090/axis/services/ValidatorService',
	'BASE',
	'itemChanged',
	'String',
	'S',
	fn_sysdate(),
	'Sandesh',
	'BASE');

INSERT INTO system_service_args (
	service_code ,
	line_no ,
	arg_name ,
	arg_mode ,
	arg_type ,	
	chg_date ,
	chg_user,
	chg_term ,
	arg_value )
VALUES (
	'prv_lock_group',
	 1,
	'COMPONENT_TYPE',
	'I',
	'S',
	fn_sysdate(),
	'Sandesh ',
	'BASE',
	'EJB');
INSERT INTO system_service_args (
	service_code ,
	line_no ,
	arg_name ,
	arg_mode ,
	arg_type ,	
	chg_date ,
	chg_user,
	chg_term ,
	arg_value)
VALUES (
	'prv_lock_group',
	2,
	'COMPONENT_NAME',
	'I',	
	'S',
	fn_sysdate(),
	'Sandesh',
	'BASE',
	'LockGroupIC');
INSERT INTO system_service_args (
	service_code ,
	line_no ,
	arg_name ,
	arg_mode ,
	arg_type ,	
	chg_date ,
	chg_user,
	chg_term )
VALUES (
	'prv_lock_group',
	3,
	'XML_DATA',
	'l',
	'S',
	fn_sysdate(),
	'Sandesh',
	'BASE');
INSERT INTO system_service_args (
	service_code ,
	line_no ,
	arg_name ,
	arg_mode ,
	arg_type ,	
	chg_date ,
	chg_user,
	chg_term )
VALUES (
	'prv_lock_group',
	4,
	'XML_DATA_1',
	'l',
	'S',
	fn_sysdate(),
	'Sandesh',
	'BASE');
INSERT INTO system_service_args (
	service_code ,
	line_no ,
	arg_name ,
	arg_mode ,
	arg_type ,	
	chg_date ,
	chg_user,
	chg_term )
 VALUES (
	'prv_lock_group',
	5,
	'XML_DATA_ALL',
	'l',	
	'S',	
	fn_sysdate(),
	'Sandesh',
	'BASE');
INSERT INTO system_service_args (
	service_code ,
	line_no ,
	arg_name ,
	arg_mode ,
	arg_type ,	
	chg_date ,
	chg_user,
	chg_term )
VALUES (
	'prv_lock_group',
	6,
	'OBJ_CONTEXT',
	'l',
	'S',
	fn_sysdate(),
	'Sandesh',
	'BASE');
INSERT INTO system_service_args (
	service_code ,
	line_no ,
	arg_name ,
	arg_mode ,
	arg_type ,	
	chg_date ,
	chg_user,
	chg_term )
VALUES (
	'prv_lock_group',
	 7,
	'EDIT_FLAG',
	'l',	
	'S',
	fn_sysdate(),
	'Sandesh',
	'BASE');
INSERT INTO system_service_args (
	service_code ,
	line_no ,
	arg_name ,
	arg_mode ,
	arg_type ,	
	chg_date ,
	chg_user,
	chg_term )
VALUES (
	'prv_lock_group',
	8,
	'XTRA_PARAMS',
	'l',	
	'S',	
	fn_sysdate(),
	'Sandesh',
	'BASE');

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_lock_group',
	 1,
	'COMPONENT_TYPE',
	'I',
	'S',
	fn_sysdate(),
	'Sandesh ',
	'BASE',
	'EJB');
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_lock_group',
	 2,
	'COMPONENT_NAME',
	'I',	
	'S',	
	fn_sysdate(),
	'Sandesh ',
	'BASE',
	'LockGroupIC');

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

INSERT INTO system_service_args (
	service_code ,
	line_no ,
	arg_name ,
	arg_mode ,
	arg_type ,	
	chg_date ,
	chg_user,
	chg_term )
VALUES (
	'poic_lock_group',
	4,
	'XML_DATA_1',
	'I',
	'S',
	fn_sysdate(),
	'Sandesh ',
	'BASE');
				
INSERT INTO system_service_args (
	service_code ,
	line_no ,
	arg_name ,
	arg_mode ,
	arg_type ,	
	chg_date ,
	chg_user,
	chg_term )
VALUES (
	'poic_lock_group',
	5,
	'XML_DATA_ALL',
	'I',	
	'S',
	fn_sysdate(),
	'Sandesh ',
	'BASE');

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

INSERT INTO system_service_args (
	service_code ,
	line_no ,
	arg_name ,
	arg_mode ,
	arg_type ,	
	chg_date ,
	chg_user,
	chg_term )
VALUES (
	'poic_lock_group',
	 7,
	'FOCUSED_COLUMN',
	'I',	
	'S',
	fn_sysdate(),
	'Sandesh ',
	'BASE');
INSERT INTO system_service_args (
	service_code ,
	line_no ,
	arg_name ,
	arg_mode ,
	arg_type ,	
	chg_date ,
	chg_user,
	chg_term )
VALUES (
	'poic_lock_group',
	8,
	'EDIT_FLAG',
	'I',
	'S',	
	fn_sysdate(),
	'Sandesh ',
	'BASE');
INSERT INTO system_service_args (
	service_code ,
	line_no ,
	arg_name ,
	arg_mode ,
	arg_type ,	
	chg_date ,
	chg_user,
	chg_term )
VALUES(
	'poic_lock_group',
	9,
	'XTRA_PARAMS',
	'I',
	'S',	
	fn_sysdate(),
	'Sandesh',
	'BASE');

INSERT INTO obj_itemchange (
	obj_name ,
	form_no ,
	field_name)
 VALUES(
	'lock_group',
	'1',
	'lock_code');

INSERT INTO MESSAGES (
	msg_no ,
	msg_str ,
	msg_descr ,
	msg_type ,
	msg_opt ,  
	chg_date ,
	chg_user ,
	chg_term )
VALUES (
	'INVGRUPCD',
	'Invalid Group Code',
	'Group code entered is not valid, please enter valid code',
	'E',
	'Y',
	fn_sysdate(),
	'Sandesh'  ,
	'BASE ');
INSERT INTO MESSAGES (
	msg_no ,
	msg_str ,
	msg_descr ,
	msg_type ,
	msg_opt ,  
	chg_date ,
	chg_user ,
	chg_term )
VALUES (
	'LOCKNOTEXT',
	'Lock not exist',
	'Lock code entered is not exist, please enter valid code',
	'E',
	'Y',
	fn_sysdate(),
	'Sandesh'  ,
	'BASE ');

spool off
