This commit is contained in:
@@ -26,7 +26,7 @@ namespace AyaNova.DataList
|
||||
//CLIENT / SERVER - client display server validation purposes
|
||||
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; }
|
||||
|
||||
//CLIENT Use only for display
|
||||
|
||||
@@ -9,6 +9,8 @@ namespace AyaNova.DataList
|
||||
public object Columns { get; }
|
||||
public Dictionary<string, string> SortBy { 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 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);
|
||||
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
|
||||
|
||||
@@ -15,6 +15,8 @@ namespace AyaNova.Models
|
||||
internal const int DefaultLimit = 25;
|
||||
internal int? Offset { 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 DataListTableProcessingOptions(
|
||||
|
||||
@@ -2170,6 +2170,7 @@
|
||||
"PartInventoryTransactionSource": "Transaktionsquelle",
|
||||
"PartInventoryTransactionQuantity": "Menge",
|
||||
"PartInventoryBalance": "Menge zur Hand",
|
||||
"PartInventoryId": "Inventar-ID",
|
||||
"PartStockingLevels": "Mindestbestand an Teilen",
|
||||
"Columns": "Spalten",
|
||||
"SaveACopy": "Kopie speichern",
|
||||
|
||||
@@ -2170,6 +2170,7 @@
|
||||
"PartInventoryTransactionSource": "Transaction source",
|
||||
"PartInventoryTransactionQuantity": "Quantity",
|
||||
"PartInventoryBalance": "On hand quantity",
|
||||
"PartInventoryId": "Inventory Id",
|
||||
"PartStockingLevels": "Part stocking levels",
|
||||
"Columns": "Columns",
|
||||
"SaveACopy": "Save a copy",
|
||||
|
||||
@@ -2170,6 +2170,7 @@
|
||||
"PartInventoryTransactionSource": "Origen de la transacción",
|
||||
"PartInventoryTransactionQuantity": "Cantidad",
|
||||
"PartInventoryBalance": "Cantidad en mano",
|
||||
"PartInventoryId": "ID de inventario",
|
||||
"PartStockingLevels": "Niveles de existencias de piezas",
|
||||
"Columns": "Columnas",
|
||||
"SaveACopy": "Guardar una copia",
|
||||
|
||||
@@ -2170,6 +2170,7 @@
|
||||
"PartInventoryTransactionSource": "Source de transaction",
|
||||
"PartInventoryTransactionQuantity": "Quantité",
|
||||
"PartInventoryBalance": "Quantité disponible",
|
||||
"PartInventoryId": "ID d'inventaire",
|
||||
"PartStockingLevels": "Niveaux de stockage des pièces",
|
||||
"Columns": "Colonnes",
|
||||
"SaveACopy": "Enregistrer une copie",
|
||||
|
||||
Reference in New Issue
Block a user