set define off set verify off set serveroutput on size 1000000 set feedback off begin wwv_flow.g_import_in_progress := true; end; / --application/set_environment prompt APPLICATION 4306 - APEX - Data Workshop -- -- Application Export: -- Application: 4306 -- Name: APEX - Data Workshop -- Date and Time: 08:02 Tuesday May 19, 2009 -- Exported By: -- Flashback: 0 -- Export Type: Application Export -- Version: 3.2.1.00.08 -- Import: -- Using application builder -- or -- Using SQL*Plus as the Oracle user APEX_030200 or as the owner (parsing schema) of the application. -- Application Statistics: -- Pages: 33 -- Items: 112 -- Computations: 27 -- Validations: 75 -- Processes: 38 -- Regions: 134 -- Buttons: 75 -- Shared Components -- Breadcrumbs: 1 -- Entries 34 -- Items: 6 -- Computations: 1 -- Processes: 1 -- Parent Tabs: 0 -- Tab Sets: 0 -- Tabs: 0 -- NavBars: 2 -- Lists: 13 -- Shortcuts: 1 -- Themes: 0 -- Templates: -- Page: 3 -- List: 7 -- Report: 2 -- Label: 3 -- Region: 10 -- Messages: 0 -- Build Options: 1 -- AAAA PPPPP EEEEEE XX XX -- AA AA PP PP EE XX XX -- AA AA PP PP EE XX XX -- AAAAAAAAAA PPPPP EEEE XXXX -- AA AA PP EE XX XX -- AA AA PP EE XX XX -- AA AA PP EEEEEE XX XX prompt Set Credentials... begin -- Assumes you are running the script connected to SQL*Plus as the Oracle user APEX_030200 or as the owner (parsing schema) of the application. wwv_flow_api.set_security_group_id(p_security_group_id=>10); end; / begin wwv_flow.g_import_in_progress := true; end; / begin select value into wwv_flow_api.g_nls_numeric_chars from nls_session_parameters where parameter='NLS_NUMERIC_CHARACTERS'; end; / begin execute immediate 'alter session set nls_numeric_characters=''.,'''; end; / begin wwv_flow.g_browser_language := 'en-us'; end; / prompt Check Compatibility... begin -- This date identifies the minimum version required to import this file. wwv_flow_api.set_version(p_version_yyyy_mm_dd=>'2009.01.12'); end; / prompt Set Application ID... begin -- SET APPLICATION ID wwv_flow.g_flow_id := 4306; wwv_flow_api.g_id_offset := 0; null; end; / --application/delete_application begin -- Remove Application wwv_flow_api.remove_flow(4306); end; / begin wwv_flow_audit.remove_audit_trail(4306); null; end; / --application/create_application begin wwv_flow_api.create_flow( p_id => 4306, p_display_id=> 4306, p_owner => 'APEX_030200', p_name => 'APEX - Data Workshop', p_alias => 'A198388103614432405', p_page_view_logging => 'YES', p_default_page_template=> 3485606247566446.4306 + wwv_flow_api.g_id_offset, p_printer_friendly_template=> 9113661096283.4306 + wwv_flow_api.g_id_offset, p_default_region_template=> 9113673096289.4306 + wwv_flow_api.g_id_offset, p_error_template => 3485606247566446.4306 + wwv_flow_api.g_id_offset, p_charset => 'utf-8', p_checksum_salt_last_reset => '20090519073429', p_max_session_length_sec=> 28800, p_home_link => 'f?p=4300:9:&SESSION.', p_flow_language => 'zh-cn', p_flow_language_derived_from=> 'BROWSER', p_flow_image_prefix => '/i/', p_documentation_banner=> '', p_authentication => 'CUSTOM2', p_login_url => 'development_service_home_login', p_logout_url => 'wwv_flow_custom_auth_std.logout?p_this_flow=&FLOW_ID.&p_next_flow_page_sess=4550:8:&SESSION.', p_application_tab_set=> 1, p_logo_image => '#IMAGE_PREFIX#htmldb/apex_logo.gif', p_logo_image_attributes => 'width="300" height="30" alt="&PRODUCT_NAME."', p_public_url_prefix => '', p_public_user => 'APEX_PUBLIC_USER', p_dbauth_url_prefix => '', p_proxy_server => '', p_cust_authentication_process=> '.'||to_char(60872513468265716 + wwv_flow_api.g_id_offset)||'.', p_cust_authentication_page=> '', p_custom_auth_login_url=> '', p_flow_version => '&PRODUCT_NAME. 3.2.1.00.08', p_flow_status => 'AVAILABLE_W_EDIT_LINK', p_flow_unavailable_text=> 'This application is currently unavailable.', p_build_status => 'RUN_AND_BUILD', p_exact_substitutions_only=> 'Y', p_vpd => '', p_security_scheme=>'FLOW: DATA_LOADER', p_csv_encoding => 'Y', p_theme_id => 3, p_default_label_template => 103909823939152778.4306 + wwv_flow_api.g_id_offset, p_default_report_template => 10583525904875984.4306 + wwv_flow_api.g_id_offset, p_default_list_template => 119835024987557728.4306 + wwv_flow_api.g_id_offset, p_default_menu_template => 6680621597641306.4306 + wwv_flow_api.g_id_offset, p_substitution_string_01 => 'LOGOUT', p_substitution_value_01 => '注销', p_substitution_string_02 => 'PRODUCT_NAME', p_substitution_value_02 => 'Application Express', p_substitution_string_03 => 'MSG_COMPANY', p_substitution_value_03 => '工作区: &COMPANY.', p_substitution_string_04 => 'MSG_LANGUAGE', p_substitution_value_04 => '语言', p_substitution_string_05 => 'MSG_COPYRIGHT', p_substitution_value_05 => '版权所有 (c) 1999, 2009, Oracle。保留所有权利。', p_substitution_string_06 => 'MSG_USER', p_substitution_value_06 => '用户', p_substitution_string_07 => 'MSG_JSCRIPT', p_substitution_value_07 => '必须在启用 JavaScript 的情况下运行此产品。', p_substitution_string_08 => 'MSG_TBL_SUMMARY', p_substitution_value_08 => '页布局表', p_substitution_string_09 => 'DONE', p_substitution_value_09 => '完成', p_substitution_string_10 => 'TOP', p_substitution_value_10 => '顶部', p_substitution_string_11 => 'CLOSE', p_substitution_value_11 => '关闭', p_substitution_string_12 => 'DATE_FORMAT', p_substitution_value_12 => 'yyyy-mm-dd', p_substitution_string_13 => 'LONG_DATE_FORMAT', p_substitution_value_13 => 'fmDay yyyy"年"mm"月"dd"日"', p_substitution_string_14 => 'TIME_FORMAT', p_substitution_value_14 => 'AM hh:mi:ss', p_substitution_string_15 => 'DATE_TIME_FORMAT', p_substitution_value_15 => 'yyyy-mm-dd AM hh:mi:ss', p_substitution_string_16 => 'RETURN_TO_APPLICATION', p_substitution_value_16 => '返回应用程序', p_substitution_string_17 => 'DELETE_MSG', p_substitution_value_17 => '是否要执行此删除操作?', p_substitution_string_18 => 'FIND', p_substitution_value_18 => '查找', p_last_updated_by => '', p_last_upd_yyyymmddhh24miss=> '20090518144253', p_required_roles=> wwv_flow_utilities.string_to_table2('')); end; / prompt ...authorization schemes -- begin null; end; / --application/shared_components/navigation/navigation_bar prompt ...navigation bar entries -- begin wwv_flow_api.create_icon_bar_item( p_id => 39891301589182701.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_icon_sequence => 1, p_icon_image => '', p_icon_subtext => '帮助', p_icon_target => 'javascript:popupURL(''wwv_flow_help.show_help?p_lang=&BROWSER_LANGUAGE.&p_session=&APP_SESSION.&p_flow_id=&APP_TRANSLATION_ID.&p_step_id=&APP_TRANSLATION_PAGE_ID.'');', p_icon_image_alt => '帮助', p_icon_height => null, p_icon_width => null, p_icon_height2 => null, p_icon_width2 => null, p_icon_bar_disp_cond => '', p_icon_bar_disp_cond_type => '', p_begins_on_new_line=> 'NO', p_cell_colspan => 1, p_onclick=> '', p_icon_bar_comment=> ''); wwv_flow_api.create_icon_bar_item( p_id => 39955524108615064.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_icon_sequence => 10, p_icon_image => '', p_icon_subtext => '注销', p_icon_target => 'wwv_flow_custom_auth_std.logout?p_this_flow=&APP_ID.&p_next_flow_page_sess=4550:8:&SESSION.', p_icon_image_alt => '注销', p_icon_height => null, p_icon_width => null, p_icon_height2 => null, p_icon_width2 => null, p_icon_bar_disp_cond => '', p_icon_bar_disp_cond_type => '', p_begins_on_new_line=> 'NO', p_cell_colspan => 1, p_onclick=> '', p_icon_bar_comment=> ''); end; / prompt ...application processes -- --application/shared_components/logic/application_processes/ajax_collect_clob begin declare p varchar2(32767) := null; l_clob clob; l_length number := 1; begin p:=p||'declare'||chr(10)|| ' l_code clob := empty_clob;'||chr(10)|| 'begin'||chr(10)|| ' dbms_lob.createtemporary( l_code, false, dbms_lob.SESSION );'||chr(10)|| ' for i in 1..wwv_flow.g_f01.count loop'||chr(10)|| ' dbms_lob.writeappend(l_code,length(wwv_flow.g_f01(i)),wwv_flow.g_f01(i));'||chr(10)|| ' end loop;'||chr(10)|| 'apex_collection.create_or_truncate_collection(p_collection_name=>''CLOB_CONTENT'');'||chr(10)|| 'apex_collection.add_member(p_collection_name=>''CLOB_CONTENT'',p_clob001=>'; p:=p||'l_code);'||chr(10)|| 'htp.prn(''SUCCESS'');'||chr(10)|| 'end;'; wwv_flow_api.create_flow_process( p_id => 49906314503034042.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_process_sequence=> 1, p_process_point => 'ON_DEMAND', p_process_type=> 'PLSQL', p_process_name=> 'AJAX_COLLECT_CLOB', p_process_sql_clob=> p, p_process_error_message=> '', p_process_when=> '', p_process_when_type=> '', p_required_patch=> null + wwv_flow_api.g_id_offset, p_process_comment=> ''); end; null; end; / prompt ...application items -- --application/shared_components/logic/application_items/company begin wwv_flow_api.create_flow_item( p_id=> 5126097226.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_name=> 'COMPANY', p_data_type=> 'VARCHAR', p_is_persistent=> 'Y', p_protection_level=> '', p_required_patch=> null + wwv_flow_api.g_id_offset, p_item_comment=> 'name of company for mutli company oracle platform'); null; end; / --application/shared_components/logic/application_items/f4300_imex_batch_id begin wwv_flow_api.create_flow_item( p_id=> 25339931440732484.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_name=> 'F4300_IMEX_BATCH_ID', p_data_type=> 'NUMBER', p_is_persistent=> 'Y', p_protection_level=> '', p_required_patch=> null + wwv_flow_api.g_id_offset, p_item_comment=> ''); null; end; / --application/shared_components/logic/application_items/f4300_last_view begin wwv_flow_api.create_flow_item( p_id=> 48603115971458169.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_name=> 'F4300_LAST_VIEW', p_data_type=> 'VARCHAR', p_is_persistent=> 'Y', p_protection_level=> '', p_required_patch=> null + wwv_flow_api.g_id_offset, p_item_comment=> ''); null; end; / --application/shared_components/logic/application_items/f4300_load_job begin wwv_flow_api.create_flow_item( p_id=> 242549145362.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_name=> 'F4300_LOAD_JOB', p_data_type=> 'NUMBER', p_is_persistent=> 'Y', p_protection_level=> '', p_required_patch=> null + wwv_flow_api.g_id_offset, p_item_comment=> ''); null; end; / --application/shared_components/logic/application_items/fsp_after_login_url begin wwv_flow_api.create_flow_item( p_id=> 147029609296398557.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_name=> 'FSP_AFTER_LOGIN_URL', p_data_type=> 'VARCHAR', p_is_persistent=> 'Y', p_protection_level=> '', p_required_patch=> null + wwv_flow_api.g_id_offset, p_item_comment=> 'Used by Custom2 authentication for deep linking support'); null; end; / --application/shared_components/logic/application_items/last_view begin wwv_flow_api.create_flow_item( p_id=> 48610196642071039.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_name=> 'LAST_VIEW', p_data_type=> 'VARCHAR', p_is_persistent=> 'Y', p_protection_level=> '', p_required_patch=> null + wwv_flow_api.g_id_offset, p_item_comment=> ''); null; end; / prompt ...application level computations -- begin --application/shared_components/logic/application_computations/company wwv_flow_api.create_flow_computation ( p_id => 5128100953.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_computation_sequence => 10, p_computation_item => 'COMPANY', p_computation_point => 'ON_NEW_INSTANCE', p_computation_type => 'FUNCTION_BODY', p_computation_processed=> 'ON_NEW_INSTANCE', p_computation => 'return wwv_flow.get_company_name;', p_compute_when=> '', p_compute_when_type=> '', p_computation_error_message=>'', p_computation_comment=> '', p_required_patch=> null + wwv_flow_api.g_id_offset); end; / prompt ...Application Tabs -- begin null; end; / prompt ...Application Parent Tabs -- begin null; end; / prompt ...Shared Lists of values -- --application/shared_components/user_interface/lov/case_sensitive_y begin wwv_flow_api.create_list_of_values ( p_id => 87923517360560740.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_lov_name => 'CASE.SENSITIVE.Y', p_lov_query=> '.'||to_char(87923517360560740 + wwv_flow_api.g_id_offset)||'.'); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>87923721904560740.4306 + wwv_flow_api.g_id_offset, p_lov_id=>87923517360560740.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>10, p_lov_disp_value=>'区分大小写', p_lov_return_value=>'Y', p_lov_data_comment=> ''); null; end; / --application/shared_components/user_interface/lov/create_table_schemas begin wwv_flow_api.create_list_of_values ( p_id => 23546816846659473.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_lov_name => 'CREATE_TABLE_SCHEMAS', p_lov_query=> 'declare'||chr(10)|| ' q varchar2(32767) := null;'||chr(10)|| 'begin'||chr(10)|| ' q:=q||''select htf.escape_sc(c.schema) d, c.schema v '';'||chr(10)|| ' q:=q||''from wwv_flow_company_schemas c, '';'||chr(10)|| ' q:=q||'' wwv_flow_fnd_user u '';'||chr(10)|| ' q:=q||''where c.security_group_id = :flow_security_group_id and '';'||chr(10)|| ' q:=q||'' u.security_group_id = :flow_security_group_id and '';'||chr(10)|| ' q:=q||'' u.user_name = :flow_user and '';'||chr(10)|| ' q:=q||'' (u.ALLOW_ACCESS_TO_SCHEMAS is null or '';'||chr(10)|| ' q:=q||'' instr('''':''''||u.ALLOW_ACCESS_TO_SCHEMAS||'''':'''','''':''''||c.schema||'''':'''')>0) '';'||chr(10)|| ' if wwv_flow_global.g_xe then'||chr(10)|| ' q:=q||'' and exists (select null '';'||chr(10)|| ' q:=q||'' from sys.dba_sys_privs '';'||chr(10)|| ' q:=q||'' where privilege = ''''CREATE TABLE'''' '';'||chr(10)|| ' q:=q||'' and grantee = c.schema '';'||chr(10)|| ' q:=q||'' union all '';'||chr(10)|| ' q:=q||'' select null '';'||chr(10)|| ' q:=q||'' from sys.dba_sys_privs s, sys.dba_role_privs r '';'||chr(10)|| ' q:=q||'' where r.granted_role=s.grantee '';'||chr(10)|| ' q:=q||'' and r.grantee = c.schema '';'||chr(10)|| ' q:=q||'' and s.privilege = ''''CREATE TABLE'''') '';'||chr(10)|| ' else'||chr(10)|| ' q:=q||'' and exists (select null '';'||chr(10)|| ' q:=q||'' from sys.dba_sys_privs '';'||chr(10)|| ' q:=q||'' where privilege = ''''CREATE TABLE'''' '';'||chr(10)|| ' q:=q||'' and grantee = c.schema) '';'||chr(10)|| ' end if; '||chr(10)|| ' q:=q||'' and exists (select null '';'||chr(10)|| ' q:=q||'' from sys.dba_users '';'||chr(10)|| ' q:=q||'' where username = c.schema) '';'||chr(10)|| ' q:=q||''order by 1 '';'||chr(10)|| ' '||chr(10)|| ' return q;'||chr(10)|| 'end;'); null; end; / --application/shared_components/user_interface/lov/export_as_file_y begin wwv_flow_api.create_list_of_values ( p_id => 87944005995777613.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_lov_name => 'EXPORT.AS.FILE.Y', p_lov_query=> '.'||to_char(87944005995777613 + wwv_flow_api.g_id_offset)||'.'); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>87944229029777613.4306 + wwv_flow_api.g_id_offset, p_lov_id=>87944005995777613.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>10, p_lov_disp_value=>'导出为文件', p_lov_return_value=>'Y', p_lov_data_comment=> ''); null; end; / --application/shared_components/user_interface/lov/export_file_format begin wwv_flow_api.create_list_of_values ( p_id => 143183002952786622.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_lov_name => 'EXPORT.FILE_FORMAT', p_lov_query=> '.'||to_char(143183002952786622 + wwv_flow_api.g_id_offset)||'.'); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>143183319798786629.4306 + wwv_flow_api.g_id_offset, p_lov_id=>143183002952786622.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>1, p_lov_disp_value=>'Unix', p_lov_return_value=>'UNIX', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>143183511674786632.4306 + wwv_flow_api.g_id_offset, p_lov_id=>143183002952786622.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>2, p_lov_disp_value=>'DOS', p_lov_return_value=>'DOS', p_lov_data_comment=> ''); null; end; / --application/shared_components/user_interface/lov/i18n_iana_charset begin wwv_flow_api.create_list_of_values ( p_id => 135399325911344822.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_lov_name => 'I18N_IANA_CHARSET', p_reference_id=> 144796827445692396, p_lov_query=> '.'||to_char(135399325911344822 + wwv_flow_api.g_id_offset)||'.'); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70982304215423500.4306 + wwv_flow_api.g_id_offset, p_lov_id=>135399325911344822.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>10, p_lov_disp_value=>'阿拉伯语 ISO-8859-6', p_lov_return_value=>'iso-8859-6', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70982502342423500.4306 + wwv_flow_api.g_id_offset, p_lov_id=>135399325911344822.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>20, p_lov_disp_value=>'阿拉伯语 Windows 1256', p_lov_return_value=>'windows-1256', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70982721979423500.4306 + wwv_flow_api.g_id_offset, p_lov_id=>135399325911344822.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>30, p_lov_disp_value=>'中文 Big5', p_lov_return_value=>'big5', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70982904632423500.4306 + wwv_flow_api.g_id_offset, p_lov_id=>135399325911344822.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>40, p_lov_disp_value=>'中文 GBK', p_lov_return_value=>'gbk', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70983131546423500.4306 + wwv_flow_api.g_id_offset, p_lov_id=>135399325911344822.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>50, p_lov_disp_value=>'西里尔语 ISO-8859-5', p_lov_return_value=>'iso-8859-5', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70983303089423501.4306 + wwv_flow_api.g_id_offset, p_lov_id=>135399325911344822.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>60, p_lov_disp_value=>'西里尔语 KOI8-R', p_lov_return_value=>'koi8-r', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70983516076423501.4306 + wwv_flow_api.g_id_offset, p_lov_id=>135399325911344822.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>70, p_lov_disp_value=>'西里尔语 KOI8-U', p_lov_return_value=>'koi8-u', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70983709919423501.4306 + wwv_flow_api.g_id_offset, p_lov_id=>135399325911344822.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>80, p_lov_disp_value=>'西里尔语 Windows 1251', p_lov_return_value=>'windows-1251', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70983918411423501.4306 + wwv_flow_api.g_id_offset, p_lov_id=>135399325911344822.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>90, p_lov_disp_value=>'东欧语言 ISO-8859-2', p_lov_return_value=>'iso-8859-2', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70984123082423502.4306 + wwv_flow_api.g_id_offset, p_lov_id=>135399325911344822.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>100, p_lov_disp_value=>'东欧语言 Windows 1250', p_lov_return_value=>'windows-1250', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70984306836423503.4306 + wwv_flow_api.g_id_offset, p_lov_id=>135399325911344822.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>110, p_lov_disp_value=>'希腊语 ISO-8859-7', p_lov_return_value=>'iso-8859-7', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70984532472423503.4306 + wwv_flow_api.g_id_offset, p_lov_id=>135399325911344822.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>120, p_lov_disp_value=>'希腊语 Windows 1253', p_lov_return_value=>'windows-1253', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70984727853423503.4306 + wwv_flow_api.g_id_offset, p_lov_id=>135399325911344822.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>130, p_lov_disp_value=>'希伯来语 ISO-8859-8-i', p_lov_return_value=>'iso-8859-8-i', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70984900365423503.4306 + wwv_flow_api.g_id_offset, p_lov_id=>135399325911344822.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>140, p_lov_disp_value=>'希伯来语 Windows 1255', p_lov_return_value=>'windows-1255', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70985116658423503.4306 + wwv_flow_api.g_id_offset, p_lov_id=>135399325911344822.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>150, p_lov_disp_value=>'日语 EUC', p_lov_return_value=>'euc-jp', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70985320706423503.4306 + wwv_flow_api.g_id_offset, p_lov_id=>135399325911344822.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>160, p_lov_disp_value=>'日语 Shift JIS', p_lov_return_value=>'shift_jis', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70985502577423503.4306 + wwv_flow_api.g_id_offset, p_lov_id=>135399325911344822.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>170, p_lov_disp_value=>'朝鲜语 EUC', p_lov_return_value=>'euc-kr', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70985721929423503.4306 + wwv_flow_api.g_id_offset, p_lov_id=>135399325911344822.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>180, p_lov_disp_value=>'北欧语言 ISO-8859-4', p_lov_return_value=>'iso-8859-4', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70985923459423503.4306 + wwv_flow_api.g_id_offset, p_lov_id=>135399325911344822.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>190, p_lov_disp_value=>'北欧语言 Windows 1257', p_lov_return_value=>'windows-1257', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70986113653423503.4306 + wwv_flow_api.g_id_offset, p_lov_id=>135399325911344822.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>200, p_lov_disp_value=>'南欧语言 ISO-8859-3', p_lov_return_value=>'iso-8859-3', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70986331235423503.4306 + wwv_flow_api.g_id_offset, p_lov_id=>135399325911344822.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>210, p_lov_disp_value=>'泰语 TIS-620', p_lov_return_value=>'tis-620', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70986512702423504.4306 + wwv_flow_api.g_id_offset, p_lov_id=>135399325911344822.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>220, p_lov_disp_value=>'土耳其语 ISO-8859-9', p_lov_return_value=>'iso-8859-9', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70986726925423504.4306 + wwv_flow_api.g_id_offset, p_lov_id=>135399325911344822.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>230, p_lov_disp_value=>'土耳其语 Windows 1254', p_lov_return_value=>'windows-1254', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70986925310423504.4306 + wwv_flow_api.g_id_offset, p_lov_id=>135399325911344822.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>240, p_lov_disp_value=>'Unicode UTF-8', p_lov_return_value=>'utf-8', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70987104467423504.4306 + wwv_flow_api.g_id_offset, p_lov_id=>135399325911344822.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>242, p_lov_disp_value=>'Unicode UTF-16 Big Endian', p_lov_return_value=>'utf-16be', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70987313654423504.4306 + wwv_flow_api.g_id_offset, p_lov_id=>135399325911344822.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>244, p_lov_disp_value=>'Unicode UTF-16 Little Endian', p_lov_return_value=>'utf-16le', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70987511911423504.4306 + wwv_flow_api.g_id_offset, p_lov_id=>135399325911344822.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>248, p_lov_disp_value=>'US-ASCII', p_lov_return_value=>'us-ascii', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70987715835423504.4306 + wwv_flow_api.g_id_offset, p_lov_id=>135399325911344822.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>250, p_lov_disp_value=>'越南语 Windows 1258', p_lov_return_value=>'windows-1258', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70987907270423504.4306 + wwv_flow_api.g_id_offset, p_lov_id=>135399325911344822.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>260, p_lov_disp_value=>'西欧语言 ISO-8859-1', p_lov_return_value=>'iso-8859-1', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70988132193423504.4306 + wwv_flow_api.g_id_offset, p_lov_id=>135399325911344822.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>270, p_lov_disp_value=>'西欧语言 Windows 1252', p_lov_return_value=>'windows-1252', p_lov_data_comment=> ''); null; end; / --application/shared_components/user_interface/lov/i18n_iana_db_charset begin wwv_flow_api.create_list_of_values ( p_id => 139941401949707953.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_lov_name => 'I18N_IANA_DB_CHARSET', p_reference_id=> 144802427115692411, p_lov_query=> '.'||to_char(139941401949707953 + wwv_flow_api.g_id_offset)||'.'); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70963429018421249.4306 + wwv_flow_api.g_id_offset, p_lov_id=>139941401949707953.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>10, p_lov_disp_value=>'阿拉伯语 ISO-8859-6', p_lov_return_value=>'AR8ISO8859P6', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70963607302421249.4306 + wwv_flow_api.g_id_offset, p_lov_id=>139941401949707953.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>20, p_lov_disp_value=>'阿拉伯语 Windows 1256', p_lov_return_value=>'AR8MSWIN1256', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70963801762421249.4306 + wwv_flow_api.g_id_offset, p_lov_id=>139941401949707953.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>30, p_lov_disp_value=>'中文 Big5', p_lov_return_value=>'ZHT16MSWIN950', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70964002767421250.4306 + wwv_flow_api.g_id_offset, p_lov_id=>139941401949707953.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>40, p_lov_disp_value=>'中文 GBK', p_lov_return_value=>'ZHS16GBK', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70964217909421250.4306 + wwv_flow_api.g_id_offset, p_lov_id=>139941401949707953.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>50, p_lov_disp_value=>'西里尔语 ISO-8859-5', p_lov_return_value=>'CL8ISO8859P5', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70964409183421250.4306 + wwv_flow_api.g_id_offset, p_lov_id=>139941401949707953.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>60, p_lov_disp_value=>'西里尔语 KOI8-R', p_lov_return_value=>'CL8KOI8R', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70964604460421250.4306 + wwv_flow_api.g_id_offset, p_lov_id=>139941401949707953.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>70, p_lov_disp_value=>'西里尔语 KOI8-U', p_lov_return_value=>'CL8KOI8U', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70964804920421250.4306 + wwv_flow_api.g_id_offset, p_lov_id=>139941401949707953.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>80, p_lov_disp_value=>'西里尔语 Windows 1251', p_lov_return_value=>'CL8MSWIN1251', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70965031359421250.4306 + wwv_flow_api.g_id_offset, p_lov_id=>139941401949707953.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>90, p_lov_disp_value=>'东欧语言 ISO-8859-2', p_lov_return_value=>'EE8ISO8859P2', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70965231606421250.4306 + wwv_flow_api.g_id_offset, p_lov_id=>139941401949707953.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>100, p_lov_disp_value=>'东欧语言 Windows 1250', p_lov_return_value=>'EE8MSWIN1250', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70965424117421250.4306 + wwv_flow_api.g_id_offset, p_lov_id=>139941401949707953.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>110, p_lov_disp_value=>'希腊语 ISO-8859-7', p_lov_return_value=>'EL8ISO8859P7', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70965603027421250.4306 + wwv_flow_api.g_id_offset, p_lov_id=>139941401949707953.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>120, p_lov_disp_value=>'希腊语 Windows 1253', p_lov_return_value=>'EL8MSWIN1253', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70965818420421250.4306 + wwv_flow_api.g_id_offset, p_lov_id=>139941401949707953.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>130, p_lov_disp_value=>'希伯来语 ISO-8859-8-i', p_lov_return_value=>'IW8ISO8859P8', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70966015024421250.4306 + wwv_flow_api.g_id_offset, p_lov_id=>139941401949707953.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>140, p_lov_disp_value=>'希伯来语 Windows 1255', p_lov_return_value=>'IW8MSWIN1255', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70966219264421250.4306 + wwv_flow_api.g_id_offset, p_lov_id=>139941401949707953.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>150, p_lov_disp_value=>'日语 EUC', p_lov_return_value=>'JA16EUC', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70966421516421251.4306 + wwv_flow_api.g_id_offset, p_lov_id=>139941401949707953.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>160, p_lov_disp_value=>'日语 Shift JIS', p_lov_return_value=>'JA16SJIS', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70966607691421251.4306 + wwv_flow_api.g_id_offset, p_lov_id=>139941401949707953.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>170, p_lov_disp_value=>'朝鲜语 EUC', p_lov_return_value=>'KO16MSWIN949', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70966823352421251.4306 + wwv_flow_api.g_id_offset, p_lov_id=>139941401949707953.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>180, p_lov_disp_value=>'北欧语言 ISO-8859-4', p_lov_return_value=>'NEE8ISO8859P4', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70967023086421251.4306 + wwv_flow_api.g_id_offset, p_lov_id=>139941401949707953.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>190, p_lov_disp_value=>'北欧语言 Windows 1257', p_lov_return_value=>'BLT8MSWIN1257', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70967219758421251.4306 + wwv_flow_api.g_id_offset, p_lov_id=>139941401949707953.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>200, p_lov_disp_value=>'南欧语言 ISO-8859-3', p_lov_return_value=>'SE8ISO8859P3', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70967416340421251.4306 + wwv_flow_api.g_id_offset, p_lov_id=>139941401949707953.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>210, p_lov_disp_value=>'泰语 TIS-620', p_lov_return_value=>'TH8TISASCII', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70967611593421251.4306 + wwv_flow_api.g_id_offset, p_lov_id=>139941401949707953.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>220, p_lov_disp_value=>'土耳其语 ISO-8859-9', p_lov_return_value=>'WE8ISO8859P9', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70967827650421251.4306 + wwv_flow_api.g_id_offset, p_lov_id=>139941401949707953.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>230, p_lov_disp_value=>'土耳其语 Windows 1254', p_lov_return_value=>'TR8MSWIN1254', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70968000086421251.4306 + wwv_flow_api.g_id_offset, p_lov_id=>139941401949707953.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>240, p_lov_disp_value=>'Unicode UTF-8', p_lov_return_value=>'AL32UTF8', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70968201422421251.4306 + wwv_flow_api.g_id_offset, p_lov_id=>139941401949707953.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>242, p_lov_disp_value=>'Unicode UTF-16 Big Endian', p_lov_return_value=>'AL16UTF16', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70968400569421251.4306 + wwv_flow_api.g_id_offset, p_lov_id=>139941401949707953.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>244, p_lov_disp_value=>'Unicode UTF-16 Little Endian', p_lov_return_value=>'AL16UTF16LE', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70968614356421251.4306 + wwv_flow_api.g_id_offset, p_lov_id=>139941401949707953.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>248, p_lov_disp_value=>'US-ASCII', p_lov_return_value=>'US7ASCII', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70968802200421251.4306 + wwv_flow_api.g_id_offset, p_lov_id=>139941401949707953.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>250, p_lov_disp_value=>'越南语 Windows 1258', p_lov_return_value=>'VN8MSWIN1258', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70969016331421252.4306 + wwv_flow_api.g_id_offset, p_lov_id=>139941401949707953.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>260, p_lov_disp_value=>'西欧语言 ISO-8859-1', p_lov_return_value=>'WE8ISO8859P1', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70969214663421252.4306 + wwv_flow_api.g_id_offset, p_lov_id=>139941401949707953.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>270, p_lov_disp_value=>'西欧语言 Windows 1252', p_lov_return_value=>'WE8MSWIN1252', p_lov_data_comment=> ''); null; end; / --application/shared_components/user_interface/lov/include_col_names_y begin wwv_flow_api.create_list_of_values ( p_id => 87945815476789819.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_lov_name => 'INCLUDE.COL.NAMES.Y', p_lov_query=> '.'||to_char(87945815476789819 + wwv_flow_api.g_id_offset)||'.'); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>87946002718789820.4306 + wwv_flow_api.g_id_offset, p_lov_id=>87945815476789819.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>10, p_lov_disp_value=>'包含列名', p_lov_return_value=>'Y', p_lov_data_comment=> ''); null; end; / --application/shared_components/user_interface/lov/iscolumn_name_text begin wwv_flow_api.create_list_of_values ( p_id => 87953325959849588.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_lov_name => 'ISCOLUMN.NAME.TEXT', p_lov_query=> 'select ''''||'||chr(10)|| 'wwv_flow_lang.system_message(''F4300_INSTRUCT_TEXT'')||'''' d, ''Y'' r from dual'); null; end; / --application/shared_components/user_interface/lov/list_schema_owners begin wwv_flow_api.create_list_of_values ( p_id => 182776719411.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_lov_name => 'LIST_SCHEMA_OWNERS', p_lov_query=> 'select htf.escape_sc(c.schema) d, c.schema v'||chr(10)|| 'from wwv_flow_company_schemas c,'||chr(10)|| ' wwv_flow_fnd_user u'||chr(10)|| 'where c.security_group_id = :flow_security_group_id and'||chr(10)|| ' u.security_group_id = :flow_security_group_id and'||chr(10)|| ' u.user_name = :flow_user and'||chr(10)|| ' (u.ALLOW_ACCESS_TO_SCHEMAS is null or'||chr(10)|| ' instr('':''||u.ALLOW_ACCESS_TO_SCHEMAS||'':'','':''||c.schema||'':'')>0)'||chr(10)|| 'order by 1'||chr(10)|| ''); null; end; / --application/shared_components/user_interface/lov/load_option begin wwv_flow_api.create_list_of_values ( p_id => 87921416882551159.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_lov_name => 'LOAD.OPTION', p_lov_query=> '.'||to_char(87921416882551159 + wwv_flow_api.g_id_offset)||'.'); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>87921609839551159.4306 + wwv_flow_api.g_id_offset, p_lov_id=>87921416882551159.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>10, p_lov_disp_value=>'上载文件 (逗号分隔格式或制表符分隔格式)', p_lov_return_value=>'UPLOAD', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>87921801389551160.4306 + wwv_flow_api.g_id_offset, p_lov_id=>87921416882551159.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>20, p_lov_disp_value=>'复制和粘贴', p_lov_return_value=>'PASTE', p_lov_data_comment=> ''); null; end; / --application/shared_components/user_interface/lov/load_data_types begin wwv_flow_api.create_list_of_values ( p_id => 20828314943711235.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_lov_name => 'LOAD_DATA_TYPES', p_lov_query=> '.'||to_char(20828314943711235 + wwv_flow_api.g_id_offset)||'.'); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>20828624229711248.4306 + wwv_flow_api.g_id_offset, p_lov_id=>20828314943711235.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>1, p_lov_disp_value=>'NUMBER', p_lov_return_value=>'NUMBER', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>20828808097711250.4306 + wwv_flow_api.g_id_offset, p_lov_id=>20828314943711235.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>2, p_lov_disp_value=>'VARCHAR2', p_lov_return_value=>'VARCHAR2', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>20829026553711250.4306 + wwv_flow_api.g_id_offset, p_lov_id=>20828314943711235.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>3, p_lov_disp_value=>'DATE', p_lov_return_value=>'DATE', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>20829212946711250.4306 + wwv_flow_api.g_id_offset, p_lov_id=>20828314943711235.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>4, p_lov_disp_value=>'CLOB', p_lov_return_value=>'CLOB', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>20829421949711250.4306 + wwv_flow_api.g_id_offset, p_lov_id=>20828314943711235.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>5, p_lov_disp_value=>'BINARY_FLOAT', p_lov_return_value=>'BINARY_FLOAT', p_lov_disp_cond_type=>'FUNCTION_BODY', p_lov_disp_cond=> 'return wwv_flow_utilities.db_version_is_at_least(''10.1'');', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>20829612125711251.4306 + wwv_flow_api.g_id_offset, p_lov_id=>20828314943711235.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>6, p_lov_disp_value=>'BINARY_DOUBLE', p_lov_return_value=>'BINARY_DOUBLE', p_lov_disp_cond_type=>'FUNCTION_BODY', p_lov_disp_cond=> 'return wwv_flow_utilities.db_version_is_at_least(''10.1'');', p_lov_data_comment=> ''); null; end; / --application/shared_components/user_interface/lov/p16_tables begin wwv_flow_api.create_list_of_values ( p_id => 162716910286446218.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_lov_name => 'P16_TABLES', p_lov_query=> 'select table_name a, table_name b'||chr(10)|| 'from sys.dba_tables'||chr(10)|| 'where owner=:F4300_P14_TARGET_SCHEMA'||chr(10)|| 'and table_name not like ''BIN$%'''||chr(10)|| 'order by 1'); null; end; / --application/shared_components/user_interface/lov/p2_load begin wwv_flow_api.create_list_of_values ( p_id => 236956028332134846.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_lov_name => 'P2_LOAD', p_lov_query=> '.'||to_char(236956028332134846 + wwv_flow_api.g_id_offset)||'.'); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>236956315568134853.4306 + wwv_flow_api.g_id_offset, p_lov_id=>236956028332134846.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>1, p_lov_disp_value=>'我的导入', p_lov_return_value=>'MY', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>236956532195134859.4306 + wwv_flow_api.g_id_offset, p_lov_id=>236956028332134846.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>2, p_lov_disp_value=>'所有导入', p_lov_return_value=>'ALL', p_lov_data_comment=> ''); null; end; / --application/shared_components/user_interface/lov/pk_types begin wwv_flow_api.create_list_of_values ( p_id => 29232624018252340.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_lov_name => 'PK_TYPES', p_reference_id=> 20561306137429854, p_lov_query=> '.'||to_char(29232624018252340 + wwv_flow_api.g_id_offset)||'.'); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>51627621271152564.4306 + wwv_flow_api.g_id_offset, p_lov_id=>29232624018252340.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>2, p_lov_disp_value=>'从新序列生成', p_lov_return_value=>'NEW_SEQUENCE', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>51627831065152564.4306 + wwv_flow_api.g_id_offset, p_lov_id=>29232624018252340.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>3, p_lov_disp_value=>'从现有序列生成', p_lov_return_value=>'EXISTING_SEQUENCE', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>51628012394152565.4306 + wwv_flow_api.g_id_offset, p_lov_id=>29232624018252340.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>5, p_lov_disp_value=>'未生成', p_lov_return_value=>'NOT_GENERATED', p_lov_data_comment=> ''); null; end; / --application/shared_components/user_interface/lov/preserve_case_y begin wwv_flow_api.create_list_of_values ( p_id => 87931511182663028.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_lov_name => 'PRESERVE.CASE.Y', p_lov_query=> '.'||to_char(87931511182663028 + wwv_flow_api.g_id_offset)||'.'); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>87931730659663028.4306 + wwv_flow_api.g_id_offset, p_lov_id=>87931511182663028.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>10, p_lov_disp_value=>'保留大小写', p_lov_return_value=>'Y', p_lov_data_comment=> ''); null; end; / --application/shared_components/user_interface/lov/restrict_load_files begin wwv_flow_api.create_list_of_values ( p_id => 87918702852509211.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_lov_name => 'RESTRICT.LOAD.FILES', p_lov_query=> '.'||to_char(87918702852509211 + wwv_flow_api.g_id_offset)||'.'); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>87918901897509212.4306 + wwv_flow_api.g_id_offset, p_lov_id=>87918702852509211.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>10, p_lov_disp_value=>'我的导入文件', p_lov_return_value=>'MY', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>87919109206509212.4306 + wwv_flow_api.g_id_offset, p_lov_id=>87918702852509211.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>20, p_lov_disp_value=>'所有导入文件', p_lov_return_value=>'ALL', p_lov_data_comment=> ''); null; end; / --application/shared_components/user_interface/lov/table_option begin wwv_flow_api.create_list_of_values ( p_id => 87922429003554589.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_lov_name => 'TABLE.OPTION', p_lov_query=> '.'||to_char(87922429003554589 + wwv_flow_api.g_id_offset)||'.'); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>87922602291554590.4306 + wwv_flow_api.g_id_offset, p_lov_id=>87922429003554589.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>10, p_lov_disp_value=>'现有表', p_lov_return_value=>'EXIST', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>87922820756554590.4306 + wwv_flow_api.g_id_offset, p_lov_id=>87922429003554589.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>20, p_lov_disp_value=>'新表', p_lov_return_value=>'NEW', p_lov_data_comment=> ''); null; end; / --application/shared_components/user_interface/lov/use_existing_col begin wwv_flow_api.create_list_of_values ( p_id => 87933423434676001.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_lov_name => 'USE.EXISTING.COL', p_lov_query=> '.'||to_char(87933423434676001 + wwv_flow_api.g_id_offset)||'.'); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>87933602623676001.4306 + wwv_flow_api.g_id_offset, p_lov_id=>87933423434676001.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>10, p_lov_disp_value=>'使用现有列', p_lov_return_value=>'EXISTING_KEY', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>87933822194676002.4306 + wwv_flow_api.g_id_offset, p_lov_id=>87933423434676001.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>20, p_lov_disp_value=>'创建新列', p_lov_return_value=>'NEW_KEY', p_lov_data_comment=> ''); null; end; / --application/shared_components/user_interface/lov/yes_no_returns_y_or_n begin wwv_flow_api.create_list_of_values ( p_id => 87930425596657700.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_lov_name => 'YES.NO.RETURNS_Y_OR_N', p_lov_query=> '.'||to_char(87930425596657700 + wwv_flow_api.g_id_offset)||'.'); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>87930609321657701.4306 + wwv_flow_api.g_id_offset, p_lov_id=>87930425596657700.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>10, p_lov_disp_value=>'否', p_lov_return_value=>'N', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>87930802381657701.4306 + wwv_flow_api.g_id_offset, p_lov_id=>87930425596657700.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>20, p_lov_disp_value=>'是', p_lov_return_value=>'Y', p_lov_data_comment=> ''); null; end; / --application/shared_components/user_interface/lov/yes_no begin wwv_flow_api.create_list_of_values ( p_id => 182782926995.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_lov_name => 'YES_NO', p_lov_query=> '.'||to_char(182782926995 + wwv_flow_api.g_id_offset)||'.'); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>182785927024.4306 + wwv_flow_api.g_id_offset, p_lov_id=>182782926995.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>1, p_lov_disp_value=>'是', p_lov_return_value=>'Y', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>182787927024.4306 + wwv_flow_api.g_id_offset, p_lov_id=>182782926995.4306 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>2, p_lov_disp_value=>'否', p_lov_return_value=>'N', p_lov_data_comment=> ''); null; end; / prompt ...Application Trees -- --application/pages/page_groups prompt ...page groups -- begin null; end; / --application/pages/page_.4306 prompt ...PAGE .4306: 第 0 页 -- begin declare h varchar2(32767) := null; ph varchar2(32767) := null; begin h := null; ph := null; wwv_flow_api.create_page( p_id => .4306, p_flow_id=> wwv_flow.g_flow_id, p_tab_set=> '', p_name => '第 0 页', p_step_title=> '', p_step_sub_title_type => 'TEXT_WITH_SUBSTITUTIONS', p_first_item=> 'NO_FIRST_ITEM', p_include_apex_css_js_yn=>'Y', p_autocomplete_on_off => '', p_group_id => 216950505720834051+ wwv_flow_api.g_id_offset, p_help_text => '', p_html_page_header => '', p_step_template => 7505408382227958.4306+ wwv_flow_api.g_id_offset, p_required_patch=> null + wwv_flow_api.g_id_offset, p_last_updated_by => '', p_last_upd_yyyymmddhh24miss => '20090409165722', p_page_is_public_y_n=> 'N', p_page_comment => ''); end; end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'1452315428006354'; wwv_flow_api.create_page_plug ( p_id=> 1456614651025020.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> .4306, p_plug_name=> 'Application Tabs', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 10, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_07', p_plug_source=> s, p_plug_source_type=> 1452315428006354 + wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / begin null; end; / begin null; end; / begin --------------------------------------- -- ...updatable report columns for page .4306 -- begin null; end; null; end; / --application/pages/page_1.430 prompt ...PAGE 1.4306: 数据加载/卸载 -- begin declare h varchar2(32767) := null; ph varchar2(32767) := null; begin h:=h||'AEUTL/sql_utl_exprt_imprt.htm'; ph := null; wwv_flow_api.create_page( p_id => 1.4306, p_flow_id=> wwv_flow.g_flow_id, p_tab_set=> '', p_name => '数据加载/卸载', p_step_title=> '数据加载/卸载', p_step_sub_title_type => 'TEXT_WITH_SUBSTITUTIONS', p_first_item=> 'NO_FIRST_ITEM', p_include_apex_css_js_yn=>'Y', p_autocomplete_on_off => '', p_group_id => 216950505720834051+ wwv_flow_api.g_id_offset, p_help_text => ' ', p_html_page_header => '', p_step_template => '', p_required_patch=> null + wwv_flow_api.g_id_offset, p_last_updated_by => '', p_last_upd_yyyymmddhh24miss => '20090409165722', p_page_is_public_y_n=> 'N', p_page_comment => ''); wwv_flow_api.set_page_help_text(p_flow_id=>wwv_flow.g_flow_id,p_flow_step_id=>1.4306,p_text=>h); end; end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'2202106852499122'; wwv_flow_api.create_page_plug ( p_id=> 2209528931524495.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 1.4306, p_plug_name=> 'Data Workshop', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 10, p_plug_display_column=> 1, p_plug_display_point=> 'AFTER_SHOW_ITEMS', p_plug_source=> s, p_plug_source_type=> 2202106852499122 + wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 2211411747528919.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 1.4306, p_plug_name=> 'menu', p_region_name=>'', p_plug_display_sequence=> 1, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_08', p_plug_source=> s, p_plug_source_type=> 'M'|| to_char(6678815232629976 + wwv_flow_api.g_id_offset), p_menu_template_id=> 6680621597641306.4306+ wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / begin null; end; / begin null; end; / begin --------------------------------------- -- ...updatable report columns for page 1.4306 -- begin null; end; null; end; / --application/pages/page_2.430 prompt ...PAGE 2.4306: 电子表格加载详细资料 -- begin declare h varchar2(32767) := null; ph varchar2(32767) := null; begin h:=h||'AEUTL/sql_utl_exprt.htm'; ph := null; wwv_flow_api.create_page( p_id => 2.4306, p_flow_id=> wwv_flow.g_flow_id, p_tab_set=> '', p_name => '电子表格加载详细资料', p_step_title=> '电子表格加载详细资料', p_step_sub_title_type => 'TEXT_WITH_SUBSTITUTIONS', p_first_item=> 'AUTO_FIRST_ITEM', p_include_apex_css_js_yn=>'Y', p_autocomplete_on_off => '', p_group_id => 215729525348581243+ wwv_flow_api.g_id_offset, p_help_text => ' ', p_html_page_header => '', p_step_template => 7505408382227958.4306+ wwv_flow_api.g_id_offset, p_required_patch=> null + wwv_flow_api.g_id_offset, p_last_updated_by => '', p_last_upd_yyyymmddhh24miss => '20090409165722', p_page_is_public_y_n=> 'N', p_page_comment => ''); wwv_flow_api.set_page_help_text(p_flow_id=>wwv_flow.g_flow_id,p_flow_step_id=>2.4306,p_text=>h); end; end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'
此页显示有关电子表格导入的信息。如果有行导入失败, 则此页显示错误消息。
'; wwv_flow_api.create_page_plug ( p_id=> 236908207860041215.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 2.4306, p_plug_name=> '电子表格加载', p_region_name=>'', p_plug_template=> 104263607591363808.4306+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 50, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_05', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> '', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_query_no_data_found=>'未找到失败的行。', p_plug_display_condition_type => '', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'select '''' || errm || '''' Error,'||chr(10)|| ' data Data'||chr(10)|| ' from wwv_flow_data_load_bad_log'||chr(10)|| ' where load_id = :P2_LOAD_ID'; wwv_flow_api.create_report_region ( p_id=> 236908624285041216.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 2.4306, p_name=> '失败的行', p_region_name=>'', p_template=> 101735615849237059.4306+ wwv_flow_api.g_id_offset, p_display_sequence=> 30, p_display_column=> 1, p_display_point=> 'AFTER_SHOW_ITEMS', p_source=> s, p_source_type=> 'SQL_QUERY', p_display_error_message=> '#SQLERRM#', p_plug_caching=> 'NOT_CACHED', p_customized=> '0', p_query_row_template=> 10583525904875984.4306+ wwv_flow_api.g_id_offset, p_query_headings_type=> 'COLON_DELMITED_LIST', p_query_num_rows=> '15', p_query_options=> 'DERIVED_REPORT_COLUMNS', p_query_show_nulls_as=> '(null)', p_query_break_cols=> '0', p_query_no_data_found=> '未找到失败的行。', p_query_num_rows_type=> 'ROW_RANGES', p_query_row_count_max=> '500', p_pagination_display_position=> 'BOTTOM_RIGHT', p_csv_output=> 'N', p_query_asc_image=> 'blue_arrow_down.gif', p_query_asc_image_attr=> 'width="13" height="12"', p_query_desc_image=> 'blue_arrow_up.gif', p_query_desc_image_attr=> 'width="13" height="12"', p_comment=>''); end; / declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=> 236909010953041218.4306 + wwv_flow_api.g_id_offset, p_region_id=> 236908624285041216.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_query_column_id=> 1, p_form_element_id=> null, p_column_alias=> 'ERROR', p_column_display_sequence=> 1, p_column_heading=> '错误', p_column_alignment=>'LEFT', p_heading_alignment=>'LEFT', p_default_sort_column_sequence=>0, p_disable_sort_column=>'Y', p_sum_column=> 'N', p_hidden_column=> 'N', p_display_as=>'WITHOUT_MODIFICATION', p_pk_col_source=> s, p_column_comment=>''); end; / declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=> 236909111520041218.4306 + wwv_flow_api.g_id_offset, p_region_id=> 236908624285041216.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_query_column_id=> 2, p_form_element_id=> null, p_column_alias=> 'DATA', p_column_display_sequence=> 2, p_column_heading=> '数据', p_column_alignment=>'LEFT', p_heading_alignment=>'LEFT', p_default_sort_column_sequence=>0, p_disable_sort_column=>'Y', p_sum_column=> 'N', p_hidden_column=> 'N', p_display_as=>'WITHOUT_MODIFICATION', p_pk_col_source=> s, p_column_comment=>''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 236909231803041218.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 2.4306, p_plug_name=> 'button bar', p_region_name=>'', p_plug_template=> 3918621721760114.4306+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 10, p_plug_display_column=> 1, p_plug_display_point=> 'AFTER_SHOW_ITEMS', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> '', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_display_condition_type => '', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'Select CREATED_ON Load_Date, CREATED_BY Loaded_By, DATA_SCHEMA Schema2, DATA_TABLE Table2, SUCCESS_ROWS Rows_Loaded, FAILED_ROWS Rows_Failed from wwv_flow_data_load_unload where id=:P2_LOAD_ID'; wwv_flow_api.create_report_region ( p_id=> 236910023245041222.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 2.4306, p_name=> '概览', p_region_name=>'', p_template=> 101735615849237059.4306+ wwv_flow_api.g_id_offset, p_display_sequence=> 25, p_display_column=> 1, p_display_point=> 'AFTER_SHOW_ITEMS', p_source=> s, p_source_type=> 'SQL_QUERY', p_display_error_message=> '#SQLERRM#', p_plug_caching=> 'NOT_CACHED', p_customized=> '0', p_query_row_template=> 3, p_query_headings_type=> 'COLON_DELMITED_LIST', p_query_num_rows=> '15', p_query_options=> 'DERIVED_REPORT_COLUMNS', p_query_show_nulls_as=> ' - ', p_query_break_cols=> '0', p_query_no_data_found=> '未找到任何数据。', p_query_num_rows_type=> '0', p_query_row_count_max=> '500', p_pagination_display_position=> 'BOTTOM_RIGHT', p_csv_output=> 'N', p_query_asc_image=> 'blue_arrow_down.gif', p_query_asc_image_attr=> 'width="13" height="12"', p_query_desc_image=> 'blue_arrow_up.gif', p_query_desc_image_attr=> 'width="13" height="12"', p_plug_query_strip_html=> 'Y', p_comment=>''); end; / declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=> 236910621733041225.4306 + wwv_flow_api.g_id_offset, p_region_id=> 236910023245041222.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_query_column_id=> 1, p_form_element_id=> null, p_column_alias=> 'LOAD_DATE', p_column_display_sequence=> 1, p_column_heading=> '导入日期', p_column_alignment=>'LEFT', p_heading_alignment=>'CENTER', p_default_sort_column_sequence=>0, p_disable_sort_column=>'Y', p_sum_column=> 'N', p_hidden_column=> 'N', p_display_as=>'WITHOUT_MODIFICATION', p_pk_col_source=> s, p_column_comment=>''); end; / declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=> 236910704793041225.4306 + wwv_flow_api.g_id_offset, p_region_id=> 236910023245041222.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_query_column_id=> 2, p_form_element_id=> null, p_column_alias=> 'LOADED_BY', p_column_display_sequence=> 2, p_column_heading=> '导入者', p_column_alignment=>'LEFT', p_heading_alignment=>'CENTER', p_default_sort_column_sequence=>0, p_disable_sort_column=>'Y', p_sum_column=> 'N', p_hidden_column=> 'N', p_display_as=>'WITHOUT_MODIFICATION', p_pk_col_source=> s, p_column_comment=>''); end; / declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=> 236910825625041225.4306 + wwv_flow_api.g_id_offset, p_region_id=> 236910023245041222.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_query_column_id=> 3, p_form_element_id=> null, p_column_alias=> 'SCHEMA2', p_column_display_sequence=> 3, p_column_heading=> '方案', p_column_alignment=>'LEFT', p_heading_alignment=>'CENTER', p_default_sort_column_sequence=>0, p_disable_sort_column=>'Y', p_sum_column=> 'N', p_hidden_column=> 'N', p_display_as=>'WITHOUT_MODIFICATION', p_pk_col_source=> s, p_column_comment=>''); end; / declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=> 236910911224041225.4306 + wwv_flow_api.g_id_offset, p_region_id=> 236910023245041222.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_query_column_id=> 4, p_form_element_id=> null, p_column_alias=> 'TABLE2', p_column_display_sequence=> 4, p_column_heading=> '表', p_column_alignment=>'LEFT', p_heading_alignment=>'CENTER', p_default_sort_column_sequence=>0, p_disable_sort_column=>'Y', p_sum_column=> 'N', p_hidden_column=> 'N', p_display_as=>'WITHOUT_MODIFICATION', p_pk_col_source=> s, p_column_comment=>''); end; / declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=> 236910405016041225.4306 + wwv_flow_api.g_id_offset, p_region_id=> 236910023245041222.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_query_column_id=> 5, p_form_element_id=> null, p_column_alias=> 'ROWS_LOADED', p_column_display_sequence=> 5, p_column_heading=> '导入的行', p_column_alignment=>'LEFT', p_heading_alignment=>'CENTER', p_default_sort_column_sequence=>0, p_disable_sort_column=>'Y', p_sum_column=> 'N', p_hidden_column=> 'N', p_display_as=>'WITHOUT_MODIFICATION', p_pk_col_source=> s, p_column_comment=>''); end; / declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=> 236910524132041225.4306 + wwv_flow_api.g_id_offset, p_region_id=> 236910023245041222.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_query_column_id=> 6, p_form_element_id=> null, p_column_alias=> 'ROWS_FAILED', p_column_display_sequence=> 6, p_column_heading=> '失败的行', p_column_alignment=>'LEFT', p_heading_alignment=>'CENTER', p_default_sort_column_sequence=>0, p_disable_sort_column=>'Y', p_sum_column=> 'N', p_hidden_column=> 'N', p_display_as=>'WITHOUT_MODIFICATION', p_pk_col_source=> s, p_column_comment=>''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 236916722090057358.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 2.4306, p_plug_name=> 'menu', p_region_name=>'', p_plug_display_sequence=> 1, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_08', p_plug_source=> s, p_plug_source_type=> 'M'|| to_char(6678815232629976 + wwv_flow_api.g_id_offset), p_menu_template_id=> 6680621597641306.4306+ wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / begin wwv_flow_api.create_page_button( p_id => 236911018188041226.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 2.4306, p_button_sequence=> 10, p_button_plug_id => 236909231803041218+wwv_flow_api.g_id_offset, p_button_name => 'BACK', p_button_image_alt=> '返回到资料档案库', p_button_position=> 'REGION_TEMPLATE_CREATE', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_required_patch => null + wwv_flow_api.g_id_offset); end; / begin wwv_flow_api.create_page_branch( p_id=>236912309292041255.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 2.4306, p_branch_action=> 'f?p=&FLOW_ID.:11:&SESSION.::&DEBUG.:::', p_branch_point=> 'AFTER_PROCESSING', p_branch_type=> 'REDIRECT_URL', p_branch_sequence=> 30, p_save_state_before_branch_yn=>'N', p_branch_comment=> 'Created 14-JUL-2004 18:04 by CBCHO'); end; / declare h varchar2(32767) := null; begin wwv_flow_api.create_page_item( p_id=>236911408920041236.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 2.4306, p_name=>'P2_LOAD_ID', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 10, p_use_cache_before_default=> 'YES', p_display_as=> 'HIDDEN', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', p_is_persistent=> 'Y', p_item_comment => ''); end; / begin --------------------------------------- -- ...updatable report columns for page 2.4306 -- begin null; end; null; end; / --application/pages/page_4.430 prompt ...PAGE 4.4306: 卸载 -- begin declare h varchar2(32767) := null; ph varchar2(32767) := null; begin h:=h||'AEUTL/sql_utl_exprt.htm'; ph := null; wwv_flow_api.create_page( p_id => 4.4306, p_flow_id=> wwv_flow.g_flow_id, p_tab_set=> '', p_name => '卸载', p_step_title=> '卸载', p_step_sub_title_type => 'TEXT_WITH_SUBSTITUTIONS', p_first_item=> 'AUTO_FIRST_ITEM', p_include_apex_css_js_yn=>'Y', p_autocomplete_on_off => '', p_group_id => 216950505720834051+ wwv_flow_api.g_id_offset, p_help_text => ' ', p_html_page_header => '', p_step_template => 7505408382227958.4306+ wwv_flow_api.g_id_offset, p_required_patch=> null + wwv_flow_api.g_id_offset, p_last_updated_by => '', p_last_upd_yyyymmddhh24miss => '20090409165722', p_page_is_public_y_n=> 'N', p_page_comment => ''); wwv_flow_api.set_page_help_text(p_flow_id=>wwv_flow.g_flow_id,p_flow_step_id=>4.4306,p_text=>h); end; end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 2219929417559213.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 4.4306, p_plug_name=> 'Data Unload', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 2, p_plug_display_column=> 1, p_plug_display_point=> 'AFTER_SHOW_ITEMS', p_plug_source=> s, p_plug_source_type=> 75585889878824332 + wwv_flow_api.g_id_offset, p_plug_query_row_template=> 1, p_plug_query_headings_type=> '', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_display_condition_type => '', p_plug_customized=>'0', p_plug_customized_name=>'数据卸载图标', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> 'Extract data from database schemas online to files on your computer.'); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 2225825431570758.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 4.4306, p_plug_name=> 'menu', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 1, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_08', p_plug_source=> s, p_plug_source_type=> 'M'|| to_char(6678815232629976 + wwv_flow_api.g_id_offset), p_menu_template_id=> 6680621597641306.4306+ wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / begin null; end; / begin null; end; / begin --------------------------------------- -- ...updatable report columns for page 4.4306 -- begin null; end; null; end; / --application/pages/page_7.430 prompt ...PAGE 7.4306: 文本数据加载详细资料 -- begin declare h varchar2(32767) := null; ph varchar2(32767) := null; begin h:=h||'AEUTL/sql_utl_exprt.htm'; ph := null; wwv_flow_api.create_page( p_id => 7.4306, p_flow_id=> wwv_flow.g_flow_id, p_tab_set=> '', p_name => '文本数据加载详细资料', p_step_title=> '文本数据加载详细资料', p_step_sub_title_type => 'TEXT_WITH_SUBSTITUTIONS', p_first_item=> 'AUTO_FIRST_ITEM', p_include_apex_css_js_yn=>'Y', p_autocomplete_on_off => '', p_group_id => 215731706086585147+ wwv_flow_api.g_id_offset, p_help_text => ' ', p_html_page_header => '', p_step_template => 7505408382227958.4306+ wwv_flow_api.g_id_offset, p_required_patch=> null + wwv_flow_api.g_id_offset, p_last_updated_by => '', p_last_upd_yyyymmddhh24miss => '20090409165722', p_page_is_public_y_n=> 'N', p_page_comment => ''); wwv_flow_api.set_page_help_text(p_flow_id=>wwv_flow.g_flow_id,p_flow_step_id=>7.4306,p_text=>h); end; end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 3913203962745120.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 7.4306, p_plug_name=> 'button bar', p_region_name=>'', p_plug_template=> 3918621721760114.4306+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 10, p_plug_display_column=> 1, p_plug_display_point=> 'AFTER_SHOW_ITEMS', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> '', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_display_condition_type => '', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'select '''' || errm || '''' Error,'||chr(10)|| ' data Data'||chr(10)|| ' from wwv_flow_data_load_bad_log'||chr(10)|| ' where load_id = :F4300_P7_LOAD_ID'; wwv_flow_api.create_report_region ( p_id=> 55112340569377996.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 7.4306, p_name=> '失败的行', p_region_name=>'', p_template=> 101735615849237059.4306+ wwv_flow_api.g_id_offset, p_display_sequence=> 30, p_display_column=> 1, p_display_point=> 'AFTER_SHOW_ITEMS', p_source=> s, p_source_type=> 'SQL_QUERY', p_display_error_message=> '#SQLERRM#', p_plug_caching=> 'NOT_CACHED', p_customized=> '0', p_query_row_template=> 24534016112516813.4306+ wwv_flow_api.g_id_offset, p_query_headings_type=> 'COLON_DELMITED_LIST', p_query_num_rows=> '15', p_query_options=> 'DERIVED_REPORT_COLUMNS', p_query_show_nulls_as=> '(null)', p_query_break_cols=> '0', p_query_no_data_found=> '未找到失败的行。', p_query_num_rows_type=> 'ROW_RANGES', p_query_row_count_max=> '500', p_pagination_display_position=> 'BOTTOM_RIGHT', p_csv_output=> 'N', p_query_asc_image=> 'blue_arrow_down.gif', p_query_asc_image_attr=> 'width="13" height="12"', p_query_desc_image=> 'blue_arrow_up.gif', p_query_desc_image_attr=> 'width="13" height="12"', p_plug_query_strip_html=> 'Y', p_comment=>''); end; / declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=> 26396310164851868.4306 + wwv_flow_api.g_id_offset, p_region_id=> 55112340569377996.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_query_column_id=> 1, p_form_element_id=> null, p_column_alias=> 'ERROR', p_column_display_sequence=> 1, p_column_heading=> '错误', p_column_alignment=>'LEFT', p_heading_alignment=>'LEFT', p_default_sort_column_sequence=>0, p_disable_sort_column=>'Y', p_sum_column=> 'N', p_hidden_column=> 'N', p_display_as=>'WITHOUT_MODIFICATION', p_pk_col_source=> s, p_column_comment=>''); end; / declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=> 26396413604851868.4306 + wwv_flow_api.g_id_offset, p_region_id=> 55112340569377996.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_query_column_id=> 2, p_form_element_id=> null, p_column_alias=> 'DATA', p_column_display_sequence=> 2, p_column_heading=> '数据', p_column_alignment=>'LEFT', p_heading_alignment=>'LEFT', p_default_sort_column_sequence=>0, p_disable_sort_column=>'Y', p_sum_column=> 'N', p_hidden_column=> 'N', p_display_as=>'ESCAPE_SC', p_lov_show_nulls=> 'NO', p_pk_col_source=> s, p_lov_display_extra=> 'YES', p_column_comment=>''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 75398916706711544.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 7.4306, p_plug_name=> 'Menu', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 1, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_08', p_plug_source=> s, p_plug_source_type=> 'M'|| to_char(6678815232629976 + wwv_flow_api.g_id_offset), p_menu_template_id=> 6680621597641306.4306+ wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'Select CREATED_ON Load_Date, CREATED_BY Loaded_By, DATA_SCHEMA Schema2, DATA_TABLE Table2, SUCCESS_ROWS Rows_Loaded, FAILED_ROWS Rows_Failed from wwv_flow_data_load_unload where id=:F4300_P7_LOAD_ID'; wwv_flow_api.create_report_region ( p_id=> 234740508574260035.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 7.4306, p_name=> '概览', p_region_name=>'', p_template=> 101735615849237059.4306+ wwv_flow_api.g_id_offset, p_display_sequence=> 25, p_display_column=> 1, p_display_point=> 'AFTER_SHOW_ITEMS', p_source=> s, p_source_type=> 'SQL_QUERY', p_display_error_message=> '#SQLERRM#', p_plug_caching=> 'NOT_CACHED', p_header=> '此页显示有关文本数据文件导入的信息。如果有行导入失败, 则此页显示错误消息。
', p_customized=> '0', p_query_row_template=> 3, p_query_headings_type=> 'COLON_DELMITED_LIST', p_query_num_rows=> '15', p_query_options=> 'DERIVED_REPORT_COLUMNS', p_query_show_nulls_as=> ' - ', p_query_break_cols=> '0', p_query_no_data_found=> '未找到任何数据。', p_query_num_rows_type=> '0', p_query_row_count_max=> '500', p_pagination_display_position=> 'BOTTOM_RIGHT', p_csv_output=> 'N', p_query_asc_image=> 'blue_arrow_down.gif', p_query_asc_image_attr=> 'width="13" height="12"', p_query_desc_image=> 'blue_arrow_up.gif', p_query_desc_image_attr=> 'width="13" height="12"', p_plug_query_strip_html=> 'Y', p_comment=>''); end; / declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=> 234741120589260051.4306 + wwv_flow_api.g_id_offset, p_region_id=> 234740508574260035.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_query_column_id=> 1, p_form_element_id=> null, p_column_alias=> 'LOAD_DATE', p_column_display_sequence=> 1, p_column_heading=> '导入日期', p_column_format=> '&DATE_TIME_FORMAT.', p_column_alignment=>'LEFT', p_heading_alignment=>'CENTER', p_default_sort_column_sequence=>0, p_disable_sort_column=>'Y', p_sum_column=> 'N', p_hidden_column=> 'N', p_display_as=>'WITHOUT_MODIFICATION', p_lov_show_nulls=> 'NO', p_pk_col_source=> s, p_lov_display_extra=> 'YES', p_column_comment=>''); end; / declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=> 234741209381260051.4306 + wwv_flow_api.g_id_offset, p_region_id=> 234740508574260035.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_query_column_id=> 2, p_form_element_id=> null, p_column_alias=> 'LOADED_BY', p_column_display_sequence=> 2, p_column_heading=> '导入者', p_column_alignment=>'LEFT', p_heading_alignment=>'CENTER', p_default_sort_column_sequence=>0, p_disable_sort_column=>'Y', p_sum_column=> 'N', p_hidden_column=> 'N', p_display_as=>'ESCAPE_SC', p_lov_show_nulls=> 'NO', p_pk_col_source=> s, p_lov_display_extra=> 'YES', p_column_comment=>''); end; / declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=> 234741308348260051.4306 + wwv_flow_api.g_id_offset, p_region_id=> 234740508574260035.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_query_column_id=> 3, p_form_element_id=> null, p_column_alias=> 'SCHEMA2', p_column_display_sequence=> 3, p_column_heading=> '方案', p_column_alignment=>'LEFT', p_heading_alignment=>'CENTER', p_default_sort_column_sequence=>0, p_disable_sort_column=>'Y', p_sum_column=> 'N', p_hidden_column=> 'N', p_display_as=>'ESCAPE_SC', p_lov_show_nulls=> 'NO', p_pk_col_source=> s, p_lov_display_extra=> 'YES', p_column_comment=>''); end; / declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=> 234741425535260051.4306 + wwv_flow_api.g_id_offset, p_region_id=> 234740508574260035.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_query_column_id=> 4, p_form_element_id=> null, p_column_alias=> 'TABLE2', p_column_display_sequence=> 4, p_column_heading=> '表', p_column_alignment=>'LEFT', p_heading_alignment=>'CENTER', p_default_sort_column_sequence=>0, p_disable_sort_column=>'Y', p_sum_column=> 'N', p_hidden_column=> 'N', p_display_as=>'ESCAPE_SC', p_lov_show_nulls=> 'NO', p_pk_col_source=> s, p_lov_display_extra=> 'YES', p_column_comment=>''); end; / declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=> 234741507868260052.4306 + wwv_flow_api.g_id_offset, p_region_id=> 234740508574260035.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_query_column_id=> 5, p_form_element_id=> null, p_column_alias=> 'ROWS_LOADED', p_column_display_sequence=> 5, p_column_heading=> '导入的行', p_column_alignment=>'LEFT', p_heading_alignment=>'CENTER', p_default_sort_column_sequence=>0, p_disable_sort_column=>'Y', p_sum_column=> 'N', p_hidden_column=> 'N', p_display_as=>'WITHOUT_MODIFICATION', p_pk_col_source=> s, p_column_comment=>''); end; / declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=> 234741628809260052.4306 + wwv_flow_api.g_id_offset, p_region_id=> 234740508574260035.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_query_column_id=> 6, p_form_element_id=> null, p_column_alias=> 'ROWS_FAILED', p_column_display_sequence=> 6, p_column_heading=> '失败的行', p_column_alignment=>'LEFT', p_heading_alignment=>'CENTER', p_default_sort_column_sequence=>0, p_disable_sort_column=>'Y', p_sum_column=> 'N', p_hidden_column=> 'N', p_display_as=>'WITHOUT_MODIFICATION', p_pk_col_source=> s, p_column_comment=>''); end; / begin wwv_flow_api.create_page_button( p_id => 192104604688817535.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 7.4306, p_button_sequence=> 10, p_button_plug_id => 3913203962745120+wwv_flow_api.g_id_offset, p_button_name => 'BACK', p_button_image_alt=> '返回到资料档案库', p_button_position=> 'REGION_TEMPLATE_CREATE', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_required_patch => null + wwv_flow_api.g_id_offset); end; / begin wwv_flow_api.create_page_branch( p_id=>234998201152447134.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 7.4306, p_branch_action=> 'f?p=&FLOW_ID.:8:&SESSION.::&DEBUG.:::', p_branch_point=> 'AFTER_PROCESSING', p_branch_type=> 'REDIRECT_URL', p_branch_sequence=> 30, p_save_state_before_branch_yn=>'N', p_branch_comment=> 'Created 14-JUL-2004 18:04 by CBCHO'); end; / declare h varchar2(32767) := null; begin wwv_flow_api.create_page_item( p_id=>27172013799279694.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 7.4306, p_name=>'F4300_P7_LOAD_ID', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 10, p_use_cache_before_default=> 'YES', p_display_as=> 'HIDDEN', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', p_is_persistent=> 'Y', p_item_comment => ''); end; / declare h varchar2(32767) := null; begin wwv_flow_api.create_page_item( p_id=>234980910062392922.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 7.4306, p_name=>'P7_PREV_PAGE', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 20, p_item_plug_id => 3913203962745120.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_source_type=> 'STATIC', p_display_as=> 'HIDDEN', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> null, p_cMaxlength=> 2000, p_cHeight=> null, p_cAttributes=> 'nowrap="nowrap"', p_begin_on_new_line => 'NO', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'LEFT', p_field_alignment => 'LEFT', p_is_persistent=> 'Y', p_item_comment => ''); end; / begin --------------------------------------- -- ...updatable report columns for page 7.4306 -- begin null; end; null; end; / --application/pages/page_8.430 prompt ...PAGE 8.4306: 文本数据加载资料档案库 -- begin declare h varchar2(32767) := null; ph varchar2(32767) := null; begin h:=h||'AEUTL/sql_utl_imprt_rep.htm'; ph := null; wwv_flow_api.create_page( p_id => 8.4306, p_flow_id=> wwv_flow.g_flow_id, p_tab_set=> '', p_name => '文本数据加载资料档案库', p_step_title=> '文本数据加载资料档案库', p_step_sub_title_type => 'TEXT_WITH_SUBSTITUTIONS', p_first_item=> 'AUTO_FIRST_ITEM', p_include_apex_css_js_yn=>'Y', p_autocomplete_on_off => '', p_group_id => 215731706086585147+ wwv_flow_api.g_id_offset, p_help_text => ' ', p_html_page_header => '', p_step_template => 7505408382227958.4306+ wwv_flow_api.g_id_offset, p_required_patch=> null + wwv_flow_api.g_id_offset, p_last_updated_by => '', p_last_upd_yyyymmddhh24miss => '20090409165722', p_page_is_public_y_n=> 'N', p_page_comment => ''); wwv_flow_api.set_page_help_text(p_flow_id=>wwv_flow.g_flow_id,p_flow_step_id=>8.4306,p_text=>h); end; end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 3921012881766600.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 8.4306, p_plug_name=> 'Button Bar', p_region_name=>'', p_plug_template=> 108205605860896611.4306+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 5, p_plug_display_column=> 1, p_plug_display_point=> 'AFTER_SHOW_ITEMS', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 6836912352738319.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 8.4306, p_plug_name=> 'Menu', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 1, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_08', p_plug_source=> s, p_plug_source_type=> 'M'|| to_char(6678815232629976 + wwv_flow_api.g_id_offset), p_menu_template_id=> 6680621597641306.4306+ wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'declare'||chr(10)|| ' q varchar2(4000); '||chr(10)|| 'begin '||chr(10)|| ' q:= q || ''select '';'||chr(10)|| ' q:= q || '''''''''' cb,'';'||chr(10)|| ' q:= q || ''htf.anchor(''''f?p=4300:2:''||:flow_session||''::::P2_LOAD_ID:'''' || dat.id, '';'||chr(10)|| ' q:= q || '' htf.img (''''#IMAGE_PREFIX#24find.gif'''', NULL, NULL'; s:=s||', NULL,''''border="0" alt="''||wwv_flow_lang.system_message(''DETAILS_FOR_ALT_TAG'')||''" height="24" width="24"'''')) "Details",'';'||chr(10)|| ' q:= q || '' dat.created_by "Created By", '';'||chr(10)|| ' q:= q || '' dat.created_on "Created on", '';'||chr(10)|| ' q:= q || '' decode (data_type, ''''EXCEL IMPORT'''', wwv_flow_lang.system_message(''''F4300.SPREADSHEET_IMPORT'''')) "Type", '';'||chr(10)|| ' q:= q || ''data_Schema "Schema", '';'||chr(10)|| ''||chr(10)|| 'q := q||''data_table "Table'; s:=s||'", '';'||chr(10)|| ''||chr(10)|| ' q:= q || '' success_rows "Succeeded",'';'||chr(10)|| ' q:= q || '' decode(failed_rows,0,''''0'''',htf.anchor(''''f?p=4300:2:''||:flow_session||''::::P2_LOAD_ID:'''' || dat.id,'';'||chr(10)|| ' q:= q || '' failed_rows)) "Failed"'';'||chr(10)|| ' q:= q || '' from wwv_flow_data_load_unload dat, sys.dba_objects o ''; '||chr(10)|| ' q:= q || '' where o.owner = dat.data_schema '';'||chr(10)|| ' q:= q || '' and o.object_name = dat.data_table '';'||chr(10)|| ' q:= q || '' and o.object'; s:=s||'_type = ''''TABLE'''' '';'||chr(10)|| ' q:= q || '' and dat.security_group_id =:FLOW_SECURITY_GROUP_ID '';'||chr(10)|| ' q:= q || '' and data_type = ''''EXCEL IMPORT'''''';'||chr(10)|| ''||chr(10)|| ' if (:F4300_P8_RESTRICT_BY = ''MY'' or :F4300_P8_RESTRICT_BY is NULL) then'||chr(10)|| ' q:= q || '' and dat.created_by = :FLOW_USER '';'||chr(10)|| ' end if; '||chr(10)|| 'return q;'||chr(10)|| 'end;'; wwv_flow_api.create_report_region ( p_id=> 24539117171531389.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 8.4306, p_name=> '电子表格加载', p_region_name=>'', p_template=> 101735615849237059.4306+ wwv_flow_api.g_id_offset, p_display_sequence=> 50, p_display_column=> 1, p_display_point=> 'AFTER_SHOW_ITEMS', p_source=> s, p_source_type=> 'FUNCTION_RETURNING_SQL_QUERY', p_display_error_message=> '#SQLERRM#', p_display_condition_type=> 'NEVER', p_plug_caching=> 'NOT_CACHED', p_customized=> '0', p_query_row_template=> 24534016112516813.4306+ wwv_flow_api.g_id_offset, p_query_headings_type=> 'COLON_DELMITED_LIST', p_query_num_rows=> '15', p_query_options=> 'DERIVED_REPORT_COLUMNS', p_query_show_nulls_as=> ' - ', p_query_break_cols=> '0', p_query_no_data_found=> '未找到任何数据。', p_query_num_rows_type=> 'ROW_RANGES', p_query_row_count_max=> '500', p_pagination_display_position=> 'BOTTOM_RIGHT', p_csv_output=> 'N', p_query_asc_image=> 'arrow_down_gray_dark.gif', p_query_asc_image_attr=> 'width="13" height="12"', p_query_desc_image=> 'arrow_up_gray_dark.gif', p_query_desc_image_attr=> 'width="13" height="12"', p_plug_query_strip_html=> 'Y', p_comment=>''); end; / declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=> 24539318125531393.4306 + wwv_flow_api.g_id_offset, p_region_id=> 24539117171531389.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_query_column_id=> 1, p_form_element_id=> null, p_column_alias=> 'CB', p_column_display_sequence=> 1, p_column_heading=> ' ', p_column_alignment=>'LEFT', p_heading_alignment=>'CENTER', p_default_sort_column_sequence=>0, p_disable_sort_column=>'Y', p_sum_column=> 'N', p_hidden_column=> 'Y', p_display_as=>'WITHOUT_MODIFICATION', p_pk_col_source=> s, p_column_comment=>''); end; / declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=> 24539430463531393.4306 + wwv_flow_api.g_id_offset, p_region_id=> 24539117171531389.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_query_column_id=> 2, p_form_element_id=> null, p_column_alias=> 'Details', p_column_display_sequence=> 2, p_column_heading=> '详细资料', p_column_alignment=>'LEFT', p_heading_alignment=>'CENTER', p_default_sort_column_sequence=>0, p_disable_sort_column=>'Y', p_sum_column=> 'N', p_hidden_column=> 'N', p_display_as=>'WITHOUT_MODIFICATION', p_pk_col_source=> s, p_column_comment=>''); end; / declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=> 24539527121531393.4306 + wwv_flow_api.g_id_offset, p_region_id=> 24539117171531389.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_query_column_id=> 3, p_form_element_id=> null, p_column_alias=> 'Created By', p_column_display_sequence=> 3, p_column_heading=> '导入者', p_column_alignment=>'LEFT', p_heading_alignment=>'CENTER', p_default_sort_column_sequence=>0, p_disable_sort_column=>'N', p_sum_column=> 'N', p_hidden_column=> 'N', p_display_as=>'ESCAPE_SC', p_lov_show_nulls=> 'NO', p_pk_col_source=> s, p_lov_display_extra=> 'YES', p_column_comment=>''); end; / declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=> 24539629611531393.4306 + wwv_flow_api.g_id_offset, p_region_id=> 24539117171531389.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_query_column_id=> 4, p_form_element_id=> null, p_column_alias=> 'Created on', p_column_display_sequence=> 4, p_column_heading=> '导入时间', p_column_alignment=>'LEFT', p_heading_alignment=>'CENTER', p_default_sort_column_sequence=>1, p_default_sort_dir=>'desc', p_disable_sort_column=>'N', p_sum_column=> 'N', p_hidden_column=> 'N', p_display_as=>'WITHOUT_MODIFICATION', p_lov_show_nulls=> 'NO', p_pk_col_source=> s, p_lov_display_extra=> 'YES', p_column_comment=>''); end; / declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=> 24539722210531394.4306 + wwv_flow_api.g_id_offset, p_region_id=> 24539117171531389.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_query_column_id=> 5, p_form_element_id=> null, p_column_alias=> 'Type', p_column_display_sequence=> 5, p_column_heading=> '类型', p_column_alignment=>'LEFT', p_heading_alignment=>'CENTER', p_default_sort_column_sequence=>0, p_disable_sort_column=>'Y', p_sum_column=> 'N', p_hidden_column=> 'N', p_display_as=>'WITHOUT_MODIFICATION', p_pk_col_source=> s, p_column_comment=>''); end; / declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=> 24539810609531394.4306 + wwv_flow_api.g_id_offset, p_region_id=> 24539117171531389.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_query_column_id=> 6, p_form_element_id=> null, p_column_alias=> 'Schema', p_column_display_sequence=> 6, p_column_heading=> '方案', p_column_alignment=>'LEFT', p_heading_alignment=>'CENTER', p_default_sort_column_sequence=>0, p_disable_sort_column=>'N', p_sum_column=> 'N', p_hidden_column=> 'N', p_display_as=>'ESCAPE_SC', p_lov_show_nulls=> 'NO', p_pk_col_source=> s, p_lov_display_extra=> 'YES', p_column_comment=>''); end; / declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=> 24539901035531394.4306 + wwv_flow_api.g_id_offset, p_region_id=> 24539117171531389.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_query_column_id=> 7, p_form_element_id=> null, p_column_alias=> 'Table', p_column_display_sequence=> 7, p_column_heading=> '表', p_column_alignment=>'LEFT', p_heading_alignment=>'CENTER', p_default_sort_column_sequence=>0, p_disable_sort_column=>'N', p_sum_column=> 'N', p_hidden_column=> 'N', p_display_as=>'ESCAPE_SC', p_lov_show_nulls=> 'NO', p_pk_col_source=> s, p_lov_display_extra=> 'YES', p_column_comment=>''); end; / declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=> 24540002599531394.4306 + wwv_flow_api.g_id_offset, p_region_id=> 24539117171531389.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_query_column_id=> 8, p_form_element_id=> null, p_column_alias=> 'Succeeded', p_column_display_sequence=> 8, p_column_heading=> '成功', p_column_alignment=>'RIGHT', p_heading_alignment=>'CENTER', p_default_sort_column_sequence=>0, p_disable_sort_column=>'Y', p_sum_column=> 'N', p_hidden_column=> 'N', p_display_as=>'WITHOUT_MODIFICATION', p_pk_col_source=> s, p_column_comment=>''); end; / declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=> 24540122211531394.4306 + wwv_flow_api.g_id_offset, p_region_id=> 24539117171531389.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_query_column_id=> 9, p_form_element_id=> null, p_column_alias=> 'Failed', p_column_display_sequence=> 9, p_column_heading=> '失败', p_column_alignment=>'RIGHT', p_heading_alignment=>'CENTER', p_default_sort_column_sequence=>0, p_disable_sort_column=>'Y', p_sum_column=> 'N', p_hidden_column=> 'N', p_display_as=>'WITHOUT_MODIFICATION', p_pk_col_source=> s, p_column_comment=>''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'此页显示加载的文本数据的状态。
'||chr(10)|| '要访问加载的文件, 请选择文件名。
'||chr(10)|| '要删除状态条目, 请选中它, 然后单击删除选中项。
'; wwv_flow_api.create_page_plug ( p_id=> 220725321769721592.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 8.4306, p_plug_name=> '资料档案库', p_region_name=>'', p_plug_template=> 104263607591363808.4306+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 60, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_03', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> '', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_display_condition_type => '', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'3648913903408259'; wwv_flow_api.create_page_plug ( p_id=> 220741417024852608.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 8.4306, p_plug_name=> '任务', p_region_name=>'', p_plug_template=> 3477413584526840.4306+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 70, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_03', p_plug_source=> s, p_plug_source_type=> 3648913903408259 + wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'declare'||chr(10)|| ' q varchar2(4000);'||chr(10)|| 'begin'||chr(10)|| ' q := ''select '';'||chr(10)|| ' q:= q || '''''''''' cb,'';'||chr(10)|| ' q:= q || ''htf.anchor(''''f?p=4300:7:''||:flow_session||''::::F4300_P7_LOAD_ID:'''' || dat.id, '';'||chr(10)|| ' q:= q || '' htf.img (''''#IMAGE_PREFIX#24find.gif'''', NULL, NULL, NULL,''''border="0" al'; s:=s||'t="''||wwv_flow_lang.system_message(''F4500.FIND'')||''" height="24" width="24"'''')) "Details",'';'||chr(10)|| ' q:= q || '' htf.anchor (''''wwv_flow_file_mgr.get_file?p_id='''' || to_char(f.id), f.filename) "File", '';'||chr(10)|| ' q:= q || '' dat.created_by "Created By", '';'||chr(10)|| ' q:= q || '' dat.created_on "Created on", '';'||chr(10)|| ' q:= q || '' decode(data_type,''''ASCII IMPORT'''',wwv_flow_lang.system_message(''''F4300_TEXT_IMPORT'''')) "Type", '';'||chr(10)|| ' '; s:=s||'q:= q || ''data_Schema "Schema", '';'||chr(10)|| ' q:= q || ''data_table "Table", '';'||chr(10)|| ' q:= q || '' nvl(dbms_lob.getlength (f.blob_content),0) "Bytes",'';'||chr(10)|| ' q:= q || '' success_rows "Succeeded",''; '||chr(10)|| ' q:= q || '' decode(failed_rows,0,''''0'''',htf.anchor(''''f?p=4300:7:''||:flow_session||''::::F4300_P7_LOAD_ID:'''' || dat.id,'';'||chr(10)|| ' q:= q || '' failed_rows)) "Failed"'';'||chr(10)|| ' q:= q || '' from wwv_flow_file_objects$ f, wwv_flow_data_'; s:=s||'load_unload dat '';'||chr(10)|| ' q:= q || '' where f.id=dat.data_id'' ;'||chr(10)|| ' q:= q || '' and dat.security_group_id =:FLOW_SECURITY_GROUP_ID '';'||chr(10)|| ''||chr(10)|| ' if (:F4300_P8_RESTRICT_BY = ''MY'' or :F4300_P8_RESTRICT_BY is NULL) then'||chr(10)|| ' q:= q || '' and dat.created_by = :FLOW_USER '';'||chr(10)|| ' end if; '||chr(10)|| 'return q;'||chr(10)|| 'end;'; wwv_flow_api.create_report_region ( p_id=> 234960616202337996.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 8.4306, p_name=> '资料档案库', p_region_name=>'', p_template=> 101735615849237059.4306+ wwv_flow_api.g_id_offset, p_display_sequence=> 40, p_display_column=> 1, p_display_point=> 'AFTER_SHOW_ITEMS', p_source=> s, p_source_type=> 'FUNCTION_RETURNING_SQL_QUERY', p_display_error_message=> '#SQLERRM#', p_plug_caching=> 'NOT_CACHED', p_customized=> '0', p_query_row_template=> 24534016112516813.4306+ wwv_flow_api.g_id_offset, p_query_headings_type=> 'COLON_DELMITED_LIST', p_query_num_rows=> '15', p_query_options=> 'DERIVED_REPORT_COLUMNS', p_query_show_nulls_as=> ' - ', p_query_break_cols=> '0', p_query_no_data_found=> '未找到文件', p_query_num_rows_type=> 'ROW_RANGES', p_query_row_count_max=> '500', p_pagination_display_position=> 'BOTTOM_RIGHT', p_csv_output=> 'N', p_query_asc_image=> 'arrow_down_gray_dark.gif', p_query_asc_image_attr=> 'width="13" height="12"', p_query_desc_image=> 'arrow_up_gray_dark.gif', p_query_desc_image_attr=> 'width="13" height="12"', p_plug_query_strip_html=> 'Y', p_comment=>''); end; / declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=> 234961216430338008.4306 + wwv_flow_api.g_id_offset, p_region_id=> 234960616202337996.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_query_column_id=> 1, p_form_element_id=> null, p_column_alias=> 'CB', p_column_display_sequence=> 1, p_column_heading=> ' ', p_column_alignment=>'LEFT', p_heading_alignment=>'CENTER', p_default_sort_column_sequence=>0, p_disable_sort_column=>'Y', p_sum_column=> 'N', p_hidden_column=> 'N', p_display_as=>'WITHOUT_MODIFICATION', p_pk_col_source=> s, p_column_comment=>''); end; / declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=> 234961308847338008.4306 + wwv_flow_api.g_id_offset, p_region_id=> 234960616202337996.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_query_column_id=> 2, p_form_element_id=> null, p_column_alias=> 'Details', p_column_display_sequence=> 2, p_column_heading=> '详细资料', p_column_alignment=>'LEFT', p_heading_alignment=>'CENTER', p_default_sort_column_sequence=>0, p_disable_sort_column=>'Y', p_sum_column=> 'N', p_hidden_column=> 'N', p_display_as=>'WITHOUT_MODIFICATION', p_pk_col_source=> s, p_column_comment=>''); end; / declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=> 234961403149338008.4306 + wwv_flow_api.g_id_offset, p_region_id=> 234960616202337996.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_query_column_id=> 3, p_form_element_id=> null, p_column_alias=> 'File', p_column_display_sequence=> 3, p_column_heading=> '文件', p_column_alignment=>'LEFT', p_heading_alignment=>'CENTER', p_default_sort_column_sequence=>0, p_disable_sort_column=>'Y', p_sum_column=> 'N', p_hidden_column=> 'N', p_display_as=>'WITHOUT_MODIFICATION', p_pk_col_source=> s, p_column_comment=>''); end; / declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=> 234961531529338008.4306 + wwv_flow_api.g_id_offset, p_region_id=> 234960616202337996.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_query_column_id=> 4, p_form_element_id=> null, p_column_alias=> 'Created By', p_column_display_sequence=> 4, p_column_heading=> '导入者', p_column_alignment=>'LEFT', p_heading_alignment=>'CENTER', p_default_sort_column_sequence=>0, p_disable_sort_column=>'N', p_sum_column=> 'N', p_hidden_column=> 'N', p_display_as=>'ESCAPE_SC', p_lov_show_nulls=> 'NO', p_pk_col_source=> s, p_lov_display_extra=> 'YES', p_column_comment=>''); end; / declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=> 234961610894338008.4306 + wwv_flow_api.g_id_offset, p_region_id=> 234960616202337996.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_query_column_id=> 5, p_form_element_id=> null, p_column_alias=> 'Created on', p_column_display_sequence=> 5, p_column_heading=> '导入时间', p_column_format=> 'SINCE', p_column_alignment=>'LEFT', p_heading_alignment=>'CENTER', p_default_sort_column_sequence=>1, p_default_sort_dir=>'desc', p_disable_sort_column=>'N', p_sum_column=> 'N', p_hidden_column=> 'N', p_display_as=>'WITHOUT_MODIFICATION', p_lov_show_nulls=> 'NO', p_pk_col_source=> s, p_lov_display_extra=> 'YES', p_column_comment=>''); end; / declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=> 234961731890338010.4306 + wwv_flow_api.g_id_offset, p_region_id=> 234960616202337996.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_query_column_id=> 6, p_form_element_id=> null, p_column_alias=> 'Type', p_column_display_sequence=> 6, p_column_heading=> '类型', p_column_alignment=>'LEFT', p_heading_alignment=>'CENTER', p_default_sort_column_sequence=>0, p_disable_sort_column=>'Y', p_sum_column=> 'N', p_hidden_column=> 'N', p_display_as=>'WITHOUT_MODIFICATION', p_pk_col_source=> s, p_column_comment=>''); end; / declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=> 234961804936338010.4306 + wwv_flow_api.g_id_offset, p_region_id=> 234960616202337996.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_query_column_id=> 7, p_form_element_id=> null, p_column_alias=> 'Schema', p_column_display_sequence=> 7, p_column_heading=> '方案', p_column_alignment=>'LEFT', p_heading_alignment=>'CENTER', p_default_sort_column_sequence=>0, p_disable_sort_column=>'N', p_sum_column=> 'N', p_hidden_column=> 'N', p_display_as=>'ESCAPE_SC', p_lov_show_nulls=> 'NO', p_pk_col_source=> s, p_lov_display_extra=> 'YES', p_column_comment=>''); end; / declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=> 234961924524338011.4306 + wwv_flow_api.g_id_offset, p_region_id=> 234960616202337996.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_query_column_id=> 8, p_form_element_id=> null, p_column_alias=> 'Table', p_column_display_sequence=> 8, p_column_heading=> '表', p_column_alignment=>'LEFT', p_heading_alignment=>'CENTER', p_default_sort_column_sequence=>0, p_disable_sort_column=>'N', p_sum_column=> 'N', p_hidden_column=> 'N', p_display_as=>'ESCAPE_SC', p_lov_show_nulls=> 'NO', p_pk_col_source=> s, p_lov_display_extra=> 'YES', p_column_comment=>''); end; / declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=> 234962026814338011.4306 + wwv_flow_api.g_id_offset, p_region_id=> 234960616202337996.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_query_column_id=> 9, p_form_element_id=> null, p_column_alias=> 'Bytes', p_column_display_sequence=> 9, p_column_heading=> '字节', p_column_format=> '999G999G999G999G990', p_column_alignment=>'RIGHT', p_heading_alignment=>'CENTER', p_default_sort_column_sequence=>0, p_disable_sort_column=>'Y', p_sum_column=> 'N', p_hidden_column=> 'N', p_display_as=>'WITHOUT_MODIFICATION', p_lov_show_nulls=> 'NO', p_pk_col_source=> s, p_lov_display_extra=> 'YES', p_column_comment=>''); end; / declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=> 234962102068338011.4306 + wwv_flow_api.g_id_offset, p_region_id=> 234960616202337996.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_query_column_id=> 10, p_form_element_id=> null, p_column_alias=> 'Succeeded', p_column_display_sequence=> 10, p_column_heading=> '成功', p_column_alignment=>'RIGHT', p_heading_alignment=>'CENTER', p_default_sort_column_sequence=>0, p_disable_sort_column=>'Y', p_sum_column=> 'N', p_hidden_column=> 'N', p_display_as=>'WITHOUT_MODIFICATION', p_pk_col_source=> s, p_column_comment=>''); end; / declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=> 234962213306338011.4306 + wwv_flow_api.g_id_offset, p_region_id=> 234960616202337996.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_query_column_id=> 11, p_form_element_id=> null, p_column_alias=> 'Failed', p_column_display_sequence=> 11, p_column_heading=> '失败', p_column_alignment=>'RIGHT', p_heading_alignment=>'CENTER', p_default_sort_column_sequence=>0, p_disable_sort_column=>'Y', p_sum_column=> 'N', p_hidden_column=> 'N', p_display_as=>'WITHOUT_MODIFICATION', p_pk_col_source=> s, p_column_comment=>''); end; / begin wwv_flow_api.create_page_button( p_id => 130487609243007078.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 8.4306, p_button_sequence=> 30, p_button_plug_id => 3921012881766600+wwv_flow_api.g_id_offset, p_button_name => 'Delete', p_button_image_alt=> '删除选定项', p_button_position=> 'REGION_TEMPLATE_DELETE', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_condition=> 'select 1'||chr(10)|| 'from wwv_flow_file_objects$ f, wwv_flow_data_load_unload dat'||chr(10)|| 'where f.id=dat.data_id'||chr(10)|| 'and dat.security_group_id =:FLOW_SECURITY_GROUP_ID', p_button_condition_type=> 'EXISTS', p_required_patch => null + wwv_flow_api.g_id_offset); end; / begin wwv_flow_api.create_page_branch( p_id=>130488219172007162.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 8.4306, p_branch_action=> '8', p_branch_point=> 'AFTER_PROCESSING', p_branch_type=> 'BRANCH_TO_STEP', p_branch_sequence=> 10, p_save_state_before_branch_yn=>'N', p_branch_comment=> ''); end; / declare h varchar2(32767) := null; begin wwv_flow_api.create_page_item( p_id=>51804488943808398.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 8.4306, p_name=>'F4300_P8_GO', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 20, p_item_plug_id => 3921012881766600.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'NO', p_item_default => 'GO', p_prompt=>'开始', p_source=>'GO', p_source_type=> 'STATIC', p_display_as=> 'BUTTON', p_lov_columns=> null, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_begin_on_new_line => 'NO', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'LEFT', p_field_alignment => 'LEFT', p_is_persistent=> 'N', p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'指定是显示您的文件还是显示所有文件'; wwv_flow_api.create_page_item( p_id=>51821394189864043.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 8.4306, p_name=>'F4300_P8_RESTRICT_BY', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 10, p_item_plug_id => 3921012881766600.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'显示', p_source_type=> 'STATIC', p_display_as=> 'COMBOBOX', p_named_lov=> 'RESTRICT.LOAD.FILES', p_lov => '.'||to_char(87918702852509211 + wwv_flow_api.g_id_offset)||'.', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', p_field_template => 346584010124457412.4306+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_item_comment => ''); end; / begin wwv_flow_api.create_page_validation( p_id => 165133620695131261.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 8.4306, p_validation_name => 'SelectAtLeastOne', p_validation_sequence=> 10, p_validation => 'wwv_flow.g_f01.count > 0', p_validation_type => 'PLSQL_EXPRESSION', p_error_message => '必须至少选择一个要删除的文件。', p_when_button_pressed=> 130487609243007078.4306 + wwv_flow_api.g_id_offset, p_associated_item=> .4306 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin declare p varchar2(32767) := null; l_clob clob; l_length number := 1; begin p:=p||'reset_pagination'; wwv_flow_api.create_page_process( p_id => 51823819555198806.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id => 8.4306, p_process_sequence=> 10, p_process_point=> 'AFTER_SUBMIT', p_process_type=> 'RESET_PAGINATION', p_process_name=> 'rest pagination', p_process_sql_clob => p, p_process_error_message=> '', p_process_when=>'GO', p_process_when_type=>'REQUEST_EQUALS_CONDITION', p_process_success_message=> '', p_process_is_stateful_y_n=>'N', p_process_comment=>''); end; null; end; / begin declare p varchar2(32767) := null; l_clob clob; l_length number := 1; begin p:=p||'for i in 1..wwv_flow.g_f01.count loop'||chr(10)|| ' delete from wwv_flow_file_objects$'||chr(10)|| ' where id = wwv_flow.g_f01(i)'||chr(10)|| ' and security_group_id = :flow_security_group_id;'||chr(10)|| ''||chr(10)|| ' delete from wwv_flow_data_load_unload'||chr(10)|| ' where data_id = wwv_flow.g_f01(i)'||chr(10)|| ' and security_group_id = :flow_security_group_id;'||chr(10)|| 'end loop;'; wwv_flow_api.create_page_process( p_id => 130807727310131197.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id => 8.4306, p_process_sequence=> 10, p_process_point=> 'AFTER_SUBMIT', p_process_type=> 'PLSQL', p_process_name=> 'delete file', p_process_sql_clob => p, p_process_error_message=> '删除文件时出错。', p_process_when_button_id=>130487609243007078.4306 + wwv_flow_api.g_id_offset, p_process_when=>'wwv_flow.g_f01.count > 0', p_process_when_type=>'PLSQL_EXPRESSION', p_process_success_message=> '文件已删除。', p_process_is_stateful_y_n=>'N', p_process_comment=>''); end; null; end; / begin --------------------------------------- -- ...updatable report columns for page 8.4306 -- begin null; end; null; end; / --application/pages/page_9.430 prompt ...PAGE 9.4306: 加载 -- begin declare h varchar2(32767) := null; ph varchar2(32767) := null; begin h:=h||'AEUTL/sql_utl_imprt.htm'; ph := null; wwv_flow_api.create_page( p_id => 9.4306, p_flow_id=> wwv_flow.g_flow_id, p_tab_set=> '', p_name => '加载', p_step_title=> '加载', p_step_sub_title_type => 'TEXT_WITH_SUBSTITUTIONS', p_first_item=> 'AUTO_FIRST_ITEM', p_include_apex_css_js_yn=>'Y', p_autocomplete_on_off => '', p_group_id => 216950505720834051+ wwv_flow_api.g_id_offset, p_help_text => ' ', p_html_page_header => '', p_step_template => 7505408382227958.4306+ wwv_flow_api.g_id_offset, p_required_patch=> null + wwv_flow_api.g_id_offset, p_last_updated_by => '', p_last_upd_yyyymmddhh24miss => '20090409165722', p_page_is_public_y_n=> 'N', p_page_comment => ''); wwv_flow_api.set_page_help_text(p_flow_id=>wwv_flow.g_flow_id,p_flow_step_id=>9.4306,p_text=>h); end; end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 6680925060642280.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 9.4306, p_plug_name=> 'Menu', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 30, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_08', p_plug_source=> s, p_plug_source_type=> 'M'|| to_char(6678815232629976 + wwv_flow_api.g_id_offset), p_menu_template_id=> 6680621597641306.4306+ wwv_flow_api.g_id_offset, p_plug_query_row_template=> 1, p_plug_query_headings_type=> '', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_display_condition_type => '', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 51830015797676143.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 9.4306, p_plug_name=> 'Data Load', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 1, p_plug_display_column=> 1, p_plug_display_point=> 'AFTER_SHOW_ITEMS', p_plug_source=> s, p_plug_source_type=> 74707671328250039 + wwv_flow_api.g_id_offset, p_plug_query_row_template=> 1, p_plug_query_headings_type=> '', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_display_condition_type => '', p_plug_customized=>'0', p_plug_customized_name=>'数据加载图标', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> 'Load data from your computer from various file formats into your online database.'); end; / begin null; end; / begin null; end; / begin --------------------------------------- -- ...updatable report columns for page 9.4306 -- begin null; end; null; end; / --application/pages/page_11.43 prompt ...PAGE 11.4306: 电子表格资料档案库 -- begin declare h varchar2(32767) := null; ph varchar2(32767) := null; begin h:=h||'AEUTL/sql_utl_exprt.htm'; ph := null; wwv_flow_api.create_page( p_id => 11.4306, p_flow_id=> wwv_flow.g_flow_id, p_tab_set=> '', p_name => '电子表格资料档案库', p_step_title=> '电子表格资料档案库', p_step_sub_title_type => 'TEXT_WITH_SUBSTITUTIONS', p_first_item=> 'AUTO_FIRST_ITEM', p_include_apex_css_js_yn=>'Y', p_autocomplete_on_off => '', p_group_id => 215729525348581243+ wwv_flow_api.g_id_offset, p_help_text => ' ', p_html_page_header => '', p_step_template => 7505408382227958.4306+ wwv_flow_api.g_id_offset, p_required_patch=> null + wwv_flow_api.g_id_offset, p_last_updated_by => '', p_last_upd_yyyymmddhh24miss => '20090409165722', p_page_is_public_y_n=> 'N', p_page_comment => ''); wwv_flow_api.set_page_help_text(p_flow_id=>wwv_flow.g_flow_id,p_flow_step_id=>11.4306,p_text=>h); end; end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'3648913903408259'; wwv_flow_api.create_page_plug ( p_id=> 3655019491438205.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 11.4306, p_plug_name=> '任务', p_region_name=>'', p_plug_template=> 3477413584526840.4306+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 30, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_03', p_plug_source=> s, p_plug_source_type=> 3648913903408259 + wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 3925626518780012.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 11.4306, p_plug_name=> 'button bar', p_region_name=>'', p_plug_template=> 108205605860896611.4306+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 5, p_plug_display_column=> 1, p_plug_display_point=> 'AFTER_SHOW_ITEMS', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 9390411712273861.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 11.4306, p_plug_name=> 'Menu', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 1, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_08', p_plug_source=> s, p_plug_source_type=> 'M'|| to_char(6678815232629976 + wwv_flow_api.g_id_offset), p_menu_template_id=> 6680621597641306.4306+ wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'此页显示导入的电子表格数据的状态。
'||chr(10)|| '要删除状态条目, 请选中它, 然后单击删除选定项。
'; wwv_flow_api.create_page_plug ( p_id=> 114705422835023938.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 11.4306, p_plug_name=> '电子表格资料档案库', p_region_name=>'', p_plug_template=> 104263607591363808.4306+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 20, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_03', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> '', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_display_condition_type => '', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'declare'||chr(10)|| ' q varchar2(4000); '||chr(10)|| 'begin '||chr(10)|| ' q:= q || ''select '';'||chr(10)|| ' q:= q || '''''''''' cb,'';'||chr(10)|| ' q:= q || ''htf.anchor(''''f?p=4300:2:''||:flow_session||''::::P2_LOAD_ID:'''' || dat.id, '';'||chr(10)|| ' q:= q || '' htf.img (''''#IMAGE_PREFIX#24find.gif'''', NULL, NULL'; s:=s||', NULL,''''border="0" alt="''||wwv_flow_lang.system_message(''DETAILS_FOR_ALT_TAG'')||''" title="''||wwv_flow_lang.system_message(''DETAILS_FOR_ALT_TAG'')||''" height="24" width="24"'''')) "Details",'';'||chr(10)|| ' q:= q || '' dat.created_by "Created By", '';'||chr(10)|| ' q:= q || '' dat.created_on "Created on", '';'||chr(10)|| ' q:= q || '' decode (data_type, ''''EXCEL IMPORT'''', wwv_flow_lang.system_message(''''F4300.SPREADSHEET_IMPORT'''')) "Type", '''; s:=s||';'||chr(10)|| ' q:= q || ''data_Schema "Schema", '';'||chr(10)|| ''||chr(10)|| ''||chr(10)|| ' q:= q || ''data_table "TABLE", ''; '||chr(10)|| ' q:= q || '' success_rows "Succeeded",'';'||chr(10)|| ' q:= q || '' decode(failed_rows,0,''''0'''',htf.anchor(''''f?p=4300:2:''||:flow_session||''::::P2_LOAD_ID:'''' || dat.id,'';'||chr(10)|| ' q:= q || '' failed_rows)) "Failed", '';'||chr(10)|| ' q:= q || '' o.object_id object_id, o.owner object_owner '';'||chr(10)|| ' q:= q || '' from wwv_flow_data_load_unload dat, sys.dba_object'; s:=s||'s o ''; '||chr(10)|| ' q:= q || '' where o.owner = dat.data_schema '';'||chr(10)|| ' q:= q || '' and o.object_name = dat.data_table '';'||chr(10)|| ' q:= q || '' and o.object_type = ''''TABLE'''' '';'||chr(10)|| ' q:= q || '' and dat.security_group_id =:FLOW_SECURITY_GROUP_ID '';'||chr(10)|| ' q:= q || '' and data_type = ''''EXCEL IMPORT'''''';'||chr(10)|| ''||chr(10)|| ' if (:F4300_P11_RESTRICT_BY = ''MY'' or :F4300_P11_RESTRICT_BY is NULL) then'||chr(10)|| ' q:= q || '' and dat.created_by = :FLOW_USER '';'||chr(10)|| ' '; s:=s||' end if; '||chr(10)|| 'return q;'||chr(10)|| 'end;'; wwv_flow_api.create_report_region ( p_id=> 234717428566209000.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 11.4306, p_name=> 'Loads', p_region_name=>'', p_template=> 0+ wwv_flow_api.g_id_offset, p_display_sequence=> 40, p_display_column=> 1, p_display_point=> 'AFTER_SHOW_ITEMS', p_source=> s, p_source_type=> 'FUNCTION_RETURNING_SQL_QUERY', p_display_error_message=> '#SQLERRM#', p_plug_caching=> 'NOT_CACHED', p_customized=> '0', p_query_row_template=> 10583525904875984.4306+ wwv_flow_api.g_id_offset, p_query_headings_type=> 'COLON_DELMITED_LIST', p_query_num_rows=> '15', p_query_options=> 'DERIVED_REPORT_COLUMNS', p_query_show_nulls_as=> ' - ', p_query_break_cols=> '0', p_query_no_data_found=> '未找到任何数据。', p_query_num_rows_type=> 'ROW_RANGES', p_query_row_count_max=> '500', p_pagination_display_position=> 'BOTTOM_RIGHT', p_csv_output=> 'N', p_query_asc_image=> 'arrow_down_gray_dark.gif', p_query_asc_image_attr=> 'width="13" height="12"', p_query_desc_image=> 'arrow_up_gray_dark.gif', p_query_desc_image_attr=> 'width="13" height="12"', p_plug_query_strip_html=> 'Y', p_comment=>''); end; / declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=> 234718032272209012.4306 + wwv_flow_api.g_id_offset, p_region_id=> 234717428566209000.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_query_column_id=> 1, p_form_element_id=> null, p_column_alias=> 'CB', p_column_display_sequence=> 1, p_column_heading=> ' ', p_column_alignment=>'LEFT', p_heading_alignment=>'CENTER', p_default_sort_column_sequence=>0, p_disable_sort_column=>'Y', p_sum_column=> 'N', p_hidden_column=> 'N', p_display_as=>'WITHOUT_MODIFICATION', p_pk_col_source=> s, p_column_comment=>''); end; / declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=> 234718112718209012.4306 + wwv_flow_api.g_id_offset, p_region_id=> 234717428566209000.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_query_column_id=> 2, p_form_element_id=> null, p_column_alias=> 'Details', p_column_display_sequence=> 2, p_column_heading=> '详细资料', p_column_alignment=>'LEFT', p_heading_alignment=>'CENTER', p_default_sort_column_sequence=>0, p_disable_sort_column=>'Y', p_sum_column=> 'N', p_hidden_column=> 'N', p_display_as=>'WITHOUT_MODIFICATION', p_pk_col_source=> s, p_column_comment=>''); end; / declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=> 234718206872209012.4306 + wwv_flow_api.g_id_offset, p_region_id=> 234717428566209000.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_query_column_id=> 3, p_form_element_id=> null, p_column_alias=> 'Created By', p_column_display_sequence=> 3, p_column_heading=> '导入者', p_column_alignment=>'LEFT', p_heading_alignment=>'CENTER', p_default_sort_column_sequence=>0, p_disable_sort_column=>'N', p_sum_column=> 'N', p_hidden_column=> 'N', p_display_as=>'WITHOUT_MODIFICATION', p_pk_col_source=> s, p_column_comment=>''); end; / declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=> 234718310926209013.4306 + wwv_flow_api.g_id_offset, p_region_id=> 234717428566209000.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_query_column_id=> 4, p_form_element_id=> null, p_column_alias=> 'Created on', p_column_display_sequence=> 4, p_column_heading=> '导入时间', p_column_format=> 'SINCE', p_column_alignment=>'LEFT', p_heading_alignment=>'CENTER', p_default_sort_column_sequence=>1, p_default_sort_dir=>'desc', p_disable_sort_column=>'N', p_sum_column=> 'N', p_hidden_column=> 'N', p_display_as=>'WITHOUT_MODIFICATION', p_lov_show_nulls=> 'NO', p_pk_col_source=> s, p_lov_display_extra=> 'YES', p_column_comment=>''); end; / declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=> 234718429023209013.4306 + wwv_flow_api.g_id_offset, p_region_id=> 234717428566209000.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_query_column_id=> 5, p_form_element_id=> null, p_column_alias=> 'Type', p_column_display_sequence=> 5, p_column_heading=> '类型', p_column_alignment=>'LEFT', p_heading_alignment=>'CENTER', p_default_sort_column_sequence=>0, p_disable_sort_column=>'Y', p_sum_column=> 'N', p_hidden_column=> 'N', p_display_as=>'WITHOUT_MODIFICATION', p_pk_col_source=> s, p_column_comment=>''); end; / declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=> 234718526244209013.4306 + wwv_flow_api.g_id_offset, p_region_id=> 234717428566209000.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_query_column_id=> 6, p_form_element_id=> null, p_column_alias=> 'Schema', p_column_display_sequence=> 6, p_column_heading=> '方案', p_column_alignment=>'LEFT', p_heading_alignment=>'CENTER', p_default_sort_column_sequence=>0, p_disable_sort_column=>'N', p_sum_column=> 'N', p_hidden_column=> 'N', p_display_as=>'WITHOUT_MODIFICATION', p_pk_col_source=> s, p_column_comment=>''); end; / declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=> 234718631100209013.4306 + wwv_flow_api.g_id_offset, p_region_id=> 234717428566209000.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_query_column_id=> 7, p_form_element_id=> null, p_column_alias=> 'TABLE', p_column_display_sequence=> 7, p_column_heading=> '表', p_column_link=>'f?p=4500:1001:&SESSION.:FOCUS:::OB_OBJECT_ID,OB_CURRENT_TYPE,OB_SCHEMA:#OBJECT_ID#,TABLE,#OBJECT_OWNER#', p_column_linktext=>'#TABLE#', p_column_alignment=>'LEFT', p_heading_alignment=>'CENTER', p_default_sort_column_sequence=>0, p_disable_sort_column=>'N', p_sum_column=> 'N', p_hidden_column=> 'N', p_display_as=>'WITHOUT_MODIFICATION', p_lov_show_nulls=> 'NO', p_pk_col_source=> s, p_lov_display_extra=> 'YES', p_column_comment=>''); end; / declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=> 234718712148209013.4306 + wwv_flow_api.g_id_offset, p_region_id=> 234717428566209000.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_query_column_id=> 8, p_form_element_id=> null, p_column_alias=> 'Succeeded', p_column_display_sequence=> 8, p_column_heading=> '成功', p_column_alignment=>'RIGHT', p_heading_alignment=>'CENTER', p_default_sort_column_sequence=>0, p_disable_sort_column=>'N', p_sum_column=> 'N', p_hidden_column=> 'N', p_display_as=>'WITHOUT_MODIFICATION', p_pk_col_source=> s, p_column_comment=>''); end; / declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=> 234718804458209013.4306 + wwv_flow_api.g_id_offset, p_region_id=> 234717428566209000.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_query_column_id=> 9, p_form_element_id=> null, p_column_alias=> 'Failed', p_column_display_sequence=> 9, p_column_heading=> '失败', p_column_alignment=>'RIGHT', p_heading_alignment=>'CENTER', p_default_sort_column_sequence=>0, p_disable_sort_column=>'N', p_sum_column=> 'N', p_hidden_column=> 'N', p_display_as=>'WITHOUT_MODIFICATION', p_pk_col_source=> s, p_column_comment=>''); end; / declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=> 268495509916252852.4306 + wwv_flow_api.g_id_offset, p_region_id=> 234717428566209000.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_query_column_id=> 10, p_form_element_id=> null, p_column_alias=> 'OBJECT_ID', p_column_display_sequence=> 10, p_column_heading=> 'Object', p_column_alignment=>'LEFT', p_heading_alignment=>'CENTER', p_default_sort_column_sequence=>0, p_disable_sort_column=>'Y', p_sum_column=> 'N', p_hidden_column=> 'Y', p_display_as=>'WITHOUT_MODIFICATION', p_pk_col_source=> s, p_column_comment=>''); end; / declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=> 268502322084284781.4306 + wwv_flow_api.g_id_offset, p_region_id=> 234717428566209000.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_query_column_id=> 11, p_form_element_id=> null, p_column_alias=> 'OBJECT_OWNER', p_column_display_sequence=> 11, p_column_heading=> 'Object Owner', p_column_alignment=>'LEFT', p_heading_alignment=>'CENTER', p_default_sort_column_sequence=>0, p_disable_sort_column=>'Y', p_sum_column=> 'N', p_hidden_column=> 'Y', p_display_as=>'WITHOUT_MODIFICATION', p_pk_col_source=> s, p_column_comment=>''); end; / begin wwv_flow_api.create_page_button( p_id => 192155317097767347.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 11.4306, p_button_sequence=> 10, p_button_plug_id => 3925626518780012+wwv_flow_api.g_id_offset, p_button_name => 'DELETE', p_button_image_alt=> '删除选定项', p_button_position=> 'REGION_TEMPLATE_DELETE', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_condition=> 'select 1'||chr(10)|| 'from wwv_flow_data_load_unload dat, sys.dba_objects o '||chr(10)|| 'where o.owner = dat.data_schema'||chr(10)|| 'and o.object_name = dat.data_table'||chr(10)|| 'and o.object_type = ''TABLE'''||chr(10)|| 'and dat.security_group_id =:FLOW_SECURITY_GROUP_ID'||chr(10)|| 'and data_type = ''EXCEL IMPORT''', p_button_condition_type=> 'EXISTS', p_required_patch => null + wwv_flow_api.g_id_offset); end; / begin wwv_flow_api.create_page_branch( p_id=>114703320184023921.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 11.4306, p_branch_action=> '11', p_branch_point=> 'AFTER_PROCESSING', p_branch_type=> 'BRANCH_TO_STEP', p_branch_sequence=> 10, p_save_state_before_branch_yn=>'N', p_branch_comment=> ''); end; / declare h varchar2(32767) := null; begin wwv_flow_api.create_page_item( p_id=>114704228365023929.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 11.4306, p_name=>'F4300_P11_GO', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 20, p_item_plug_id => 3925626518780012.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'NO', p_item_default => 'GO', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'开始', p_source=>'GO', p_source_type=> 'STATIC', p_display_as=> 'BUTTON', p_lov_columns=> null, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_begin_on_new_line => 'NO', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'LEFT', p_field_alignment => 'LEFT', p_is_persistent=> 'N', p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'指定是显示您的电子表格导入还是显示所有电子表格导入。'; wwv_flow_api.create_page_item( p_id=>114704528502023930.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 11.4306, p_name=>'F4300_P11_RESTRICT_BY', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 10, p_item_plug_id => 3925626518780012.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'显示', p_source_type=> 'STATIC', p_display_as=> 'COMBOBOX', p_named_lov=> 'RESTRICT.LOAD.FILES', p_lov => '.'||to_char(87918702852509211 + wwv_flow_api.g_id_offset)||'.', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', p_field_template => 346584010124457412.4306+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_protection_level => 'N', p_help_text => h, p_item_comment => ''); end; / begin wwv_flow_api.create_page_validation( p_id => 165128603595116797.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 11.4306, p_validation_name => 'SelectAtLeastOne', p_validation_sequence=> 10, p_validation => 'wwv_flow.g_f01.count > 0', p_validation_type => 'PLSQL_EXPRESSION', p_error_message => '必须至少选择一个要删除的文件。', p_when_button_pressed=> 192155317097767347.4306 + wwv_flow_api.g_id_offset, p_associated_item=> .4306 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin declare p varchar2(32767) := null; l_clob clob; l_length number := 1; begin p:=p||'reset_pagination'; wwv_flow_api.create_page_process( p_id => 114704811615023932.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id => 11.4306, p_process_sequence=> 10, p_process_point=> 'AFTER_SUBMIT', p_process_type=> 'RESET_PAGINATION', p_process_name=> 'rest pagination', p_process_sql_clob => p, p_process_error_message=> '', p_process_when=>'GO', p_process_when_type=>'REQUEST_EQUALS_CONDITION', p_process_success_message=> '', p_process_is_stateful_y_n=>'N', p_process_comment=>''); end; null; end; / begin declare p varchar2(32767) := null; l_clob clob; l_length number := 1; begin p:=p||'forall i in 1..wwv_flow.g_f01.count'||chr(10)|| ' delete from wwv_flow_data_load_unload'||chr(10)|| ' where id = wwv_flow.g_f01(i)'||chr(10)|| ' and security_group_id = :flow_security_group_id;'||chr(10)|| 'commit;'; wwv_flow_api.create_page_process( p_id => 192159607728774014.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id => 11.4306, p_process_sequence=> 10, p_process_point=> 'AFTER_SUBMIT', p_process_type=> 'PLSQL', p_process_name=> 'delete load_unload detail', p_process_sql_clob => p, p_process_error_message=> '删除时出错。', p_process_when_button_id=>192155317097767347.4306 + wwv_flow_api.g_id_offset, p_process_success_message=> '电子表格数据加载详细资料已删除。', p_process_is_stateful_y_n=>'N', p_process_comment=>''); end; null; end; / begin --------------------------------------- -- ...updatable report columns for page 11.4306 -- begin null; end; null; end; / --application/pages/page_14.43 prompt ...PAGE 14.4306: 加载 XML 数据 -- begin declare h varchar2(32767) := null; ph varchar2(32767) := null; begin h:=h||'AEUTL/sql_utl_imprt.htm'; ph := null; wwv_flow_api.create_page( p_id => 14.4306, p_flow_id=> wwv_flow.g_flow_id, p_tab_set=> '', p_name => '加载 XML 数据', p_step_title=> '加载 XML 数据', p_step_sub_title_type => 'TEXT_WITH_SUBSTITUTIONS', p_first_item=> 'AUTO_FIRST_ITEM', p_include_apex_css_js_yn=>'Y', p_autocomplete_on_off => '', p_group_id => 215731303316584395+ wwv_flow_api.g_id_offset, p_help_text => ' ', p_html_page_header => '', p_step_template => 3485606247566446.4306+ wwv_flow_api.g_id_offset, p_required_patch=> null + wwv_flow_api.g_id_offset, p_last_updated_by => '', p_last_upd_yyyymmddhh24miss => '20090409165723', p_page_is_public_y_n=> 'N', p_page_comment => ''); wwv_flow_api.set_page_help_text(p_flow_id=>wwv_flow.g_flow_id,p_flow_step_id=>14.4306,p_text=>h); end; end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 6686730517662783.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 14.4306, p_plug_name=> 'Menu', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 1, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_08', p_plug_source=> s, p_plug_source_type=> 'M'|| to_char(6678815232629976 + wwv_flow_api.g_id_offset), p_menu_template_id=> 6680621597641306.4306+ wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 184012102771654838.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 14.4306, p_plug_name=> 'Navigation', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 30, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_01', p_plug_source=> s, p_plug_source_type=> 184273927814400294 + wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> '', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 184012414812654843.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 14.4306, p_plug_name=> '加载 XML 数据', p_region_name=>'', p_plug_template=> 103900825378122658.4306+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 10, p_plug_display_column=> 1, p_plug_display_point=> 'AFTER_SHOW_ITEMS', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> '', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_display_condition_type => '', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'选择数据库方案, 此方案拥有要加载数据的表。
'; wwv_flow_api.create_page_plug ( p_id=> 220809403283406944.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 14.4306, p_plug_name=> '加载 XML 数据', p_region_name=>'', p_plug_template=> 104263607591363808.4306+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 40, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_03', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_plug_display_error_message=> 'Unable to display page region #SQLERRM#', p_plug_query_row_template=> 7082409118250737.4306+ wwv_flow_api.g_id_offset, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_num_rows => 15, p_plug_query_num_rows_type => 'ROWS_X_TO_Y_OF_Z', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top" align="right"', p_plug_query_show_nulls_as => ' - ', p_plug_query_col_allignments => 'L:L:L:L:L:L:L', p_plug_query_sum_cols => '::::::', p_plug_query_number_formats => '::::::', p_plug_display_condition_type => '', p_pagination_display_position=>'BOTTOM_RIGHT', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> 'Region generated 20-SEP-2002 14:00:18'); end; / begin wwv_flow_api.create_page_button( p_id => 184013324637654861.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 14.4306, p_button_sequence=> 10, p_button_plug_id => 184012414812654843+wwv_flow_api.g_id_offset, p_button_name => 'Cancel', p_button_image_alt=> '取消', p_button_position=> 'REGION_TEMPLATE_CLOSE', p_button_alignment=> 'RIGHT', p_button_redirect_url=> 'f?p=4300:9:&FLOW_SESSION.', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 184013029848654860.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 14.4306, p_button_sequence=> 20, p_button_plug_id => 184012414812654843+wwv_flow_api.g_id_offset, p_button_name => 'NEXT', p_button_image_alt=> '下一步 >', p_button_position=> 'REGION_TEMPLATE_NEXT', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_required_patch => null + wwv_flow_api.g_id_offset); end; / begin wwv_flow_api.create_page_branch( p_id=>184013925361654916.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 14.4306, p_branch_action=> '16', p_branch_point=> 'AFTER_PROCESSING', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>184013029848654860.4306+ wwv_flow_api.g_id_offset, p_branch_sequence=> 10, p_save_state_before_branch_yn=>'N', p_branch_comment=> ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'选择拥有要向其中加载数据的表的数据库方案。'; wwv_flow_api.create_page_item( p_id=>184013614902654876.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 14.4306, p_name=>'F4300_P14_TARGET_SCHEMA', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 10, p_item_plug_id => 184012414812654843.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'方案', p_source=>'wwv_flow_user_api.get_default_schema', p_source_type=> 'FUNCTION', p_display_as=> 'COMBOBOX', p_named_lov=> 'LIST_SCHEMA_OWNERS', p_lov => 'select htf.escape_sc(c.schema) d, c.schema v'||chr(10)|| 'from wwv_flow_company_schemas c,'||chr(10)|| ' wwv_flow_fnd_user u'||chr(10)|| 'where c.security_group_id = :flow_security_group_id and'||chr(10)|| ' u.security_group_id = :flow_security_group_id and'||chr(10)|| ' u.user_name = :flow_user and'||chr(10)|| ' (u.ALLOW_ACCESS_TO_SCHEMAS is null or'||chr(10)|| ' instr('':''||u.ALLOW_ACCESS_TO_SCHEMAS||'':'','':''||c.schema||'':'')>0)'||chr(10)|| 'order by 1'||chr(10)|| '', p_lov_columns=> 1, p_lov_display_null=> 'YES', p_lov_translated=> 'N', p_lov_null_text=>'- 选择方案 - ', p_lov_null_value=> '', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', p_field_template => 103910729134154335.4306+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_item_comment => ''); end; / begin wwv_flow_api.create_page_computation( p_id=> 184014831290654966.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 14.4306, p_computation_sequence => 10, p_computation_item=> 'F4300_LAST_VIEW', p_computation_point=> 'BEFORE_HEADER', p_computation_type=> 'STATIC_ASSIGNMENT', p_computation_processed=> 'REPLACE_EXISTING', p_computation=> '14', p_compute_when => '', p_compute_when_type=>''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 184015120393654977.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 14.4306, p_validation_name => 'owner req', p_validation_sequence=> 10, p_validation => 'F4300_P14_TARGET_SCHEMA', p_validation_type => 'ITEM_NOT_NULL', p_error_message => '必须指定方案所有者。', p_associated_item=> 184013614902654876.4306 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin --------------------------------------- -- ...updatable report columns for page 14.4306 -- begin null; end; null; end; / --application/pages/page_16.43 prompt ...PAGE 16.4306: 加载 XML 数据 -- begin declare h varchar2(32767) := null; ph varchar2(32767) := null; begin h:=h||'AEUTL/sql_utl_exprt.htm'; ph := null; wwv_flow_api.create_page( p_id => 16.4306, p_flow_id=> wwv_flow.g_flow_id, p_tab_set=> '', p_name => '加载 XML 数据', p_step_title=> '加载 XML 数据', p_step_sub_title_type => 'TEXT_WITH_SUBSTITUTIONS', p_first_item=> 'AUTO_FIRST_ITEM', p_include_apex_css_js_yn=>'Y', p_autocomplete_on_off => '', p_group_id => 215731303316584395+ wwv_flow_api.g_id_offset, p_help_text => ' ', p_html_page_header => '', p_step_template => 3485606247566446.4306+ wwv_flow_api.g_id_offset, p_required_patch=> null + wwv_flow_api.g_id_offset, p_last_updated_by => '', p_last_upd_yyyymmddhh24miss => '20090409165723', p_page_is_public_y_n=> 'N', p_page_comment => ''); wwv_flow_api.set_page_help_text(p_flow_id=>wwv_flow.g_flow_id,p_flow_step_id=>16.4306,p_text=>h); end; end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 75401014067720212.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 16.4306, p_plug_name=> 'Menu', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 1, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_08', p_plug_source=> s, p_plug_source_type=> 'M'|| to_char(6678815232629976 + wwv_flow_api.g_id_offset), p_menu_template_id=> 6680621597641306.4306+ wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 184017914613657018.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 16.4306, p_plug_name=> '加载 XML 数据', p_region_name=>'', p_plug_template=> 103900825378122658.4306+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 10, p_plug_display_column=> 1, p_plug_display_point=> 'AFTER_SHOW_ITEMS', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> '', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_display_condition_type => '', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 184019711689657038.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 16.4306, p_plug_name=> 'Navigation', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 30, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_01', p_plug_source=> s, p_plug_source_type=> 184273927814400294 + wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> '', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'选择要加载数据的数据库表。
'; wwv_flow_api.create_page_plug ( p_id=> 220811421637412285.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 16.4306, p_plug_name=> '加载 XML 数据', p_region_name=>'', p_plug_template=> 104263607591363808.4306+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 40, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_03', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 7082409118250737.4306+ wwv_flow_api.g_id_offset, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_num_rows => 15, p_plug_query_num_rows_type => 'ROWS_X_TO_Y_OF_Z', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top" align="right"', p_plug_query_show_nulls_as => ' - ', p_plug_query_col_allignments => 'L:L:L:L:L:L:L', p_plug_query_sum_cols => '::::::', p_plug_query_number_formats => '::::::', p_plug_display_condition_type => '', p_pagination_display_position=>'BOTTOM_RIGHT', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / begin wwv_flow_api.create_page_button( p_id => 184018802177657027.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 16.4306, p_button_sequence=> 10, p_button_plug_id => 184017914613657018+wwv_flow_api.g_id_offset, p_button_name => 'Cancel', p_button_image_alt=> '取消', p_button_position=> 'REGION_TEMPLATE_CLOSE', p_button_alignment=> 'RIGHT', p_button_redirect_url=> 'f?p=4300:9:&FLOW_SESSION.', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 184018530878657026.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 16.4306, p_button_sequence=> 10, p_button_plug_id => 184017914613657018+wwv_flow_api.g_id_offset, p_button_name => 'NEXT', p_button_image_alt=> '下一步 >', p_button_position=> 'REGION_TEMPLATE_NEXT', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 184018203910657023.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 16.4306, p_button_sequence=> 1, p_button_plug_id => 184017914613657018+wwv_flow_api.g_id_offset, p_button_name => 'PREV', p_button_image_alt=> '< 上一步', p_button_position=> 'REGION_TEMPLATE_PREVIOUS', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); end; / begin wwv_flow_api.create_page_branch( p_id=>184020011177657040.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 16.4306, p_branch_action=> '17', p_branch_point=> 'AFTER_PROCESSING', p_branch_type=> 'BRANCH_TO_STEP', p_branch_sequence=> 10, p_save_state_before_branch_yn=>'N', p_branch_comment=> ''); wwv_flow_api.create_page_branch( p_id=>184020313577657044.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 16.4306, p_branch_action=> '14', p_branch_point=> 'BEFORE_VALIDATION', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>184018203910657023.4306+ wwv_flow_api.g_id_offset, p_branch_sequence=> 10, p_save_state_before_branch_yn=>'N', p_branch_comment=> 'Created 06-MAR-2001 16:15 by FLOWS'); end; / declare h varchar2(32767) := null; begin wwv_flow_api.create_page_item( p_id=>77511523486965113.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 16.4306, p_name=>'P16_CASE_SENSITIVE', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 20, p_item_plug_id => 184017914613657018.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_source_type=> 'STATIC', p_display_as=> 'CHECKBOX', p_named_lov=> 'CASE.SENSITIVE.Y', p_lov => '.'||to_char(87923517360560740 + wwv_flow_api.g_id_offset)||'.', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_tag_attributes2=> 'class="fielddata"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', p_field_template => 103909823939152778.4306+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'选择要向其中加载数据的数据库表。默认情况下, 所有表名都会转换为全部大写的形式。选择保留大小写可覆盖此默认行为。'; wwv_flow_api.create_page_item( p_id=>184019113402657028.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 16.4306, p_name=>'F4300_P16_TARGET_TABLE', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 10, p_item_plug_id => 184017914613657018.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'表', p_source_type=> 'STATIC', p_display_as=> 'POPUP', p_named_lov=> 'P16_TABLES', p_lov => 'select table_name a, table_name b'||chr(10)|| 'from sys.dba_tables'||chr(10)|| 'where owner=:F4300_P14_TARGET_SCHEMA'||chr(10)|| 'and table_name not like ''BIN$%'''||chr(10)|| 'order by 1', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', p_field_template => 103910729134154335.4306+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'要从中选择表的方案的名称'; wwv_flow_api.create_page_item( p_id=>184968013620011483.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 16.4306, p_name=>'F4300_P16_SCHEMA', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 5, p_item_plug_id => 184017914613657018.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'NO', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'方案:', p_source=>'F4300_P14_TARGET_SCHEMA', p_source_type=> 'ITEM', p_display_as=> 'DISPLAY_ONLY_HTML', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_tag_attributes => 'class="fielddatabold"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', p_field_template => 103909823939152778.4306+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_item_comment => ''); end; / begin wwv_flow_api.create_page_computation( p_id=> 77516011281980481.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 16.4306, p_computation_sequence => 10, p_computation_item=> 'F4300_P16_TARGET_TABLE', p_computation_point=> 'AFTER_SUBMIT', p_computation_type=> 'PLSQL_EXPRESSION', p_computation_processed=> 'REPLACE_EXISTING', p_computation=> 'upper(:F4300_P16_TARGET_TABLE)', p_compute_when => 'P16_CASE_SENSITIVE', p_compute_when_type=>'ITEM_IS_NULL'); null; end; / begin wwv_flow_api.create_page_validation( p_id => 77513614613972038.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 16.4306, p_validation_name => 'table exists', p_validation_sequence=> 10, p_validation => 'select 1'||chr(10)|| 'from sys.dba_objects'||chr(10)|| 'where owner = :F4300_P14_TARGET_SCHEMA'||chr(10)|| 'and object_name = :F4300_P16_TARGET_TABLE'||chr(10)|| 'and object_type in (''TABLE'')', p_validation_type => 'EXISTS', p_error_message => '表不存在。', p_validation_condition=> 'F4300_P16_TARGET_TABLE', p_validation_condition_type=> 'ITEM_IS_NOT_NULL', p_when_button_pressed=> 184018530878657026.4306 + wwv_flow_api.g_id_offset, p_associated_item=> 184019113402657028.4306 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 184020605388657045.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 16.4306, p_validation_name => 'table required', p_validation_sequence=> 10, p_validation => 'F4300_P16_TARGET_TABLE', p_validation_type => 'ITEM_NOT_NULL', p_error_message => '必须指定表。', p_associated_item=> 184019113402657028.4306 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin declare p varchar2(32767) := null; l_clob clob; l_length number := 1; begin p:=p||'wwv_flow_sw_api.check_priv(:F4300_P14_TARGET_SCHEMA);'; wwv_flow_api.create_page_process( p_id => 69930004303898689.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id => 16.4306, p_process_sequence=> 10, p_process_point=> 'BEFORE_HEADER', p_process_type=> 'PLSQL', p_process_name=> 'Validate Schema', p_process_sql_clob => p, p_process_error_message=> '方案无效', p_process_success_message=> '', p_process_is_stateful_y_n=>'N', p_process_comment=>''); end; null; end; / begin --------------------------------------- -- ...updatable report columns for page 16.4306 -- begin null; end; null; end; / --application/pages/page_17.43 prompt ...PAGE 17.4306: 加载 XML 数据 -- begin declare h varchar2(32767) := null; ph varchar2(32767) := null; begin h:=h||'AEUTL/sql_utl_exprt.htm'; ph := null; wwv_flow_api.create_page( p_id => 17.4306, p_flow_id=> wwv_flow.g_flow_id, p_tab_set=> '', p_name => '加载 XML 数据', p_step_title=> '加载 XML 数据', p_step_sub_title_type => 'TEXT_WITH_SUBSTITUTIONS', p_first_item=> 'AUTO_FIRST_ITEM', p_include_apex_css_js_yn=>'Y', p_autocomplete_on_off => '', p_group_id => 215731303316584395+ wwv_flow_api.g_id_offset, p_help_text => ' ', p_html_page_header => '', p_step_template => 3485606247566446.4306+ wwv_flow_api.g_id_offset, p_required_patch=> null + wwv_flow_api.g_id_offset, p_last_updated_by => '', p_last_upd_yyyymmddhh24miss => '20090409165723', p_page_is_public_y_n=> 'N', p_page_comment => ''); wwv_flow_api.set_page_help_text(p_flow_id=>wwv_flow.g_flow_id,p_flow_step_id=>17.4306,p_text=>h); end; end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 75402620647722110.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 17.4306, p_plug_name=> 'Menu', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 1, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_08', p_plug_source=> s, p_plug_source_type=> 'M'|| to_char(6678815232629976 + wwv_flow_api.g_id_offset), p_menu_template_id=> 6680621597641306.4306+ wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 184023412772659950.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 17.4306, p_plug_name=> '加载 XML 数据', p_region_name=>'', p_plug_template=> 103900825378122658.4306+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 10, p_plug_display_column=> 1, p_plug_display_point=> 'AFTER_SHOW_ITEMS', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 7082409118250737.4306+ wwv_flow_api.g_id_offset, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_num_rows => 15, p_plug_query_num_rows_type => 'ROWS_X_TO_Y_OF_Z', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_query_show_nulls_as => ' - ', p_plug_query_col_allignments => 'L:L:L:L:L:L:L', p_plug_query_sum_cols => '::::::', p_plug_query_number_formats => '::::::', p_plug_display_condition_type => '', p_pagination_display_position=>'BOTTOM_RIGHT', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 184025503752659961.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 17.4306, p_plug_name=> 'Navigation', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 30, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_01', p_plug_source=> s, p_plug_source_type=> 184273927814400294 + wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> '', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'找出要上载的 XML 文档。
'||chr(10)|| ''; wwv_flow_api.create_page_plug ( p_id=> 220812507916417794.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 17.4306, p_plug_name=> '加载 XML 数据', p_region_name=>'', p_plug_template=> 104263607591363808.4306+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 40, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_03', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_plug_display_error_message=> 'Unable to display page region #SQLERRM#', p_plug_query_row_template=> 7082409118250737.4306+ wwv_flow_api.g_id_offset, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_num_rows => 15, p_plug_query_num_rows_type => 'ROWS_X_TO_Y_OF_Z', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top" align="right"', p_plug_query_show_nulls_as => ' - ', p_plug_query_col_allignments => 'L:L:L:L:L:L:L', p_plug_query_sum_cols => '::::::', p_plug_query_number_formats => '::::::', p_plug_display_condition_type => '', p_pagination_display_position=>'BOTTOM_RIGHT', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> 'Region generated 20-SEP-2002 14:00:17'); end; / begin wwv_flow_api.create_page_button( p_id => 184024300234659954.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 17.4306, p_button_sequence=> 10, p_button_plug_id => 184023412772659950+wwv_flow_api.g_id_offset, p_button_name => 'Cancel', p_button_image_alt=> '取消', p_button_position=> 'REGION_TEMPLATE_CLOSE', p_button_alignment=> 'RIGHT', p_button_redirect_url=> 'f?p=4300:9:&FLOW_SESSION.', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 184024014061659952.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 17.4306, p_button_sequence=> 10, p_button_plug_id => 184023412772659950+wwv_flow_api.g_id_offset, p_button_name => 'LOAD', p_button_image_alt=> '加载数据', p_button_position=> 'REGION_TEMPLATE_CREATE', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 184023723336659951.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 17.4306, p_button_sequence=> 1, p_button_plug_id => 184023412772659950+wwv_flow_api.g_id_offset, p_button_name => 'PREV', p_button_image_alt=> '< 上一步', p_button_position=> 'REGION_TEMPLATE_PREVIOUS', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); end; / begin wwv_flow_api.create_page_branch( p_id=>184025801444659963.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 17.4306, p_branch_action=> '9', p_branch_point=> 'AFTER_PROCESSING', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>184024014061659952.4306+ wwv_flow_api.g_id_offset, p_branch_sequence=> 10, p_save_state_before_branch_yn=>'N', p_branch_comment=> ''); wwv_flow_api.create_page_branch( p_id=>184026128584659964.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 17.4306, p_branch_action=> '16', p_branch_point=> 'BEFORE_VALIDATION', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>184023723336659951.4306+ wwv_flow_api.g_id_offset, p_branch_sequence=> 10, p_save_state_before_branch_yn=>'N', p_branch_comment=> 'Created 06-MAR-2001 16:15 by FLOWS'); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'单击浏览定位要上载的 XML 文件。'; wwv_flow_api.create_page_item( p_id=>184024932604659957.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 17.4306, p_name=>'F4300_P17_FILE', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 30, p_item_plug_id => 184023412772659950.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'文件', p_source_type=> 'STATIC', p_display_as=> 'FILE', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 60, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', p_display_when=>':F4300_P17_FILE is NULL', p_display_when_type=>'FLOW_ITEM_IS_NULL', p_field_template => 103910729134154335.4306+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_protection_level => 'N', p_escape_on_http_input => 'N', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'表方案的名称'; wwv_flow_api.create_page_item( p_id=>184976328920019627.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 17.4306, p_name=>'F4300_P17_SCHEMA', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 10, p_item_plug_id => 184023412772659950.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'NO', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'方案:', p_source=>'F4300_P14_TARGET_SCHEMA', p_source_type=> 'ITEM', p_display_as=> 'DISPLAY_ONLY_HTML', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_tag_attributes => 'class="fielddatabold"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', p_field_template => 103909823939152778.4306+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'要将数据上载到的表的名称'; wwv_flow_api.create_page_item( p_id=>184979620725023347.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 17.4306, p_name=>'F4300_P17_TABLE', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 20, p_item_plug_id => 184023412772659950.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'NO', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'表名:', p_source=>'F4300_P16_TARGET_TABLE', p_source_type=> 'ITEM', p_display_as=> 'DISPLAY_ONLY_HTML', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_tag_attributes => 'class="fielddatabold"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', p_field_template => 103909823939152778.4306+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_item_comment => ''); end; / begin wwv_flow_api.create_page_validation( p_id => 184026427466659965.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 17.4306, p_validation_name => 'file required', p_validation_sequence=> 10, p_validation => 'F4300_P17_FILE', p_validation_type => 'ITEM_NOT_NULL', p_error_message => '必须指定文件名。', p_associated_item=> 184024932604659957.4306 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 288726628477940731.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 17.4306, p_validation_name => 'file not 0 byte', p_validation_sequence=> 20, p_validation => 'declare'||chr(10)|| ' l_doc_size number := 0;'||chr(10)|| 'begin'||chr(10)|| ' for c1 in (select doc_size '||chr(10)|| ' from wwv_flow_file_objects$'||chr(10)|| ' where name = :F4300_P17_FILE)'||chr(10)|| ' loop'||chr(10)|| ' l_doc_size := c1.doc_size;'||chr(10)|| ' end loop;'||chr(10)|| ' if l_doc_size = 0 then'||chr(10)|| ' return false;'||chr(10)|| ' end if;'||chr(10)|| ' return true;'||chr(10)|| 'end;', p_validation_type => 'FUNC_BODY_RETURNING_BOOLEAN', p_error_message => '上载的文件无效或不包含任何内容。请上载有效的文件。', p_associated_item=> .4306 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin declare p varchar2(32767) := null; l_clob clob; l_length number := 1; begin p:=p||'declare'||chr(10)|| ' l_blob blob;'||chr(10)|| ' l_clob clob;'||chr(10)|| ' l_sql varchar2(32767) := null;'||chr(10)|| ' n wwv_flow_global.vc_arr2;'||chr(10)|| ' r wwv_flow_global.vc_arr2;'||chr(10)|| 'begin'||chr(10)|| ' for c1 in (select blob_content'||chr(10)|| ' from wwv_flow_file_objects$'||chr(10)|| ' where name = :F4300_P17_FILE) loop'||chr(10)|| ' l_blob := c1.blob_content;'||chr(10)|| ' end loop;'||chr(10)|| ''||chr(10)|| ' declare'||chr(10)|| ' l_dest_offset number := 1;'||chr(10)|| ' l_src_offset number := 1;'||chr(10)|| ' l_lang_'; p:=p||'context number := dbms_lob.default_lang_ctx;'||chr(10)|| ' l_warning number;'||chr(10)|| ' begin '||chr(10)|| ' dbms_lob.createtemporary ( l_clob, FALSE, dbms_lob.SESSION );'||chr(10)|| ' dbms_lob.open( l_blob, dbms_lob.lob_readonly );'||chr(10)|| ''||chr(10)|| ' dbms_lob.convertToCLOB('||chr(10)|| ' dest_lob => l_clob,'||chr(10)|| ' src_blob => l_blob,'||chr(10)|| ' amount => dbms_lob.lobmaxsize,'||chr(10)|| ' dest_offset => l_dest_offset,'||chr(10)|| ' src_offs'; p:=p||'et => l_src_offset,'||chr(10)|| ' blob_csid => nls_charset_id(''AL32UTF8''),'||chr(10)|| ' lang_context => l_lang_context,'||chr(10)|| ' warning => l_warning );'||chr(10)|| ''||chr(10)|| ' dbms_lob.close( l_blob );'||chr(10)|| ' end;'||chr(10)|| ''||chr(10)|| ' wwv_flow_utilities.g_xml_clob := l_clob;'||chr(10)|| ' '||chr(10)|| ' l_sql := ''declare '';'||chr(10)|| ' l_sql := l_sql||''insCtx DBMS_XMLSave.ctxType; '';'||chr(10)|| ' l_sql := l_sql||''rows number; '';'||chr(10)|| ' l_sql := l_sql||''begin '';'||chr(10)|| ' l_sql := l_sql||''insCt'; p:=p||'x := DBMS_XMLSave.newContext(''''''||:F4300_P14_TARGET_SCHEMA;'||chr(10)|| ' l_sql := l_sql||''.''||:F4300_P16_TARGET_TABLE||''''''); '';'||chr(10)|| ' l_sql := l_sql||''DBMS_XMLSave.setDateFormat(insCtx,''''yyyy-MM-dd''''''''T''''''''HH:mm:ss.SSS''''); ''; '||chr(10)|| ' l_sql := l_sql||''rows := DBMS_XMLSave.insertXML(insCtx,wwv_flow_utilities.g_xml_clob); '';'||chr(10)|| ' l_sql := l_sql||''DBMS_XMLSave.closeContext(insCtx); '';'||chr(10)|| ' l_sql := l_sql||''end;'';'||chr(10)|| ' '||chr(10)|| ' wwv_flo'; p:=p||'w_f4000_util.run_block'||chr(10)|| ' ( p_sql => l_sql,'||chr(10)|| ' p_user => :F4300_P14_TARGET_SCHEMA);'||chr(10)|| 'end;'; wwv_flow_api.create_page_process( p_id => 7873510163151423.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id => 17.4306, p_process_sequence=> 10, p_process_point=> 'AFTER_SUBMIT', p_process_type=> 'PLSQL', p_process_name=> 'create_load_xml', p_process_sql_clob => p, p_process_error_message=> '加载 XML 时出错。', p_process_when_button_id=>184024014061659952.4306 + wwv_flow_api.g_id_offset, p_process_when=>'not wwv_flow_utilities.db_version_is_at_least(''10.1'')', p_process_when_type=>'PLSQL_EXPRESSION', p_process_success_message=> 'XML 已加载。', p_process_is_stateful_y_n=>'N', p_process_comment=>''); end; null; end; / begin declare p varchar2(32767) := null; l_clob clob; l_length number := 1; begin p:=p||'declare'||chr(10)|| ' l_blob blob;'||chr(10)|| ' l_clob clob;'||chr(10)|| ' l_sql varchar2(32767) := null;'||chr(10)|| ' n wwv_flow_global.vc_arr2;'||chr(10)|| ' r wwv_flow_global.vc_arr2;'||chr(10)|| 'begin'||chr(10)|| ' for c1 in (select blob_content'||chr(10)|| ' from wwv_flow_file_objects$'||chr(10)|| ' where name = :F4300_P17_FILE) loop'||chr(10)|| ' l_blob := c1.blob_content;'||chr(10)|| ' end loop;'||chr(10)|| ''||chr(10)|| ' declare'||chr(10)|| ' l_dest_offset number := 1;'||chr(10)|| ' l_src_offset number := 1;'||chr(10)|| ' l_lang_'; p:=p||'context number := dbms_lob.default_lang_ctx;'||chr(10)|| ' l_warning number;'||chr(10)|| ' begin '||chr(10)|| ' dbms_lob.createtemporary ( l_clob, FALSE, dbms_lob.SESSION );'||chr(10)|| ' dbms_lob.open( l_blob, dbms_lob.lob_readonly );'||chr(10)|| ''||chr(10)|| ' dbms_lob.convertToCLOB('||chr(10)|| ' dest_lob => l_clob,'||chr(10)|| ' src_blob => l_blob,'||chr(10)|| ' amount => dbms_lob.lobmaxsize,'||chr(10)|| ' dest_offset => l_dest_offset,'||chr(10)|| ' src_offs'; p:=p||'et => l_src_offset,'||chr(10)|| ' blob_csid => nls_charset_id(''AL32UTF8''),'||chr(10)|| ' lang_context => l_lang_context,'||chr(10)|| ' warning => l_warning );'||chr(10)|| ''||chr(10)|| ' dbms_lob.close( l_blob );'||chr(10)|| ' end;'||chr(10)|| ''||chr(10)|| ' wwv_flow_utilities.g_xml_clob := l_clob;'||chr(10)|| ' '||chr(10)|| ' l_sql := ''declare '';'||chr(10)|| ' l_sql := l_sql||''insCtx dbms_xmlstore.ctxType; '';'||chr(10)|| ' l_sql := l_sql||''rows number; '';'||chr(10)|| ' l_sql := l_sql||''l_nls_date_format varchar2('; p:=p||'255) := null; '';'||chr(10)|| ' l_sql := l_sql||''l_nls_timestamp_format varchar2(255) := null; '';'||chr(10)|| ' l_sql := l_sql||''c_nls_date_format varchar2(255) := ''''rrrr-MM-dd"T"HH24:mi:ss."000"''''; ''; '||chr(10)|| ' l_sql := l_sql||''c_nls_timestamp_format varchar2(255) := ''''rrrr-MM-dd"T"HH24:mi:ss.FF3''''; ''; '||chr(10)|| ' l_sql := l_sql||''begin '';'||chr(10)|| ' l_sql := l_sql||''for c1 in (select parameter, value '';'||chr(10)|| ' l_sql := l_sql||'' from'; p:=p||' nls_session_parameters '';'||chr(10)|| ' l_sql := l_sql||'' where PARAMETER in (''''NLS_DATE_FORMAT'''',''''NLS_TIMESTAMP_FORMAT'''')) loop '';'||chr(10)|| ' l_sql := l_sql||'' if c1.parameter = ''''NLS_DATE_FORMAT'''' then '';'||chr(10)|| ' l_sql := l_sql||'' l_nls_date_format := c1.value; '';'||chr(10)|| ' l_sql := l_sql||'' elsif c1.parameter = ''''NLS_TIMESTAMP_FORMAT'''' then '';'||chr(10)|| ' l_sql := l_sql||'' l_nls_timestamp_format := c1.value; '';'||chr(10)|| ' l_sql'; p:=p||' := l_sql||'' end if; '';'||chr(10)|| ' l_sql := l_sql||''end loop; '';'||chr(10)|| ' l_sql := l_sql||''dbms_session.set_nls(''''NLS_DATE_FORMAT'''',''''''''''''''''||c_nls_date_format||''''''''''''''''); '';'||chr(10)|| ' l_sql := l_sql||''dbms_session.set_nls(''''NLS_TIMESTAMP_FORMAT'''',''''''''''''''''||c_nls_timestamp_format||''''''''''''''''); '';'||chr(10)|| ' l_sql := l_sql||''insCtx := dbms_xmlstore.newContext(''''''||:F4300_P14_TARGET_SCHEMA;'||chr(10)|| ' l_sql := l_sql||''.''||:F4300_P16_TARGET_TA'; p:=p||'BLE||''''''); ''; '||chr(10)|| ' l_sql := l_sql||''dbms_xmlstore.setRowTag(insCtx,''''ROW''''); '';'||chr(10)|| ' l_sql := l_sql||''rows := dbms_xmlstore.insertXML(insCtx,wwv_flow_utilities.g_xml_clob); '';'||chr(10)|| ' l_sql := l_sql||''dbms_xmlstore.closeContext(insCtx); '';'||chr(10)|| ' l_sql := l_sql||''dbms_session.set_nls(''''NLS_DATE_FORMAT'''',''''''''''''''''||l_nls_date_format||''''''''''''''''); '';'||chr(10)|| ' l_sql := l_sql||''dbms_session.set_nls(''''NLS_TIMESTAMP_FORMAT'''','''''; p:=p||'''''''''''''||l_nls_timestamp_format||''''''''''''''''); '';'||chr(10)|| ' l_sql := l_sql||''end;'';'||chr(10)|| ' '||chr(10)|| ' wwv_flow_f4000_util.run_block'||chr(10)|| ' ( p_sql => l_sql,'||chr(10)|| ' p_user => :F4300_P14_TARGET_SCHEMA);'||chr(10)|| '/*exception when others then'||chr(10)|| ' wwv_flow.show_error_message(p_message => '||chr(10)|| ' wwv_flow_lang.system_message(p_name=>''XML_LOAD_ERROR''), '||chr(10)|| ' p_footer => null); '||chr(10)|| '*/'||chr(10)|| 'end;'; wwv_flow_api.create_page_process( p_id => 184026726681659973.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id => 17.4306, p_process_sequence=> 20, p_process_point=> 'AFTER_SUBMIT', p_process_type=> 'PLSQL', p_process_name=> '10.1 or greater: create_load_xml', p_process_sql_clob => p, p_process_error_message=> '加载 XML 时出错。', p_process_when_button_id=>184024014061659952.4306 + wwv_flow_api.g_id_offset, p_process_when=>'wwv_flow_utilities.db_version_is_at_least(''10.1'')', p_process_when_type=>'PLSQL_EXPRESSION', p_process_success_message=> 'XML 已加载。', p_process_is_stateful_y_n=>'N', p_process_comment=>''); end; null; end; / begin declare p varchar2(32767) := null; l_clob clob; l_length number := 1; begin p:=p||'wwv_flow_sw_api.check_priv(:F4300_P14_TARGET_SCHEMA);'; wwv_flow_api.create_page_process( p_id => 69932630276906146.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id => 17.4306, p_process_sequence=> 30, p_process_point=> 'BEFORE_HEADER', p_process_type=> 'PLSQL', p_process_name=> 'Validate Schema', p_process_sql_clob => p, p_process_error_message=> '方案无效', p_process_success_message=> '', p_process_is_stateful_y_n=>'N', p_process_comment=>''); end; null; end; / begin --------------------------------------- -- ...updatable report columns for page 17.4306 -- begin null; end; null; end; / --application/pages/page_18.43 prompt ...PAGE 18.4306: 加载数据 -- begin declare h varchar2(32767) := null; ph varchar2(32767) := null; begin h:=h||'AEUTL/sql_utl_imprt.htm'; ph := null; wwv_flow_api.create_page( p_id => 18.4306, p_flow_id=> wwv_flow.g_flow_id, p_tab_set=> '', p_name => '加载数据', p_step_title=> '加载数据', p_step_sub_title_type => 'TEXT_WITH_SUBSTITUTIONS', p_first_item=> 'NO_FIRST_ITEM', p_include_apex_css_js_yn=>'Y', p_autocomplete_on_off => '', p_group_id => 215731706086585147+ wwv_flow_api.g_id_offset, p_help_text => ' ', p_html_page_header => '', p_step_template => 3485606247566446.4306+ wwv_flow_api.g_id_offset, p_required_patch=> null + wwv_flow_api.g_id_offset, p_last_updated_by => '', p_last_upd_yyyymmddhh24miss => '20090409165723', p_page_is_public_y_n=> 'N', p_page_comment => ''); wwv_flow_api.set_page_help_text(p_flow_id=>wwv_flow.g_flow_id,p_flow_step_id=>18.4306,p_text=>h); end; end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 2157120477803132.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 18.4306, p_plug_name=> '加载数据', p_region_name=>'', p_plug_template=> 103900825378122658.4306+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 10, p_plug_display_column=> 1, p_plug_display_point=> 'AFTER_SHOW_ITEMS', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_plug_display_error_message=> 'Unable to display page region #SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> '', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_display_condition_type => '', p_plug_header=> '要上载的文件必须是基于文本的文件。要上载 .XLS 文件, 应先将它另存为 CSV。'||chr(10)|| '', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> 'Region generated 20-SEP-2002 14:00:17'); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'List: Plain Text Data Import'; wwv_flow_api.create_page_plug ( p_id=> 3939910944851245.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 18.4306, p_plug_name=> 'Navigation', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 30, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_01', p_plug_source=> s, p_plug_source_type=> 3931814922814551 + wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 6827802000688027.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 18.4306, p_plug_name=> 'Menu', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 1, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_08', p_plug_source=> s, p_plug_source_type=> 'M'|| to_char(6678815232629976 + wwv_flow_api.g_id_offset), p_menu_template_id=> 6680621597641306.4306+ wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 21283612328451431.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 18.4306, p_plug_name=> '全球化', p_region_name=>'', p_plug_template=> 21175625245088699.4306+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 40, p_plug_display_column=> 1, p_plug_display_point=> 'AFTER_SHOW_ITEMS', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / begin wwv_flow_api.create_page_button( p_id => 2158019343803135.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 18.4306, p_button_sequence=> 10, p_button_plug_id => 2157120477803132+wwv_flow_api.g_id_offset, p_button_name => 'CANCEL', p_button_image_alt=> '取消', p_button_position=> 'REGION_TEMPLATE_CLOSE', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 2158311458803135.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 18.4306, p_button_sequence=> 30, p_button_plug_id => 2157120477803132+wwv_flow_api.g_id_offset, p_button_name => 'NEXT', p_button_image_alt=> '下一步 >', p_button_position=> 'REGION_TEMPLATE_NEXT', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 2158218927803135.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 18.4306, p_button_sequence=> 20, p_button_plug_id => 2157120477803132+wwv_flow_api.g_id_offset, p_button_name => 'PREVIOUS', p_button_image_alt=> '< 上一步', p_button_position=> 'REGION_TEMPLATE_PREVIOUS', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); end; / begin wwv_flow_api.create_page_branch( p_id=>2586909632661028.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 18.4306, p_branch_action=> '18', p_branch_point=> 'AFTER_PROCESSING', p_branch_type=> 'BRANCH_TO_STEP', p_branch_sequence=> 10, p_branch_condition_type=> 'VAL_OF_ITEM_IN_COND_EQ_COND2', p_branch_condition=> 'F4300_P18_REUPLOAD', p_branch_condition_text=>'Y', p_save_state_before_branch_yn=>'N', p_branch_comment=> 'Created 24-SEP-2002 09:16 by CBCHO'); wwv_flow_api.create_page_branch( p_id=>2159723337803140.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 18.4306, p_branch_action=> '19', p_branch_point=> 'AFTER_PROCESSING', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>2158311458803135.4306+ wwv_flow_api.g_id_offset, p_branch_sequence=> 20, p_save_state_before_branch_yn=>'N', p_branch_comment=> 'Generated 20-SEP-2002 14:00:17'); wwv_flow_api.create_page_branch( p_id=>2158707886803137.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 18.4306, p_branch_action=> '9', p_branch_point=> 'BEFORE_COMPUTATION', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>2158019343803135.4306+ wwv_flow_api.g_id_offset, p_branch_sequence=> 1, p_save_state_before_branch_yn=>'N', p_branch_comment=> 'Generated 20-SEP-2002 14:00:17'); wwv_flow_api.create_page_branch( p_id=>2159221254803139.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 18.4306, p_branch_action=> '230', p_branch_point=> 'BEFORE_COMPUTATION', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>2158218927803135.4306+ wwv_flow_api.g_id_offset, p_branch_sequence=> 10, p_save_state_before_branch_yn=>'N', p_branch_comment=> 'Generated 20-SEP-2002 14:00:17'); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'单击浏览定位要上载的文件。'; wwv_flow_api.create_page_item( p_id=>2157814244803134.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 18.4306, p_name=>'F4300_P13_FILE', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 10, p_item_plug_id => 2157120477803132.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'文本文件', p_source_type=> 'STATIC', p_display_as=> 'FILE', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 60, p_cMaxlength=> 2000, p_cHeight=> 1, p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', p_display_when=>'F4300_P13_FILE', p_display_when_type=>'ITEM_IS_NULL', p_field_template => 103910729134154335.4306+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_protection_level => 'N', p_escape_on_http_input => 'N', p_help_text => h, p_item_comment => 'Generated 20-SEP-2002 14:00:17'); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'如果数据的第一行中包含列名, 请选中此框。
'||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| '姓名 薪水 佣金'||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| 'Clark 1000 10'||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| 'Scott 2000 20'||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''; wwv_flow_api.create_page_item( p_id=>2243727316068250.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 18.4306, p_name=>'F4300_P13_IS_COLUMN_NAME', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 40, p_item_plug_id => 2157120477803132.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default => 'Y', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_source_type=> 'STATIC', p_display_as=> 'CHECKBOX', p_named_lov=> 'ISCOLUMN.NAME.TEXT', p_lov => 'select ''''||'||chr(10)|| 'wwv_flow_lang.system_message(''F4300_INSTRUCT_TEXT'')||'''' d, ''Y'' r from dual', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_tag_attributes2=> 'class="fielddata"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'标识列分隔符。使用
\t
代表制表符。';
wwv_flow_api.create_page_item(
p_id=>2329615063755442.4306 + wwv_flow_api.g_id_offset,
p_flow_id=> wwv_flow.g_flow_id,
p_flow_step_id=> 18.4306,
p_name=>'F4300_P13_SEPARATOR',
p_data_type=> 'VARCHAR',
p_accept_processing=> 'REPLACE_EXISTING',
p_item_sequence=> 30,
p_item_plug_id => 2157120477803132.4306+wwv_flow_api.g_id_offset,
p_use_cache_before_default=> 'YES',
p_item_default => ',',
p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS',
p_prompt=>'分隔符: (\t 表示制表符)',
p_source_type=> 'ALWAYS_NULL',
p_display_as=> 'TEXT',
p_lov_columns=> 1,
p_lov_display_null=> 'NO',
p_lov_translated=> 'N',
p_cSize=> 2,
p_cMaxlength=> 2,
p_cHeight=> 1,
p_cAttributes=> 'nowrap="nowrap"',
p_begin_on_new_line => 'YES',
p_begin_on_new_field=> 'YES',
p_colspan => 1,
p_rowspan => 1,
p_label_alignment => 'RIGHT',
p_field_alignment => 'LEFT',
p_field_template => 103910729134154335.4306+wwv_flow_api.g_id_offset,
p_is_persistent=> 'Y',
p_lov_display_extra=>'NO',
p_protection_level => 'N',
p_escape_on_http_input => 'Y',
p_help_text => h,
p_item_comment => '');
end;
/
declare
h varchar2(32767) := null;
begin
h := null;
h:=h||'要上载的文件的名称';
wwv_flow_api.create_page_item(
p_id=>2583912702633467.4306 + wwv_flow_api.g_id_offset,
p_flow_id=> wwv_flow.g_flow_id,
p_flow_step_id=> 18.4306,
p_name=>'F4300_P18_FILE_NAME',
p_data_type=> 'VARCHAR',
p_accept_processing=> 'REPLACE_EXISTING',
p_item_sequence=> 20,
p_item_plug_id => 2157120477803132.4306+wwv_flow_api.g_id_offset,
p_use_cache_before_default=> 'YES',
p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS',
p_prompt=>'文件名:',
p_source=>'substr(:F4300_P13_FILE,instr(:F4300_P13_FILE,''/'')+1)',
p_source_type=> 'FUNCTION',
p_display_as=> 'DISPLAY_ONLY_HTML',
p_lov_columns=> 1,
p_lov_display_null=> 'NO',
p_lov_translated=> 'N',
p_cSize=> 30,
p_cMaxlength=> 2000,
p_cHeight=> 1,
p_cAttributes=> 'nowrap="nowrap"',
p_tag_attributes => 'class="fielddatabold"',
p_begin_on_new_line => 'YES',
p_begin_on_new_field=> 'YES',
p_colspan => 1,
p_rowspan => 1,
p_label_alignment => 'RIGHT',
p_field_alignment => 'LEFT',
p_display_when=>'F4300_P13_FILE',
p_display_when_type=>'ITEM_IS_NOT_NULL',
p_field_template => 103909823939152778.4306+wwv_flow_api.g_id_offset,
p_is_persistent=> 'Y',
p_lov_display_extra=>'NO',
p_protection_level => 'N',
p_escape_on_http_input => 'Y',
p_help_text => h,
p_item_comment => '');
end;
/
declare
h varchar2(32767) := null;
begin
h := null;
h:=h||'指定重新上载文件';
wwv_flow_api.create_page_item(
p_id=>2586326817656557.4306 + wwv_flow_api.g_id_offset,
p_flow_id=> wwv_flow.g_flow_id,
p_flow_step_id=> 18.4306,
p_name=>'F4300_P18_REUPLOAD',
p_data_type=> 'VARCHAR',
p_accept_processing=> 'REPLACE_EXISTING',
p_item_sequence=> 25,
p_item_plug_id => 2157120477803132.4306+wwv_flow_api.g_id_offset,
p_use_cache_before_default=> 'NO',
p_item_default => 'N',
p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS',
p_prompt=>'重新上载文件',
p_display_as=> 'COMBOBOX_WITH_SUBMIT',
p_named_lov=> 'YES.NO.RETURNS_Y_OR_N',
p_lov => '.'||to_char(87930425596657700 + wwv_flow_api.g_id_offset)||'.',
p_lov_columns=> 1,
p_lov_display_null=> 'NO',
p_lov_translated=> 'N',
p_cSize=> 30,
p_cMaxlength=> 2000,
p_cHeight=> 1,
p_cAttributes=> 'nowrap="nowrap"',
p_tag_attributes2=> 'class="fielddata"',
p_begin_on_new_line => 'NO',
p_begin_on_new_field=> 'YES',
p_colspan => 1,
p_rowspan => 1,
p_label_alignment => 'RIGHT',
p_field_alignment => 'LEFT',
p_display_when=>'F4300_P13_FILE',
p_display_when_type=>'ITEM_IS_NOT_NULL',
p_field_template => 103909823939152778.4306+wwv_flow_api.g_id_offset,
p_is_persistent=> 'Y',
p_lov_display_extra=>'NO',
p_help_text => h,
p_item_comment => '');
end;
/
declare
h varchar2(32767) := null;
begin
h := null;
h:=h||'如果数据中包含国际货币符号, 请在此处输入。
'||chr(10)|| '例如, 如果数据中包含 "€1,234.56" 或 "¥1,234.56", 请输入 "€" 或 "¥"。否则, 将无法正确加载数据。
'; wwv_flow_api.create_page_item( p_id=>21284319254453394.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 18.4306, p_name=>'P18_CURRENCY', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 50, p_item_plug_id => 21283612328451431.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default => 'declare'||chr(10)|| ' l_return_val varchar2(30) := ''$'';'||chr(10)|| 'begin'||chr(10)|| ' for c1 in (select value'||chr(10)|| ' from nls_session_parameters'||chr(10)|| ' where parameter = ''NLS_CURRENCY'') loop'||chr(10)|| ' l_return_val := c1.value;'||chr(10)|| ' exit;'||chr(10)|| ' end loop;'||chr(10)|| ' --'||chr(10)|| ' return l_return_val;'||chr(10)|| 'end;', p_item_default_type => 'PLSQL_FUNCTION_BODY', p_prompt=>'货币符号', p_source_type=> 'STATIC', p_display_as=> 'TEXT', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 1, p_cMaxlength=> 1, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', p_field_template => 103909823939152778.4306+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'组分隔符是分隔整数组的字符, 例如, 用来表示千位和百万位的字符。
'||chr(10)|| '可以使用任何字符作为组分隔符。所指定的字符必须为单字节字符, 并且组分隔符不能与小数点字符相同。此字符可以为空格, 但不能为数字字符或以下字符之一:
'||chr(10)|| '小数点字符将数字的整数部分和小数部分分隔开来。
'||chr(10)|| '可以使用任何字符作为小数点字符。所指定的字符必须为单字节字符, 并且小数点字符不能与组分隔符相同。此字符可以为空格, 但不能为数字字符或以下字符之一:
'||chr(10)|| '此页可用于预览新表的外观。可以输入表名, 更改列名或数据类型, 还可以指定要包含的列。
'; wwv_flow_api.create_page_plug ( p_id=> 221480323469295765.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 19.4306, p_plug_name=> '加载数据', p_region_name=>'', p_plug_template=> 104263607591363808.4306+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 40, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_03', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'QUERY_COLUMNS', p_plug_query_num_rows_type => 'NEXT_PREVIOUS_LINKS', p_plug_query_row_count_max => 500, p_plug_query_show_nulls_as => ' - ', p_plug_display_condition_type => '', p_pagination_display_position=>'BOTTOM_RIGHT', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / begin wwv_flow_api.create_page_button( p_id => 2161222197803145.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 19.4306, p_button_sequence=> 10, p_button_plug_id => 2160319726803142+wwv_flow_api.g_id_offset, p_button_name => 'CANCEL', p_button_image_alt=> '取消', p_button_position=> 'REGION_TEMPLATE_CLOSE', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 2161511969803145.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 19.4306, p_button_sequence=> 30, p_button_plug_id => 2160319726803142+wwv_flow_api.g_id_offset, p_button_name => 'NEXT', p_button_image_alt=> '下一步 >', p_button_position=> 'REGION_TEMPLATE_NEXT', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 2161401612803145.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 19.4306, p_button_sequence=> 20, p_button_plug_id => 2160319726803142+wwv_flow_api.g_id_offset, p_button_name => 'PREVIOUS', p_button_image_alt=> '< 上一步', p_button_position=> 'REGION_TEMPLATE_PREVIOUS', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); end; / begin wwv_flow_api.create_page_branch( p_id=>2162930496803151.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 19.4306, p_branch_action=> '21', p_branch_point=> 'AFTER_PROCESSING', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>2161511969803145.4306+ wwv_flow_api.g_id_offset, p_branch_sequence=> 20, p_save_state_before_branch_yn=>'N', p_branch_comment=> 'Generated 20-SEP-2002 14:00:17'); wwv_flow_api.create_page_branch( p_id=>2161926887803146.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 19.4306, p_branch_action=> '9', p_branch_point=> 'BEFORE_COMPUTATION', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>2161222197803145.4306+ wwv_flow_api.g_id_offset, p_branch_sequence=> 1, p_save_state_before_branch_yn=>'N', p_branch_comment=> 'Generated 20-SEP-2002 14:00:17'); wwv_flow_api.create_page_branch( p_id=>2162430587803150.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 19.4306, p_branch_action=> '18', p_branch_point=> 'BEFORE_COMPUTATION', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>2161401612803145.4306+ wwv_flow_api.g_id_offset, p_branch_sequence=> 10, p_save_state_before_branch_yn=>'N', p_branch_comment=> 'Generated 20-SEP-2002 14:00:17'); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'选择要创建的数据库方案并向其中加载数据。'; wwv_flow_api.create_page_item( p_id=>2161012050803145.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 19.4306, p_name=>'F4300_P13_OWNER', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 10, p_item_plug_id => 2160319726803142.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'方案', p_source=>'wwv_flow_user_api.get_default_schema', p_source_type=> 'FUNCTION', p_display_as=> 'COMBOBOX', p_named_lov=> 'CREATE_TABLE_SCHEMAS', p_lov => 'declare'||chr(10)|| ' q varchar2(32767) := null;'||chr(10)|| 'begin'||chr(10)|| ' q:=q||''select htf.escape_sc(c.schema) d, c.schema v '';'||chr(10)|| ' q:=q||''from wwv_flow_company_schemas c, '';'||chr(10)|| ' q:=q||'' wwv_flow_fnd_user u '';'||chr(10)|| ' q:=q||''where c.security_group_id = :flow_security_group_id and '';'||chr(10)|| ' q:=q||'' u.security_group_id = :flow_security_group_id and '';'||chr(10)|| ' q:=q||'' u.user_name = :flow_user and '';'||chr(10)|| ' q:=q||'' (u.ALLOW_ACCESS_TO_SCHEMAS is null or '';'||chr(10)|| ' q:=q||'' instr('''':''''||u.ALLOW_ACCESS_TO_SCHEMAS||'''':'''','''':''''||c.schema||'''':'''')>0) '';'||chr(10)|| ' if wwv_flow_global.g_xe then'||chr(10)|| ' q:=q||'' and exists (select null '';'||chr(10)|| ' q:=q||'' from sys.dba_sys_privs '';'||chr(10)|| ' q:=q||'' where privilege = ''''CREATE TABLE'''' '';'||chr(10)|| ' q:=q||'' and grantee = c.schema '';'||chr(10)|| ' q:=q||'' union all '';'||chr(10)|| ' q:=q||'' select null '';'||chr(10)|| ' q:=q||'' from sys.dba_sys_privs s, sys.dba_role_privs r '';'||chr(10)|| ' q:=q||'' where r.granted_role=s.grantee '';'||chr(10)|| ' q:=q||'' and r.grantee = c.schema '';'||chr(10)|| ' q:=q||'' and s.privilege = ''''CREATE TABLE'''') '';'||chr(10)|| ' else'||chr(10)|| ' q:=q||'' and exists (select null '';'||chr(10)|| ' q:=q||'' from sys.dba_sys_privs '';'||chr(10)|| ' q:=q||'' where privilege = ''''CREATE TABLE'''' '';'||chr(10)|| ' q:=q||'' and grantee = c.schema) '';'||chr(10)|| ' end if; '||chr(10)|| ' q:=q||'' and exists (select null '';'||chr(10)|| ' q:=q||'' from sys.dba_users '';'||chr(10)|| ' q:=q||'' where username = c.schema) '';'||chr(10)|| ' q:=q||''order by 1 '';'||chr(10)|| ' '||chr(10)|| ' return q;'||chr(10)|| 'end;', p_lov_columns=> null, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', p_read_only_when=>'return wwv_flow_global.g_xe', p_read_only_when_type=>'FUNCTION_BODY', p_read_only_disp_attr=>'class="fielddatabold"', p_field_template => 103910729134154335.4306+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_protection_level => 'N', p_escape_on_http_input => 'Y', p_help_text => h, p_item_comment => 'Generated 20-SEP-2002 14:00:17'); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'标识要创建的表名。默认情况下, 所有表名都会转换为全部大写的形式。选择保留大小写可覆盖此默认行为。'; wwv_flow_api.create_page_item( p_id=>2267110534176923.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 19.4306, p_name=>'F4300_P13_TABLE_NAME', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 20, p_item_plug_id => 2160319726803142.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'表名', p_source_type=> 'ALWAYS_NULL', p_display_as=> 'TEXT', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', p_field_template => 103910729134154335.4306+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin wwv_flow_api.create_page_item( p_id=>2269730619182732.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 19.4306, p_name=>'F4300_P19_DUMMY', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 30, p_item_plug_id => 2160319726803142.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_prompt=>'Dummy', p_display_as=> 'HIDDEN', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> null, p_cAttributes=> 'nowrap="nowrap"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', p_is_persistent=> 'Y', p_item_comment => ''); end; / declare h varchar2(32767) := null; begin wwv_flow_api.create_page_item( p_id=>77772602360009347.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 19.4306, p_name=>'P19_PRESERVE_CASE', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 25, p_item_plug_id => 2160319726803142.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_source_type=> 'STATIC', p_display_as=> 'CHECKBOX', p_named_lov=> 'PRESERVE.CASE.Y', p_lov => '.'||to_char(87931511182663028 + wwv_flow_api.g_id_offset)||'.', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_tag_attributes2=> 'class="fielddata"', p_begin_on_new_line => 'NO', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', p_field_template => 103909823939152778.4306+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_item_comment => ''); end; / begin wwv_flow_api.create_page_computation( p_id=> 77778717729023209.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 19.4306, p_computation_sequence => 5, p_computation_item=> 'F4300_P13_TABLE_NAME', p_computation_point=> 'AFTER_SUBMIT', p_computation_type=> 'PLSQL_EXPRESSION', p_computation_processed=> 'REPLACE_EXISTING', p_computation=> 'upper(replace(wwv_flow_utilities.remove_spaces(:F4300_P13_TABLE_NAME),chr(32),''_''))', p_compute_when => 'P19_PRESERVE_CASE', p_compute_when_type=>'ITEM_IS_NULL'); null; end; / begin wwv_flow_api.create_page_computation( p_id=> 2611527265139214.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 19.4306, p_computation_sequence => 10, p_computation_item=> 'F4300_P19_DUMMY', p_computation_point=> 'AFTER_SUBMIT', p_computation_type=> 'FUNCTION_BODY', p_computation_processed=> 'REPLACE_EXISTING', p_computation=> 'declare'||chr(10)|| ' l_col_name varchar2(4000) := null;'||chr(10)|| 'begin'||chr(10)|| 'for i in 1..wwv_flow.g_f06.count loop'||chr(10)|| ' if :P19_PRESERVE_CASE is null then'||chr(10)|| ' l_col_name := upper(wwv_flow_utilities.remove_spaces(wwv_flow.g_f01(i)));'||chr(10)|| ' else'||chr(10)|| ' l_col_name := wwv_flow_utilities.remove_spaces(wwv_flow.g_f01(i));'||chr(10)|| ' end if;'||chr(10)|| ' wwv_flow_collection.update_member_attribute ('||chr(10)|| ' p_collection_name => ''CSV_IMPORT'','||chr(10)|| ' p_seq => wwv_flow.g_f06(i),'||chr(10)|| ' p_attr_number => 1,'||chr(10)|| ' p_attr_value => l_col_name'||chr(10)|| ' );'||chr(10)|| ''||chr(10)|| ''||chr(10)|| ' wwv_flow_collection.update_member_attribute ('||chr(10)|| ' p_collection_name => ''CSV_IMPORT'','||chr(10)|| ' p_seq => wwv_flow.g_f06(i),'||chr(10)|| ' p_attr_number => 2,'||chr(10)|| ' p_attr_value => wwv_flow.g_f02(i)'||chr(10)|| ' );'||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| ' wwv_flow_collection.update_member_attribute ('||chr(10)|| ' p_collection_name => ''CSV_IMPORT'','||chr(10)|| ' p_seq => wwv_flow.g_f06(i),'||chr(10)|| ' p_attr_number => 4,'||chr(10)|| ' p_attr_value => wwv_flow.g_f04(i)'||chr(10)|| ' );'||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| ' wwv_flow_collection.update_member_attribute ('||chr(10)|| ' p_collection_name => ''CSV_IMPORT'','||chr(10)|| ' p_seq => wwv_flow.g_f06(i),'||chr(10)|| ' p_attr_number => 5,'||chr(10)|| ' p_attr_value => wwv_flow.g_f05(i)'||chr(10)|| ' );'||chr(10)|| ' '||chr(10)|| ' wwv_flow_collection.update_member_attribute ('||chr(10)|| ' p_collection_name => ''CSV_IMPORT'','||chr(10)|| ' p_seq => wwv_flow.g_f06(i),'||chr(10)|| ' p_attr_number => 6,'||chr(10)|| ' p_attr_value => wwv_flow.g_f07(i)'||chr(10)|| ' ); '||chr(10)|| 'end loop;'||chr(10)|| ''||chr(10)|| 'return ''true'';'||chr(10)|| ''||chr(10)|| 'end;', p_compute_when => '', p_compute_when_type=>''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 2615902509169951.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 19.4306, p_validation_name => 'column name not null, not > 30', p_validation_sequence=> 10, p_validation => 'declare'||chr(10)|| 'begin'||chr(10)|| ' for i in 1..wwv_flow.g_f01.count loop'||chr(10)|| ''||chr(10)|| ' if wwv_flow.g_f04(i) = ''Y'' '||chr(10)|| ' then'||chr(10)|| ' if wwv_flow.g_f01(i) is not null then'||chr(10)|| ' if length(wwv_flow.g_f01(i)) > 30 then'||chr(10)|| ' return wwv_flow_lang.system_message(''F4300.COL_NAMES_NOT_LONGER_THAN_30'');'||chr(10)|| ' end if;'||chr(10)|| ' else'||chr(10)|| ' return wwv_flow_lang.system_message(''F4300.COL_NAMES_NOT_NULL'');'||chr(10)|| ' end if;'||chr(10)|| ''||chr(10)|| ' end if;'||chr(10)|| ''||chr(10)|| ' end loop;'||chr(10)|| 'end;', p_validation_type => 'FUNC_BODY_RETURNING_ERR_TEXT', p_error_message => '列名出错。', p_associated_item=> .4306 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 2617025019176456.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 19.4306, p_validation_name => 'table name not > 30', p_validation_sequence=> 20, p_validation => 'declare'||chr(10)|| ''||chr(10)|| 'begin'||chr(10)|| ''||chr(10)|| 'if length(:F4300_P13_TABLE_NAME) > 30 then'||chr(10)|| ''||chr(10)|| ' return wwv_flow_lang.system_message(''F4300.TABLE_NAMES_NOT_LONGER_THAN_30'');'||chr(10)|| ''||chr(10)|| 'end if;'||chr(10)|| ''||chr(10)|| 'end;', p_validation_type => 'FUNC_BODY_RETURNING_ERR_TEXT', p_error_message => '表名太长。', p_associated_item=> 2267110534176923.4306 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 2617811990182089.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 19.4306, p_validation_name => 'at least one upload selected', p_validation_sequence=> 30, p_validation => 'declare'||chr(10)|| ''||chr(10)|| ' l_no_count number := 0;'||chr(10)|| ''||chr(10)|| 'begin'||chr(10)|| ''||chr(10)|| ' for i in 1..wwv_flow.g_f04.count loop'||chr(10)|| ''||chr(10)|| ' if wwv_flow.g_f04(i) = ''N'' then'||chr(10)|| ''||chr(10)|| ' l_no_count := l_no_count + 1;'||chr(10)|| ''||chr(10)|| ' end if;'||chr(10)|| ''||chr(10)|| ' end loop;'||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| ' if l_no_count = wwv_flow.g_f04.count then'||chr(10)|| ''||chr(10)|| ' return false;'||chr(10)|| ''||chr(10)|| ' else'||chr(10)|| ''||chr(10)|| ' return true;'||chr(10)|| ''||chr(10)|| ' end if;'||chr(10)|| ''||chr(10)|| 'end;', p_validation_type => 'FUNC_BODY_RETURNING_BOOLEAN', p_error_message => '必须至少指定一个要包含在新表中的列。', p_associated_item=> .4306 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 2618831730187776.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 19.4306, p_validation_name => 'cannot have same table name', p_validation_sequence=> 40, p_validation => 'declare'||chr(10)|| ''||chr(10)|| 'begin'||chr(10)|| ''||chr(10)|| 'if wwv_flow_load_excel_data.table_exists('||chr(10)|| ''||chr(10)|| ' p_schema => :F4300_P13_OWNER,'||chr(10)|| ''||chr(10)|| ' p_table_name => wwv_flow_utilities.remove_spaces(:F4300_P13_TABLE_NAME)'||chr(10)|| ''||chr(10)|| ' ) then'||chr(10)|| ''||chr(10)|| ' return wwv_flow_lang.system_message(''F4300.F4500.TABLE_ALREADY_EXISTS'');'||chr(10)|| ''||chr(10)|| 'end if;'||chr(10)|| ''||chr(10)|| 'end;', p_validation_type => 'FUNC_BODY_RETURNING_ERR_TEXT', p_error_message => '名称已由现有对象使用。', p_associated_item=> 2267110534176923.4306 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 2620211429191428.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 19.4306, p_validation_name => 'table name not null', p_validation_sequence=> 50, p_validation => 'F4300_P13_TABLE_NAME', p_validation_type => 'ITEM_NOT_NULL', p_error_message => '必须指定表名。', p_associated_item=> 2267110534176923.4306 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 2622018486202935.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 19.4306, p_validation_name => 'column length not zero or null', p_validation_sequence=> 70, p_validation => 'declare'||chr(10)|| ''||chr(10)|| 'begin'||chr(10)|| ''||chr(10)|| ' for i in 1..wwv_flow.g_f05.count loop'||chr(10)|| ''||chr(10)|| ' if wwv_flow.g_f05(i) is not null then'||chr(10)|| ''||chr(10)|| ' if wwv_flow.g_f05(i) = 0 then'||chr(10)|| ''||chr(10)|| ' return wwv_flow_lang.system_message(''F4300.COL_LENGTH_NOT_ZERO'');'||chr(10)|| ''||chr(10)|| ' end if;'||chr(10)|| ''||chr(10)|| ' else'||chr(10)|| ''||chr(10)|| ' return wwv_flow_lang.system_message(''F4300.COL_LENGTH_NOT_NULL'');'||chr(10)|| ''||chr(10)|| ' end if;'||chr(10)|| ''||chr(10)|| ' end loop;'||chr(10)|| ''||chr(10)|| 'end;', p_validation_type => 'FUNC_BODY_RETURNING_ERR_TEXT', p_error_message => '列长度出错。', p_associated_item=> .4306 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 290889128494860177.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 19.4306, p_validation_name => 'reserved name', p_validation_sequence=> 80, p_validation => 'if wwv_flow_sw_util.is_database_reserved_word(p_word=>:F4300_P13_TABLE_NAME) then'||chr(10)|| ' return false;'||chr(10)|| 'else'||chr(10)|| ' return true;'||chr(10)|| 'end if;', p_validation_type => 'FUNC_BODY_RETURNING_BOOLEAN', p_error_message => '标识的表名是 Oracle 保留的关键字。请选择其他名称。', p_associated_item=> .4306 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 291061510906810726.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 19.4306, p_validation_name => 'column name reserved word', p_validation_sequence=> 90, p_validation => 'for i in 1..wwv_flow.g_f01.count loop'||chr(10)|| ' if wwv_flow_sw_util.is_database_reserved_word(p_word=>upper(wwv_flow.g_f01(i))) then'||chr(10)|| ' return false;'||chr(10)|| ' end if;'||chr(10)|| 'end loop;'||chr(10)|| 'return true;', p_validation_type => 'FUNC_BODY_RETURNING_BOOLEAN', p_error_message => '标识的列名是 Oracle 保留的关键字。请选择其他名称。', p_associated_item=> .4306 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 25617203076189584.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 19.4306, p_validation_name => 'F4300_P13_OWNER', p_validation_sequence=> 100, p_validation => 'F4300_P13_OWNER', p_validation_type => 'ITEM_NOT_NULL', p_error_message => '必须指定方案。', p_when_button_pressed=> 2161511969803145.4306 + wwv_flow_api.g_id_offset, p_associated_item=> 2161012050803145.4306 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin declare p varchar2(32767) := null; l_clob clob; l_length number := 1; begin p:=p||'if :F4300_P13_OWNER is not null then'||chr(10)|| 'wwv_flow_sw_api.check_priv(:F4300_P13_OWNER);'||chr(10)|| 'end if;'; wwv_flow_api.create_page_process( p_id => 70050317817678488.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id => 19.4306, p_process_sequence=> 10, p_process_point=> 'BEFORE_HEADER', p_process_type=> 'PLSQL', p_process_name=> 'Validate Schema', p_process_sql_clob => p, p_process_error_message=> '方案无效', p_process_success_message=> '', p_process_is_stateful_y_n=>'N', p_process_comment=>''); end; null; end; / begin --------------------------------------- -- ...updatable report columns for page 19.4306 -- begin null; end; null; end; / --application/pages/page_21.43 prompt ...PAGE 21.4306: 加载数据 -- begin declare h varchar2(32767) := null; ph varchar2(32767) := null; begin h:=h||'AEUTL/sql_utl_exprt.htm'; ph:=ph||''; wwv_flow_api.create_page( p_id => 21.4306, p_flow_id=> wwv_flow.g_flow_id, p_tab_set=> '', p_name => '加载数据', p_step_title=> '加载数据', p_step_sub_title_type => 'TEXT_WITH_SUBSTITUTIONS', p_first_item=> 'NO_FIRST_ITEM', p_include_apex_css_js_yn=>'Y', p_autocomplete_on_off => '', p_group_id => 215731706086585147+ wwv_flow_api.g_id_offset, p_help_text => ' ', p_html_page_header => ' ', p_step_template => 3485606247566446.4306+ wwv_flow_api.g_id_offset, p_required_patch=> null + wwv_flow_api.g_id_offset, p_last_updated_by => '', p_last_upd_yyyymmddhh24miss => '20090409165724', p_page_is_public_y_n=> 'N', p_page_comment => ''); wwv_flow_api.set_page_help_text(p_flow_id=>wwv_flow.g_flow_id,p_flow_step_id=>21.4306,p_text=>h); wwv_flow_api.set_html_page_header(p_flow_id=>wwv_flow.g_flow_id,p_flow_step_id=>21.4306,p_text=>ph); end; end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 2163507507803153.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 21.4306, p_plug_name=> '加载数据', p_region_name=>'', p_plug_template=> 103900825378122658.4306+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 10, p_plug_display_column=> 1, p_plug_display_point=> 'AFTER_SHOW_ITEMS', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_plug_display_error_message=> 'Unable to display page region #SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> '', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_display_condition_type => '', p_plug_footer=> '', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> 'Region generated 20-SEP-2002 14:00:17'); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'List: Plain Text Data Import'; wwv_flow_api.create_page_plug ( p_id=> 3941420987854137.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 21.4306, p_plug_name=> 'Navigation', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 20, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_01', p_plug_source=> s, p_plug_source_type=> 3931814922814551 + wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 6830404555698181.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 21.4306, p_plug_name=> 'Menu', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 1, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_08', p_plug_source=> s, p_plug_source_type=> 'M'|| to_char(6678815232629976 + wwv_flow_api.g_id_offset), p_menu_template_id=> 6680621597641306.4306+ wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'使用此页可以标识表的主键。如果数据集中所有单列均不适合作为主键, 则标识一新列作为主键。主键是表中唯一标识行的列。
'; wwv_flow_api.create_page_plug ( p_id=> 221484502607308603.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 21.4306, p_plug_name=> '加载数据', p_region_name=>'', p_plug_template=> 104263607591363808.4306+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 30, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_03', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'QUERY_COLUMNS', p_plug_query_num_rows_type => 'NEXT_PREVIOUS_LINKS', p_plug_query_row_count_max => 500, p_plug_query_show_nulls_as => ' - ', p_plug_display_condition_type => '', p_pagination_display_position=>'BOTTOM_RIGHT', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / begin wwv_flow_api.create_page_button( p_id => 2164426793803154.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 21.4306, p_button_sequence=> 10, p_button_plug_id => 2163507507803153+wwv_flow_api.g_id_offset, p_button_name => 'CANCEL', p_button_image_alt=> '取消', p_button_position=> 'REGION_TEMPLATE_CLOSE', p_button_alignment=> 'RIGHT', p_button_redirect_url=> 'f?p=&APP_ID.:9:&SESSION.::&DEBUG.:::', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 2164724759803154.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 21.4306, p_button_sequence=> 30, p_button_plug_id => 2163507507803153+wwv_flow_api.g_id_offset, p_button_name => 'FINISH', p_button_image_alt=> '加载数据', p_button_position=> 'REGION_TEMPLATE_NEXT', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 2164626737803154.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 21.4306, p_button_sequence=> 20, p_button_plug_id => 2163507507803153+wwv_flow_api.g_id_offset, p_button_name => 'PREVIOUS', p_button_image_alt=> '< 上一步', p_button_position=> 'REGION_TEMPLATE_PREVIOUS', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); end; / begin wwv_flow_api.create_page_branch( p_id=>2166126845803162.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 21.4306, p_branch_action=> '8', p_branch_point=> 'AFTER_PROCESSING', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>2164724759803154.4306+ wwv_flow_api.g_id_offset, p_branch_sequence=> 20, p_save_state_before_branch_yn=>'N', p_branch_comment=> 'Generated 20-SEP-2002 14:00:17'); wwv_flow_api.create_page_branch( p_id=>29899701983651170.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 21.4306, p_branch_action=> '21', p_branch_point=> 'AFTER_PROCESSING', p_branch_type=> 'BRANCH_TO_STEP', p_branch_sequence=> 30, p_branch_condition_type=> 'REQUEST_EQUALS_CONDITION', p_branch_condition=> 'P13_PK_TYPE', p_save_state_before_branch_yn=>'N', p_branch_comment=> 'Created 05-FEB-2003 11:30 by CBCHO'); wwv_flow_api.create_page_branch( p_id=>52491202943423441.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 21.4306, p_branch_action=> 'f?p=&FLOW_ID.:21:&SESSION.::&DEBUG.:::', p_branch_point=> 'AFTER_PROCESSING', p_branch_type=> 'REDIRECT_URL', p_branch_sequence=> 99, p_save_state_before_branch_yn=>'N', p_branch_comment=> 'Created 02-JUN-2003 11:08 by CBCHO'); wwv_flow_api.create_page_branch( p_id=>2165605436803157.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 21.4306, p_branch_action=> '19', p_branch_point=> 'BEFORE_VALIDATION', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>2164626737803154.4306+ wwv_flow_api.g_id_offset, p_branch_sequence=> 10, p_save_state_before_branch_yn=>'N', p_branch_comment=> 'Generated 20-SEP-2002 14:00:17'); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'拥有要将数据加载到的表的方案。'; wwv_flow_api.create_page_item( p_id=>2164212316803154.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 21.4306, p_name=>'F4300_P21_OWNER', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 10, p_item_plug_id => 2163507507803153.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'NO', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'方案:', p_source=>'F4300_P13_OWNER', p_source_type=> 'ITEM', p_display_as=> 'DISPLAY_AND_SAVE', p_lov_columns=> null, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_tag_attributes => 'class="fielddatabold"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', p_field_template => 103909823939152778.4306+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_protection_level => 'N', p_escape_on_http_input => 'Y', p_help_text => h, p_item_comment => 'Generated 20-SEP-2002 14:00:17'); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'要将数据加载到的表的名称'; wwv_flow_api.create_page_item( p_id=>2290019463274070.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 21.4306, p_name=>'F4300_P21_TABLE_NAME', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 20, p_item_plug_id => 2163507507803153.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'NO', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'表名:', p_source=>'F4300_P13_TABLE_NAME', p_source_type=> 'ITEM', p_display_as=> 'DISPLAY_ONLY_HTML', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_tag_attributes => 'class="fielddatabold"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', p_field_template => 103909823939152778.4306+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_protection_level => 'N', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'指定哪一列为表的主键。主键是唯一标识行的列。Oracle 不要求表必须具有主键, 但此向导要求标识主键。'; wwv_flow_api.create_page_item( p_id=>29865802488537862.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 21.4306, p_name=>'P13_PK1', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 40, p_item_plug_id => 2163507507803153.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'主键', p_source_type=> 'ALWAYS_NULL', p_display_as=> 'COMBOBOX', p_lov => 'select htf.escape_sc(c001)||''(''||c002||'')'' a, c001'||chr(10)|| ' from wwv_flow_collections'||chr(10)|| ' where collection_name = ''CSV_IMPORT'' and c001 is not null'||chr(10)|| ' order by seq_id'||chr(10)|| '', p_lov_columns=> 1, p_lov_display_null=> 'YES', p_lov_translated=> 'N', p_lov_null_text=>'- 选择主键 -', p_lov_null_value=> '0', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', p_display_when=>'P13_PK1_OPTION', p_display_when2=>'EXISTING_KEY', p_display_when_type=>'VAL_OF_ITEM_IN_COND_EQ_COND2', p_field_template => 103910729134154335.4306+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_protection_level => 'N', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'命名主键约束条件。'; wwv_flow_api.create_page_item( p_id=>29868930193545840.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 21.4306, p_name=>'P13_PK1_NAME', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 50, p_item_plug_id => 2163507507803153.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'PK 约束条件名', p_source_type=> 'STATIC', p_display_as=> 'TEXT', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', p_field_template => 103910729134154335.4306+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'选择您希望用于计算主键的方式。或者, 选择不设置主键值。'; wwv_flow_api.create_page_item( p_id=>29871919935552356.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 21.4306, p_name=>'P13_PK_TYPE', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 60, p_item_plug_id => 2163507507803153.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default => 'NEW_SEQUENCE', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'主键置入:', p_source_type=> 'STATIC', p_display_as=> 'RADIOGROUP_WITH_SUBMIT', p_named_lov=> 'PK_TYPES', p_lov => '.'||to_char(29232624018252340 + wwv_flow_api.g_id_offset)||'.', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_tag_attributes2=> 'class="fielddata"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT-TOP', p_field_alignment => 'LEFT', p_field_template => 103909823939152778.4306+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'标识用于填充主键值的现有数据库序列的名称。'; wwv_flow_api.create_page_item( p_id=>29874226299563636.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 21.4306, p_name=>'P13_EXISTING_SEQUENCE', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 70, p_item_plug_id => 2163507507803153.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'序列', p_source_type=> 'STATIC', p_display_as=> 'COMBOBOX', p_lov => 'select htf.escape_sc(sequence_name) d, sequence_name v'||chr(10)|| ' from sys.dba_sequences '||chr(10)|| 'where sequence_owner = :F4300_P13_OWNER'||chr(10)|| 'order by sequence_name', p_lov_columns=> 1, p_lov_display_null=> 'YES', p_lov_translated=> 'N', p_lov_null_text=>'- 选择序列 -', p_lov_null_value=> '0', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', p_display_when=>'P13_PK_TYPE', p_display_when2=>'EXISTING_SEQUENCE', p_display_when_type=>'VAL_OF_ITEM_IN_COND_EQ_COND2', p_field_template => 103910729134154335.4306+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_protection_level => 'N', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'标识新数据库序列的名称。为了填充此新表的主键, 将创建该数据库序列。'; wwv_flow_api.create_page_item( p_id=>29876013271569281.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 21.4306, p_name=>'P13_NEW_SEQUENCE', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 80, p_item_plug_id => 2163507507803153.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'序列', p_source_type=> 'STATIC', p_display_as=> 'TEXT', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', p_display_when=>'P13_PK_TYPE', p_display_when2=>'NEW_SEQUENCE', p_display_when_type=>'VAL_OF_ITEM_IN_COND_EQ_COND2', p_field_template => 103910729134154335.4306+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin wwv_flow_api.create_page_item( p_id=>51746727944629094.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 21.4306, p_name=>'P21_X', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 30, p_item_plug_id => 2163507507803153.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_source=>' ', p_source_type=> 'STATIC', p_display_as=> 'DISPLAY_ONLY_HTML', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> null, p_cAttributes=> 'nowrap="nowrap"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', p_is_persistent=> 'Y', p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'您可以选择现有列作为主键或添加新列作为主键。'; wwv_flow_api.create_page_item( p_id=>52479416748399039.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 21.4306, p_name=>'P13_PK1_OPTION', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 35, p_item_plug_id => 2163507507803153.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default => 'NEW_KEY', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'主键来自:', p_source_type=> 'STATIC', p_display_as=> 'RADIOGROUP_WITH_SUBMIT', p_named_lov=> 'USE.EXISTING.COL', p_lov => '.'||to_char(87933423434676001 + wwv_flow_api.g_id_offset)||'.', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_tag_attributes2=> 'class="fielddata"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT-TOP', p_field_alignment => 'LEFT', p_field_template => 103909823939152778.4306+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'输入新主键列的名称。'; wwv_flow_api.create_page_item( p_id=>52483906836405605.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 21.4306, p_name=>'P13_PK1_2', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 45, p_item_plug_id => 2163507507803153.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default => 'ID', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'新主键列', p_source_type=> 'STATIC', p_display_as=> 'TEXT', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', p_display_when=>'P13_PK1_OPTION', p_display_when2=>'NEW_KEY', p_display_when_type=>'VAL_OF_ITEM_IN_COND_EQ_COND2', p_field_template => 103910729134154335.4306+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_item_comment => ''); end; / begin wwv_flow_api.create_page_computation( p_id=> 29883807645586566.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 21.4306, p_computation_sequence => 10, p_computation_item=> 'P13_PK1_NAME', p_computation_point=> 'BEFORE_HEADER', p_computation_type=> 'PLSQL_EXPRESSION', p_computation_processed=> 'REPLACE_EXISTING', p_computation=> 'wwv_flow_sw_util.generate_pk_name(replace(:F4300_P13_TABLE_NAME,'' '',''_''));', p_compute_when => '', p_compute_when_type=>''); null; end; / begin wwv_flow_api.create_page_computation( p_id=> 29885422537590887.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 21.4306, p_computation_sequence => 10, p_computation_item=> 'P13_NEW_SEQUENCE', p_computation_point=> 'BEFORE_HEADER', p_computation_type=> 'PLSQL_EXPRESSION', p_computation_processed=> 'REPLACE_EXISTING', p_computation=> 'wwv_flow_sw_util.generate_seq_name(replace(:F4300_P13_TABLE_NAME,'' '',''_''));', p_compute_when => '', p_compute_when_type=>''); null; end; / begin wwv_flow_api.create_page_computation( p_id=> 29887722321600349.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 21.4306, p_computation_sequence => 10, p_computation_item=> 'P13_PK1', p_computation_point=> 'BEFORE_HEADER', p_computation_type=> 'FUNCTION_BODY', p_computation_processed=> 'REPLACE_EXISTING', p_computation=> 'declare'||chr(10)|| 'begin'||chr(10)|| ' for c1 in ('||chr(10)|| ' select c001'||chr(10)|| ' from wwv_flow_collections'||chr(10)|| ' where collection_name = ''CSV_IMPORT'''||chr(10)|| ' and upper(c001) = ''ID'''||chr(10)|| ' ) loop'||chr(10)|| ' return c1.c001;'||chr(10)|| ' end loop;'||chr(10)|| ' for c1 in ('||chr(10)|| ' select c001'||chr(10)|| ' from wwv_flow_collections'||chr(10)|| ' where collection_name = ''CSV_IMPORT'''||chr(10)|| ' and upper(c001) like ''%ID'''||chr(10)|| ' ) loop'||chr(10)|| ' return c1.c001;'||chr(10)|| ' end loop;'||chr(10)|| 'end;', p_compute_when => 'P13_PK1', p_compute_when_type=>'ITEM_IS_NULL_OR_ZERO'); null; end; / begin wwv_flow_api.create_page_computation( p_id=> 48784624982313991.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 21.4306, p_computation_sequence => 10, p_computation_item=> 'P13_PK1_2', p_computation_point=> 'BEFORE_HEADER', p_computation_type=> 'FUNCTION_BODY', p_computation_processed=> 'REPLACE_EXISTING', p_computation=> 'declare'||chr(10)|| ' l_pk varchar2(40) := null;'||chr(10)|| 'begin'||chr(10)|| ' for c1 in (select c001'||chr(10)|| ' from wwv_flow_collections'||chr(10)|| ' where collection_name = ''CSV_IMPORT'''||chr(10)|| ' and upper(c001) = ''ID'') '||chr(10)|| ' loop'||chr(10)|| ' for i in 1..10 loop'||chr(10)|| ' for c2 in (select c001'||chr(10)|| ' from wwv_flow_collections'||chr(10)|| ' where collection_name = ''CSV_IMPORT'''||chr(10)|| ' and upper(c001) = ''ID''||i) '||chr(10)|| ' loop'||chr(10)|| ' l_pk := ''ID'';'||chr(10)|| ' end loop;--c2'||chr(10)|| ' if l_pk is null then'||chr(10)|| ' return ''ID''||i;'||chr(10)|| ' else'||chr(10)|| ' l_pk := null;'||chr(10)|| ' end if;'||chr(10)|| ' end loop;--i'||chr(10)|| ' end loop;--c1'||chr(10)|| ' return ''ID'';'||chr(10)|| 'end;', p_compute_when => '', p_compute_when_type=>''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 29890322799609950.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 21.4306, p_validation_name => 'ExSEQUENCE not null', p_validation_sequence=> 10, p_validation => 'P13_EXISTING_SEQUENCE', p_validation_type => 'ITEM_NOT_ZERO', p_error_message => '必须指定序列。', p_validation_condition=> 'P13_PK_TYPE', p_validation_condition2=> 'EXISTING_SEQUENCE', p_validation_condition_type=> 'VAL_OF_ITEM_IN_COND_EQ_COND2', p_when_button_pressed=> 2164724759803154.4306 + wwv_flow_api.g_id_offset, p_associated_item=> 29874226299563636.4306 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 29894220852618813.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 21.4306, p_validation_name => 'PK_NAME available', p_validation_sequence=> 20, p_validation => 'begin'||chr(10)|| ''||chr(10)|| 'if not wwv_flow_builder.is_valid_identifier(''"''||:P13_PK1_NAME||''"'') '||chr(10)|| ' then return '||chr(10)|| ' wwv_flow_lang.system_message(''F4300.NOT_VALID_PK_NAME'',:P13_PK1_NAME);'||chr(10)|| 'end if;'||chr(10)|| ' '||chr(10)|| 'if not wwv_flow_sw_util.is_available_name(:P13_PK1_NAME, :F4300_P21_OWNER ) '||chr(10)|| ' then return '||chr(10)|| ' wwv_flow_lang.system_message(''F4300.F4500.NAME_ALREADY_USED'',:P13_PK1_NAME);'||chr(10)|| ' end if;'||chr(10)|| 'end;', p_validation_type => 'FUNC_BODY_RETURNING_ERR_TEXT', p_error_message => '错误。', p_when_button_pressed=> 2164724759803154.4306 + wwv_flow_api.g_id_offset, p_associated_item=> 29868930193545840.4306 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 29895317520627355.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 21.4306, p_validation_name => 'ExistingPK not null', p_validation_sequence=> 30, p_validation => 'P13_PK1', p_validation_type => 'ITEM_NOT_NULL_OR_ZERO', p_error_message => '必须指定主键。', p_validation_condition=> 'P13_PK1_OPTION', p_validation_condition2=> 'EXISTING_KEY', p_validation_condition_type=> 'VAL_OF_ITEM_IN_COND_EQ_COND2', p_when_button_pressed=> 2164724759803154.4306 + wwv_flow_api.g_id_offset, p_associated_item=> 29865802488537862.4306 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 52517420651456956.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 21.4306, p_validation_name => 'NewPK not null', p_validation_sequence=> 35, p_validation => 'P13_PK1_2', p_validation_type => 'ITEM_NOT_NULL', p_error_message => '必须指定主键。', p_validation_condition=> 'P13_PK1_OPTION', p_validation_condition2=> 'NEW_KEY', p_validation_condition_type=> 'VAL_OF_ITEM_IN_COND_EQ_COND2', p_when_button_pressed=> 2164724759803154.4306 + wwv_flow_api.g_id_offset, p_associated_item=> 52483906836405605.4306 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 52521315588464886.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 21.4306, p_validation_name => 'PK not > 30 chars', p_validation_sequence=> 38, p_validation => 'if length(:P13_PK1_2) > 30 then'||chr(10)|| ' return false;'||chr(10)|| 'end if;'||chr(10)|| 'return true;', p_validation_type => 'FUNC_BODY_RETURNING_BOOLEAN', p_error_message => '主键列名不能超过 30 个字符。', p_validation_condition=> 'P13_PK1_OPTION', p_validation_condition2=> 'NEW_KEY', p_validation_condition_type=> 'VAL_OF_ITEM_IN_COND_EQ_COND2', p_when_button_pressed=> 2164724759803154.4306 + wwv_flow_api.g_id_offset, p_associated_item=> 52483906836405605.4306 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 52522413641473849.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 21.4306, p_validation_name => 'PK gen option needs to be auto', p_validation_sequence=> 39, p_validation => 'if :P13_PK_TYPE = ''NOT_GENERATED'' then'||chr(10)|| ' return false;'||chr(10)|| 'end if;'||chr(10)|| 'return true;', p_validation_type => 'FUNC_BODY_RETURNING_BOOLEAN', p_error_message => '在创建新主键时, 必须从序列生成主键。', p_validation_condition=> 'P13_PK1_OPTION', p_validation_condition2=> 'NEW_KEY', p_validation_condition_type=> 'VAL_OF_ITEM_IN_COND_EQ_COND2', p_when_button_pressed=> 2164724759803154.4306 + wwv_flow_api.g_id_offset, p_associated_item=> 29871919935552356.4306 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 29896704837633092.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 21.4306, p_validation_name => 'PK_NAME not null', p_validation_sequence=> 40, p_validation => 'P13_PK1_NAME', p_validation_type => 'ITEM_NOT_NULL_OR_ZERO', p_error_message => '必须指定主键名。', p_when_button_pressed=> 2164724759803154.4306 + wwv_flow_api.g_id_offset, p_associated_item=> 29868930193545840.4306 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 29898416743646038.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 21.4306, p_validation_name => 'SEQ_NAME available', p_validation_sequence=> 50, p_validation => 'if not wwv_flow_builder.is_valid_identifier(''"''||:P13_NEW_SEQUENCE||''"'') then'||chr(10)|| ' return wwv_flow_lang.system_message(''F4300.F4500.NOT_VALID_SEQ_NAME'',:P13_NEW_SEQUENCE);'||chr(10)|| 'end if;'||chr(10)|| ' '||chr(10)|| 'if not wwv_flow_sw_util.is_available_name(:P13_NEW_SEQUENCE, :F4300_P21_OWNER) then'||chr(10)|| ' return wwv_flow_lang.system_message(''F4300.F4500.NAME_ALREADY_USED'',:P13_NEW_SEQUENCE);'||chr(10)|| 'end if;', p_validation_type => 'FUNC_BODY_RETURNING_ERR_TEXT', p_error_message => '错误。', p_validation_condition=> 'P13_PK_TYPE', p_validation_condition2=> 'NEW_SEQUENCE', p_validation_condition_type=> 'VAL_OF_ITEM_IN_COND_EQ_COND2', p_when_button_pressed=> 2164724759803154.4306 + wwv_flow_api.g_id_offset, p_associated_item=> 29876013271569281.4306 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 48786206675337067.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 21.4306, p_validation_name => 'no duplicate PK', p_validation_sequence=> 60, p_validation => 'declare'||chr(10)|| ' l_cnt pls_integer := 0;'||chr(10)|| 'begin'||chr(10)|| ' for c1 in (select count(c001) cnt'||chr(10)|| ' from wwv_flow_collections'||chr(10)|| ' where collection_name = ''CSV_IMPORT'''||chr(10)|| ' and upper(c001) = upper(:P13_PK1_2))'||chr(10)|| ' loop'||chr(10)|| ' l_cnt := c1.cnt;'||chr(10)|| ' end loop;'||chr(10)|| ' if l_cnt > 0 then'||chr(10)|| ' return wwv_flow_lang.system_message(''F4500.P602.DUP_COL_NAME'',:P13_PK1_2);'||chr(10)|| ' end if;'||chr(10)|| 'end;', p_validation_type => 'FUNC_BODY_RETURNING_ERR_TEXT', p_error_message => '错误。', p_validation_condition=> 'P13_PK1_OPTION', p_validation_condition2=> 'NEW_KEY', p_validation_condition_type=> 'VAL_OF_ITEM_IN_COND_EQ_COND2', p_when_button_pressed=> 2164724759803154.4306 + wwv_flow_api.g_id_offset, p_associated_item=> 52483906836405605.4306 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin declare p varchar2(32767) := null; l_clob clob; l_length number := 1; begin p:=p||'declare '||chr(10)|| ' l_cnames wwv_flow_global.vc_arr2; '||chr(10)|| ' l_data_type wwv_flow_global.vc_arr2; '||chr(10)|| ' l_upload wwv_flow_global.vc_arr2;'||chr(10)|| ' l_max_length wwv_flow_global.vc_arr2;'||chr(10)|| ' l_seq_name varchar2(255) := null;'||chr(10)|| ' l_pk1 varchar2(255) := :P13_PK1;'||chr(10)|| ' l_pk1_name varchar2(255) := null;'||chr(10)|| ' i pls_integer := 0;'||chr(10)|| 'begin '||chr(10)|| ' if :P13_PK1_OPTION = ''NEW_KEY'' then'||chr(10)|| ' i := i+1;'||chr(10)|| ' l'; p:=p||'_pk1 := replace(wwv_flow_utilities.remove_spaces(:P13_PK1_2),chr(32),''_''); '||chr(10)|| ' if :P19_PRESERVE_CASE is null then'||chr(10)|| ' l_pk1 := upper(l_pk1);'||chr(10)|| ' end if;'||chr(10)|| ' l_cnames(i) := l_pk1;'||chr(10)|| ' l_data_type(i) := ''NUMBER'';'||chr(10)|| ' l_upload(i) := ''Y'';'||chr(10)|| ' l_max_length(i) := 30;'||chr(10)|| ' end if;'||chr(10)|| ''||chr(10)|| ' for c in (select * '||chr(10)|| ' from wwv_flow_collections '||chr(10)|| ' where collection_name=''CSV_I'; p:=p||'MPORT'') loop'||chr(10)|| ' i := i+1; '||chr(10)|| ' l_cnames(i) := c.c001;'||chr(10)|| ' l_data_type(i) := c.c002;'||chr(10)|| ' l_upload(i) := c.c004;'||chr(10)|| ' l_max_length(i) := c.c005; '||chr(10)|| ' end loop; '||chr(10)|| ' '||chr(10)|| ' if :P13_PK_TYPE = ''NEW_SEQUENCE'' then'||chr(10)|| ' l_seq_name := :P13_NEW_SEQUENCE;'||chr(10)|| ' if :P19_PRESERVE_CASE is null then'||chr(10)|| ' l_seq_name := upper(l_seq_name);'||chr(10)|| ' end if;'||chr(10)|| ' elsif :P13_PK_TYPE = ''EXISTING_SEQUENCE'' then'||chr(10)|| ' l_seq_name '; p:=p||':= :P13_EXISTING_SEQUENCE;'||chr(10)|| ' else'||chr(10)|| ' l_seq_name := NULL;'||chr(10)|| ' end if;'||chr(10)|| ''||chr(10)|| ' l_pk1_name := :P13_PK1_NAME;'||chr(10)|| ' if :P19_PRESERVE_CASE is null then'||chr(10)|| ' l_pk1_name := upper(l_pk1_name);'||chr(10)|| ' end if;'||chr(10)|| ' wwv_flow_load_excel_data.create_table ('||chr(10)|| ' p_schema => :F4300_P13_OWNER,'||chr(10)|| ' p_table_name => wwv_flow_utilities.remove_spaces(:F4300_P13_TABLE_NAME),'||chr(10)|| ' p_pk1 => l_pk1,'||chr(10)|| ' p_pk1_name => l_pk1_name,'||chr(10)|| ' '; p:=p||' p_pk1_type => :P13_PK_TYPE,'||chr(10)|| ' p_seq_name => l_seq_name,'||chr(10)|| ' --'||chr(10)|| ' p_cnames => l_cnames,'||chr(10)|| ' p_data_type => l_data_type, '||chr(10)|| ' p_upload => l_upload,'||chr(10)|| ' p_max_length => l_max_length '||chr(10)|| ' ); '||chr(10)|| 'end;'; wwv_flow_api.create_page_process( p_id => 2632715940268420.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id => 21.4306, p_process_sequence=> 10, p_process_point=> 'AFTER_SUBMIT', p_process_type=> 'PLSQL', p_process_name=> 'create table', p_process_sql_clob => p, p_process_error_message=> '', p_process_when_button_id=>2164724759803154.4306 + wwv_flow_api.g_id_offset, p_process_success_message=> '', p_process_is_stateful_y_n=>'N', p_process_comment=>''); end; null; end; / begin declare p varchar2(32767) := null; l_clob clob; l_length number := 1; begin p:=p||'declare'||chr(10)|| ' l_file_id number := 0;'||chr(10)|| ' l_first_row_is_col_name boolean := false; '||chr(10)|| ' l_cnames wwv_flow_global.vc_arr2; '||chr(10)|| ' l_upload wwv_flow_global.vc_arr2; '||chr(10)|| ' i number := 0;'||chr(10)|| ' --'||chr(10)|| ' l_data_type wwv_flow_global.vc_arr2;'||chr(10)|| ' l_data_format wwv_flow_global.vc_arr2;'||chr(10)|| ' l_parsed_data_format wwv_flow_global.v'; p:=p||'c_arr2;'||chr(10)|| 'begin'||chr(10)|| ' select id'||chr(10)|| ' into l_file_id'||chr(10)|| ' from wwv_flow_file_objects$'||chr(10)|| ' where name = :F4300_P13_FILE;'||chr(10)|| ' '||chr(10)|| ' for c in (select * '||chr(10)|| ' from wwv_flow_collections '||chr(10)|| ' where collection_name=''CSV_IMPORT'') loop'||chr(10)|| ' i := i + 1;'||chr(10)|| ' l_cnames(i) := c.c001; '||chr(10)|| ' l_upload(i) := c.c004; '||chr(10)|| ' l_data_type(i) := c.c002; '||chr(10)|| ' l_data_format(i) := c.c006;'||chr(10)|| ' l_parsed_data_format(i) := c.c027; '; p:=p||''||chr(10)|| ' end loop; '||chr(10)|| ''||chr(10)|| ' if :F4300_P13_IS_COLUMN_NAME = ''Y'' then'||chr(10)|| ' l_first_row_is_col_name := true;'||chr(10)|| ' end if;'||chr(10)|| ''||chr(10)|| ' wwv_flow_load_data.load_csv_data ('||chr(10)|| ' p_file_id => l_file_id,'||chr(10)|| ' p_cnames => l_cnames,'||chr(10)|| ' p_upload => l_upload,'||chr(10)|| ' p_schema => :F4300_P13_OWNER,'||chr(10)|| ' p_table => wwv_flow_utilities.remove_spaces(:F4300_P13_TABLE_NAME),'||chr(10)|| ' p_data_type => l_data_type,'||chr(10)|| ' p_data_for'; p:=p||'mat => l_data_format,'||chr(10)|| ' p_parsed_data_format => l_parsed_data_format,'||chr(10)|| ' p_separator => lower(:F4300_P13_SEPARATOR),'||chr(10)|| ' p_enclosed_by => :F4300_P13_ENCLOSED_BY,'||chr(10)|| ' p_first_row_is_col_name => l_first_row_is_col_name,'||chr(10)|| ' p_load_to => ''NEW'','||chr(10)|| ' p_currency => :P18_CURRENCY,'||chr(10)|| ' p_numeric_chars => :P18_DECIMAL_CHARACTER||:P18_GROUP_S'; p:=p||'EPARATOR,'||chr(10)|| ' p_charset => :P18_FILE_CHARSET'||chr(10)|| ' );'||chr(10)|| 'end;'; wwv_flow_api.create_page_process( p_id => 2634021612279507.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id => 21.4306, p_process_sequence=> 10, p_process_point=> 'AFTER_SUBMIT', p_process_type=> 'PLSQL', p_process_name=> 'insert data', p_process_sql_clob => p, p_process_error_message=> '', p_process_when_button_id=>2164724759803154.4306 + wwv_flow_api.g_id_offset, p_process_success_message=> '', p_process_is_stateful_y_n=>'N', p_process_comment=>''); end; null; end; / begin declare p varchar2(32767) := null; l_clob clob; l_length number := 1; begin p:=p||'wwv_flow_sw_api.check_priv(:F4300_P13_OWNER);'; wwv_flow_api.create_page_process( p_id => 69940020626931717.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id => 21.4306, p_process_sequence=> 20, p_process_point=> 'BEFORE_HEADER', p_process_type=> 'PLSQL', p_process_name=> 'Validate Schema', p_process_sql_clob => p, p_process_error_message=> '方案无效', p_process_success_message=> '', p_process_is_stateful_y_n=>'N', p_process_comment=>''); end; null; end; / begin declare p varchar2(32767) := null; l_clob clob; l_length number := 1; begin p:=p||'wwv_flow_sw_api.check_priv(:F4300_P13_OWNER);'; wwv_flow_api.create_page_process( p_id => 122951803454637884.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id => 21.4306, p_process_sequence=> 20, p_process_point=> 'ON_SUBMIT_BEFORE_COMPUTATION', p_process_type=> 'PLSQL', p_process_name=> 'validate schema', p_process_sql_clob => p, p_process_error_message=> '', p_process_success_message=> '', p_process_is_stateful_y_n=>'N', p_process_comment=>''); end; null; end; / begin --------------------------------------- -- ...updatable report columns for page 21.4306 -- begin null; end; null; end; / --application/pages/page_22.43 prompt ...PAGE 22.4306: 加载数据 -- begin declare h varchar2(32767) := null; ph varchar2(32767) := null; begin h:=h||'AEUTL/sql_utl_exprt.htm'; ph := null; wwv_flow_api.create_page( p_id => 22.4306, p_flow_id=> wwv_flow.g_flow_id, p_tab_set=> '', p_name => '加载数据', p_step_title=> '加载数据', p_step_sub_title_type => 'TEXT_WITH_SUBSTITUTIONS', p_first_item=> 'NO_FIRST_ITEM', p_include_apex_css_js_yn=>'Y', p_autocomplete_on_off => '', p_group_id => 215731706086585147+ wwv_flow_api.g_id_offset, p_help_text => ' ', p_html_page_header => '', p_step_template => 3485606247566446.4306+ wwv_flow_api.g_id_offset, p_required_patch=> null + wwv_flow_api.g_id_offset, p_last_updated_by => '', p_last_upd_yyyymmddhh24miss => '20090409165724', p_page_is_public_y_n=> 'N', p_page_comment => ''); wwv_flow_api.set_page_help_text(p_flow_id=>wwv_flow.g_flow_id,p_flow_step_id=>22.4306,p_text=>h); end; end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 2166903406803173.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 22.4306, p_plug_name=> '加载数据', p_region_name=>'', p_plug_template=> 103900825378122658.4306+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 10, p_plug_display_column=> 1, p_plug_display_point=> 'AFTER_SHOW_ITEMS', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_plug_display_error_message=> 'Unable to display page region #SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> '', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_display_condition_type => '', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> 'Region generated 20-SEP-2002 14:00:18'); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'选择数据库方案, 此方案拥有要加载数据的表。
'; wwv_flow_api.create_page_plug ( p_id=> 2167203855803175.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 22.4306, p_plug_name=> '加载数据', p_region_name=>'', p_plug_template=> 104263607591363808.4306+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 10, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_03', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_plug_display_error_message=> 'Unable to display page region #SQLERRM#', p_plug_query_row_template=> 7082409118250737.4306+ wwv_flow_api.g_id_offset, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_num_rows => 15, p_plug_query_num_rows_type => 'ROWS_X_TO_Y_OF_Z', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top" align="right"', p_plug_query_show_nulls_as => ' - ', p_plug_query_col_allignments => 'L:L:L:L:L:L:L', p_plug_query_sum_cols => '::::::', p_plug_query_number_formats => '::::::', p_plug_display_condition_type => '', p_pagination_display_position=>'BOTTOM_RIGHT', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> 'Region generated 20-SEP-2002 14:00:18'); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'List: Plain Text Data Import2'; wwv_flow_api.create_page_plug ( p_id=> 3942229644856578.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 22.4306, p_plug_name=> 'Navigation', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 20, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_01', p_plug_source=> s, p_plug_source_type=> 3934205141830584 + wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 23356522911631312.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 22.4306, p_plug_name=> 'Menu', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 1, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_08', p_plug_source=> s, p_plug_source_type=> 'M'|| to_char(6678815232629976 + wwv_flow_api.g_id_offset), p_menu_template_id=> 6680621597641306.4306+ wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / begin wwv_flow_api.create_page_button( p_id => 2167730620803176.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 22.4306, p_button_sequence=> 10, p_button_plug_id => 2166903406803173+wwv_flow_api.g_id_offset, p_button_name => 'CANCEL', p_button_image_alt=> '取消', p_button_position=> 'REGION_TEMPLATE_CLOSE', p_button_alignment=> 'RIGHT', p_button_redirect_url=> 'f?p=&APP_ID.:9:&SESSION.::&DEBUG.:::', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 2167814861803176.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 22.4306, p_button_sequence=> 40, p_button_plug_id => 2166903406803173+wwv_flow_api.g_id_offset, p_button_name => 'NEXT', p_button_image_alt=> '下一步 >', p_button_position=> 'REGION_TEMPLATE_NEXT', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 4117018823640385.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 22.4306, p_button_sequence=> 10, p_button_plug_id => 2166903406803173+wwv_flow_api.g_id_offset, p_button_name => 'PREVIOUS', p_button_image_alt=> '< 上一步', p_button_position=> 'REGION_TEMPLATE_PREVIOUS', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); end; / begin wwv_flow_api.create_page_branch( p_id=>2169404691803182.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 22.4306, p_branch_action=> '23', p_branch_point=> 'AFTER_PROCESSING', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>2167814861803176.4306+ wwv_flow_api.g_id_offset, p_branch_sequence=> 1, p_save_state_before_branch_yn=>'N', p_branch_comment=> 'Generated 20-SEP-2002 14:00:18'); wwv_flow_api.create_page_branch( p_id=>4117328710640389.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 22.4306, p_branch_action=> '230', p_branch_point=> 'BEFORE_VALIDATION', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>4117018823640385.4306+ wwv_flow_api.g_id_offset, p_branch_sequence=> 10, p_save_state_before_branch_yn=>'N', p_branch_comment=> ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'选择数据库方案, 此方案拥有要加载数据的表。
'; wwv_flow_api.create_page_item( p_id=>2167519385803175.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 22.4306, p_name=>'F4300_P22_TABLE_OWNER', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 10, p_item_plug_id => 2166903406803173.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'方案', p_source=>'wwv_flow_user_api.get_default_schema', p_source_type=> 'FUNCTION', p_display_as=> 'COMBOBOX', p_named_lov=> 'LIST_SCHEMA_OWNERS', p_lov => 'select htf.escape_sc(c.schema) d, c.schema v'||chr(10)|| 'from wwv_flow_company_schemas c,'||chr(10)|| ' wwv_flow_fnd_user u'||chr(10)|| 'where c.security_group_id = :flow_security_group_id and'||chr(10)|| ' u.security_group_id = :flow_security_group_id and'||chr(10)|| ' u.user_name = :flow_user and'||chr(10)|| ' (u.ALLOW_ACCESS_TO_SCHEMAS is null or'||chr(10)|| ' instr('':''||u.ALLOW_ACCESS_TO_SCHEMAS||'':'','':''||c.schema||'':'')>0)'||chr(10)|| 'order by 1'||chr(10)|| '', p_lov_columns=> null, p_lov_display_null=> 'YES', p_lov_translated=> 'N', p_lov_null_text=>'- 选择方案 - ', p_lov_null_value=> '', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', p_read_only_when=>'return wwv_flow_global.g_xe', p_read_only_when_type=>'FUNCTION_BODY', p_read_only_disp_attr=>'class="fielddatabold"', p_field_template => 103910729134154335.4306+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_protection_level => 'N', p_escape_on_http_input => 'Y', p_help_text => h, p_item_comment => 'Generated 20-SEP-2002 14:00:18'); end; / begin wwv_flow_api.create_page_validation( p_id => 3375200229249004.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 22.4306, p_validation_name => 'F4300_P22_TABLE_OWNER Not Null', p_validation_sequence=> 1, p_validation => 'F4300_P22_TABLE_OWNER', p_validation_type => 'ITEM_NOT_NULL', p_error_message => '必须指定方案。', p_associated_item=> 2167519385803175.4306 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> 'generated 25-SEP-2002 14:41'); null; end; / begin --------------------------------------- -- ...updatable report columns for page 22.4306 -- begin null; end; null; end; / --application/pages/page_23.43 prompt ...PAGE 23.4306: 加载数据 -- begin declare h varchar2(32767) := null; ph varchar2(32767) := null; begin h:=h||'AEUTL/sql_utl_exprt.htm'; ph := null; wwv_flow_api.create_page( p_id => 23.4306, p_flow_id=> wwv_flow.g_flow_id, p_tab_set=> '', p_name => '加载数据', p_step_title=> '加载数据', p_step_sub_title_type => 'TEXT_WITH_SUBSTITUTIONS', p_first_item=> 'NO_FIRST_ITEM', p_include_apex_css_js_yn=>'Y', p_autocomplete_on_off => '', p_group_id => 215731706086585147+ wwv_flow_api.g_id_offset, p_help_text => ' ', p_html_page_header => '', p_step_template => 3485606247566446.4306+ wwv_flow_api.g_id_offset, p_required_patch=> null + wwv_flow_api.g_id_offset, p_last_updated_by => '', p_last_upd_yyyymmddhh24miss => '20090409165724', p_page_is_public_y_n=> 'N', p_page_comment => ''); wwv_flow_api.set_page_help_text(p_flow_id=>wwv_flow.g_flow_id,p_flow_step_id=>23.4306,p_text=>h); end; end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 3342017713216245.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 23.4306, p_plug_name=> '加载数据', p_region_name=>'', p_plug_template=> 103900825378122658.4306+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 10, p_plug_display_column=> 1, p_plug_display_point=> 'AFTER_SHOW_ITEMS', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 7082409118250737.4306+ wwv_flow_api.g_id_offset, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_num_rows => 15, p_plug_query_num_rows_type => 'ROWS_X_TO_Y_OF_Z', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_query_show_nulls_as => ' - ', p_plug_query_col_allignments => 'L:L:L:L:L:L:L', p_plug_query_sum_cols => '::::::', p_plug_query_number_formats => '::::::', p_plug_display_condition_type => '', p_pagination_display_position=>'BOTTOM_RIGHT', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'选择要加载数据的数据库表。
'; wwv_flow_api.create_page_plug ( p_id=> 3343527756219129.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 23.4306, p_plug_name=> '加载数据', p_region_name=>'', p_plug_template=> 104263607591363808.4306+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 20, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_03', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 7082409118250737.4306+ wwv_flow_api.g_id_offset, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_num_rows => 15, p_plug_query_num_rows_type => 'ROWS_X_TO_Y_OF_Z', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top" align="right"', p_plug_query_show_nulls_as => ' - ', p_plug_query_col_allignments => 'L:L:L:L:L:L:L', p_plug_query_sum_cols => '::::::', p_plug_query_number_formats => '::::::', p_plug_display_condition_type => '', p_pagination_display_position=>'BOTTOM_RIGHT', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'List: Plain Text Data Import2'; wwv_flow_api.create_page_plug ( p_id=> 3942801378857925.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 23.4306, p_plug_name=> 'Navigation', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 30, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_01', p_plug_source=> s, p_plug_source_type=> 3934205141830584 + wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 23357801225634529.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 23.4306, p_plug_name=> 'Menu', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 1, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_08', p_plug_source=> s, p_plug_source_type=> 'M'|| to_char(6678815232629976 + wwv_flow_api.g_id_offset), p_menu_template_id=> 6680621597641306.4306+ wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / begin wwv_flow_api.create_page_button( p_id => 3345108840223145.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 23.4306, p_button_sequence=> 10, p_button_plug_id => 3342017713216245+wwv_flow_api.g_id_offset, p_button_name => 'CANCEL', p_button_image_alt=> '取消', p_button_position=> 'REGION_TEMPLATE_CLOSE', p_button_alignment=> 'RIGHT', p_button_redirect_url=> 'f?p=&APP_ID.:9:&SESSION.::&DEBUG.:::', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 3347624424227650.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 23.4306, p_button_sequence=> 10, p_button_plug_id => 3342017713216245+wwv_flow_api.g_id_offset, p_button_name => 'NEXT', p_button_image_alt=> '下一步 >', p_button_position=> 'REGION_TEMPLATE_NEXT', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 3346317844225676.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 23.4306, p_button_sequence=> 10, p_button_plug_id => 3342017713216245+wwv_flow_api.g_id_offset, p_button_name => 'PREVIOUS', p_button_image_alt=> '< 上一步', p_button_position=> 'REGION_TEMPLATE_PREVIOUS', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); end; / begin wwv_flow_api.create_page_branch( p_id=>3347902164227651.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 23.4306, p_branch_action=> '24', p_branch_point=> 'AFTER_PROCESSING', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>3347624424227650.4306+ wwv_flow_api.g_id_offset, p_branch_sequence=> 10, p_save_state_before_branch_yn=>'N', p_branch_comment=> ''); wwv_flow_api.create_page_branch( p_id=>3346606261225679.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 23.4306, p_branch_action=> '22', p_branch_point=> 'BEFORE_COMPUTATION', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>3346317844225676.4306+ wwv_flow_api.g_id_offset, p_branch_sequence=> 10, p_save_state_before_branch_yn=>'N', p_branch_comment=> ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'选择要向其中加载数据的数据库表。
'; wwv_flow_api.create_page_item( p_id=>3370703215240396.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 23.4306, p_name=>'F4300_P22_TABLE_NAME', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 10, p_item_plug_id => 3342017713216245.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'表名', p_source_type=> 'STATIC', p_display_as=> 'COMBOBOX', p_lov => 'select htf.escape_sc(table_name) d, table_name r'||chr(10)|| 'from sys.dba_tables'||chr(10)|| 'where owner = :F4300_P22_TABLE_OWNER'||chr(10)|| 'and table_name not like ''BIN$%'''||chr(10)|| 'order by 1', p_lov_columns=> 1, p_lov_display_null=> 'YES', p_lov_translated=> 'N', p_lov_null_text=>'- 选择表 -', p_lov_null_value=> '', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', p_field_template => 103910729134154335.4306+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_protection_level => 'N', p_help_text => h, p_item_comment => ''); end; / begin wwv_flow_api.create_page_validation( p_id => 3372314989243825.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 23.4306, p_validation_name => 'F4300_P22_TABLE_NAME Not Null', p_validation_sequence=> 1, p_validation => 'F4300_P22_TABLE_NAME', p_validation_type => 'ITEM_NOT_NULL', p_error_message => '必须指定表名。', p_associated_item=> 3370703215240396.4306 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> 'generated 25-SEP-2002 14:40'); null; end; / begin declare p varchar2(32767) := null; l_clob clob; l_length number := 1; begin p:=p||'wwv_flow_sw_api.check_priv(:F4300_P22_TABLE_OWNER);'; wwv_flow_api.create_page_process( p_id => 71417327803995150.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id => 23.4306, p_process_sequence=> 10, p_process_point=> 'BEFORE_HEADER', p_process_type=> 'PLSQL', p_process_name=> 'Verify Schema', p_process_sql_clob => p, p_process_error_message=> '方案无效', p_process_success_message=> '', p_process_is_stateful_y_n=>'N', p_process_comment=>''); end; null; end; / begin --------------------------------------- -- ...updatable report columns for page 23.4306 -- begin null; end; null; end; / --application/pages/page_24.43 prompt ...PAGE 24.4306: 加载数据 -- begin declare h varchar2(32767) := null; ph varchar2(32767) := null; begin h:=h||'AEUTL/sql_utl_exprt.htm'; ph := null; wwv_flow_api.create_page( p_id => 24.4306, p_flow_id=> wwv_flow.g_flow_id, p_tab_set=> '', p_name => '加载数据', p_step_title=> '加载数据', p_step_sub_title_type => 'TEXT_WITH_SUBSTITUTIONS', p_first_item=> 'NO_FIRST_ITEM', p_include_apex_css_js_yn=>'Y', p_autocomplete_on_off => '', p_group_id => 215731706086585147+ wwv_flow_api.g_id_offset, p_help_text => ' ', p_html_page_header => '', p_step_template => 3485606247566446.4306+ wwv_flow_api.g_id_offset, p_required_patch=> null + wwv_flow_api.g_id_offset, p_last_updated_by => '', p_last_upd_yyyymmddhh24miss => '20090409165724', p_page_is_public_y_n=> 'N', p_page_comment => ''); wwv_flow_api.set_page_help_text(p_flow_id=>wwv_flow.g_flow_id,p_flow_step_id=>24.4306,p_text=>h); end; end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 3829922094433887.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 24.4306, p_plug_name=> '加载数据', p_region_name=>'', p_plug_template=> 103900825378122658.4306+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 10, p_plug_display_column=> 1, p_plug_display_point=> 'AFTER_SHOW_ITEMS', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_plug_display_error_message=> 'Unable to display page region #SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> '', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_display_condition_type => '', p_plug_header=> '', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> 'Region generated 20-SEP-2002 14:00:17'); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'使用此页可以定位要上载的文件。
'||chr(10)|| '如果第一行包含列名, 请选择第一行包含列名。
'; wwv_flow_api.create_page_plug ( p_id=> 3833218839433914.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 24.4306, p_plug_name=> '加载数据', p_region_name=>'', p_plug_template=> 104263607591363808.4306+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 10, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_03', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_plug_display_error_message=> 'Unable to display page region #SQLERRM#', p_plug_query_row_template=> 7082409118250737.4306+ wwv_flow_api.g_id_offset, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_num_rows => 15, p_plug_query_num_rows_type => 'ROWS_X_TO_Y_OF_Z', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top" align="right"', p_plug_query_show_nulls_as => ' - ', p_plug_query_col_allignments => 'L:L:L:L:L:L:L', p_plug_query_sum_cols => '::::::', p_plug_query_number_formats => '::::::', p_plug_display_condition_type => '', p_pagination_display_position=>'BOTTOM_RIGHT', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> 'Region generated 20-SEP-2002 14:00:17'); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'List: Plain Text Data Import2'; wwv_flow_api.create_page_plug ( p_id=> 3943707265859631.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 24.4306, p_plug_name=> 'Navigation', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 30, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_01', p_plug_source=> s, p_plug_source_type=> 3934205141830584 + wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 21249425216360552.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 24.4306, p_plug_name=> '全球化', p_region_name=>'', p_plug_template=> 21175625245088699.4306+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 40, p_plug_display_column=> 1, p_plug_display_point=> 'AFTER_SHOW_ITEMS', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 23358908151636560.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 24.4306, p_plug_name=> 'Menu', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 1, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_08', p_plug_source=> s, p_plug_source_type=> 'M'|| to_char(6678815232629976 + wwv_flow_api.g_id_offset), p_menu_template_id=> 6680621597641306.4306+ wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / begin wwv_flow_api.create_page_button( p_id => 3830106917433892.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 24.4306, p_button_sequence=> 10, p_button_plug_id => 3829922094433887+wwv_flow_api.g_id_offset, p_button_name => 'CANCEL', p_button_image_alt=> '取消', p_button_position=> 'REGION_TEMPLATE_CLOSE', p_button_alignment=> 'RIGHT', p_button_redirect_url=> 'f?p=&APP_ID.:9:&SESSION.::&DEBUG.:::', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 3830706637433895.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 24.4306, p_button_sequence=> 30, p_button_plug_id => 3829922094433887+wwv_flow_api.g_id_offset, p_button_name => 'NEXT', p_button_image_alt=> '下一步 >', p_button_position=> 'REGION_TEMPLATE_NEXT', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 3830402542433895.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 24.4306, p_button_sequence=> 20, p_button_plug_id => 3829922094433887+wwv_flow_api.g_id_offset, p_button_name => 'PREVIOUS', p_button_image_alt=> '< 上一步', p_button_position=> 'REGION_TEMPLATE_PREVIOUS', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); end; / begin wwv_flow_api.create_page_branch( p_id=>3834709806433923.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 24.4306, p_branch_action=> '24', p_branch_point=> 'AFTER_PROCESSING', p_branch_type=> 'BRANCH_TO_STEP', p_branch_sequence=> 10, p_branch_condition_type=> 'VAL_OF_ITEM_IN_COND_EQ_COND2', p_branch_condition=> 'F4300_P24_REUPLOAD', p_branch_condition_text=>'Y', p_save_state_before_branch_yn=>'N', p_branch_comment=> 'Created 24-SEP-2002 09:16 by CBCHO'); wwv_flow_api.create_page_branch( p_id=>3834410468433923.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 24.4306, p_branch_action=> '25', p_branch_point=> 'AFTER_PROCESSING', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>3830706637433895.4306+ wwv_flow_api.g_id_offset, p_branch_sequence=> 20, p_save_state_before_branch_yn=>'N', p_branch_comment=> 'Generated 20-SEP-2002 14:00:17'); wwv_flow_api.create_page_branch( p_id=>3834101310433921.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 24.4306, p_branch_action=> '23', p_branch_point=> 'BEFORE_COMPUTATION', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>3830402542433895.4306+ wwv_flow_api.g_id_offset, p_branch_sequence=> 10, p_save_state_before_branch_yn=>'N', p_branch_comment=> 'Generated 20-SEP-2002 14:00:17'); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'指定重新上载文件'; wwv_flow_api.create_page_item( p_id=>3831104189433900.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 24.4306, p_name=>'F4300_P24_REUPLOAD', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 25, p_item_plug_id => 3829922094433887.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'NO', p_item_default => 'N', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'重新上载文件', p_source_type=> 'STATIC', p_display_as=> 'COMBOBOX_WITH_SUBMIT', p_named_lov=> 'YES.NO.RETURNS_Y_OR_N', p_lov => '.'||to_char(87930425596657700 + wwv_flow_api.g_id_offset)||'.', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_tag_attributes2=> 'class="fielddata"', p_begin_on_new_line => 'NO', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', p_display_when=>'F4300_P22_FILE', p_display_when_type=>'ITEM_IS_NOT_NULL', p_field_template => 103909823939152778.4306+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'要上载的文件的名称'; wwv_flow_api.create_page_item( p_id=>3831424650433904.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 24.4306, p_name=>'F4300_P24_FILE_NAME', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 20, p_item_plug_id => 3829922094433887.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'文件名', p_source=>'F4300_P22_FILE', p_source_type=> 'ITEM', p_display_as=> 'DISPLAY_ONLY_HTML', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_tag_attributes => 'class="fielddatabold"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', p_display_when=>'F4300_P22_FILE', p_display_when_type=>'ITEM_IS_NOT_NULL', p_field_template => 103909823939152778.4306+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'单击浏览定位要上载的文件。
'; wwv_flow_api.create_page_item( p_id=>3832007249433909.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 24.4306, p_name=>'F4300_P22_FILE', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 10, p_item_plug_id => 3829922094433887.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'文件', p_source_type=> 'STATIC', p_display_as=> 'FILE', p_lov_columns=> null, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_tag_attributes => 'id="file-upload"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', p_display_when=>'F4300_P22_FILE', p_display_when_type=>'ITEM_IS_NULL', p_field_template => 103910729134154335.4306+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_item_comment => 'Generated 20-SEP-2002 14:00:17'); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'如果数据的第一行中包含列名, 请选择此选项。请参考以下示例:
'||chr(10)|| '姓名 薪水 佣金'||chr(10)|| 'Clark 1000 10'||chr(10)|| 'Scott 2000 20'||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| '
姓名 薪水 佣金'||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| 'Clark 1000 10'||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| 'Scott 2000 20'||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''; wwv_flow_api.create_page_item( p_id=>3832316073433910.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 24.4306, p_name=>'F4300_P22_IS_COLUMN_NAME', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 40, p_item_plug_id => 3829922094433887.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default => 'Y', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_source_type=> 'STATIC', p_display_as=> 'CHECKBOX', p_named_lov=> 'ISCOLUMN.NAME.TEXT', p_lov => 'select ''''||'||chr(10)|| 'wwv_flow_lang.system_message(''F4300_INSTRUCT_TEXT'')||'''' d, ''Y'' r from dual', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'
标识列分隔符。使用 \t 代表制表符。
'; wwv_flow_api.create_page_item( p_id=>3832614597433912.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 24.4306, p_name=>'F4300_P22_SEPARATOR', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 30, p_item_plug_id => 3829922094433887.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default => ',', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'分隔符', p_display_as=> 'TEXT', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 2, p_cMaxlength=> 2, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', p_field_template => 103910729134154335.4306+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'标识可选的封闭符。
'; wwv_flow_api.create_page_item( p_id=>3832902320433912.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 24.4306, p_name=>'F4300_P22_ENCLOSED_BY', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 35, p_item_plug_id => 3829922094433887.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'封闭符 (可选)', p_display_as=> 'TEXT', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 2, p_cMaxlength=> 2, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', p_field_template => 103909823939152778.4306+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'如果数据中包含国际货币符号, 请在此处输入。
'||chr(10)|| '例如, 如果数据中包含 "€1,234.56" 或 "¥1,234.56", 请输入 "€" 或 "¥"。否则, 将无法正确加载数据。
'; wwv_flow_api.create_page_item( p_id=>21250401452363148.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 24.4306, p_name=>'P24_CURRENCY', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 50, p_item_plug_id => 21249425216360552.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default => 'declare'||chr(10)|| ' l_return_val varchar2(30) := ''$'';'||chr(10)|| 'begin'||chr(10)|| ' for c1 in (select value'||chr(10)|| ' from nls_session_parameters'||chr(10)|| ' where parameter = ''NLS_CURRENCY'') loop'||chr(10)|| ' l_return_val := c1.value;'||chr(10)|| ' exit;'||chr(10)|| ' end loop;'||chr(10)|| ' --'||chr(10)|| ' return l_return_val;'||chr(10)|| 'end;', p_item_default_type => 'PLSQL_FUNCTION_BODY', p_prompt=>'货币符号', p_source_type=> 'STATIC', p_display_as=> 'TEXT', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 1, p_cMaxlength=> 1, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', p_field_template => 103909823939152778.4306+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'组分隔符是分隔整数组的字符, 例如, 用来表示千位和百万位的字符。
'||chr(10)|| '可以使用任何字符作为组分隔符。所指定的字符必须为单字节字符, 并且组分隔符不能与小数点字符相同。此字符可以为空格, 但不能为数字字符或以下字符之一:
'||chr(10)|| '小数点字符将数字的整数部分和小数部分分隔开来。
'||chr(10)|| '可以使用任何字符作为小数点字符。所指定的字符必须为单字节字符, 并且小数点字符不能与组分隔符相同。此字符可以为空格, 但不能为数字字符或以下字符之一:
'||chr(10)|| '此页可用于预览数据的加载方式。使数据库列名与数据中的列相匹配。要上载列, 请选择是或否。星号 (*) 表示必需的列。
要将数据上载到所选表, 请单击导入数据。
使用 SQL 工作室可以修改表属性, 如更改列长度, 设置非空列或更改列类型。
'; wwv_flow_api.create_page_plug ( p_id=> 3380716636263254.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 25.4306, p_plug_name=> '加载数据', p_region_name=>'', p_plug_template=> 104263607591363808.4306+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 20, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_03', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 7082409118250737.4306+ wwv_flow_api.g_id_offset, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_num_rows => 15, p_plug_query_num_rows_type => 'ROWS_X_TO_Y_OF_Z', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top" align="right"', p_plug_query_show_nulls_as => ' - ', p_plug_query_col_allignments => 'L:L:L:L:L:L:L', p_plug_query_sum_cols => '::::::', p_plug_query_number_formats => '::::::', p_plug_display_condition_type => '', p_pagination_display_position=>'BOTTOM_RIGHT', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'wwv_flow_load_data.display_etable_property ('||chr(10)|| ' p_table_owner => :F4300_P22_TABLE_OWNER,'||chr(10)|| ' p_table_name => :F4300_P22_TABLE_NAME,'||chr(10)|| ' p_collection_name => ''CSV_IMPORT'''||chr(10)|| ' );'; wwv_flow_api.create_page_plug ( p_id=> 3382431874267620.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 25.4306, p_plug_name=> '定义列映射', p_region_name=>'', p_plug_template=> 279748823389483962.4306+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 30, p_plug_display_column=> 1, p_plug_display_point=> 'AFTER_SHOW_ITEMS', p_plug_source=> s, p_plug_source_type=> 'PLSQL_PROCEDURE', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 7082409118250737.4306+ wwv_flow_api.g_id_offset, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_num_rows => 15, p_plug_query_num_rows_type => 'ROWS_X_TO_Y_OF_Z', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_query_show_nulls_as => ' - ', p_plug_query_col_allignments => 'L:L:L:L:L:L:L', p_plug_query_sum_cols => '::::::', p_plug_query_number_formats => '::::::', p_plug_display_condition_type => '', p_pagination_display_position=>'BOTTOM_RIGHT', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'List: Plain Text Data Import2'; wwv_flow_api.create_page_plug ( p_id=> 3944611767860950.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 25.4306, p_plug_name=> 'Navigation', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 40, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_01', p_plug_source=> s, p_plug_source_type=> 3934205141830584 + wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 23360325120641434.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 25.4306, p_plug_name=> 'Menu', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 1, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_08', p_plug_source=> s, p_plug_source_type=> 'M'|| to_char(6678815232629976 + wwv_flow_api.g_id_offset), p_menu_template_id=> 6680621597641306.4306+ wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / begin wwv_flow_api.create_page_button( p_id => 3747714052076259.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 25.4306, p_button_sequence=> 10, p_button_plug_id => 3379027934257020+wwv_flow_api.g_id_offset, p_button_name => 'CANCEL', p_button_image_alt=> '取消', p_button_position=> 'REGION_TEMPLATE_CLOSE', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 3749803794082687.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 25.4306, p_button_sequence=> 10, p_button_plug_id => 3379027934257020+wwv_flow_api.g_id_offset, p_button_name => 'FINISH', p_button_image_alt=> '加载数据', p_button_position=> 'REGION_TEMPLATE_CREATE', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 3748622363078595.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 25.4306, p_button_sequence=> 10, p_button_plug_id => 3379027934257020+wwv_flow_api.g_id_offset, p_button_name => 'PREVIOUS', p_button_image_alt=> '< 上一步', p_button_position=> 'REGION_TEMPLATE_PREVIOUS', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); end; / begin wwv_flow_api.create_page_branch( p_id=>3750125829082689.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 25.4306, p_branch_action=> '8', p_branch_point=> 'AFTER_PROCESSING', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>3749803794082687.4306+ wwv_flow_api.g_id_offset, p_branch_sequence=> 30, p_save_state_before_branch_yn=>'N', p_branch_comment=> ''); wwv_flow_api.create_page_branch( p_id=>3748007079076265.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 25.4306, p_branch_action=> '9', p_branch_point=> 'BEFORE_COMPUTATION', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>3747714052076259.4306+ wwv_flow_api.g_id_offset, p_branch_sequence=> 10, p_save_state_before_branch_yn=>'N', p_branch_comment=> ''); wwv_flow_api.create_page_branch( p_id=>3748901903078596.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 25.4306, p_branch_action=> '24', p_branch_point=> 'BEFORE_COMPUTATION', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>3748622363078595.4306+ wwv_flow_api.g_id_offset, p_branch_sequence=> 20, p_save_state_before_branch_yn=>'N', p_branch_comment=> ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'拥有要将数据加载到的表的方案。'; wwv_flow_api.create_page_item( p_id=>3753406349092940.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 25.4306, p_name=>'F4300_P25_TABLE_OWNER', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 10, p_item_plug_id => 3379027934257020.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'NO', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'方案:', p_source=>'F4300_P22_TABLE_OWNER', p_source_type=> 'ITEM', p_display_as=> 'DISPLAY_ONLY_HTML', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_tag_attributes => 'class="fielddatabold"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', p_field_template => 103909823939152778.4306+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'要将数据加载到的表的名称'; wwv_flow_api.create_page_item( p_id=>3754218816096550.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 25.4306, p_name=>'F4300_P25_TABLE_NAME', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 20, p_item_plug_id => 3379027934257020.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'NO', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'表名:', p_source=>'F4300_P22_TABLE_NAME', p_source_type=> 'ITEM', p_display_as=> 'DISPLAY_ONLY_ESCAPE_SC', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_tag_attributes => 'class="fielddatabold"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', p_field_template => 103909823939152778.4306+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_protection_level => 'N', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin wwv_flow_api.create_page_item( p_id=>3872807706566435.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 25.4306, p_name=>'F4300_P25_DUMMY', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 30, p_item_plug_id => 3379027934257020.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_prompt=>'Dummy', p_display_as=> 'HIDDEN', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> null, p_cAttributes=> 'nowrap="nowrap"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', p_is_persistent=> 'Y', p_item_comment => ''); end; / begin wwv_flow_api.create_page_computation( p_id=> 3874326752571910.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 25.4306, p_computation_sequence => 10, p_computation_item=> 'F4300_P25_DUMMY', p_computation_point=> 'AFTER_SUBMIT', p_computation_type=> 'FUNCTION_BODY', p_computation_processed=> 'REPLACE_EXISTING', p_computation=> 'declare'||chr(10)|| 'begin'||chr(10)|| 'for i in 1..wwv_flow.g_f04.count loop'||chr(10)|| ' wwv_flow_collection.update_member_attribute ('||chr(10)|| ' p_collection_name => ''CSV_IMPORT'','||chr(10)|| ' p_seq => wwv_flow.g_f04(i),'||chr(10)|| ' p_attr_number => 1,'||chr(10)|| ' p_attr_value => wwv_flow_utilities.remove_spaces(wwv_flow.g_f01(i))'||chr(10)|| ' );'||chr(10)|| ''||chr(10)|| ' wwv_flow_collection.update_member_attribute ('||chr(10)|| ' p_collection_name => ''CSV_IMPORT'','||chr(10)|| ' p_seq => wwv_flow.g_f04(i),'||chr(10)|| ' p_attr_number => 4,'||chr(10)|| ' p_attr_value => wwv_flow.g_f02(i)'||chr(10)|| ' );'||chr(10)|| ' '||chr(10)|| ' wwv_flow_collection.update_member_attribute ('||chr(10)|| ' p_collection_name => ''CSV_IMPORT'','||chr(10)|| ' p_seq => wwv_flow.g_f04(i),'||chr(10)|| ' p_attr_number => 6,'||chr(10)|| ' p_attr_value => wwv_flow.g_f05(i)'||chr(10)|| ' ); '||chr(10)|| 'end loop;'||chr(10)|| ''||chr(10)|| 'return ''true'';'||chr(10)|| ''||chr(10)|| 'end;', p_compute_when => '', p_compute_when_type=>''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 3758426912108293.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 25.4306, p_validation_name => 'column name not null', p_validation_sequence=> 10, p_validation => 'declare'||chr(10)|| ''||chr(10)|| ' l_null_found number := 0;'||chr(10)|| ''||chr(10)|| 'begin'||chr(10)|| ''||chr(10)|| ' for i in 1..wwv_flow.g_f01.count loop'||chr(10)|| ''||chr(10)|| ' if wwv_flow.g_f02(i)=''Y'' then'||chr(10)|| ''||chr(10)|| ' if replace(wwv_flow.g_f01(i),''%''||''null%'',null) is null then'||chr(10)|| ''||chr(10)|| ' l_null_found := l_null_found + 1;'||chr(10)|| ''||chr(10)|| ' end if;'||chr(10)|| ''||chr(10)|| ' end if;'||chr(10)|| ''||chr(10)|| ' end loop;'||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| ' if l_null_found > 0 then'||chr(10)|| ''||chr(10)|| ' return false;'||chr(10)|| ''||chr(10)|| ' else'||chr(10)|| ''||chr(10)|| ' return true;'||chr(10)|| ''||chr(10)|| ' end if;'||chr(10)|| ''||chr(10)|| 'end;', p_validation_type => 'FUNC_BODY_RETURNING_BOOLEAN', p_error_message => '列名不能为空。', p_when_button_pressed=> 3749803794082687.4306 + wwv_flow_api.g_id_offset, p_associated_item=> .4306 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 3759521849116267.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 25.4306, p_validation_name => 'at least one upload selected', p_validation_sequence=> 10, p_validation => 'declare'||chr(10)|| ''||chr(10)|| ' l_no_count number := 0;'||chr(10)|| ''||chr(10)|| 'begin'||chr(10)|| ''||chr(10)|| ' for i in 1..wwv_flow.g_f02.count loop'||chr(10)|| ''||chr(10)|| ' if wwv_flow.g_f02(i) = ''N'' then'||chr(10)|| ''||chr(10)|| ' l_no_count := l_no_count + 1;'||chr(10)|| ''||chr(10)|| ' end if;'||chr(10)|| ''||chr(10)|| ' end loop;'||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| ' if l_no_count = wwv_flow.g_f02.count then'||chr(10)|| ''||chr(10)|| ' return false;'||chr(10)|| ''||chr(10)|| ' else'||chr(10)|| ''||chr(10)|| ' return true;'||chr(10)|| ''||chr(10)|| ' end if;'||chr(10)|| ''||chr(10)|| 'end;', p_validation_type => 'FUNC_BODY_RETURNING_BOOLEAN', p_error_message => '必须至少指定一列才能上载数据。', p_when_button_pressed=> 3749803794082687.4306 + wwv_flow_api.g_id_offset, p_associated_item=> .4306 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 3762021418135076.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 25.4306, p_validation_name => 'not null columns must be loaded', p_validation_sequence=> 10, p_validation => 'declare'||chr(10)|| ''||chr(10)|| ' l_not_null_error number := 0;'||chr(10)|| ''||chr(10)|| ' l_columns varchar2(32767) := null;'||chr(10)|| ''||chr(10)|| ' l_not_null_cols varchar2(32767) := null;'||chr(10)|| ''||chr(10)|| ' l_trigger_body long;'||chr(10)|| ''||chr(10)|| 'begin'||chr(10)|| ''||chr(10)|| ' l_columns := wwv_flow_utilities.table_to_string2(wwv_flow.g_f01);'||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| ' -- get trigger body if it is before insert trigger on the selected table'||chr(10)|| ''||chr(10)|| ' for c1 in (select trigger_body'||chr(10)|| ''||chr(10)|| ' from sys.dba_triggers'||chr(10)|| ''||chr(10)|| ' where table_name = :F4300_P22_TABLE_NAME'||chr(10)|| ''||chr(10)|| ' and table_owner = :F4300_P22_TABLE_OWNER'||chr(10)|| ''||chr(10)|| ' and trigger_type like ''%BEFORE%'''||chr(10)|| ''||chr(10)|| ' and triggering_event like ''%INSERT%'')'||chr(10)|| ''||chr(10)|| ' loop'||chr(10)|| ''||chr(10)|| ' l_trigger_body := c1.trigger_body;'||chr(10)|| ''||chr(10)|| ' end loop;'||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| ' -- get all not null columns'||chr(10)|| ''||chr(10)|| ' for c1 in (select column_name'||chr(10)|| ''||chr(10)|| ' from sys.dba_tab_columns'||chr(10)|| ''||chr(10)|| ' where table_name = :F4300_P22_TABLE_NAME'||chr(10)|| ''||chr(10)|| ' and owner = :F4300_P22_TABLE_OWNER'||chr(10)|| ''||chr(10)|| ' and nullable = ''N'''||chr(10)|| ''||chr(10)|| ' ) loop'||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| ' for i in 1..wwv_flow.g_f01.count loop'||chr(10)|| ''||chr(10)|| ' -- If column names user selected is equal to not null columns,'||chr(10)|| ''||chr(10)|| ' -- user didn''t include to upload'||chr(10)|| ''||chr(10)|| ' -- and the column doesn''t have trigger, raise an error.'||chr(10)|| ''||chr(10)|| ' if (wwv_flow.g_f01(i) = c1.column_name) then'||chr(10)|| ''||chr(10)|| ' if wwv_flow.g_f02(i) = ''N'' then'||chr(10)|| ''||chr(10)|| ' if instr(nvl(UPPER(l_trigger_body),'' ''),c1.column_name) = 0 then'||chr(10)|| ''||chr(10)|| ' l_not_null_error := l_not_null_error + 1;'||chr(10)|| ''||chr(10)|| ' l_not_null_cols := l_not_null_cols||'',''||c1.column_name;'||chr(10)|| ''||chr(10)|| ' end if;'||chr(10)|| ''||chr(10)|| ' end if;'||chr(10)|| ''||chr(10)|| ' else'||chr(10)|| ''||chr(10)|| ' -- If user did not select not null columns,'||chr(10)|| ''||chr(10)|| ' -- and the column doesn''t have trigger'||chr(10)|| ''||chr(10)|| ' -- raise an error.'||chr(10)|| ''||chr(10)|| ' if instr(l_columns,c1.column_name) = 0 then'||chr(10)|| ''||chr(10)|| ' if instr(nvl(UPPER(l_trigger_body),'' ''),c1.column_name) = 0 then'||chr(10)|| ''||chr(10)|| ' l_not_null_error := l_not_null_error + 1;'||chr(10)|| ''||chr(10)|| ' l_not_null_cols := l_not_null_cols||'',''||c1.column_name;'||chr(10)|| ''||chr(10)|| ' end if;'||chr(10)|| ''||chr(10)|| ' end if;'||chr(10)|| ''||chr(10)|| ' end if;'||chr(10)|| ''||chr(10)|| ' end loop;'||chr(10)|| ''||chr(10)|| ' end loop;'||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| ' if l_not_null_error > 0 then'||chr(10)|| ''||chr(10)|| ' return false;'||chr(10)|| ''||chr(10)|| ' else'||chr(10)|| ''||chr(10)|| ' return true;'||chr(10)|| ''||chr(10)|| ' end if;'||chr(10)|| ''||chr(10)|| 'end;', p_validation_type => 'FUNC_BODY_RETURNING_BOOLEAN', p_error_message => '&F4300_P22_TABLE_OWNER..&F4300_P22_TABLE_NAME. 中存在“非空”列。请选择在无错误的情况下上载数据。', p_when_button_pressed=> 3749803794082687.4306 + wwv_flow_api.g_id_offset, p_associated_item=> .4306 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 3804414642293989.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 25.4306, p_validation_name => 'duplicate column names', p_validation_sequence=> 10, p_validation => 'declare'||chr(10)|| ' l_col varchar2(32767) := null;'||chr(10)|| ' l_duplicate boolean := true;'||chr(10)|| 'begin'||chr(10)|| ' for i in 1..wwv_flow.g_f01.count loop'||chr(10)|| ' -- if column selected is to be uploaded, check for duplicate column selection'||chr(10)|| ' if wwv_flow.g_f02(i) = ''Y'' then'||chr(10)|| ' if instr(nvl(l_col,'' ''), ('':'' || wwv_flow.g_f01(i) || '':'')) > 0 then'||chr(10)|| ' l_duplicate := false;'||chr(10)|| ' end if;'||chr(10)|| ' if i > 1 then'||chr(10)|| ' l_col := l_col || wwv_flow.g_f01(i) || '':'';'||chr(10)|| ' else'||chr(10)|| ' l_col := '':'' || wwv_flow.g_f01(i) || '':'' ;'||chr(10)|| ' end if;'||chr(10)|| ' end if;'||chr(10)|| ' end loop;'||chr(10)|| ' return l_duplicate;'||chr(10)|| 'end;', p_validation_type => 'FUNC_BODY_RETURNING_BOOLEAN', p_error_message => '选择了重复的列名。', p_when_button_pressed=> 3749803794082687.4306 + wwv_flow_api.g_id_offset, p_associated_item=> .4306 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin declare p varchar2(32767) := null; l_clob clob; l_length number := 1; begin p:=p||'declare'||chr(10)|| ' l_file_id number := 0;'||chr(10)|| ' l_first_row_is_col_name boolean := false;'||chr(10)|| ' l_cnames wwv_flow_global.vc_arr2;'||chr(10)|| ' --'||chr(10)|| ' l_data_types wwv_flow_global.vc_arr2;'||chr(10)|| ' l_parsed_data_format wwv_flow_global.vc_arr2;'||chr(10)|| ' j pls_integer := 0;'||chr(10)|| 'begin'||chr(10)|| ' select id'||chr(10)|| ' into l_file_id'||chr(10)|| ' from wwv_flow_file_objects$'||chr(10)|| ' where name = :F4300_P22_FILE;'||chr(10)|| ''||chr(10)|| ' i'; p:=p||'f :F4300_P22_IS_COLUMN_NAME = ''Y'' then'||chr(10)|| ' l_first_row_is_col_name := true;'||chr(10)|| ' end if;'||chr(10)|| ''||chr(10)|| ' for i in 1..wwv_flow.g_f01.count loop'||chr(10)|| ' l_cnames(i) := wwv_flow.g_f01(i);'||chr(10)|| ' '||chr(10)|| ' for c1 in (select data_type'||chr(10)|| ' from sys.dba_tab_columns'||chr(10)|| ' where owner = :F4300_P22_TABLE_OWNER'||chr(10)|| ' and table_name = :F4300_P22_TABLE_NAME'||chr(10)|| ' and column_name = wwv_flow.g_f01(i)'||chr(10)|| ' '; p:=p||' order by column_id)'||chr(10)|| ' loop'||chr(10)|| ' l_data_types(i) := c1.data_type; '||chr(10)|| ' end loop; '||chr(10)|| ' end loop;'||chr(10)|| ' '||chr(10)|| ' for c in (select * '||chr(10)|| ' from wwv_flow_collections '||chr(10)|| ' where collection_name=''CSV_IMPORT'') loop'||chr(10)|| ' j := j + 1; '||chr(10)|| ' l_parsed_data_format(j) := c.c027; '||chr(10)|| ' end loop;'||chr(10)|| ''||chr(10)|| ' wwv_flow_load_data.load_csv_data ('||chr(10)|| ' p_file_id => l_file_id,'||chr(10)|| ' p_cnames => l_cnam'; p:=p||'es,'||chr(10)|| ' p_upload => wwv_flow.g_f02,'||chr(10)|| ' p_schema => :F4300_P22_TABLE_OWNER,'||chr(10)|| ' p_table => :F4300_P22_TABLE_NAME,'||chr(10)|| ' p_data_type => l_data_types,'||chr(10)|| ' p_data_format => wwv_flow.g_f05,'||chr(10)|| ' p_parsed_data_format => l_parsed_data_format,'||chr(10)|| ' p_separator => lower(:F4300_P22_SEPARATOR),'||chr(10)|| ' p_enclosed_by => :F4300_P22_ENCLOSED_BY,'||chr(10)|| ' p_first_row_is_col_name => l_first_row_is_col_name,'||chr(10)|| ' p_load_t'; p:=p||'o => ''EXIST'','||chr(10)|| ' p_currency => :P24_CURRENCY,'||chr(10)|| ' p_numeric_chars => :P24_DECIMAL_CHARACTER||:P24_GROUP_SEPARATOR,'||chr(10)|| ' p_charset => :P24_FILE_CHARSET'||chr(10)|| ' );'||chr(10)|| 'end;'; wwv_flow_api.create_page_process( p_id => 3813707079395907.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id => 25.4306, p_process_sequence=> 10, p_process_point=> 'AFTER_SUBMIT', p_process_type=> 'PLSQL', p_process_name=> 'insert data', p_process_sql_clob => p, p_process_error_message=> '插入数据时出错。', p_process_when_button_id=>3749803794082687.4306 + wwv_flow_api.g_id_offset, p_process_success_message=> '', p_process_is_stateful_y_n=>'N', p_process_comment=>''); end; null; end; / begin declare p varchar2(32767) := null; l_clob clob; l_length number := 1; begin p:=p||'wwv_flow_sw_api.check_priv(:F4300_P22_TABLE_OWNER);'; wwv_flow_api.create_page_process( p_id => 122948926694597204.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id => 25.4306, p_process_sequence=> 20, p_process_point=> 'BEFORE_HEADER', p_process_type=> 'PLSQL', p_process_name=> 'security check', p_process_sql_clob => p, p_process_error_message=> '', p_process_success_message=> '', p_process_is_stateful_y_n=>'N', p_process_comment=>''); end; null; end; / begin declare p varchar2(32767) := null; l_clob clob; l_length number := 1; begin p:=p||'wwv_flow_sw_api.check_priv(:F4300_P22_TABLE_OWNER);'; wwv_flow_api.create_page_process( p_id => 122950027302616323.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id => 25.4306, p_process_sequence=> 1, p_process_point=> 'ON_SUBMIT_BEFORE_COMPUTATION', p_process_type=> 'PLSQL', p_process_name=> 'security check', p_process_sql_clob => p, p_process_error_message=> '', p_process_success_message=> '', p_process_is_stateful_y_n=>'N', p_process_comment=>''); end; null; end; / begin --------------------------------------- -- ...updatable report columns for page 25.4306 -- begin null; end; null; end; / --application/pages/page_70.43 prompt ...PAGE 70.4306: 卸载为 XML -- begin declare h varchar2(32767) := null; ph varchar2(32767) := null; begin h:=h||'AEUTL/sql_utl_exprt.htm'; ph := null; wwv_flow_api.create_page( p_id => 70.4306, p_flow_id=> wwv_flow.g_flow_id, p_tab_set=> '', p_name => '卸载为 XML', p_step_title=> '卸载为 XML', p_step_sub_title_type => 'TEXT_WITH_SUBSTITUTIONS', p_first_item=> 'AUTO_FIRST_ITEM', p_include_apex_css_js_yn=>'Y', p_autocomplete_on_off => '', p_group_id => 215731303316584395+ wwv_flow_api.g_id_offset, p_help_text => ' ', p_html_page_header => '', p_step_template => 3485606247566446.4306+ wwv_flow_api.g_id_offset, p_required_patch=> null + wwv_flow_api.g_id_offset, p_last_updated_by => '', p_last_upd_yyyymmddhh24miss => '20090409165725', p_page_is_public_y_n=> 'N', p_page_comment => ''); wwv_flow_api.set_page_help_text(p_flow_id=>wwv_flow.g_flow_id,p_flow_step_id=>70.4306,p_text=>h); end; end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 242875176989.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 70.4306, p_plug_name=> '卸载为 XML', p_region_name=>'', p_plug_template=> 103900825378122658.4306+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 10, p_plug_display_column=> 1, p_plug_display_point=> 'AFTER_SHOW_ITEMS', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 7082409118250737.4306+ wwv_flow_api.g_id_offset, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_num_rows => 15, p_plug_query_num_rows_type => 'ROWS_X_TO_Y_OF_Z', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_query_show_nulls_as => ' - ', p_plug_query_col_allignments => 'L:L:L:L:L:L:L', p_plug_query_sum_cols => '::::::', p_plug_query_number_formats => '::::::', p_plug_display_condition_type => '', p_pagination_display_position=>'BOTTOM_RIGHT', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 242882205409.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 70.4306, p_plug_name=> 'Navigation', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 30, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_01', p_plug_source=> s, p_plug_source_type=> 104417024127237376 + wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'QUERY_COLUMNS', p_plug_query_num_rows => 15, p_plug_query_num_rows_type => 'ROWS_X_TO_Y_OF_Z', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_query_show_nulls_as => '(null)', p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 6689113332667276.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 70.4306, p_plug_name=> 'Menu', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 1, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_08', p_plug_source=> s, p_plug_source_type=> 'M'|| to_char(6678815232629976 + wwv_flow_api.g_id_offset), p_menu_template_id=> 6680621597641306.4306+ wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'您可以将表的内容导出到 XML 文档。
'||chr(10)|| '选择拥有要导出的表的数据库方案。
'; wwv_flow_api.create_page_plug ( p_id=> 221193914505845456.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 70.4306, p_plug_name=> '卸载为 XML', p_region_name=>'', p_plug_template=> 104263607591363808.4306+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 40, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_03', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'QUERY_COLUMNS', p_plug_query_num_rows_type => 'NEXT_PREVIOUS_LINKS', p_plug_query_row_count_max => 500, p_plug_query_show_nulls_as => ' - ', p_plug_display_condition_type => '', p_pagination_display_position=>'BOTTOM_RIGHT', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / begin wwv_flow_api.create_page_button( p_id => 109086405456399267.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 70.4306, p_button_sequence=> 10, p_button_plug_id => 242875176989+wwv_flow_api.g_id_offset, p_button_name => 'Cancel', p_button_image_alt=> '取消', p_button_position=> 'REGION_TEMPLATE_CLOSE', p_button_alignment=> 'RIGHT', p_button_redirect_url=> 'f?p=&APP_ID.:4:&SESSION.::&DEBUG.:::', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 242885218072.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 70.4306, p_button_sequence=> 10, p_button_plug_id => 242875176989+wwv_flow_api.g_id_offset, p_button_name => 'NEXT', p_button_image_alt=> '下一步 >', p_button_position=> 'REGION_TEMPLATE_NEXT', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); end; / begin wwv_flow_api.create_page_branch( p_id=>242888218082.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 70.4306, p_branch_action=> '80', p_branch_point=> 'AFTER_PROCESSING', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>242885218072.4306+ wwv_flow_api.g_id_offset, p_branch_sequence=> 10, p_save_state_before_branch_yn=>'N', p_branch_comment=> ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'选择拥有要导出的对象的数据库方案。'; wwv_flow_api.create_page_item( p_id=>242877182288.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 70.4306, p_name=>'F4300_P70_SCHEMA', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 10, p_item_plug_id => 242875176989.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'方案', p_source=>'wwv_flow_user_api.get_default_schema', p_source_type=> 'FUNCTION', p_display_as=> 'COMBOBOX', p_named_lov=> 'LIST_SCHEMA_OWNERS', p_lov => 'select htf.escape_sc(c.schema) d, c.schema v'||chr(10)|| 'from wwv_flow_company_schemas c,'||chr(10)|| ' wwv_flow_fnd_user u'||chr(10)|| 'where c.security_group_id = :flow_security_group_id and'||chr(10)|| ' u.security_group_id = :flow_security_group_id and'||chr(10)|| ' u.user_name = :flow_user and'||chr(10)|| ' (u.ALLOW_ACCESS_TO_SCHEMAS is null or'||chr(10)|| ' instr('':''||u.ALLOW_ACCESS_TO_SCHEMAS||'':'','':''||c.schema||'':'')>0)'||chr(10)|| 'order by 1'||chr(10)|| '', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', p_field_template => 103910729134154335.4306+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_item_comment => ''); end; / begin wwv_flow_api.create_page_validation( p_id => 61175806454801075.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 70.4306, p_validation_name => 'schema not null', p_validation_sequence=> 10, p_validation => 'F4300_P70_SCHEMA', p_validation_type => 'ITEM_NOT_NULL', p_error_message => '必须指定方案。', p_when_button_pressed=> 242885218072.4306 + wwv_flow_api.g_id_offset, p_associated_item=> 242877182288.4306 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin --------------------------------------- -- ...updatable report columns for page 70.4306 -- begin null; end; null; end; / --application/pages/page_80.43 prompt ...PAGE 80.4306: 卸载为 XML -- begin declare h varchar2(32767) := null; ph varchar2(32767) := null; begin h:=h||'AEUTL/sql_utl_exprt.htm'; ph := null; wwv_flow_api.create_page( p_id => 80.4306, p_flow_id=> wwv_flow.g_flow_id, p_tab_set=> '', p_name => '卸载为 XML', p_step_title=> '卸载为 XML', p_step_sub_title_type => 'TEXT_WITH_SUBSTITUTIONS', p_first_item=> 'AUTO_FIRST_ITEM', p_include_apex_css_js_yn=>'Y', p_autocomplete_on_off => '', p_group_id => 215731303316584395+ wwv_flow_api.g_id_offset, p_help_text => ' ', p_html_page_header => '', p_step_template => 3485606247566446.4306+ wwv_flow_api.g_id_offset, p_required_patch=> null + wwv_flow_api.g_id_offset, p_last_updated_by => '', p_last_upd_yyyymmddhh24miss => '20090409165725', p_page_is_public_y_n=> 'N', p_page_comment => ''); wwv_flow_api.set_page_help_text(p_flow_id=>wwv_flow.g_flow_id,p_flow_step_id=>80.4306,p_text=>h); end; end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 242897225300.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 80.4306, p_plug_name=> '卸载为 XML', p_region_name=>'', p_plug_template=> 103900825378122658.4306+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 10, p_plug_display_column=> 1, p_plug_display_point=> 'AFTER_SHOW_ITEMS', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'QUERY_COLUMNS', p_plug_query_num_rows => 15, p_plug_query_num_rows_type => 'ROWS_X_TO_Y_OF_Z', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_query_show_nulls_as => '(null)', p_plug_display_condition_type => '', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 242901225302.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 80.4306, p_plug_name=> 'Navigation', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 30, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_01', p_plug_source=> s, p_plug_source_type=> 104417024127237376 + wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'QUERY_COLUMNS', p_plug_query_num_rows => 15, p_plug_query_num_rows_type => 'ROWS_X_TO_Y_OF_Z', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_query_show_nulls_as => '(null)', p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 6843332007762963.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 80.4306, p_plug_name=> 'Menu', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 1, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_08', p_plug_source=> s, p_plug_source_type=> 'M'|| to_char(6678815232629976 + wwv_flow_api.g_id_offset), p_menu_template_id=> 6680621597641306.4306+ wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'选择要导出到 XML 文档的数据库表。
'; wwv_flow_api.create_page_plug ( p_id=> 221200328834859088.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 80.4306, p_plug_name=> '卸载为 XML', p_region_name=>'', p_plug_template=> 104263607591363808.4306+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 40, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_03', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 7082409118250737.4306+ wwv_flow_api.g_id_offset, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_num_rows => 15, p_plug_query_num_rows_type => 'ROWS_X_TO_Y_OF_Z', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top" align="right"', p_plug_query_show_nulls_as => ' - ', p_plug_query_col_allignments => 'L:L:L:L:L:L:L', p_plug_query_sum_cols => '::::::', p_plug_query_number_formats => '::::::', p_plug_display_condition_type => '', p_pagination_display_position=>'BOTTOM_RIGHT', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / begin wwv_flow_api.create_page_button( p_id => 109094932121406894.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 80.4306, p_button_sequence=> 10, p_button_plug_id => 242897225300+wwv_flow_api.g_id_offset, p_button_name => 'Cancel', p_button_image_alt=> '取消', p_button_position=> 'REGION_TEMPLATE_CLOSE', p_button_alignment=> 'RIGHT', p_button_redirect_url=> 'f?p=&APP_ID.:4:&SESSION.::&DEBUG.:::', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 242891225267.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 80.4306, p_button_sequence=> 10, p_button_plug_id => 242897225300+wwv_flow_api.g_id_offset, p_button_name => 'NEXT', p_button_image_alt=> '下一步 >', p_button_position=> 'REGION_TEMPLATE_NEXT', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 242908248383.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 80.4306, p_button_sequence=> 5, p_button_plug_id => 242897225300+wwv_flow_api.g_id_offset, p_button_name => 'PREVIOUS', p_button_image_alt=> '< 上一步', p_button_position=> 'REGION_TEMPLATE_PREVIOUS', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); end; / begin wwv_flow_api.create_page_branch( p_id=>242893225269.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 80.4306, p_branch_action=> '90', p_branch_point=> 'AFTER_PROCESSING', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>242891225267.4306+ wwv_flow_api.g_id_offset, p_branch_sequence=> 10, p_save_state_before_branch_yn=>'N', p_branch_comment=> ''); wwv_flow_api.create_page_branch( p_id=>242911248393.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 80.4306, p_branch_action=> '70', p_branch_point=> 'BEFORE_VALIDATION', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>242908248383.4306+ wwv_flow_api.g_id_offset, p_branch_sequence=> 10, p_save_state_before_branch_yn=>'N', p_branch_comment=> ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'选择要导出为 XML 文件格式的数据库对象名称。'; wwv_flow_api.create_page_item( p_id=>242895225276.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 80.4306, p_name=>'F4300_P80_XML_EXPORT_TABLE', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 10, p_item_plug_id => 242897225300.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'表', p_source_type=> 'STATIC', p_display_as=> 'COMBOBOX', p_lov => 'select htf.escape_sc(table_name) d, table_name v'||chr(10)|| 'from sys.dba_tables'||chr(10)|| 'where owner=:F4300_P70_SCHEMA'||chr(10)|| 'and table_name not like ''BIN$%'''||chr(10)|| 'order by 1', p_lov_columns=> 1, p_lov_display_null=> 'YES', p_lov_translated=> 'N', p_lov_null_text=>'- 选择表 -', p_lov_null_value=> '', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', p_field_template => 103910729134154335.4306+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_protection_level => 'N', p_escape_on_http_input => 'Y', p_help_text => h, p_item_comment => ''); end; / begin wwv_flow_api.create_page_validation( p_id => 61178725978816213.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 80.4306, p_validation_name => 'export table not null', p_validation_sequence=> 10, p_validation => 'F4300_P80_XML_EXPORT_TABLE', p_validation_type => 'ITEM_NOT_NULL', p_error_message => '必须指定导出表。', p_when_button_pressed=> 242891225267.4306 + wwv_flow_api.g_id_offset, p_associated_item=> 242895225276.4306 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin declare p varchar2(32767) := null; l_clob clob; l_length number := 1; begin p:=p||'wwv_flow_sw_api.check_priv(:F4300_P70_SCHEMA);'; wwv_flow_api.create_page_process( p_id => 69926911444891227.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id => 80.4306, p_process_sequence=> 10, p_process_point=> 'BEFORE_HEADER', p_process_type=> 'PLSQL', p_process_name=> 'Validate Schema', p_process_sql_clob => p, p_process_error_message=> '方案无效', p_process_success_message=> '', p_process_is_stateful_y_n=>'N', p_process_comment=>''); end; null; end; / begin --------------------------------------- -- ...updatable report columns for page 80.4306 -- begin null; end; null; end; / --application/pages/page_90.43 prompt ...PAGE 90.4306: 卸载为 XML -- begin declare h varchar2(32767) := null; ph varchar2(32767) := null; begin h:=h||'AEUTL/sql_utl_exprt.htm'; ph := null; wwv_flow_api.create_page( p_id => 90.4306, p_flow_id=> wwv_flow.g_flow_id, p_tab_set=> '', p_name => '卸载为 XML', p_step_title=> '卸载为 XML', p_step_sub_title_type => 'TEXT_WITH_SUBSTITUTIONS', p_first_item=> 'AUTO_FIRST_ITEM', p_include_apex_css_js_yn=>'Y', p_autocomplete_on_off => '', p_group_id => 215731303316584395+ wwv_flow_api.g_id_offset, p_help_text => ' ', p_html_page_header => '', p_step_template => 3485606247566446.4306+ wwv_flow_api.g_id_offset, p_required_patch=> null + wwv_flow_api.g_id_offset, p_last_updated_by => '', p_last_upd_yyyymmddhh24miss => '20090409165725', p_page_is_public_y_n=> 'N', p_page_comment => ''); wwv_flow_api.set_page_help_text(p_flow_id=>wwv_flow.g_flow_id,p_flow_step_id=>90.4306,p_text=>h); end; end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 242928263721.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 90.4306, p_plug_name=> '卸载为 XML', p_region_name=>'', p_plug_template=> 103900825378122658.4306+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 10, p_plug_display_column=> 1, p_plug_display_point=> 'AFTER_SHOW_ITEMS', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'QUERY_COLUMNS', p_plug_query_num_rows => 15, p_plug_query_num_rows_type => 'ROWS_X_TO_Y_OF_Z', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_query_show_nulls_as => '(null)', p_plug_display_condition_type => '', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 242932263722.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 90.4306, p_plug_name=> 'Navigation', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 30, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_01', p_plug_source=> s, p_plug_source_type=> 104417024127237376 + wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'QUERY_COLUMNS', p_plug_query_num_rows => 15, p_plug_query_num_rows_type => 'ROWS_X_TO_Y_OF_Z', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_query_show_nulls_as => '(null)', p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 6844408589765628.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 90.4306, p_plug_name=> 'Menu', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 1, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_08', p_plug_source=> s, p_plug_source_type=> 'M'|| to_char(6678815232629976 + wwv_flow_api.g_id_offset), p_menu_template_id=> 6680621597641306.4306+ wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'选择希望成为此 XML 文档一部分的列。
'; wwv_flow_api.create_page_plug ( p_id=> 221208308449881533.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 90.4306, p_plug_name=> '卸载为 XML', p_region_name=>'', p_plug_template=> 104263607591363808.4306+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 40, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_03', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'QUERY_COLUMNS', p_plug_query_num_rows_type => 'NEXT_PREVIOUS_LINKS', p_plug_query_row_count_max => 500, p_plug_query_show_nulls_as => ' - ', p_plug_display_condition_type => '', p_pagination_display_position=>'BOTTOM_RIGHT', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / begin wwv_flow_api.create_page_button( p_id => 109103601562416983.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 90.4306, p_button_sequence=> 10, p_button_plug_id => 242928263721+wwv_flow_api.g_id_offset, p_button_name => 'Cancel', p_button_image_alt=> '取消', p_button_position=> 'REGION_TEMPLATE_CLOSE', p_button_alignment=> 'RIGHT', p_button_redirect_url=> 'f?p=&APP_ID.:4:&SESSION.::&DEBUG.:::', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 242954438477.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 90.4306, p_button_sequence=> 10, p_button_plug_id => 242928263721+wwv_flow_api.g_id_offset, p_button_name => 'EXPORTDATA', p_button_image_alt=> '卸载数据', p_button_position=> 'REGION_TEMPLATE_CREATE', p_button_alignment=> 'RIGHT', p_button_redirect_url=> 'javascript:doSubmit(''EXPORTDATA'');', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 242920263706.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 90.4306, p_button_sequence=> 5, p_button_plug_id => 242928263721+wwv_flow_api.g_id_offset, p_button_name => 'PREVIOUS', p_button_image_alt=> '< 上一步', p_button_position=> 'REGION_TEMPLATE_PREVIOUS', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); end; / begin wwv_flow_api.create_page_branch( p_id=>242922263709.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 90.4306, p_branch_action=> '90', p_branch_point=> 'AFTER_PROCESSING', p_branch_type=> 'BRANCH_TO_STEP', p_branch_sequence=> 10, p_save_state_before_branch_yn=>'N', p_branch_comment=> ''); wwv_flow_api.create_page_branch( p_id=>242924263709.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 90.4306, p_branch_action=> '80', p_branch_point=> 'BEFORE_VALIDATION', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>242920263706.4306+ wwv_flow_api.g_id_offset, p_branch_sequence=> 10, p_save_state_before_branch_yn=>'N', p_branch_comment=> ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'选择要导出到 XML 文档中的数据库对象列。'; wwv_flow_api.create_page_item( p_id=>242926263712.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 90.4306, p_name=>'F4300_P90_XML_EXPORT_COLUMNS', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 10, p_item_plug_id => 242928263721.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'列', p_source_type=> 'STATIC', p_display_as=> 'MULTIPLESELECT', p_lov => 'select htf.escape_sc(column_name) d, column_name r'||chr(10)|| ''||chr(10)|| 'from sys.dba_tab_columns'||chr(10)|| ''||chr(10)|| 'where table_name= :F4300_P80_XML_EXPORT_TABLE'||chr(10)|| ''||chr(10)|| 'and owner =:F4300_P70_SCHEMA', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 10, p_cAttributes=> 'nowrap="nowrap"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'LEFT-TOP', p_field_alignment => 'LEFT', p_field_template => 103910729134154335.4306+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_protection_level => 'N', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin wwv_flow_api.create_page_item( p_id=>73486104619415064.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 90.4306, p_name=>'P90_FILE_EXPORT', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 20, p_item_plug_id => 242928263721.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_source_type=> 'STATIC', p_display_as=> 'CHECKBOX', p_named_lov=> 'EXPORT.AS.FILE.Y', p_lov => '.'||to_char(87944005995777613 + wwv_flow_api.g_id_offset)||'.', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_tag_attributes2=> 'class="fielddata"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', p_field_template => 103909823939152778.4306+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_item_comment => ''); end; / declare h varchar2(32767) := null; begin wwv_flow_api.create_page_item( p_id=>196679827776339627.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 90.4306, p_name=>'P90_X', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 30, p_item_plug_id => 242928263721.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_display_as=> 'STOP_AND_START_HTML_TABLE', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> null, p_cAttributes=> 'nowrap="nowrap"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', p_field_template => 103909823939152778.4306+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'输入 SQL WHERE 子句限制选择的行。例如:'||chr(10)|| ''||chr(10)|| 'DEPTNO = 10'||chr(10)|| ''; wwv_flow_api.create_page_item( p_id=>196680604705342464.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 90.4306, p_name=>'P90_WHERE_CLAUSE', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 40, p_item_plug_id => 242928263721.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'Where 子句', p_source_type=> 'STATIC', p_display_as=> 'TEXTAREA', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 60, p_cMaxlength=> 4000, p_cHeight=> 5, p_cAttributes=> 'nowrap="nowrap"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'ABOVE', p_field_alignment => 'LEFT', p_field_template => 103909823939152778.4306+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_protection_level => 'N', p_help_text => h, p_item_comment => ''); end; / begin wwv_flow_api.create_page_computation( p_id=> 241192503550535804.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 90.4306, p_computation_sequence => 10, p_computation_item=> 'P90_WHERE_CLAUSE', p_computation_point=> 'AFTER_SUBMIT', p_computation_type=> 'FUNCTION_BODY', p_computation_processed=> 'REPLACE_EXISTING', p_computation=> 'declare '||chr(10)|| ' w varchar2(30000);'||chr(10)|| 'begin'||chr(10)|| ' w := :p90_where_clause;'||chr(10)|| ' for i in 1..10 loop'||chr(10)|| ' w := rtrim(rtrim(rtrim(trim(w),'';/ ''),chr(10)),chr(13));'||chr(10)|| ' end loop;'||chr(10)|| ' return w;'||chr(10)|| 'end;', p_compute_when => '', p_compute_when_type=>''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 61180608448820628.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 90.4306, p_validation_name => 'export cols not null', p_validation_sequence=> 10, p_validation => 'F4300_P90_XML_EXPORT_COLUMNS', p_validation_type => 'ITEM_NOT_NULL', p_error_message => '必须指定导出列。', p_when_button_pressed=> 242954438477.4306 + wwv_flow_api.g_id_offset, p_associated_item=> 242926263712.4306 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 99812303853555653.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 90.4306, p_validation_name => 'no row exists', p_validation_sequence=> 20, p_validation => 'declare'||chr(10)|| ' l_cnt number := 0; '||chr(10)|| ' l_sql varchar2(32767) := null;'||chr(10)|| 'begin '||chr(10)|| ' l_sql := ''select count(*) from "''||:F4300_P80_XML_EXPORT_TABLE||''"'';'||chr(10)|| ' '||chr(10)|| ' l_cnt := wwv_flow_f4000_util.select_num (p_sql => l_sql, p_user => :F4300_P70_SCHEMA);'||chr(10)|| ' '||chr(10)|| ' if l_cnt = 0 then'||chr(10)|| ' return false;'||chr(10)|| ' else'||chr(10)|| ' return true;'||chr(10)|| ' end if;'||chr(10)|| 'end;', p_validation_type => 'FUNC_BODY_RETURNING_BOOLEAN', p_error_message => '所选表没有要导出的记录。请先用数据填充此表, 然后再执行导出。', p_when_button_pressed=> 242954438477.4306 + wwv_flow_api.g_id_offset, p_associated_item=> .4306 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin declare p varchar2(32767) := null; l_clob clob; l_length number := 1; begin p:=p||'declare'||chr(10)|| ' xml_cols wwv_flow_global.vc_arr2;'||chr(10)|| 'begin'||chr(10)|| ' insert into wwv_flow_data_load_unload (DATA_TYPE, DATA_SCHEMA, DATA_TABLE)'||chr(10)|| ' values'||chr(10)|| ' (''XML EXPORT'', :F4300_P70_SCHEMA, :F4300_P80_XML_EXPORT_TABLE);'||chr(10)|| ' '||chr(10)|| ' --'||chr(10)|| ' -- if XML file export, define mime header'||chr(10)|| ' --'||chr(10)|| ' wwv_flow_init_htp_buffer;'||chr(10)|| ' wwv_flow.g_page_text_generated := true;'||chr(10)|| ' wwv_flow.g_unrecoverable_error := true;'||chr(10)|| ' owa_util.mime_heade'; p:=p||'r (''text/xml'',false, ''utf-8''); '||chr(10)|| ' if :P90_FILE_EXPORT = ''Y'' then'||chr(10)|| ' htp.p(''Content-Disposition: attachment; filename=''|| wwv_flow_utilities.escape_url( p_url => lower(:F4300_P80_XML_EXPORT_TABLE), p_url_charset => ''utf-8'')||''.xml'');'||chr(10)|| ' else'||chr(10)|| ' htp.p(''Content-Disposition: inline '' );'||chr(10)|| ' end if;'||chr(10)|| ' owa_util.http_header_close;'||chr(10)|| ''||chr(10)|| ' xml_cols:= wwv_flow_utilities.string_to_table2(:F4300_P90_XML_EXPORT_CO'; p:=p||'LUMNS);'||chr(10)|| ' '||chr(10)|| ' wwv_flow_dataload_xml.GETQUERYXMLPAGE (p_schema=>:F4300_P70_SCHEMA, '||chr(10)|| ' p_table=>:F4300_P80_XML_EXPORT_TABLE, '||chr(10)|| ' p_columns=> xml_cols,'||chr(10)|| ' p_where => :P90_WHERE_CLAUSE ); '||chr(10)|| 'end;'; wwv_flow_api.create_page_process( p_id => 242990422910.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id => 90.4306, p_process_sequence=> 10, p_process_point=> 'AFTER_SUBMIT', p_process_type=> 'PLSQL', p_process_name=> 'start_xml_download', p_process_sql_clob => p, p_process_error_message=> '', p_process_when_button_id=>242954438477.4306 + wwv_flow_api.g_id_offset, p_process_success_message=> '', p_process_is_stateful_y_n=>'N', p_process_comment=>''); end; null; end; / begin declare p varchar2(32767) := null; l_clob clob; l_length number := 1; begin p:=p||'wwv_flow_sw_api.check_priv(:F4300_P70_SCHEMA);'; wwv_flow_api.create_page_process( p_id => 122998032132816447.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id => 90.4306, p_process_sequence=> 1, p_process_point=> 'BEFORE_HEADER', p_process_type=> 'PLSQL', p_process_name=> 'validate schema', p_process_sql_clob => p, p_process_error_message=> '', p_process_success_message=> '', p_process_is_stateful_y_n=>'N', p_process_comment=>''); end; null; end; / begin declare p varchar2(32767) := null; l_clob clob; l_length number := 1; begin p:=p||'wwv_flow_sw_api.check_priv(:F4300_P70_SCHEMA);'; wwv_flow_api.create_page_process( p_id => 122999317371821648.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id => 90.4306, p_process_sequence=> 20, p_process_point=> 'ON_SUBMIT_BEFORE_COMPUTATION', p_process_type=> 'PLSQL', p_process_name=> 'validate schema', p_process_sql_clob => p, p_process_error_message=> '', p_process_success_message=> '', p_process_is_stateful_y_n=>'N', p_process_comment=>''); end; null; end; / begin --------------------------------------- -- ...updatable report columns for page 90.4306 -- begin null; end; null; end; / --application/pages/page_150.4 prompt ...PAGE 150.4306: 卸载为文本 -- begin declare h varchar2(32767) := null; ph varchar2(32767) := null; begin h:=h||'AEUTL/sql_utl_exprt.htm'; ph := null; wwv_flow_api.create_page( p_id => 150.4306, p_flow_id=> wwv_flow.g_flow_id, p_tab_set=> '', p_name => '卸载为文本', p_step_title=> '卸载为文本', p_step_sub_title_type => 'TEXT_WITH_SUBSTITUTIONS', p_first_item=> 'AUTO_FIRST_ITEM', p_include_apex_css_js_yn=>'Y', p_autocomplete_on_off => '', p_group_id => 215731706086585147+ wwv_flow_api.g_id_offset, p_help_text => ' ', p_html_page_header => '', p_step_template => 3485606247566446.4306+ wwv_flow_api.g_id_offset, p_required_patch=> null + wwv_flow_api.g_id_offset, p_last_updated_by => '', p_last_upd_yyyymmddhh24miss => '20090409165725', p_page_is_public_y_n=> 'N', p_page_comment => ''); wwv_flow_api.set_page_help_text(p_flow_id=>wwv_flow.g_flow_id,p_flow_step_id=>150.4306,p_text=>h); end; end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 6690319912669219.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 150.4306, p_plug_name=> 'Menu', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 1, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_08', p_plug_source=> s, p_plug_source_type=> 'M'|| to_char(6678815232629976 + wwv_flow_api.g_id_offset), p_menu_template_id=> 6680621597641306.4306+ wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 27155313458825518.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 150.4306, p_plug_name=> '卸载为文本', p_region_name=>'', p_plug_template=> 103900825378122658.4306+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 10, p_plug_display_column=> 1, p_plug_display_point=> 'AFTER_SHOW_ITEMS', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 7082409118250737.4306+ wwv_flow_api.g_id_offset, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_num_rows => 15, p_plug_query_num_rows_type => 'ROWS_X_TO_Y_OF_Z', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_query_show_nulls_as => ' - ', p_plug_query_col_allignments => 'L:L:L:L:L:L:L', p_plug_query_sum_cols => '::::::', p_plug_query_number_formats => '::::::', p_plug_display_condition_type => '', p_pagination_display_position=>'BOTTOM_RIGHT', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 27155716362825519.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 150.4306, p_plug_name=> 'Navigation', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 30, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_01', p_plug_source=> s, p_plug_source_type=> 104358211508848205 + wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'QUERY_COLUMNS', p_plug_query_num_rows => 15, p_plug_query_num_rows_type => 'ROWS_X_TO_Y_OF_Z', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_query_show_nulls_as => '(null)', p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'
您可以将表的内容卸载到结构化文本文件。例如, 可以将整个表导出到逗号分隔的文件 (.CSV)。
'||chr(10)|| '选择拥有要卸载为文本的表的数据库方案。
'; wwv_flow_api.create_page_plug ( p_id=> 220843108075654305.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 150.4306, p_plug_name=> '卸载为文本', p_region_name=>'', p_plug_template=> 104263607591363808.4306+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 40, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_03', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_plug_display_error_message=> 'Unable to display page region #SQLERRM#', p_plug_query_row_template=> 7082409118250737.4306+ wwv_flow_api.g_id_offset, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_num_rows => 15, p_plug_query_num_rows_type => 'ROWS_X_TO_Y_OF_Z', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top" align="right"', p_plug_query_show_nulls_as => ' - ', p_plug_query_col_allignments => 'L:L:L:L:L:L:L', p_plug_query_sum_cols => '::::::', p_plug_query_number_formats => '::::::', p_plug_display_condition_type => '', p_pagination_display_position=>'BOTTOM_RIGHT', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> 'Region generated 20-SEP-2002 14:00:18'); end; / begin wwv_flow_api.create_page_button( p_id => 109061621685375483.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 150.4306, p_button_sequence=> 10, p_button_plug_id => 27155313458825518+wwv_flow_api.g_id_offset, p_button_name => 'Cancel', p_button_image_alt=> '取消', p_button_position=> 'REGION_TEMPLATE_CLOSE', p_button_alignment=> 'RIGHT', p_button_redirect_url=> 'f?p=&APP_ID.:4:&SESSION.::&DEBUG.:::', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 27154700232825500.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 150.4306, p_button_sequence=> 10, p_button_plug_id => 27155313458825518+wwv_flow_api.g_id_offset, p_button_name => 'NEXT', p_button_image_alt=> '下一步 >', p_button_position=> 'REGION_TEMPLATE_NEXT', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); end; / begin wwv_flow_api.create_page_branch( p_id=>27154924917825505.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 150.4306, p_branch_action=> '160', p_branch_point=> 'AFTER_PROCESSING', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>27154700232825500.4306+ wwv_flow_api.g_id_offset, p_branch_sequence=> 10, p_save_state_before_branch_yn=>'N', p_branch_comment=> ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'选择拥有要导出的对象的数据库方案。'; wwv_flow_api.create_page_item( p_id=>27155123411825508.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 150.4306, p_name=>'F4300_P150_SCHEMA', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 10, p_item_plug_id => 27155313458825518.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'方案', p_source=>'wwv_flow_user_api.get_default_schema', p_source_type=> 'FUNCTION', p_display_as=> 'COMBOBOX', p_named_lov=> 'LIST_SCHEMA_OWNERS', p_lov => 'select htf.escape_sc(c.schema) d, c.schema v'||chr(10)|| 'from wwv_flow_company_schemas c,'||chr(10)|| ' wwv_flow_fnd_user u'||chr(10)|| 'where c.security_group_id = :flow_security_group_id and'||chr(10)|| ' u.security_group_id = :flow_security_group_id and'||chr(10)|| ' u.user_name = :flow_user and'||chr(10)|| ' (u.ALLOW_ACCESS_TO_SCHEMAS is null or'||chr(10)|| ' instr('':''||u.ALLOW_ACCESS_TO_SCHEMAS||'':'','':''||c.schema||'':'')>0)'||chr(10)|| 'order by 1'||chr(10)|| '', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', p_field_template => 103910729134154335.4306+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_item_comment => ''); end; / begin wwv_flow_api.create_page_validation( p_id => 65600608761173558.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 150.4306, p_validation_name => 'schema not null', p_validation_sequence=> 10, p_validation => 'F4300_P150_SCHEMA', p_validation_type => 'ITEM_NOT_NULL', p_error_message => '必须指定方案。', p_when_button_pressed=> 27154700232825500.4306 + wwv_flow_api.g_id_offset, p_associated_item=> 27155123411825508.4306 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin --------------------------------------- -- ...updatable report columns for page 150.4306 -- begin null; end; null; end; / --application/pages/page_160.4 prompt ...PAGE 160.4306: 卸载为文本 -- begin declare h varchar2(32767) := null; ph varchar2(32767) := null; begin h:=h||'AEUTL/sql_utl_exprt.htm'; ph := null; wwv_flow_api.create_page( p_id => 160.4306, p_flow_id=> wwv_flow.g_flow_id, p_tab_set=> '', p_name => '卸载为文本', p_step_title=> '卸载为文本', p_step_sub_title_type => 'TEXT_WITH_SUBSTITUTIONS', p_first_item=> 'AUTO_FIRST_ITEM', p_include_apex_css_js_yn=>'Y', p_autocomplete_on_off => '', p_group_id => 215731706086585147+ wwv_flow_api.g_id_offset, p_help_text => ' ', p_html_page_header => '', p_step_template => 3485606247566446.4306+ wwv_flow_api.g_id_offset, p_required_patch=> null + wwv_flow_api.g_id_offset, p_last_updated_by => '', p_last_upd_yyyymmddhh24miss => '20090409165725', p_page_is_public_y_n=> 'N', p_page_comment => ''); wwv_flow_api.set_page_help_text(p_flow_id=>wwv_flow.g_flow_id,p_flow_step_id=>160.4306,p_text=>h); end; end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 6846024866770273.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 160.4306, p_plug_name=> 'Menu', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 1, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_08', p_plug_source=> s, p_plug_source_type=> 'M'|| to_char(6678815232629976 + wwv_flow_api.g_id_offset), p_menu_template_id=> 6680621597641306.4306+ wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 27157828903849867.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 160.4306, p_plug_name=> '卸载为文本', p_region_name=>'', p_plug_template=> 103900825378122658.4306+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 10, p_plug_display_column=> 1, p_plug_display_point=> 'AFTER_SHOW_ITEMS', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 7082409118250737.4306+ wwv_flow_api.g_id_offset, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_num_rows => 15, p_plug_query_num_rows_type => 'ROWS_X_TO_Y_OF_Z', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_query_show_nulls_as => ' - ', p_plug_query_col_allignments => 'L:L:L:L:L:L:L', p_plug_query_sum_cols => '::::::', p_plug_query_number_formats => '::::::', p_plug_display_condition_type => '', p_pagination_display_position=>'BOTTOM_RIGHT', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 27158200800849869.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 160.4306, p_plug_name=> 'Navigation', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 30, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_01', p_plug_source=> s, p_plug_source_type=> 104358211508848205 + wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'QUERY_COLUMNS', p_plug_query_num_rows => 15, p_plug_query_num_rows_type => 'ROWS_X_TO_Y_OF_Z', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_query_show_nulls_as => '(null)', p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'选择希望卸载为纯文本格式的数据库表。
'; wwv_flow_api.create_page_plug ( p_id=> 220882616789760954.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 160.4306, p_plug_name=> '卸载为文本', p_region_name=>'', p_plug_template=> 104263607591363808.4306+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 40, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_03', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 7082409118250737.4306+ wwv_flow_api.g_id_offset, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_num_rows => 15, p_plug_query_num_rows_type => 'ROWS_X_TO_Y_OF_Z', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top" align="right"', p_plug_query_show_nulls_as => ' - ', p_plug_query_col_allignments => 'L:L:L:L:L:L:L', p_plug_query_sum_cols => '::::::', p_plug_query_number_formats => '::::::', p_plug_display_condition_type => '', p_pagination_display_position=>'BOTTOM_RIGHT', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / begin wwv_flow_api.create_page_button( p_id => 109067307618380928.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 160.4306, p_button_sequence=> 10, p_button_plug_id => 27157828903849867+wwv_flow_api.g_id_offset, p_button_name => 'Cancel', p_button_image_alt=> '取消', p_button_position=> 'REGION_TEMPLATE_CLOSE', p_button_alignment=> 'RIGHT', p_button_redirect_url=> 'f?p=&APP_ID.:4:&SESSION.::&DEBUG.:::', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 27156823847849862.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 160.4306, p_button_sequence=> 10, p_button_plug_id => 27157828903849867+wwv_flow_api.g_id_offset, p_button_name => 'NEXT', p_button_image_alt=> '下一步 >', p_button_position=> 'REGION_TEMPLATE_NEXT', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 27157022916849863.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 160.4306, p_button_sequence=> 5, p_button_plug_id => 27157828903849867+wwv_flow_api.g_id_offset, p_button_name => 'PREVIOUS', p_button_image_alt=> '< 上一步', p_button_position=> 'REGION_TEMPLATE_PREVIOUS', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); end; / begin wwv_flow_api.create_page_branch( p_id=>27157426106849865.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 160.4306, p_branch_action=> '170', p_branch_point=> 'AFTER_PROCESSING', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>27156823847849862.4306+ wwv_flow_api.g_id_offset, p_branch_sequence=> 10, p_save_state_before_branch_yn=>'N', p_branch_comment=> ''); wwv_flow_api.create_page_branch( p_id=>27157223607849864.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 160.4306, p_branch_action=> '150', p_branch_point=> 'BEFORE_VALIDATION', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>27157022916849863.4306+ wwv_flow_api.g_id_offset, p_branch_sequence=> 10, p_save_state_before_branch_yn=>'N', p_branch_comment=> ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'选择要导出为纯文本格式的数据库表。'; wwv_flow_api.create_page_item( p_id=>27157619740849866.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 160.4306, p_name=>'F4300_P160_ASC_EXPORT_TABLE', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 10, p_item_plug_id => 27157828903849867.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'表', p_source_type=> 'STATIC', p_display_as=> 'COMBOBOX', p_lov => 'select htf.escape_sc(table_name) a, table_name b'||chr(10)|| 'from sys.dba_tables'||chr(10)|| 'where owner=:F4300_P150_SCHEMA'||chr(10)|| 'and table_name not like ''BIN$%'''||chr(10)|| 'order by table_name', p_lov_columns=> 1, p_lov_display_null=> 'YES', p_lov_translated=> 'N', p_lov_null_text=>'- 选择表 -', p_lov_null_value=> '', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', p_field_template => 103910729134154335.4306+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_protection_level => 'N', p_help_text => h, p_item_comment => ''); end; / begin wwv_flow_api.create_page_validation( p_id => 65603025384178278.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 160.4306, p_validation_name => 'export table not null', p_validation_sequence=> 10, p_validation => 'F4300_P160_ASC_EXPORT_TABLE', p_validation_type => 'ITEM_NOT_NULL', p_error_message => '必须指定导出表。', p_when_button_pressed=> 27156823847849862.4306 + wwv_flow_api.g_id_offset, p_associated_item=> 27157619740849866.4306 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin declare p varchar2(32767) := null; l_clob clob; l_length number := 1; begin p:=p||'wwv_flow_sw_api.check_priv(:F4300_P150_SCHEMA);'; wwv_flow_api.create_page_process( p_id => 69925124126885447.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id => 160.4306, p_process_sequence=> 10, p_process_point=> 'BEFORE_HEADER', p_process_type=> 'PLSQL', p_process_name=> 'Validate Schema', p_process_sql_clob => p, p_process_error_message=> '方案无效', p_process_success_message=> '', p_process_is_stateful_y_n=>'N', p_process_comment=>''); end; null; end; / begin --------------------------------------- -- ...updatable report columns for page 160.4306 -- begin null; end; null; end; / --application/pages/page_170.4 prompt ...PAGE 170.4306: 卸载为文本 -- begin declare h varchar2(32767) := null; ph varchar2(32767) := null; begin h:=h||'AEUTL/sql_utl_exprt.htm'; ph := null; wwv_flow_api.create_page( p_id => 170.4306, p_flow_id=> wwv_flow.g_flow_id, p_tab_set=> '', p_name => '卸载为文本', p_step_title=> '卸载为文本', p_step_sub_title_type => 'TEXT_WITH_SUBSTITUTIONS', p_first_item=> 'AUTO_FIRST_ITEM', p_include_apex_css_js_yn=>'Y', p_autocomplete_on_off => '', p_group_id => 215731706086585147+ wwv_flow_api.g_id_offset, p_help_text => ' ', p_html_page_header => '', p_step_template => 3485606247566446.4306+ wwv_flow_api.g_id_offset, p_required_patch=> null + wwv_flow_api.g_id_offset, p_last_updated_by => '', p_last_upd_yyyymmddhh24miss => '20090409165725', p_page_is_public_y_n=> 'N', p_page_comment => ''); wwv_flow_api.set_page_help_text(p_flow_id=>wwv_flow.g_flow_id,p_flow_step_id=>170.4306,p_text=>h); end; end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 6847402487773366.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 170.4306, p_plug_name=> 'Menu', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 1, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_08', p_plug_source=> s, p_plug_source_type=> 'M'|| to_char(6678815232629976 + wwv_flow_api.g_id_offset), p_menu_template_id=> 6680621597641306.4306+ wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 27161124048881816.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 170.4306, p_plug_name=> '卸载为文本', p_region_name=>'', p_plug_template=> 103900825378122658.4306+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 10, p_plug_display_column=> 1, p_plug_display_point=> 'AFTER_SHOW_ITEMS', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'QUERY_COLUMNS', p_plug_query_num_rows => 15, p_plug_query_num_rows_type => 'ROWS_X_TO_Y_OF_Z', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_query_show_nulls_as => '(null)', p_plug_display_condition_type => '', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 27161504570881817.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 170.4306, p_plug_name=> 'Navigation', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 30, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_01', p_plug_source=> s, p_plug_source_type=> 104358211508848205 + wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'QUERY_COLUMNS', p_plug_query_num_rows => 15, p_plug_query_num_rows_type => 'ROWS_X_TO_Y_OF_Z', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_query_show_nulls_as => '(null)', p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'select owner, '||chr(10)|| 'table_name, '||chr(10)|| 'column_name,'||chr(10)|| 'data_type'||chr(10)|| 'from sys.dba_tab_columns'||chr(10)|| 'where owner = :F4300_P150_SCHEMA'||chr(10)|| 'and table_name = :F4300_P160_ASC_EXPORT_TABLE'||chr(10)|| 'and data_type in (''SDO_GEOMETRY'',''BLOB'',''BFILE'',''ORDAUDIO'',''ORDIMAGE'',''ORDIMAGESIGNATURE'',''ORDVIDEO'',''ORDDOC'',''URITYPE'',''DBURITYPE'',''XDBURITYPE'',''HTTPURITYPE'',''XMLTYPE'')'; wwv_flow_api.create_report_region ( p_id=> 57290213471124955.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 170.4306, p_name=> '无法卸载的列', p_region_name=>'', p_template=> 21175625245088699.4306+ wwv_flow_api.g_id_offset, p_display_sequence=> 50, p_display_column=> 1, p_display_point=> 'AFTER_SHOW_ITEMS', p_source=> s, p_source_type=> 'SQL_QUERY', p_display_error_message=> '#SQLERRM#', p_display_when_condition=> 'select 1'||chr(10)|| 'from sys.dba_tab_columns'||chr(10)|| 'where owner = :F4300_P150_SCHEMA'||chr(10)|| 'and table_name = :F4300_P160_ASC_EXPORT_TABLE'||chr(10)|| 'and data_type in (''SDO_GEOMETRY'',''BLOB'',''BFILE'',''ORDAUDIO'',''ORDIMAGE'',''ORDIMAGESIGNATURE'',''ORDVIDEO'',''ORDDOC'',''URITYPE'',''DBURITYPE'',''XDBURITYPE'',''HTTPURITYPE'',''XMLTYPE'')', p_display_condition_type=> 'EXISTS', p_plug_caching=> 'NOT_CACHED', p_customized=> '0', p_query_row_template=> 10583525904875984.4306+ wwv_flow_api.g_id_offset, p_query_headings_type=> 'COLON_DELMITED_LIST', p_query_num_rows=> '500', p_query_options=> 'DERIVED_REPORT_COLUMNS', p_query_show_nulls_as=> ' - ', p_query_break_cols=> '1:2', p_query_no_data_found=> '未找到任何数据。', p_query_num_rows_type=> 'NEXT_PREVIOUS_LINKS', p_query_row_count_max=> '500', p_pagination_display_position=> 'BOTTOM_RIGHT', p_break_type_flag=> 'DEFAULT_BREAK_FORMATTING', p_csv_output=> 'N', p_query_asc_image=> 'arrow_down_gray_dark.gif', p_query_asc_image_attr=> 'width="13" height="12"', p_query_desc_image=> 'arrow_up_gray_dark.gif', p_query_desc_image_attr=> 'width="13" height="12"', p_plug_query_strip_html=> 'Y', p_comment=>''); end; / declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=> 57290511758124966.4306 + wwv_flow_api.g_id_offset, p_region_id=> 57290213471124955.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_query_column_id=> 1, p_form_element_id=> null, p_column_alias=> 'OWNER', p_column_display_sequence=> 1, p_column_heading=> '方案', p_column_alignment=>'LEFT', p_heading_alignment=>'LEFT', p_default_sort_column_sequence=>0, p_disable_sort_column=>'Y', p_sum_column=> 'N', p_hidden_column=> 'N', p_display_as=>'WITHOUT_MODIFICATION', p_pk_col_source=> s, p_column_comment=>''); end; / declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=> 57290602602124966.4306 + wwv_flow_api.g_id_offset, p_region_id=> 57290213471124955.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_query_column_id=> 2, p_form_element_id=> null, p_column_alias=> 'TABLE_NAME', p_column_display_sequence=> 2, p_column_heading=> '表', p_column_alignment=>'LEFT', p_heading_alignment=>'LEFT', p_default_sort_column_sequence=>0, p_disable_sort_column=>'Y', p_sum_column=> 'N', p_hidden_column=> 'N', p_display_as=>'WITHOUT_MODIFICATION', p_pk_col_source=> s, p_column_comment=>''); end; / declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=> 57290722093124966.4306 + wwv_flow_api.g_id_offset, p_region_id=> 57290213471124955.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_query_column_id=> 3, p_form_element_id=> null, p_column_alias=> 'COLUMN_NAME', p_column_display_sequence=> 3, p_column_heading=> '列', p_column_alignment=>'LEFT', p_heading_alignment=>'LEFT', p_default_sort_column_sequence=>0, p_disable_sort_column=>'Y', p_sum_column=> 'N', p_hidden_column=> 'N', p_display_as=>'WITHOUT_MODIFICATION', p_pk_col_source=> s, p_column_comment=>''); end; / declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=> 57312503868178994.4306 + wwv_flow_api.g_id_offset, p_region_id=> 57290213471124955.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_query_column_id=> 4, p_form_element_id=> null, p_column_alias=> 'DATA_TYPE', p_column_display_sequence=> 4, p_column_heading=> '数据类型', p_column_alignment=>'LEFT', p_heading_alignment=>'LEFT', p_default_sort_column_sequence=>0, p_disable_sort_column=>'Y', p_sum_column=> 'N', p_hidden_column=> 'N', p_display_as=>'WITHOUT_MODIFICATION', p_pk_col_source=> s, p_column_comment=>''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'选择希望成为此纯文本文件一部分的列。仅支持卸载除 BLOB 和 BFILE 之外的 Oracle 内置数据类型。
'; wwv_flow_api.create_page_plug ( p_id=> 220892315450788979.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 170.4306, p_plug_name=> '卸载为文本', p_region_name=>'', p_plug_template=> 104263607591363808.4306+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 40, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_03', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'QUERY_COLUMNS', p_plug_query_num_rows_type => 'NEXT_PREVIOUS_LINKS', p_plug_query_row_count_max => 500, p_plug_query_show_nulls_as => ' - ', p_plug_display_condition_type => '', p_pagination_display_position=>'BOTTOM_RIGHT', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / begin wwv_flow_api.create_page_button( p_id => 109074823894385635.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 170.4306, p_button_sequence=> 10, p_button_plug_id => 27161124048881816+wwv_flow_api.g_id_offset, p_button_name => 'Cancel', p_button_image_alt=> '取消', p_button_position=> 'REGION_TEMPLATE_CLOSE', p_button_alignment=> 'RIGHT', p_button_redirect_url=> 'f?p=&APP_ID.:4:&SESSION.::&DEBUG.:::', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 27159721723881807.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 170.4306, p_button_sequence=> 10, p_button_plug_id => 27161124048881816+wwv_flow_api.g_id_offset, p_button_name => 'NEXT', p_button_image_alt=> '下一步 >', p_button_position=> 'REGION_TEMPLATE_NEXT', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 27159912210881808.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 170.4306, p_button_sequence=> 5, p_button_plug_id => 27161124048881816+wwv_flow_api.g_id_offset, p_button_name => 'PREVIOUS', p_button_image_alt=> '< 上一步', p_button_position=> 'REGION_TEMPLATE_PREVIOUS', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); end; / begin wwv_flow_api.create_page_branch( p_id=>27160330589881809.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 170.4306, p_branch_action=> '180', p_branch_point=> 'AFTER_PROCESSING', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>27159721723881807.4306+ wwv_flow_api.g_id_offset, p_branch_sequence=> 10, p_save_state_before_branch_yn=>'N', p_branch_comment=> ''); wwv_flow_api.create_page_branch( p_id=>27160511447881810.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 170.4306, p_branch_action=> '160', p_branch_point=> 'BEFORE_VALIDATION', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>27159912210881808.4306+ wwv_flow_api.g_id_offset, p_branch_sequence=> 10, p_save_state_before_branch_yn=>'N', p_branch_comment=> ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'选择要成为此纯文本文件的一部分的列。仅支持卸载除 BLOB 和 BFILE 之外的 Oracle 内置数据类型。'; wwv_flow_api.create_page_item( p_id=>27160726961881811.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 170.4306, p_name=>'F4300_P170_ASC_EXPORT_COLUMNS', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 10, p_item_plug_id => 27161124048881816.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'列', p_source_type=> 'STATIC', p_display_as=> 'MULTIPLESELECT', p_lov => 'select htf.escape_sc(column_name) a, column_name b'||chr(10)|| 'from sys.dba_tab_columns'||chr(10)|| 'where table_name= :F4300_P160_ASC_EXPORT_TABLE'||chr(10)|| 'and owner =:F4300_P150_SCHEMA'||chr(10)|| 'and data_type not in (''SDO_GEOMETRY'',''BLOB'',''BFILE'',''ORDAUDIO'',''ORDIMAGE'',''ORDIMAGESIGNATURE'',''ORDVIDEO'',''ORDDOC'',''URITYPE'',''DBURITYPE'',''XDBURITYPE'',''HTTPURITYPE'',''XMLTYPE'')', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 10, p_cAttributes=> 'nowrap="nowrap"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT-TOP', p_field_alignment => 'LEFT', p_field_template => 103910729134154335.4306+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_protection_level => 'N', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'标识所选表。'; wwv_flow_api.create_page_item( p_id=>196659907635229752.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 170.4306, p_name=>'P170_TABLE', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 2, p_item_plug_id => 27161124048881816.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'NO', p_item_default => '&F4300_P160_ASC_EXPORT_TABLE.', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'表:', p_source=>'F4300_P160_ASC_EXPORT_TABLE', p_source_type=> 'ITEM', p_display_as=> 'DISPLAY_ONLY_ESCAPE_SC', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap', p_cattributes_element=>'class="fielddatabold"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', p_field_template => 103909823939152778.4306+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_protection_level => 'N', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'输入 SQL WHERE 子句限制选择的行。例如:'||chr(10)|| ''||chr(10)|| 'DEPTNO = 10'||chr(10)|| ''; wwv_flow_api.create_page_item( p_id=>196663809497239782.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 170.4306, p_name=>'P170_WHERE_CLAUSE', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 20, p_item_plug_id => 27161124048881816.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'Where 子句', p_source_type=> 'STATIC', p_display_as=> 'TEXTAREA', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 60, p_cMaxlength=> 2000, p_cHeight=> 6, p_cAttributes=> 'nowrap="nowrap"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 2, p_rowspan => 1, p_label_alignment => 'ABOVE', p_field_alignment => 'LEFT', p_field_template => 103909823939152778.4306+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_protection_level => 'N', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin wwv_flow_api.create_page_item( p_id=>196665229929245689.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 170.4306, p_name=>'P170_X', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 11, p_item_plug_id => 27161124048881816.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_display_as=> 'STOP_AND_START_HTML_TABLE', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> null, p_cAttributes=> 'nowrap="nowrap"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', p_field_template => 103909823939152778.4306+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_item_comment => ''); end; / begin wwv_flow_api.create_page_computation( p_id=> 241190207098517984.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 170.4306, p_computation_sequence => 10, p_computation_item=> 'P170_WHERE_CLAUSE', p_computation_point=> 'AFTER_SUBMIT', p_computation_type=> 'FUNCTION_BODY', p_computation_processed=> 'REPLACE_EXISTING', p_computation=> 'declare w varchar2(30000);'||chr(10)|| 'begin'||chr(10)|| 'w := :P170_WHERE_CLAUSE;'||chr(10)|| 'for i in 1..10 loop'||chr(10)|| ' w := rtrim(rtrim(rtrim(trim(w),'';/ ''),chr(10)),chr(13));'||chr(10)|| 'end loop;'||chr(10)|| 'return w;'||chr(10)|| 'end;', p_compute_when => '', p_compute_when_type=>''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 65604806815182367.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 170.4306, p_validation_name => 'export col not null', p_validation_sequence=> 10, p_validation => 'F4300_P170_ASC_EXPORT_COLUMNS', p_validation_type => 'ITEM_NOT_NULL', p_error_message => '必须指定导出列。', p_when_button_pressed=> 27159721723881807.4306 + wwv_flow_api.g_id_offset, p_associated_item=> 27160726961881811.4306 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin declare p varchar2(32767) := null; l_clob clob; l_length number := 1; begin p:=p||'wwv_flow_sw_api.check_priv(:F4300_P150_SCHEMA);'; wwv_flow_api.create_page_process( p_id => 196656907504220271.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id => 170.4306, p_process_sequence=> 10, p_process_point=> 'BEFORE_HEADER', p_process_type=> 'PLSQL', p_process_name=> 'validate schema', p_process_sql_clob => p, p_process_error_message=> '', p_process_success_message=> '', p_process_is_stateful_y_n=>'N', p_process_comment=>''); end; null; end; / begin --------------------------------------- -- ...updatable report columns for page 170.4306 -- begin null; end; null; end; / --application/pages/page_180.4 prompt ...PAGE 180.4306: 卸载为文本 -- begin declare h varchar2(32767) := null; ph varchar2(32767) := null; begin h:=h||'AEUTL/sql_utl_exprt.htm'; ph := null; wwv_flow_api.create_page( p_id => 180.4306, p_flow_id=> wwv_flow.g_flow_id, p_tab_set=> '', p_name => '卸载为文本', p_step_title=> '卸载为文本', p_step_sub_title_type => 'TEXT_WITH_SUBSTITUTIONS', p_first_item=> 'AUTO_FIRST_ITEM', p_include_apex_css_js_yn=>'Y', p_autocomplete_on_off => '', p_group_id => 215731706086585147+ wwv_flow_api.g_id_offset, p_help_text => ' ', p_html_page_header => '', p_step_template => 3485606247566446.4306+ wwv_flow_api.g_id_offset, p_required_patch=> null + wwv_flow_api.g_id_offset, p_last_updated_by => '', p_last_upd_yyyymmddhh24miss => '20090409165726', p_page_is_public_y_n=> 'N', p_page_comment => ''); wwv_flow_api.set_page_help_text(p_flow_id=>wwv_flow.g_flow_id,p_flow_step_id=>180.4306,p_text=>h); end; end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 6848509413775366.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 180.4306, p_plug_name=> 'Menu', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 1, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_08', p_plug_source=> s, p_plug_source_type=> 'M'|| to_char(6678815232629976 + wwv_flow_api.g_id_offset), p_menu_template_id=> 6680621597641306.4306+ wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 27163003595914791.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 180.4306, p_plug_name=> '卸载为文本', p_region_name=>'', p_plug_template=> 103900825378122658.4306+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 10, p_plug_display_column=> 1, p_plug_display_point=> 'AFTER_SHOW_ITEMS', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 7082409118250737.4306+ wwv_flow_api.g_id_offset, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_num_rows => 15, p_plug_query_num_rows_type => 'ROWS_X_TO_Y_OF_Z', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_query_show_nulls_as => ' - ', p_plug_query_col_allignments => 'L:L:L:L:L:L:L', p_plug_query_sum_cols => '::::::', p_plug_query_number_formats => '::::::', p_plug_display_condition_type => '', p_pagination_display_position=>'BOTTOM_RIGHT', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 27163907693981199.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 180.4306, p_plug_name=> 'Navigation', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 30, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_01', p_plug_source=> s, p_plug_source_type=> 104358211508848205 + wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'QUERY_COLUMNS', p_plug_query_num_rows => 15, p_plug_query_num_rows_type => 'ROWS_X_TO_Y_OF_Z', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_query_show_nulls_as => '(null)', p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'指定每行中用于分隔列值的分隔符类型, 以及如何在列中标识文本字符串。'; wwv_flow_api.create_page_plug ( p_id=> 220896430126802623.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 180.4306, p_plug_name=> '卸载为文本', p_region_name=>'', p_plug_template=> 104263607591363808.4306+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 40, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_03', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'QUERY_COLUMNS', p_plug_query_num_rows_type => 'NEXT_PREVIOUS_LINKS', p_plug_query_row_count_max => 500, p_plug_query_show_nulls_as => ' - ', p_plug_display_condition_type => '', p_pagination_display_position=>'BOTTOM_RIGHT', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / begin wwv_flow_api.create_page_button( p_id => 109080707403390321.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 180.4306, p_button_sequence=> 10, p_button_plug_id => 27163003595914791+wwv_flow_api.g_id_offset, p_button_name => 'Cancel', p_button_image_alt=> '取消', p_button_position=> 'REGION_TEMPLATE_CLOSE', p_button_alignment=> 'RIGHT', p_button_redirect_url=> 'f?p=&APP_ID.:4:&SESSION.::&DEBUG.:::', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 27163504640971637.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 180.4306, p_button_sequence=> 10, p_button_plug_id => 27163003595914791+wwv_flow_api.g_id_offset, p_button_name => 'EXPORTDATA', p_button_image_alt=> '卸载数据', p_button_position=> 'REGION_TEMPLATE_CREATE', p_button_alignment=> 'RIGHT', p_button_redirect_url=> 'javascript:doSubmit(''EXPORTDATA'');', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 27164230828990784.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 180.4306, p_button_sequence=> 10, p_button_plug_id => 27163003595914791+wwv_flow_api.g_id_offset, p_button_name => 'previous', p_button_image_alt=> '< 上一步', p_button_position=> 'REGION_TEMPLATE_PREVIOUS', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); end; / begin wwv_flow_api.create_page_branch( p_id=>151088609408189516.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 180.4306, p_branch_action=> 'f?p=&APP_ID.:180:&SESSION.::&DEBUG.:::', p_branch_point=> 'AFTER_PROCESSING', p_branch_type=> 'REDIRECT_URL', p_branch_when_button_id=>27163504640971637.4306+ wwv_flow_api.g_id_offset, p_branch_sequence=> 10, p_save_state_before_branch_yn=>'N', p_branch_comment=> 'Created 14-AUG-2003 17:18 by CBCHO'); wwv_flow_api.create_page_branch( p_id=>27164522069990788.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 180.4306, p_branch_action=> '170', p_branch_point=> 'BEFORE_PROCESSING', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>27164230828990784.4306+ wwv_flow_api.g_id_offset, p_branch_sequence=> 10, p_save_state_before_branch_yn=>'N', p_branch_comment=> ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'如果要导出带有列名的数据, 请选中此项。'; wwv_flow_api.create_page_item( p_id=>5580720856115889.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 180.4306, p_name=>'F4300_P180_INC_COLUMN_NAME', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 30, p_item_plug_id => 27163003595914791.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_source_type=> 'STATIC', p_display_as=> 'CHECKBOX', p_named_lov=> 'INCLUDE.COL.NAMES.Y', p_lov => '.'||to_char(87945815476789819 + wwv_flow_api.g_id_offset)||'.', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_tag_attributes2=> 'class="fielddata"', p_begin_on_new_line => 'NO', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'
,
)。要使用制表符作为列分隔符, 请输入反斜杠加字母 "t" (\t
)。从电子表格程序 (如 Microsoft Excel) 复制要加载的数据, 然后将其粘贴到“数据”字段。
'; wwv_flow_api.create_page_plug ( p_id=> 221507019931389373.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 200.4306, p_plug_name=> '加载数据', p_region_name=>'', p_plug_template=> 104263607591363808.4306+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 40, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_03', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'QUERY_COLUMNS', p_plug_query_num_rows_type => 'NEXT_PREVIOUS_LINKS', p_plug_query_row_count_max => 500, p_plug_query_show_nulls_as => ' - ', p_plug_display_condition_type => '', p_pagination_display_position=>'BOTTOM_RIGHT', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / begin wwv_flow_api.create_page_button( p_id => 112733728255232765.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 200.4306, p_button_sequence=> 10, p_button_plug_id => 112725909100220750+wwv_flow_api.g_id_offset, p_button_name => 'Cancel', p_button_image_alt=> '取消', p_button_position=> 'REGION_TEMPLATE_CLOSE', p_button_alignment=> 'RIGHT', p_button_redirect_url=> 'f?p=4300:9:&FLOW_SESSION.', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 112736203452235067.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 200.4306, p_button_sequence=> 10, p_button_plug_id => 112725909100220750+wwv_flow_api.g_id_offset, p_button_name => 'NEXT', p_button_image_alt=> '下一步 >', p_button_position=> 'REGION_TEMPLATE_NEXT', p_button_alignment=> 'RIGHT', p_button_redirect_url=> 'javascript:p200_ClobUpload();', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 204374305269310796.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 200.4306, p_button_sequence=> 10, p_button_plug_id => 112725909100220750+wwv_flow_api.g_id_offset, p_button_name => 'Previous', p_button_image_alt=> '< 上一步', p_button_position=> 'REGION_TEMPLATE_PREVIOUS', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); end; / begin wwv_flow_api.create_page_branch( p_id=>51886005938559488.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 200.4306, p_branch_action=> '210', p_branch_point=> 'AFTER_PROCESSING', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>112736203452235067.4306+ wwv_flow_api.g_id_offset, p_branch_sequence=> 10, p_save_state_before_branch_yn=>'N', p_branch_comment=> 'Created 30-MAY-2003 14:04 by CBCHO'); wwv_flow_api.create_page_branch( p_id=>204374726822310798.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 200.4306, p_branch_action=> '230', p_branch_point=> 'BEFORE_COMPUTATION', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>204374305269310796.4306+ wwv_flow_api.g_id_offset, p_branch_sequence=> 10, p_save_state_before_branch_yn=>'N', p_branch_comment=> ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'标识列分隔符。使用 \t 代表制表符。
'; wwv_flow_api.create_page_item( p_id=>4208210436082721.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 200.4306, p_name=>'F4300_P200_SEPARATOR', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 30, p_item_plug_id => 112725909100220750.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default => ',', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'分隔符', p_display_as=> 'TEXT', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 2, p_cMaxlength=> 2, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', p_display_when=>'F4300_P230_LOAD_TYPE', p_display_when2=>'CSV', p_display_when_type=>'VAL_OF_ITEM_IN_COND_EQ_COND2', p_field_template => 103910729134154335.4306+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_reference_id => 3832614597433912, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'标识可选的封闭符。
'; wwv_flow_api.create_page_item( p_id=>4209527059087470.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 200.4306, p_name=>'F4300_P200_ENCLOSED_BY', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 40, p_item_plug_id => 112725909100220750.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'封闭符', p_display_as=> 'TEXT', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 2, p_cMaxlength=> 2, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', p_display_when=>'F4300_P230_LOAD_TYPE', p_display_when2=>'CSV', p_display_when_type=>'VAL_OF_ITEM_IN_COND_EQ_COND2', p_field_template => 103909823939152778.4306+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_reference_id => 3832902320433912, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'如果数据中包含国际货币符号, 请在此处输入。
'||chr(10)|| '例如, 如果数据中包含 "€1,234.56" 或 "¥1,234.56", 请输入 "€" 或 "¥"。否则, 将无法正确加载数据。
'; wwv_flow_api.create_page_item( p_id=>21275331197419000.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 200.4306, p_name=>'P200_CURRENCY', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 60, p_item_plug_id => 21272823578416828.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default => 'declare'||chr(10)|| ' l_return_val varchar2(30) := ''$'';'||chr(10)|| 'begin'||chr(10)|| ' for c1 in (select value'||chr(10)|| ' from nls_session_parameters'||chr(10)|| ' where parameter = ''NLS_CURRENCY'') loop'||chr(10)|| ' l_return_val := c1.value;'||chr(10)|| ' exit;'||chr(10)|| ' end loop;'||chr(10)|| ' --'||chr(10)|| ' return l_return_val;'||chr(10)|| 'end; ', p_item_default_type => 'PLSQL_FUNCTION_BODY', p_prompt=>'货币符号', p_source_type=> 'STATIC', p_display_as=> 'TEXT', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 1, p_cMaxlength=> 1, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', p_field_template => 103909823939152778.4306+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'组分隔符是分隔整数组的字符, 例如, 用来表示千位和百万位的字符。
'||chr(10)|| '可以使用任何字符作为组分隔符。所指定的字符必须为单字节字符, 并且组分隔符不能与小数点字符相同。此字符可以为空格, 但不能为数字字符或以下字符之一:
'||chr(10)|| '小数点字符将数字的整数部分和小数部分分隔开来。
'||chr(10)|| '可以使用任何字符作为小数点字符。所指定的字符必须为单字节字符, 并且小数点字符不能与组分隔符相同。此字符可以为空格, 但不能为数字字符或以下字符之一:
'||chr(10)|| '如果数据的第一行中包含列名, 请选择此选项。请参考以下示例:
'||chr(10)|| '姓名 薪水 佣金'||chr(10)|| 'Clark 1000 10'||chr(10)|| 'Scott 2000 20'||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| '
姓名 薪水 佣金'||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| 'Clark 1000 10'||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| 'Scott 2000 20'||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''; wwv_flow_api.create_page_item( p_id=>112749902593269315.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 200.4306, p_name=>'F4300_P200_IS_FIELD_NAME', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 50, p_item_plug_id => 112725909100220750.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default => 'Y', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_source_type=> 'STATIC', p_display_as=> 'CHECKBOX', p_named_lov=> 'ISCOLUMN.NAME.TEXT', p_lov => 'select ''''||'||chr(10)|| 'wwv_flow_lang.system_message(''F4300_INSTRUCT_TEXT'')||'''' d, ''Y'' r from dual', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_tag_attributes => 'class="fielddataboldl"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', p_field_template => 103909823939152778.4306+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin wwv_flow_api.create_page_item( p_id=>112754820696276154.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 200.4306, p_name=>'F4300_P200_X', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 20, p_item_plug_id => 112725909100220750.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_display_as=> 'STOP_AND_START_HTML_TABLE', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> null, p_cAttributes=> 'nowrap="nowrap"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', p_is_persistent=> 'Y', p_item_comment => ''); end; / begin wwv_flow_api.create_page_computation( p_id=> 49528010062670927.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 200.4306, p_computation_sequence => 10, p_computation_item=> 'F4300_P200_IS_FIELD_NAME', p_computation_point=> 'AFTER_SUBMIT', p_computation_type=> 'STATIC_ASSIGNMENT', p_computation_processed=> 'REPLACE_EXISTING', p_computation=> 'N', p_compute_when => 'F4300_P200_IS_FIELD_NAME', p_compute_when_type=>'ITEM_IS_NULL'); null; end; / begin wwv_flow_api.create_page_validation( p_id => 118390630315447740.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 200.4306, p_validation_name => 'data not null', p_validation_sequence=> 10, p_validation => 'F4300_P200_EXCEL_DATA', p_validation_type => 'ITEM_NOT_NULL', p_error_message => '必须指定数据。', p_associated_item=> 112740117271247331.4306 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 52678302539369530.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 200.4306, p_validation_name => 'cannot be greater than 30KB', p_validation_sequence=> 20, p_validation => 'if length(:F4300_P200_EXCEL_DATA) > 30000 then'||chr(10)|| ' return false;'||chr(10)|| 'else'||chr(10)|| ' return true;'||chr(10)|| 'end if;', p_validation_type => 'FUNC_BODY_RETURNING_BOOLEAN', p_error_message => '所粘贴的数据大于 30KB。请用逗号分隔格式 (csv) 或制表符分隔格式保存文件。然后, 上载此文件, 以便加载数据。', p_associated_item=> .4306 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 4210720957095218.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 200.4306, p_validation_name => 'separator not null', p_validation_sequence=> 30, p_validation => 'F4300_P200_SEPARATOR', p_validation_type => 'ITEM_NOT_NULL', p_error_message => '必须指定分隔符。', p_validation_condition=> 'F4300_P230_LOAD_TYPE', p_validation_condition2=> 'CSV', p_validation_condition_type=> 'VAL_OF_ITEM_IN_COND_EQ_COND2', p_when_button_pressed=> 112736203452235067.4306 + wwv_flow_api.g_id_offset, p_associated_item=> 4208210436082721.4306 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin declare p varchar2(32767) := null; l_clob clob; l_length number := 1; begin p:=p||'declare '||chr(10)|| ' l_first_row_is_col_name boolean := false;'||chr(10)|| ' q varchar2(32767) := null;'||chr(10)|| ' l_data clob := empty_clob();'||chr(10)|| 'begin'||chr(10)|| ' select clob001 into l_data from apex_collections where collection_name=''CLOB_CONTENT'';'||chr(10)|| ' if :F4300_P200_IS_FIELD_NAME = ''Y'' then'||chr(10)|| ' l_first_row_is_col_name := true;'||chr(10)|| ' end if;'||chr(10)|| ''||chr(10)|| ' wwv_flow_load_excel_data.get_table_info ('||chr(10)|| ' p_string => l_data,'||chr(10)|| ' p_separator '; p:=p||' => lower(nvl(:F4300_P200_SEPARATOR,''\t'')),'||chr(10)|| ' p_enclosed_by => :F4300_P200_ENCLOSED_BY, '||chr(10)|| ' p_first_row_is_col_name => l_first_row_is_col_name,'||chr(10)|| ' p_currency => :P200_CURRENCY,'||chr(10)|| ' p_numeric_chars => :P200_DECIMAL_CHARACTER||:P200_GROUP_SEPARATOR,'||chr(10)|| ' p_load_type => ''EXCEL'''||chr(10)|| ' );'||chr(10)|| 'end;'; wwv_flow_api.create_page_process( p_id => 117624930761654964.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id => 200.4306, p_process_sequence=> 10, p_process_point=> 'AFTER_SUBMIT', p_process_type=> 'PLSQL', p_process_name=> 'create collection', p_process_sql_clob => p, p_process_error_message=> '加载 Excel 数据时出错。', p_process_when_button_id=>112736203452235067.4306 + wwv_flow_api.g_id_offset, p_process_success_message=> '', p_process_is_stateful_y_n=>'N', p_process_comment=>''); end; null; end; / begin --------------------------------------- -- ...updatable report columns for page 200.4306 -- begin null; end; null; end; / --application/pages/page_210.4 prompt ...PAGE 210.4306: 加载数据 -- begin declare h varchar2(32767) := null; ph varchar2(32767) := null; begin h:=h||'AEUTL/sql_utl_exprt.htm'; ph:=ph||''; wwv_flow_api.create_page( p_id => 210.4306, p_flow_id=> wwv_flow.g_flow_id, p_tab_set=> '', p_name => '加载数据', p_step_title=> '加载数据', p_html_page_onload=>'onload="f_ImportDataTypeOnload()"', p_step_sub_title_type => 'TEXT_WITH_SUBSTITUTIONS', p_first_item=> 'AUTO_FIRST_ITEM', p_include_apex_css_js_yn=>'Y', p_autocomplete_on_off => '', p_group_id => 215729525348581243+ wwv_flow_api.g_id_offset, p_help_text => ' ', p_html_page_header => ' ', p_step_template => 3485606247566446.4306+ wwv_flow_api.g_id_offset, p_required_patch=> null + wwv_flow_api.g_id_offset, p_last_updated_by => '', p_last_upd_yyyymmddhh24miss => '20090409165726', p_page_is_public_y_n=> 'N', p_page_comment => ''); wwv_flow_api.set_page_help_text(p_flow_id=>wwv_flow.g_flow_id,p_flow_step_id=>210.4306,p_text=>h); wwv_flow_api.set_html_page_header(p_flow_id=>wwv_flow.g_flow_id,p_flow_step_id=>210.4306,p_text=>ph); end; end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 6693915541677404.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 210.4306, p_plug_name=> 'Menu', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 1, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_08', p_plug_source=> s, p_plug_source_type=> 'M'|| to_char(6678815232629976 + wwv_flow_api.g_id_offset), p_menu_template_id=> 6680621597641306.4306+ wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'wwv_flow_load_data.display_ntable_property(p_collection_name => ''EXCEL_IMPORT'');'; wwv_flow_api.create_page_plug ( p_id=> 112768526710303685.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 210.4306, p_plug_name=> '设置表属性', p_region_name=>'', p_plug_template=> 279748823389483962.4306+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 20, p_plug_display_column=> 1, p_plug_display_point=> 'AFTER_SHOW_ITEMS', p_plug_source=> s, p_plug_source_type=> 'PLSQL_PROCEDURE', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> '', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_display_condition_type => '', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 112771111398310853.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 210.4306, p_plug_name=> 'Navigation', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 20, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_01', p_plug_source=> s, p_plug_source_type=> 112716503290208213 + wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 112785418706337777.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 210.4306, p_plug_name=> '加载数据', p_region_name=>'', p_plug_template=> 103900825378122658.4306+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 10, p_plug_display_column=> 1, p_plug_display_point=> 'AFTER_SHOW_ITEMS', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'
此页可用于预览表的外观。可以输入表名, 更改列名或数据类型, 还可以指定要包含的列。
'; wwv_flow_api.create_page_plug ( p_id=> 221508920062398800.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 210.4306, p_plug_name=> '加载数据', p_region_name=>'', p_plug_template=> 104263607591363808.4306+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 30, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_03', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'QUERY_COLUMNS', p_plug_query_num_rows_type => 'NEXT_PREVIOUS_LINKS', p_plug_query_row_count_max => 500, p_plug_query_show_nulls_as => ' - ', p_plug_display_condition_type => '', p_pagination_display_position=>'BOTTOM_RIGHT', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / begin wwv_flow_api.create_page_button( p_id => 112775326318317322.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 210.4306, p_button_sequence=> 10, p_button_plug_id => 112785418706337777+wwv_flow_api.g_id_offset, p_button_name => 'Cancel', p_button_image_alt=> '取消', p_button_position=> 'REGION_TEMPLATE_CLOSE', p_button_alignment=> 'RIGHT', p_button_redirect_url=> 'f?p=4300:9:&FLOW_SESSION.', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 116940415820894908.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 210.4306, p_button_sequence=> 10, p_button_plug_id => 112785418706337777+wwv_flow_api.g_id_offset, p_button_name => 'Next', p_button_image_alt=> '下一步 >', p_button_position=> 'REGION_TEMPLATE_NEXT', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 112777203593320251.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 210.4306, p_button_sequence=> 10, p_button_plug_id => 112785418706337777+wwv_flow_api.g_id_offset, p_button_name => 'Previous', p_button_image_alt=> '< 上一步', p_button_position=> 'REGION_TEMPLATE_PREVIOUS', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); end; / begin wwv_flow_api.create_page_branch( p_id=>116940829853894912.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 210.4306, p_branch_action=> '220', p_branch_point=> 'AFTER_PROCESSING', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>116940415820894908.4306+ wwv_flow_api.g_id_offset, p_branch_sequence=> 10, p_save_state_before_branch_yn=>'N', p_branch_comment=> ''); wwv_flow_api.create_page_branch( p_id=>112777626990320254.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 210.4306, p_branch_action=> '200', p_branch_point=> 'BEFORE_VALIDATION', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>112777203593320251.4306+ wwv_flow_api.g_id_offset, p_branch_sequence=> 10, p_save_state_before_branch_yn=>'N', p_branch_comment=> ''); end; / declare h varchar2(32767) := null; begin wwv_flow_api.create_page_item( p_id=>77784300806046762.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 210.4306, p_name=>'P210_PRESERVE_CASE', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 25, p_item_plug_id => 112785418706337777.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_source_type=> 'STATIC', p_display_as=> 'CHECKBOX', p_named_lov=> 'PRESERVE.CASE.Y', p_lov => '.'||to_char(87931511182663028 + wwv_flow_api.g_id_offset)||'.', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_tag_attributes2=> 'class="fielddata"', p_begin_on_new_line => 'NO', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', p_field_template => 103909823939152778.4306+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_item_comment => ''); end; / declare h varchar2(32767) := null; begin wwv_flow_api.create_page_item( p_id=>100051613844477110.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 210.4306, p_name=>'F4300_P210_DUMMY', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 30, p_item_plug_id => 112785418706337777.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_prompt=>'Dummy', p_display_as=> 'HIDDEN', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> null, p_cAttributes=> 'nowrap="nowrap"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', p_is_persistent=> 'Y', p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'选择要创建并向其中加载数据的数据库方案。'; wwv_flow_api.create_page_item( p_id=>112792123870350640.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 210.4306, p_name=>'F4300_P200_OWNER', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 10, p_item_plug_id => 112785418706337777.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'方案', p_source=>'wwv_flow_user_api.get_default_schema', p_source_type=> 'FUNCTION', p_display_as=> 'COMBOBOX', p_named_lov=> 'CREATE_TABLE_SCHEMAS', p_lov => 'declare'||chr(10)|| ' q varchar2(32767) := null;'||chr(10)|| 'begin'||chr(10)|| ' q:=q||''select htf.escape_sc(c.schema) d, c.schema v '';'||chr(10)|| ' q:=q||''from wwv_flow_company_schemas c, '';'||chr(10)|| ' q:=q||'' wwv_flow_fnd_user u '';'||chr(10)|| ' q:=q||''where c.security_group_id = :flow_security_group_id and '';'||chr(10)|| ' q:=q||'' u.security_group_id = :flow_security_group_id and '';'||chr(10)|| ' q:=q||'' u.user_name = :flow_user and '';'||chr(10)|| ' q:=q||'' (u.ALLOW_ACCESS_TO_SCHEMAS is null or '';'||chr(10)|| ' q:=q||'' instr('''':''''||u.ALLOW_ACCESS_TO_SCHEMAS||'''':'''','''':''''||c.schema||'''':'''')>0) '';'||chr(10)|| ' if wwv_flow_global.g_xe then'||chr(10)|| ' q:=q||'' and exists (select null '';'||chr(10)|| ' q:=q||'' from sys.dba_sys_privs '';'||chr(10)|| ' q:=q||'' where privilege = ''''CREATE TABLE'''' '';'||chr(10)|| ' q:=q||'' and grantee = c.schema '';'||chr(10)|| ' q:=q||'' union all '';'||chr(10)|| ' q:=q||'' select null '';'||chr(10)|| ' q:=q||'' from sys.dba_sys_privs s, sys.dba_role_privs r '';'||chr(10)|| ' q:=q||'' where r.granted_role=s.grantee '';'||chr(10)|| ' q:=q||'' and r.grantee = c.schema '';'||chr(10)|| ' q:=q||'' and s.privilege = ''''CREATE TABLE'''') '';'||chr(10)|| ' else'||chr(10)|| ' q:=q||'' and exists (select null '';'||chr(10)|| ' q:=q||'' from sys.dba_sys_privs '';'||chr(10)|| ' q:=q||'' where privilege = ''''CREATE TABLE'''' '';'||chr(10)|| ' q:=q||'' and grantee = c.schema) '';'||chr(10)|| ' end if; '||chr(10)|| ' q:=q||'' and exists (select null '';'||chr(10)|| ' q:=q||'' from sys.dba_users '';'||chr(10)|| ' q:=q||'' where username = c.schema) '';'||chr(10)|| ' q:=q||''order by 1 '';'||chr(10)|| ' '||chr(10)|| ' return q;'||chr(10)|| 'end;', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', p_read_only_when=>'return wwv_flow_global.g_xe', p_read_only_when_type=>'FUNCTION_BODY', p_read_only_disp_attr=>'class="fielddatabold"', p_field_template => 103910729134154335.4306+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_protection_level => 'N', p_escape_on_http_input => 'Y', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'使用此页可以标识表的主键。如果数据集中所有单列均不适合作为主键, 则标识一新列作为主键。主键是表中唯一标识行的列。
'; wwv_flow_api.create_page_plug ( p_id=> 221515609374424159.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 220.4306, p_plug_name=> '加载数据', p_region_name=>'', p_plug_template=> 104263607591363808.4306+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 30, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_03', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'QUERY_COLUMNS', p_plug_query_num_rows_type => 'NEXT_PREVIOUS_LINKS', p_plug_query_row_count_max => 500, p_plug_query_show_nulls_as => ' - ', p_plug_display_condition_type => '', p_pagination_display_position=>'BOTTOM_RIGHT', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / begin wwv_flow_api.create_page_button( p_id => 117068923158076792.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 220.4306, p_button_sequence=> 10, p_button_plug_id => 117056604391055559+wwv_flow_api.g_id_offset, p_button_name => 'Cancel', p_button_image_alt=> '取消', p_button_position=> 'REGION_TEMPLATE_CLOSE', p_button_alignment=> 'RIGHT', p_button_redirect_url=> 'f?p=4300:9:&FLOW_SESSION.', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 117073012899083351.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 220.4306, p_button_sequence=> 10, p_button_plug_id => 117056604391055559+wwv_flow_api.g_id_offset, p_button_name => 'Finish', p_button_image_alt=> '加载数据', p_button_position=> 'REGION_TEMPLATE_CREATE', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 117070800779079776.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 220.4306, p_button_sequence=> 10, p_button_plug_id => 117056604391055559+wwv_flow_api.g_id_offset, p_button_name => 'Previous', p_button_image_alt=> '< 上一步', p_button_position=> 'REGION_TEMPLATE_PREVIOUS', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); end; / begin wwv_flow_api.create_page_branch( p_id=>117073412886083354.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 220.4306, p_branch_action=> '11', p_branch_point=> 'AFTER_PROCESSING', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>117073012899083351.4306+ wwv_flow_api.g_id_offset, p_branch_sequence=> 1, p_save_state_before_branch_yn=>'N', p_branch_comment=> ''); wwv_flow_api.create_page_branch( p_id=>29278228032445971.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 220.4306, p_branch_action=> '220', p_branch_point=> 'AFTER_PROCESSING', p_branch_type=> 'BRANCH_TO_STEP', p_branch_sequence=> 2, p_branch_condition_type=> 'REQUEST_EQUALS_CONDITION', p_branch_condition=> 'P200_PK_TYPE', p_save_state_before_branch_yn=>'N', p_branch_comment=> 'Created 04-FEB-2003 15:30 by CBCHO'); wwv_flow_api.create_page_branch( p_id=>52010014229160977.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 220.4306, p_branch_action=> 'f?p=&FLOW_ID.:220:&SESSION.::&DEBUG.:::', p_branch_point=> 'AFTER_PROCESSING', p_branch_type=> 'REDIRECT_URL', p_branch_sequence=> 99, p_save_state_before_branch_yn=>'N', p_branch_comment=> 'Created 30-MAY-2003 18:31 by MIKE'); wwv_flow_api.create_page_branch( p_id=>117071203531079778.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 220.4306, p_branch_action=> '210', p_branch_point=> 'BEFORE_VALIDATION', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>117070800779079776.4306+ wwv_flow_api.g_id_offset, p_branch_sequence=> 10, p_save_state_before_branch_yn=>'N', p_branch_comment=> ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'命名主键约束条件。'; wwv_flow_api.create_page_item( p_id=>29225226404227933.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 220.4306, p_name=>'P200_PK1_NAME', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 22, p_item_plug_id => 117056604391055559.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'约束条件名称', p_source_type=> 'STATIC', p_display_as=> 'TEXT', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', p_field_template => 103909823939152778.4306+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'选择您希望用于计算主键的方式。或者, 选择不设置主键值。'; wwv_flow_api.create_page_item( p_id=>29231303248249589.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 220.4306, p_name=>'P200_PK_TYPE', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 23, p_item_plug_id => 117056604391055559.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default => 'NEW_SEQUENCE', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'主键置入:', p_source_type=> 'STATIC', p_display_as=> 'RADIOGROUP_WITH_SUBMIT', p_named_lov=> 'PK_TYPES', p_lov => '.'||to_char(29232624018252340 + wwv_flow_api.g_id_offset)||'.', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_tag_attributes2=> 'class="fielddata"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT-TOP', p_field_alignment => 'LEFT', p_field_template => 103909823939152778.4306+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'标识用于填充主键值的现有数据库序列的名称。'; wwv_flow_api.create_page_item( p_id=>29236325197265446.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 220.4306, p_name=>'P200_EXISTING_SEQUENCE', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 60, p_item_plug_id => 117056604391055559.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'序列', p_source_type=> 'STATIC', p_display_as=> 'COMBOBOX', p_lov => 'select htf.escape_sc(sequence_name) a, sequence_name b from sys.dba_sequences '||chr(10)|| 'where sequence_owner = :F4300_P200_OWNER'||chr(10)|| 'order by sequence_name', p_lov_columns=> 1, p_lov_display_null=> 'YES', p_lov_translated=> 'N', p_lov_null_text=>'- 选择序列 -', p_lov_null_value=> '0', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', p_display_when=>':P200_PK_TYPE = ''EXISTING_SEQUENCE''', p_display_when_type=>'PLSQL_EXPRESSION', p_field_template => 103909823939152778.4306+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_protection_level => 'N', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'标识新数据库序列的名称。为了填充此新表的主键, 将创建该数据库序列。'; wwv_flow_api.create_page_item( p_id=>29241232039286358.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 220.4306, p_name=>'P200_NEW_SEQUENCE', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 70, p_item_plug_id => 117056604391055559.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'序列', p_source_type=> 'STATIC', p_display_as=> 'TEXT', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', p_display_when=>':P200_PK_TYPE = ''NEW_SEQUENCE''', p_display_when_type=>'PLSQL_EXPRESSION', p_field_template => 103909823939152778.4306+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin wwv_flow_api.create_page_item( p_id=>51623109797120855.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 220.4306, p_name=>'P220_X', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 16, p_item_plug_id => 117056604391055559.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default => ' ', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_source_type=> 'STATIC', p_display_as=> 'DISPLAY_ONLY_HTML', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'您可以选择现有列作为主键或添加新列作为主键。'; wwv_flow_api.create_page_item( p_id=>52007705655139616.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 220.4306, p_name=>'P200_PK1_OPTION', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 20, p_item_plug_id => 117056604391055559.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default => 'NEW_KEY', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'主键来自:', p_source_type=> 'STATIC', p_display_as=> 'RADIOGROUP_WITH_SUBMIT', p_named_lov=> 'USE.EXISTING.COL', p_lov => '.'||to_char(87933423434676001 + wwv_flow_api.g_id_offset)||'.', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_tag_attributes2=> 'class="fielddata"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT-TOP', p_field_alignment => 'LEFT', p_field_template => 103909823939152778.4306+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'输入新列的名称, 以标识表中的行。'; wwv_flow_api.create_page_item( p_id=>52012902417204955.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 220.4306, p_name=>'P200_PK1_2', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 21.5, p_item_plug_id => 117056604391055559.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default => 'ID', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'新主键列', p_source_type=> 'STATIC', p_display_as=> 'TEXT', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', p_display_when=>'P200_PK1_OPTION', p_display_when2=>'NEW_KEY', p_display_when_type=>'VAL_OF_ITEM_IN_COND_EQ_COND2', p_field_template => 103909823939152778.4306+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'拥有表的方案。'; wwv_flow_api.create_page_item( p_id=>117095028927104885.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 220.4306, p_name=>'P220_OWNER', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 10, p_item_plug_id => 117056604391055559.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'NO', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'方案:', p_source=>'F4300_P200_OWNER', p_source_type=> 'ITEM', p_display_as=> 'DISPLAY_AND_SAVE', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_tag_attributes => 'class="fielddatabold"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', p_field_template => 103909823939152778.4306+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_protection_level => 'N', p_escape_on_http_input => 'Y', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'要将数据加载到的表的名称'; wwv_flow_api.create_page_item( p_id=>117097720517108862.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 220.4306, p_name=>'P220_TABLE_NAME', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 15, p_item_plug_id => 117056604391055559.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'NO', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'表名:', p_source=>'F4300_P200_TABLE_NAME', p_source_type=> 'ITEM', p_display_as=> 'DISPLAY_ONLY_HTML', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_tag_attributes => 'class="fielddatabold"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', p_field_template => 103909823939152778.4306+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_protection_level => 'N', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'指定哪一列为表的主键。主键是唯一标识行的列。Oracle 不要求表必须具有主键, 但此向导要求标识主键。'; wwv_flow_api.create_page_item( p_id=>117102827837120664.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 220.4306, p_name=>'P200_PK1', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 21, p_item_plug_id => 117056604391055559.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'主键', p_source_type=> 'ALWAYS_NULL', p_display_as=> 'COMBOBOX', p_lov => 'select htf.escape_sc(c001)||''(''||c002||'')'' a, c001'||chr(10)|| ' from wwv_flow_collections'||chr(10)|| ' where collection_name = ''EXCEL_IMPORT'' and c001 is not null'||chr(10)|| ' order by seq_id'||chr(10)|| '', p_lov_columns=> 1, p_lov_display_null=> 'YES', p_lov_translated=> 'N', p_lov_null_text=>'- 选择主键 -', p_lov_null_value=> '0', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', p_display_when=>'P200_PK1_OPTION', p_display_when2=>'EXISTING_KEY', p_display_when_type=>'VAL_OF_ITEM_IN_COND_EQ_COND2', p_field_template => 103909823939152778.4306+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_protection_level => 'N', p_help_text => h, p_item_comment => ''); end; / begin wwv_flow_api.create_page_computation( p_id=> 13590021101989074.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 220.4306, p_computation_sequence => 10, p_computation_item=> 'P200_PK1_2', p_computation_point=> 'BEFORE_HEADER', p_computation_type=> 'FUNCTION_BODY', p_computation_processed=> 'REPLACE_EXISTING', p_computation=> 'declare'||chr(10)|| ' l_pk varchar2(40) := null;'||chr(10)|| 'begin'||chr(10)|| ' for c1 in (select c001'||chr(10)|| ' from wwv_flow_collections'||chr(10)|| ' where collection_name = ''EXCEL_IMPORT'''||chr(10)|| ' and upper(c001) = ''ID'') '||chr(10)|| ' loop'||chr(10)|| ' for i in 1..10 loop'||chr(10)|| ' for c2 in (select c001'||chr(10)|| ' from wwv_flow_collections'||chr(10)|| ' where collection_name = ''EXCEL_IMPORT'''||chr(10)|| ' and upper(c001) = ''ID''||i) '||chr(10)|| ' loop'||chr(10)|| ' l_pk := ''ID'';'||chr(10)|| ' end loop;--c2'||chr(10)|| ' if l_pk is null then'||chr(10)|| ' return ''ID''||i;'||chr(10)|| ' else'||chr(10)|| ' l_pk := null;'||chr(10)|| ' end if;'||chr(10)|| ' end loop;--i'||chr(10)|| ' end loop;--c1'||chr(10)|| ' return ''ID'';'||chr(10)|| 'end;', p_compute_when => '', p_compute_when_type=>'%null%'); null; end; / begin wwv_flow_api.create_page_computation( p_id=> 29248007498307620.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 220.4306, p_computation_sequence => 10, p_computation_item=> 'P200_PK1_NAME', p_computation_point=> 'BEFORE_HEADER', p_computation_type=> 'PLSQL_EXPRESSION', p_computation_processed=> 'REPLACE_EXISTING', p_computation=> 'wwv_flow_sw_util.generate_pk_name(replace(:F4300_P200_TABLE_NAME,'' '',''_''));', p_compute_when => '', p_compute_when_type=>''); null; end; / begin wwv_flow_api.create_page_computation( p_id=> 29250213170318666.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 220.4306, p_computation_sequence => 10, p_computation_item=> 'P200_NEW_SEQUENCE', p_computation_point=> 'BEFORE_HEADER', p_computation_type=> 'PLSQL_EXPRESSION', p_computation_processed=> 'REPLACE_EXISTING', p_computation=> 'wwv_flow_sw_util.generate_seq_name(replace(:F4300_P200_TABLE_NAME,'' '',''_''));', p_compute_when => '', p_compute_when_type=>''); null; end; / begin wwv_flow_api.create_page_computation( p_id=> 29253014255347439.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 220.4306, p_computation_sequence => 10, p_computation_item=> 'P200_PK1', p_computation_point=> 'BEFORE_HEADER', p_computation_type=> 'FUNCTION_BODY', p_computation_processed=> 'REPLACE_EXISTING', p_computation=> 'declare'||chr(10)|| 'begin'||chr(10)|| ' for c1 in ('||chr(10)|| ' select c001'||chr(10)|| ' from wwv_flow_collections'||chr(10)|| ' where collection_name = ''EXCEL_IMPORT'''||chr(10)|| ' and upper(c001) = ''ID'''||chr(10)|| ' ) loop'||chr(10)|| ' return c1.c001;'||chr(10)|| ' end loop;'||chr(10)|| ' for c1 in ('||chr(10)|| ' select c001'||chr(10)|| ' from wwv_flow_collections'||chr(10)|| ' where collection_name = ''EXCEL_IMPORT'''||chr(10)|| ' and upper(c001) like ''%ID'''||chr(10)|| ' ) loop'||chr(10)|| ' return c1.c001;'||chr(10)|| ' end loop;'||chr(10)|| 'end;', p_compute_when => 'P200_PK1', p_compute_when_type=>'ITEM_IS_NULL_OR_ZERO'); null; end; / begin wwv_flow_api.create_page_validation( p_id => 29254418196358029.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 220.4306, p_validation_name => 'SEQUENCE not null', p_validation_sequence=> 10, p_validation => 'P200_EXISTING_SEQUENCE', p_validation_type => 'ITEM_NOT_ZERO', p_error_message => '必须指定序列。', p_validation_condition=> 'P200_PK_TYPE', p_validation_condition2=> 'EXISTING_SEQUENCE', p_validation_condition_type=> 'VAL_OF_ITEM_IN_COND_EQ_COND2', p_when_button_pressed=> 117073012899083351.4306 + wwv_flow_api.g_id_offset, p_associated_item=> 29236325197265446.4306 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 29266319281386761.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 220.4306, p_validation_name => 'PK_NAME available', p_validation_sequence=> 20, p_validation => 'begin'||chr(10)|| ''||chr(10)|| 'if not wwv_flow_builder.is_valid_identifier(''"''||:P200_PK1_NAME||''"'') then'||chr(10)|| ' return '||chr(10)|| ' wwv_flow_lang.system_message(''F4300.NOT_VALID_PK_NAME'',:P200_PK1_NAME);'||chr(10)|| 'end if;'||chr(10)|| ' '||chr(10)|| 'if not wwv_flow_sw_util.is_available_name(:P200_PK1_NAME, :P220_OWNER ) then'||chr(10)|| ' return '||chr(10)|| ' wwv_flow_lang.system_message(''F4300.F4500.NAME_ALREADY_USED'',:P200_PK1_NAME);'||chr(10)|| 'end if;'||chr(10)|| 'end;', p_validation_type => 'FUNC_BODY_RETURNING_ERR_TEXT', p_error_message => '错误。', p_associated_item=> 29225226404227933.4306 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 52417430985005732.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 220.4306, p_validation_name => 'PK not null', p_validation_sequence=> 30, p_validation => 'P200_PK1', p_validation_type => 'ITEM_NOT_ZERO', p_error_message => '必须指定主键。', p_validation_condition=> 'P200_PK1_OPTION', p_validation_condition2=> 'EXISTING_KEY', p_validation_condition_type=> 'VAL_OF_ITEM_IN_COND_EQ_COND2', p_when_button_pressed=> 117073012899083351.4306 + wwv_flow_api.g_id_offset, p_associated_item=> 117102827837120664.4306 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 52419018303011469.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 220.4306, p_validation_name => 'PK not null', p_validation_sequence=> 35, p_validation => 'P200_PK1_2', p_validation_type => 'ITEM_NOT_NULL', p_error_message => '必须指定主键。', p_validation_condition=> 'P200_PK1_OPTION', p_validation_condition2=> 'NEW_KEY', p_validation_condition_type=> 'VAL_OF_ITEM_IN_COND_EQ_COND2', p_when_button_pressed=> 117073012899083351.4306 + wwv_flow_api.g_id_offset, p_associated_item=> 52012902417204955.4306 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 52420808391018166.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 220.4306, p_validation_name => 'PK not > 30 chars', p_validation_sequence=> 38, p_validation => 'if length(:P200_PK1_2) > 30 then'||chr(10)|| ' return false;'||chr(10)|| 'end if;'||chr(10)|| 'return true;', p_validation_type => 'FUNC_BODY_RETURNING_BOOLEAN', p_error_message => '主键列名不能超过 30 个字符。', p_validation_condition=> 'P200_PK1_OPTION', p_validation_condition2=> 'NEW_KEY', p_validation_condition_type=> 'VAL_OF_ITEM_IN_COND_EQ_COND2', p_when_button_pressed=> 117073012899083351.4306 + wwv_flow_api.g_id_offset, p_associated_item=> .4306 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 52424804066054749.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 220.4306, p_validation_name => 'PK gen option needs to be auto', p_validation_sequence=> 39, p_validation => 'if :P200_PK_TYPE = ''NOT_GENERATED'' then'||chr(10)|| ' return false;'||chr(10)|| 'end if;'||chr(10)|| 'return true;', p_validation_type => 'FUNC_BODY_RETURNING_BOOLEAN', p_error_message => '在创建新主键时, 必须从序列生成主键。', p_validation_condition=> 'P200_PK1_OPTION', p_validation_condition2=> 'NEW_KEY', p_validation_condition_type=> 'VAL_OF_ITEM_IN_COND_EQ_COND2', p_when_button_pressed=> 117073012899083351.4306 + wwv_flow_api.g_id_offset, p_associated_item=> 29231303248249589.4306 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 29270400759419169.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 220.4306, p_validation_name => 'PK_NAME not null', p_validation_sequence=> 40, p_validation => 'P200_PK1_NAME', p_validation_type => 'ITEM_NOT_NULL_OR_ZERO', p_error_message => '必须指定主键名。', p_when_button_pressed=> 117073012899083351.4306 + wwv_flow_api.g_id_offset, p_associated_item=> 29225226404227933.4306 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 29274101928429039.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 220.4306, p_validation_name => 'SEQ_NAME available', p_validation_sequence=> 50, p_validation => 'begin'||chr(10)|| 'if not wwv_flow_builder.is_valid_identifier(''"''||:P200_NEW_SEQUENCE||''"'') then'||chr(10)|| ' return wwv_flow_lang.system_message(''F4300.F4500.NOT_VALID_SEQ_NAME'',:P200_NEW_SEQUENCE);'||chr(10)|| 'end if;'||chr(10)|| ' '||chr(10)|| 'if not wwv_flow_sw_util.is_available_name(:P200_NEW_SEQUENCE, :P220_OWNER ) then'||chr(10)|| ' return wwv_flow_lang.system_message(''F4300.F4500.NAME_ALREADY_USED'',:P200_NEW_SEQUENCE);'||chr(10)|| 'end if;'||chr(10)|| 'end;', p_validation_type => 'FUNC_BODY_RETURNING_ERR_TEXT', p_error_message => '错误。', p_validation_condition=> 'P200_PK_TYPE', p_validation_condition2=> 'NEW_SEQUENCE', p_validation_condition_type=> 'VAL_OF_ITEM_IN_COND_EQ_COND2', p_when_button_pressed=> 117073012899083351.4306 + wwv_flow_api.g_id_offset, p_associated_item=> 29241232039286358.4306 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 48704226490898036.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 220.4306, p_validation_name => 'no duplicate PK col', p_validation_sequence=> 60, p_validation => 'declare'||chr(10)|| ' l_cnt pls_integer := 0;'||chr(10)|| 'begin'||chr(10)|| ' for c1 in (select count(c001) cnt'||chr(10)|| ' from wwv_flow_collections'||chr(10)|| ' where collection_name = ''EXCEL_IMPORT'''||chr(10)|| ' and upper(c001) = upper(:P200_PK1_2))'||chr(10)|| ' loop'||chr(10)|| ' l_cnt := c1.cnt;'||chr(10)|| ' end loop;'||chr(10)|| ' if l_cnt > 0 then'||chr(10)|| ' return wwv_flow_lang.system_message(''F4500.P602.DUP_COL_NAME'',:P200_PK1_2);'||chr(10)|| ' end if;'||chr(10)|| 'end;', p_validation_type => 'FUNC_BODY_RETURNING_ERR_TEXT', p_error_message => '错误。', p_validation_condition=> 'P200_PK1_OPTION', p_validation_condition2=> 'NEW_KEY', p_validation_condition_type=> 'VAL_OF_ITEM_IN_COND_EQ_COND2', p_when_button_pressed=> 117073012899083351.4306 + wwv_flow_api.g_id_offset, p_associated_item=> 52012902417204955.4306 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin declare p varchar2(32767) := null; l_clob clob; l_length number := 1; begin p:=p||'declare '||chr(10)|| ' l_cnames wwv_flow_global.vc_arr2; '||chr(10)|| ' l_data_type wwv_flow_global.vc_arr2; '||chr(10)|| ' l_upload wwv_flow_global.vc_arr2;'||chr(10)|| ' l_max_length wwv_flow_global.vc_arr2;'||chr(10)|| ' l_seq_name varchar2(255) := null;'||chr(10)|| ' l_pk1 varchar2(255) := :P200_PK1;'||chr(10)|| ' l_pk1_name varchar2(255) := null;'||chr(10)|| ' i pls_integer := 0;'||chr(10)|| 'begin '||chr(10)|| ' if :P200_PK1_OPTION = ''NEW_KEY'' then'||chr(10)|| ' i := i+1;'||chr(10)|| ' l'; p:=p||'_pk1 := replace(wwv_flow_utilities.remove_spaces(:P200_PK1_2),chr(32),''_''); '||chr(10)|| ' if :P210_PRESERVE_CASE is null then'||chr(10)|| ' l_pk1 := upper(l_pk1);'||chr(10)|| ' end if;'||chr(10)|| ' l_cnames(i) := l_pk1;'||chr(10)|| ' l_data_type(i) := ''NUMBER'';'||chr(10)|| ' l_upload(i) := ''Y'';'||chr(10)|| ' l_max_length(i) := 30;'||chr(10)|| ' end if; '||chr(10)|| ' '||chr(10)|| ' for c in (select * '||chr(10)|| ' from wwv_flow_collections '||chr(10)|| ' where collection_name=''EX'; p:=p||'CEL_IMPORT'') loop'||chr(10)|| ' i := i+1; '||chr(10)|| ' l_cnames(i) := c.c001;'||chr(10)|| ' l_data_type(i) := c.c002;'||chr(10)|| ' l_upload(i) := c.c004;'||chr(10)|| ' l_max_length(i) := c.c005; '||chr(10)|| ' end loop; '||chr(10)|| ' '||chr(10)|| ' if :P200_PK_TYPE = ''NEW_SEQUENCE'' then '||chr(10)|| ' l_seq_name := :P200_NEW_SEQUENCE;'||chr(10)|| ' if :P210_PRESERVE_CASE is null then'||chr(10)|| ' l_seq_name := upper(l_seq_name);'||chr(10)|| ' end if;'||chr(10)|| ' elsif :P200_PK_TYPE = ''EXISTING_SEQUENCE'' then'||chr(10)|| ' '; p:=p||' l_seq_name := :P200_EXISTING_SEQUENCE;'||chr(10)|| ' else'||chr(10)|| ' l_seq_name := NULL;'||chr(10)|| ' end if;'||chr(10)|| ' '||chr(10)|| ' l_pk1_name := :P200_PK1_NAME;'||chr(10)|| ' if :P210_PRESERVE_CASE is null then'||chr(10)|| ' l_pk1_name := upper(l_pk1_name);'||chr(10)|| ' end if;'||chr(10)|| ' wwv_flow_load_excel_data.create_table ('||chr(10)|| ' p_schema => :F4300_P200_OWNER,'||chr(10)|| ' p_table_name => wwv_flow_utilities.remove_spaces(:F4300_P200_TABLE_NAME),'||chr(10)|| ' p_pk1 => l_pk1,'||chr(10)|| ' p_pk1_name '; p:=p||' => l_pk1_name,'||chr(10)|| ' p_pk1_type => :P200_PK_TYPE,'||chr(10)|| ' p_seq_name => l_seq_name,'||chr(10)|| ' --'||chr(10)|| ' p_cnames => l_cnames,'||chr(10)|| ' p_data_type => l_data_type, '||chr(10)|| ' p_upload => l_upload,'||chr(10)|| ' p_max_length => l_max_length '||chr(10)|| ' );'||chr(10)|| 'end;'; wwv_flow_api.create_page_process( p_id => 117113015507171948.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id => 220.4306, p_process_sequence=> 10, p_process_point=> 'AFTER_SUBMIT', p_process_type=> 'PLSQL', p_process_name=> 'create table with new primary key', p_process_sql_clob => p, p_process_error_message=> '创建表时出错。', p_process_when_button_id=>117073012899083351.4306 + wwv_flow_api.g_id_offset, p_process_success_message=> '', p_process_is_stateful_y_n=>'N', p_process_comment=>''); end; null; end; / begin declare p varchar2(32767) := null; l_clob clob; l_length number := 1; begin p:=p||'declare '||chr(10)|| ' l_first_row_is_col_name boolean := false; '||chr(10)|| ' l_cnames wwv_flow_global.vc_arr2; '||chr(10)|| ' l_upload wwv_flow_global.vc_arr2; '||chr(10)|| ' i number := 0;'||chr(10)|| ' --'||chr(10)|| ' l_data_type wwv_flow_global.vc_arr2;'||chr(10)|| ' l_data_format wwv_flow_global.vc_arr2;'||chr(10)|| ' l_parsed_data_format wwv_flow_global.vc_arr2;'||chr(10)|| ' l_data clob := empty_clob();'||chr(10)|| 'begin '||chr(10)|| ' for c in (select * '||chr(10)|| ' '; p:=p||' from wwv_flow_collections '||chr(10)|| ' where collection_name=''EXCEL_IMPORT'') loop'||chr(10)|| ' i := i + 1;'||chr(10)|| ' l_cnames(i) := c.c001; '||chr(10)|| ' l_upload(i) := c.c004; '||chr(10)|| ' l_data_type(i) := c.c002; '||chr(10)|| ' l_data_format(i) := c.c006;'||chr(10)|| ' l_parsed_data_format(i) := c.c027; '||chr(10)|| ' end loop; '||chr(10)|| ''||chr(10)|| ' if :F4300_P200_IS_FIELD_NAME = ''Y'' then'||chr(10)|| ' l_first_row_is_col_name := true;'||chr(10)|| ' end if;'||chr(10)|| ''||chr(10)|| ' select clob001 into'; p:=p||' l_data from apex_collections where collection_name=''CLOB_CONTENT'';'||chr(10)|| ''||chr(10)|| ' wwv_flow_load_excel_data.load_excel_data ('||chr(10)|| ' p_string => l_data,'||chr(10)|| ' p_cnames => l_cnames,'||chr(10)|| ' p_upload => l_upload,'||chr(10)|| ' p_schema => :F4300_P200_OWNER,'||chr(10)|| ' p_table => wwv_flow_utilities.remove_spaces(:F4300_P200_TABLE_NAME),'||chr(10)|| ' p_data_type => l_data_type,'||chr(10)|| ' p_data_format => l_data_format,'||chr(10)|| ' p_parsed_d'; p:=p||'ata_format => l_parsed_data_format,'||chr(10)|| ' p_separator => lower(nvl(:F4300_P200_SEPARATOR,''\t'')),'||chr(10)|| ' p_enclosed_by => :F4300_P200_ENCLOSED_BY,'||chr(10)|| ' p_first_row_is_col_name => l_first_row_is_col_name,'||chr(10)|| ' p_load_to => :F4300_P230_LOAD_TO,'||chr(10)|| ' p_currency => :P200_CURRENCY,'||chr(10)|| ' p_numeric_chars => :P200_DECIMAL_CHARACTER||:P200_GROUP_SEPARATOR,'||chr(10)|| ' p_load_type =>'; p:=p||' :F4300_P230_LOAD_TYPE'||chr(10)|| ' );'||chr(10)|| 'end;'; wwv_flow_api.create_page_process( p_id => 117884026167328458.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id => 220.4306, p_process_sequence=> 20, p_process_point=> 'AFTER_SUBMIT', p_process_type=> 'PLSQL', p_process_name=> 'insert data', p_process_sql_clob => p, p_process_error_message=> '', p_process_when_button_id=>117073012899083351.4306 + wwv_flow_api.g_id_offset, p_process_success_message=> '', p_process_is_stateful_y_n=>'N', p_process_comment=>''); end; null; end; / begin declare p varchar2(32767) := null; l_clob clob; l_length number := 1; begin p:=p||'wwv_flow_sw_api.check_priv(:F4300_P200_OWNER);'; wwv_flow_api.create_page_process( p_id => 69935124519913951.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id => 220.4306, p_process_sequence=> 30, p_process_point=> 'BEFORE_HEADER', p_process_type=> 'PLSQL', p_process_name=> 'Validate Schema', p_process_sql_clob => p, p_process_error_message=> '方案无效', p_process_success_message=> '', p_process_is_stateful_y_n=>'N', p_process_comment=>''); end; null; end; / begin --------------------------------------- -- ...updatable report columns for page 220.4306 -- begin null; end; null; end; / --application/pages/page_230.4 prompt ...PAGE 230.4306: 加载数据 -- begin declare h varchar2(32767) := null; ph varchar2(32767) := null; begin h:=h||'AEUTL/sql_utl_imprt.htm'; ph := null; wwv_flow_api.create_page( p_id => 230.4306, p_flow_id=> wwv_flow.g_flow_id, p_tab_set=> '', p_name => '加载数据', p_step_title=> '加载数据', p_step_sub_title_type => 'TEXT_WITH_SUBSTITUTIONS', p_first_item=> 'AUTO_FIRST_ITEM', p_include_apex_css_js_yn=>'Y', p_autocomplete_on_off => '', p_group_id => 215729525348581243+ wwv_flow_api.g_id_offset, p_help_text => ' ', p_html_page_header => '', p_step_template => 3485606247566446.4306+ wwv_flow_api.g_id_offset, p_required_patch=> null + wwv_flow_api.g_id_offset, p_last_updated_by => '', p_last_upd_yyyymmddhh24miss => '20090409165727', p_page_is_public_y_n=> 'N', p_protection_level=> 'N', p_page_comment => ''); wwv_flow_api.set_page_help_text(p_flow_id=>wwv_flow.g_flow_id,p_flow_step_id=>230.4306,p_text=>h); end; end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 6681905105645992.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 230.4306, p_plug_name=> 'Menu', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 1, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_08', p_plug_source=> s, p_plug_source_type=> 'M'|| to_char(6678815232629976 + wwv_flow_api.g_id_offset), p_menu_template_id=> 6680621597641306.4306+ wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 23238502857624260.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 230.4306, p_plug_name=> 'Navigation', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 20, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_01', p_plug_source=> s, p_plug_source_type=> 112716503290208213 + wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 204342305194256542.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 230.4306, p_plug_name=> '加载数据', p_region_name=>'', p_plug_template=> 103900825378122658.4306+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 10, p_plug_display_column=> 1, p_plug_display_point=> 'AFTER_SHOW_ITEMS', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> '', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_display_condition_type => '', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / begin wwv_flow_api.create_page_button( p_id => 204357924615288019.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 230.4306, p_button_sequence=> 10, p_button_plug_id => 204342305194256542+wwv_flow_api.g_id_offset, p_button_name => 'Cancel', p_button_image_alt=> '取消', p_button_position=> 'REGION_TEMPLATE_CLOSE', p_button_alignment=> 'RIGHT', p_button_redirect_url=> 'f?p=&FLOW_ID.:9:&SESSION.::&DEBUG.:::', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 204360203968291570.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 230.4306, p_button_sequence=> 10, p_button_plug_id => 204342305194256542+wwv_flow_api.g_id_offset, p_button_name => 'Next', p_button_image_alt=> '下一步 >', p_button_position=> 'REGION_TEMPLATE_NEXT', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); end; / begin wwv_flow_api.create_page_branch( p_id=>4107407002608653.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 230.4306, p_branch_action=> 'f?p=&APP_ID.:18:&SESSION.::&DEBUG.:18,19,21::', p_branch_point=> 'AFTER_PROCESSING', p_branch_type=> 'REDIRECT_URL', p_branch_when_button_id=>204360203968291570.4306+ wwv_flow_api.g_id_offset, p_branch_sequence=> 10, p_branch_condition_type=> 'PLSQL_EXPRESSION', p_branch_condition=> ':F4300_P230_LOAD_TO = ''NEW'' and :F4300_P230_LOAD_FROM = ''UPLOAD''', p_save_state_before_branch_yn=>'N', p_branch_comment=> 'Created 26-SEP-2002 13:54 by CBCHO'); wwv_flow_api.create_page_branch( p_id=>101365129882269401.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 230.4306, p_branch_action=> 'f?p=4300:22:&SESSION.:::22,23,24,25', p_branch_point=> 'AFTER_PROCESSING', p_branch_type=> 'REDIRECT_URL', p_branch_when_button_id=>204360203968291570.4306+ wwv_flow_api.g_id_offset, p_branch_sequence=> 10, p_branch_condition_type=> 'PLSQL_EXPRESSION', p_branch_condition=> ':F4300_P230_LOAD_TO = ''EXIST'' and :F4300_P230_LOAD_FROM = ''UPLOAD''', p_save_state_before_branch_yn=>'N', p_branch_comment=> 'Created 21-AUG-2002 15:49 by CBCHO'); wwv_flow_api.create_page_branch( p_id=>7218508617368954.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 230.4306, p_branch_action=> 'f?p=&APP_ID.:200:&SESSION.::&DEBUG.:200,210,220,230,240,250,260,270::', p_branch_point=> 'AFTER_PROCESSING', p_branch_type=> 'REDIRECT_URL', p_branch_when_button_id=>204360203968291570.4306+ wwv_flow_api.g_id_offset, p_branch_sequence=> 20, p_branch_condition_type=> 'PLSQL_EXPRESSION', p_branch_condition=> ':F4300_P230_LOAD_TO = ''NEW'' and :F4300_P230_LOAD_FROM = ''PASTE''', p_save_state_before_branch_yn=>'N', p_branch_comment=> 'Created 23-JAN-2006 15:49 by CBCHO'); wwv_flow_api.create_page_branch( p_id=>7222330435375211.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 230.4306, p_branch_action=> 'f?p=&APP_ID.:240:&SESSION.::&DEBUG.:200,210,220,230,240,250,260,270::', p_branch_point=> 'AFTER_PROCESSING', p_branch_type=> 'REDIRECT_URL', p_branch_when_button_id=>204360203968291570.4306+ wwv_flow_api.g_id_offset, p_branch_sequence=> 30, p_branch_condition_type=> 'PLSQL_EXPRESSION', p_branch_condition=> ':F4300_P230_LOAD_TO = ''EXIST'' and :F4300_P230_LOAD_FROM = ''PASTE''', p_save_state_before_branch_yn=>'N', p_branch_comment=> 'Created 23-JAN-2006 15:50 by CBCHO'); end; / declare h varchar2(32767) := null; begin wwv_flow_api.create_page_item( p_id=>4077631590265585.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 230.4306, p_name=>'F4300_P230_LOAD_TYPE', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 20, p_item_plug_id => 204342305194256542.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_prompt=>'Load Type', p_display_as=> 'HIDDEN', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> null, p_cAttributes=> 'nowrap="nowrap"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', p_is_persistent=> 'Y', p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'选择要将数据加载到的目标位置。如果存在数据库表, 请选择 "现有表"。如果要创建新表, 请选择 "新表"。'; wwv_flow_api.create_page_item( p_id=>4085714930308101.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 230.4306, p_name=>'F4300_P230_LOAD_TO', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 30, p_item_plug_id => 204342305194256542.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default => 'NEW', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'加载到:', p_source_type=> 'STATIC', p_display_as=> 'RADIOGROUP', p_named_lov=> 'TABLE.OPTION', p_lov => '.'||to_char(87922429003554589 + wwv_flow_api.g_id_offset)||'.', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_tag_attributes2=> 'class="fielddata"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'ABOVE', p_field_alignment => 'LEFT', p_field_template => 103909823939152778.4306+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_protection_level => 'N', p_escape_on_http_input => 'Y', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'指定是从文件上载数据还是从电子表格复制并粘贴数据'; wwv_flow_api.create_page_item( p_id=>4087612637316960.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 230.4306, p_name=>'F4300_P230_LOAD_FROM', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 40, p_item_plug_id => 204342305194256542.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default => 'PASTE', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'加载于:', p_source_type=> 'STATIC', p_display_as=> 'RADIOGROUP', p_named_lov=> 'LOAD.OPTION', p_lov => '.'||to_char(87921416882551159 + wwv_flow_api.g_id_offset)||'.', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_tag_attributes2=> 'class="fielddata"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'ABOVE', p_field_alignment => 'LEFT', p_field_template => 103909823939152778.4306+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_protection_level => 'N', p_escape_on_http_input => 'Y', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'无可用的帮助文本'; wwv_flow_api.create_page_item( p_id=>5930027351163943.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 230.4306, p_name=>'P230_X', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 35, p_item_plug_id => 204342305194256542.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>' ', p_source_type=> 'STATIC', p_display_as=> 'DISPLAY_ONLY_HTML', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', p_field_template => 103909823939152778.4306+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_item_comment => ''); end; / begin wwv_flow_api.create_page_computation( p_id=> 144922211438995306.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 230.4306, p_computation_sequence => 40, p_computation_item=> 'F4300_P230_LOAD_TYPE', p_computation_point=> 'AFTER_SUBMIT', p_computation_type=> 'STATIC_ASSIGNMENT', p_computation_processed=> 'REPLACE_EXISTING', p_computation=> 'EXCEL', p_compute_when => 'F4300_P230_LOAD_FROM', p_compute_when_text=>'PASTE', p_compute_when_type=>'VAL_OF_ITEM_IN_COND_EQ_COND2'); null; end; / begin --------------------------------------- -- ...updatable report columns for page 230.4306 -- begin null; end; null; end; / --application/pages/page_240.4 prompt ...PAGE 240.4306: 加载数据 -- begin declare h varchar2(32767) := null; ph varchar2(32767) := null; begin h:=h||'AEUTL/sql_utl_exprt.htm'; ph := null; wwv_flow_api.create_page( p_id => 240.4306, p_flow_id=> wwv_flow.g_flow_id, p_tab_set=> '', p_name => '加载数据', p_step_title=> '加载数据', p_step_sub_title_type => 'TEXT_WITH_SUBSTITUTIONS', p_first_item=> 'AUTO_FIRST_ITEM', p_include_apex_css_js_yn=>'Y', p_autocomplete_on_off => '', p_group_id => 215729525348581243+ wwv_flow_api.g_id_offset, p_help_text => ' ', p_html_page_header => '', p_step_template => 3485606247566446.4306+ wwv_flow_api.g_id_offset, p_required_patch=> null + wwv_flow_api.g_id_offset, p_last_updated_by => '', p_last_upd_yyyymmddhh24miss => '20090409165727', p_page_is_public_y_n=> 'N', p_page_comment => ''); wwv_flow_api.set_page_help_text(p_flow_id=>wwv_flow.g_flow_id,p_flow_step_id=>240.4306,p_text=>h); end; end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 23362613308685338.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 240.4306, p_plug_name=> 'Menu', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 1, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_08', p_plug_source=> s, p_plug_source_type=> 'M'|| to_char(6678815232629976 + wwv_flow_api.g_id_offset), p_menu_template_id=> 6680621597641306.4306+ wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 204401222157339825.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 240.4306, p_plug_name=> '加载数据', p_region_name=>'', p_plug_template=> 103900825378122658.4306+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 10, p_plug_display_column=> 1, p_plug_display_point=> 'AFTER_SHOW_ITEMS', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> '', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_display_condition_type => '', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 204716203535971465.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 240.4306, p_plug_name=> 'Navigation', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 30, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_01', p_plug_source=> s, p_plug_source_type=> 204693724897946351 + wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'选择数据库方案, 此方案拥有要加载数据的表。
'; wwv_flow_api.create_page_plug ( p_id=> 221518500978440614.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 240.4306, p_plug_name=> '加载数据', p_region_name=>'', p_plug_template=> 104263607591363808.4306+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 40, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_03', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'QUERY_COLUMNS', p_plug_query_num_rows_type => 'NEXT_PREVIOUS_LINKS', p_plug_query_row_count_max => 500, p_plug_query_show_nulls_as => ' - ', p_plug_display_condition_type => '', p_pagination_display_position=>'BOTTOM_RIGHT', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / begin wwv_flow_api.create_page_button( p_id => 204418301768357118.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 240.4306, p_button_sequence=> 10, p_button_plug_id => 204401222157339825+wwv_flow_api.g_id_offset, p_button_name => 'Cancel', p_button_image_alt=> '取消', p_button_position=> 'REGION_TEMPLATE_CLOSE', p_button_alignment=> 'RIGHT', p_button_redirect_url=> 'f?p=4300:9:&FLOW_SESSION.', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 204420610772359727.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 240.4306, p_button_sequence=> 10, p_button_plug_id => 204401222157339825+wwv_flow_api.g_id_offset, p_button_name => 'Next', p_button_image_alt=> '下一步 >', p_button_position=> 'REGION_TEMPLATE_NEXT', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 204423219430362194.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 240.4306, p_button_sequence=> 10, p_button_plug_id => 204401222157339825+wwv_flow_api.g_id_offset, p_button_name => 'Previous', p_button_image_alt=> '< 上一步', p_button_position=> 'REGION_TEMPLATE_PREVIOUS', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); end; / begin wwv_flow_api.create_page_branch( p_id=>204421016156359729.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 240.4306, p_branch_action=> '250', p_branch_point=> 'AFTER_PROCESSING', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>204420610772359727.4306+ wwv_flow_api.g_id_offset, p_branch_sequence=> 10, p_save_state_before_branch_yn=>'N', p_branch_comment=> ''); wwv_flow_api.create_page_branch( p_id=>204423618157362195.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 240.4306, p_branch_action=> '230', p_branch_point=> 'BEFORE_VALIDATION', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>204423219430362194.4306+ wwv_flow_api.g_id_offset, p_branch_sequence=> 10, p_save_state_before_branch_yn=>'N', p_branch_comment=> ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'选择拥有要将 Excel 数据加载到的表的数据库方案。'; wwv_flow_api.create_page_item( p_id=>204430218669387043.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 240.4306, p_name=>'F4300_P240_TABLE_OWNER', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 10, p_item_plug_id => 204401222157339825.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'方案', p_source=>'wwv_flow_user_api.get_default_schema', p_source_type=> 'FUNCTION', p_display_as=> 'COMBOBOX', p_named_lov=> 'LIST_SCHEMA_OWNERS', p_lov => 'select htf.escape_sc(c.schema) d, c.schema v'||chr(10)|| 'from wwv_flow_company_schemas c,'||chr(10)|| ' wwv_flow_fnd_user u'||chr(10)|| 'where c.security_group_id = :flow_security_group_id and'||chr(10)|| ' u.security_group_id = :flow_security_group_id and'||chr(10)|| ' u.user_name = :flow_user and'||chr(10)|| ' (u.ALLOW_ACCESS_TO_SCHEMAS is null or'||chr(10)|| ' instr('':''||u.ALLOW_ACCESS_TO_SCHEMAS||'':'','':''||c.schema||'':'')>0)'||chr(10)|| 'order by 1'||chr(10)|| '', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', p_read_only_when=>'return wwv_flow_global.g_xe', p_read_only_when_type=>'FUNCTION_BODY', p_read_only_disp_attr=>'class="fielddatabold"', p_field_template => 103910729134154335.4306+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_protection_level => 'N', p_escape_on_http_input => 'Y', p_help_text => h, p_item_comment => ''); end; / begin wwv_flow_api.create_page_validation( p_id => 204445117363402835.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 240.4306, p_validation_name => 'F4300_P240_TABLE_OWNER Not Null', p_validation_sequence=> 1, p_validation => 'F4300_P240_TABLE_OWNER', p_validation_type => 'ITEM_NOT_NULL', p_error_message => '必须指定表所有者。', p_associated_item=> 204430218669387043.4306 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> 'generated 16-APR-2002 11:44'); null; end; / begin --------------------------------------- -- ...updatable report columns for page 240.4306 -- begin null; end; null; end; / --application/pages/page_250.4 prompt ...PAGE 250.4306: 加载数据 -- begin declare h varchar2(32767) := null; ph varchar2(32767) := null; begin h:=h||'AEUTL/sql_utl_exprt.htm'; ph := null; wwv_flow_api.create_page( p_id => 250.4306, p_flow_id=> wwv_flow.g_flow_id, p_tab_set=> '', p_name => '加载数据', p_step_title=> '加载数据', p_step_sub_title_type => 'TEXT_WITH_SUBSTITUTIONS', p_first_item=> 'AUTO_FIRST_ITEM', p_include_apex_css_js_yn=>'Y', p_autocomplete_on_off => '', p_group_id => 215729525348581243+ wwv_flow_api.g_id_offset, p_help_text => ' ', p_html_page_header => '', p_step_template => 3485606247566446.4306+ wwv_flow_api.g_id_offset, p_required_patch=> null + wwv_flow_api.g_id_offset, p_last_updated_by => '', p_last_upd_yyyymmddhh24miss => '20090409165727', p_page_is_public_y_n=> 'N', p_page_comment => ''); wwv_flow_api.set_page_help_text(p_flow_id=>wwv_flow.g_flow_id,p_flow_step_id=>250.4306,p_text=>h); end; end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 75404811081728816.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 250.4306, p_plug_name=> 'Menu', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 1, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_08', p_plug_source=> s, p_plug_source_type=> 'M'|| to_char(6678815232629976 + wwv_flow_api.g_id_offset), p_menu_template_id=> 6680621597641306.4306+ wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 204455910665421153.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 250.4306, p_plug_name=> '加载数据', p_region_name=>'', p_plug_template=> 103900825378122658.4306+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 10, p_plug_display_column=> 1, p_plug_display_point=> 'AFTER_SHOW_ITEMS', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 7082409118250737.4306+ wwv_flow_api.g_id_offset, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_num_rows => 15, p_plug_query_num_rows_type => 'ROWS_X_TO_Y_OF_Z', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_query_show_nulls_as => ' - ', p_plug_query_col_allignments => 'L:L:L:L:L:L:L', p_plug_query_sum_cols => '::::::', p_plug_query_number_formats => '::::::', p_plug_display_condition_type => '', p_pagination_display_position=>'BOTTOM_RIGHT', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 204719732421973249.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 250.4306, p_plug_name=> 'Navigation', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 30, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_01', p_plug_source=> s, p_plug_source_type=> 204693724897946351 + wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'选择要加载数据的数据库表。
'; wwv_flow_api.create_page_plug ( p_id=> 221519827644448330.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 250.4306, p_plug_name=> '加载数据', p_region_name=>'', p_plug_template=> 104263607591363808.4306+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 40, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_03', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'QUERY_COLUMNS', p_plug_query_num_rows_type => 'NEXT_PREVIOUS_LINKS', p_plug_query_row_count_max => 500, p_plug_query_show_nulls_as => ' - ', p_plug_display_condition_type => '', p_pagination_display_position=>'BOTTOM_RIGHT', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / begin wwv_flow_api.create_page_button( p_id => 204459408919425445.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 250.4306, p_button_sequence=> 10, p_button_plug_id => 204455910665421153+wwv_flow_api.g_id_offset, p_button_name => 'Cancel', p_button_image_alt=> '取消', p_button_position=> 'REGION_TEMPLATE_CLOSE', p_button_alignment=> 'RIGHT', p_button_redirect_url=> 'f?p=4300:9:&SESSION.', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 204464324156429813.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 250.4306, p_button_sequence=> 10, p_button_plug_id => 204455910665421153+wwv_flow_api.g_id_offset, p_button_name => 'Next', p_button_image_alt=> '下一步 >', p_button_position=> 'REGION_TEMPLATE_NEXT', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 204461717230427774.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 250.4306, p_button_sequence=> 10, p_button_plug_id => 204455910665421153+wwv_flow_api.g_id_offset, p_button_name => 'Previous', p_button_image_alt=> '< 上一步', p_button_position=> 'REGION_TEMPLATE_PREVIOUS', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); end; / begin wwv_flow_api.create_page_branch( p_id=>204464717218429815.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 250.4306, p_branch_action=> '270', p_branch_point=> 'AFTER_PROCESSING', p_branch_type=> 'BRANCH_TO_STEP', p_branch_sequence=> 10, p_save_state_before_branch_yn=>'N', p_branch_comment=> ''); wwv_flow_api.create_page_branch( p_id=>204462102510427777.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 250.4306, p_branch_action=> '240', p_branch_point=> 'BEFORE_VALIDATION', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>204461717230427774.4306+ wwv_flow_api.g_id_offset, p_branch_sequence=> 10, p_save_state_before_branch_yn=>'N', p_branch_comment=> ''); end; / declare h varchar2(32767) := null; begin wwv_flow_api.create_page_item( p_id=>77440924890766833.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 250.4306, p_name=>'P250_CASE_SENSITIVE', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 20, p_item_plug_id => 204455910665421153.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_source_type=> 'STATIC', p_display_as=> 'CHECKBOX', p_named_lov=> 'CASE.SENSITIVE.Y', p_lov => '.'||to_char(87923517360560740 + wwv_flow_api.g_id_offset)||'.', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_tag_attributes2=> 'class="fielddata"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', p_field_template => 103909823939152778.4306+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'表所有者的名称'; wwv_flow_api.create_page_item( p_id=>77443220866775141.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 250.4306, p_name=>'P250_OWNER', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 5, p_item_plug_id => 204455910665421153.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'方案:', p_source=>'F4300_P240_TABLE_OWNER', p_source_type=> 'ITEM', p_display_as=> 'DISPLAY_ONLY_HTML', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_tag_attributes => 'class="fielddatabold"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', p_field_template => 103909823939152778.4306+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'选择要向其中加载数据的数据库表。默认情况下, 所有表名都会转换为全部大写的形式。选择保留大小写可覆盖此默认行为。'; wwv_flow_api.create_page_item( p_id=>204473631344441945.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 250.4306, p_name=>'F4300_P250_TABLE_NAME', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 10, p_item_plug_id => 204455910665421153.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'表名', p_source_type=> 'STATIC', p_display_as=> 'POPUP', p_lov => 'select table_name a, table_name b'||chr(10)|| 'from sys.dba_tables'||chr(10)|| 'where owner = :F4300_P240_TABLE_OWNER'||chr(10)|| 'and table_name not like ''BIN$%'''||chr(10)|| 'order by 1', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', p_field_template => 103910729134154335.4306+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_protection_level => 'N', p_help_text => h, p_item_comment => ''); end; / begin wwv_flow_api.create_page_computation( p_id=> 77442009784771937.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 250.4306, p_computation_sequence => 10, p_computation_item=> 'F4300_P250_TABLE_NAME', p_computation_point=> 'AFTER_SUBMIT', p_computation_type=> 'PLSQL_EXPRESSION', p_computation_processed=> 'REPLACE_EXISTING', p_computation=> 'upper(:F4300_P250_TABLE_NAME)', p_compute_when => 'P250_CASE_SENSITIVE', p_compute_when_type=>'ITEM_IS_NULL'); null; end; / begin wwv_flow_api.create_page_validation( p_id => 204475426599444098.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 250.4306, p_validation_name => 'F4300_P250_TABLE_NAME Not Null', p_validation_sequence=> 1, p_validation => 'F4300_P250_TABLE_NAME', p_validation_type => 'ITEM_NOT_NULL', p_error_message => '必须指定表名。', p_associated_item=> 204473631344441945.4306 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> 'generated 16-APR-2002 11:51'); null; end; / begin wwv_flow_api.create_page_validation( p_id => 77472003251798396.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 250.4306, p_validation_name => 'table exits', p_validation_sequence=> 10, p_validation => 'select 1'||chr(10)|| 'from sys.dba_objects'||chr(10)|| 'where owner = :F4300_P240_TABLE_OWNER'||chr(10)|| 'and object_name = :F4300_P250_TABLE_NAME'||chr(10)|| 'and object_type in (''TABLE'')', p_validation_type => 'EXISTS', p_error_message => '表不存在。', p_validation_condition=> 'Previous', p_validation_condition_type=> 'REQUEST_NOT_EQUAL_CONDITION', p_associated_item=> 204473631344441945.4306 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin declare p varchar2(32767) := null; l_clob clob; l_length number := 1; begin p:=p||'wwv_flow_sw_api.check_priv(:F4300_P240_TABLE_OWNER);'; wwv_flow_api.create_page_process( p_id => 71467820924021531.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id => 250.4306, p_process_sequence=> 10, p_process_point=> 'BEFORE_HEADER', p_process_type=> 'PLSQL', p_process_name=> 'Validate Schema', p_process_sql_clob => p, p_process_error_message=> '方案无效', p_process_success_message=> '', p_process_is_stateful_y_n=>'N', p_process_comment=>''); end; null; end; / begin --------------------------------------- -- ...updatable report columns for page 250.4306 -- begin null; end; null; end; / --application/pages/page_260.4 prompt ...PAGE 260.4306: 加载数据 -- begin declare h varchar2(32767) := null; ph varchar2(32767) := null; begin h:=h||'AEUTL/sql_utl_exprt.htm'; ph := null; wwv_flow_api.create_page( p_id => 260.4306, p_flow_id=> wwv_flow.g_flow_id, p_tab_set=> '', p_name => '加载数据', p_step_title=> '加载数据', p_step_sub_title_type => 'TEXT_WITH_SUBSTITUTIONS', p_first_item=> 'NO_FIRST_ITEM', p_include_apex_css_js_yn=>'Y', p_autocomplete_on_off => '', p_group_id => 215729525348581243+ wwv_flow_api.g_id_offset, p_help_text => ' ', p_html_page_header => '', p_step_template => 3485606247566446.4306+ wwv_flow_api.g_id_offset, p_required_patch=> null + wwv_flow_api.g_id_offset, p_last_updated_by => '', p_last_upd_yyyymmddhh24miss => '20090409165727', p_page_is_public_y_n=> 'N', p_page_comment => ''); wwv_flow_api.set_page_help_text(p_flow_id=>wwv_flow.g_flow_id,p_flow_step_id=>260.4306,p_text=>h); end; end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 23365808244693361.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 260.4306, p_plug_name=> 'Menu', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 1, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_08', p_plug_source=> s, p_plug_source_type=> 'M'|| to_char(6678815232629976 + wwv_flow_api.g_id_offset), p_menu_template_id=> 6680621597641306.4306+ wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 204491026143474742.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 260.4306, p_plug_name=> '加载数据', p_region_name=>'', p_plug_template=> 103900825378122658.4306+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 10, p_plug_display_column=> 1, p_plug_display_point=> 'AFTER_SHOW_ITEMS', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'wwv_flow_load_data.display_etable_property ('||chr(10)|| ' p_table_owner => :F4300_P240_TABLE_OWNER,'||chr(10)|| ' p_table_name => :F4300_P250_TABLE_NAME,'||chr(10)|| ' p_collection_name => ''EXCEL_IMPORT'''||chr(10)|| ' );'; wwv_flow_api.create_page_plug ( p_id=> 204502624837490516.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 260.4306, p_plug_name=> '定义列映射', p_region_name=>'', p_plug_template=> 279748823389483962.4306+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 30, p_plug_display_column=> 1, p_plug_display_point=> 'AFTER_SHOW_ITEMS', p_plug_source=> s, p_plug_source_type=> 'PLSQL_PROCEDURE', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 7082409118250737.4306+ wwv_flow_api.g_id_offset, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_num_rows => 15, p_plug_query_num_rows_type => 'ROWS_X_TO_Y_OF_Z', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_query_show_nulls_as => ' - ', p_plug_query_col_allignments => 'L:L:L:L:L:L:L', p_plug_query_sum_cols => '::::::', p_plug_query_number_formats => '::::::', p_plug_display_condition_type => '', p_pagination_display_position=>'BOTTOM_RIGHT', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 204723028108975231.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 260.4306, p_plug_name=> 'Navigation', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 40, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_01', p_plug_source=> s, p_plug_source_type=> 204693724897946351 + wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'此页可用于预览数据的加载方式。使数据库列名与数据中的列相匹配。要上载列, 请选择是或否。星号 (*) 表示必需的列。
'||chr(10)|| '要将数据上载到所选表, 请单击导入数据。
'||chr(10)|| '使用 SQL 工作室可以修改表属性, 如更改列长度, 设置非空列或更改列类型。
'; wwv_flow_api.create_page_plug ( p_id=> 221526028729477051.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 260.4306, p_plug_name=> '加载数据', p_region_name=>'', p_plug_template=> 104263607591363808.4306+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 50, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_03', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'QUERY_COLUMNS', p_plug_query_num_rows_type => 'NEXT_PREVIOUS_LINKS', p_plug_query_row_count_max => 500, p_plug_query_show_nulls_as => ' - ', p_plug_display_condition_type => '', p_pagination_display_position=>'BOTTOM_RIGHT', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / begin wwv_flow_api.create_page_button( p_id => 204494532430479511.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 260.4306, p_button_sequence=> 10, p_button_plug_id => 204491026143474742+wwv_flow_api.g_id_offset, p_button_name => 'Cancel', p_button_image_alt=> '取消', p_button_position=> 'REGION_TEMPLATE_CLOSE', p_button_alignment=> 'RIGHT', p_button_redirect_url=> 'f?p=4300:9:&SESSION.', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 204499923557486442.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 260.4306, p_button_sequence=> 10, p_button_plug_id => 204491026143474742+wwv_flow_api.g_id_offset, p_button_name => 'Import', p_button_image_alt=> '加载数据', p_button_position=> 'REGION_TEMPLATE_CREATE', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 204496812129483108.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 260.4306, p_button_sequence=> 10, p_button_plug_id => 204491026143474742+wwv_flow_api.g_id_offset, p_button_name => 'Previous', p_button_image_alt=> '< 上一步', p_button_position=> 'REGION_TEMPLATE_PREVIOUS', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); end; / begin wwv_flow_api.create_page_branch( p_id=>204500300920486444.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 260.4306, p_branch_action=> '11', p_branch_point=> 'AFTER_PROCESSING', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>204499923557486442.4306+ wwv_flow_api.g_id_offset, p_branch_sequence=> 10, p_save_state_before_branch_yn=>'N', p_branch_comment=> ''); wwv_flow_api.create_page_branch( p_id=>204497212696483110.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 260.4306, p_branch_action=> '270', p_branch_point=> 'BEFORE_VALIDATION', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>204496812129483108.4306+ wwv_flow_api.g_id_offset, p_branch_sequence=> 10, p_save_state_before_branch_yn=>'N', p_branch_comment=> ''); end; / declare h varchar2(32767) := null; begin wwv_flow_api.create_page_item( p_id=>3876124806580817.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 260.4306, p_name=>'F4300_P260_DUMMY', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 30, p_item_plug_id => 204491026143474742.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_prompt=>'Dummy', p_display_as=> 'HIDDEN', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> null, p_cAttributes=> 'nowrap="nowrap"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', p_is_persistent=> 'Y', p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'表所有者的名称'; wwv_flow_api.create_page_item( p_id=>204576022341643606.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 260.4306, p_name=>'F4300_P260_TABLE_OWNER', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 10, p_item_plug_id => 204491026143474742.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'方案:', p_source=>'F4300_P240_TABLE_OWNER', p_source_type=> 'ITEM', p_display_as=> 'DISPLAY_ONLY_HTML', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_tag_attributes => 'class="fielddatabold"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', p_field_template => 103909823939152778.4306+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'要将数据加载到的表的名称'; wwv_flow_api.create_page_item( p_id=>204580511127648778.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 260.4306, p_name=>'F4300_P260_TABLE_NAME', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 20, p_item_plug_id => 204491026143474742.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'表名:', p_source=>'F4300_P250_TABLE_NAME', p_source_type=> 'ITEM', p_display_as=> 'DISPLAY_ONLY_HTML', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_tag_attributes => 'class="fielddatabold"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', p_field_template => 103909823939152778.4306+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_item_comment => ''); end; / begin wwv_flow_api.create_page_computation( p_id=> 3877004851584509.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 260.4306, p_computation_sequence => 10, p_computation_item=> 'F4300_P260_DUMMY', p_computation_point=> 'AFTER_SUBMIT', p_computation_type=> 'FUNCTION_BODY', p_computation_processed=> 'REPLACE_EXISTING', p_computation=> 'declare'||chr(10)|| 'begin'||chr(10)|| 'for i in 1..wwv_flow.g_f04.count loop'||chr(10)|| ' wwv_flow_collection.update_member_attribute ('||chr(10)|| ' p_collection_name => ''EXCEL_IMPORT'','||chr(10)|| ' p_seq => wwv_flow.g_f04(i),'||chr(10)|| ' p_attr_number => 1,'||chr(10)|| ' p_attr_value => wwv_flow_utilities.remove_spaces(wwv_flow.g_f01(i))'||chr(10)|| ' );'||chr(10)|| ''||chr(10)|| ' wwv_flow_collection.update_member_attribute ('||chr(10)|| ' p_collection_name => ''EXCEL_IMPORT'','||chr(10)|| ' p_seq => wwv_flow.g_f04(i),'||chr(10)|| ' p_attr_number => 4,'||chr(10)|| ' p_attr_value => wwv_flow.g_f02(i)'||chr(10)|| ' );'||chr(10)|| ''||chr(10)|| ' wwv_flow_collection.update_member_attribute ('||chr(10)|| ' p_collection_name => ''EXCEL_IMPORT'','||chr(10)|| ' p_seq => wwv_flow.g_f04(i),'||chr(10)|| ' p_attr_number => 6,'||chr(10)|| ' p_attr_value => wwv_flow.g_f05(i)'||chr(10)|| ' );'||chr(10)|| 'end loop;'||chr(10)|| 'return ''true'';'||chr(10)|| ''||chr(10)|| 'end;', p_compute_when => '', p_compute_when_type=>''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 1970910321700429.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 260.4306, p_validation_name => 'column name not null', p_validation_sequence=> 10, p_validation => 'declare'||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| ' l_null_found number := 0;'||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| 'begin'||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| ' for i in 1..wwv_flow.g_f01.count loop'||chr(10)|| ''||chr(10)|| ' if wwv_flow.g_f02(i)=''Y'' then'||chr(10)|| ''||chr(10)|| ' if replace(wwv_flow.g_f01(i),''%''||''null%'',null) is null then'||chr(10)|| ''||chr(10)|| ' l_null_found := l_null_found + 1;'||chr(10)|| ''||chr(10)|| ' end if;'||chr(10)|| ''||chr(10)|| ' end if;'||chr(10)|| ''||chr(10)|| ' end loop;'||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| ' if l_null_found > 0 then'||chr(10)|| ''||chr(10)|| ' return false;'||chr(10)|| ''||chr(10)|| ' else'||chr(10)|| ''||chr(10)|| ' return true;'||chr(10)|| ''||chr(10)|| ' end if;'||chr(10)|| ''||chr(10)|| 'end;', p_validation_type => 'FUNC_BODY_RETURNING_BOOLEAN', p_error_message => '列名不能为空。', p_associated_item=> .4306 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 1976413962729112.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 260.4306, p_validation_name => 'at least one upload selected', p_validation_sequence=> 10, p_validation => 'declare'||chr(10)|| ''||chr(10)|| ' l_no_count number := 0;'||chr(10)|| ''||chr(10)|| 'begin'||chr(10)|| ''||chr(10)|| ' for i in 1..wwv_flow.g_f02.count loop'||chr(10)|| ''||chr(10)|| ' if wwv_flow.g_f02(i) = ''N'' then'||chr(10)|| ''||chr(10)|| ' l_no_count := l_no_count + 1;'||chr(10)|| ''||chr(10)|| ' end if;'||chr(10)|| ''||chr(10)|| ' end loop;'||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| ' if l_no_count = wwv_flow.g_f02.count then'||chr(10)|| ''||chr(10)|| ' return false;'||chr(10)|| ''||chr(10)|| ' else'||chr(10)|| ''||chr(10)|| ' return true;'||chr(10)|| ''||chr(10)|| ' end if;'||chr(10)|| ''||chr(10)|| 'end;', p_validation_type => 'FUNC_BODY_RETURNING_BOOLEAN', p_error_message => '必须至少指定一个要包含的列才能上载数据。', p_associated_item=> .4306 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 2246727491917184.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 260.4306, p_validation_name => 'not null columns must be loaded', p_validation_sequence=> 10, p_validation => 'declare'||chr(10)|| ''||chr(10)|| ' l_not_null_error number := 0;'||chr(10)|| ''||chr(10)|| ' l_columns varchar2(32767) := null;'||chr(10)|| ''||chr(10)|| ' l_not_null_cols varchar2(32767) := null;'||chr(10)|| ''||chr(10)|| ' l_trigger_body long;'||chr(10)|| ''||chr(10)|| 'begin'||chr(10)|| ''||chr(10)|| ' l_columns := wwv_flow_utilities.table_to_string2(wwv_flow.g_f01);'||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| ' -- get trigger body if it is before insert trigger on the selected table'||chr(10)|| ''||chr(10)|| ' for c1 in (select trigger_body'||chr(10)|| ''||chr(10)|| ' from sys.dba_triggers'||chr(10)|| ''||chr(10)|| ' where table_name = :F4300_P250_TABLE_NAME'||chr(10)|| ''||chr(10)|| ' and table_owner = :F4300_P240_TABLE_OWNER'||chr(10)|| ''||chr(10)|| ' and trigger_type like ''%BEFORE%'''||chr(10)|| ''||chr(10)|| ' and triggering_event like ''%INSERT%'')'||chr(10)|| ''||chr(10)|| ' loop'||chr(10)|| ''||chr(10)|| ' l_trigger_body := c1.trigger_body;'||chr(10)|| ''||chr(10)|| ' end loop;'||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| ' -- get all not null columns'||chr(10)|| ''||chr(10)|| ' for c1 in (select column_name'||chr(10)|| ''||chr(10)|| ' from sys.dba_tab_columns'||chr(10)|| ''||chr(10)|| ' where table_name = :F4300_P250_TABLE_NAME'||chr(10)|| ''||chr(10)|| ' and owner = :F4300_P240_TABLE_OWNER'||chr(10)|| ''||chr(10)|| ' and nullable = ''N'''||chr(10)|| ''||chr(10)|| ' ) loop'||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| ' for i in 1..wwv_flow.g_f01.count loop'||chr(10)|| ''||chr(10)|| ' -- If column names user selected is equal to not null columns,'||chr(10)|| ''||chr(10)|| ' -- user didn''t include to upload'||chr(10)|| ''||chr(10)|| ' -- and the column doesn''t have trigger, raise an error.'||chr(10)|| ''||chr(10)|| ' if (wwv_flow.g_f01(i) = c1.column_name) then'||chr(10)|| ''||chr(10)|| ' if wwv_flow.g_f02(i) = ''N'' then'||chr(10)|| ''||chr(10)|| ' if instr(nvl(UPPER(l_trigger_body),'' ''),c1.column_name) = 0 then'||chr(10)|| ''||chr(10)|| ' l_not_null_error := l_not_null_error + 1;'||chr(10)|| ''||chr(10)|| ' l_not_null_cols := l_not_null_cols||'',''||c1.column_name;'||chr(10)|| ''||chr(10)|| ' end if;'||chr(10)|| ''||chr(10)|| ' end if;'||chr(10)|| ''||chr(10)|| ' else'||chr(10)|| ''||chr(10)|| ' -- If user did not select not null columns,'||chr(10)|| ''||chr(10)|| ' -- and the column doesn''t have trigger'||chr(10)|| ''||chr(10)|| ' -- raise an error.'||chr(10)|| ''||chr(10)|| ' if instr(l_columns,c1.column_name) = 0 then'||chr(10)|| ''||chr(10)|| ' if instr(nvl(UPPER(l_trigger_body),'' ''),c1.column_name) = 0 then'||chr(10)|| ''||chr(10)|| ' l_not_null_error := l_not_null_error + 1;'||chr(10)|| ''||chr(10)|| ' l_not_null_cols := l_not_null_cols||'',''||c1.column_name;'||chr(10)|| ''||chr(10)|| ' end if;'||chr(10)|| ''||chr(10)|| ' end if;'||chr(10)|| ''||chr(10)|| ' end if;'||chr(10)|| ''||chr(10)|| ' end loop;'||chr(10)|| ''||chr(10)|| ' end loop;'||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| ' if l_not_null_error > 0 then'||chr(10)|| ''||chr(10)|| ' return false;'||chr(10)|| ''||chr(10)|| ' else'||chr(10)|| ''||chr(10)|| ' return true;'||chr(10)|| ''||chr(10)|| ' end if;'||chr(10)|| ''||chr(10)|| 'end;', p_validation_type => 'FUNC_BODY_RETURNING_BOOLEAN', p_error_message => '&F4300_P240_TABLE_OWNER..&F4300_P250_TABLE_NAME. 中存在“非空”列。请选择在没有错误的情况下上载数据。', p_associated_item=> .4306 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 2416102541642929.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 260.4306, p_validation_name => 'duplicate column names', p_validation_sequence=> 10, p_validation => 'declare'||chr(10)|| ' l_col varchar2(32767) := null;'||chr(10)|| ' l_duplicate boolean := true;'||chr(10)|| ''||chr(10)|| 'begin'||chr(10)|| ' for i in 1..wwv_flow.g_f01.count loop'||chr(10)|| ' -- if column selected is to be uploaded, check for duplicate column selection'||chr(10)|| ' if wwv_flow.g_f02(i) = ''Y'' then'||chr(10)|| ' if instr('':''||nvl(l_col,'' '')||'':'','':''||wwv_flow.g_f01(i)||'':'') > 0 then'||chr(10)|| ' l_duplicate := false;'||chr(10)|| ' end if;'||chr(10)|| ''||chr(10)|| ' if i > 1 then'||chr(10)|| ' l_col := '':'';'||chr(10)|| ' end if;'||chr(10)|| ' l_col := l_col||wwv_flow.g_f01(i);'||chr(10)|| ' end if;'||chr(10)|| ' end loop;'||chr(10)|| ''||chr(10)|| ' return l_duplicate;'||chr(10)|| 'end;', p_validation_type => 'FUNC_BODY_RETURNING_BOOLEAN', p_error_message => '选择了重复的列名。', p_associated_item=> .4306 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin declare p varchar2(32767) := null; l_clob clob; l_length number := 1; begin p:=p||'declare '||chr(10)|| ' l_first_row_is_col_name boolean := false;'||chr(10)|| ' l_cnames wwv_flow_global.vc_arr2;'||chr(10)|| ' --'||chr(10)|| ' l_data_types wwv_flow_global.vc_arr2;'||chr(10)|| ' l_parsed_data_format wwv_flow_global.vc_arr2;'||chr(10)|| ' j pls_integer := 0;'||chr(10)|| ' l_data clob := empty_clob();'||chr(10)|| 'begin'||chr(10)|| ' if :F4300_P270_IS_FIELD_NAME = ''Y'' then'||chr(10)|| ' l_first_row_is_col_name := true;'||chr(10)|| ' end if;'||chr(10)|| ''||chr(10)|| ''; p:=p||' for i in 1..wwv_flow.g_f01.count loop'||chr(10)|| ' l_cnames(i) := wwv_flow.g_f01(i);'||chr(10)|| ' for c1 in (select data_type'||chr(10)|| ' from sys.dba_tab_columns'||chr(10)|| ' where owner = :F4300_P240_TABLE_OWNER'||chr(10)|| ' and table_name = upper(:F4300_P250_TABLE_NAME)'||chr(10)|| ' and column_name = wwv_flow.g_f01(i)'||chr(10)|| ' order by column_id)'||chr(10)|| ' loop'||chr(10)|| ' l_data_types(i) := c1.data_type; '; p:=p||' '||chr(10)|| ' end loop; '||chr(10)|| ' end loop;'||chr(10)|| ' '||chr(10)|| ' for c in (select * '||chr(10)|| ' from wwv_flow_collections '||chr(10)|| ' where collection_name=''EXCEL_IMPORT'') loop'||chr(10)|| ' j := j + 1; '||chr(10)|| ' l_parsed_data_format(j) := c.c027; '||chr(10)|| ' end loop; '||chr(10)|| ''||chr(10)|| ' select clob001 into l_data from apex_collections where collection_name=''CLOB_CONTENT'';'||chr(10)|| ''||chr(10)|| ' wwv_flow_load_excel_data.load_excel_data ('||chr(10)|| ' p_string => l_data,'||chr(10)|| ' p_cnam'; p:=p||'es => l_cnames,'||chr(10)|| ' p_upload => wwv_flow.g_f02,'||chr(10)|| ' p_schema => :F4300_P240_TABLE_OWNER,'||chr(10)|| ' p_table => :F4300_P250_TABLE_NAME,'||chr(10)|| ' p_data_type => l_data_types,'||chr(10)|| ' p_data_format => wwv_flow.g_f05,'||chr(10)|| ' p_parsed_data_format => l_parsed_data_format,'||chr(10)|| ' p_separator => lower(nvl(:F4300_P270_SEPARATOR,''\t'')),'||chr(10)|| ' p_enclosed_by => :F4300_P270_ENCLOSED_BY,'||chr(10)|| ' p_first_row_is_col_name => '; p:=p||'l_first_row_is_col_name,'||chr(10)|| ' p_load_to => :F4300_P230_LOAD_TO,'||chr(10)|| ' p_currency => :P270_CURRENCY,'||chr(10)|| ' p_numeric_chars => :P270_DECIMAL_CHARACTER||:P270_GROUP_SEPARATOR,'||chr(10)|| ' p_load_type => :F4300_P230_LOAD_TYPE'||chr(10)|| ' );'||chr(10)|| 'end;'; wwv_flow_api.create_page_process( p_id => 1998328769813398.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id => 260.4306, p_process_sequence=> 10, p_process_point=> 'AFTER_SUBMIT', p_process_type=> 'PLSQL', p_process_name=> 'insert data', p_process_sql_clob => p, p_process_error_message=> '插入数据时出错。', p_process_when_button_id=>204499923557486442.4306 + wwv_flow_api.g_id_offset, p_process_success_message=> '', p_process_is_stateful_y_n=>'N', p_process_comment=>''); end; null; end; / begin declare p varchar2(32767) := null; l_clob clob; l_length number := 1; begin p:=p||'wwv_flow_sw_api.check_priv(:F4300_P240_TABLE_OWNER);'; wwv_flow_api.create_page_process( p_id => 71470128327033191.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id => 260.4306, p_process_sequence=> 20, p_process_point=> 'BEFORE_HEADER', p_process_type=> 'PLSQL', p_process_name=> 'Validate Schema', p_process_sql_clob => p, p_process_error_message=> '方案无效', p_process_success_message=> '', p_process_is_stateful_y_n=>'N', p_process_comment=>''); end; null; end; / begin --------------------------------------- -- ...updatable report columns for page 260.4306 -- begin null; end; null; end; / --application/pages/page_270.4 prompt ...PAGE 270.4306: 加载数据 -- begin declare h varchar2(32767) := null; ph varchar2(32767) := null; begin h:=h||'AEUTL/sql_utl_exprt.htm'; ph:=ph||''; wwv_flow_api.create_page( p_id => 270.4306, p_flow_id=> wwv_flow.g_flow_id, p_tab_set=> '', p_name => '加载数据', p_step_title=> '加载数据', p_step_sub_title_type => 'TEXT_WITH_SUBSTITUTIONS', p_first_item=> 'NO_FIRST_ITEM', p_include_apex_css_js_yn=>'Y', p_autocomplete_on_off => '', p_group_id => 215729525348581243+ wwv_flow_api.g_id_offset, p_help_text => ' ', p_html_page_header => ' ', p_step_template => 3485606247566446.4306+ wwv_flow_api.g_id_offset, p_required_patch=> null + wwv_flow_api.g_id_offset, p_last_updated_by => '', p_last_upd_yyyymmddhh24miss => '20090409165727', p_page_is_public_y_n=> 'N', p_page_comment => ''); wwv_flow_api.set_page_help_text(p_flow_id=>wwv_flow.g_flow_id,p_flow_step_id=>270.4306,p_text=>h); wwv_flow_api.set_html_page_header(p_flow_id=>wwv_flow.g_flow_id,p_flow_step_id=>270.4306,p_text=>ph); end; end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 21176307696090495.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 270.4306, p_plug_name=> '全球化', p_region_name=>'', p_plug_template=> 21175625245088699.4306+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 30, p_plug_display_column=> 1, p_plug_display_point=> 'AFTER_SHOW_ITEMS', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> '', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_display_condition_type => '', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 23364531662690652.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 270.4306, p_plug_name=> 'Menu', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 1, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_08', p_plug_source=> s, p_plug_source_type=> 'M'|| to_char(6678815232629976 + wwv_flow_api.g_id_offset), p_menu_template_id=> 6680621597641306.4306+ wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 204523926135583458.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 270.4306, p_plug_name=> '加载数据', p_region_name=>'', p_plug_template=> 103900825378122658.4306+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 10, p_plug_display_column=> 1, p_plug_display_point=> 'AFTER_SHOW_ITEMS', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> '', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_display_condition_type => '', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 204526605078583471.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 270.4306, p_plug_name=> 'Navigation', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 20, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_01', p_plug_source=> s, p_plug_source_type=> 204693724897946351 + wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> '', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'从电子表格程序 (如 Microsoft Excel) 中复制要导入的数据, 然后将其粘贴到“数据”字段。
'; wwv_flow_api.create_page_plug ( p_id=> 221523002972460150.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 270.4306, p_plug_name=> '加载数据', p_region_name=>'', p_plug_template=> 104263607591363808.4306+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 40, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_03', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'QUERY_COLUMNS', p_plug_query_num_rows_type => 'NEXT_PREVIOUS_LINKS', p_plug_query_row_count_max => 500, p_plug_query_show_nulls_as => ' - ', p_plug_display_condition_type => '', p_pagination_display_position=>'BOTTOM_RIGHT', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / begin wwv_flow_api.create_page_button( p_id => 204524106105583459.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 270.4306, p_button_sequence=> 10, p_button_plug_id => 204523926135583458+wwv_flow_api.g_id_offset, p_button_name => 'Cancel', p_button_image_alt=> '取消', p_button_position=> 'REGION_TEMPLATE_CLOSE', p_button_alignment=> 'RIGHT', p_button_redirect_url=> 'f?p=4300:9:&FLOW_SESSION.', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 204524413345583460.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 270.4306, p_button_sequence=> 10, p_button_plug_id => 204523926135583458+wwv_flow_api.g_id_offset, p_button_name => 'Next', p_button_image_alt=> '下一步 >', p_button_position=> 'REGION_TEMPLATE_NEXT', p_button_alignment=> 'RIGHT', p_button_redirect_url=> 'javascript:data_set();', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 204524712263583462.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 270.4306, p_button_sequence=> 10, p_button_plug_id => 204523926135583458+wwv_flow_api.g_id_offset, p_button_name => 'Previous', p_button_image_alt=> '< 上一步', p_button_position=> 'REGION_TEMPLATE_PREVIOUS', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); end; / begin wwv_flow_api.create_page_branch( p_id=>204526930972583473.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 270.4306, p_branch_action=> '260', p_branch_point=> 'AFTER_PROCESSING', p_branch_type=> 'BRANCH_TO_STEP', p_branch_sequence=> 10, p_branch_condition_type=> 'REQUEST_EQUALS_CONDITION', p_branch_condition=> 'NEXT', p_save_state_before_branch_yn=>'N', p_branch_comment=> ''); wwv_flow_api.create_page_branch( p_id=>204527202242583475.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 270.4306, p_branch_action=> '250', p_branch_point=> 'BEFORE_COMPUTATION', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>204524712263583462.4306+ wwv_flow_api.g_id_offset, p_branch_sequence=> 10, p_save_state_before_branch_yn=>'N', p_branch_comment=> ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'标识列分隔符。使用 \t 代表制表符。
'; wwv_flow_api.create_page_item( p_id=>4182706815845162.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 270.4306, p_name=>'F4300_P270_SEPARATOR', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 30, p_item_plug_id => 204523926135583458.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default => ',', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'分隔符', p_display_as=> 'TEXT', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 2, p_cMaxlength=> 2, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', p_display_when=>'F4300_P230_LOAD_TYPE', p_display_when2=>'CSV', p_display_when_type=>'VAL_OF_ITEM_IN_COND_EQ_COND2', p_field_template => 103910729134154335.4306+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_reference_id => 3832614597433912, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'标识可选的封闭符。
'; wwv_flow_api.create_page_item( p_id=>4184502444853276.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 270.4306, p_name=>'F4300_P270_ENCLOSED_BY', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 40, p_item_plug_id => 204523926135583458.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'封闭符', p_display_as=> 'TEXT', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 2, p_cMaxlength=> 2, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', p_display_when=>'F4300_P230_LOAD_TYPE', p_display_when2=>'CSV', p_display_when_type=>'VAL_OF_ITEM_IN_COND_EQ_COND2', p_field_template => 103909823939152778.4306+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_reference_id => 3832902320433912, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'如果数据中包含国际货币符号, 请在此处输入。
'||chr(10)|| '例如, 如果数据中包含 "€1,234.56" 或 "¥1,234.56", 请输入 "€" 或 "¥"。否则, 将无法正确加载数据。
'; wwv_flow_api.create_page_item( p_id=>21177230552097084.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 270.4306, p_name=>'P270_CURRENCY', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 60, p_item_plug_id => 21176307696090495.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default => 'declare'||chr(10)|| ' l_return_val varchar2(30) := ''$'';'||chr(10)|| 'begin'||chr(10)|| ' for c1 in (select value'||chr(10)|| ' from nls_session_parameters'||chr(10)|| ' where parameter = ''NLS_CURRENCY'') loop'||chr(10)|| ' l_return_val := c1.value;'||chr(10)|| ' exit;'||chr(10)|| ' end loop;'||chr(10)|| ' --'||chr(10)|| ' return l_return_val;'||chr(10)|| 'end;', p_item_default_type => 'PLSQL_FUNCTION_BODY', p_prompt=>'货币符号', p_source_type=> 'STATIC', p_display_as=> 'TEXT', p_lov_columns=> 1, p_lov_display_null=> 'YES', p_lov_translated=> 'N', p_lov_null_text=>'', p_lov_null_value=> '', p_cSize=> 1, p_cMaxlength=> 1, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', p_field_template => 103909823939152778.4306+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'组分隔符是分隔整数组的字符, 例如, 用来表示千位和百万位的字符。
'||chr(10)|| '可以使用任何字符作为组分隔符。所指定的字符必须为单字节字符, 并且组分隔符不能与小数点字符相同。此字符可以为空格, 但不能为数字字符或以下字符之一:
'||chr(10)|| '小数点字符将数字的整数部分和小数部分分隔开来。
'||chr(10)|| '可以使用任何字符作为小数点字符。所指定的字符必须为单字节字符, 并且小数点字符不能与组分隔符相同。此字符可以为空格, 但不能为数字字符或以下字符之一:
'||chr(10)|| '如果数据的第一行中包含列名, 请选中此框。
'||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| '姓名 薪水 佣金'||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| 'Clark 1000 10'||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| 'Scott 2000 20'||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''; wwv_flow_api.create_page_item( p_id=>204525430553583465.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 270.4306, p_name=>'F4300_P270_IS_FIELD_NAME', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 50, p_item_plug_id => 204523926135583458.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default => 'Y', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_source_type=> 'STATIC', p_display_as=> 'CHECKBOX', p_named_lov=> 'ISCOLUMN.NAME.TEXT', p_lov => 'select ''''||'||chr(10)|| 'wwv_flow_lang.system_message(''F4300_INSTRUCT_TEXT'')||'''' d, ''Y'' r from dual', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_tag_attributes => 'class="fielddataboldl"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', p_field_template => 103909823939152778.4306+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin wwv_flow_api.create_page_item( p_id=>204525716148583467.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 270.4306, p_name=>'F4300_P270_X', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 20, p_item_plug_id => 204523926135583458.4306+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_display_as=> 'STOP_AND_START_HTML_TABLE', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> null, p_cAttributes=> 'nowrap="nowrap"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', p_is_persistent=> 'Y', p_item_comment => ''); end; / begin wwv_flow_api.create_page_computation( p_id=> 49537626170713419.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 270.4306, p_computation_sequence => 10, p_computation_item=> 'F4300_P270_IS_FIELD_NAME', p_computation_point=> 'AFTER_SUBMIT', p_computation_type=> 'STATIC_ASSIGNMENT', p_computation_processed=> 'REPLACE_EXISTING', p_computation=> 'N', p_compute_when => 'F4300_P270_IS_FIELD_NAME', p_compute_when_type=>'ITEM_IS_NULL'); null; end; / begin wwv_flow_api.create_page_validation( p_id => 4186717812867171.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 270.4306, p_validation_name => 'separator not null', p_validation_sequence=> 10, p_validation => 'F4300_P270_SEPARATOR', p_validation_type => 'ITEM_NOT_NULL', p_error_message => '必须指定分隔符。', p_validation_condition=> 'F4300_P230_LOAD_TYPE', p_validation_condition2=> 'CSV', p_validation_condition_type=> 'VAL_OF_ITEM_IN_COND_EQ_COND2', p_associated_item=> 4182706815845162.4306 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 83593200492080009.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 270.4306, p_validation_name => 'data cannot be > 30KB', p_validation_sequence=> 10, p_validation => 'if length(:F4300_P270_EXCEL_DATA) > 30000 then'||chr(10)|| ' return false;'||chr(10)|| 'else'||chr(10)|| ' return true;'||chr(10)|| 'end if;', p_validation_type => 'FUNC_BODY_RETURNING_BOOLEAN', p_error_message => '所粘贴的数据大于 30KB。请用逗号分隔格式 (csv) 或制表符分隔格式保存文件。然后, 上载此文件, 以便加载数据。', p_associated_item=> .4306 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 204527804107583477.4306 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 270.4306, p_validation_name => 'data not null', p_validation_sequence=> 10, p_validation => 'F4300_P270_EXCEL_DATA', p_validation_type => 'ITEM_NOT_NULL', p_error_message => '必须指定数据。', p_associated_item=> 204525129697583464.4306 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin declare p varchar2(32767) := null; l_clob clob; l_length number := 1; begin p:=p||'declare '||chr(10)|| ' l_first_row_is_col_name boolean := false;'||chr(10)|| ' l_data clob := empty_clob();'||chr(10)|| 'begin'||chr(10)|| ' select clob001 into l_data from apex_collections where collection_name=''CLOB_CONTENT'';'||chr(10)|| ''||chr(10)|| ' if :F4300_P270_IS_FIELD_NAME = ''Y'' then'||chr(10)|| ' l_first_row_is_col_name := true;'||chr(10)|| ' end if;'||chr(10)|| ' wwv_flow_load_excel_data.get_table_info ('||chr(10)|| ' p_string => l_data,'||chr(10)|| ' p_separator => lower(nvl(:F4300'; p:=p||'_P270_SEPARATOR,''\t'')),'||chr(10)|| ' p_enclosed_by => :F4300_P270_ENCLOSED_BY, '||chr(10)|| ' p_first_row_is_col_name => l_first_row_is_col_name,'||chr(10)|| ' p_currency => :P270_CURRENCY,'||chr(10)|| ' p_numeric_chars => :P270_DECIMAL_CHARACTER||:P270_GROUP_SEPARATOR,'||chr(10)|| ' p_load_type => ''EXCEL'''||chr(10)|| ' );'||chr(10)|| 'end;'; wwv_flow_api.create_page_process( p_id => 204528110232583479.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id => 270.4306, p_process_sequence=> 10, p_process_point=> 'AFTER_SUBMIT', p_process_type=> 'PLSQL', p_process_name=> 'create collection', p_process_sql_clob => p, p_process_error_message=> '加载 Excel 数据时出错。', p_process_when=>'NEXT', p_process_when_type=>'REQUEST_EQUALS_CONDITION', p_process_success_message=> '', p_process_is_stateful_y_n=>'N', p_process_comment=>''); end; null; end; / begin --------------------------------------- -- ...updatable report columns for page 270.4306 -- begin null; end; null; end; / prompt ...lists -- --application/shared_components/navigation/lists/application_tabs begin wwv_flow_api.create_list ( p_id=> 1452315428006354.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_name=> 'Application Tabs', p_list_status=> 'PUBLIC', p_list_displayed=> 'BY_DEFAULT', p_display_row_template_id=> 19007815325351347 + wwv_flow_api.g_id_offset); wwv_flow_api.create_list_item ( p_id=> 1453127548009865.4306 + wwv_flow_api.g_id_offset, p_list_id=> 1452315428006354.4306 + wwv_flow_api.g_id_offset, p_list_item_type=> '', p_list_item_status=> '', p_item_displayed=> '', p_list_item_display_sequence=>1, p_list_item_link_text=> '主页', p_list_item_link_target=> 'f?p=4500:1000:&SESSION.', p_list_text_01=> '', p_list_item_current_type=> '', p_list_item_owner=> ''); wwv_flow_api.create_list_item ( p_id=> 1453401360011729.4306 + wwv_flow_api.g_id_offset, p_list_id=> 1452315428006354.4306 + wwv_flow_api.g_id_offset, p_list_item_type=> '', p_list_item_status=> '', p_item_displayed=> '', p_list_item_display_sequence=>2, p_list_item_link_text=> '应用程序构建器', p_list_item_link_target=> 'f?p=4000:1500:&SESSION.', p_list_text_01=> '', p_list_item_current_type=> '', p_list_item_owner=> ''); wwv_flow_api.create_list_item ( p_id=> 231618309407162514.4306 + wwv_flow_api.g_id_offset, p_list_id=> 1452315428006354.4306 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>3, p_list_item_link_text=> '报告服务', p_list_item_link_target=> 'f?p=4800:1:&SESSION.', p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_required_patch => 231617022436156832.4306 + wwv_flow_api.g_id_offset, p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_owner=> ''); wwv_flow_api.create_list_item ( p_id=> 1453707594013511.4306 + wwv_flow_api.g_id_offset, p_list_id=> 1452315428006354.4306 + wwv_flow_api.g_id_offset, p_list_item_type=> '', p_list_item_status=> '', p_item_displayed=> '', p_list_item_display_sequence=>4, p_list_item_link_text=> 'SQL 工作室', p_list_item_link_target=> 'f?p=4500:3002:&SESSION.', p_list_text_01=> '', p_list_item_current_type=> '', p_list_item_owner=> ''); wwv_flow_api.create_list_item ( p_id=> 1454014173015400.4306 + wwv_flow_api.g_id_offset, p_list_id=> 1452315428006354.4306 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>5, p_list_item_link_text=> '实用程序', p_list_item_link_target=> 'f?p=4500:1005:&SESSION.', p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'ALWAYS', p_list_item_owner=> ''); null; end; / --application/shared_components/navigation/lists/data_workshop_home_page_icons begin wwv_flow_api.create_list ( p_id=> 2202106852499122.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_name=> 'Data Workshop Home Page Icons', p_list_status=> 'PUBLIC', p_list_displayed=> 'BY_DEFAULT', p_display_row_template_id=> 24562507636595183 + wwv_flow_api.g_id_offset); wwv_flow_api.create_list_item ( p_id=> 2202519319502755.4306 + wwv_flow_api.g_id_offset, p_list_id=> 2202106852499122.4306 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>5, p_list_item_link_text=> '加载', p_list_item_link_target=> 'f?p=&APP_ID.:9:&SESSION.::&DEBUG.::::', p_list_item_icon => 'htmldb/builder/dw_import_ctrl.gif', p_list_item_icon_attributes=> 'width="100" height="75" title="#LIST_LABEL#" alt="#LIST_LABEL#"', p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_owner=> ''); wwv_flow_api.create_list_item ( p_id=> 3920312040546373.4306 + wwv_flow_api.g_id_offset, p_list_id=> 2202106852499122.4306 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>10, p_list_item_link_text=> '文本数据', p_list_item_link_target=> 'f?p=4300:230:&SESSION.::NO:13,18,19,21,22,23,24,25::', p_parent_list_item_id=> 2202519319502755.4306 + wwv_flow_api.g_id_offset, p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_owner=> ''); wwv_flow_api.create_list_item ( p_id=> 3920000266542977.4306 + wwv_flow_api.g_id_offset, p_list_id=> 2202106852499122.4306 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>15, p_list_item_link_text=> '电子表格数据', p_list_item_link_target=> 'f?p=&APP_ID.:230:&SESSION.::&DEBUG.:200,210,220,230,240,250,260,270:::', p_parent_list_item_id=> 2202519319502755.4306 + wwv_flow_api.g_id_offset, p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_owner=> ''); wwv_flow_api.create_list_item ( p_id=> 3920618966548359.4306 + wwv_flow_api.g_id_offset, p_list_id=> 2202106852499122.4306 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>20, p_list_item_link_text=> 'XML 数据', p_list_item_link_target=> 'f?p=4300:14:&SESSION.::NO:14,16,17::', p_parent_list_item_id=> 2202519319502755.4306 + wwv_flow_api.g_id_offset, p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_owner=> ''); wwv_flow_api.create_list_item ( p_id=> 2203026938504982.4306 + wwv_flow_api.g_id_offset, p_list_id=> 2202106852499122.4306 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>10, p_list_item_link_text=> '卸载', p_list_item_link_target=> 'f?p=&APP_ID.:4:&SESSION.::&DEBUG.::::', p_list_item_icon => 'htmldb/builder/dw_export_ctrl.gif', p_list_item_icon_attributes=> 'width="100" height="75" title="#LIST_LABEL#" alt="#LIST_LABEL#"', p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_owner=> ''); wwv_flow_api.create_list_item ( p_id=> 3923617712557453.4306 + wwv_flow_api.g_id_offset, p_list_id=> 2202106852499122.4306 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>10, p_list_item_link_text=> '到文本', p_list_item_link_target=> 'f?p=&APP_ID.:150:&SESSION.::&DEBUG.:150,160,170,180:::', p_parent_list_item_id=> 2203026938504982.4306 + wwv_flow_api.g_id_offset, p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_owner=> ''); wwv_flow_api.create_list_item ( p_id=> 3923923599559118.4306 + wwv_flow_api.g_id_offset, p_list_id=> 2202106852499122.4306 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>20, p_list_item_link_text=> '到 XML', p_list_item_link_target=> 'f?p=&APP_ID.:70:&SESSION.::&DEBUG.:70,80,90:::', p_parent_list_item_id=> 2203026938504982.4306 + wwv_flow_api.g_id_offset, p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_owner=> ''); wwv_flow_api.create_list_item ( p_id=> 2206807807518397.4306 + wwv_flow_api.g_id_offset, p_list_id=> 2202106852499122.4306 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>30, p_list_item_link_text=> '资料档案库', p_list_item_link_target=> 'f?p=&APP_ID.:8:&SESSION.::&DEBUG.:RP:::', p_list_item_icon => 'htmldb/builder/dw_repository_ctrl.gif', p_list_item_icon_attributes=> 'width="100" height="75" title="#LIST_LABEL#" alt="#LIST_LABEL#"', p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_owner=> ''); wwv_flow_api.create_list_item ( p_id=> 260022612007597680.4306 + wwv_flow_api.g_id_offset, p_list_id=> 2202106852499122.4306 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>10, p_list_item_link_text=> '导入资料档案库', p_list_item_link_target=> 'f?p=&APP_ID.:8:&SESSION.::&DEBUG.:RP:::', p_parent_list_item_id=> 2206807807518397.4306 + wwv_flow_api.g_id_offset, p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_owner=> ''); wwv_flow_api.create_list_item ( p_id=> 260023118587599550.4306 + wwv_flow_api.g_id_offset, p_list_id=> 2202106852499122.4306 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>10, p_list_item_link_text=> '电子表格导入', p_list_item_link_target=> 'f?p=&APP_ID.:11:&SESSION.::&DEBUG.:RP:::', p_parent_list_item_id=> 2206807807518397.4306 + wwv_flow_api.g_id_offset, p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_owner=> ''); null; end; / --application/shared_components/navigation/lists/data_import begin wwv_flow_api.create_list ( p_id=> 3648913903408259.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_name=> 'data import', p_list_status=> 'PUBLIC', p_list_displayed=> 'BY_DEFAULT', p_display_row_template_id=> 3482816826549973 + wwv_flow_api.g_id_offset); wwv_flow_api.create_list_item ( p_id=> 3653931134432189.4306 + wwv_flow_api.g_id_offset, p_list_id=> 3648913903408259.4306 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>10, p_list_item_link_text=> '文本数据导入资料档案库', p_list_item_link_target=> 'f?p=&APP_ID.:8:&SESSION.::&DEBUG.::::', p_list_item_disp_cond_type=> 'CURRENT_PAGE_EQUALS_CONDITION', p_list_item_disp_condition=> '11', p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_owner=> ''); wwv_flow_api.create_list_item ( p_id=> 220739912737841935.4306 + wwv_flow_api.g_id_offset, p_list_id=> 3648913903408259.4306 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>10, p_list_item_link_text=> '电子表格导入资料档案库', p_list_item_link_target=> 'f?p=&APP_ID.:11:&SESSION.::&DEBUG.::::', p_list_item_disp_cond_type=> 'CURRENT_PAGE_EQUALS_CONDITION', p_list_item_disp_condition=> '8', p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_owner=> ''); null; end; / --application/shared_components/navigation/lists/plain_text_data_import begin wwv_flow_api.create_list ( p_id=> 3931814922814551.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_name=> 'Plain Text Data Import', p_list_status=> 'PUBLIC', p_list_displayed=> 'BY_DEFAULT', p_display_row_template_id=> 23332419498365678 + wwv_flow_api.g_id_offset); wwv_flow_api.create_list_item ( p_id=> 3932708473822070.4306 + wwv_flow_api.g_id_offset, p_list_id=> 3931814922814551.4306 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>20, p_list_item_link_text=> '文件详细资料', p_list_item_link_target=> '', p_list_item_disp_cond_type=> 'CURRENT_PAGE_IN_CONDITION', p_list_item_disp_condition=> '18,19,21,13', p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_current_for_pages=> '18', p_list_item_owner=> ''); wwv_flow_api.create_list_item ( p_id=> 3933320594825587.4306 + wwv_flow_api.g_id_offset, p_list_id=> 3931814922814551.4306 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>30, p_list_item_link_text=> '表属性', p_list_item_link_target=> '', p_list_item_disp_cond_type=> 'CURRENT_PAGE_IN_CONDITION', p_list_item_disp_condition=> '18,19,21,13', p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_current_for_pages=> '19', p_list_item_owner=> ''); wwv_flow_api.create_list_item ( p_id=> 3933729944828323.4306 + wwv_flow_api.g_id_offset, p_list_id=> 3931814922814551.4306 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>40, p_list_item_link_text=> '主键', p_list_item_link_target=> '', p_list_item_disp_cond_type=> 'CURRENT_PAGE_IN_CONDITION', p_list_item_disp_condition=> '18,19,21,13', p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_current_for_pages=> '21', p_list_item_owner=> ''); null; end; / --application/shared_components/navigation/lists/plain_text_data_import2 begin wwv_flow_api.create_list ( p_id=> 3934205141830584.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_name=> 'Plain Text Data Import2', p_list_status=> 'PUBLIC', p_list_displayed=> 'BY_DEFAULT', p_display_row_template_id=> 23332419498365678 + wwv_flow_api.g_id_offset); wwv_flow_api.create_list_item ( p_id=> 3935014837833421.4306 + wwv_flow_api.g_id_offset, p_list_id=> 3934205141830584.4306 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>20, p_list_item_link_text=> '方案', p_list_item_link_target=> '', p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_current_for_pages=> '22', p_list_item_owner=> ''); wwv_flow_api.create_list_item ( p_id=> 3935318993834617.4306 + wwv_flow_api.g_id_offset, p_list_id=> 3934205141830584.4306 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>30, p_list_item_link_text=> '表名', p_list_item_link_target=> '', p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_current_for_pages=> '23', p_list_item_owner=> ''); wwv_flow_api.create_list_item ( p_id=> 3935628343837346.4306 + wwv_flow_api.g_id_offset, p_list_id=> 3934205141830584.4306 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>40, p_list_item_link_text=> '文件详细资料', p_list_item_link_target=> '', p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_current_for_pages=> '24', p_list_item_owner=> ''); wwv_flow_api.create_list_item ( p_id=> 3935901116838942.4306 + wwv_flow_api.g_id_offset, p_list_id=> 3934205141830584.4306 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>50, p_list_item_link_text=> '列映射', p_list_item_link_target=> '', p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_current_for_pages=> '25', p_list_item_owner=> ''); null; end; / --application/shared_components/navigation/lists/builder_tab_list begin wwv_flow_api.create_list ( p_id=> 19099308342605075.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_name=> 'builder.tab.list', p_list_status=> 'PUBLIC', p_list_displayed=> 'BY_DEFAULT', p_display_row_template_id=> 19007815325351347 + wwv_flow_api.g_id_offset); wwv_flow_api.create_list_item ( p_id=> 27346516565060394.4306 + wwv_flow_api.g_id_offset, p_list_id=> 19099308342605075.4306 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>1, p_list_item_link_text=> '&PRODUCT_NAME.', p_list_item_link_target=> 'f?p=4350:1:&SESSION.', p_list_item_disp_cond_type=> 'NEVER', p_list_item_disp_condition=> '', p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_owner=> ''); wwv_flow_api.create_list_item ( p_id=> 19099819424608241.4306 + wwv_flow_api.g_id_offset, p_list_id=> 19099308342605075.4306 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>10, p_list_item_link_text=> '应用程序构建器', p_list_item_link_target=> 'f?p=4000:1500:&SESSION.::&DEBUG.:::', p_list_item_disp_cond_type=> 'EXISTS', p_list_item_disp_condition=> 'select 1 from wwv_flows where security_group_id = :flow_security_group_id', p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_owner=> ''); wwv_flow_api.create_list_item ( p_id=> 19100127042610497.4306 + wwv_flow_api.g_id_offset, p_list_id=> 19099308342605075.4306 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>30, p_list_item_link_text=> 'SQL 工作室', p_list_item_link_target=> 'f?p=4500:1000:&SESSION.', p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'ALWAYS', p_list_item_owner=> ''); wwv_flow_api.create_list_item ( p_id=> 19100405356613616.4306 + wwv_flow_api.g_id_offset, p_list_id=> 19099308342605075.4306 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>50, p_list_item_link_text=> '数据工作室', p_list_item_link_target=> 'f?p=&APP_ID.:1:&SESSION.::&DEBUG.::::', p_list_item_disp_cond_type=> 'NEVER', p_list_item_disp_condition=> '', p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'ALWAYS', p_list_item_current_for_pages=> 'f?p=4300:9:&SESSION.', p_list_item_owner=> ''); wwv_flow_api.create_list_item ( p_id=> 27700700995058326.4306 + wwv_flow_api.g_id_offset, p_list_id=> 19099308342605075.4306 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>60, p_list_item_link_text=> '管理', p_list_item_link_target=> 'f?p=4350:1:&SESSION.', p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_owner=> ''); null; end; / --application/shared_components/navigation/lists/data_loading begin wwv_flow_api.create_list ( p_id=> 74707671328250039.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_name=> 'Data Loading', p_list_status=> 'PUBLIC', p_list_displayed=> 'BY_DEFAULT', p_display_row_template_id=> 338656104634716337 + wwv_flow_api.g_id_offset); wwv_flow_api.create_list_item ( p_id=> 2638109323313851.4306 + wwv_flow_api.g_id_offset, p_list_id=> 74707671328250039.4306 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>10, p_list_item_link_text=> '加载文本数据', p_list_item_link_target=> 'f?p=&APP_ID.:230:&SESSION.::&DEBUG.:18,19,21,22,23,24,25:F4300_P230_LOAD_FROM:UPLOAD:', p_list_item_icon => 'htmldb/builder/abc_upload.gif', p_list_item_icon_attributes=> 'width="100" height="75" title="#LIST_LABEL#" alt="#LIST_LABEL#"', p_list_countclicks_y_n=> 'N', p_list_text_01=> 'Load data from structured flat files, such as files with comma separated data(cvs) or tab separated data.', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_owner=> ''); wwv_flow_api.create_list_item ( p_id=> 126669304926863145.4306 + wwv_flow_api.g_id_offset, p_list_id=> 74707671328250039.4306 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>15, p_list_item_link_text=> '加载电子表格数据', p_list_item_link_target=> 'f?p=&APP_ID.:230:&SESSION.::&DEBUG.:200,210,220,230,240,250,260,270:::', p_list_item_icon => 'htmldb/builder/load_excel.gif', p_list_item_icon_attributes=> 'width="100" height="75" title="#LIST_LABEL#" alt="#LIST_LABEL#"', p_list_countclicks_y_n=> 'N', p_list_text_01=> 'Convert Spreadsheets into database tables.', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_owner=> ''); wwv_flow_api.create_list_item ( p_id=> 74710220544263433.4306 + wwv_flow_api.g_id_offset, p_list_id=> 74707671328250039.4306 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>20, p_list_item_link_text=> '加载 XML 数据', p_list_item_link_target=> 'f?p=&APP_ID.:14:&SESSION.::&DEBUG.:14,16,17:::', p_list_item_icon => 'htmldb/builder/xml_upload2.gif', p_list_item_icon_attributes=> 'width="100" height="75" title="#LIST_LABEL#" alt="#LIST_LABEL#"', p_list_countclicks_y_n=> 'N', p_list_text_01=> 'Load data from XML in canonical format.', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_owner=> ''); null; end; / --application/shared_components/navigation/lists/data_unloading begin wwv_flow_api.create_list ( p_id=> 75585889878824332.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_name=> 'Data Unloading', p_list_status=> 'PUBLIC', p_list_displayed=> 'BY_DEFAULT', p_display_row_template_id=> 338656104634716337 + wwv_flow_api.g_id_offset); wwv_flow_api.create_list_item ( p_id=> 75614520977877818.4306 + wwv_flow_api.g_id_offset, p_list_id=> 75585889878824332.4306 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>20, p_list_item_link_text=> '卸载为文本', p_list_item_link_target=> 'f?p=&APP_ID.:150:&SESSION.::&DEBUG.:150,160,170,180:::', p_list_item_icon => 'htmldb/builder/load_ascii.gif', p_list_item_icon_attributes=> 'width="100" height="75" title="#LIST_LABEL#" alt="#LIST_LABEL#"', p_list_countclicks_y_n=> 'N', p_list_text_01=> 'Export database data to a flat file.', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_owner=> ''); wwv_flow_api.create_list_item ( p_id=> 75616418561883144.4306 + wwv_flow_api.g_id_offset, p_list_id=> 75585889878824332.4306 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>30, p_list_item_link_text=> '卸载为 XML', p_list_item_link_target=> 'f?p=&APP_ID.:70:&SESSION.::&DEBUG.:70,80,90:::', p_list_item_icon => 'htmldb/builder/load_xml.gif', p_list_item_icon_attributes=> 'width="100" height="75" title="#LIST_LABEL#" alt="#LIST_LABEL#"', p_list_countclicks_y_n=> 'N', p_list_text_01=> 'Export database data to an XML document.', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_owner=> ''); null; end; / --application/shared_components/navigation/lists/plain_text_data_export begin wwv_flow_api.create_list ( p_id=> 104358211508848205.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_name=> 'Plain Text Data Export', p_list_status=> 'PUBLIC', p_list_displayed=> 'BY_DEFAULT', p_display_row_template_id=> 23332419498365678 + wwv_flow_api.g_id_offset); wwv_flow_api.create_list_item ( p_id=> 104369115334180721.4306 + wwv_flow_api.g_id_offset, p_list_id=> 104358211508848205.4306 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>10, p_list_item_link_text=> '方案', p_list_item_link_target=> '', p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_current_for_pages=> '150', p_list_item_owner=> ''); wwv_flow_api.create_list_item ( p_id=> 104369811236182654.4306 + wwv_flow_api.g_id_offset, p_list_id=> 104358211508848205.4306 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>20, p_list_item_link_text=> '表名', p_list_item_link_target=> '', p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_current_for_pages=> '160', p_list_item_owner=> ''); wwv_flow_api.create_list_item ( p_id=> 104370507786184183.4306 + wwv_flow_api.g_id_offset, p_list_id=> 104358211508848205.4306 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>30, p_list_item_link_text=> '列', p_list_item_link_target=> '', p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_current_for_pages=> '170', p_list_item_owner=> ''); wwv_flow_api.create_list_item ( p_id=> 104371204982185568.4306 + wwv_flow_api.g_id_offset, p_list_id=> 104358211508848205.4306 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>40, p_list_item_link_text=> '选项', p_list_item_link_target=> '', p_list_text_01=> '', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_current_for_pages=> '180', p_list_item_owner=> ''); null; end; / --application/shared_components/navigation/lists/xml_export begin wwv_flow_api.create_list ( p_id=> 104417024127237376.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_name=> 'XML Export', p_list_status=> 'PUBLIC', p_list_displayed=> 'BY_DEFAULT', p_display_row_template_id=> 23332419498365678 + wwv_flow_api.g_id_offset); wwv_flow_api.create_list_item ( p_id=> 104418520029239322.4306 + wwv_flow_api.g_id_offset, p_list_id=> 104417024127237376.4306 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>10, p_list_item_link_text=> '方案', p_list_item_link_target=> '', p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_current_for_pages=> '70', p_list_item_owner=> ''); wwv_flow_api.create_list_item ( p_id=> 104419216794240816.4306 + wwv_flow_api.g_id_offset, p_list_id=> 104417024127237376.4306 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>20, p_list_item_link_text=> '表名', p_list_item_link_target=> '', p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_current_for_pages=> '80', p_list_item_owner=> ''); wwv_flow_api.create_list_item ( p_id=> 104419912481242811.4306 + wwv_flow_api.g_id_offset, p_list_id=> 104417024127237376.4306 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>30, p_list_item_link_text=> '列', p_list_item_link_target=> '', p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_current_for_pages=> '90', p_list_item_owner=> ''); null; end; / --application/shared_components/navigation/lists/excel_data_import begin wwv_flow_api.create_list ( p_id=> 112716503290208213.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_name=> 'Excel Data Import', p_list_status=> 'PUBLIC', p_list_displayed=> 'BY_DEFAULT', p_display_row_template_id=> 23332419498365678 + wwv_flow_api.g_id_offset); wwv_flow_api.create_list_item ( p_id=> 204680314570920715.4306 + wwv_flow_api.g_id_offset, p_list_id=> 112716503290208213.4306 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>5, p_list_item_link_text=> '目标和方法', p_list_item_link_target=> '', p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_current_for_pages=> '230', p_list_item_owner=> ''); wwv_flow_api.create_list_item ( p_id=> 112719626353212694.4306 + wwv_flow_api.g_id_offset, p_list_id=> 112716503290208213.4306 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>10, p_list_item_link_text=> '数据', p_list_item_link_target=> '', p_list_item_disp_cond_type=> 'CURRENT_PAGE_IN_CONDITION', p_list_item_disp_condition=> '200,210,220,230', p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_current_for_pages=> '200', p_list_item_owner=> ''); wwv_flow_api.create_list_item ( p_id=> 112720322256214662.4306 + wwv_flow_api.g_id_offset, p_list_id=> 112716503290208213.4306 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>20, p_list_item_link_text=> '表属性', p_list_item_link_target=> '', p_list_item_disp_cond_type=> 'CURRENT_PAGE_IN_CONDITION', p_list_item_disp_condition=> '200,210,220,230', p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_current_for_pages=> '210', p_list_item_owner=> ''); wwv_flow_api.create_list_item ( p_id=> 117063907614069206.4306 + wwv_flow_api.g_id_offset, p_list_id=> 112716503290208213.4306 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>30, p_list_item_link_text=> '主键', p_list_item_link_target=> '', p_list_item_disp_cond_type=> 'CURRENT_PAGE_IN_CONDITION', p_list_item_disp_condition=> '200,210,220,230', p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_current_for_pages=> '220', p_list_item_owner=> ''); null; end; / --application/shared_components/navigation/lists/xml_import begin wwv_flow_api.create_list ( p_id=> 184273927814400294.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_name=> 'XML Import', p_list_status=> 'PUBLIC', p_list_displayed=> 'BY_DEFAULT', p_display_row_template_id=> 23332419498365678 + wwv_flow_api.g_id_offset); wwv_flow_api.create_list_item ( p_id=> 184275722854402592.4306 + wwv_flow_api.g_id_offset, p_list_id=> 184273927814400294.4306 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>10, p_list_item_link_text=> '方案', p_list_item_link_target=> '', p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_current_for_pages=> '14', p_list_item_owner=> ''); wwv_flow_api.create_list_item ( p_id=> 184276520050403915.4306 + wwv_flow_api.g_id_offset, p_list_id=> 184273927814400294.4306 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>20, p_list_item_link_text=> '表名', p_list_item_link_target=> '', p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_current_for_pages=> '16', p_list_item_owner=> ''); wwv_flow_api.create_list_item ( p_id=> 184277315952405815.4306 + wwv_flow_api.g_id_offset, p_list_id=> 184273927814400294.4306 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>30, p_list_item_link_text=> '文件名', p_list_item_link_target=> '', p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_current_for_pages=> '17', p_list_item_owner=> ''); null; end; / --application/shared_components/navigation/lists/excel_data_import2 begin wwv_flow_api.create_list ( p_id=> 204693724897946351.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_name=> 'Excel Data Import2', p_list_status=> 'PUBLIC', p_list_displayed=> 'BY_DEFAULT', p_display_row_template_id=> 23332419498365678 + wwv_flow_api.g_id_offset); wwv_flow_api.create_list_item ( p_id=> 204695520153948493.4306 + wwv_flow_api.g_id_offset, p_list_id=> 204693724897946351.4306 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>10, p_list_item_link_text=> '类型和方法', p_list_item_link_target=> '', p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_current_for_pages=> '230', p_list_item_owner=> ''); wwv_flow_api.create_list_item ( p_id=> 204698011742952420.4306 + wwv_flow_api.g_id_offset, p_list_id=> 204693724897946351.4306 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>20, p_list_item_link_text=> '方案', p_list_item_link_target=> '', p_list_item_disp_cond_type=> 'CURRENT_PAGE_IN_CONDITION', p_list_item_disp_condition=> '240,250,260,270', p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_current_for_pages=> '240', p_list_item_owner=> ''); wwv_flow_api.create_list_item ( p_id=> 204699205057955553.4306 + wwv_flow_api.g_id_offset, p_list_id=> 204693724897946351.4306 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>30, p_list_item_link_text=> '表名', p_list_item_link_target=> '', p_list_item_disp_cond_type=> 'CURRENT_PAGE_IN_CONDITION', p_list_item_disp_condition=> '240,250,260,270', p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_current_for_pages=> '250', p_list_item_owner=> ''); wwv_flow_api.create_list_item ( p_id=> 204702125748961090.4306 + wwv_flow_api.g_id_offset, p_list_id=> 204693724897946351.4306 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>40, p_list_item_link_text=> '数据', p_list_item_link_target=> '', p_list_item_disp_cond_type=> 'CURRENT_PAGE_IN_CONDITION', p_list_item_disp_condition=> '240,250,260,270', p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_current_for_pages=> '270', p_list_item_owner=> ''); wwv_flow_api.create_list_item ( p_id=> 204711009357968724.4306 + wwv_flow_api.g_id_offset, p_list_id=> 204693724897946351.4306 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>50, p_list_item_link_text=> '列映射', p_list_item_link_target=> '', p_list_item_disp_cond_type=> 'CURRENT_PAGE_IN_CONDITION', p_list_item_disp_condition=> '240,250,260,270', p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_current_for_pages=> '260', p_list_item_owner=> ''); null; end; / --application/shared_components/navigation/breadcrumbs prompt ...breadcrumbs -- begin wwv_flow_api.create_menu ( p_id=> 6678815232629976.4306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_name=> 'dataworkshop.menu'); wwv_flow_api.create_menu_option ( p_id=>2211613627528920.4306 + wwv_flow_api.g_id_offset, p_menu_id=>6678815232629976.4306 + wwv_flow_api.g_id_offset, p_parent_id=>28488306101493931.4306 + wwv_flow_api.g_id_offset, p_option_sequence=>10, p_short_name=>'数据加载/卸载', p_long_name=>'', p_link=>'f?p=&APP_ID.:1:&SESSION.::&DEBUG.:::', p_page_id=>1, p_also_current_for_pages=> ''); wwv_flow_api.create_menu_option ( p_id=>2226021785570759.4306 + wwv_flow_api.g_id_offset, p_menu_id=>6678815232629976.4306 + wwv_flow_api.g_id_offset, p_parent_id=>2211613627528920.4306 + wwv_flow_api.g_id_offset, p_option_sequence=>10, p_short_name=>'卸载', p_long_name=>'', p_link=>'f?p=&APP_ID.:4:&SESSION.::&DEBUG.:::', p_page_id=>4, p_also_current_for_pages=> ''); wwv_flow_api.create_menu_option ( p_id=>6679330816634474.4306 + wwv_flow_api.g_id_offset, p_menu_id=>6678815232629976.4306 + wwv_flow_api.g_id_offset, p_parent_id=>2211613627528920.4306 + wwv_flow_api.g_id_offset, p_option_sequence=>10, p_short_name=>'加载', p_long_name=>'', p_link=>'f?p=&APP_ID.:9:&SESSION.::&DEBUG.:::', p_page_id=>9, p_also_current_for_pages=> ''); wwv_flow_api.create_menu_option ( p_id=>6682115379645994.4306 + wwv_flow_api.g_id_offset, p_menu_id=>6678815232629976.4306 + wwv_flow_api.g_id_offset, p_parent_id=>6679330816634474.4306 + wwv_flow_api.g_id_offset, p_option_sequence=>10, p_short_name=>'加载数据', p_long_name=>'', p_link=>'f?p=&APP_ID.:230:&SESSION.::&DEBUG.:::', p_page_id=>230, p_also_current_for_pages=> ''); wwv_flow_api.create_menu_option ( p_id=>6686911916662790.4306 + wwv_flow_api.g_id_offset, p_menu_id=>6678815232629976.4306 + wwv_flow_api.g_id_offset, p_parent_id=>6679330816634474.4306 + wwv_flow_api.g_id_offset, p_option_sequence=>10, p_short_name=>'加载 XML 数据', p_long_name=>'', p_link=>'f?p=&APP_ID.:14:&SESSION.::&DEBUG.:::', p_page_id=>14, p_also_current_for_pages=> ''); wwv_flow_api.create_menu_option ( p_id=>6689302211667279.4306 + wwv_flow_api.g_id_offset, p_menu_id=>6678815232629976.4306 + wwv_flow_api.g_id_offset, p_parent_id=>2226021785570759.4306 + wwv_flow_api.g_id_offset, p_option_sequence=>10, p_short_name=>'卸载为 XML', p_long_name=>'', p_link=>'f?p=&APP_ID.:70:&SESSION.::&DEBUG.:::', p_page_id=>70, p_also_current_for_pages=> ''); wwv_flow_api.create_menu_option ( p_id=>6690530882669221.4306 + wwv_flow_api.g_id_offset, p_menu_id=>6678815232629976.4306 + wwv_flow_api.g_id_offset, p_parent_id=>2226021785570759.4306 + wwv_flow_api.g_id_offset, p_option_sequence=>10, p_short_name=>'卸载为文本', p_long_name=>'', p_link=>'f?p=&APP_ID.:150:&SESSION.::&DEBUG.:::', p_page_id=>150, p_also_current_for_pages=> ''); wwv_flow_api.create_menu_option ( p_id=>6692619668674394.4306 + wwv_flow_api.g_id_offset, p_menu_id=>6678815232629976.4306 + wwv_flow_api.g_id_offset, p_parent_id=>6679330816634474.4306 + wwv_flow_api.g_id_offset, p_option_sequence=>10, p_short_name=>'加载数据', p_long_name=>'', p_link=>'f?p=&APP_ID.:200:&SESSION.::&DEBUG.:::', p_page_id=>200, p_also_current_for_pages=> ''); wwv_flow_api.create_menu_option ( p_id=>6694113198677405.4306 + wwv_flow_api.g_id_offset, p_menu_id=>6678815232629976.4306 + wwv_flow_api.g_id_offset, p_parent_id=>6679330816634474.4306 + wwv_flow_api.g_id_offset, p_option_sequence=>10, p_short_name=>'加载数据', p_long_name=>'', p_link=>'f?p=&APP_ID.:210:&SESSION.::&DEBUG.:::', p_page_id=>210, p_also_current_for_pages=> ''); wwv_flow_api.create_menu_option ( p_id=>6695107375680103.4306 + wwv_flow_api.g_id_offset, p_menu_id=>6678815232629976.4306 + wwv_flow_api.g_id_offset, p_parent_id=>6679330816634474.4306 + wwv_flow_api.g_id_offset, p_option_sequence=>10, p_short_name=>'加载数据', p_long_name=>'', p_link=>'f?p=&APP_ID.:220:&SESSION.::&DEBUG.:::', p_page_id=>220, p_also_current_for_pages=> ''); wwv_flow_api.create_menu_option ( p_id=>6828030820688031.4306 + wwv_flow_api.g_id_offset, p_menu_id=>6678815232629976.4306 + wwv_flow_api.g_id_offset, p_parent_id=>6679330816634474.4306 + wwv_flow_api.g_id_offset, p_option_sequence=>10, p_short_name=>'加载数据', p_long_name=>'', p_link=>'f?p=&APP_ID.:18:&SESSION.::&DEBUG.:::', p_page_id=>18, p_also_current_for_pages=> ''); null; end; / begin wwv_flow_api.create_menu_option ( p_id=>6829415292695176.4306 + wwv_flow_api.g_id_offset, p_menu_id=>6678815232629976.4306 + wwv_flow_api.g_id_offset, p_parent_id=>6679330816634474.4306 + wwv_flow_api.g_id_offset, p_option_sequence=>10, p_short_name=>'加载数据', p_long_name=>'', p_link=>'f?p=&APP_ID.:19:&SESSION.::&DEBUG.:::', p_page_id=>19, p_also_current_for_pages=> ''); wwv_flow_api.create_menu_option ( p_id=>6830608822698182.4306 + wwv_flow_api.g_id_offset, p_menu_id=>6678815232629976.4306 + wwv_flow_api.g_id_offset, p_parent_id=>6679330816634474.4306 + wwv_flow_api.g_id_offset, p_option_sequence=>10, p_short_name=>'加载数据', p_long_name=>'', p_link=>'f?p=&APP_ID.:21:&SESSION.::&DEBUG.:::', p_page_id=>21, p_also_current_for_pages=> ''); wwv_flow_api.create_menu_option ( p_id=>6837120647738320.4306 + wwv_flow_api.g_id_offset, p_menu_id=>6678815232629976.4306 + wwv_flow_api.g_id_offset, p_parent_id=>2211613627528920.4306 + wwv_flow_api.g_id_offset, p_option_sequence=>10, p_short_name=>'文本数据加载资料档案库', p_long_name=>'', p_link=>'f?p=&APP_ID.:8:&SESSION.::&DEBUG.:::', p_page_id=>8, p_also_current_for_pages=> ''); wwv_flow_api.create_menu_option ( p_id=>6843500362762964.4306 + wwv_flow_api.g_id_offset, p_menu_id=>6678815232629976.4306 + wwv_flow_api.g_id_offset, p_parent_id=>2226021785570759.4306 + wwv_flow_api.g_id_offset, p_option_sequence=>10, p_short_name=>'卸载为 XML', p_long_name=>'', p_link=>'f?p=&APP_ID.:80:&SESSION.::&DEBUG.:::', p_page_id=>80, p_also_current_for_pages=> ''); wwv_flow_api.create_menu_option ( p_id=>6844627307765634.4306 + wwv_flow_api.g_id_offset, p_menu_id=>6678815232629976.4306 + wwv_flow_api.g_id_offset, p_parent_id=>2226021785570759.4306 + wwv_flow_api.g_id_offset, p_option_sequence=>10, p_short_name=>'卸载为 XML', p_long_name=>'', p_link=>'f?p=&APP_ID.:90:&SESSION.::&DEBUG.:::', p_page_id=>90, p_also_current_for_pages=> ''); wwv_flow_api.create_menu_option ( p_id=>6846217171770275.4306 + wwv_flow_api.g_id_offset, p_menu_id=>6678815232629976.4306 + wwv_flow_api.g_id_offset, p_parent_id=>2226021785570759.4306 + wwv_flow_api.g_id_offset, p_option_sequence=>10, p_short_name=>'卸载为文本', p_long_name=>'', p_link=>'f?p=&APP_ID.:160:&SESSION.::&DEBUG.:::', p_page_id=>160, p_also_current_for_pages=> ''); wwv_flow_api.create_menu_option ( p_id=>6847610701773370.4306 + wwv_flow_api.g_id_offset, p_menu_id=>6678815232629976.4306 + wwv_flow_api.g_id_offset, p_parent_id=>2226021785570759.4306 + wwv_flow_api.g_id_offset, p_option_sequence=>10, p_short_name=>'卸载为文本', p_long_name=>'', p_link=>'f?p=&APP_ID.:170:&SESSION.::&DEBUG.:::', p_page_id=>170, p_also_current_for_pages=> ''); wwv_flow_api.create_menu_option ( p_id=>6848706388775367.4306 + wwv_flow_api.g_id_offset, p_menu_id=>6678815232629976.4306 + wwv_flow_api.g_id_offset, p_parent_id=>2226021785570759.4306 + wwv_flow_api.g_id_offset, p_option_sequence=>10, p_short_name=>'卸载为文本', p_long_name=>'', p_link=>'f?p=&APP_ID.:180:&SESSION.::&DEBUG.:::', p_page_id=>180, p_also_current_for_pages=> ''); wwv_flow_api.create_menu_option ( p_id=>7700814894541393.4306 + wwv_flow_api.g_id_offset, p_menu_id=>6678815232629976.4306 + wwv_flow_api.g_id_offset, p_parent_id=>.4306 + wwv_flow_api.g_id_offset, p_option_sequence=>10, p_short_name=>'主页', p_long_name=>'', p_link=>'f?p=4500:1000:&SESSION.', p_page_id=>99999, p_security_scheme=>'FLOW: ADMIN', p_also_current_for_pages=> ''); wwv_flow_api.create_menu_option ( p_id=>9390600588273869.4306 + wwv_flow_api.g_id_offset, p_menu_id=>6678815232629976.4306 + wwv_flow_api.g_id_offset, p_parent_id=>2211613627528920.4306 + wwv_flow_api.g_id_offset, p_option_sequence=>10, p_short_name=>'电子表格资料档案库', p_long_name=>'', p_link=>'f?p=&APP_ID.:11:&SESSION.::&DEBUG.:::', p_page_id=>11, p_also_current_for_pages=> ''); wwv_flow_api.create_menu_option ( p_id=>23356717195631333.4306 + wwv_flow_api.g_id_offset, p_menu_id=>6678815232629976.4306 + wwv_flow_api.g_id_offset, p_parent_id=>6679330816634474.4306 + wwv_flow_api.g_id_offset, p_option_sequence=>10, p_short_name=>'加载数据', p_long_name=>'', p_link=>'f?p=&APP_ID.:22:&SESSION.::&DEBUG.:::', p_page_id=>22, p_also_current_for_pages=> ''); null; end; / begin wwv_flow_api.create_menu_option ( p_id=>23358010294634530.4306 + wwv_flow_api.g_id_offset, p_menu_id=>6678815232629976.4306 + wwv_flow_api.g_id_offset, p_parent_id=>6679330816634474.4306 + wwv_flow_api.g_id_offset, p_option_sequence=>10, p_short_name=>'加载数据', p_long_name=>'', p_link=>'f?p=&APP_ID.:23:&SESSION.::&DEBUG.:::', p_page_id=>23, p_also_current_for_pages=> ''); wwv_flow_api.create_menu_option ( p_id=>23359105981636561.4306 + wwv_flow_api.g_id_offset, p_menu_id=>6678815232629976.4306 + wwv_flow_api.g_id_offset, p_parent_id=>6679330816634474.4306 + wwv_flow_api.g_id_offset, p_option_sequence=>10, p_short_name=>'加载数据', p_long_name=>'', p_link=>'f?p=&APP_ID.:24:&SESSION.::&DEBUG.:::', p_page_id=>24, p_also_current_for_pages=> ''); wwv_flow_api.create_menu_option ( p_id=>23360528181641436.4306 + wwv_flow_api.g_id_offset, p_menu_id=>6678815232629976.4306 + wwv_flow_api.g_id_offset, p_parent_id=>6679330816634474.4306 + wwv_flow_api.g_id_offset, p_option_sequence=>10, p_short_name=>'加载数据', p_long_name=>'', p_link=>'f?p=&APP_ID.:25:&SESSION.::&DEBUG.:::', p_page_id=>25, p_also_current_for_pages=> ''); wwv_flow_api.create_menu_option ( p_id=>23362831810685340.4306 + wwv_flow_api.g_id_offset, p_menu_id=>6678815232629976.4306 + wwv_flow_api.g_id_offset, p_parent_id=>6679330816634474.4306 + wwv_flow_api.g_id_offset, p_option_sequence=>10, p_short_name=>'加载数据', p_long_name=>'', p_link=>'f?p=&APP_ID.:240:&SESSION.::&DEBUG.:::', p_page_id=>240, p_also_current_for_pages=> ''); wwv_flow_api.create_menu_option ( p_id=>23364720380690653.4306 + wwv_flow_api.g_id_offset, p_menu_id=>6678815232629976.4306 + wwv_flow_api.g_id_offset, p_parent_id=>6679330816634474.4306 + wwv_flow_api.g_id_offset, p_option_sequence=>10, p_short_name=>'加载数据', p_long_name=>'', p_link=>'f?p=&APP_ID.:270:&SESSION.::&DEBUG.:::', p_page_id=>270, p_also_current_for_pages=> ''); wwv_flow_api.create_menu_option ( p_id=>23366014557693362.4306 + wwv_flow_api.g_id_offset, p_menu_id=>6678815232629976.4306 + wwv_flow_api.g_id_offset, p_parent_id=>6679330816634474.4306 + wwv_flow_api.g_id_offset, p_option_sequence=>10, p_short_name=>'加载数据', p_long_name=>'', p_link=>'f?p=&APP_ID.:260:&SESSION.::&DEBUG.:::', p_page_id=>260, p_also_current_for_pages=> ''); wwv_flow_api.create_menu_option ( p_id=>28488306101493931.4306 + wwv_flow_api.g_id_offset, p_menu_id=>6678815232629976.4306 + wwv_flow_api.g_id_offset, p_parent_id=>7700814894541393.4306 + wwv_flow_api.g_id_offset, p_option_sequence=>10, p_short_name=>'实用程序', p_long_name=>'', p_link=>'f?p=4500:1005:&SESSION.', p_page_id=>77777, p_also_current_for_pages=> ''); wwv_flow_api.create_menu_option ( p_id=>75399131516711549.4306 + wwv_flow_api.g_id_offset, p_menu_id=>6678815232629976.4306 + wwv_flow_api.g_id_offset, p_parent_id=>6837120647738320.4306 + wwv_flow_api.g_id_offset, p_option_sequence=>10, p_short_name=>'文本数据加载详细资料', p_long_name=>'', p_link=>'f?p=&APP_ID.:7:&SESSION.::&DEBUG.:::', p_page_id=>7, p_also_current_for_pages=> ''); wwv_flow_api.create_menu_option ( p_id=>75401212754720215.4306 + wwv_flow_api.g_id_offset, p_menu_id=>6678815232629976.4306 + wwv_flow_api.g_id_offset, p_parent_id=>6679330816634474.4306 + wwv_flow_api.g_id_offset, p_option_sequence=>10, p_short_name=>'加载 XML 数据', p_long_name=>'', p_link=>'f?p=&APP_ID.:16:&SESSION.::&DEBUG.:::', p_page_id=>16, p_also_current_for_pages=> ''); wwv_flow_api.create_menu_option ( p_id=>75402808656722114.4306 + wwv_flow_api.g_id_offset, p_menu_id=>6678815232629976.4306 + wwv_flow_api.g_id_offset, p_parent_id=>6679330816634474.4306 + wwv_flow_api.g_id_offset, p_option_sequence=>10, p_short_name=>'加载 XML 数据', p_long_name=>'', p_link=>'f?p=&APP_ID.:17:&SESSION.::&DEBUG.:::', p_page_id=>17, p_also_current_for_pages=> ''); wwv_flow_api.create_menu_option ( p_id=>75405026975728819.4306 + wwv_flow_api.g_id_offset, p_menu_id=>6678815232629976.4306 + wwv_flow_api.g_id_offset, p_parent_id=>6679330816634474.4306 + wwv_flow_api.g_id_offset, p_option_sequence=>10, p_short_name=>'加载数据', p_long_name=>'', p_link=>'f?p=&APP_ID.:250:&SESSION.::&DEBUG.:::', p_page_id=>250, p_also_current_for_pages=> ''); null; end; / begin wwv_flow_api.create_menu_option ( p_id=>236917018865057364.4306 + wwv_flow_api.g_id_offset, p_menu_id=>6678815232629976.4306 + wwv_flow_api.g_id_offset, p_parent_id=>9390600588273869.4306 + wwv_flow_api.g_id_offset, p_option_sequence=>10, p_short_name=>'电子表格加载详细资料', p_long_name=>'', p_link=>'f?p=&APP_ID.:2:&SESSION.::&DEBUG.:::', p_page_id=>2, p_also_current_for_pages=> ''); null; end; / prompt ...page templates for application: 4306 -- --application/shared_components/user_interface/templates/page/4300_printer_friendly_zh_cn prompt ......Page template 9113661096283.4306 begin declare c1 varchar2(32767) := null; c2 varchar2(32767) := null; c3 varchar2(32767) := null; l_clob clob; l_length number := 1; begin c1:=c1||''||chr(10)|| '
#MESSAGE#'||chr(10)|| '#RETURN_TO_APPLICATION#', p_reference_id=> 80874804748045950, p_translate_this_template => 'N', p_template_comment => ''); end; null; end; / --application/shared_components/user_interface/templates/page/green_look_left_and_right_sidebars_from_4999_zh_cn prompt ......Page template 3485606247566446.4306 begin declare c1 varchar2(32767) := null; c2 varchar2(32767) := null; c3 varchar2(32767) := null; l_clob clob; l_length number := 1; begin c1:=c1||''||chr(10)|| '
#LOGO# | '||chr(10)|| '#NAVIGATION_BAR# | '||chr(10)|| ' |
#REGION_POSITION_07# | '||chr(10)|| ' |
#REG'; c3:=c3||'ION_POSITION_01# | '||chr(10)|| '#REGION_POSITION_02##REGION_POSITION_04##BOX_BODY# | '||chr(10)||
'#REGION_POSITION_03##REGION_POSITION_05# | '||chr(10)||
'
#LOGO# | '||chr(10)|| '#NAVIGATION_BAR# | '||chr(10)|| ' |
#REGION_POSITION_07# | '||chr(10)|| ' |
#REGION_POSITION_02##BOX_BODY# | '||chr(10)|| '#REGION_POSITION_03##REGION_POSITION_05# | '||chr(10)||
'
#MESSAGE#'||chr(10)|| '#RETURN_TO_APPLICATION#', p_reference_id=> 18525411970780075, p_translate_this_template => 'N', p_template_comment => ''); end; null; end; / prompt ...button templates -- --------------------------------------- prompt ...region templates -- --application/shared_components/user_interface/templates/region/gray_box prompt ......region template 9113673096289.4306 begin declare t varchar2(32767) := null; t2 varchar2(32767) := null; t3 varchar2(32767) := null; l_clob clob; l_clob2 clob; l_clob3 clob; l_length number := 1; begin t:=t||'
#TITLE# | #CLOSE# #EDIT##EXPAND##HELP##DELETE##COPY##CREATE# |
---|---|
#BODY# |
#TITLE# | ||
---|---|---|
#BODY# |
#BODY# | #CLOSE##COPY##DELETE##CHANGE##EDIT##PREVIOUS##NEXT##CREATE##EXPAND# | ||
#TITLE#'; t:=t||'th> |
---|
#BODY# |
#BODY# | #CLOSE##EDIT##DELETE##CREATE##CREATE2##PREVIOUS##NEXT# |
#TITLE# | #CLOSE# #EDIT##DELETE##CREATE##CREATE2# #PREVIOUS##NEXT# |
---|---|
#BODY# |
#TITLE# | #CLOSE# #DELETE##EDIT##CHANGE##PREVIOUS##NEXT##CREATE# |
---|---|
#BODY# |
#TITLE# | ||
---|---|---|
#BODY# |
#BODY# | #CLOSE##EDIT##DELETE##CREATE##CREATE2##PREVIOUS##NEXT# | '||chr(10)|| '|||
#TITLE# | #CLOSE# #DELETE##EDIT##CHANGE##PREVIOUS##NEXT##CREATE# |
---|---|
#BODY# |
', p_page_footer_text =>' |