This commit is contained in:
@@ -8,12 +8,14 @@ namespace AyaNova.DataList
|
||||
public UnitDataList()
|
||||
{
|
||||
DefaultListObjectType = AyaType.Unit;
|
||||
//Self join prototype
|
||||
//Be sure to alias *all* the tables to avoid issues
|
||||
SQLFrom = "from aunit as amainunit "
|
||||
+ "left outer join acustomer on (amainunit.customerid=acustomer.id) "
|
||||
+ "left outer join aunit as aparentunit on (amainunit.parentunitid=aparentunit.id and amainunit.parentunitid is not null) "
|
||||
+ "left outer join aunitmodel on (amainunit.unitmodelid=aunitmodel.id and amainunit.unitmodelid is not null) "
|
||||
+ "left outer join avendor on (amainunit.purchasedfromvendorid=avendor.id and amainunit.purchasedfromvendorid is not null) "
|
||||
+ "left outer join aunit as areplacedbyunit on (amainunit.replacedbyunitid=areplacedbyunit.id and amainunit.replacedbyunitid is not null) ";
|
||||
+ "left join acustomer on (amainunit.customerid=acustomer.id) "
|
||||
+ "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) ";
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListObjectType);
|
||||
AllowedRoles = RoleSet.ReadFullRecord | RoleSet.Change;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user