dev-fastapi
Иван Маслов 2 years ago
parent f7ea120222
commit 55f238e07f

@ -552,11 +552,21 @@ $(document).ready(function() {
/////////////////////////////// ///////////////////////////////
mGlobal.Processor = {} mGlobal.Processor = {}
mGlobal.Processor.ServerValueAppend = function(inKeyList,inValue) { mGlobal.Processor.ServerValueAppend = function(inKeyList,inValue) {
///EXAMPLE
// {
// "Def":"OSCMD", // def link or def alias (look gSettings["Processor"]["AliasDefDict"])
// "ArgList":[], // Args list
// "ArgDict":{"inCMDStr":lCMDCode,"inRunAsyncBool":false}, // Args dictionary
// "ArgGSettings": null, // Name of GSettings attribute: str (ArgDict) or index (for ArgList)
// "ArgLogger": "inLogger" // Name of GSettings attribute: str (ArgDict) or index (for ArgList)
// }
lData = [ lData = [
{ {
"Type":"GlobalDictKeyListValueAppend", "Def":"GSettingsKeyListValueAppend",
"KeyList": inKeyList, "ArgList":[], // Args list
"Value": inValue "ArgDict":{"inValue":inValue,"inKeyList":inKeyList}, // Args dictionary
"ArgGSettings": null, // Name of GSettings attribute: str (ArgDict) or index (for ArgList)
"ArgLogger": null // Name of GSettings attribute: str (ArgDict) or index (for ArgList)
} }
] ]
///Обнулить таблицу ///Обнулить таблицу
@ -575,11 +585,21 @@ $(document).ready(function() {
}); });
} }
mGlobal.Processor.ServerValueSet = function(inKeyList,inValue) { mGlobal.Processor.ServerValueSet = function(inKeyList,inValue) {
///EXAMPLE
// {
// "Def":"OSCMD", // def link or def alias (look gSettings["Processor"]["AliasDefDict"])
// "ArgList":[], // Args list
// "ArgDict":{"inCMDStr":lCMDCode,"inRunAsyncBool":false}, // Args dictionary
// "ArgGSettings": null, // Name of GSettings attribute: str (ArgDict) or index (for ArgList)
// "ArgLogger": "inLogger" // Name of GSettings attribute: str (ArgDict) or index (for ArgList)
// }
lData = [ lData = [
{ {
"Type":"GlobalDictKeyListValueSet", "Def":"GSettingsKeyListValueSet",
"KeyList": inKeyList, "ArgList":[], // Args list
"Value": inValue "ArgDict":{"inValue":inValue,"inKeyList":inKeyList}, // Args dictionary
"ArgGSettings": null, // Name of GSettings attribute: str (ArgDict) or index (for ArgList)
"ArgLogger": null // Name of GSettings attribute: str (ArgDict) or index (for ArgList)
} }
] ]
///Обнулить таблицу ///Обнулить таблицу
@ -598,11 +618,21 @@ $(document).ready(function() {
}); });
} }
mGlobal.Processor.ServerValueOperatorPlus = function(inKeyList,inValue) { mGlobal.Processor.ServerValueOperatorPlus = function(inKeyList,inValue) {
///EXAMPLE
// {
// "Def":"OSCMD", // def link or def alias (look gSettings["Processor"]["AliasDefDict"])
// "ArgList":[], // Args list
// "ArgDict":{"inCMDStr":lCMDCode,"inRunAsyncBool":false}, // Args dictionary
// "ArgGSettings": null, // Name of GSettings attribute: str (ArgDict) or index (for ArgList)
// "ArgLogger": "inLogger" // Name of GSettings attribute: str (ArgDict) or index (for ArgList)
// }
lData = [ lData = [
{ {
"Type":"GlobalDictKeyListValueOperator+", "Def":"GSettingsKeyListValueOperatorPlus",
"KeyList": inKeyList, "ArgList":[], // Args list
"Value": inValue "ArgDict":{"inValue":inValue,"inKeyList":inKeyList}, // Args dictionary
"ArgGSettings": null, // Name of GSettings attribute: str (ArgDict) or index (for ArgList)
"ArgLogger": null // Name of GSettings attribute: str (ArgDict) or index (for ArgList)
} }
] ]
///Обнулить таблицу ///Обнулить таблицу
@ -621,6 +651,14 @@ $(document).ready(function() {
}); });
} }
mGlobal.Processor.Send = function(inData) { mGlobal.Processor.Send = function(inData) {
///EXAMPLE
// {
// "Def":"OSCMD", // def link or def alias (look gSettings["Processor"]["AliasDefDict"])
// "ArgList":[], // Args list
// "ArgDict":{"inCMDStr":lCMDCode,"inRunAsyncBool":false}, // Args dictionary
// "ArgGSettings": null, // Name of GSettings attribute: str (ArgDict) or index (for ArgList)
// "ArgLogger": "inLogger" // Name of GSettings attribute: str (ArgDict) or index (for ArgList)
// }
lData = inData lData = inData
$.ajax({ $.ajax({
type: "POST", type: "POST",

Loading…
Cancel
Save