This commit is contained in:
@@ -10,7 +10,8 @@ namespace AyaNova.DataList
|
||||
SQLFrom = "from apart "
|
||||
+ "left join avendor as aman on (apart.manufacturerid=aman.id) "
|
||||
+ "left join avendor as awhole on (apart.wholesalerid=awhole.id) "
|
||||
+ "left join avendor as aaltwhole on (apart.alternativewholesalerid=aaltwhole.id)";
|
||||
+ "left join avendor as aaltwhole on (apart.alternativewholesalerid=aaltwhole.id) ";
|
||||
//+ "left join apartserial on apartserial.partid=apart.id";
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListAType);
|
||||
AllowedRoles = RoleSet.ReadFullRecord | RoleSet.Change;
|
||||
DefaultColumns = new List<string>() { "PartPartNumber", "PartName", "PartManufacturerID", "PartWholesalerID", "Tags" };
|
||||
@@ -146,6 +147,14 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "apart.upc"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "PartSerialNumbersAvailable",
|
||||
FieldKey = "PartSerialNumbersAvailable",
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
SqlValueColumnName = "(select array_agg(serial) from apartserial where partid=apart.id group by partid) as sub_serials"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "PartCustom1", FieldKey = "partcustom1", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apart.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "PartCustom2", FieldKey = "partcustom2", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apart.customfields" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "PartCustom3", FieldKey = "partcustom3", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "apart.customfields" });
|
||||
|
||||
Reference in New Issue
Block a user