case 4025 replaced partnumber with partname and changed partname to partdescription
This commit is contained in:
@@ -16,7 +16,7 @@ namespace AyaNova.DataList
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListAType);
|
||||
AllowedRoles = RoleSet.ReadFullRecord | RoleSet.Change;
|
||||
DefaultColumns = new List<string>() {
|
||||
"PartInventoryTransactionEntryDate", "PartPartNumber", "PartWarehouseName", "PartInventoryTransactionQuantity",
|
||||
"PartInventoryTransactionEntryDate", "PartName", "PartWarehouseName", "PartInventoryTransactionQuantity",
|
||||
"PartInventoryTransactionDescription", "PartInventoryTransactionSource", "PartInventoryBalance"
|
||||
};
|
||||
DefaultSortBy = new Dictionary<string, string>() { { "PartInventoryTransactionEntryDate", "-" } };
|
||||
@@ -35,12 +35,12 @@ namespace AyaNova.DataList
|
||||
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "PartPartNumber",
|
||||
FieldKey = "PartPartNumber",
|
||||
TKey = "PartName",
|
||||
FieldKey = "PartName",
|
||||
AType = (int)AyaType.Part,
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
SqlIdColumnName = "apart.id",
|
||||
SqlValueColumnName = "apart.partnumber"
|
||||
SqlValueColumnName = "apart.name"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
@@ -92,10 +92,10 @@ namespace AyaNova.DataList
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
|
||||
FieldKey = "metapartnumber",
|
||||
FieldKey = "metapartname",
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
SqlIdColumnName = "apart.id",
|
||||
SqlValueColumnName = "apart.partnumber",
|
||||
SqlValueColumnName = "apart.name",
|
||||
IsMeta = true
|
||||
|
||||
});
|
||||
@@ -124,7 +124,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