SUPPORT-9225: fix fields and pages
This commit is contained in:
parent
2ca869f5ee
commit
6b0b0a0743
5 changed files with 26 additions and 28 deletions
|
|
@ -79,8 +79,8 @@ export class UserManagementService extends Behavior {
|
|||
case ApplicationKind.EDIT_USER_MAIN:
|
||||
let editPersonData = new EditPersonData();
|
||||
editPersonData.accountId = accountId;
|
||||
editPersonData.personId = formJson['id'];
|
||||
editPersonData.organizationId = formJson['user-domain'];
|
||||
editPersonData.personId = formJson['idPerson'];
|
||||
editPersonData.organizationId = formJson['idDomain'];
|
||||
editPersonData.personData = this.populateDto(new Person(), formJson);
|
||||
request = new ProcessRequest<EditPersonData>();
|
||||
request.data = editPersonData;
|
||||
|
|
@ -90,8 +90,6 @@ export class UserManagementService extends Behavior {
|
|||
case ApplicationKind.EDIT_USER_ACCOUNT:
|
||||
let editAccountData = new EditAccountData();
|
||||
let account = this.populateDto(new Account(), formJson);
|
||||
account.idPerson = formJson['id'];
|
||||
account.idDomain = formJson['user-domain'];
|
||||
editAccountData.account = account;
|
||||
editAccountData.accountId = accountId;
|
||||
request = new ProcessRequest<EditAccountData>();
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
export class Account {
|
||||
public start: string;
|
||||
public appointment: string;
|
||||
public idDomain: string;
|
||||
public finish: string;
|
||||
public start: string = "";
|
||||
public appointment: string = "";
|
||||
public idDomain: string = "";
|
||||
public finish: string = "";
|
||||
public sessionsLimit: number = 0;
|
||||
public idPerson: string;
|
||||
public idPerson: string = "";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
export class Person {
|
||||
public login: string;
|
||||
public snils: string;
|
||||
public lastName: string;
|
||||
public firstName: string;
|
||||
public middleName: string;
|
||||
public login: string = "";
|
||||
public snils: string = "";
|
||||
public lastName: string = "";
|
||||
public firstName: string = "";
|
||||
public middleName: string = "";
|
||||
public secondFactorEnabled: boolean = false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue