This commit is contained in:
2021-11-12 21:00:58 +00:00
parent 98d495dfd2
commit dbb51fe740
2 changed files with 126 additions and 120 deletions

2
.vscode/launch.json vendored
View File

@@ -55,7 +55,7 @@
"AYANOVA_FOLDER_USER_FILES": "c:\\temp\\RavenTestData\\userfiles", "AYANOVA_FOLDER_USER_FILES": "c:\\temp\\RavenTestData\\userfiles",
"AYANOVA_FOLDER_BACKUP_FILES": "c:\\temp\\RavenTestData\\backupfiles", "AYANOVA_FOLDER_BACKUP_FILES": "c:\\temp\\RavenTestData\\backupfiles",
"AYANOVA_FOLDER_TEMPORARY_SERVER_FILES": "c:\\temp\\RavenTestData\\tempfiles", "AYANOVA_FOLDER_TEMPORARY_SERVER_FILES": "c:\\temp\\RavenTestData\\tempfiles",
"AYANOVA_SERVER_TEST_MODE": "false", "AYANOVA_SERVER_TEST_MODE": "true",
"AYANOVA_SERVER_TEST_MODE_SEEDLEVEL": "small", "AYANOVA_SERVER_TEST_MODE_SEEDLEVEL": "small",
"AYANOVA_SERVER_TEST_MODE_TZ_OFFSET": "-8", "AYANOVA_SERVER_TEST_MODE_TZ_OFFSET": "-8",
"AYANOVA_BACKUP_PG_DUMP_PATH": "C:\\data\\code\\postgres_14\\bin\\" "AYANOVA_BACKUP_PG_DUMP_PATH": "C:\\data\\code\\postgres_14\\bin\\"

View File

@@ -22,16 +22,16 @@ namespace AyaNova.Util
//!!!!WARNING: BE SURE TO UPDATE THE DbUtil::EmptyBizDataFromDatabaseForSeedingOrImportingAsync WHEN NEW TABLES ADDED!!!! //!!!!WARNING: BE SURE TO UPDATE THE DbUtil::EmptyBizDataFromDatabaseForSeedingOrImportingAsync WHEN NEW TABLES ADDED!!!!
private const int DESIRED_SCHEMA_LEVEL = 1; private const int DESIRED_SCHEMA_LEVEL = 1;
internal const long EXPECTED_COLUMN_COUNT = 1301; internal const long EXPECTED_COLUMN_COUNT = 1302;
internal const long EXPECTED_INDEX_COUNT = 153; internal const long EXPECTED_INDEX_COUNT = 153;
internal const long EXPECTED_CHECK_CONSTRAINTS = 518; internal const long EXPECTED_CHECK_CONSTRAINTS = 518;
internal const long EXPECTED_FOREIGN_KEY_CONSTRAINTS = 193; internal const long EXPECTED_FOREIGN_KEY_CONSTRAINTS = 198;
internal const long EXPECTED_VIEWS = 11; internal const long EXPECTED_VIEWS = 11;
internal const long EXPECTED_ROUTINES = 2; internal const long EXPECTED_ROUTINES = 2;
//!!!!WARNING: BE SURE TO UPDATE THE DbUtil::EmptyBizDataFromDatabaseForSeedingOrImportingAsync WHEN NEW TABLES ADDED!!!! //!!!!WARNING: BE SURE TO UPDATE THE DbUtil::EmptyBizDataFromDatabaseForSeedingOrImportingAsync WHEN NEW TABLES ADDED!!!!
///////////////////////////////////////////////////////////////// C1301:I153:CC518:FC193:V11:R2 ///////////////////////////////////////////////////////////////// (C1302:I153:CC518:FC198:V11:R2)
@@ -261,10 +261,11 @@ namespace AyaNova.Util
+ "signaturetitle TEXT, " + "signaturetitle TEXT, "
+ "signatureheader TEXT, " + "signatureheader TEXT, "
+ "signaturefooter TEXT, " + "signaturefooter TEXT, "
+ "customerservicerequestinfotext TEXT, " + "customerservicerequestinfotext TEXT, "
+ "customerallowcsr BOOL DEFAULT FALSE, customerallowcsrintags VARCHAR(255) ARRAY, " + "customerallowcsr BOOL DEFAULT FALSE, customerallowcsrintags VARCHAR(255) ARRAY, "
+ "customerallowviewwo BOOL DEFAULT FALSE, customerallowviewwointags VARCHAR(255) ARRAY, " + "customerallowviewwo BOOL DEFAULT FALSE, customerallowviewwointags VARCHAR(255) ARRAY, "
+ "customerworkorderreport1tags VARCHAR(255) ARRAY, customerworkorderreport2tags VARCHAR(255) ARRAY, "
+ "customerworkorderreport3tags VARCHAR(255) ARRAY, customerworkorderreport4tags VARCHAR(255) ARRAY, customerworkorderreport5tags VARCHAR(255) ARRAY, "
+ "customerallowwowiki BOOL DEFAULT FALSE, customerallowwowikiintags VARCHAR(255) ARRAY, " + "customerallowwowiki BOOL DEFAULT FALSE, customerallowwowikiintags VARCHAR(255) ARRAY, "
+ "customerallowusersettings BOOL DEFAULT FALSE, customerallowusersettingsintags VARCHAR(255) ARRAY, " + "customerallowusersettings BOOL DEFAULT FALSE, customerallowusersettingsintags VARCHAR(255) ARRAY, "
+ "customerallownotifyserviceimminent BOOL DEFAULT FALSE, customerallownotifyserviceimminentintags VARCHAR(255) ARRAY, " + "customerallownotifyserviceimminent BOOL DEFAULT FALSE, customerallownotifyserviceimminentintags VARCHAR(255) ARRAY, "
@@ -359,18 +360,18 @@ $BODY$;
/* /*
-- FUNCTION: public.aygetnameex(bigint, integer) -- FUNCTION: public.aygetnameex(bigint, integer)
-- DROP FUNCTION IF EXISTS public.aygetnameex(bigint, integer); -- DROP FUNCTION IF EXISTS public.aygetnameex(bigint, integer);
CREATE OR REPLACE FUNCTION PUBLIC.AYGETNAMEEX(AYOBJECTID bigint, AYATYPE integer, TRANSLATIONID integer) RETURNS text LANGUAGE 'plpgsql' COST 100 STABLE PARALLEL UNSAFE AS $BODY$ CREATE OR REPLACE FUNCTION PUBLIC.AYGETNAMEEX(AYOBJECTID bigint, AYATYPE integer, TRANSLATIONID integer) RETURNS text LANGUAGE 'plpgsql' COST 100 STABLE PARALLEL UNSAFE AS $BODY$
DECLARE DECLARE
aytable TEXT DEFAULT ''; aytable TEXT DEFAULT '';
aynamecolumn TEXT DEFAULT 'name'; aynamecolumn TEXT DEFAULT 'name';
aytkey TEXT DEFAULT 'no'; aytkey TEXT DEFAULT 'no';
returnstr TEXT DEFAULT ''; returnstr TEXT DEFAULT '';
BEGIN BEGIN
case ayatype case ayatype
when 0 then aytkey= 'NoType'; when 0 then aytkey= 'NoType';
when 1 then aytkey= 'Global'; when 1 then aytkey= 'Global';
@@ -469,12 +470,12 @@ BEGIN
EXECUTE format('select display from atranslationitem where translationid=%L and key=%L', TRANSLATIONID, aytkey) INTO returnstr; EXECUTE format('select display from atranslationitem where translationid=%L and key=%L', TRANSLATIONID, aytkey) INTO returnstr;
END if; END if;
RETURN returnstr; RETURN returnstr;
END; END;
$BODY$; $BODY$;
ALTER FUNCTION PUBLIC.AYGETNAME(bigint, integer) OWNER TO POSTGRES; ALTER FUNCTION PUBLIC.AYGETNAME(bigint, integer) OWNER TO POSTGRES;
*/ */
//Name fetcher function //Name fetcher function
//CoreBizObject ADD here //CoreBizObject ADD here
@@ -1334,6 +1335,11 @@ $BODY$ LANGUAGE PLPGSQL STABLE");
//Global customer default workorder report default //Global customer default workorder report default
await ExecQueryAsync("ALTER TABLE aglobalbizsettings ADD column customerdefaultworkorderreportid BIGINT REFERENCES areport(id) "); await ExecQueryAsync("ALTER TABLE aglobalbizsettings ADD column customerdefaultworkorderreportid BIGINT REFERENCES areport(id) ");
await ExecQueryAsync("ALTER TABLE aglobalbizsettings ADD column customertagworkorderreport1id BIGINT REFERENCES areport(id) ");
await ExecQueryAsync("ALTER TABLE aglobalbizsettings ADD column customertagworkorderreport2id BIGINT REFERENCES areport(id) ");
await ExecQueryAsync("ALTER TABLE aglobalbizsettings ADD column customertagworkorderreport3id BIGINT REFERENCES areport(id) ");
await ExecQueryAsync("ALTER TABLE aglobalbizsettings ADD column customertagworkorderreport4id BIGINT REFERENCES areport(id) ");
await ExecQueryAsync("ALTER TABLE aglobalbizsettings ADD column customertagworkorderreport5id BIGINT REFERENCES areport(id) ");
//Load the stock REPORT TEMPLATES //Load the stock REPORT TEMPLATES
await AyaNova.Biz.PrimeData.PrimeReportTemplates(); await AyaNova.Biz.PrimeData.PrimeReportTemplates();