This commit is contained in:
@@ -9,7 +9,7 @@ namespace AyaNova.DataList
|
||||
public InsideUserDataList()
|
||||
{
|
||||
DefaultListObjectType = AyaType.User;
|
||||
SQLFrom = "from auser";
|
||||
SQLFrom = "from auser left outer join avendor on (auser.vendorid=avendor.id)";
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListObjectType);
|
||||
AllowedRoles = RoleSet.ReadFullRecord | RoleSet.Change;
|
||||
|
||||
@@ -112,6 +112,16 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "auser.lastlogin"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
{
|
||||
TKey = "Vendor",
|
||||
FieldKey = "uservendor",
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
AyaObjectType = (int)AyaType.Vendor,
|
||||
SqlIdColumnName = "avendor.id",
|
||||
SqlValueColumnName = "avendor.name"
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
}//eoc
|
||||
|
||||
Reference in New Issue
Block a user