This commit is contained in:
2023-01-12 22:02:35 +00:00
parent 8d132b5165
commit da55d71d6c
2 changed files with 186 additions and 14 deletions

View File

@@ -23,7 +23,7 @@ namespace Sockeye.Models
//Picklist and other searches override the normal case insensitive value
//this is precautionarily added for non latinate languages where it could be an issue
public bool FilterCaseSensitive { get; set; }
//ADDRESS / CONTACT INFO reporting etc
@@ -49,32 +49,177 @@ namespace Sockeye.Models
//CUSTOMER ACCESS FEATURES AND SETTINGS
public bool CustomerAllowUserSettings { get; set; }
public List<string> CustomerAllowUserSettingsInTags { get; set; } = new List<string>();
//SOCKEY EMAIL TEMPLATES
public string V7NewKey { get; set; }
public string V7AddOnKey { get; set; }
public string V7TemporaryTrial { get; set; }
public string RavenNewKeyAvailable { get; set; }
public string ValidateEmail { get; set; }
public string RavenTrialApproved { get; set; }
public string RavenTrialRejected { get; set; }
public List<string> AllTags(){
var t=new List<string>();
public List<string> AllTags()
{
var t = new List<string>();
t.AddRange(this.CustomerAllowUserSettingsInTags);
return t;
return t;
}
public GlobalBizSettings()
{
Id = 1;//always 1
FilterCaseSensitive = false;
#region Default message templates
V7NewKey = @"Thank you for your purchase and welcome to the
world-wide community of AyaNova users!
Below is your activation key instructions for entry into the latest trial version
of AyaNova 7 that you previously downloaded from our website,
installed and tested for suitability.
Be sure to review and implement the backup procedures for AyaNova
as outlined in the AyaNova online Help document from http://www.ayanova.com/onlinehelp.htm
Reminder: no physical product will be shipped to you, this license key
fulfills your order in full.
PURCHASING ADDITIONAL LICENSES
When purchasing additional licenses in future be sure to use the same registration name
and registered email address used when you purchased this key.
Additional AyaNova licenses can be purchased via the link at
http://www.ayanova.com/purchase.htm
HELP AND SUPPORT RESOURCES
ONLINE:
AyaNova web site:
http://www.ayanova.com
Answers to frequently asked questions:
http://www.ayanova.com/faqAnswers.htm
Technical support forum:
http://forum.ayanova.com
Latest AyaNova version update information:
Downloads and help documentation:
http://www.ayanova.com/download.htm
http://www.ayanova.com/onlinehelp.htm
PURCHASING ADDITIONAL LICENSES
When purchasing additional license subscriptions in future do use the same registration name
and registered email address used when you purchased your original licenses to ensure fastest processing.
{LicenseDescription}
HOW TO INSTALL YOUR LICENSE KEY
1. Ensure no other users are running AyaNova
2. Log in as the AyaNova Administrator
(default login is manager with password letmein if not yet changed).
3. Select Help->License from the main menu to open the license key form.
4. Select the menu option Fetch license and in the form that opens, copy and paste (preferable) or enter manually your Fetch address and Fetch code exactly as it appears above in 'License Details' section of this message.
(If you do not see the 'Fetch license' menu option you need to upgrade to the latest version of AyaNova first)
5. Click on the accept button, AyaNova will fetch the license key from our server and install it automatically";
V7AddOnKey = @"Thank you for your continued support!
This license key when applied, replaces your previous key which is no longer required.
{LicenseDescription}
HOW TO INSTALL YOUR LICENSE KEY
1. Be sure you are running the latest version before proceeding:
https://www.ayanova.com/changeloglatest.htm
2. Ensure no other users are running AyaNova
3. Log in as the AyaNova Administrator
(default login is manager with password letmein if not yet changed).
4. Select Help->License from the main menu to open the license key form.
5. Select the menu option Fetch license and in the form that opens, copy and paste (preferable) or enter manually your Fetch address and Fetch code exactly as it appears above in 'License Details' section of this message.
(If you do not see the 'Fetch license' menu option you need to upgrade to the latest version of AyaNova first)
6. Click on the accept button, AyaNova will fetch the license key from our server and install it automatically";
V7TemporaryTrial = @"Thank you for evaluating AyaNova 7 and its optional add-ons.
Below are instructions for license entry into the
latest trial version of AyaNova that you previously downloaded from our website.
HELP AND SUPPORT RESOURCES
ONLINE:
AyaNova web site:
http://www.ayanova.com
Answers to frequently asked questions:
http://www.ayanova.com/faqAnswers.htm
Technical support forum:
http://forum.ayanova.com
Latest AyaNova version update information:
Downloads and help documentation:
http://www.ayanova.com/download.htm
http://www.ayanova.com/onlinehelp.htm
{LicenseDescription}
HOW TO INSTALL YOUR LICENSE KEY
1. Ensure no other users are running AyaNova
2. Log in as the AyaNova Administrator
(default login is manager with password letmein if not yet changed).
3. Select Help->License from the main menu to open the license key form.
4. Select the menu option Fetch license and in the form that opens, copy and paste (preferable) or enter manually your Fetch address and Fetch code exactly as it appears above in License Details section.
(If you do not see the 'Fetch license' menu option you need to upgrade to the latest version of AyaNova first)
5. Click on the accept button, AyaNova will fetch the license key from our server and install it automatically";
RavenNewKeyAvailable = @"Your AyaNova key is ready to be installed.\nAyaNova will fetch it automatically within 24 hours or you can force it to fetch immediately from the License page in AyaNova now.\n---\n{newLicense}";
ValidateEmail = @"Please verify your email address by clicking the link below or copy and pasting into a browser\r\n{verifyUrl}\r\nOnce your email is verified the request will be processed manually during business hours.\r\n(If you did not request this you can ignore this message)";
RavenTrialApproved = @"Your trial license request has been approved.\r\nThe license will fetch and install automatically shortly or you can fetch it now in the License form menu.";
RavenTrialRejected = @"Your trial license request was not approved.\r\n{reason}";
#endregion default message templates
}
}
//Used internally and at client end as extended rights atop roles system in relation only to Contact (customer type users)
public record CustomerRightsRecord(bool UserSettings, long EntityId, bool EntityActive);
public record CustomerRightsRecord(bool UserSettings, long EntityId, bool EntityActive);
}
/*
CREATE TABLE [dbo].[AGLOBAL](

View File

@@ -22,7 +22,7 @@ namespace Sockeye.Util
//!!!!WARNING: BE SURE TO UPDATE THE DbUtil::EmptyBizDataFromDatabaseForSeedingOrImportingAsync WHEN NEW TABLES ADDED!!!!
private const int DESIRED_SCHEMA_LEVEL = 17;
internal const long EXPECTED_COLUMN_COUNT = 506;
internal const long EXPECTED_COLUMN_COUNT = 513;
internal const long EXPECTED_INDEX_COUNT = 74;
internal const long EXPECTED_CHECK_CONSTRAINTS = 242;
internal const long EXPECTED_FOREIGN_KEY_CONSTRAINTS = 34;
@@ -31,7 +31,7 @@ namespace Sockeye.Util
//!!!!WARNING: BE SURE TO UPDATE THE DbUtil::EmptyBizDataFromDatabaseForSeedingOrImportingAsync WHEN NEW TABLES ADDED!!!!
///////////////////////////////////////// (C506:I74:CC242:FC34:V0:R2)
///////////////////////////////////////// (C512:I74:CC242:FC34:V0:R2)
/*
MAXIMUM POSTGRES OBJECT NAME LENGTH: 63 CHARACTERS
@@ -251,7 +251,7 @@ namespace Sockeye.Util
await ExecQueryAsync("CREATE TABLE aglobalbizsettings (id INTEGER NOT NULL PRIMARY KEY, "
+ "webaddress TEXT, phone1 TEXT, phone2 TEXT, emailaddress TEXT, postaddress TEXT, postcity TEXT, postregion TEXT, postcountry TEXT, postcode TEXT, "
+ "address TEXT, city TEXT, region TEXT, country TEXT, latitude DECIMAL(9,6), longitude DECIMAL(9,6), "
+ "filtercasesensitive BOOL DEFAULT FALSE, "
+ "filtercasesensitive BOOL DEFAULT FALSE, v7newkey TEXT, v7addonkey TEXT, v7temporarytrial TEXT, ravennewkeyavailable TEXT, validateemail TEXT, raventrialapproved TEXT, raventrialrejected TEXT, "
+ "customerallowusersettings BOOL DEFAULT FALSE, customerallowusersettingsintags VARCHAR(255) ARRAY "
+ ")");
@@ -1337,30 +1337,57 @@ $BODY$ LANGUAGE PLPGSQL STABLE");
await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'ProductGroupAyaNova7', 'V7' FROM atranslation t where t.baselanguage = 'en'");
await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'ProductGroupRavenPerpetual', 'Raven perpetual' FROM atranslation t where t.baselanguage = 'en'");
await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'ProductGroupRavenSubscription', 'Raven subscription' FROM atranslation t where t.baselanguage = 'en'");
await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'GlobalV7NewKey', 'V7 New key message' FROM atranslation t where t.baselanguage = 'en'");
await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'GlobalV7AddOnKey', 'V7 Add on key message' FROM atranslation t where t.baselanguage = 'en'");
await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'GlobalV7TemporaryTrial', 'V7 trial key message' FROM atranslation t where t.baselanguage = 'en'");
await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'GlobalRavenNewKeyAvailable', 'Raven new key available message' FROM atranslation t where t.baselanguage = 'en'");
await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'GlobalValidateEmail', 'Validate email message' FROM atranslation t where t.baselanguage = 'en'");
await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'GlobalRavenTrialApproved', 'Raven trial approved message' FROM atranslation t where t.baselanguage = 'en'");
await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'GlobalRavenTrialRejected', 'Raven trial rejected message' FROM atranslation t where t.baselanguage = 'en'");
//spanish translations
await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'ProductGroupMisc', 'Misc.' FROM atranslation t where t.baselanguage = 'es'");
await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'ProductGroupAyaNova7', 'V7' FROM atranslation t where t.baselanguage = 'es'");
await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'ProductGroupRavenPerpetual', 'Raven perpetual' FROM atranslation t where t.baselanguage = 'es'");
await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'ProductGroupRavenSubscription', 'Raven subscription' FROM atranslation t where t.baselanguage = 'es'");
await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'GlobalV7NewKey', 'V7 New key message' FROM atranslation t where t.baselanguage = 'es'");
await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'GlobalV7AddOnKey', 'V7 Add on key message' FROM atranslation t where t.baselanguage = 'es'");
await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'GlobalV7TemporaryTrial', 'V7 trial key message' FROM atranslation t where t.baselanguage = 'es'");
await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'GlobalRavenNewKeyAvailable', 'Raven new key available message' FROM atranslation t where t.baselanguage = 'es'");
await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'GlobalValidateEmail', 'Validate email message' FROM atranslation t where t.baselanguage = 'es'");
await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'GlobalRavenTrialApproved', 'Raven trial approved message' FROM atranslation t where t.baselanguage = 'es'");
await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'GlobalRavenTrialRejected', 'Raven trial rejected message' FROM atranslation t where t.baselanguage = 'es'");
//french translations
await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'ProductGroupMisc', 'Misc.' FROM atranslation t where t.baselanguage = 'fr'");
await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'ProductGroupAyaNova7', 'V7' FROM atranslation t where t.baselanguage = 'fr'");
await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'ProductGroupRavenPerpetual', 'Raven perpetual' FROM atranslation t where t.baselanguage = 'fr'");
await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'ProductGroupRavenSubscription', 'Raven subscription' FROM atranslation t where t.baselanguage = 'fr'");
await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'GlobalV7NewKey', 'V7 New key message' FROM atranslation t where t.baselanguage = 'fr'");
await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'GlobalV7AddOnKey', 'V7 Add on key message' FROM atranslation t where t.baselanguage = 'fr'");
await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'GlobalV7TemporaryTrial', 'V7 trial key message' FROM atranslation t where t.baselanguage = 'fr'");
await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'GlobalRavenNewKeyAvailable', 'Raven new key available message' FROM atranslation t where t.baselanguage = 'fr'");
await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'GlobalValidateEmail', 'Validate email message' FROM atranslation t where t.baselanguage = 'fr'");
await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'GlobalRavenTrialApproved', 'Raven trial approved message' FROM atranslation t where t.baselanguage = 'fr'");
await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'GlobalRavenTrialRejected', 'Raven trial rejected message' FROM atranslation t where t.baselanguage = 'fr'");
//german translations
await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'ProductGroupMisc', 'Misc.' FROM atranslation t where t.baselanguage = 'de'");
await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'ProductGroupAyaNova7', 'V7' FROM atranslation t where t.baselanguage = 'de'");
await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'ProductGroupRavenPerpetual', 'Raven perpetual' FROM atranslation t where t.baselanguage = 'de'");
await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'ProductGroupRavenSubscription', 'Raven subscription' FROM atranslation t where t.baselanguage = 'de'");
await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'GlobalV7NewKey', 'V7 New key message' FROM atranslation t where t.baselanguage = 'de'");
await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'GlobalV7AddOnKey', 'V7 Add on key message' FROM atranslation t where t.baselanguage = 'de'");
await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'GlobalV7TemporaryTrial', 'V7 trial key message' FROM atranslation t where t.baselanguage = 'de'");
await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'GlobalRavenNewKeyAvailable', 'Raven new key available message' FROM atranslation t where t.baselanguage = 'de'");
await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'GlobalValidateEmail', 'Validate email message' FROM atranslation t where t.baselanguage = 'de'");
await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'GlobalRavenTrialApproved', 'Raven trial approved message' FROM atranslation t where t.baselanguage = 'de'");
await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'GlobalRavenTrialRejected', 'Raven trial rejected message' FROM atranslation t where t.baselanguage = 'de'");
currentSchema = 17;
await SetSchemaLevelAsync(currentSchema);
}
//#########################################
//!!!!WARNING: BE SURE TO UPDATE THE DbUtil::EmptyBizDataFromDatabaseForSeedingOrImporting WHEN NEW TABLES ADDED!!!!