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,7 +6,7 @@ namespace AyaNova.DataList
|
||||
{
|
||||
public UnitDataList()
|
||||
{
|
||||
DefaultListObjectType = AyaType.Unit;
|
||||
DefaultListAType = AyaType.Unit;
|
||||
SQLFrom = "from aunit as amainunit "
|
||||
+ "left join acustomer on (amainunit.customerid=acustomer.id) "
|
||||
+ "left join aunit as aparentunit on (amainunit.parentunitid=aparentunit.id) "
|
||||
@@ -15,7 +15,7 @@ namespace AyaNova.DataList
|
||||
+ "left join aunit as areplacedbyunit on (amainunit.replacedbyunitid=areplacedbyunit.id) "
|
||||
+ "left join acontract on (amainunit.contractid=acontract.id)";
|
||||
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListObjectType);
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListAType);
|
||||
AllowedRoles = RoleSet.ReadFullRecord | RoleSet.Change;
|
||||
DefaultColumns = new List<string>() { "UnitSerial", "UnitModel", "Customer", "Active" };
|
||||
DefaultSortBy = new Dictionary<string, string>() { { "UnitSerial", "+" } };
|
||||
@@ -25,7 +25,7 @@ namespace AyaNova.DataList
|
||||
{
|
||||
TKey = "UnitSerial",
|
||||
FieldKey = "UnitSerial",
|
||||
AyaObjectType = (int)AyaType.Unit,
|
||||
AType = (int)AyaType.Unit,
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
SqlIdColumnName = "amainunit.id",
|
||||
SqlValueColumnName = "amainunit.serial",
|
||||
@@ -61,7 +61,7 @@ namespace AyaNova.DataList
|
||||
FieldKey = "Customer",
|
||||
TKey = "Customer",
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
AyaObjectType = (int)AyaType.Customer,
|
||||
AType = (int)AyaType.Customer,
|
||||
SqlIdColumnName = "acustomer.id",
|
||||
SqlValueColumnName = "acustomer.name"
|
||||
});
|
||||
@@ -71,7 +71,7 @@ namespace AyaNova.DataList
|
||||
FieldKey = "UnitParentUnitID",
|
||||
TKey = "UnitParentUnitID",
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
AyaObjectType = (int)AyaType.Unit,
|
||||
AType = (int)AyaType.Unit,
|
||||
SqlIdColumnName = "aparentunit.id",
|
||||
SqlValueColumnName = "aparentunit.serial"
|
||||
});
|
||||
@@ -81,7 +81,7 @@ namespace AyaNova.DataList
|
||||
FieldKey = "UnitReplacedByUnitID",
|
||||
TKey = "UnitReplacedByUnitID",
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
AyaObjectType = (int)AyaType.Unit,
|
||||
AType = (int)AyaType.Unit,
|
||||
SqlIdColumnName = "areplacedbyunit.id",
|
||||
SqlValueColumnName = "areplacedbyunit.serial"
|
||||
});
|
||||
@@ -91,7 +91,7 @@ namespace AyaNova.DataList
|
||||
FieldKey = "UnitModel",
|
||||
TKey = "UnitModel",
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
AyaObjectType = (int)AyaType.UnitModel,
|
||||
AType = (int)AyaType.UnitModel,
|
||||
SqlIdColumnName = "aunitmodel.id",
|
||||
SqlValueColumnName = "aunitmodel.number"
|
||||
});
|
||||
@@ -117,7 +117,7 @@ namespace AyaNova.DataList
|
||||
FieldKey = "UnitPurchaseFromID",
|
||||
TKey = "UnitPurchaseFromID",
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
AyaObjectType = (int)AyaType.Vendor,
|
||||
AType = (int)AyaType.Vendor,
|
||||
SqlIdColumnName = "avendor.id",
|
||||
SqlValueColumnName = "avendor.name"
|
||||
});
|
||||
@@ -183,7 +183,7 @@ namespace AyaNova.DataList
|
||||
TKey = "Contract",
|
||||
FieldKey = "unitcontract",
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
AyaObjectType = (int)AyaType.Contract,
|
||||
AType = (int)AyaType.Contract,
|
||||
SqlIdColumnName = "acontract.id",
|
||||
SqlValueColumnName = "acontract.name"
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user