diff --git a/Screens/f155.sql b/Screens/f155.sql index a3315a6..bf6dcfc 100644 --- a/Screens/f155.sql +++ b/Screens/f155.sql @@ -13,7 +13,7 @@ prompt APPLICATION 155 - webmip -- Application Export: -- Application: 155 -- Name: webmip --- Date and Time: 16:03 Monday January 21, 2008 +-- Date and Time: 17:06 Monday January 21, 2008 -- Exported By: PRIESTJ -- Flashback: 0 -- Export Type: Application Export @@ -28,10 +28,10 @@ prompt APPLICATION 155 - webmip -- Pages: 49 -- Items: 333 -- Computations: 1 --- Validations: 120 --- Processes: 82 +-- Validations: 121 +-- Processes: 84 -- Regions: 71 --- Buttons: 114 +-- Buttons: 115 -- Shared Components -- Breadcrumbs: 1 -- Entries 1 @@ -145,7 +145,7 @@ wwv_flow_api.create_flow( p_default_region_template=> 24740611526526770 + wwv_flow_api.g_id_offset, p_error_template => 24734616867526758 + wwv_flow_api.g_id_offset, p_page_protection_enabled_y_n=> 'N', - p_checksum_salt_last_reset => '20080121160316', + p_checksum_salt_last_reset => '20080121170602', p_home_link => 'f?p=&APP_ID.:1', p_box_width => '98%', p_flow_language => 'en-gb', @@ -185,7 +185,7 @@ wwv_flow_api.create_flow( p_default_menur_template => 24737010408526765 + wwv_flow_api.g_id_offset, p_default_listr_template => 24740611526526770 + wwv_flow_api.g_id_offset, p_last_updated_by => 'PRIESTJ', - p_last_upd_yyyymmddhh24miss=> '20080121160316', + p_last_upd_yyyymmddhh24miss=> '20080121170602', p_required_roles=> wwv_flow_utilities.string_to_table2('')); @@ -12258,7 +12258,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 => 'PRIESTJ', - p_last_upd_yyyymmddhh24miss => '20080121151553', + p_last_upd_yyyymmddhh24miss => '20080121170259', p_page_is_public_y_n=> 'N', p_protection_level=> 'C', p_page_comment => ''); @@ -12464,6 +12464,19 @@ wwv_flow_api.create_page_button( p_button_cattributes=>'name="Manual Quote"', p_required_patch => null + wwv_flow_api.g_id_offset); +wwv_flow_api.create_page_button( + p_id => 28015631689078569 + wwv_flow_api.g_id_offset, + p_flow_id => wwv_flow.g_flow_id, + p_flow_step_id => 32, + p_button_sequence=> 170, + p_button_plug_id => 26597504596798255+wwv_flow_api.g_id_offset, + p_button_name => 'REQUEST_QUOTATION', + p_button_image_alt=> 'Request Quotation', + p_button_position=> 'BOTTOM', + p_button_alignment=> 'RIGHT', + p_button_cattributes=>'id="request_quote" name="request_quote"', + p_required_patch => null + wwv_flow_api.g_id_offset); + wwv_flow_api.create_page_button( p_id => 26599921946798258 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, @@ -12763,6 +12776,17 @@ wwv_flow_api.create_page_branch( p_branch_sequence=> 10, p_branch_comment=> ''); +wwv_flow_api.create_page_branch( + p_id=>28015925492078573 + wwv_flow_api.g_id_offset, + p_flow_id=> wwv_flow.g_flow_id, + p_flow_step_id=> 32, + p_branch_action=> 'f?p=&FLOW_ID.:80:&SESSION.::&DEBUG.&success_msg=#SUCCESS_MSG#', + p_branch_point=> 'AFTER_PROCESSING', + p_branch_type=> 'REDIRECT_URL', + p_branch_when_button_id=>28015631689078569+ wwv_flow_api.g_id_offset, + p_branch_sequence=> 10, + p_branch_comment=> ''); + wwv_flow_api.create_page_branch( p_id=>26621023082798277 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, @@ -16410,6 +16434,26 @@ end; / +begin + +wwv_flow_api.create_page_validation( + p_id => 28014820822065964 + wwv_flow_api.g_id_offset, + p_flow_id => wwv_flow.g_flow_id, + p_flow_step_id => 32, + p_validation_name => 'INSTALL_BUILDING', + p_validation_sequence=> 30, + p_validation => ':P32_INSTALL_BUILDING is not null or :P32_INSTALL_SUB_BUILDING is not null', + p_validation_type => 'PLSQL_EXPRESSION', + p_error_message => 'Building or Sub building must have a value', + p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', + p_validation_comment=> ''); + +null; + +end; +/ + + begin declare @@ -16838,6 +16882,41 @@ end; / +begin + +declare + p varchar2(32767) := null; + l_clob clob; + l_length number := 1; +begin +p:=p||'--if the user is a I&C User then pass the current user + the agent on behalf, else sent the agent id'||chr(10)|| +'if :P32_AGENT_ID is not null then #OWNER#.mip_quotation.produce_quotes(:P32_ID,#OWNER#.mip_parties.get_user_id(v(''APP_USER'')),:P32_AGENT_ID);'||chr(10)|| +'else'||chr(10)|| +' #OWNER#.mip_quotation.produce_quotes(:P32_ID,:P32_AGENT_ID2);'||chr(10)|| +'end if;'; + +wwv_flow_api.create_page_process( + p_id => 28016423555114012 + wwv_flow_api.g_id_offset, + p_flow_id=> wwv_flow.g_flow_id, + p_flow_step_id => 32, + p_process_sequence=> 230, + p_process_point=> 'AFTER_SUBMIT', + p_process_type=> 'PLSQL', + p_process_name=> 'Request Quotation', + p_process_sql_clob => p, + p_process_error_message=> '', + p_process_when_button_id=>28015631689078569 + wwv_flow_api.g_id_offset, + p_process_success_message=> '', + p_process_is_stateful_y_n=>'N', + p_required_patch=>null + wwv_flow_api.g_id_offset, + p_process_comment=>''); +end; +null; + +end; +/ + + begin --------------------------------------- @@ -34539,7 +34618,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 => '20080118153844', + p_last_upd_yyyymmddhh24miss => '20080121160341', p_page_comment => ''); end; @@ -35081,6 +35160,38 @@ end; / +begin + +declare + p varchar2(32767) := null; + l_clob clob; + l_length number := 1; +begin +p:=p||'mip_quotation.accept_quote(p_qute_id => :P81_QUOTE_ID'||chr(10)|| +' ,p_description => ''Quote accepted by ''||:APP_USER);'; + +wwv_flow_api.create_page_process( + p_id => 28012906774872628 + wwv_flow_api.g_id_offset, + p_flow_id=> wwv_flow.g_flow_id, + p_flow_step_id => 81, + p_process_sequence=> 10, + p_process_point=> 'AFTER_SUBMIT', + p_process_type=> 'PLSQL', + p_process_name=> 'accept_quote', + p_process_sql_clob => p, + p_process_error_message=> 'An error occurred whilst accepting the quote.', + p_process_when_button_id=>26080222902874708 + wwv_flow_api.g_id_offset, + p_process_success_message=> 'Quote accepted.', + p_process_is_stateful_y_n=>'N', + p_required_patch=>null + wwv_flow_api.g_id_offset, + p_process_comment=>''); +end; +null; + +end; +/ + + begin declare