Fixes to mip_friendly_messages.pck.

Changed additional_items.lead_time to number field.

Removed 'WORKSPACE_IMAGE' references from NG theme.

git-svn-id: http://locode01.ad.dom/svn/WEBMIP/trunk@3637 248e525c-4dfb-0310-94bc-949c084e9493
This commit is contained in:
hardya
2008-02-19 20:46:13 +00:00
parent 7b05c4f822
commit 5946cde4dd
8 changed files with 88 additions and 251 deletions

View File

@@ -1,186 +1,4 @@
LOAD DATA
INFILE *
INTO TABLE constraint_messages
REPLACE
FIELDS TERMINATED BY '|'
TRAILING NULLCOLS
(
constraint_name
,msg
)
BEGINDATA
ADDR_PK|Attempting to create a duplicate Addresses entry
ADIT_PK|Attempting to create a duplicate Additional_Items entry
ALTY_PK|Attempting to create a duplicate Asset_Location_Types entry
AUTH_PK|Attempting to create a duplicate Apex_Authorization entry
AUTH_RT_FK|Application Error: Attempting to violate foreign key constraint AUTH_RT_FK. Please report
BAS_DRWG_FK|Application Error: Attempting to violate foreign key constraint BAS_DRWG_FK. Please repo
BAS_PK|Attempting to create a duplicate Bases entry
BUILDING_OR_SUBBUILDING_REQ|Application Error: Attempting to violate check constraint BUILDING_OR_SU
BYRE_PK|Attempting to create a duplicate Bypass_Reasons entry
CACA_PK|Attempting to create a duplicate Care_Categories entry
CATE_ENTY_FK|Application Error: Attempting to violate foreign key constraint CATE_ENTY_FK. Please re
CATE_METY_FK|Application Error: Attempting to violate foreign key constraint CATE_METY_FK. Please re
CATE_PK|Attempting to create a duplicate Caveat_Texts entry
CATE_SVCPT_FK|Application Error: Attempting to violate foreign key constraint CATE_SVCPT_FK. Please
CNOR_PK|Attempting to create a duplicate Connection_Orientations entry
CNTY_PK|Attempting to create a duplicate Connection_Types entry
COME_COMT_FK|Application Error: Attempting to violate foreign key constraint COME_COMT_FK. Please re
COME_PK|Attempting to create a duplicate Contact_Mechanisms entry
COMSG_PK|Attempting to create a duplicate Constraint_Messages entry
COMT_PK|Attempting to create a duplicate Contact_Mechanism_Types entry
COST_ADIT_FK|Application Error: Attempting to violate foreign key constraint COST_ADIT_FK. Please re
COST_BAS_FK|Application Error: Attempting to violate foreign key constraint COST_BAS_FK. Please repo
COST_ENTY_FK|Application Error: Attempting to violate foreign key constraint COST_ENTY_FK. Please re
COST_HOU_FK|Application Error: Attempting to violate foreign key constraint COST_HOU_FK. Please repo
COST_MESC_FK|Application Error: Attempting to violate foreign key constraint COST_MESC_FK. Please re
COST_METR_FK|Application Error: Attempting to violate foreign key constraint COST_METR_FK. Please re
COST_METY_FK|Application Error: Attempting to violate foreign key constraint COST_METY_FK. Please re
COST_MODU_FK|Application Error: Attempting to violate foreign key constraint COST_MODU_FK. Please re
COST_PK|Attempting to create a duplicate Costs entry
COST_REGI_FK|Application Error: Attempting to violate foreign key constraint COST_REGI_FK. Please re
COST_SVCPT_FK|Application Error: Attempting to violate foreign key constraint COST_SVCPT_FK. Please
DIR_ENTY_FK|Application Error: Attempting to violate foreign key constraint DIR_ENTY_FK. Please repo
DIR_PK|Attempting to create a duplicate Data_Item_Roles entry
DOCU_PK|Attempting to create a duplicate Documents entry
DOEV_DOCU_FK|Application Error: Attempting to violate foreign key constraint DOEV_DOCU_FK. Please re
DOEV_DOST_FK|Application Error: Attempting to violate foreign key constraint DOEV_DOST_FK. Please re
DOEV_PK|Attempting to create a duplicate Document_Events entry
DORO_CK|Application Error: Attempting to violate check constraint DORO_CK. Please report this error
DORO_DOCU_FK|Application Error: Attempting to violate foreign key constraint DORO_DOCU_FK. Please re
DORO_DORO_UK|Attempting to enter a duplicate value (defined by unique constraintDORO_DORO_UK).
DORO_DRWG_FK|Application Error: Attempting to violate foreign key constraint DORO_DRWG_FK. Please re
DORO_ENQU_FK|Application Error: Attempting to violate foreign key constraint DORO_ENQU_FK. Please re
DORO_PK|Attempting to create a duplicate Document_Roles entry
DORO_QUTE_FK|Application Error: Attempting to violate foreign key constraint DORO_QUTE_FK. Please re
DORO_RT_FK|Application Error: Attempting to violate foreign key constraint DORO_RT_FK. Please report
DOST_PK|Attempting to create a duplicate Document_Status_Types entry
DRWG_PK|Attempting to create a duplicate Drawings entry
ENEV_ENQU_FK|Application Error: Attempting to violate foreign key constraint ENEV_ENQU_FK. Please re
ENEV_ENST_FK|Application Error: Attempting to violate foreign key constraint ENEV_ENST_FK. Please re
ENEV_PK|Attempting to create a duplicate Enquiry_Events entry
ENQU_ALTY_FK|Application Error: Attempting to violate foreign key constraint ENQU_ALTY_FK. Please re
ENQU_CACA_FK|Application Error: Attempting to violate foreign key constraint ENQU_CACA_FK. Please re
ENQU_COMT_AGENT_FK|Application Error: Attempting to violate foreign key constraint ENQU_COMT_AGENT_F
ENQU_ENTY_FK|Application Error: Attempting to violate foreign key constraint ENQU_ENTY_FK. Please re
QUIT_MODU_FK|Application Error: Attempting to violate foreign key constraint QUIT_MODU_FK. Please re
QUIT_PK|Attempting to create a duplicate Quote_Items entry
QUIT_QUTE_FK|Application Error: Attempting to violate foreign key constraint QUIT_QUTE_FK. Please re
QUIT_SVCPT_FK|Application Error: Attempting to violate foreign key constraint QUIT_SVCPT_FK. Please
QURE_ENQU_FK|Application Error: Attempting to violate foreign key constraint QURE_ENQU_FK. Please re
QURE_PK|Attempting to create a duplicate Quote_Reasoning entry
QURO_PK|Attempting to create a duplicate Quote_Roles entry
QURO_PRTY_FK|Application Error: Attempting to violate foreign key constraint QURO_PRTY_FK. Please re
QURO_QUTE_FK|Application Error: Attempting to violate foreign key constraint QURO_QUTE_FK. Please re
QURO_RT_FK|Application Error: Attempting to violate foreign key constraint QURO_RT_FK. Please report
QUST_PK|Attempting to create a duplicate Quote_Statuses entry
QUTE_ENQU_FK|Application Error: Attempting to violate foreign key constraint QUTE_ENQU_FK. Please re
QUTE_PK|Attempting to create a duplicate Quotes entry
REEX_ADIT_FK|Application Error: Attempting to violate foreign key constraint REEX_ADIT_FK. Please re
REEX_ENTY_FK|Application Error: Attempting to violate foreign key constraint REEX_ENTY_FK. Please re
REEX_PK|Attempting to create a duplicate Regi_Enqu_Exclusions entry
REEX_REEX_UK|Attempting to enter a duplicate value (defined by unique constraintREEX_REEX_UK).
REEX_REGI_FK|Application Error: Attempting to violate foreign key constraint REEX_REGI_FK. Please re
REGI_PK|Attempting to create a duplicate Regions entry
REGU_PK|Attempting to create a duplicate Regulators entry
REGU_RETY_FK|Application Error: Attempting to violate foreign key constraint REGU_RETY_FK. Please re
RETY_PK|Attempting to create a duplicate Regulator_Types entry
REVA_PK|Attempting to create a duplicate Relief_Valves entry
REVA_RVTY_FK|Application Error: Attempting to violate foreign key constraint REVA_RVTY_FK. Please re
RT_PK|Attempting to create a duplicate Role_Types entry
RVTY_PK|Attempting to create a duplicate Relief_Valve_Types entry
SLTY_PK|Attempting to create a duplicate Slamshut_Types entry
SLVA_PK|Attempting to create a duplicate Slamshut_Valves entry
SLVA_SLTY_FK|Application Error: Attempting to violate foreign key constraint SLVA_SLTY_FK. Please re
SVCPT_PK|Attempting to create a duplicate Service_Pressure_Types entry
SVCP_PK|Attempting to create a duplicate Service_Pressures entry
SVCP_SVCPT_FK|Application Error: Attempting to violate foreign key constraint SVCP_SVCPT_FK. Please
SYCO_PK|Attempting to create a duplicate System_Configuration entry
PREL_PARL_FROM_FK|Application Error: Attempting to violate foreign key constraint PREL_PARL_FROM_FK.
PREL_PARL_TO_FK|Application Error: Attempting to violate foreign key constraint PREL_PARL_TO_FK. Ple
PREL_PK|Attempting to create a duplicate Party_Relationships entry
PREL_PRTP_FK|Application Error: Attempting to violate foreign key constraint PREL_PRTP_FK. Please re
PRTP_PK|Attempting to create a duplicate Party_Relationship_Types entry
PRTP_RT_FK|Application Error: Attempting to violate foreign key constraint PRTP_RT_FK. Please report
PRTP_RT_FROM_FK|Application Error: Attempting to violate foreign key constraint PRTP_RT_FROM_FK. Ple
PRTY_MANU_MANU_REF_UK|Attempting to enter a duplicate value (defined by unique constraintPRTY_MANU_M
PRTY_MKTP_MKTP_REF_UK|Attempting to enter a duplicate value (defined by unique constraintPRTY_MKTP_M
PRTY_PK|Attempting to create a duplicate Parties entry
PWD_PK|Attempting to create a duplicate Passwords entry
PWD_PRTY_FK|Application Error: Attempting to violate foreign key constraint PWD_PRTY_FK. Please repo
QUEV_PK|Attempting to create a duplicate Quote_Events entry
QUEV_QUST_FK|Application Error: Attempting to violate foreign key constraint QUEV_QUST_FK. Please re
QUEV_QUTE_FK|Application Error: Attempting to violate foreign key constraint QUEV_QUTE_FK. Please re
QUIT_ADIT_FK|Application Error: Attempting to violate foreign key constraint QUIT_ADIT_FK. Please re
QUIT_BAS_FK|Application Error: Attempting to violate foreign key constraint QUIT_BAS_FK. Please repo
QUIT_ENTY_FK|Application Error: Attempting to violate foreign key constraint QUIT_ENTY_FK. Please re
QUIT_HOU_FK|Application Error: Attempting to violate foreign key constraint QUIT_HOU_FK. Please repo
QUIT_MESC_FK|Application Error: Attempting to violate foreign key constraint QUIT_MESC_FK. Please re
QUIT_METY_FK|Application Error: Attempting to violate foreign key constraint QUIT_METY_FK. Please re
ENQU_MESC_EXISTING_FK|Application Error: Attempting to violate foreign key constraint ENQU_MESC_EXIS
ENQU_MESC_REQUIRED_FK|Application Error: Attempting to violate foreign key constraint ENQU_MESC_REQU
ENQU_METY_FK|Application Error: Attempting to violate foreign key constraint ENQU_METY_FK. Please re
ENQU_PK|Attempting to create a duplicate Enquiries entry
ENQU_SVCP_REQUIRED_FK|Application Error: Attempting to violate foreign key constraint ENQU_SVCP_REQU
ENRO_ENQU_FK|Application Error: Attempting to violate foreign key constraint ENRO_ENQU_FK. Please re
ENRO_PK|Attempting to create a duplicate Enquiry_Roles entry
ENRO_PRTY_FK|Application Error: Attempting to violate foreign key constraint ENRO_PRTY_FK. Please re
ENRO_RT_FK|Application Error: Attempting to violate foreign key constraint ENRO_RT_FK. Please report
ENST_PK|Attempting to create a duplicate Enquiry_Status_Types entry
ENTY_PK|Attempting to create a duplicate Enquiry_Types entry
ERLO_PK|Attempting to create a duplicate Error_Logs entry
EXME_PK|Attempting to create a duplicate Exception_Messages entry
FITY_PK|Attempting to create a duplicate Filter_Types entry
FLTR_FITY_FK|Application Error: Attempting to violate foreign key constraint FLTR_FITY_FK. Please re
FLTR_PK|Attempting to create a duplicate Filters entry
HOTY_PK|Attempting to create a duplicate Housing_Types entry
HOU_DRWG_FK|Application Error: Attempting to violate foreign key constraint HOU_DRWG_FK. Please repo
HOU_HOTY_FK|Application Error: Attempting to violate foreign key constraint HOU_HOTY_FK. Please repo
HOU_PK|Attempting to create a duplicate Housings entry
HOU_PRTY_FK|Application Error: Attempting to violate foreign key constraint HOU_PRTY_FK. Please repo
LETI_ENTY_FK|Application Error: Attempting to violate foreign key constraint LETI_ENTY_FK. Please re
LETI_MESC_FK|Application Error: Attempting to violate foreign key constraint LETI_MESC_FK. Please re
LETI_METY_FK|Application Error: Attempting to violate foreign key constraint LETI_METY_FK. Please re
LETI_PK|Attempting to create a duplicate Lead_Times entry
LETI_SVCPT_FK|Application Error: Attempting to violate foreign key constraint LETI_SVCPT_FK. Please
MESC_PK|Attempting to create a duplicate Meter_Size_Codes entry
METR_DRWG_FK|Application Error: Attempting to violate foreign key constraint METR_DRWG_FK. Please re
METR_METY_FK|Application Error: Attempting to violate foreign key constraint METR_METY_FK. Please re
METR_PK|Attempting to create a duplicate Meters entry
METR_PRTY_FK|Application Error: Attempting to violate foreign key constraint METR_PRTY_FK. Please re
METY_PK|Attempting to create a duplicate Meter_Types entry
MODU_BAS_FK|Application Error: Attempting to violate foreign key constraint MODU_BAS_FK. Please repo
MODU_CNOR_INLET_FK|Application Error: Attempting to violate foreign key constraint MODU_CNOR_INLET_F
MODU_CNOR_OUTLET_FK|Application Error: Attempting to violate foreign key constraint MODU_CNOR_OUTLET
MODU_CNTY_INLET_FK|Application Error: Attempting to violate foreign key constraint MODU_CNTY_INLET_F
MODU_CNTY_OUTLET_FK|Application Error: Attempting to violate foreign key constraint MODU_CNTY_OUTLET
MODU_DRWG_FK|Application Error: Attempting to violate foreign key constraint MODU_DRWG_FK. Please re
MODU_FLTR_FK|Application Error: Attempting to violate foreign key constraint MODU_FLTR_FK. Please re
MODU_HOU_FK|Application Error: Attempting to violate foreign key constraint MODU_HOU_FK. Please repo
MODU_METR_FK|Application Error: Attempting to violate foreign key constraint MODU_METR_FK. Please re
MODU_PK|Attempting to create a duplicate Modules entry
MODU_PRTY_FK|Application Error: Attempting to violate foreign key constraint MODU_PRTY_FK. Please re
MODU_REGU_FK|Application Error: Attempting to violate foreign key constraint MODU_REGU_FK. Please re
MODU_REVA_FK|Application Error: Attempting to violate foreign key constraint MODU_REVA_FK. Please re
MODU_SLVA_FK|Application Error: Attempting to violate foreign key constraint MODU_SLVA_FK. Please re
MODU_SVCP_FK|Application Error: Attempting to violate foreign key constraint MODU_SVCP_FK. Please re
PADDR_ADDR_FK|Application Error: Attempting to violate foreign key constraint PADDR_ADDR_FK. Please
PADDR_PK|Attempting to create a duplicate Party_Addresses entry
PADDR_PRTY_FK|Application Error: Attempting to violate foreign key constraint PADDR_PRTY_FK. Please
PARL_PK|Attempting to create a duplicate Party_Roles entry
PARL_PRTP_MISMATCH|Application Error: Attempting to violate check constraint PARL_PRTP_MISMATCH. Ple
PARL_PRTY_FK|Application Error: Attempting to violate foreign key constraint PARL_PRTY_FK. Please re
PARL_RT_FK|Application Error: Attempting to violate foreign key constraint PARL_RT_FK. Please report
PAR_PADDR_FK|Application Error: Attempting to violate foreign key constraint PAR_PADDR_FK. Please re
PAR_PK|Attempting to create a duplicate Party_Address_Roles entry
PAR_RT_FK|Application Error: Attempting to violate foreign key constraint PAR_RT_FK. Please report t
PCMR_PCM_FK|Application Error: Attempting to violate foreign key constraint PCMR_PCM_FK. Please repo
PCMR_PK|Attempting to create a duplicate Party_Contact_Mechanism_Roles entry
PCMR_RT_FK|Application Error: Attempting to violate foreign key constraint PCMR_RT_FK. Please report
PCM_COME_FK|Application Error: Attempting to violate foreign key constraint PCM_COME_FK. Please repo
PCM_PADDR_FK|Application Error: Attempting to violate foreign key constraint PCM_PADDR_FK. Please re
PCM_PK|Attempting to create a duplicate Party_Contact_Mechanisms entry
PCM_PRTY_FK|Application Error: Attempting to violate foreign key constraint PCM_PRTY_FK. Please repo
POCO_PK|Attempting to create a duplicate Postcodes entry
POCO_POCO_UK|Attempting to enter a duplicate value (defined by unique constraintPOCO_POCO_UK).
POCO_REGI_FK|Application Error: Attempting to violate foreign key constraint POCO_REGI_FK. Please re
ERROR:
ORA-01017: invalid username/password; logon denied

View File

@@ -14,6 +14,20 @@ END mip_friendly_messages;
/
CREATE OR REPLACE PACKAGE BODY mip_friendly_messages IS
PROCEDURE pl(p_in VARCHAR2) IS
l_fh utl_file.file_type;
BEGIN
dbms_application_info.set_module('MIP_FRIENDLY_MESSAGES'
,p_in);
l_fh := utl_file.fopen(location => 'WEBMIP_BULK_LOAD'
,filename => 'MIP_FRIENDLY_MESSAGES.txt'
,open_mode => 'A');
utl_file.put_line(l_fh
,to_char(SYSDATE
,'DD/MM/YYYY HH24:MI:SS') || ',' || p_in);
utl_file.fclose(l_fh);
END pl;
FUNCTION get_constraint_message(p_ora_msg IN VARCHAR2) RETURN VARCHAR2 IS
c_marker CONSTANT VARCHAR2(30) := 'constraint (';
c_marker_length CONSTANT NUMBER := length(c_marker);
@@ -23,6 +37,7 @@ CREATE OR REPLACE PACKAGE BODY mip_friendly_messages IS
l_start_posn NUMBER;
l_end_posn NUMBER;
BEGIN
-- get the complete constraint "user.constraint_name"
l_start_posn := instr(p_ora_msg
,c_marker) + c_marker_length;
@@ -33,6 +48,7 @@ CREATE OR REPLACE PACKAGE BODY mip_friendly_messages IS
,l_start_posn
,l_end_posn - l_start_posn + 1);
-- get the "constraint_name"
l_start_posn := instr(l_constraint
,'.') + 1;
@@ -49,7 +65,8 @@ CREATE OR REPLACE PACKAGE BODY mip_friendly_messages IS
l_msg := NULL;
END;
IF l_msg IS NULL
AND l_constraint_name LIKE 'SYS!_C%' ESCAPE '!'
AND l_constraint_name LIKE 'SYS!_C%' ESCAPE
'!'
OR l_constraint_name LIKE 'AVCON!_%' ESCAPE '!' THEN
-- this is a system generated check constraint and should not be appearing
l_msg := 'Application error. Attempting to violate check constraint ' ||
@@ -57,7 +74,7 @@ CREATE OR REPLACE PACKAGE BODY mip_friendly_messages IS
'. Please report this error to Advantica.';
END IF;
RETURN l_msg;
END;
END get_constraint_message;
FUNCTION get_friendly_message(p_ora_msg IN VARCHAR2) RETURN VARCHAR2 IS
l_ora_msg VARCHAR2(240) := p_ora_msg;
@@ -75,7 +92,8 @@ CREATE OR REPLACE PACKAGE BODY mip_friendly_messages IS
l_msg := l_ora_msg;
END IF;
htp.prn(l_msg);
htp.prn(to_char(SYSDATE
,'hh24:mi:ss') || ' ' || l_msg);
END get_friendly_message;
END mip_friendly_messages;

View File

@@ -1,6 +1,6 @@
-- C:\Andy\svn\WEBMIP\Schema\mip.con
--
-- Generated for Oracle 10g on Tue Feb 19 11:32:10 2008 by Server Generator 10.1.2.6.18
-- Generated for Oracle 10g on Tue Feb 19 20:44:58 2008 by Server Generator 10.1.2.6.18
PROMPT Creating Primary Key on 'SYSTEM_CONFIGURATION'
ALTER TABLE SYSTEM_CONFIGURATION
@@ -501,28 +501,28 @@ ALTER TABLE REGI_ENQU_EXCLUSIONS
PROMPT Creating Check Constraint on 'METER_SIZE_CODES'
ALTER TABLE METER_SIZE_CODES
ADD (CONSTRAINT AVCON_1203420730_VALID_000 CHECK (VALID_FOR_EXISTING_METER IN ('YES', 'NO')))
ADD (CONSTRAINT AVCON_1203453897_VALID_000 CHECK (VALID_FOR_EXISTING_METER IN ('YES', 'NO')))
/
PROMPT Creating Check Constraint on 'METER_SIZE_CODES'
ALTER TABLE METER_SIZE_CODES
ADD (CONSTRAINT AVCON_1203420730_VALID_001 CHECK (VALID_FOR_NEW_METER IN ('YES', 'NO')))
ADD (CONSTRAINT AVCON_1203453897_VALID_001 CHECK (VALID_FOR_NEW_METER IN ('YES', 'NO')))
/
PROMPT Creating Check Constraint on 'COSTS'
ALTER TABLE COSTS
ADD (CONSTRAINT AVCON_1203420730_COST__000 CHECK (COST_TYPE
ADD (CONSTRAINT AVCON_1203453897_COST__000 CHECK (COST_TYPE
IN ('LACO', 'BACO', 'MOCO', 'MECO', 'AICO', 'HOCO', 'COST')))
/
PROMPT Creating Check Constraint on 'DOCUMENTS'
ALTER TABLE DOCUMENTS
ADD (CONSTRAINT AVCON_1203420730_DOCU__000 CHECK (DOCU_TYPE IN ('DOCU', 'INDO', 'EXDO', 'FIDO')))
ADD (CONSTRAINT AVCON_1203453897_DOCU__000 CHECK (DOCU_TYPE IN ('DOCU', 'INDO', 'EXDO', 'FIDO')))
/
PROMPT Creating Check Constraint on 'QUOTES'
ALTER TABLE QUOTES
ADD (CONSTRAINT AVCON_1203420730_QUTE__000 CHECK (QUTE_TYPE IN ('AQ', 'MQ', 'QUTE')))
ADD (CONSTRAINT AVCON_1203453897_QUTE__000 CHECK (QUTE_TYPE IN ('AQ', 'MQ', 'QUTE')))
/
PROMPT Creating Check Constraint on 'PARTY_RELATIONSHIPS'
@@ -534,17 +534,17 @@ to_parl_rt_code = to_prtp_rt_code))
PROMPT Creating Check Constraint on 'PARTIES'
ALTER TABLE PARTIES
ADD (CONSTRAINT AVCON_1203420730_TRIPA_000 CHECK (TRIPARTITE_MEMBER IN ('YES', 'NO')))
ADD (CONSTRAINT AVCON_1203453897_TRIPA_000 CHECK (TRIPARTITE_MEMBER IN ('YES', 'NO')))
/
PROMPT Creating Check Constraint on 'PARTIES'
ALTER TABLE PARTIES
ADD (CONSTRAINT AVCON_1203420730_STATU_000 CHECK (STATUS IN ('OPEN', 'EXPIRED', 'LOCKED')))
ADD (CONSTRAINT AVCON_1203453897_STATU_000 CHECK (STATUS IN ('OPEN', 'EXPIRED', 'LOCKED')))
/
PROMPT Creating Check Constraint on 'PARTIES'
ALTER TABLE PARTIES
ADD (CONSTRAINT AVCON_1203420730_PRTY__000 CHECK (PRTY_TYPE
ADD (CONSTRAINT AVCON_1203453897_PRTY__000 CHECK (PRTY_TYPE
IN ('PRTY', 'IO', 'EO', 'MKTP', 'PERS', 'MANU', 'NEMP', 'EMP', 'ORG'
)))
/
@@ -562,82 +562,82 @@ OR
PROMPT Creating Check Constraint on 'DOCUMENT_ROLES'
ALTER TABLE DOCUMENT_ROLES
ADD (CONSTRAINT AVCON_1203420730_DORO__000 CHECK (DORO_TYPE IN ('DRRO', 'DORO', 'ENDO', 'QUDO')))
ADD (CONSTRAINT AVCON_1203453897_DORO__000 CHECK (DORO_TYPE IN ('DRRO', 'DORO', 'ENDO', 'QUDO')))
/
PROMPT Creating Check Constraint on 'QUOTE_ITEMS'
ALTER TABLE QUOTE_ITEMS
ADD (CONSTRAINT AVCON_1203420730_QUIT__000 CHECK (QUIT_TYPE IN ('LQI', 'AQI', 'BQI', 'MQI', 'QUIT', 'HQI')))
ADD (CONSTRAINT AVCON_1203453897_QUIT__000 CHECK (QUIT_TYPE IN ('LQI', 'AQI', 'BQI', 'MQI', 'QUIT', 'HQI')))
/
PROMPT Creating Check Constraint on 'ROLE_TYPES'
ALTER TABLE ROLE_TYPES
ADD (CONSTRAINT AVCON_1203420730_RT_TY_000 CHECK (RT_TYPE IN ('DORT', 'PART', 'RT', 'PCMRT', 'QURT', 'ENRT', 'PRT')))
ADD (CONSTRAINT AVCON_1203453897_RT_TY_000 CHECK (RT_TYPE IN ('DORT', 'PART', 'RT', 'PCMRT', 'QURT', 'ENRT', 'PRT')))
/
PROMPT Creating Check Constraint on 'ENQUIRIES'
ALTER TABLE ENQUIRIES
ADD (CONSTRAINT AVCON_1203420730_DOWNS_000 CHECK (DOWNSTREAM_BOOSTER_OR_COMPRESS IN ('YES', 'NO')))
ADD (CONSTRAINT AVCON_1203453897_DOWNS_000 CHECK (DOWNSTREAM_BOOSTER_OR_COMPRESS IN ('YES', 'NO')))
/
PROMPT Creating Check Constraint on 'ENQUIRIES'
ALTER TABLE ENQUIRIES
ADD (CONSTRAINT AVCON_1203420730_INDIC_000 CHECK (INDICATIVE_TIME IN ('DY', 'AM', 'PM')))
ADD (CONSTRAINT AVCON_1203453897_INDIC_000 CHECK (INDICATIVE_TIME IN ('DY', 'AM', 'PM')))
/
PROMPT Creating Check Constraint on 'ENQUIRIES'
ALTER TABLE ENQUIRIES
ADD (CONSTRAINT AVCON_1203420730_HOUSI_000 CHECK (HOUSING_REQUIRED IN ('YES', 'NO')))
ADD (CONSTRAINT AVCON_1203453897_HOUSI_000 CHECK (HOUSING_REQUIRED IN ('YES', 'NO')))
/
PROMPT Creating Check Constraint on 'ENQUIRIES'
ALTER TABLE ENQUIRIES
ADD (CONSTRAINT AVCON_1203420730_BASE__000 CHECK (BASE_REQUIRED IN ('YES', 'NO')))
ADD (CONSTRAINT AVCON_1203453897_BASE__000 CHECK (BASE_REQUIRED IN ('YES', 'NO')))
/
PROMPT Creating Check Constraint on 'ENQUIRIES'
ALTER TABLE ENQUIRIES
ADD (CONSTRAINT AVCON_1203420730_CONVE_000 CHECK (CONVERTOR_REQUIRED IN ('YES', 'NO')))
ADD (CONSTRAINT AVCON_1203453897_CONVE_000 CHECK (CONVERTOR_REQUIRED IN ('YES', 'NO')))
/
PROMPT Creating Check Constraint on 'ENQUIRIES'
ALTER TABLE ENQUIRIES
ADD (CONSTRAINT AVCON_1203420730_AMR_R_000 CHECK (AMR_REQUIRED IN ('YES', 'NO')))
ADD (CONSTRAINT AVCON_1203453897_AMR_R_000 CHECK (AMR_REQUIRED IN ('YES', 'NO')))
/
PROMPT Creating Check Constraint on 'ENQUIRIES'
ALTER TABLE ENQUIRIES
ADD (CONSTRAINT AVCON_1203420730_EMS_R_000 CHECK (EMS_REQUIRED IN ('YES', 'NO')))
ADD (CONSTRAINT AVCON_1203453897_EMS_R_000 CHECK (EMS_REQUIRED IN ('YES', 'NO')))
/
PROMPT Creating Check Constraint on 'ENQUIRIES'
ALTER TABLE ENQUIRIES
ADD (CONSTRAINT AVCON_1203420730_TWIN__000 CHECK (TWIN_STREAM_REQUIRED IN ('YES', 'NO')))
ADD (CONSTRAINT AVCON_1203453897_TWIN__000 CHECK (TWIN_STREAM_REQUIRED IN ('YES', 'NO')))
/
PROMPT Creating Check Constraint on 'ENQUIRIES'
ALTER TABLE ENQUIRIES
ADD (CONSTRAINT AVCON_1203420730_EXIST_000 CHECK (EXISTING_LOGGER IN ('YES', 'NO')))
ADD (CONSTRAINT AVCON_1203453897_EXIST_000 CHECK (EXISTING_LOGGER IN ('YES', 'NO')))
/
PROMPT Creating Check Constraint on 'ENQUIRIES'
ALTER TABLE ENQUIRIES
ADD (CONSTRAINT AVCON_1203420730_LOAD__000 CHECK (LOAD_CONTROL_TYPE IN ('Constant', 'On/Off', 'Modulating')))
ADD (CONSTRAINT AVCON_1203453897_LOAD__000 CHECK (LOAD_CONTROL_TYPE IN ('Constant', 'On/Off', 'Modulating')))
/
PROMPT Creating Check Constraint on 'ENQUIRIES'
ALTER TABLE ENQUIRIES
ADD (CONSTRAINT AVCON_1203420730_EXIST_001 CHECK (EXISTING_METER_OWNER IN ('S', 'T', 'C')))
ADD (CONSTRAINT AVCON_1203453897_EXIST_001 CHECK (EXISTING_METER_OWNER IN ('S', 'T', 'C')))
/
PROMPT Creating Check Constraint on 'ENQUIRIES'
ALTER TABLE ENQUIRIES
ADD (CONSTRAINT AVCON_1203420730_EXIST_002 CHECK (EXISTING_CONVERTOR IN ('YES', 'NO')))
ADD (CONSTRAINT AVCON_1203453897_EXIST_002 CHECK (EXISTING_CONVERTOR IN ('YES', 'NO')))
/
PROMPT Creating Check Constraint on 'ENQUIRIES'
ALTER TABLE ENQUIRIES
ADD (CONSTRAINT AVCON_1203420730_MARKE_000 CHECK (MARKET_SECTOR_CODE IN ('I', 'D')))
ADD (CONSTRAINT AVCON_1203453897_MARKE_000 CHECK (MARKET_SECTOR_CODE IN ('I', 'D')))
/
PROMPT Creating Check Constraint on 'ADDRESSES'

View File

@@ -1,6 +1,6 @@
-- C:\Andy\svn\WEBMIP\Schema\mip.ind
--
-- Generated for Oracle 10g on Tue Feb 19 11:32:10 2008 by Server Generator 10.1.2.6.18
-- Generated for Oracle 10g on Tue Feb 19 20:44:57 2008 by Server Generator 10.1.2.6.18
PROMPT Creating Index 'REGU_RETY_FK_I'

View File

@@ -1,6 +1,6 @@
-- C:\Andy\svn\WEBMIP\Schema\mip.sql
--
-- Generated for Oracle 10g on Tue Feb 19 11:32:11 2008 by Server Generator 10.1.2.6.18
-- Generated for Oracle 10g on Tue Feb 19 20:44:58 2008 by Server Generator 10.1.2.6.18
SPOOL mip.lst

View File

@@ -1,6 +1,6 @@
-- C:\Andy\svn\WEBMIP\Schema\mip.sqs
--
-- Generated for Oracle 10g on Tue Feb 19 11:32:11 2008 by Server Generator 10.1.2.6.18
-- Generated for Oracle 10g on Tue Feb 19 20:44:58 2008 by Server Generator 10.1.2.6.18
PROMPT Creating Sequence 'FLTR_SEQ'
CREATE SEQUENCE FLTR_SEQ

View File

@@ -1,6 +1,6 @@
-- C:\Andy\svn\WEBMIP\Schema\mip.tab
--
-- Generated for Oracle 10g on Tue Feb 19 11:32:10 2008 by Server Generator 10.1.2.6.18
-- Generated for Oracle 10g on Tue Feb 19 20:44:57 2008 by Server Generator 10.1.2.6.18
@@ -808,7 +808,7 @@ PROMPT Creating Table 'ADDITIONAL_ITEMS'
CREATE TABLE ADDITIONAL_ITEMS
(CODE VARCHAR2(240) NOT NULL
,DESCRIPTION VARCHAR2(240)
,LEAD_TIME VARCHAR2(240)
,LEAD_TIME NUMBER
)
/

View File

@@ -182,13 +182,13 @@ c1:=c1||'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
'<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)||
'<a href="http://www.nationalgrid.com/"><img src="/i/ng_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>&nbsp;|&nbsp;<a href="&LOGOUT_';
'<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>&nbsp;|&nbsp;<a href="&LOGOUT_URL." class=';
c1:=c1||'URL." class="hskpnav" title="Log out of the system" accesskey="2">Logout</a>&nbsp;|&nbsp;<!--a href="/group/help" class="hskpnav">Help</a>&nbsp;|&nbsp;--><span>You are logged in as:&APP_USER.</span>'||chr(10)||
c1:=c1||'"hskpnav" title="Log out of the system" accesskey="2">Logout</a>&nbsp;|&nbsp;<!--a href="/group/help" class="hskpnav">Help</a>&nbsp;|&nbsp;--><span>You are logged in as:&APP_USER.</span>'||chr(10)||
'</div>'||chr(10)||
'</div>'||chr(10)||
'</div>'||chr(10)||
@@ -271,7 +271,7 @@ wwv_flow_api.create_template(
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_navbar_entry=> '<li><img src="/i/ng_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=>'',
@@ -976,13 +976,13 @@ c1:=c1||'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
'<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)||
'<a href="http://www.nationalgrid.com/"><img src="/i/ng_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>&nbsp;|&nbsp;<a href="&LOGOUT_';
'<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>&nbsp;|&nbsp;<a href="&LOGOUT_URL." class=';
c1:=c1||'URL." class="hskpnav" title="Log out of the system" accesskey="2">Logout</a>&nbsp;|&nbsp;<!--a href="/group/help" class="hskpnav">Help</a>&nbsp;|&nbsp;--><span>You are logged in as:&APP_USER.</span>'||chr(10)||
c1:=c1||'"hskpnav" title="Log out of the system" accesskey="2">Logout</a>&nbsp;|&nbsp;<!--a href="/group/help" class="hskpnav">Help</a>&nbsp;|&nbsp;--><span>You are logged in as:&APP_USER.</span>'||chr(10)||
'</div>'||chr(10)||
'</div>'||chr(10)||
'</div>'||chr(10)||
@@ -992,12 +992,12 @@ c1:=c1||'URL." class="hskpnav" title="Log out of the system" accesskey="2">Logou
''||chr(10)||
'<script type="text/javascript">'||chr(10)||
''||chr(10)||
'function MyErrorPage(p_err_item,p_err_proces';
c1:=c1||'s)'||chr(10)||
'function MyErrorPage(p_err_item,p_err_process)'||chr(10)||
'{'||chr(10)||
''||chr(10)||
' var vElementList = null;'||chr(10)||
' va';
c1:=c1||'r vElementList = null;'||chr(10)||
' var vElement = null;'||chr(10)||
' var vErrorStack = null;'||chr(10)||
' var vOraErrorStack = null;'||chr(10)||
@@ -1007,14 +1007,15 @@ c1:=c1||'s)'||chr(10)||
' var vAjaxResult = null;'||chr(10)||
' var vMyMsg = '''';'||chr(10)||
''||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';
' if (vElement';
c1:=c1||' (vElement.className == "ErrorPageMessage")'||chr(10)||
c1:=c1||'.className == "ErrorPageMessage")'||chr(10)||
' {'||chr(10)||
' vErrorStack = (vErrorStack ==null?"":vErrorStack+"<br/>")+vElement.innerHTML;'||chr(10)||
' vElement.innerHTML = '''';'||chr(10)||
@@ -1022,9 +1023,9 @@ c1:=c1||' (vElement.className == "ErrorPageMessage")'||chr(10)||
' for(var j=1; j < vOraErrorStack.length; j++) {'||chr(10)||
' vOraError = vOraErrorStack[j];'||chr(10)||
' vAjaxRequest = new htmldb_Get(null,&APP_ID.,''APPLICATION_PROCESS=''+p_err_process,0);'||chr(10)||
' ';
' vAjaxReque';
c1:=c1||'vAjaxRequest.add(p_err_item,vOraError);'||chr(10)||
c1:=c1||'st.add(p_err_item,vOraError);'||chr(10)||
' vAjaxResult = vAjaxRequest.get();'||chr(10)||
' if (vAjaxResult) {'||chr(10)||
' vMyMsg = vMyMsg + vAjaxResult + ''<br>'' ;'||chr(10)||
@@ -1033,15 +1034,15 @@ c1:=c1||'vAjaxRequest.add(p_err_item,vOraError);'||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'')" #O';
'<body onload="MyErrorPage(''ORA_ERR_CODE'',''getErrorMsg'')" #ONLOAD#>#FORM';
c1:=c1||'NLOAD#>#FORM_OPEN#'||chr(10)||
c1:=c1||'_OPEN#'||chr(10)||
''||chr(10)||
'';
c2:=c2||'<div id="rowFooter"><!-- bottom strip of info -->'||chr(10)||
@@ -1051,15 +1052,15 @@ c2:=c2||'<div id="rowFooter"><!-- bottom strip of info -->'||chr(10)||
''||chr(10)||
' '||chr(10)||
' <div class="hskpcol1"><!-- copyright box -->'||chr(10)||
' <div id="copyright">Copyright <EFBFBD> <!--2006--><span id="Pagefooter_lblYear">2007</span> National Grid</div>'||chr(10)||
' <div id="copyright">Copyright &copy; <!--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 &amp; conditions</a>'||chr(10)||
c2:=c2||' <a href="thetermsandconditions.htm">Terms &amp; conditions</a>'||chr(10)||
''||chr(10)||
' | <a href="theprivacypolicy.htm">Privacy policy</a>'||chr(10)||
' </div>'||chr(10)||
@@ -1080,17 +1081,17 @@ c3:=c3||'<div id="UKSubNav" class="reg">'||chr(10)||
'</div>'||chr(10)||
'<div id="colMid">'||chr(10)||
''||chr(10)||
'<center>'||chr(10)||
'#BOX_BODY#'||chr(10)||
'</center>'||chr(10)||
''||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';
'<div class="t4messages">#GLOBAL_NOTIFICATION#';
c3:=c3||'iv class="t4messages">#GLOBAL_NOTIFICATION##SUCCESS_MESSAGE##NOTIFICATION_MESSAGE#</div>'||chr(10)||
c3:=c3||'#SUCCESS_MESSAGE##NOTIFICATION_MESSAGE#</div>'||chr(10)||
'</div>'||chr(10)||
'</div>'||chr(10)||
''||chr(10)||
@@ -1119,7 +1120,7 @@ wwv_flow_api.create_template(
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_navbar_entry=> '<li><img src="/i/ng_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=>'',
@@ -2933,17 +2934,17 @@ declare
l_clob8 clob;
l_length number := 1;
begin
t:=t||'<li><a name="#LIST_LABEL#" class="current" href="#LINK#"><img src="#WORKSPACE_IMAGES#black.gif" alt="">#TEXT#</a></li>';
t:=t||'<li><a name="#LIST_LABEL#" class="current" href="#LINK#"><img src="/i/ng_black.gif" alt="">#TEXT#</a></li>';
t2:=t2||'<li><a name="#LIST_LABEL#" href="#LINK#"><img src="#WORKSPACE_IMAGES#black.gif" alt="">#TEXT#</a></li>';
t2:=t2||'<li><a name="#LIST_LABEL#" href="#LINK#"><img src="/i/ng_black.gif" alt="">#TEXT#</a></li>';
t3:=t3||'<li><a name="#LIST_LABEL#" class="current" href="#LINK#"><img src="#WORKSPACE_IMAGES#black.gif" alt="">#TEXT#</a></li>';
t4:=t4||'<li><a name="#LIST_LABEL#" href="#LINK#"><img src="#WORKSPACE_IMAGES#black.gif" alt="">#TEXT#</a></li>';
t5:=t5||'<li><a name="#LIST_LABEL#" class="current" href="#LINK#"><img src="#WORKSPACE_IMAGES#black.gif" alt="">#TEXT#</a></li>';
t5:=t5||'<li><a name="#LIST_LABEL#" class="current" href="#LINK#"><img src="/i/ng_black.gif" alt="">#TEXT#</a></li>';
t6:=t6||'<li><a name="#LIST_LABEL#" href="#LINK#"><img src="#WORKSPACE_IMAGES#black.gif" alt="">#TEXT#</a></li>';
t6:=t6||'<li><a name="#LIST_LABEL#" href="#LINK#"><img src="/i/ng_black.gif" alt="">#TEXT#</a></li>';
t7:=t7||'<li><a name="#LIST_LABEL#" class="current" href="#LINK#"><img src="#WORKSPACE_IMAGES#black.gif" alt="">#TEXT#</a></li>';