|
|
|
@ -551,6 +551,91 @@ $(document).ready(function() {
|
|
|
|
|
///Processor functions
|
|
|
|
|
///////////////////////////////
|
|
|
|
|
mGlobal.Processor = {}
|
|
|
|
|
mGlobal.Processor.ServerValueAppend = function(inKeyList,inValue) {
|
|
|
|
|
lData = [
|
|
|
|
|
{
|
|
|
|
|
"Type":"GlobalDictKeyListValueAppend",
|
|
|
|
|
"KeyList": inKeyList,
|
|
|
|
|
"Value": inValue
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
///Обнулить таблицу
|
|
|
|
|
$('.ui.modal.basic .content').html("");
|
|
|
|
|
$.ajax({
|
|
|
|
|
type: "POST",
|
|
|
|
|
url: '/orpa/api/processor-queue-add',
|
|
|
|
|
data: JSON.stringify(lData),
|
|
|
|
|
success:
|
|
|
|
|
function(lData,l2,l3)
|
|
|
|
|
{
|
|
|
|
|
var lResponseJSON=JSON.parse(lData)
|
|
|
|
|
///TODO Show error if exist error
|
|
|
|
|
},
|
|
|
|
|
dataType: "text"
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
mGlobal.Processor.ServerValueSet = function(inKeyList,inValue) {
|
|
|
|
|
lData = [
|
|
|
|
|
{
|
|
|
|
|
"Type":"GlobalDictKeyListValueSet",
|
|
|
|
|
"KeyList": inKeyList,
|
|
|
|
|
"Value": inValue
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
///Обнулить таблицу
|
|
|
|
|
$('.ui.modal.basic .content').html("");
|
|
|
|
|
$.ajax({
|
|
|
|
|
type: "POST",
|
|
|
|
|
url: '/orpa/api/processor-queue-add',
|
|
|
|
|
data: JSON.stringify(lData),
|
|
|
|
|
success:
|
|
|
|
|
function(lData,l2,l3)
|
|
|
|
|
{
|
|
|
|
|
var lResponseJSON=JSON.parse(lData)
|
|
|
|
|
///TODO Show error if exist error
|
|
|
|
|
},
|
|
|
|
|
dataType: "text"
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
mGlobal.Processor.ServerValueOperatorPlus = function(inKeyList,inValue) {
|
|
|
|
|
lData = [
|
|
|
|
|
{
|
|
|
|
|
"Type":"GlobalDictKeyListValueOperator+",
|
|
|
|
|
"KeyList": inKeyList,
|
|
|
|
|
"Value": inValue
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
///Обнулить таблицу
|
|
|
|
|
$('.ui.modal.basic .content').html("");
|
|
|
|
|
$.ajax({
|
|
|
|
|
type: "POST",
|
|
|
|
|
url: '/orpa/api/processor-queue-add',
|
|
|
|
|
data: JSON.stringify(lData),
|
|
|
|
|
success:
|
|
|
|
|
function(lData,l2,l3)
|
|
|
|
|
{
|
|
|
|
|
var lResponseJSON=JSON.parse(lData)
|
|
|
|
|
///TODO Show error if exist error
|
|
|
|
|
},
|
|
|
|
|
dataType: "text"
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
mGlobal.Processor.Send = function(inData) {
|
|
|
|
|
lData = inData
|
|
|
|
|
$.ajax({
|
|
|
|
|
type: "POST",
|
|
|
|
|
url: '/orpa/api/processor-queue-add',
|
|
|
|
|
data: JSON.stringify(lData),
|
|
|
|
|
success:
|
|
|
|
|
function(lData,l2,l3)
|
|
|
|
|
{
|
|
|
|
|
var lResponseJSON=JSON.parse(lData)
|
|
|
|
|
///TODO Show error if exist error
|
|
|
|
|
},
|
|
|
|
|
dataType: "text"
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mGlobal.Server= {}
|
|
|
|
|
mGlobal.Server.JSONGet=function(inMethod, inURL, inDataJSON, inCallback)
|
|
|
|
|