This commit is contained in:
@@ -26,7 +26,7 @@ namespace AyaNova.DataList
|
|||||||
//CLIENT / SERVER - client display server validation purposes
|
//CLIENT / SERVER - client display server validation purposes
|
||||||
public bool IsSortable { get; set; }
|
public bool IsSortable { get; set; }
|
||||||
|
|
||||||
//CLIENT / SERVER - indicates internal only meta column, don't show to user for filter settings etc
|
//SERVER - indicates internal only meta column, not a client thing
|
||||||
public bool IsMeta { get; set; }
|
public bool IsMeta { get; set; }
|
||||||
|
|
||||||
//CLIENT Use only for display
|
//CLIENT Use only for display
|
||||||
|
|||||||
@@ -9,6 +9,8 @@ namespace AyaNova.DataList
|
|||||||
public object Columns { get; }
|
public object Columns { get; }
|
||||||
public Dictionary<string, string> SortBy { get; set; }
|
public Dictionary<string, string> SortBy { get; set; }
|
||||||
public List<DataListFilterOption> Filter { get; set; }
|
public List<DataListFilterOption> Filter { get; set; }
|
||||||
|
//All columns that are hidden but are affecting the query (sorting, filtering)
|
||||||
|
//so in UI can show that there are hidden columns affecting the result set
|
||||||
public List<string> HiddenAffectiveColumns {get;set;}
|
public List<string> HiddenAffectiveColumns {get;set;}
|
||||||
|
|
||||||
public DataListReturnData(object returnItems, long totalRecordCount, Newtonsoft.Json.Linq.JArray columns, Dictionary<string, string> sortBy, List<DataListFilterOption> filter, List<string> hiddenAffectiveColumns)
|
public DataListReturnData(object returnItems, long totalRecordCount, Newtonsoft.Json.Linq.JArray columns, Dictionary<string, string> sortBy, List<DataListFilterOption> filter, List<string> hiddenAffectiveColumns)
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ namespace AyaNova.DataList
|
|||||||
|
|
||||||
var RoleSet = BizRoles.GetRoleSet(DefaultListAType);
|
var RoleSet = BizRoles.GetRoleSet(DefaultListAType);
|
||||||
AllowedRoles = RoleSet.ReadFullRecord | RoleSet.Change;
|
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", "+" } };
|
DefaultSortBy = new Dictionary<string, string>() { { "PartName", "+" }, { "PartWarehouseName", "+" } };
|
||||||
FieldDefinitions = new List<DataListFieldDefinition>();
|
FieldDefinitions = new List<DataListFieldDefinition>();
|
||||||
|
|
||||||
@@ -96,14 +96,13 @@ namespace AyaNova.DataList
|
|||||||
|
|
||||||
FieldDefinitions.Add(new DataListFieldDefinition
|
FieldDefinitions.Add(new DataListFieldDefinition
|
||||||
{
|
{
|
||||||
TKey = "PartInventoryTransactionDescription",
|
TKey = "PartInventoryId",
|
||||||
FieldKey = "PartInventoryTransactionDescription",
|
FieldKey = "PartInventoryId",
|
||||||
AType = (int)AyaType.PartInventory,
|
AType = (int)AyaType.PartInventory,
|
||||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||||
SqlIdColumnName = "partinventoryid",
|
SqlIdColumnName = "partinventoryid",
|
||||||
SqlValueColumnName = "partinventorydescription",
|
SqlValueColumnName = "partinventoryid",
|
||||||
IsMeta = true,//only so it doesn't show in the UI but is required for report
|
IsRowId = true//useless but necessary to show for row selection and reporting purposes
|
||||||
IsRowId = true
|
|
||||||
});
|
});
|
||||||
|
|
||||||
FieldDefinitions.Add(new DataListFieldDefinition
|
FieldDefinitions.Add(new DataListFieldDefinition
|
||||||
|
|||||||
@@ -15,6 +15,8 @@ namespace AyaNova.Models
|
|||||||
internal const int DefaultLimit = 25;
|
internal const int DefaultLimit = 25;
|
||||||
internal int? Offset { get; set; }
|
internal int? Offset { get; set; }
|
||||||
internal int? Limit { get; set; }
|
internal int? Limit { get; set; }
|
||||||
|
//All columns that are hidden but are affecting the query (sorting, filtering)
|
||||||
|
//so in UI can show that there are hidden columns affecting the result set
|
||||||
internal List<string> HiddenAffectiveColumns { get; set; }
|
internal List<string> HiddenAffectiveColumns { get; set; }
|
||||||
|
|
||||||
internal DataListTableProcessingOptions(
|
internal DataListTableProcessingOptions(
|
||||||
|
|||||||
@@ -2170,6 +2170,7 @@
|
|||||||
"PartInventoryTransactionSource": "Transaktionsquelle",
|
"PartInventoryTransactionSource": "Transaktionsquelle",
|
||||||
"PartInventoryTransactionQuantity": "Menge",
|
"PartInventoryTransactionQuantity": "Menge",
|
||||||
"PartInventoryBalance": "Menge zur Hand",
|
"PartInventoryBalance": "Menge zur Hand",
|
||||||
|
"PartInventoryId": "Inventar-ID",
|
||||||
"PartStockingLevels": "Mindestbestand an Teilen",
|
"PartStockingLevels": "Mindestbestand an Teilen",
|
||||||
"Columns": "Spalten",
|
"Columns": "Spalten",
|
||||||
"SaveACopy": "Kopie speichern",
|
"SaveACopy": "Kopie speichern",
|
||||||
|
|||||||
@@ -2170,6 +2170,7 @@
|
|||||||
"PartInventoryTransactionSource": "Transaction source",
|
"PartInventoryTransactionSource": "Transaction source",
|
||||||
"PartInventoryTransactionQuantity": "Quantity",
|
"PartInventoryTransactionQuantity": "Quantity",
|
||||||
"PartInventoryBalance": "On hand quantity",
|
"PartInventoryBalance": "On hand quantity",
|
||||||
|
"PartInventoryId": "Inventory Id",
|
||||||
"PartStockingLevels": "Part stocking levels",
|
"PartStockingLevels": "Part stocking levels",
|
||||||
"Columns": "Columns",
|
"Columns": "Columns",
|
||||||
"SaveACopy": "Save a copy",
|
"SaveACopy": "Save a copy",
|
||||||
|
|||||||
@@ -2170,6 +2170,7 @@
|
|||||||
"PartInventoryTransactionSource": "Origen de la transacción",
|
"PartInventoryTransactionSource": "Origen de la transacción",
|
||||||
"PartInventoryTransactionQuantity": "Cantidad",
|
"PartInventoryTransactionQuantity": "Cantidad",
|
||||||
"PartInventoryBalance": "Cantidad en mano",
|
"PartInventoryBalance": "Cantidad en mano",
|
||||||
|
"PartInventoryId": "ID de inventario",
|
||||||
"PartStockingLevels": "Niveles de existencias de piezas",
|
"PartStockingLevels": "Niveles de existencias de piezas",
|
||||||
"Columns": "Columnas",
|
"Columns": "Columnas",
|
||||||
"SaveACopy": "Guardar una copia",
|
"SaveACopy": "Guardar una copia",
|
||||||
|
|||||||
@@ -2170,6 +2170,7 @@
|
|||||||
"PartInventoryTransactionSource": "Source de transaction",
|
"PartInventoryTransactionSource": "Source de transaction",
|
||||||
"PartInventoryTransactionQuantity": "Quantité",
|
"PartInventoryTransactionQuantity": "Quantité",
|
||||||
"PartInventoryBalance": "Quantité disponible",
|
"PartInventoryBalance": "Quantité disponible",
|
||||||
|
"PartInventoryId": "ID d'inventaire",
|
||||||
"PartStockingLevels": "Niveaux de stockage des pièces",
|
"PartStockingLevels": "Niveaux de stockage des pièces",
|
||||||
"Columns": "Colonnes",
|
"Columns": "Colonnes",
|
||||||
"SaveACopy": "Enregistrer une copie",
|
"SaveACopy": "Enregistrer une copie",
|
||||||
|
|||||||
Reference in New Issue
Block a user