rename all variants of naming that hold an AyaType value to "aType" (parameter) / "AType" (not parameter) everywhere front and back; "ayType", "objectType", "oType" all are used in various areas

This commit is contained in:
2021-03-23 17:06:05 +00:00
parent dfef3f7934
commit dde1b8bb8c
113 changed files with 450 additions and 450 deletions

View File

@@ -6,12 +6,12 @@ namespace AyaNova.DataList
{
public PartDataList()
{
DefaultListObjectType = AyaType.Part;
DefaultListAType = AyaType.Part;
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)";
var RoleSet = BizRoles.GetRoleSet(DefaultListObjectType);
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", "+" } };
@@ -21,7 +21,7 @@ namespace AyaNova.DataList
{
TKey = "PartPartNumber",
FieldKey = "PartPartNumber",
AyaObjectType = (int)AyaType.Part,
AType = (int)AyaType.Part,
UiFieldDataType = (int)UiFieldDataType.Text,
SqlIdColumnName = "apart.id",
SqlValueColumnName = "apart.partnumber",
@@ -81,7 +81,7 @@ namespace AyaNova.DataList
FieldKey = "PartManufacturerID",
TKey = "PartManufacturerID",
UiFieldDataType = (int)UiFieldDataType.Text,
AyaObjectType = (int)AyaType.Vendor,
AType = (int)AyaType.Vendor,
SqlIdColumnName = "aman.id",
SqlValueColumnName = "aman.name"
});
@@ -91,7 +91,7 @@ namespace AyaNova.DataList
FieldKey = "PartWholesalerID",
TKey = "PartWholesalerID",
UiFieldDataType = (int)UiFieldDataType.Text,
AyaObjectType = (int)AyaType.Vendor,
AType = (int)AyaType.Vendor,
SqlIdColumnName = "awhole.id",
SqlValueColumnName = "awhole.name"
});
@@ -101,7 +101,7 @@ namespace AyaNova.DataList
FieldKey = "PartAlternativeWholesalerID",
TKey = "PartAlternativeWholesalerID",
UiFieldDataType = (int)UiFieldDataType.Text,
AyaObjectType = (int)AyaType.Vendor,
AType = (int)AyaType.Vendor,
SqlIdColumnName = "aaltwhole.id",
SqlValueColumnName = "aaltwhole.name"
});