56 lines
2.4 KiB
C#
56 lines
2.4 KiB
C#
using System.Collections.Generic;
|
|
using AyaNova.Biz;
|
|
namespace AyaNova.DataList
|
|
{
|
|
internal class TestWidgetUserEmail : IAyaDataList
|
|
{
|
|
|
|
public string ListKey => DataListFactory.TEST_WIDGET_USER_EMAIL_ADDRESS_LIST_KEY;
|
|
|
|
public string SQLFrom => "throw new System.NotImplementedException()";
|
|
|
|
public List<AyaDataListFieldDefinition> FieldDefinitions
|
|
{
|
|
get
|
|
{
|
|
List<AyaDataListFieldDefinition> l = new List<AyaDataListFieldDefinition>();
|
|
l.Add(new AyaDataListFieldDefinition { FieldKey = "df", AyaObjectType = (int)AyaType.Widget, SqlIdColumnName = "awidget.id" });
|
|
l.Add(new AyaDataListFieldDefinition
|
|
{
|
|
FieldKey = "widgetname",
|
|
LtKey = "WidgetName",
|
|
UiFieldDataType = (int)AyaUiFieldDataType.Text,
|
|
AyaObjectType = (int)AyaType.Widget,
|
|
SqlIdColumnName = "awidget.id",
|
|
SqlValueColumnName = "awidget.name"
|
|
});
|
|
l.Add(new AyaDataListFieldDefinition
|
|
{
|
|
FieldKey = "username",
|
|
LtKey = "User",
|
|
UiFieldDataType = (int)AyaUiFieldDataType.Text,
|
|
AyaObjectType = (int)AyaType.User,
|
|
SqlIdColumnName = "auser.id",
|
|
SqlValueColumnName = "auser.name"
|
|
});
|
|
l.Add(new AyaDataListFieldDefinition
|
|
{
|
|
LtKey = "UserEmailAddress",
|
|
FieldKey = "emailaddress",
|
|
SqlValueColumnName = "auseroptions.emailaddress",
|
|
UiFieldDataType = (int)AyaUiFieldDataType.EmailAddress
|
|
});
|
|
l.Add(new AyaDataListFieldDefinition
|
|
{
|
|
LtKey = "Active",
|
|
FieldKey = "widgetactive",
|
|
SqlValueColumnName = "awidget.active",
|
|
UiFieldDataType = (int)AyaUiFieldDataType.Bool
|
|
});
|
|
}
|
|
}
|
|
|
|
public AuthorizationRoles AllowedRoles => AuthorizationRoles.AllInternalStaff;//anyone but clients and subcontractors (just for test)
|
|
}
|
|
|
|
} |