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:
@@ -9,9 +9,9 @@ namespace AyaNova.DataList
|
||||
public ServiceBankDataList()
|
||||
{
|
||||
|
||||
DefaultListObjectType = AyaType.ServiceBank;
|
||||
DefaultListAType = AyaType.ServiceBank;
|
||||
SQLFrom = "from aservicebank";
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListObjectType);
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListAType);
|
||||
AllowedRoles = RoleSet.ReadFullRecord | RoleSet.Change;
|
||||
DefaultColumns = new List<string>() {
|
||||
"ServiceBankCreated", "Object", "ServiceBankCurrency", "ServiceBankCurrencyBalance", "ServiceBankIncidents",
|
||||
@@ -22,12 +22,12 @@ namespace AyaNova.DataList
|
||||
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "ServiceBankSourceRootObjectType",
|
||||
FieldKey = "ServiceBankSourceRootObjectType",
|
||||
TKey = "ServiceBankSourceRootAType",
|
||||
FieldKey = "ServiceBankSourceRootAType",
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
SqlIdColumnName = "aservicebank.sourceid",
|
||||
SqlValueColumnName = "AYGETNAME(aservicebank.sourceid, aservicebank.sourcetype)",
|
||||
SqlAyTypeColumnName = "aservicebank.sourcetype"
|
||||
SqlATypeColumnName = "aservicebank.sourcetype"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
@@ -36,8 +36,8 @@ namespace AyaNova.DataList
|
||||
FieldKey = "Object",
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
SqlIdColumnName = "aservicebank.objectid",
|
||||
SqlValueColumnName = "AYGETNAME(aservicebank.objectid, aservicebank.objecttype)",
|
||||
SqlAyTypeColumnName = "aservicebank.objecttype"
|
||||
SqlValueColumnName = "AYGETNAME(aservicebank.objectid, aservicebank.aType)",
|
||||
SqlATypeColumnName = "aservicebank.aType"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
@@ -46,14 +46,14 @@ namespace AyaNova.DataList
|
||||
FieldKey = "AyaType",
|
||||
UiFieldDataType = (int)UiFieldDataType.Enum,
|
||||
EnumType = AyaNova.Util.StringUtil.TrimTypeName(typeof(AyaType).ToString()),
|
||||
SqlValueColumnName = "aservicebank.objecttype"
|
||||
SqlValueColumnName = "aservicebank.aType"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "ServiceBankDescription",
|
||||
FieldKey = "ServiceBankDescription",
|
||||
AyaObjectType = (int)AyaType.ServiceBank,
|
||||
AType = (int)AyaType.ServiceBank,
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
SqlIdColumnName = "aservicebank.id",
|
||||
SqlValueColumnName = "aservicebank.name",
|
||||
@@ -132,7 +132,7 @@ namespace AyaNova.DataList
|
||||
FieldKey = "metaobjecttype",
|
||||
UiFieldDataType = (int)UiFieldDataType.Enum,
|
||||
EnumType = AyaNova.Util.StringUtil.TrimTypeName(typeof(AyaType).ToString()),
|
||||
SqlValueColumnName = "aservicebank.objecttype",
|
||||
SqlValueColumnName = "aservicebank.aType",
|
||||
IsMeta = true
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user