Automatic export of Application 155

git-svn-id: http://locode01.ad.dom/svn/WEBMIP/trunk@4057 248e525c-4dfb-0310-94bc-949c084e9493
This commit is contained in:
hardya
2008-03-20 21:00:07 +00:00
parent 7e5753fd55
commit 6477b4be63

View File

@@ -26,7 +26,7 @@ prompt APPLICATION 155 - webmip
-- Application Statistics:
-- Pages: 53
-- Items: 359
-- Computations: 2
-- Computations: 5
-- Validations: 285
-- Processes: 120
-- Regions: 78
@@ -144,7 +144,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 => '20080319171207',
p_checksum_salt_last_reset => '20080320183151',
p_home_link => 'f?p=&APP_ID.:101',
p_flow_language => 'en-gb',
p_flow_language_derived_from=> 'FLOW_PRIMARY_LANGUAGE',
@@ -189,7 +189,7 @@ wwv_flow_api.create_flow(
p_substitution_string_02 => 'T_AND_C_URL',
p_substitution_value_02 => 'http://www.nationalgrid.com/uk/metering/mip/tc.htm',
p_last_updated_by => 'HARDYA',
p_last_upd_yyyymmddhh24miss=> '20080319171207',
p_last_upd_yyyymmddhh24miss=> '20080320183151',
p_required_roles=> wwv_flow_utilities.string_to_table2(''));
@@ -5841,7 +5841,7 @@ wwv_flow_api.create_page(
p_required_role => 14572900838700208+ wwv_flow_api.g_id_offset,
p_required_patch=> null + wwv_flow_api.g_id_offset,
p_last_updated_by => 'HARDYA',
p_last_upd_yyyymmddhh24miss => '20080314152324',
p_last_upd_yyyymmddhh24miss => '20080320125300',
p_page_is_public_y_n=> 'N',
p_protection_level=> 'C',
p_page_comment => '');
@@ -5889,7 +5889,7 @@ wwv_flow_api.create_report_region (
p_id=> 15248017156197270 + wwv_flow_api.g_id_offset,
p_flow_id=> wwv_flow.g_flow_id,
p_page_id=> 18,
p_name=> 'Report on &P18_COSTS_TITLE.',
p_name=> 'Report on &P18_COSTS_TITLE. - Disabled',
p_region_name=>'',
p_template=> 28038130488354430+ wwv_flow_api.g_id_offset,
p_display_sequence=> 10,
@@ -5900,7 +5900,6 @@ wwv_flow_api.create_report_region (
p_display_error_message=> '#SQLERRM#',
p_display_when_condition=> 'P18_REQUIRED_COST_TYPE',
p_display_when_cond2=> 'LACO:AICO:MOCO:BACO:HOCO',
p_display_condition_type=> 'VALUE_OF_ITEM_IN_CONDITION_IN_COLON_DELIMITED_LIST',
p_customized=> '0',
p_translate_title=> 'Y',
p_ajax_enabled=> 'N',
@@ -6439,7 +6438,17 @@ end;
begin
null;
wwv_flow_api.create_page_branch(
p_id=>7576517614702693 + wwv_flow_api.g_id_offset,
p_flow_id=> wwv_flow.g_flow_id,
p_flow_step_id=> 18,
p_branch_action=> 'f?p=&FLOW_ID.:19:&SESSION.::&DEBUG.&success_msg=#SUCCESS_MSG#',
p_branch_point=> 'AFTER_PROCESSING',
p_branch_type=> 'REDIRECT_URL',
p_branch_when_button_id=>7576228008702692+ wwv_flow_api.g_id_offset,
p_branch_sequence=> 10,
p_branch_comment=> '');
end;
/
@@ -6673,8 +6682,8 @@ wwv_flow_api.create_page(
p_step_template => '',
p_required_role => 14572900838700208+ 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 => '20080317174142',
p_last_updated_by => 'HARDYA',
p_last_upd_yyyymmddhh24miss => '20080320125548',
p_page_is_public_y_n=> 'N',
p_protection_level=> 'C',
p_page_comment => '');
@@ -7713,7 +7722,7 @@ wwv_flow_api.create_page_validation(
p_error_message => 'Enquiry Type must not be selected',
p_validation_condition=> 'P19_COST_TYPE',
p_validation_condition2=> 'LACO',
p_validation_condition_type=> 'VAL_OF_ITEM_IN_COND_EQ_COND2',
p_validation_condition_type=> 'VAL_OF_ITEM_IN_COND_NOT_EQ_COND2',
p_associated_item=> 15246209154197269 + wwv_flow_api.g_id_offset,
p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION',
p_validation_comment=> '');
@@ -10405,7 +10414,7 @@ wwv_flow_api.create_page(
p_required_role => 16097609166220701+ wwv_flow_api.g_id_offset,
p_required_patch=> null + wwv_flow_api.g_id_offset,
p_last_updated_by => 'HARDYA',
p_last_upd_yyyymmddhh24miss => '20080319164735',
p_last_upd_yyyymmddhh24miss => '20080320183151',
p_page_is_public_y_n=> 'N',
p_protection_level=> 'C',
p_page_comment => '');
@@ -10985,7 +10994,7 @@ wwv_flow_api.create_page_branch(
p_id=>7066226620289645 + wwv_flow_api.g_id_offset,
p_flow_id=> wwv_flow.g_flow_id,
p_flow_step_id=> 32,
p_branch_action=> 'f?p=&APP_ID.:&APP_PAGE_ID.:&SESSION.::&DEBUG.::::#&P32_ANCHOR.',
p_branch_action=> 'f?p=&APP_ID.:&APP_PAGE_ID.:&SESSION.::&DEBUG.::::#&P32_ANCHOR.&success_msg=#SUCCESS_MSG#',
p_branch_point=> 'AFTER_PROCESSING',
p_branch_type=> 'REDIRECT_URL',
p_branch_sequence=> 1,
@@ -11070,6 +11079,18 @@ wwv_flow_api.create_page_branch(
p_branch_sequence=> 500,
p_branch_comment=> '');
wwv_flow_api.create_page_branch(
p_id=>7744500563814329 + wwv_flow_api.g_id_offset,
p_flow_id=> wwv_flow.g_flow_id,
p_flow_step_id=> 32,
p_branch_action=> 'f?p=&APP_ID.:&PAGE_ID.:&SESSION.::&DEBUG.:::&P32_ANCHOR.',
p_branch_point=> 'AFTER_PROCESSING',
p_branch_type=> 'REDIRECT_URL',
p_branch_sequence=> 510,
p_branch_condition_type=> 'ITEM_IS_NOT_NULL',
p_branch_condition=> 'P32_ANCHOR',
p_branch_comment=> 'Created 20-MAR-2008 18:08 by HARDYA');
end;
/
@@ -12338,7 +12359,7 @@ wwv_flow_api.create_page_item(
p_accept_processing=> 'REPLACE_EXISTING',
p_item_sequence=> 52,
p_item_plug_id => 26597504596798255+wwv_flow_api.g_id_offset,
p_use_cache_before_default=> 'YES',
p_use_cache_before_default=> 'NO',
p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS',
p_prompt=>'Existing Meter Size &P32_L_EXISTING_MESC_CODE.',
p_source=>'EXISTING_MESC_CODE',
@@ -16154,7 +16175,7 @@ wwv_flow_api.create_page_item(
p_accept_processing=> 'REPLACE_EXISTING',
p_item_sequence=> 51,
p_item_plug_id => 26597504596798255+wwv_flow_api.g_id_offset,
p_use_cache_before_default=> 'YES',
p_use_cache_before_default=> 'NO',
p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS',
p_prompt=>'Existing Meter Model &P32_L_EXISTING_METR_CODE.',
p_source=>'EXISTING_METR_CODE',
@@ -16177,7 +16198,7 @@ wwv_flow_api.create_page_item(
p_cSize=> 50,
p_cMaxlength=> 50,
p_cHeight=> 1,
p_tag_attributes => 'style="background:#FFFFFF; color:#333333;" onChange="javascript:doSubmit(''P32_EXISTING_METER_MODEL''); window.close();"',
p_tag_attributes => 'style="background:#FFFFFF; color:#333333;" onChange="javascript:doSubmit(''APPLY_METER_MODEL_CHANGES''); window.close();"',
p_begin_on_new_line => 'YES',
p_begin_on_new_field=> 'YES',
p_colspan => 1,
@@ -17094,7 +17115,7 @@ wwv_flow_api.create_page_computation(
' when ''P32_ENTY_CODE'' then 5'||chr(10)||
' when ''P32_METER_SIZE'' then 5'||chr(10)||
' when ''P32_REQUIRED_SVCP_CODE'' then 5'||chr(10)||
' when ''P32_EXISTING_METER_MODEL'' then 5'||chr(10)||
' when ''APPLY_METER_MODEL_CHANGES'' then 5'||chr(10)||
' when ''P32_EXISTING_MESC_CODE'' then 5'||chr(10)||
' when ''P32_EXISTING_METY_MODEL'' then 5'||chr(10)||
' when ''P32_EXISTING_PRTY_ID'' then 5'||chr(10)||
@@ -17110,6 +17131,69 @@ end;
/
begin
wwv_flow_api.create_page_computation(
p_id=> 7584717319078076 + wwv_flow_api.g_id_offset,
p_flow_id=> wwv_flow.g_flow_id,
p_flow_step_id=> 32,
p_computation_sequence => 20,
p_computation_item=> 'P32_INSTALL_POSTCODE',
p_computation_point=> 'AFTER_SUBMIT',
p_computation_type=> 'PLSQL_EXPRESSION',
p_computation_processed=> 'REPLACE_EXISTING',
p_computation=> 'trim(:P32_INSTALL_POSTCODE)',
p_compute_when => 'P32_INSTALL_POSTCODE',
p_compute_when_type=>'ITEM_IS_NOT_NULL');
null;
end;
/
begin
wwv_flow_api.create_page_computation(
p_id=> 7584929009100332 + wwv_flow_api.g_id_offset,
p_flow_id=> wwv_flow.g_flow_id,
p_flow_step_id=> 32,
p_computation_sequence => 30,
p_computation_item=> 'P32_FIRST_ALT_POSTCODE',
p_computation_point=> 'AFTER_SUBMIT',
p_computation_type=> 'PLSQL_EXPRESSION',
p_computation_processed=> 'REPLACE_EXISTING',
p_computation=> 'trim(:P32_FIRST_ALT_POSTCODE)',
p_compute_when => 'P32_FIRST_ALT_POSTCODE',
p_compute_when_type=>'ITEM_IS_NOT_NULL');
null;
end;
/
begin
wwv_flow_api.create_page_computation(
p_id=> 7585117020106381 + wwv_flow_api.g_id_offset,
p_flow_id=> wwv_flow.g_flow_id,
p_flow_step_id=> 32,
p_computation_sequence => 40,
p_computation_item=> 'P32_SECOND_ALT_POSTCODE',
p_computation_point=> 'AFTER_SUBMIT',
p_computation_type=> 'PLSQL_EXPRESSION',
p_computation_processed=> 'REPLACE_EXISTING',
p_computation=> 'trim(:P32_SECOND_ALT_POSTCODE)',
p_compute_when => 'P32_SECOND_ALT_POSTCODE',
p_compute_when_type=>'ITEM_IS_NOT_NULL');
null;
end;
/
begin
wwv_flow_api.create_page_validation(
@@ -20269,25 +20353,25 @@ declare
l_clob clob;
l_length number := 1;
begin
p:=p||':P32_QMAX := NULL;';
p:=p||'P32_QMAX';
wwv_flow_api.create_page_process(
p_id => 7464226288659778 + wwv_flow_api.g_id_offset,
p_id => 7740121136555315 + wwv_flow_api.g_id_offset,
p_flow_id=> wwv_flow.g_flow_id,
p_flow_step_id => 32,
p_process_sequence=> 7,
p_process_point=> 'AFTER_SUBMIT',
p_process_type=> 'PLSQL',
p_process_name=> 'Reset Qmax',
p_process_type=> 'CLEAR_CACHE_FOR_ITEMS',
p_process_name=> 'RESET QMAX',
p_process_sql_clob => p,
p_process_error_message=> 'Not fired',
p_process_error_message=> '',
p_process_when=>'RETURN NOT mip_enquiry.show_qmax('||chr(10)||
'p_enty_code => :p32_enty_code, '||chr(10)||
'p_existing_metr_code => :p32_existing_meter_model,'||chr(10)||
'p_existing_mesc_code => :p32_existing_mesc_code,'||chr(10)||
'p_required_mesc_code => :p32_meter_size);',
p_process_when_type=>'FUNCTION_BODY',
p_process_success_message=> 'Firing!!!!',
p_process_success_message=> '',
p_process_is_stateful_y_n=>'N',
p_process_comment=>'');
end;
@@ -20304,108 +20388,24 @@ declare
l_clob clob;
l_length number := 1;
begin
p:=p||' IF :p32_l_amr_required = ''H'' THEN'||chr(10)||
' :p32_amr_required := NULL;'||chr(10)||
' END IF;'||chr(10)||
' IF :p32_l_annual_quantity = ''H'' THEN'||chr(10)||
' :p32_annual_quantity := NULL;'||chr(10)||
' END IF;'||chr(10)||
' IF :p32_l_base_required = ''H'' THEN'||chr(10)||
' :p32_base_required := NULL;'||chr(10)||
' END IF;'||chr(10)||
' IF :p32_l_bypass_required = ''H'' THEN'||chr(10)||
' :p32_bypass_required := NULL;'||chr(10)||
' END IF;'||chr(10)||
' IF :p32_l_convertor_required = ''H'' THEN'||chr(10)||
' :p32_convertor_requ';
p:=p||'ired := NULL;'||chr(10)||
' END IF;'||chr(10)||
' IF :p32_l_ds_booster_or_compress = ''H'' THEN'||chr(10)||
' :p32_ds_booster_or_compress := NULL;'||chr(10)||
' END IF;'||chr(10)||
' IF :p32_l_ems_required = ''H'' THEN'||chr(10)||
' :p32_ems_required := NULL;'||chr(10)||
' END IF;'||chr(10)||
' IF :p32_l_existing_convertor = ''H'' THEN'||chr(10)||
' :p32_existing_convertor := NULL;'||chr(10)||
' END IF;'||chr(10)||
' IF :p32_l_existing_logger = ''H'' THEN'||chr(10)||
' :p32_existing_logger := NULL;'||chr(10)||
' END IF;'||chr(10)||
' IF :p32_l_exis';
p:=p||'ting_meter_owner = ''H'' THEN'||chr(10)||
' :p32_existing_meter_owner := NULL;'||chr(10)||
' END IF;'||chr(10)||
' IF :p32_l_housing_required = ''H'' THEN'||chr(10)||
' :p32_housing_required := NULL;'||chr(10)||
' END IF;'||chr(10)||
' IF :p32_l_load_control_type = ''H'' THEN'||chr(10)||
' :p32_load_control_type := NULL;'||chr(10)||
' END IF;'||chr(10)||
' IF :p32_l_mprn = ''H'' THEN'||chr(10)||
' :p32_mprn := NULL;'||chr(10)||
' END IF;'||chr(10)||
' IF :p32_l_mprn_alt = ''H'' THEN'||chr(10)||
' :p32_mprn_alt := NULL;'||chr(10)||
' END IF;'||chr(10)||
' IF :';
p:=p||'p32_l_qmax = ''H'' THEN'||chr(10)||
' :p32_qmax := NULL;'||chr(10)||
' END IF;'||chr(10)||
' IF :p32_l_required_ip_details = ''H'' THEN'||chr(10)||
' :p32_required_ip_details := NULL;'||chr(10)||
' END IF;'||chr(10)||
' IF :p32_l_required_ip_mbar = ''H'' THEN'||chr(10)||
' :p32_required_ip_mbar := NULL;'||chr(10)||
' END IF;'||chr(10)||
' IF v(''P32_L_REQUIRED_METERING_PRESSURE'') = ''H'' THEN'||chr(10)||
' :p32_required_metering_pressure := NULL;'||chr(10)||
' END IF;'||chr(10)||
' IF :p32_l_required_svcp_code = ''H'' THEN'||chr(10)||
' :';
p:=p||'p32_required_svcp_code := NULL;'||chr(10)||
' END IF;'||chr(10)||
' IF :p32_l_twin_stream_required = ''H'' THEN'||chr(10)||
' :p32_twin_stream_required := NULL;'||chr(10)||
' END IF;'||chr(10)||
''||chr(10)||
' IF :p32_l_existing_mesc_code = ''H'' THEN'||chr(10)||
' :p32_existing_mesc_code := NULL;'||chr(10)||
' END IF;'||chr(10)||
' IF :p32_l_required_mesc_code = ''H'' THEN'||chr(10)||
' :p32_meter_size := NULL;'||chr(10)||
' END IF;'||chr(10)||
' IF :p32_l_existing_mety_code = ''H'' THEN'||chr(10)||
' :p32_existing_mety_code := NULL;'||chr(10)||
' ';
p:=p||' END IF;'||chr(10)||
' IF :p32_l_existing_prty_id = ''H'' THEN'||chr(10)||
' :p32_existing_prty_id := NULL;'||chr(10)||
' END IF;'||chr(10)||
' IF :p32_l_qmax = ''H'' THEN'||chr(10)||
' :p32_qmax := NULL;'||chr(10)||
' END IF;'||chr(10)||
' IF :p32_l_existing_metr_code = ''H'' THEN'||chr(10)||
' :p32_existing_metr_code := NULL;'||chr(10)||
' END IF;';
p:=p||'IF :P32_ID IS NULL THEN'||chr(10)||
' apex_application.g_request := ''INSERT'';'||chr(10)||
'ELSE'||chr(10)||
' apex_application.g_request := ''UPDATE'';'||chr(10)||
'END IF;';
wwv_flow_api.create_page_process(
p_id => 4306021265007421 + wwv_flow_api.g_id_offset,
p_id => 7743721810754248 + wwv_flow_api.g_id_offset,
p_flow_id=> wwv_flow.g_flow_id,
p_flow_step_id => 32,
p_process_sequence=> 39,
p_process_sequence=> 35,
p_process_point=> 'AFTER_SUBMIT',
p_process_type=> 'PLSQL',
p_process_name=> 'ResetMeterSizes',
p_process_name=> 'ChangeRequest',
p_process_sql_clob => p,
p_process_error_message=> '',
p_process_when=>'',
p_process_when_type=>'NEVER',
p_process_when=>'APPLY_METER_MODEL_CHANGES',
p_process_when_type=>'REQUEST_EQUALS_CONDITION',
p_process_success_message=> '',
p_process_is_stateful_y_n=>'N',
p_process_comment=>'');
@@ -20447,7 +20447,7 @@ wwv_flow_api.create_page_process(
p_process_name=> 'Get PK',
p_process_sql_clob => p,
p_process_error_message=> 'Unable to create enquiry, primary key error',
p_process_when=>'SITE_DETAIL_SAVE,SITE_ADDRESS_SAVE,CONTACT_DETAILS_SAVE,SECOND_CONTACT_DETAILS_SAVE,JOB_INFO_SAVE',
p_process_when=>'SITE_DETAIL_SAVE,SITE_ADDRESS_SAVE,CONTACT_DETAILS_SAVE,SECOND_CONTACT_DETAILS_SAVE,JOB_INFO_SAVE,INSERT',
p_process_when_type=>'REQUEST_IN_CONDITION',
p_process_success_message=> '',
p_process_is_stateful_y_n=>'N',
@@ -20478,7 +20478,7 @@ wwv_flow_api.create_page_process(
p_process_name=> 'Process Row of ENQUIRIES',
p_process_sql_clob => p,
p_process_error_message=> 'Unable to save enquiry',
p_process_when=>'delete_enquiry MANUAL_QUOTE',
p_process_when=>'delete_enquiry,MANUAL_QUOTE,APPLY_METER_MODEL_CHANGES',
p_process_when_type=>'REQUEST_NOT_IN_CONDITION',
p_process_success_message=> 'Enquiry has been saved.',
p_process_is_stateful_y_n=>'N',