SUPPORT-8427: Fix
This commit is contained in:
parent
4d86c038c4
commit
ea143dee76
1 changed files with 1 additions and 69 deletions
|
|
@ -23,77 +23,9 @@ export class OrgDataRoot extends Behavior{
|
|||
return;
|
||||
}
|
||||
for (let orgData of orgScripts) {
|
||||
if (orgData.dataId == 'empFullname') {
|
||||
let control: ControlWithValue = orgData.getScriptInObject(orgData.getObjectId(),
|
||||
'component.ControlWithValue');
|
||||
control.setValue(orgInfoModel.empFullname)
|
||||
}
|
||||
else if (orgData.dataId == 'fullName') {
|
||||
let control: ControlWithValue = orgData.getScriptInObject(orgData.getObjectId(),
|
||||
'component.ControlWithValue');
|
||||
control.setValue(orgInfoModel.fullName)
|
||||
}
|
||||
else if (orgData.dataId == 'shortName') {
|
||||
let control: ControlWithValue = orgData.getScriptInObject(orgData.getObjectId(),
|
||||
'component.ControlWithValue');
|
||||
control.setValue(orgInfoModel.shortName)
|
||||
}
|
||||
else if (orgData.dataId == 'olgAddress') {
|
||||
let control: ControlWithValue = orgData.getScriptInObject(orgData.getObjectId(),
|
||||
'component.ControlWithValue');
|
||||
control.setValue(orgInfoModel.olgAddress)
|
||||
}
|
||||
else if (orgData.dataId == 'opsAddress') {
|
||||
let control: ControlWithValue = orgData.getScriptInObject(orgData.getObjectId(),
|
||||
'component.ControlWithValue');
|
||||
control.setValue(orgInfoModel.opsAddress)
|
||||
}
|
||||
else if (orgData.dataId == 'chiefFullname') {
|
||||
let control: ControlWithValue = orgData.getScriptInObject(orgData.getObjectId(),
|
||||
'component.ControlWithValue');
|
||||
control.setValue(orgInfoModel.chiefFullname)
|
||||
}
|
||||
else if (orgData.dataId == 'chiefPosition') {
|
||||
let control: ControlWithValue = orgData.getScriptInObject(orgData.getObjectId(),
|
||||
'component.ControlWithValue');
|
||||
control.setValue(orgInfoModel.chiefPosition)
|
||||
}
|
||||
else if (orgData.dataId == 'ogrn') {
|
||||
let control: ControlWithValue = orgData.getScriptInObject(orgData.getObjectId(),
|
||||
'component.ControlWithValue');
|
||||
control.setValue(orgInfoModel.ogrn)
|
||||
}
|
||||
else if (orgData.dataId == 'kpp') {
|
||||
let control: ControlWithValue = orgData.getScriptInObject(orgData.getObjectId(),
|
||||
'component.ControlWithValue');
|
||||
control.setValue(orgInfoModel.kpp)
|
||||
}
|
||||
else if (orgData.dataId == 'inn') {
|
||||
let control: ControlWithValue = orgData.getScriptInObject(orgData.getObjectId(),
|
||||
'component.ControlWithValue');
|
||||
control.setValue(orgInfoModel.inn)
|
||||
}
|
||||
else if (orgData.dataId == 'empPosition') {
|
||||
let control: ControlWithValue = orgData.getScriptInObject(orgData.getObjectId(),
|
||||
'component.ControlWithValue');
|
||||
control.setValue(orgInfoModel.empPosition)
|
||||
}
|
||||
else if (orgData.dataId == 'mobile') {
|
||||
let control: ControlWithValue = orgData.getScriptInObject(orgData.getObjectId(),
|
||||
'component.ControlWithValue');
|
||||
control.setValue(orgInfoModel.mobile)
|
||||
}
|
||||
else if (orgData.dataId == 'email') {
|
||||
let control: ControlWithValue = orgData.getScriptInObject(orgData.getObjectId(),
|
||||
'component.ControlWithValue');
|
||||
control.setValue(orgInfoModel.email)
|
||||
}
|
||||
else if (orgData.dataId == 'userRoles') {
|
||||
let control: ControlWithValue = orgData.getScriptInObject(orgData.getObjectId(),
|
||||
'component.ControlWithValue');
|
||||
control.setValue(orgInfoModel.userRoles)
|
||||
}
|
||||
|
||||
control.setValue(orgInfoModel[orgData.dataId]);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue