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,9 +6,9 @@ namespace AyaNova.DataList
{
public CustomerDataList()
{
DefaultListObjectType = AyaType.Customer;
DefaultListAType = AyaType.Customer;
SQLFrom = "from acustomer left join aheadoffice on (acustomer.headofficeid=aheadoffice.id) left join acontract on (acustomer.contractid=acontract.id)";
var RoleSet = BizRoles.GetRoleSet(DefaultListObjectType);
var RoleSet = BizRoles.GetRoleSet(DefaultListAType);
AllowedRoles = RoleSet.ReadFullRecord | RoleSet.Change;
DefaultColumns = new List<string>() { "customername", "customerphone1", "customeremail", "customerheadoffice" };
DefaultSortBy = new Dictionary<string, string>() { { "customername", "+" } };
@@ -19,7 +19,7 @@ namespace AyaNova.DataList
{
TKey = "CustomerName",
FieldKey = "customername",
AyaObjectType = (int)AyaType.Customer,
AType = (int)AyaType.Customer,
UiFieldDataType = (int)UiFieldDataType.Text,
SqlIdColumnName = "acustomer.id",
SqlValueColumnName = "acustomer.name",
@@ -71,7 +71,7 @@ namespace AyaNova.DataList
TKey = "HeadOffice",
FieldKey = "customerheadoffice",
UiFieldDataType = (int)UiFieldDataType.Text,
AyaObjectType = (int)AyaType.HeadOffice,
AType = (int)AyaType.HeadOffice,
SqlIdColumnName = "aheadoffice.id",
SqlValueColumnName = "aheadoffice.name"
});
@@ -113,7 +113,7 @@ namespace AyaNova.DataList
TKey = "Contract",
FieldKey = "customercontract",
UiFieldDataType = (int)UiFieldDataType.Text,
AyaObjectType = (int)AyaType.Contract,
AType = (int)AyaType.Contract,
SqlIdColumnName = "acontract.id",
SqlValueColumnName = "acontract.name"
});