Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
synergy-components
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Irina Oleynik
synergy-components
Commits
e0e757b5
Commit
e0e757b5
authored
Jan 21, 2022
by
Irina Oleynik
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Назначение пользователя на должность
parent
a339d039
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
interpreter/event.blocking.interpreter.appointment.to.the.position
...er/event.blocking.interpreter.appointment.to.the.position
+21
-0
No files found.
interpreter/event.blocking.interpreter.appointment.to.the.position
0 → 100644
View file @
e0e757b5
var result = true;
var message = 'ok';
try {
let currentFormData = API.getFormData(dataUUID);
let user = UTILS.getValue(currentFormData, "entity_user");
let position = UTILS.getValue(currentFormData, "entity-position");
if(!user || !user.hasOwnProperty('key')) throw new Error('Не выбран пользователь для назначения');
if(!position || !position.hasOwnProperty('key')) throw new Error('Не выбрана должность для назначения');
let res = API.httpGetMethod('rest/api/positions/appoint?userID=' + user.key + "&positionID=" + position.key);
if(res.errorCode != '0') throw new Error(res.errorMessage);
message = res.errorMessage;
} catch (err) {
result = false;
message = err.message;
}
Irina Oleynik
@i.oleynik
mentioned in commit
9581b875
·
Jan 24, 2022
mentioned in commit
9581b875
mentioned in commit 9581b875a12d5d135175b89dcf38329ebcb65cdc
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment