This commit is contained in:
2023-01-10 17:22:05 +00:00
parent 0be04ca13b
commit d77b97bb33
2 changed files with 21 additions and 2 deletions

View File

@@ -14,7 +14,7 @@ namespace Sockeye.DataList
var RoleSet = BizRoles.GetRoleSet(DefaultListAType);
AllowedRoles = RoleSet.ReadFullRecord | RoleSet.Change;
DefaultColumns = new List<string>() { "ProductName", "ProductVendorCode", "ProductOurCode" };
DefaultColumns = new List<string>() { "ProductName", "ProductGroup", "ProductVendorCode", "ProductOurCode" };
DefaultSortBy = new Dictionary<string, string>() { { "ProductName", "+" } };
FieldDefinitions = new List<DataListFieldDefinition>();
/*
@@ -41,6 +41,15 @@ id BIGINT GENERATED ALWAYS AS IDENTITY PRIMARY KEY, name TEXT NOT NULL, active B
IsRowId = true
});
FieldDefinitions.Add(new DataListFieldDefinition
{
TKey = "ProductGroup",
FieldKey = "ProductGroup",
UiFieldDataType = (int)UiFieldDataType.Enum,
EnumType = Sockeye.Util.StringUtil.TrimTypeName(typeof(ProductGroup).ToString()),
SqlValueColumnName = "aproduct.pgroup"
});
FieldDefinitions.Add(new DataListFieldDefinition
{
TKey = "Active",

View File

@@ -14,7 +14,7 @@ namespace Sockeye.DataList
var RoleSet = BizRoles.GetRoleSet(DefaultListAType);
AllowedRoles = RoleSet.ReadFullRecord | RoleSet.Change;
DefaultColumns = new List<string>() { "id", "TrialLicenseRequestCompanyName", "TrialLicenseRequestRequested", "TrialLicenseRequestStatus", "TrialLicenseRequestFetchedOn" };
DefaultColumns = new List<string>() { "id", "TrialLicenseRequestCompanyName", "TrialLicenseRequestRequested", "TrialLicenseRequestStatus", "TrialLicenseRequestFetchedOn", "ProductGroup" };
DefaultSortBy = new Dictionary<string, string>() { { "id", "-" } };
FieldDefinitions = new List<DataListFieldDefinition>();
/*
@@ -133,6 +133,16 @@ await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SE
SqlValueColumnName = "atriallicenserequest.perpetual"
});
FieldDefinitions.Add(new DataListFieldDefinition
{
TKey = "ProductGroup",
FieldKey = "ProductGroup",
UiFieldDataType = (int)UiFieldDataType.Enum,
EnumType = Sockeye.Util.StringUtil.TrimTypeName(typeof(ProductGroup).ToString()),
SqlValueColumnName = "atriallicenserequest.pgroup"
});
}