Updated 'mandatory' field checks.

git-svn-id: http://locode01.ad.dom/svn/WEBMIP/trunk@3322 248e525c-4dfb-0310-94bc-949c084e9493
This commit is contained in:
hardya
2008-01-21 18:56:25 +00:00
parent 4c1959004d
commit 32dac70391
6 changed files with 557 additions and 199 deletions

View File

@@ -22,9 +22,9 @@ BEGIN
,table_name
,description)
(SELECT DISTINCT field_name
,table_name
,'ENQUIRIES' as table_name
,description
FROM data_item_roles_import
FROM ext_dataitem_roles
WHERE field_name IS NOT NULL);
FOR l_enty IN (SELECT code
@@ -51,7 +51,7 @@ BEGIN
add_sql(l_sql
,'SELECT ''' || l_enty.code || '''');
add_sql(l_sql
,' ,field_name');
,' ,''ENQUIRIES'' as field_name');
add_sql(l_sql
,' ,table_name');
add_sql(l_sql
@@ -61,7 +61,7 @@ BEGIN
add_sql(l_sql
,' ,diri.description');
add_sql(l_sql
,' FROM data_item_roles_import diri');
,' FROM ext_dataitem_roles diri');
add_sql(l_sql
,' WHERE field_name IS NOT NULL AND substr(diri.' ||
REPLACE(l_enty.code
@@ -303,6 +303,12 @@ BEGIN
,' ');
END IF;
END LOOP;
add_sql(l_sql
,' ');
add_sql(l_sql,
' MIP_HELPER_SPECIAL_CASES.table_'||l_tables.table_name||'(p_rec => l_rec, p_mandatory_checks=>l_mandatory_checks);');
add_sql(l_sql
,' ');