case 4025 replaced partnumber with partname and changed partname to partdescription
This commit is contained in:
@@ -10,27 +10,27 @@ namespace AyaNova.DataList
|
||||
SQLFrom = "from viewpartsdatalist ";
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListAType);
|
||||
AllowedRoles = RoleSet.ReadFullRecord | RoleSet.Change;
|
||||
DefaultColumns = new List<string>() { "PartPartNumber", "PartName", "PartManufacturerID", "PartWholesalerID", "Tags" };
|
||||
DefaultSortBy = new Dictionary<string, string>() { { "PartPartNumber", "+" } };
|
||||
DefaultColumns = new List<string>() { "PartName", "PartManufacturerID", "PartWholesalerID", "Tags" };
|
||||
DefaultSortBy = new Dictionary<string, string>() { { "PartName", "+" } };
|
||||
FieldDefinitions = new List<DataListFieldDefinition>();
|
||||
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "PartPartNumber",
|
||||
FieldKey = "PartPartNumber",
|
||||
AType = (int)AyaType.Part,
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
SqlIdColumnName = "id",
|
||||
SqlValueColumnName = "partnumber",
|
||||
IsRowId = true
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "PartName",
|
||||
FieldKey = "PartName",
|
||||
AType = (int)AyaType.Part,
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
SqlValueColumnName = "name"
|
||||
SqlIdColumnName = "id",
|
||||
SqlValueColumnName = "name",
|
||||
IsRowId = true
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "PartDescription",
|
||||
FieldKey = "PartDescription",
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
SqlValueColumnName = "description"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
|
||||
Reference in New Issue
Block a user