This commit is contained in:
2021-11-24 20:22:32 +00:00
parent c9029c2786
commit 40cb386c6e
8 changed files with 14 additions and 7 deletions

View File

@@ -16,7 +16,7 @@ namespace AyaNova.DataList
var RoleSet = BizRoles.GetRoleSet(DefaultListAType);
AllowedRoles = RoleSet.ReadFullRecord | RoleSet.Change;
DefaultColumns = new List<string>() { "PartName", "PartWarehouseName", "PartInventoryBalance", "PartByWarehouseInventoryMinStockLevel", "PartByWarehouseInventoryReorderQuantity", "PartByWarehouseInventoryQuantityOnOrder", "PartByWarehouseInventoryQtyOnOrderCommitted", "Active" };
DefaultColumns = new List<string>() { "PartName", "PartWarehouseName", "PartInventoryBalance", "PartByWarehouseInventoryMinStockLevel", "PartByWarehouseInventoryReorderQuantity", "PartByWarehouseInventoryQuantityOnOrder", "PartByWarehouseInventoryQtyOnOrderCommitted", "Active","PartInventoryId" };
DefaultSortBy = new Dictionary<string, string>() { { "PartName", "+" }, { "PartWarehouseName", "+" } };
FieldDefinitions = new List<DataListFieldDefinition>();
@@ -96,14 +96,13 @@ namespace AyaNova.DataList
FieldDefinitions.Add(new DataListFieldDefinition
{
TKey = "PartInventoryTransactionDescription",
FieldKey = "PartInventoryTransactionDescription",
TKey = "PartInventoryId",
FieldKey = "PartInventoryId",
AType = (int)AyaType.PartInventory,
UiFieldDataType = (int)UiFieldDataType.Text,
SqlIdColumnName = "partinventoryid",
SqlValueColumnName = "partinventorydescription",
IsMeta = true,//only so it doesn't show in the UI but is required for report
IsRowId = true
SqlValueColumnName = "partinventoryid",
IsRowId = true//useless but necessary to show for row selection and reporting purposes
});
FieldDefinitions.Add(new DataListFieldDefinition