This commit is contained in:
@@ -14,7 +14,7 @@ namespace Sockeye.DataList
|
||||
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListAType);
|
||||
AllowedRoles = RoleSet.ReadFullRecord | RoleSet.Change;
|
||||
DefaultColumns = new List<string>() { "PurchaseDate", "PurchaseSalesOrderNumber", "Customer", "Product", "PurchaseProcessed" };
|
||||
DefaultColumns = new List<string>() { "PurchaseDate", "PurchaseSalesOrderNumber", "Customer", "Product", "PurchaseProcessed", "PurchaseVendorNotificationId" };
|
||||
DefaultSortBy = new Dictionary<string, string>() { { "PurchaseDate", "-" } };
|
||||
FieldDefinitions = new List<DataListFieldDefinition>();
|
||||
|
||||
@@ -50,6 +50,16 @@ namespace Sockeye.DataList
|
||||
SqlValueColumnName = "avendor.name"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "PurchaseVendorNotificationId",
|
||||
FieldKey = "PurchaseVendorNotificationId",
|
||||
SockType = (int)SockType.VendorNotification,
|
||||
UiFieldDataType = (int)UiFieldDataType.Integer,
|
||||
SqlIdColumnName = "apurchase.vendornotificationid",
|
||||
SqlValueColumnName = "apurchase.vendornotificationid"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "Product",
|
||||
|
||||
39
server/DataList/VendorNotificationDataList.cs
Normal file
39
server/DataList/VendorNotificationDataList.cs
Normal file
@@ -0,0 +1,39 @@
|
||||
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
|
||||
Reference in New Issue
Block a user