Automatic export of Application 155
git-svn-id: http://locode01.ad.dom/svn/WEBMIP/trunk@3627 248e525c-4dfb-0310-94bc-949c084e9493
This commit is contained in:
288
Screens/f155.sql
288
Screens/f155.sql
@@ -13,7 +13,7 @@ prompt APPLICATION 155 - webmip
|
|||||||
-- Application Export:
|
-- Application Export:
|
||||||
-- Application: 155
|
-- Application: 155
|
||||||
-- Name: webmip
|
-- Name: webmip
|
||||||
-- Date and Time: 18:40 Monday February 18, 2008
|
-- Date and Time: 21:00 Monday February 18, 2008
|
||||||
-- Exported By:
|
-- Exported By:
|
||||||
-- Flashback: 0
|
-- Flashback: 0
|
||||||
-- Export Type: Application Export
|
-- Export Type: Application Export
|
||||||
@@ -35,9 +35,9 @@ prompt APPLICATION 155 - webmip
|
|||||||
-- Shared Components
|
-- Shared Components
|
||||||
-- Breadcrumbs: 1
|
-- Breadcrumbs: 1
|
||||||
-- Entries 1
|
-- Entries 1
|
||||||
-- Items: 6
|
-- Items: 7
|
||||||
-- Computations: 4
|
-- Computations: 4
|
||||||
-- Processes: 1
|
-- Processes: 2
|
||||||
-- Parent Tabs: 0
|
-- Parent Tabs: 0
|
||||||
-- Tab Sets: 0
|
-- Tab Sets: 0
|
||||||
-- Tabs: 0
|
-- Tabs: 0
|
||||||
@@ -46,7 +46,7 @@ prompt APPLICATION 155 - webmip
|
|||||||
-- Shortcuts: 1
|
-- Shortcuts: 1
|
||||||
-- Themes: 1
|
-- Themes: 1
|
||||||
-- Templates:
|
-- Templates:
|
||||||
-- Page: 9
|
-- Page: 10
|
||||||
-- List: 14
|
-- List: 14
|
||||||
-- Report: 7
|
-- Report: 7
|
||||||
-- Label: 5
|
-- Label: 5
|
||||||
@@ -143,9 +143,9 @@ wwv_flow_api.create_flow(
|
|||||||
p_default_page_template=> 24734011047526756 + wwv_flow_api.g_id_offset,
|
p_default_page_template=> 24734011047526756 + wwv_flow_api.g_id_offset,
|
||||||
p_printer_friendly_template=> 24735530196526758 + wwv_flow_api.g_id_offset,
|
p_printer_friendly_template=> 24735530196526758 + wwv_flow_api.g_id_offset,
|
||||||
p_default_region_template=> 24740611526526770 + wwv_flow_api.g_id_offset,
|
p_default_region_template=> 24740611526526770 + wwv_flow_api.g_id_offset,
|
||||||
p_error_template => 24734616867526758 + wwv_flow_api.g_id_offset,
|
p_error_template => 38911722486594102 + wwv_flow_api.g_id_offset,
|
||||||
p_page_protection_enabled_y_n=> 'N',
|
p_page_protection_enabled_y_n=> 'N',
|
||||||
p_checksum_salt_last_reset => '20080218180033',
|
p_checksum_salt_last_reset => '20080218204215',
|
||||||
p_home_link => 'f?p=&APP_ID.:1',
|
p_home_link => 'f?p=&APP_ID.:1',
|
||||||
p_box_width => '98%',
|
p_box_width => '98%',
|
||||||
p_flow_language => 'en-gb',
|
p_flow_language => 'en-gb',
|
||||||
@@ -187,7 +187,7 @@ wwv_flow_api.create_flow(
|
|||||||
p_substitution_string_01 => 'SYSTEM_ENVIRONMENT',
|
p_substitution_string_01 => 'SYSTEM_ENVIRONMENT',
|
||||||
p_substitution_value_01 => '(Development)',
|
p_substitution_value_01 => '(Development)',
|
||||||
p_last_updated_by => 'HARDYA',
|
p_last_updated_by => 'HARDYA',
|
||||||
p_last_upd_yyyymmddhh24miss=> '20080218180033',
|
p_last_upd_yyyymmddhh24miss=> '20080218204215',
|
||||||
p_required_roles=> wwv_flow_utilities.string_to_table2(''));
|
p_required_roles=> wwv_flow_utilities.string_to_table2(''));
|
||||||
|
|
||||||
|
|
||||||
@@ -289,6 +289,58 @@ end;
|
|||||||
|
|
||||||
prompt ...application processes
|
prompt ...application processes
|
||||||
--
|
--
|
||||||
|
--application/shared_components/logic/application_processes/geterrormsg
|
||||||
|
|
||||||
|
begin
|
||||||
|
|
||||||
|
declare
|
||||||
|
p varchar2(32767) := null;
|
||||||
|
l_clob clob;
|
||||||
|
l_length number := 1;
|
||||||
|
begin
|
||||||
|
p:=p||'declare'||chr(10)||
|
||||||
|
' l_msg varchar2(500);'||chr(10)||
|
||||||
|
'begin'||chr(10)||
|
||||||
|
'htp.prn(''ereiam'');'||chr(10)||
|
||||||
|
''||chr(10)||
|
||||||
|
'if :ORA_ERROR_CODE = 1 then'||chr(10)||
|
||||||
|
'htp.prn(''Unique Constraint thingy'');'||chr(10)||
|
||||||
|
'else'||chr(10)||
|
||||||
|
'htp.prn(''I don''t know about this'':||#SQLCODE#||'':''||#SQLERRM#);'||chr(10)||
|
||||||
|
'end if;'||chr(10)||
|
||||||
|
''||chr(10)||
|
||||||
|
'/*'||chr(10)||
|
||||||
|
' for i in (select msg_code, msg_desc from apex_message'||chr(10)||
|
||||||
|
' where msg_code = :ORA_ERR_CODE )'||chr(10)||
|
||||||
|
' loop'||chr(10)||
|
||||||
|
' l_msg := ''GEN-''||i.msg_code||'': ''||i.msg_desc;'||chr(10)||
|
||||||
|
' end loop; '||chr(10)||
|
||||||
|
' ht';
|
||||||
|
|
||||||
|
p:=p||'p.prn(l_msg);'||chr(10)||
|
||||||
|
'*/'||chr(10)||
|
||||||
|
'end;';
|
||||||
|
|
||||||
|
wwv_flow_api.create_flow_process(
|
||||||
|
p_id => 38913520155650213 + 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=> 'getErrorMsg',
|
||||||
|
p_process_sql_clob=> p,
|
||||||
|
p_process_error_message=> 'Could not run getErrorMsg...',
|
||||||
|
p_process_when=> '',
|
||||||
|
p_process_when_type=> '',
|
||||||
|
p_required_patch=> null + wwv_flow_api.g_id_offset,
|
||||||
|
p_process_comment=> '');
|
||||||
|
end;
|
||||||
|
|
||||||
|
null;
|
||||||
|
|
||||||
|
end;
|
||||||
|
/
|
||||||
|
|
||||||
--application/shared_components/logic/application_processes/removen
|
--application/shared_components/logic/application_processes/removen
|
||||||
|
|
||||||
begin
|
begin
|
||||||
@@ -397,6 +449,25 @@ null;
|
|||||||
end;
|
end;
|
||||||
/
|
/
|
||||||
|
|
||||||
|
--application/shared_components/logic/application_items/ora_err_code
|
||||||
|
|
||||||
|
begin
|
||||||
|
|
||||||
|
wwv_flow_api.create_flow_item(
|
||||||
|
p_id=> 38912731667634594 + wwv_flow_api.g_id_offset,
|
||||||
|
p_flow_id=> wwv_flow.g_flow_id,
|
||||||
|
p_name=> 'ORA_ERR_CODE',
|
||||||
|
p_data_type=> 'VARCHAR',
|
||||||
|
p_is_persistent=> 'Y',
|
||||||
|
p_protection_level=> 'N',
|
||||||
|
p_required_patch=> null + wwv_flow_api.g_id_offset,
|
||||||
|
p_item_comment=> '');
|
||||||
|
|
||||||
|
null;
|
||||||
|
|
||||||
|
end;
|
||||||
|
/
|
||||||
|
|
||||||
--application/shared_components/logic/application_items/webmip_prev_page_id
|
--application/shared_components/logic/application_items/webmip_prev_page_id
|
||||||
|
|
||||||
begin
|
begin
|
||||||
@@ -43803,6 +43874,207 @@ null;
|
|||||||
end;
|
end;
|
||||||
/
|
/
|
||||||
|
|
||||||
|
--application/shared_components/user_interface/templates/page/errorpage
|
||||||
|
prompt ......Page template 38911722486594102
|
||||||
|
|
||||||
|
begin
|
||||||
|
|
||||||
|
declare
|
||||||
|
c1 varchar2(32767) := null;
|
||||||
|
c2 varchar2(32767) := null;
|
||||||
|
c3 varchar2(32767) := null;
|
||||||
|
l_clob clob;
|
||||||
|
l_length number := 1;
|
||||||
|
begin
|
||||||
|
c1:=c1||'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml1-transitional.dtd">'||chr(10)||
|
||||||
|
'<html lang="&BROWSER_LANGUAGE." xmlns:htmldb="http://htmldb.oracle.com">'||chr(10)||
|
||||||
|
'<head>'||chr(10)||
|
||||||
|
'<title>#TITLE#</title>'||chr(10)||
|
||||||
|
'<link rel="stylesheet" href="#WORKSPACE_IMAGES#common.css" type="text/css" />'||chr(10)||
|
||||||
|
'#HEAD#'||chr(10)||
|
||||||
|
'</head>'||chr(10)||
|
||||||
|
'<body #ONLOAD#>#FORM_OPEN#'||chr(10)||
|
||||||
|
'<div id="rowHd">'||chr(10)||
|
||||||
|
'<div id="logo" class="hskpco';
|
||||||
|
|
||||||
|
c1:=c1||'l1">'||chr(10)||
|
||||||
|
'<a href="http://www.nationalgrid.com/"><img src="#WORKSPACE_IMAGES#logo_group_medium.gif" alt="National Grid Metering"/></a>'||chr(10)||
|
||||||
|
'</div>'||chr(10)||
|
||||||
|
'<div id="navHousekeep" class="hskpcol2">'||chr(10)||
|
||||||
|
'<div class="margin5">'||chr(10)||
|
||||||
|
'<a href="this is the url for the holding page for the ICOMQ system" class="hskpnav" title="Return to the Metering Online Quotations Home Page" accesskey="1">Home</a> | <a href="&LOGOUT_';
|
||||||
|
|
||||||
|
c1:=c1||'URL." class="hskpnav" title="Log out of the system" accesskey="2">Logout</a> | <!--a href="/group/help" class="hskpnav">Help</a> | --><span>You are logged in as:&APP_USER.</span>'||chr(10)||
|
||||||
|
'</div>'||chr(10)||
|
||||||
|
'</div>'||chr(10)||
|
||||||
|
'</div>'||chr(10)||
|
||||||
|
'<div id="rowSiteNav">'||chr(10)||
|
||||||
|
'<p>I & C Online Quotation System &SYSTEM_ENVIRONMENT.</p> '||chr(10)||
|
||||||
|
'</div>'||chr(10)||
|
||||||
|
''||chr(10)||
|
||||||
|
'<script type="text/javascript">'||chr(10)||
|
||||||
|
''||chr(10)||
|
||||||
|
'function MyErrorPage(p_err_item,p_err_proces';
|
||||||
|
|
||||||
|
c1:=c1||'s)'||chr(10)||
|
||||||
|
'{'||chr(10)||
|
||||||
|
''||chr(10)||
|
||||||
|
' var vElementList = null;'||chr(10)||
|
||||||
|
' var vElement = null;'||chr(10)||
|
||||||
|
' var vErrorStack = null;'||chr(10)||
|
||||||
|
' var vOraError = null;'||chr(10)||
|
||||||
|
' var vOraCode = null;'||chr(10)||
|
||||||
|
' var vAjaxRequest = null;'||chr(10)||
|
||||||
|
' var vAjaxResult = null;'||chr(10)||
|
||||||
|
' var vMyMsg = '''';'||chr(10)||
|
||||||
|
''||chr(10)||
|
||||||
|
' vElementList = window.document.getElementsByTagName("div");'||chr(10)||
|
||||||
|
' for (i=0; i < vElementList.length; i++)'||chr(10)||
|
||||||
|
' {'||chr(10)||
|
||||||
|
' vElement = vElementList[i];'||chr(10)||
|
||||||
|
' '||chr(10)||
|
||||||
|
' if (vElement.className == "Erro';
|
||||||
|
|
||||||
|
c1:=c1||'rPageMessage")'||chr(10)||
|
||||||
|
' {'||chr(10)||
|
||||||
|
' vErrorStack = (vErrorStack ==null?"":vErrorStack+"<br/>")+vElement.innerHTML;'||chr(10)||
|
||||||
|
' vElement.innerHTML = '''';'||chr(10)||
|
||||||
|
' vOraError = vErrorStack.split("ORA-");'||chr(10)||
|
||||||
|
'alert(''ereiam:'' + vErrorStack + ''length=''+vOraError.length);'||chr(10)||
|
||||||
|
' for(var i=1; i < vOraError.length; i++) {'||chr(10)||
|
||||||
|
'alert(''ereiam:before the substring of:''+vOraError[i]);'||chr(10)||
|
||||||
|
'alert(''ereiam:should be:''+vOraError[i].substring(0,5));'||chr(10)||
|
||||||
|
'';
|
||||||
|
|
||||||
|
c1:=c1||' vOraCode = vOraError[i].substring(0,5);'||chr(10)||
|
||||||
|
'alert(''ereiam:'' + vOraCode);'||chr(10)||
|
||||||
|
'alert(''ereiam:'' + ''APPLICATION_PROCESS=''+p_err_process);'||chr(10)||
|
||||||
|
' vAjaxRequest = new htmldb_Get(null,&APP_ID.,''APPLICATION_PROCESS=''+p_err_process,0);'||chr(10)||
|
||||||
|
'alert(''ereiam:new'');'||chr(10)||
|
||||||
|
' vAjaxRequest.add(p_err_item,vOraCode);'||chr(10)||
|
||||||
|
'alert(''ereiam:add'');'||chr(10)||
|
||||||
|
' vAjaxResult = vAjaxRequest.get();'||chr(10)||
|
||||||
|
'alert(''ereiam:''+vAjaxResult);'||chr(10)||
|
||||||
|
'vMyMsg = ''H';
|
||||||
|
|
||||||
|
c1:=c1||'ello World'';'||chr(10)||
|
||||||
|
''||chr(10)||
|
||||||
|
'/* if (vAjaxResult) {'||chr(10)||
|
||||||
|
' vMyMsg = vMyMsg + vAjaxResult + ''<br>'' ;'||chr(10)||
|
||||||
|
' } else {'||chr(10)||
|
||||||
|
' vMyMsg = ''No vAjaxResult, so'' +vMyMsg + ''ORA-''+vOraError.substring(0) + ''<br>'' ;'||chr(10)||
|
||||||
|
' }'||chr(10)||
|
||||||
|
'*/'||chr(10)||
|
||||||
|
' }'||chr(10)||
|
||||||
|
' document.getElementById(''ORA'').innerHTML = vMyMsg;'||chr(10)||
|
||||||
|
''||chr(10)||
|
||||||
|
' }'||chr(10)||
|
||||||
|
' }'||chr(10)||
|
||||||
|
'}'||chr(10)||
|
||||||
|
'</script>'||chr(10)||
|
||||||
|
''||chr(10)||
|
||||||
|
'<body onload="MyErrorPage(''ORA_ERR_CODE'',''getErrorMsg'')" #ONLOAD#>#FORM_OPEN#'||chr(10)||
|
||||||
|
'';
|
||||||
|
|
||||||
|
c2:=c2||'<div id="rowFooter"><!-- bottom strip of info -->'||chr(10)||
|
||||||
|
' '||chr(10)||
|
||||||
|
' <div class="clear"></div>'||chr(10)||
|
||||||
|
' <div class="access"><hr></div>'||chr(10)||
|
||||||
|
''||chr(10)||
|
||||||
|
' '||chr(10)||
|
||||||
|
' <div class="hskpcol1"><!-- copyright box -->'||chr(10)||
|
||||||
|
' <div id="copyright">Copyright © <!--2006--><span id="Pagefooter_lblYear">2007</span> National Grid</div>'||chr(10)||
|
||||||
|
' </div>'||chr(10)||
|
||||||
|
' '||chr(10)||
|
||||||
|
' <div class="hskpcol2">'||chr(10)||
|
||||||
|
' <div id="navFooter">'||chr(10)||
|
||||||
|
' <a href="thehelp.htm">Help</a> | '||chr(10)||
|
||||||
|
' <a';
|
||||||
|
|
||||||
|
c2:=c2||' href="thetermsandconditions.htm">Terms & conditions</a>'||chr(10)||
|
||||||
|
''||chr(10)||
|
||||||
|
' | <a href="theprivacypolicy.htm">Privacy policy</a>'||chr(10)||
|
||||||
|
' </div>'||chr(10)||
|
||||||
|
' </div>'||chr(10)||
|
||||||
|
' '||chr(10)||
|
||||||
|
'</div>'||chr(10)||
|
||||||
|
'#REGION_POSITION_05#'||chr(10)||
|
||||||
|
'#FORM_CLOSE# '||chr(10)||
|
||||||
|
'</body>'||chr(10)||
|
||||||
|
'</html>';
|
||||||
|
|
||||||
|
c3:=c3||'<div id="UKSubNav" class="reg">'||chr(10)||
|
||||||
|
'#REGION_POSITION_01#'||chr(10)||
|
||||||
|
'</div>'||chr(10)||
|
||||||
|
'<div id="rowContent">'||chr(10)||
|
||||||
|
'<div id="colLeft">'||chr(10)||
|
||||||
|
'<div id="navTier" class="w180">#REGION_POSITION_08#</div>'||chr(10)||
|
||||||
|
'</div>'||chr(10)||
|
||||||
|
'<div id="colMid">'||chr(10)||
|
||||||
|
''||chr(10)||
|
||||||
|
'#BOX_BODY#'||chr(10)||
|
||||||
|
''||chr(10)||
|
||||||
|
'#REGION_POSITION_02#'||chr(10)||
|
||||||
|
'#REGION_POSITION_03#'||chr(10)||
|
||||||
|
'#REGION_POSITION_04#'||chr(10)||
|
||||||
|
'</div>'||chr(10)||
|
||||||
|
'<div id="colRight">'||chr(10)||
|
||||||
|
'<h1 class="podTitle"><img src="#WORKSPACE_IMAGES#exclaim.gif" alt=""/>Important Messages</h1>'||chr(10)||
|
||||||
|
'<d';
|
||||||
|
|
||||||
|
c3:=c3||'iv class="t4messages">#GLOBAL_NOTIFICATION##SUCCESS_MESSAGE##NOTIFICATION_MESSAGE#</div>'||chr(10)||
|
||||||
|
'</div>'||chr(10)||
|
||||||
|
'</div>'||chr(10)||
|
||||||
|
''||chr(10)||
|
||||||
|
''||chr(10)||
|
||||||
|
''||chr(10)||
|
||||||
|
'';
|
||||||
|
|
||||||
|
wwv_flow_api.create_template(
|
||||||
|
p_id=> 38911722486594102 + wwv_flow_api.g_id_offset,
|
||||||
|
p_flow_id=> wwv_flow.g_flow_id,
|
||||||
|
p_name=> 'ErrorPage',
|
||||||
|
p_body_title=> '',
|
||||||
|
p_header_template=> c1,
|
||||||
|
p_box=> c3,
|
||||||
|
p_footer_template=> c2,
|
||||||
|
p_success_message=> '<div class="t4success">#SUCCESS_MESSAGE#</div>',
|
||||||
|
p_current_tab=> '',
|
||||||
|
p_current_tab_font_attr=> '',
|
||||||
|
p_non_current_tab=> '',
|
||||||
|
p_non_current_tab_font_attr => '',
|
||||||
|
p_top_current_tab=> '',
|
||||||
|
p_top_current_tab_font_attr => '',
|
||||||
|
p_top_non_curr_tab=> '',
|
||||||
|
p_top_non_curr_tab_font_attr=> '',
|
||||||
|
p_current_image_tab=> '',
|
||||||
|
p_non_current_image_tab=> '',
|
||||||
|
p_notification_message=> '<div class="t4notification">#MESSAGE#</div>',
|
||||||
|
p_navigation_bar=> '',
|
||||||
|
p_navbar_entry=> '<li><img src="#WORKSPACE_IMAGES#black.gif" alt=""><a href="#LINK#">#TEXT#</a></li>',
|
||||||
|
p_app_tab_before_tabs=>'',
|
||||||
|
p_app_tab_current_tab=>'',
|
||||||
|
p_app_tab_non_current_tab=>'',
|
||||||
|
p_app_tab_after_tabs=>'',
|
||||||
|
p_region_table_cattributes=> ' summary="" cellpadding="0" border="0" cellspacing="0" width="100%"',
|
||||||
|
p_sidebar_def_reg_pos => 'REGION_POSITION_02',
|
||||||
|
p_breadcrumb_def_reg_pos => 'REGION_POSITION_01',
|
||||||
|
p_theme_id => 101,
|
||||||
|
p_theme_class_id => 3,
|
||||||
|
p_error_page_template => '<table summary=""><tr><td><img src="/i/error.gif" border="0" /></td>'||chr(10)||
|
||||||
|
'</tr>'||chr(10)||
|
||||||
|
'<b id=''ORA''>Error</b>'||chr(10)||
|
||||||
|
'<tr><td><a href=#BACK_LINK#>#OK#</a></td>'||chr(10)||
|
||||||
|
'<td><br /></td></tr></table> ',
|
||||||
|
p_required_patch => null + wwv_flow_api.g_id_offset,
|
||||||
|
p_template_comment => '');
|
||||||
|
end;
|
||||||
|
|
||||||
|
null;
|
||||||
|
|
||||||
|
end;
|
||||||
|
/
|
||||||
|
|
||||||
prompt ...button templates
|
prompt ...button templates
|
||||||
--
|
--
|
||||||
--application/shared_components/user_interface/templates/button/button
|
--application/shared_components/user_interface/templates/button/button
|
||||||
@@ -46935,7 +47207,7 @@ wwv_flow_api.create_theme (
|
|||||||
p_theme_id => 101,
|
p_theme_id => 101,
|
||||||
p_theme_name=>'National Grid',
|
p_theme_name=>'National Grid',
|
||||||
p_default_page_template=>24734011047526756 + wwv_flow_api.g_id_offset,
|
p_default_page_template=>24734011047526756 + wwv_flow_api.g_id_offset,
|
||||||
p_error_template=>24734616867526758 + wwv_flow_api.g_id_offset,
|
p_error_template=>38911722486594102 + wwv_flow_api.g_id_offset,
|
||||||
p_printer_friendly_template=>24735530196526758 + wwv_flow_api.g_id_offset,
|
p_printer_friendly_template=>24735530196526758 + wwv_flow_api.g_id_offset,
|
||||||
p_breadcrumb_display_point=>'REGION_POSITION_01',
|
p_breadcrumb_display_point=>'REGION_POSITION_01',
|
||||||
p_sidebar_display_point=>'REGION_POSITION_02',
|
p_sidebar_display_point=>'REGION_POSITION_02',
|
||||||
|
|||||||
Reference in New Issue
Block a user