This commit is contained in:
@@ -12,7 +12,9 @@ namespace AyaNova.DataList
|
||||
+ "left join aunit as aparentunit on (amainunit.parentunitid=aparentunit.id) "
|
||||
+ "left join aunitmodel on (amainunit.unitmodelid=aunitmodel.id) "
|
||||
+ "left join avendor on (amainunit.purchasedfromvendorid=avendor.id) "
|
||||
+ "left join aunit as areplacedbyunit on (amainunit.replacedbyunitid=areplacedbyunit.id) ";
|
||||
+ "left join aunit as areplacedbyunit on (amainunit.replacedbyunitid=areplacedbyunit.id) "
|
||||
+ "left join acontract on (amainunit.contractid=acontract.id)";
|
||||
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListObjectType);
|
||||
AllowedRoles = RoleSet.ReadFullRecord | RoleSet.Change;
|
||||
DefaultColumns = new List<string>() { "UnitSerial", "UnitModel", "Customer", "Active" };
|
||||
@@ -176,6 +178,24 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "amainunit.warrantyterms"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "Contract",
|
||||
FieldKey = "unitcontract",
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
AyaObjectType = (int)AyaType.Contract,
|
||||
SqlIdColumnName = "acontract.id",
|
||||
SqlValueColumnName = "acontract.name"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "ContractExpires",
|
||||
FieldKey = "unitcontractexpires",
|
||||
UiFieldDataType = (int)UiFieldDataType.DateTime,
|
||||
SqlValueColumnName = "amainunit.contractexpires"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "UsesBanking",
|
||||
|
||||
Reference in New Issue
Block a user