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:
@@ -6,11 +6,11 @@ namespace AyaNova.DataList
|
||||
{
|
||||
public ReportDataList()
|
||||
{
|
||||
DefaultListObjectType = AyaType.Report;
|
||||
DefaultListAType = AyaType.Report;
|
||||
SQLFrom = "from aReport";
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListObjectType);
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListAType);
|
||||
AllowedRoles = RoleSet.ReadFullRecord | RoleSet.Change;
|
||||
DefaultColumns = new List<string>() { "name", "objecttype", "active" };
|
||||
DefaultColumns = new List<string>() { "name", "aType", "active" };
|
||||
DefaultSortBy = new Dictionary<string, string>() { { "name", "+" } };
|
||||
FieldDefinitions = new List<DataListFieldDefinition>();
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace AyaNova.DataList
|
||||
{
|
||||
TKey = "Report",
|
||||
FieldKey = "name",
|
||||
AyaObjectType = (int)AyaType.Report,
|
||||
AType = (int)AyaType.Report,
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
SqlIdColumnName = "aReport.id",
|
||||
SqlValueColumnName = "aReport.name",
|
||||
@@ -28,10 +28,10 @@ namespace AyaNova.DataList
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "AyaType",
|
||||
FieldKey = "objecttype",
|
||||
FieldKey = "aType",
|
||||
UiFieldDataType = (int)UiFieldDataType.Enum,
|
||||
EnumType = AyaNova.Util.StringUtil.TrimTypeName(typeof(AyaType).ToString()),
|
||||
SqlValueColumnName = "areport.ObjectType"
|
||||
SqlValueColumnName = "areport.AType"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
|
||||
Reference in New Issue
Block a user