39 lines
1.6 KiB
C#
39 lines
1.6 KiB
C#
using System.Collections.Generic;
|
|
using Sockeye.Biz;
|
|
|
|
namespace Sockeye.DataList
|
|
{
|
|
internal class VendorNotificationDataList : DataListProcessingBase
|
|
{
|
|
public VendorNotificationDataList(long translationId)
|
|
{
|
|
DefaultListAType = SockType.VendorNotification;
|
|
SQLFrom = @"FROM avendornotification ";
|
|
|
|
var RoleSet = BizRoles.GetRoleSet(DefaultListAType);
|
|
AllowedRoles = RoleSet.ReadFullRecord | RoleSet.Change;
|
|
DefaultColumns = new List<string>() { "VendorNotificationCreated", "VendorNotificationProcessed" };
|
|
DefaultSortBy = new Dictionary<string, string>() { { "VendorNotificationCreated", "-" } };
|
|
FieldDefinitions = new List<DataListFieldDefinition>();
|
|
|
|
FieldDefinitions.Add(new DataListFieldDefinition
|
|
{
|
|
TKey = "VendorNotificationCreated",
|
|
FieldKey = "VendorNotificationSalesOrderNumber",
|
|
SockType = (int)SockType.VendorNotification,
|
|
UiFieldDataType = (int)UiFieldDataType.DateTime,
|
|
SqlIdColumnName = "avendornotification.id",
|
|
SqlValueColumnName = "avendornotification.created",
|
|
IsRowId = true
|
|
});
|
|
|
|
FieldDefinitions.Add(new DataListFieldDefinition
|
|
{
|
|
TKey = "VendorNotificationProcessed",
|
|
FieldKey = "VendorNotificationProcessed",
|
|
UiFieldDataType = (int)UiFieldDataType.DateTime,
|
|
SqlValueColumnName = "avendornotification.processed"
|
|
});
|
|
}
|
|
}//eoc
|
|
}//eons |