ЦИТК-977 - поддержка обмена "Универсальными сообщениями"
This commit is contained in:
parent
81719ada38
commit
61dd9e8f1a
@ -27,7 +27,8 @@ const tag = [
|
|||||||
"Resolutions",
|
"Resolutions",
|
||||||
"XmlSignatureRejections",
|
"XmlSignatureRejections",
|
||||||
"RecipientTitles",
|
"RecipientTitles",
|
||||||
"Requests"
|
"Requests",
|
||||||
|
"UniversalMessages"
|
||||||
];
|
];
|
||||||
|
|
||||||
//------------
|
//------------
|
||||||
@ -683,12 +684,16 @@ const beforeDocLoad = async prms => {
|
|||||||
entId = "documentId=";
|
entId = "documentId=";
|
||||||
msgId = "letterId=";
|
msgId = "letterId=";
|
||||||
break;
|
break;
|
||||||
|
//Загрузка Универсального сообщения
|
||||||
|
case 6:
|
||||||
|
entId = "attachmentId=";
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
}
|
}
|
||||||
surl = `${surl}?${msgId}${prms.options.smsgid}&${entId}${prms.options.sentid}`;
|
surl = `${surl}?${msgId}${prms.options.smsgid}&${entId}${prms.options.sentid}`;
|
||||||
let obj;
|
let obj;
|
||||||
let rblMsg;
|
let rblMsg;
|
||||||
if (prms.queue.blMsg && prms.options.type != 5) {
|
if (prms.queue.blMsg && (prms.options.type != 5) && (prms.options.type != 6)) {
|
||||||
//Конвертируем XML из "Парус 8" в понятный "ДИАДОК" JSON
|
//Конвертируем XML из "Парус 8" в понятный "ДИАДОК" JSON
|
||||||
obj = await toJSON(prms.queue.blMsg.toString());
|
obj = await toJSON(prms.queue.blMsg.toString());
|
||||||
rblMsg = Buffer.from(JSON.stringify(obj));
|
rblMsg = Buffer.from(JSON.stringify(obj));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user