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,11 +9,11 @@ namespace AyaNova.DataList
|
||||
{
|
||||
public PartInventoryTransactionsDataList()
|
||||
{
|
||||
DefaultListObjectType = AyaType.PartInventory;
|
||||
DefaultListAType = AyaType.PartInventory;
|
||||
SQLFrom = "from apartinventory "
|
||||
+ "left join apart on (apartinventory.partid=apart.id) "
|
||||
+ "left join apartwarehouse on (apartinventory.partwarehouseid=apartwarehouse.id) ";
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListObjectType);
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListAType);
|
||||
AllowedRoles = RoleSet.ReadFullRecord | RoleSet.Change;
|
||||
DefaultColumns = new List<string>() {
|
||||
"PartInventoryTransactionEntryDate", "PartPartNumber", "PartWarehouseName", "PartInventoryTransactionQuantity",
|
||||
@@ -29,14 +29,14 @@ namespace AyaNova.DataList
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
SqlIdColumnName = "apartinventory.sourceid",
|
||||
SqlValueColumnName = "AYGETNAME(apartinventory.sourceid, apartinventory.sourcetype)",
|
||||
SqlAyTypeColumnName = "apartinventory.sourcetype"
|
||||
SqlATypeColumnName = "apartinventory.sourcetype"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "PartPartNumber",
|
||||
FieldKey = "PartPartNumber",
|
||||
AyaObjectType = (int)AyaType.Part,
|
||||
AType = (int)AyaType.Part,
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
SqlIdColumnName = "apart.id",
|
||||
SqlValueColumnName = "apart.partnumber"
|
||||
@@ -46,7 +46,7 @@ namespace AyaNova.DataList
|
||||
{
|
||||
TKey = "PartWarehouseName",
|
||||
FieldKey = "PartWarehouseName",
|
||||
AyaObjectType = (int)AyaType.PartWarehouse,
|
||||
AType = (int)AyaType.PartWarehouse,
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
SqlIdColumnName = "apartwarehouse.id",
|
||||
SqlValueColumnName = "apartwarehouse.name"
|
||||
@@ -56,7 +56,7 @@ namespace AyaNova.DataList
|
||||
{
|
||||
TKey = "PartInventoryTransactionDescription",
|
||||
FieldKey = "PartInventoryTransactionDescription",
|
||||
AyaObjectType = (int)AyaType.PartInventory,
|
||||
AType = (int)AyaType.PartInventory,
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
SqlIdColumnName = "apartinventory.id",
|
||||
SqlValueColumnName = "apartinventory.description",
|
||||
|
||||
Reference in New Issue
Block a user