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
9fcff5f7
Commit
9fcff5f7
authored
Mar 04, 2026
by
Samir Sadyhov
🤔
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update NCALayer.js - подписание есэдо документов
parent
24454561
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
constructor/library/NCALayer.js
constructor/library/NCALayer.js
+8
-2
No files found.
constructor/library/NCALayer.js
View file @
9fcff5f7
...
@@ -76,10 +76,11 @@ this.NCALayer = {
...
@@ -76,10 +76,11 @@ this.NCALayer = {
if
(
me
.
successHandler
)
me
.
successHandler
(
me
.
info
);
if
(
me
.
successHandler
)
me
.
successHandler
(
me
.
info
);
}
}
}
else
if
(
result
.
responseObject
.
hasOwnProperty
(
'
signedData
'
)){
}
else
if
(
result
.
responseObject
.
hasOwnProperty
(
'
signedData
'
)){
const
{
certificate
,
dataForSign
,
signedData
}
=
result
.
responseObject
;
const
{
certificate
,
dataForSign
,
signedData
,
esedoSign
}
=
result
.
responseObject
;
me
.
info
.
certificate
=
certificate
;
me
.
info
.
certificate
=
certificate
;
me
.
info
.
dataForSign
=
dataForSign
;
me
.
info
.
dataForSign
=
dataForSign
;
me
.
info
.
signedData
=
signedData
;
me
.
info
.
signedData
=
signedData
;
if
(
esedoSign
)
me
.
info
.
esedoSign
=
esedoSign
;
me
.
verificationKey
();
me
.
verificationKey
();
}
else
{
}
else
{
me
.
info
.
xml
=
result
.
responseObject
;
me
.
info
.
xml
=
result
.
responseObject
;
...
@@ -140,7 +141,7 @@ this.NCALayer = {
...
@@ -140,7 +141,7 @@ this.NCALayer = {
},
},
signDocument
:
async
function
(
socket
){
signDocument
:
async
function
(
socket
){
const
{
rawdata
}
=
await
AS
.
FORMS
.
ApiUtils
.
simpleAsyncGet
(
`rest/api/docflow/doc/document_info?documentID=
${
this
.
documentID
}
&locale=
${
AS
.
OPTIONS
.
locale
}
`
);
const
{
rawdata
,
isEsedoOutgoing
}
=
await
AS
.
FORMS
.
ApiUtils
.
simpleAsyncGet
(
`rest/api/docflow/doc/document_info?documentID=
${
this
.
documentID
}
&locale=
${
AS
.
OPTIONS
.
locale
}
`
);
const
param
=
{
const
param
=
{
module
:
'
kz.arta.synergy.signmodule
'
,
module
:
'
kz.arta.synergy.signmodule
'
,
...
@@ -148,6 +149,11 @@ this.NCALayer = {
...
@@ -148,6 +149,11 @@ this.NCALayer = {
args
:
[
""
,
"
SIGN
"
,
rawdata
]
args
:
[
""
,
"
SIGN
"
,
rawdata
]
};
};
if
(
isEsedoOutgoing
&&
isEsedoOutgoing
==
"
true
"
)
{
const
digest
=
await
AS
.
FORMS
.
ApiUtils
.
simpleAsyncPost
(
`rest/sign/esedo/getDigest?idDocument=
${
this
.
documentID
}
`
);
param
.
args
=
[
JSON
.
stringify
(
digest
),
"
SIGN
"
,
rawdata
]
}
if
(
!
this
.
webSocket
)
this
.
webSocket
=
this
.
getNCALayerSocket
();
if
(
!
this
.
webSocket
)
this
.
webSocket
=
this
.
getNCALayerSocket
();
setTimeout
(()
=>
{
setTimeout
(()
=>
{
...
...
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