From 8bbfd79acd51391ad2a5ac5069fcb5cfcdc0a2e8 Mon Sep 17 00:00:00 2001 From: mullenm Date: Wed, 2 Apr 2008 13:20:47 +0000 Subject: [PATCH] Ticket #435 Changed the LOV PRTY_ROLES to exclude SUPP and EXTORG when the administrator is creating a User party. UAT Defect: SCM001 git-svn-id: http://locode01.ad.dom/svn/WEBMIP/trunk@4707 248e525c-4dfb-0310-94bc-949c084e9493 --- Screens/f155.sql | 86 ++++++++++++++++++++++++------------------------ 1 file changed, 43 insertions(+), 43 deletions(-) diff --git a/Screens/f155.sql b/Screens/f155.sql index 2e612bd..f5adcbf 100644 --- a/Screens/f155.sql +++ b/Screens/f155.sql @@ -13,8 +13,8 @@ prompt APPLICATION 155 - webmip -- Application Export: -- Application: 155 -- Name: webmip --- Date and Time: 10:45 Wednesday April 2, 2008 --- Exported By: PRIESTJ +-- Date and Time: 14:19 Wednesday April 2, 2008 +-- Exported By: MULLENM -- Flashback: 0 -- Export Type: Application Export -- Version: 3.1.0.00.32 @@ -145,7 +145,7 @@ wwv_flow_api.create_flow( p_default_region_template=> 28038130488354430 + wwv_flow_api.g_id_offset, p_error_template => 42209241448421762 + wwv_flow_api.g_id_offset, p_page_protection_enabled_y_n=> 'N', - p_checksum_salt_last_reset => '20080402104537', + p_checksum_salt_last_reset => '20080402141927', p_home_link => 'f?p=&APP_ID.:101', p_flow_language => 'en-gb', p_flow_language_derived_from=> 'FLOW_PRIMARY_LANGUAGE', @@ -193,8 +193,8 @@ wwv_flow_api.create_flow( p_substitution_value_03 => 'http://www.nationalgrid.com/corporate/legal/privacy.htm', p_substitution_string_04 => 'HELP_URL', p_substitution_value_04 => 'http://www.nationalgrid.com/corporate/legal/help.htm', - p_last_updated_by => 'PRIESTJ', - p_last_upd_yyyymmddhh24miss=> '20080402104537', + p_last_updated_by => 'MULLENM', + p_last_upd_yyyymmddhh24miss=> '20080402141927', p_required_roles=> wwv_flow_utilities.string_to_table2('')); @@ -1578,27 +1578,27 @@ wwv_flow_api.create_list_of_values ( p_id => 19188714627694567 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_lov_name => 'PRTY_ROLES', - p_lov_query=> 'begin'||chr(10)|| -'if mip_parties.get_user_role(:APP_USER) = ''MIPADMIN'' then'||chr(10)|| -' if :P61_PRTY_TYPE = ''MKTP'' then'||chr(10)|| -' return ''SELECT ''''Gas supplier'''' display_value, ''''SUPP'''' return_value'||chr(10)|| + p_lov_query=> 'BEGIN'||chr(10)|| +' IF mip_parties.get_user_role(:app_user) = ''MIPADMIN'' THEN'||chr(10)|| +' IF :p61_prty_type = ''MKTP'' THEN'||chr(10)|| +' RETURN ''SELECT ''''Gas supplier'''' display_value, ''''SUPP'''' return_value'||chr(10)|| ' from dual'';'||chr(10)|| -' elsif :P61_PRTY_TYPE = ''MANU'' then'||chr(10)|| -' return ''SELECT ''''External organization'''' display_value, ''''EXTORG'''' return_value'||chr(10)|| +' ELSIF :p61_prty_type = ''MANU'' THEN'||chr(10)|| +' RETURN ''SELECT ''''External organization'''' display_value, ''''EXTORG'''' return_value'||chr(10)|| ' from dual'';'||chr(10)|| -' else'||chr(10)|| -' return ''select DESCRIPTION display_value, CODE return_value '||chr(10)|| +' ELSE'||chr(10)|| +' RETURN ''select DESCRIPTION display_value, CODE return_value '||chr(10)|| ' from ROLE_TYPES'||chr(10)|| ' where upper(rt_type) = ''''PRT'''''||chr(10)|| +' and not upper(code) in (''''EXTORG'''',''''SUPP'''')'||chr(10)|| ' order by 1'';'||chr(10)|| -' end if;'||chr(10)|| -'else'||chr(10)|| -' return ''SELECT ''''Agent'''' display_value, ''''AGENT'''' return_value'||chr(10)|| +' END IF;'||chr(10)|| +' ELSE'||chr(10)|| +' RETURN ''SELECT ''''Agent'''' display_value, ''''AGENT'''' return_value'||chr(10)|| ' from dual'';'||chr(10)|| -'end if;'||chr(10)|| +' END IF;'||chr(10)|| ''||chr(10)|| -''||chr(10)|| -'end;'); +'END;'); null; @@ -11403,8 +11403,8 @@ wwv_flow_api.create_page( p_step_template => '', p_required_role => 16097609166220701+ wwv_flow_api.g_id_offset, p_required_patch=> null + wwv_flow_api.g_id_offset, - p_last_updated_by => 'PRIESTJ', - p_last_upd_yyyymmddhh24miss => '20080331161953', + p_last_updated_by => 'DHARSHANIK', + p_last_upd_yyyymmddhh24miss => '20080402131632', p_page_is_public_y_n=> 'N', p_protection_level=> 'C', p_page_comment => ''); @@ -18051,7 +18051,7 @@ declare h varchar2(32767) := null; begin h := null; -h:=h||'Please select the exisiting meter model from the drop down menu. If you are unsure of the meter model, or if the existing model is not listed, please select ''other''. If you select ''other'', you will not be able to generate an automatic quotation. A manual quote will be generated off-line and uploaded back onto the system within the normal SLA.'||chr(10)|| +h:=h||''||chr(10)|| ''; wwv_flow_api.create_page_item( @@ -32618,7 +32618,7 @@ wwv_flow_api.create_page( p_step_template => '', p_required_patch=> null + wwv_flow_api.g_id_offset, p_last_updated_by => 'MULLENM', - p_last_upd_yyyymmddhh24miss => '20080310173707', + p_last_upd_yyyymmddhh24miss => '20080402141612', p_page_is_public_y_n=> 'N', p_protection_level=> 'N', p_page_comment => ''); @@ -32932,27 +32932,27 @@ wwv_flow_api.create_page_item( p_source_type=> 'STATIC', p_display_as=> 'COMBOBOX_WITH_SUBMIT', p_named_lov=> 'PRTY_ROLES', - p_lov => 'begin'||chr(10)|| -'if mip_parties.get_user_role(:APP_USER) = ''MIPADMIN'' then'||chr(10)|| -' if :P61_PRTY_TYPE = ''MKTP'' then'||chr(10)|| -' return ''SELECT ''''Gas supplier'''' display_value, ''''SUPP'''' return_value'||chr(10)|| + p_lov => 'BEGIN'||chr(10)|| +' IF mip_parties.get_user_role(:app_user) = ''MIPADMIN'' THEN'||chr(10)|| +' IF :p61_prty_type = ''MKTP'' THEN'||chr(10)|| +' RETURN ''SELECT ''''Gas supplier'''' display_value, ''''SUPP'''' return_value'||chr(10)|| ' from dual'';'||chr(10)|| -' elsif :P61_PRTY_TYPE = ''MANU'' then'||chr(10)|| -' return ''SELECT ''''External organization'''' display_value, ''''EXTORG'''' return_value'||chr(10)|| +' ELSIF :p61_prty_type = ''MANU'' THEN'||chr(10)|| +' RETURN ''SELECT ''''External organization'''' display_value, ''''EXTORG'''' return_value'||chr(10)|| ' from dual'';'||chr(10)|| -' else'||chr(10)|| -' return ''select DESCRIPTION display_value, CODE return_value '||chr(10)|| +' ELSE'||chr(10)|| +' RETURN ''select DESCRIPTION display_value, CODE return_value '||chr(10)|| ' from ROLE_TYPES'||chr(10)|| ' where upper(rt_type) = ''''PRT'''''||chr(10)|| +' and not upper(code) in (''''EXTORG'''',''''SUPP'''')'||chr(10)|| ' order by 1'';'||chr(10)|| -' end if;'||chr(10)|| -'else'||chr(10)|| -' return ''SELECT ''''Agent'''' display_value, ''''AGENT'''' return_value'||chr(10)|| +' END IF;'||chr(10)|| +' ELSE'||chr(10)|| +' RETURN ''SELECT ''''Agent'''' display_value, ''''AGENT'''' return_value'||chr(10)|| ' from dual'';'||chr(10)|| -'end if;'||chr(10)|| +' END IF;'||chr(10)|| ''||chr(10)|| -''||chr(10)|| -'end;', +'END;', p_lov_columns=> 1, p_lov_display_null=> 'YES', p_lov_translated=> 'N', @@ -47659,10 +47659,10 @@ c1:=c1||''||chr(10)|| c1:=c1||'"'||chr(10)|| ' title='||chr(10)|| ' "Return to the Metering Online Quotations Home Page"'||chr(10)|| -' accesskey="1">Home | Home | Logout | '||chr(10)|| +' accesskey="2">Logout | '||chr(10)|| ' '||chr(10)|| ' You are logged in as:&APP_USER.'||chr(10)|| ''||chr(10)|| ' '||chr(10)|| '
'||chr(10)|| -' '||chr(10)|| +' '||chr(10)|| '
'||chr(10)|| ' '||chr(10)|| '
'||chr(10)|| '