
 
 /* itm2menu for QcOrder Approval */
 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 ) VALUES (	'MFG',	4,	6,	0,	0,	0,	'w_qcorder_aprv',	'SOLAR QC Order Approval',	'QC Order Process',	'MFG.4.6.0.0.0',	NULL,	NULL,	NULL,	'P',	NULL,	NULL,	NULL);

/* system entries for pophelp of Qc Order Approval */

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 )
 VALUES (	'QC_ORDER_NO_FROM',	'W_QCORDER_APRV',	'SELECT QORDER_NO FROM QC_ORDER',	NULL,	'Qc Order No From',	NULL,	NULL,	SYSDATE,	'JANARDHAN ',	'BASE           ',	NULL,	NULL,	NULL,	NULL,	NULL,	NULL,	NULL,	NULL,	NULL,	NULL,	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 )
 VALUES (	'QC_ORDER_NO_TO',	'W_QCORDER_APRV',	'SELECT QORDER_NO FROM QC_ORDER',	NULL,	'Qc Order No To',	NULL,	NULL,	SYSDATE,	'JANARDHAN ',	'BASE           ',	NULL,	NULL,	NULL,	NULL,	NULL,	NULL,	NULL,	NULL,	NULL,	NULL,	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 )
 VALUES (	'LOT_NO_FROM',	'W_QCORDER_APRV',	'SELECT LOT_NO FROM QC_ORDER',	NULL,	'Lot No From         ',	NULL,	NULL,	SYSDATE,	'JANARDHAN ',	'BASE           ',	NULL,	NULL,	NULL,	NULL,	NULL,	NULL,	NULL,	NULL,	NULL,	NULL,	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 )
 VALUES (	'LOT_NO_TO',	'W_QCORDER_APRV',	'SELECT LOT_NO FROM QC_ORDER',	NULL,	'lot No To',	NULL,	NULL,	SYSDATE,	'JANARDHAN ',	'BASE           ',	NULL,	NULL,	NULL,	NULL,	NULL,	NULL,	NULL,	NULL,	NULL,	NULL,	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 )
 VALUES (	'LOT_SL_FROM',	'W_QCORDER_APRV',	'SELECT LOT_SL FROM QC_ORDER',	NULL,	'Lot Sl From',	NULL,	NULL,	SYSDATE,	'JANARDHAN ',	'BASE           ',	NULL,	NULL,	NULL,	NULL,	NULL,	NULL,	NULL,	NULL,	NULL,	NULL,	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 )
 VALUES (	'LOT_SL_TO',	'W_QCORDER_APRV',	'SELECT LOT_SL FROM QC_ORDER',	NULL,	'lot Sl To',	NULL,	NULL,	SYSDATE,	'JANARDHAN ',	'BASE           ',	NULL,	NULL,	NULL,	NULL,	NULL,	NULL,	NULL,	NULL,	NULL,	NULL,	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 )
 VALUES (	'REASON_CODE','W_QCORDER_APRV','SELECT FLD_VALUE FROM GENCODES WHERE MOD_NAME='X' AND FLD_NAME = '?'',	NULL,	'reason code',	NULL,	NULL,	SYSDATE,	'JANARDHAN ',	'BASE           ',	NULL,	NULL,	NULL,	NULL,	NULL,	NULL,	NULL,	NULL,	NULL,	NULL,	NULL);
 

/* system entries for system_service_args of Qc Order Approval  - process*/
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 (	'qcorder_prc',	1,	'COMPONENT_TYPE',	'I',	'Component Type',	'C.String',	NULL,	SYSDATE,	'Janardhan',	'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 (	'qcorder_prc',	2,	'COMPONENT_NAME',	'I',	'Component Name',	'C.String',	NULL,	SYSDATE,	'Janardhan ',	'BASE           ',	'QcOrderAprv');
 
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 (	'qcorder_prc',	3,	'XML_DATA_1',	'I',	'XML data of form no 1',	'S',	NULL,	SYSDATE,	'Janardhan ',	'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 (	'qcorder_prc',	4,	'XML_DATA_ALL',	'I',	'XML data of form no 1',	'S',	NULL,	SYSDATE,	'Janardhan ',	'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 (	'qcorder_prc',	5,	'WINDOW_NAME',	'I',	'Object Context',	'S',	NULL,	SYSDATE,	'Janardhan ',	'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 (	'qcorder_prc',	6,	'XTRA_PARAMS',	'I',	'Extra Arguments',	'S',	NULL,	SYSDATE,	'Janardhan ',	'BASE           ',	NULL);

/* system entries for system_service_args of Qc Order Approval  - getdata */
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 (	'qcorder_getdata',	1,	'COMPONENT_TYPE',	'I',	'Component Type',	'C.String',	NULL,	SYSDATE,	'Janardhan ',	'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 (	'qcorder_getdata',	2,	'COMPONENT_NAME',	'I',	'Component Name',	'C.String',	NULL,	SYSDATE,	'Janardhan ',	'BASE           ',	'QcOrderAprv');
 
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 (	'qcorder_getdata',	3,	'XML_DATA_1',	'I',	'XML data of form no 1',	'S',	NULL,	SYSDATE,	'Janardhan ',	'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 (	'qcorder_getdata',	4,	'XML_DATA_ALL',	'I',	'XML data of form no 1',	'S',	NULL,	SYSDATE,	'Janardhan ',	'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 (	'qcorder_getdata',	5,	'WINDOW_NAME',	'I',	'Window Name',	'S',	NULL,	SYSDATE,	'Janardhan ',	'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 (	'qcorder_getdata',	6,	'XTRA_PARAMS',	'I',	'Extra Arguments',	'S',	NULL,	SYSDATE,	'Janardhan ',	'BASE           ',	NULL);
 

/* system entries for obj_forms of Qc Order Approval */
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 ,	auto_accept_scan ,	scan_metadata ,	scan_flag ,	scr_flag ,	property_info ,	ext_com ,	ext_metadata ,	ext_setup ,	after_save ,	column_on_save ,	scan_delimiter ,	auto_accept_weighdata ,	rate_col ,	qty_col ,	form_type ,	disp_metadata ,	parent_key_col )
 VALUES (	'w_qcorder_aprv',	'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);
 
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 ,	auto_accept_scan ,	scan_metadata ,	scan_flag ,	scr_flag ,	property_info ,	ext_com ,	ext_metadata ,	ext_setup ,	after_save ,	column_on_save ,	scan_delimiter ,	auto_accept_weighdata ,	rate_col ,	qty_col ,	form_type ,	disp_metadata ,	parent_key_col )
 VALUES (	'w_qcorder_aprv',	'Detail',	NULL,	NULL,	NULL,	NULL,	NULL,	NULL,	'2',	NULL,	NULL,	NULL,	NULL,	NULL,	NULL,	NULL,	NULL,	NULL,	NULL,	NULL,	NULL,	NULL,	NULL,	NULL,	NULL,	NULL);


/* system entries for obj_actions of Qc Order Approval */
INSERT INTO obj_actions (	obj_name ,	line_no ,	rights_char ,	interactive ,	service_code ,	description ,	title ,	image ,	action_type ,	form_no ,	service_handler ,	placement ,	tran_type ,	chg_date ,	chg_term ,	chg_user )
 VALUES (	'qcorder_aprv',	1,	'R',	'a',	'get_data',	'Action Button for getting the data',	'GetData',	'default.gif',	'U',	'1',	'3',	NULL,	NULL,	NULL,	NULL,	NULL);
 
INSERT INTO obj_actions (	obj_name ,	line_no ,	rights_char ,	interactive ,	service_code ,	description ,	title ,	image ,	action_type ,	form_no ,	service_handler ,	placement ,	tran_type ,	chg_date ,	chg_term ,	chg_user )
 VALUES (	'qcorder_aprv',	2,	'R',	'a',	'process',	'Action Button for process the data',	'process',	'default.gif',	'U',	'2',	'3',	NULL,	NULL,	NULL,	NULL,	NULL);

/* system entries for obj_itemchange of Qc Order Approval */
INSERT INTO obj_itemchange (obj_name,form_no,field_name,mandatory)
VALUES ('qcorder_aprv','1','itm_default',NULL);


/* system entries for system_event_services of Qc Order Approval */
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 (	'qcorder_getdata',	'Action to get the Data',	NULL,	'BASE',	'getData',	'String',	'S',	NULL,	NULL,	SYSDATE,	'Janardhan ',	'BASE');
 
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 (	'qcorder_prc',	'Action to process the Data',	NULL,	'BASE',	'process',	'String',	'S',	NULL,	NULL,	SYSDATE,	'Janardhan ',	'BASE');
 
 
/* system entries for system_events of Qc Order Approval */
INSERT INTO system_events (	obj_name ,	event_code ,	event_context ,	service_code ,	method_rule ,	chg_date ,	chg_user ,	chg_term ,	result_handle ,	overwrite_core ,	comp_type ,	comp_name ,	comm_format )
 VALUES ('qcorder_aprv','get_data',	'1',	'qcorder_getdata',	NULL,	SYSDATE,	'Janardhan ',	'BASE',	'2',	'0',	'EJB',	'QcOrderAprv',	NULL);

INSERT INTO system_events (	obj_name ,	event_code ,	event_context ,	service_code ,	method_rule ,	chg_date ,	chg_user ,	chg_term ,	result_handle ,	overwrite_core ,	comp_type ,	comp_name ,	comm_format )
 VALUES (	'qcorder_aprv',	'process',	'1',	'qcorder_prc',	NULL,	SYSDATE,	'Janardhan ',	'BASE',	'2',	'0',	'EJB',	'QcOrderAprv',	NULL);
 
INSERT INTO system_events (obj_name,event_code,event_context,service_code ,method_rule ,chg_date ,chg_user ,chg_term ,result_handle ,overwrite_core ,comp_type ,comp_name ,comm_format )
VALUES ('qcorder_aprv','post_item_change','1','poic_qcaprvoal',NULL,SYSDATE,'JANARDHAN','BASE','2','0','EJB','QcOrderAprvIc',NULL);
 
/* system entries for messages of Qc Order Approval */
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 (	'VTARIC',	'In Correct Value',	'Approved or Rejected must be either ''A'' or ''R''',	'E',	'Y',	NULL,	NULL,	NULL,	SYSDATE,	'JANARDHAN ',	'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 (	'VTARE',	'Approve/Rejected empty',	'Approve/Rejected value can not be empty',	'E',	'Y',	NULL,	NULL,	NULL,	SYSDATE,	'JANARDHAN ',	'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 (	'VTRCE',	'Reason code empty',	'Reason code can not be empty ',	'E',	'Y',	NULL,	NULL,	NULL,	SYSDATE,	'JANARDHAN',	'BASE',	NULL,	NULL);
 
INSERT INTO messages (
	msg_no ,
	msg_str ,
	msg_descr ,
	msg_type ,
	msg_opt 
	)
 VALUES (
	'VTIRCE    ',
	'Invalid Reason Code',
	'Enter Existing Reason Code',
	'E',
	'Y'
	);

INSERT INTO messages (
	msg_no ,
	msg_str ,
	msg_descr ,
	msg_type ,
	msg_opt 
	);
 VALUES (
	'VTRFRCE   ',
	'There Is no Expected Result ',
	'There Is no Expected Result  Against This item Code',
	'E',
	'Y'
	);
