case 4025 replaced partnumber with partname and changed partname to partdescription
This commit is contained in:
@@ -16,20 +16,10 @@ namespace AyaNova.DataList
|
||||
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListAType);
|
||||
AllowedRoles = RoleSet.ReadFullRecord | RoleSet.Change;
|
||||
DefaultColumns = new List<string>() { "PartPartNumber", "PartWarehouseName", "PartInventoryBalance", "PartByWarehouseInventoryMinStockLevel", "PartByWarehouseInventoryReorderQuantity", "PartByWarehouseInventoryQuantityOnOrder", "PartByWarehouseInventoryQtyOnOrderCommitted", "Active" };
|
||||
DefaultSortBy = new Dictionary<string, string>() { { "PartPartNumber", "+" }, { "PartWarehouseName", "+" } };
|
||||
DefaultColumns = new List<string>() { "PartName", "PartWarehouseName", "PartInventoryBalance", "PartByWarehouseInventoryMinStockLevel", "PartByWarehouseInventoryReorderQuantity", "PartByWarehouseInventoryQuantityOnOrder", "PartByWarehouseInventoryQtyOnOrderCommitted", "Active" };
|
||||
DefaultSortBy = new Dictionary<string, string>() { { "PartName", "+" }, { "PartWarehouseName", "+" } };
|
||||
FieldDefinitions = new List<DataListFieldDefinition>();
|
||||
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "PartPartNumber",
|
||||
FieldKey = "PartPartNumber",
|
||||
AType = (int)AyaType.Part,
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
SqlIdColumnName = "partid",
|
||||
SqlValueColumnName = "partnumber"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "PartName",
|
||||
@@ -40,6 +30,16 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "partname"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "PartDescription",
|
||||
FieldKey = "PartDescription",
|
||||
AType = (int)AyaType.Part,
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
SqlIdColumnName = "partid",
|
||||
SqlValueColumnName = "partdescription"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "Active",
|
||||
@@ -162,10 +162,10 @@ namespace AyaNova.DataList
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
|
||||
FieldKey = "metapartnumber",
|
||||
FieldKey = "metapartname",
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
SqlIdColumnName = "partid",
|
||||
SqlValueColumnName = "partnumber",
|
||||
SqlValueColumnName = "partname",
|
||||
IsMeta = true
|
||||
|
||||
});
|
||||
@@ -194,7 +194,7 @@ namespace AyaNova.DataList
|
||||
//Part criteria
|
||||
if (crit[0] != "0")
|
||||
{
|
||||
DataListFilterOption FilterOption = new DataListFilterOption() { Column = "metapartnumber" };
|
||||
DataListFilterOption FilterOption = new DataListFilterOption() { Column = "metapartname" };
|
||||
FilterOption.Items.Add(new DataListColumnFilter() { value = crit[0], op = DataListFilterComparisonOperator.Equality });
|
||||
ret.Add(FilterOption);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user