This commit is contained in:
@@ -0,0 +1,82 @@
|
|||||||
|
using System.Collections.Generic;
|
||||||
|
using AyaNova.Biz;
|
||||||
|
namespace AyaNova.DataList
|
||||||
|
{
|
||||||
|
internal class CustomerNotificationDeliveryLogDataList : DataListProcessingBase
|
||||||
|
{
|
||||||
|
public CustomerNotificationDeliveryLogDataList(long translationId)
|
||||||
|
{
|
||||||
|
DefaultListAType = AyaType.OpsNotificationSettings;
|
||||||
|
SQLFrom = "from acustomernotifydeliverylog left join acustomernotifysubscription on acustomernotifysubscription.id = acustomernotifydeliverylog.customernotifysubscriptionid";
|
||||||
|
var RoleSet = BizRoles.GetRoleSet(DefaultListAType);
|
||||||
|
AllowedRoles = RoleSet.ReadFullRecord | RoleSet.Change;
|
||||||
|
DefaultColumns = new List<string>() { "CustomerNotifySubscription", "Processed", "NotifyEventType", "CustomerTags", "Failed", "Errors" };
|
||||||
|
DefaultSortBy = new Dictionary<string, string>() { { "Processed", "-" } };
|
||||||
|
FieldDefinitions = new List<DataListFieldDefinition>();
|
||||||
|
|
||||||
|
FieldDefinitions.Add(new DataListFieldDefinition
|
||||||
|
{
|
||||||
|
TKey = "CustomerNotifySubscription",
|
||||||
|
FieldKey = "CustomerNotifySubscription",
|
||||||
|
AType = (int)AyaType.CustomerNotifySubscription,
|
||||||
|
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||||
|
SqlIdColumnName = "acustomernotifysubscription.id",
|
||||||
|
SqlValueColumnName = "acustomernotifysubscription.id",
|
||||||
|
IsRowId = true
|
||||||
|
});
|
||||||
|
|
||||||
|
FieldDefinitions.Add(new DataListFieldDefinition
|
||||||
|
{
|
||||||
|
TKey = "Processed",
|
||||||
|
FieldKey = "Processed",
|
||||||
|
UiFieldDataType = (int)UiFieldDataType.DateTime,
|
||||||
|
SqlValueColumnName = "acustomernotifydeliverylog.processed"
|
||||||
|
});
|
||||||
|
|
||||||
|
FieldDefinitions.Add(new DataListFieldDefinition
|
||||||
|
{
|
||||||
|
TKey = "NotifyEventType",
|
||||||
|
FieldKey = "NotifyEventType",
|
||||||
|
UiFieldDataType = (int)UiFieldDataType.Enum,
|
||||||
|
EnumType = AyaNova.Util.StringUtil.TrimTypeName(typeof(NotifyEventType).ToString()),
|
||||||
|
SqlValueColumnName = "acustomernotifysubscription.eventtype"
|
||||||
|
});
|
||||||
|
|
||||||
|
FieldDefinitions.Add(new DataListFieldDefinition
|
||||||
|
{
|
||||||
|
TKey = "CustomerTags",
|
||||||
|
FieldKey = "CustomerTags",
|
||||||
|
UiFieldDataType = (int)UiFieldDataType.Tags,
|
||||||
|
SqlValueColumnName = "acustomernotifysubscription.customertags"
|
||||||
|
});
|
||||||
|
|
||||||
|
// FieldDefinitions.Add(new DataListFieldDefinition
|
||||||
|
// {
|
||||||
|
// TKey = "AyaType",
|
||||||
|
// FieldKey = "AyaType",
|
||||||
|
// UiFieldDataType = (int)UiFieldDataType.Enum,
|
||||||
|
// EnumType = AyaNova.Util.StringUtil.TrimTypeName(typeof(AyaType).ToString()),
|
||||||
|
// SqlValueColumnName = "acustomernotifysubscription.ayatype"
|
||||||
|
// });
|
||||||
|
|
||||||
|
FieldDefinitions.Add(new DataListFieldDefinition
|
||||||
|
{
|
||||||
|
TKey = "Failed",
|
||||||
|
FieldKey = "Failed",
|
||||||
|
UiFieldDataType = (int)UiFieldDataType.Bool,
|
||||||
|
SqlValueColumnName = "acustomernotifydeliverylog.fail"
|
||||||
|
});
|
||||||
|
|
||||||
|
FieldDefinitions.Add(new DataListFieldDefinition
|
||||||
|
{
|
||||||
|
TKey = "Errors",
|
||||||
|
FieldKey = "Errors",
|
||||||
|
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||||
|
SqlValueColumnName = "acustomernotifydeliverylog.error"
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
}//eoc
|
||||||
|
}//eons
|
||||||
Reference in New Issue
Block a user