HRM-10/HRM.UI/ClientApp/src/app/_models/Authentication/UserRole.js
2026-11-11 16:17:24 +06:00

24 lines
668 B
JavaScript

import { BaseObject } from '../Basic/baseObject';
export class UserRole extends BaseObject {
constructor() {
super();
this.isOld = true;
this.newRoleName = "";
this.userID = 0;
}
getRoleNames(users, useRoles) {
var useRole;
var str = '';
users.forEach(u => {
str = '';
var temproles = useRoles.filter(x => u.id == x.userID);
if (temproles = undefined) {
temproles.forEach(y => {
str = str + y.roleNameView;
});
}
u.roleNames = str;
});
}
}
//# sourceMappingURL=UserRole.js.map