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
community
synergy-components
Commits
c1e0bb60
Commit
c1e0bb60
authored
Feb 02, 2022
by
Irina Oleynik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add new file
parent
3631642b
Changes
1
Hide 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 @
c1e0bb60
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;
}
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