diff --git a/Screens/f155.sql b/Screens/f155.sql index a462ea4..a21e9e1 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: 18:27 Wednesday January 30, 2008 +-- Date and Time: 16:25 Thursday January 31, 2008 -- Exported By: PRIESTJ -- Flashback: 0 -- Export Type: Application Export @@ -29,9 +29,9 @@ prompt APPLICATION 155 - webmip -- Items: 341 -- Computations: 1 -- Validations: 191 --- Processes: 86 +-- Processes: 87 -- Regions: 77 --- Buttons: 116 +-- Buttons: 117 -- 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 => '20080130182704', + p_checksum_salt_last_reset => '20080131162500', 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=> '20080130182704', + p_last_upd_yyyymmddhh24miss=> '20080131162500', p_required_roles=> wwv_flow_utilities.string_to_table2('')); @@ -245,11 +245,11 @@ wwv_flow_api.create_security_scheme( 'if mip_security.page_authorization(p_app_user=>:app_user, p_page_id=>:app_page_id) then'||chr(10)|| ''||chr(10)|| '--scheme code just for enquiry page, checks records against agent'||chr(10)|| -' if :P3_ID is null then'||chr(10)|| +' if :P32_ID is null then'||chr(10)|| ' return true;'||chr(10)|| ' end if; '||chr(10)|| ' if #OWNER#.mip_parties.get_user_role(v(''APP_USER'')) = ''AGENT'' then '||chr(10)|| -' open c_supplier(:P3_ID);'||chr(10)|| +' open c_supplier(:P32_ID);'||chr(10)|| ' fetch c_supplier into supplierid;'||chr(10)|| ' if c_supplier%found then'||chr(10)|| ' if #OWNER#.mip_parties.has_supplier(v(''APP_USER''), supplierid) then'||chr(10)|| @@ -12184,8 +12184,8 @@ wwv_flow_api.create_page( p_html_page_header => '', p_step_template => '', p_required_patch=> null + wwv_flow_api.g_id_offset, - p_last_updated_by => 'PRIESTJ', - p_last_upd_yyyymmddhh24miss => '20080130145608', + p_last_updated_by => 'DHARSHANIK', + p_last_upd_yyyymmddhh24miss => '20080131162256', p_page_is_public_y_n=> 'N', p_protection_level=> 'C', p_page_comment => ''); @@ -13490,7 +13490,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 => '20080130173226', + p_last_upd_yyyymmddhh24miss => '20080131160832', p_page_is_public_y_n=> 'N', p_protection_level=> 'C', p_page_comment => ''); @@ -13689,7 +13689,8 @@ wwv_flow_api.create_page_button( p_button_position=> 'BOTTOM', p_button_alignment=> 'RIGHT', p_button_redirect_url=> 'f?p=&APP_ID.:41:&SESSION.::&DEBUG.:41:P41_ENQU_ID,P41_PREVIOUS_PAGE:&P32_ID.,32', - p_button_condition=> ':P32_ID is not null and #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''A'') and not #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'')', + p_button_condition=> ':P32_ID is not null and '||chr(10)|| +'#OWNER#.mip_security.component_authorization(v(''APP_USER''),''icadmin'')', p_button_condition_type=> 'PLSQL_EXPRESSION', p_required_patch => null + wwv_flow_api.g_id_offset); @@ -13728,6 +13729,22 @@ wwv_flow_api.create_page_button( p_database_action=>'UPDATE', p_required_patch => null + wwv_flow_api.g_id_offset); +wwv_flow_api.create_page_button( + p_id => 31354104183698139 + wwv_flow_api.g_id_offset, + p_flow_id => wwv_flow.g_flow_id, + p_flow_step_id => 32, + p_button_sequence=> 190, + p_button_plug_id => 26597504596798255+wwv_flow_api.g_id_offset, + p_button_name => 'delete_enquiry', + p_button_image_alt=> 'Delete Enquiry', + p_button_position=> 'BOTTOM', + p_button_alignment=> 'RIGHT', + p_button_redirect_url=> 'javascript:confirmDelete(''Are you sure you want to delete this enquiry'',''delete_enquiry'');', + p_button_condition=> ':P32_ID is not null and '||chr(10)|| +'#OWNER#.mip_security.component_authorization(v(''APP_USER''),''icadmin'') and #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) = ''INP''', + p_button_condition_type=> 'PLSQL_EXPRESSION', + 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, @@ -14088,6 +14105,17 @@ wwv_flow_api.create_page_branch( p_branch_sequence=> 10, p_branch_comment=> ''); +wwv_flow_api.create_page_branch( + p_id=>31354418922698169 + 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.:30:&SESSION.::&DEBUG.&success_msg=#SUCCESS_MSG#', + p_branch_point=> 'AFTER_PROCESSING', + p_branch_type=> 'REDIRECT_URL', + p_branch_when_button_id=>31354104183698139+ 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, @@ -19827,7 +19855,10 @@ wwv_flow_api.create_page_process( p_process_type=> 'DML_FETCH_ROW', p_process_name=> 'Fetch Row from ENQUIRIES', p_process_sql_clob => p, - p_process_error_message=> 'Unable to fetch row.', + p_process_error_message=> 'Unable to fetch enquiry.', + p_process_when=>''||chr(10)|| +'', + p_process_when_type=>'', p_process_success_message=> '', p_process_is_stateful_y_n=>'N', p_required_patch=>null + wwv_flow_api.g_id_offset, @@ -19901,6 +19932,8 @@ 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', + p_process_when_type=>'REQUEST_NOT_IN_CONDITION', p_process_success_message=> 'Enquiry has been saved.', p_process_is_stateful_y_n=>'N', p_required_patch=>null + wwv_flow_api.g_id_offset, @@ -20273,6 +20306,43 @@ end; / +begin + +declare + p varchar2(32767) := null; + l_clob clob; + l_length number := 1; +begin +p:=p||'declare'||chr(10)|| +'l_success boolean;'||chr(10)|| +'begin'||chr(10)|| +'l_success := #OWNER#.mip_enquiry.delete_enquiry(:P32_ID);'||chr(10)|| +'end;'; + +wwv_flow_api.create_page_process( + p_id => 31425221873930380 + wwv_flow_api.g_id_offset, + p_flow_id=> wwv_flow.g_flow_id, + p_flow_step_id => 32, + p_process_sequence=> 240, + p_process_point=> 'AFTER_SUBMIT', + p_process_type=> 'PLSQL', + p_process_name=> 'delete enquiry', + p_process_sql_clob => p, + p_process_error_message=> 'Unable to delete enquiry, quote may exists for this enquiry', + p_process_when_button_id=>31354104183698139 + wwv_flow_api.g_id_offset, + p_process_when=>':P32_ID is not null and #OWNER#.mip_security.component_authorization(v(''APP_USER''),''sysadmin'')', + p_process_when_type=>'PLSQL_EXPRESSION', + p_process_success_message=> 'Enquiry has been deleted', + p_process_is_stateful_y_n=>'N', + p_required_patch=>null + wwv_flow_api.g_id_offset, + p_process_comment=>''); +end; +null; + +end; +/ + + begin --------------------------------------- @@ -20383,7 +20453,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 => '20080130182409', + p_last_upd_yyyymmddhh24miss => '20080131110647', p_page_is_public_y_n=> 'N', p_page_comment => ''); @@ -20536,7 +20606,7 @@ wwv_flow_api.create_report_columns ( p_column_alias=> 'COL03', p_column_display_sequence=> 3, p_column_heading=> '', - p_column_link=>'f?p=&APP_ID.:42:&SESSION.::&DEBUG.::P41_ID:#COL02#', + p_column_link=>'javascript:var confDel = null;confDel= confirm(''Are you sure you want to delete this file'');if (confDel==true){redirect(''f?p=&APP_ID.:42:&SESSION.::&DEBUG.::P41_ID:#COL02#'');} else{redirect(''f?p=&APP_ID.:41:&SESSION.::&DEBUG.::'');} ', p_column_linktext=>'Delete', p_column_alignment=>'LEFT', p_heading_alignment=>'CENTER', @@ -21026,10 +21096,10 @@ wwv_flow_api.create_page( p_help_text => '', p_html_page_header => '', p_step_template => '', - p_required_role => 16097609166220701+ wwv_flow_api.g_id_offset, + 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 => '20080130182432', + p_last_upd_yyyymmddhh24miss => '20080131101901', p_page_is_public_y_n=> 'N', p_protection_level=> 'C', p_page_comment => '');