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 LoanUnitDataList()
|
||||
{
|
||||
DefaultListObjectType = AyaType.LoanUnit;
|
||||
DefaultListAType = AyaType.LoanUnit;
|
||||
SQLFrom = "from aloanunit " +
|
||||
"left join aunit as shadowunit on (aloanunit.unitid=shadowunit.id) " +
|
||||
"left join aworkorderitemloan as wil on (aloanunit.workorderitemloanid=wil.id) " +
|
||||
@@ -14,7 +14,7 @@ namespace AyaNova.DataList
|
||||
"left join aworkorder as w on (wi.workorderid=w.id)";
|
||||
//MIGRATE_OUTSTANDING awaiting workorderitemloan coding
|
||||
//todo: look at loanitemlist in v7 it surfaces due date, out date etc in the list and should here too once those fields are coded for
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListObjectType);
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListAType);
|
||||
AllowedRoles = RoleSet.ReadFullRecord | RoleSet.Change;
|
||||
DefaultColumns = new List<string>() { "LoanUnitName", "LoanUnitSerial", "Tags" };
|
||||
DefaultSortBy = new Dictionary<string, string>() { { "LoanUnitName", "+" } };
|
||||
@@ -24,7 +24,7 @@ namespace AyaNova.DataList
|
||||
{
|
||||
TKey = "LoanUnitName",
|
||||
FieldKey = "LoanUnitName",
|
||||
AyaObjectType = (int)AyaType.LoanUnit,
|
||||
AType = (int)AyaType.LoanUnit,
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
SqlIdColumnName = "aloanunit.id",
|
||||
SqlValueColumnName = "aloanunit.name",
|
||||
@@ -68,7 +68,7 @@ namespace AyaNova.DataList
|
||||
FieldKey = "LoanUnitCurrentWorkOrderItemLoan",
|
||||
TKey = "LoanUnitCurrentWorkOrderItemLoan",
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
AyaObjectType = (int)AyaType.WorkOrderItemLoan,
|
||||
AType = (int)AyaType.WorkOrderItemLoan,
|
||||
SqlIdColumnName = "wil.id",
|
||||
SqlValueColumnName = "w.serial"
|
||||
});
|
||||
@@ -135,7 +135,7 @@ namespace AyaNova.DataList
|
||||
FieldKey = "LoanUnitShadowUnit",
|
||||
TKey = "LoanUnitShadowUnit",
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
AyaObjectType = (int)AyaType.Unit,
|
||||
AType = (int)AyaType.Unit,
|
||||
SqlIdColumnName = "shadowunit.id",
|
||||
SqlValueColumnName = "shadowunit.serial"
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user