This commit is contained in:
@@ -14,8 +14,8 @@ namespace Sockeye.DataList
|
||||
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListAType);
|
||||
AllowedRoles = RoleSet.ReadFullRecord | RoleSet.Change;
|
||||
DefaultColumns = new List<string>() { "licenseid", "licensecreated", "licensecustomer", "licenseregto", "licensemaintexpire", "licenseexpire" };
|
||||
DefaultSortBy = new Dictionary<string, string>() { { "licenseid", "-" } };
|
||||
DefaultColumns = new List<string>() { "licensecreated", "licenseregto", "licensecustomer", "LicenseFetchedOn", "licensetags" };
|
||||
DefaultSortBy = new Dictionary<string, string>() { { "licensecreated", "-" } };
|
||||
FieldDefinitions = new List<DataListFieldDefinition>();
|
||||
/*
|
||||
"License": "License",
|
||||
@@ -40,23 +40,35 @@ namespace Sockeye.DataList
|
||||
+ "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
|
||||
// {
|
||||
// TKey = "LicenseSerial",
|
||||
// FieldKey = "licenseid",
|
||||
// SockType = (int)SockType.License,
|
||||
// UiFieldDataType = (int)UiFieldDataType.Integer,
|
||||
// SqlIdColumnName = "alicense.id",
|
||||
// SqlValueColumnName = "alicense.id",
|
||||
// IsRowId = true
|
||||
// });
|
||||
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "Created",
|
||||
FieldKey = "licensecreated",
|
||||
SockType = (int)SockType.License,
|
||||
UiFieldDataType = (int)UiFieldDataType.DateTime,
|
||||
SqlValueColumnName = "alicense.created"
|
||||
SqlValueColumnName = "alicense.created",
|
||||
IsRowId = true
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "LicenseRegTo",
|
||||
FieldKey = "licenseregto",
|
||||
SockType = (int)SockType.License,
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
SqlIdColumnName = "alicense.id",
|
||||
SqlValueColumnName = "alicense.regto"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
@@ -77,13 +89,7 @@ namespace Sockeye.DataList
|
||||
SqlValueColumnName = "alicense.tags"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "LicenseRegTo",
|
||||
FieldKey = "licenseregto",
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
SqlValueColumnName = "alicense.regto"
|
||||
});
|
||||
|
||||
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user