This commit is contained in:
@@ -14,42 +14,10 @@ namespace Sockeye.DataList
|
||||
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListAType);
|
||||
AllowedRoles = RoleSet.ReadFullRecord | RoleSet.Change;
|
||||
DefaultColumns = new List<string>() { "licensecreated", "licenseactive", "licenseregto", "licensecustomer", "LicenseFetchedOn", "licensetags" };
|
||||
DefaultColumns = new List<string>() { "licensecreated", "LicenseTrialMode", "licenseactive", "licenseregto", "licensecustomer", "LicenseFetchedOn", "notificationsent", "ProductGroup" };
|
||||
DefaultSortBy = new Dictionary<string, string>() { { "licensecreated", "-" } };
|
||||
FieldDefinitions = new List<DataListFieldDefinition>();
|
||||
/*
|
||||
"License": "License",
|
||||
"LicenseCompanyName": "Company name",
|
||||
"LicenseContactName": "Contact name",
|
||||
"LicensedOptions": "Licensed options",
|
||||
"LicenseEmail": "Email address",
|
||||
"LicenseEmailVerficationHint": "(Address will be verified)",
|
||||
"LicenseExpiration": "License expiration date",
|
||||
"LicenseSerial": "License serial number",
|
||||
await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'LicenseList', 'Licenses' FROM atranslation t where t.baselanguage = 'en'");
|
||||
await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'LicenseRegTo', 'Registered to' FROM atranslation t where t.baselanguage = 'en'");
|
||||
await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'LicenseKey', 'License key' FROM atranslation t where t.baselanguage = 'en'");
|
||||
await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'LicenseFetchCode', 'Fetch code' FROM atranslation t where t.baselanguage = 'en'");
|
||||
await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'LicenseFetchEmail', 'Fetch email' FROM atranslation t where t.baselanguage = 'en'");
|
||||
await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'LicenseFetchedOn', 'Fetched date' FROM atranslation t where t.baselanguage = 'en'");
|
||||
await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'LicenseDBID', 'DBID' FROM atranslation t where t.baselanguage = 'en'");
|
||||
await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'LicenseMaintenanceExpire', 'Maintenance expire to' FROM atranslation t where t.baselanguage = 'en'");
|
||||
"CREATE TABLE alicense (id BIGINT GENERATED ALWAYS AS IDENTITY PRIMARY KEY, created TIMESTAMPTZ NOT NULL, "
|
||||
+ "customerid BIGINT NOT NULL REFERENCES acustomer(id), regto TEXT NOT NULL, key TEXT NOT NULL, fetchcode TEXT, fetchemail TEXT, "
|
||||
+ "fetchedon TIMESTAMPTZ, dbid TEXT, licenseexpire TIMESTAMPTZ, maintenanceexpire TIMESTAMPTZ NOT NULL, "
|
||||
+ "wiki TEXT, tags VARCHAR(255) ARRAY )");
|
||||
*/
|
||||
|
||||
// FieldDefinitions.Add(new DataListFieldDefinition
|
||||
// {
|
||||
// TKey = "LicenseSerial",
|
||||
// FieldKey = "licenseid",
|
||||
// SockType = (int)SockType.License,
|
||||
// UiFieldDataType = (int)UiFieldDataType.Integer,
|
||||
// SqlIdColumnName = "alicense.id",
|
||||
// SqlValueColumnName = "alicense.id",
|
||||
// IsRowId = true
|
||||
// });
|
||||
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
@@ -62,7 +30,7 @@ namespace Sockeye.DataList
|
||||
IsRowId = true
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "Active",
|
||||
FieldKey = "licenseactive",
|
||||
@@ -70,6 +38,22 @@ namespace Sockeye.DataList
|
||||
SqlValueColumnName = "alicense.active"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "NotificationSent",
|
||||
FieldKey = "notificationsent",
|
||||
UiFieldDataType = (int)UiFieldDataType.Bool,
|
||||
SqlValueColumnName = "alicense.notificationsent"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "LicenseTrialMode",
|
||||
FieldKey = "LicenseTrialMode",
|
||||
UiFieldDataType = (int)UiFieldDataType.Bool,
|
||||
SqlValueColumnName = "alicense.trialmode"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "LicenseRegTo",
|
||||
@@ -90,6 +74,16 @@ namespace Sockeye.DataList
|
||||
SqlValueColumnName = "acustomer.name"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "ProductGroup",
|
||||
FieldKey = "ProductGroup",
|
||||
UiFieldDataType = (int)UiFieldDataType.Enum,
|
||||
EnumType = Sockeye.Util.StringUtil.TrimTypeName(typeof(ProductGroup).ToString()),
|
||||
SqlValueColumnName = "alicense.pgroup"
|
||||
});
|
||||
|
||||
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "Tags",
|
||||
|
||||
Reference in New Issue
Block a user