Escolar Documentos
Profissional Documentos
Cultura Documentos
CtrlFluxoPersistence = function(msg)
var fs = global.get('fs')
var CtlPin = 0
deasync.sleep(100)
msg.topic = msg.payload
msg.continua =
file:///C:/Shared/xxx.js.svg 3/8/2019
Page 2 of 11
parseInt(msg.payload.Continua, 10)
msg.BufferTEF =
? (msg.payload.Buffer.length === 0)
""
try
doStuffSequentially = () =>
StackPop(msg)
-
if (typeof msg.stack === "undefined")
doStuffSequentially()
if switch (msg.continua)
case 0:
if (ImprimeLog)
-
if (typeof msg.item.cmdPos !== "undefined" && typeof ...
if (ImprimeLog)
-
if (msg.item.cmdPos.cmd.indexOf("set") > -1)
if (ImprimeLog)
file:///C:/Shared/xxx.js.svg 3/8/2019
Page 3 of 11
let poS =
-
? (mais)
1 0
var x = retirarFormatacao(msg.BufferTEF)
-
if (parseInt(msg.BufferTEF.substr(0, 2)) == 55)
if (ImprimeLog) if (ImprimeLog)
+ +
var output = (mais ? '+' : '') + [x.slice(poS, 4 +... var output = (mais ? '+' : '') + [
-
? (mais) ? (mais)
+ +
if (ImprimeLog)
global.set(name, msg.BufferTEF)
fTRNPersistence(msg)
msg.trn[name] = msg.BufferTEF
msg.trn.atualiza = true
msg.trn.field = -1
var i = mArray.indexOf(name)
DoStuffSequentially = () =>
if switch (i)
case 0:
file:///C:/Shared/xxx.js.svg 3/8/2019
Page 4 of 11
if (msg.BufferTEF.length === 0)
UndoStackPop(msg)
msg.stackpush = {*}
undefined: {*}
"min": 0
"max": 0
"cmd": 3
"tipocampo": -1
StackPush(msg)
break
case 1:
-
if (msg.BufferTEF.length === 0)
UndoStackPop(msg)
if (parc < 0 || parc > 3)
+
msg.stackpush = {*}
msg = await UndoStackPop(msg)
undefined: {*}
msg.stackpush = {*}
"min": 0
"buffer": "Preenchimento Fora d
"max": 0
undefined: {*}
"cmd": 3
"min": 0
"tipocampo": -1
"max": 0
StackPush(msg)
"tipocampo": -1
StackPush(msg)
break
DoStuffSequentially()
file:///C:/Shared/xxx.js.svg 3/8/2019
Page 5 of 11
if (ImprimeLog)
msg.trn.field = i
fTRNPersistence(msg)
file:///C:/Shared/xxx.js.svg 3/8/2019
Page 6 of 11
file:///C:/Shared/xxx.js.svg 3/8/2019
Page 7 of 11
file:///C:/Shared/xxx.js.svg 3/8/2019
Page 8 of 11
break
case 1:
if (ImprimeLog)
DoStuffSequentiallyC = () =>
StackBack(msg)
DoStuffSequentiallyC()
msg.item = {*}
"buffer": ""
"cmd": 3
"tipocampo": -1
response: 10000
if (ImprimeLog)
break
file:///C:/Shared/xxx.js.svg 3/8/2019
Page 9 of 11
case -1:
if (ImprimeLog)
msg.trn.Error = {*}
"cmd": 3
"tipocampo": -1
StatusCode: -1
RmvCrdPinPad(msg)
break
case -2:
msg.ContFluxo = false
msg.nr =
msg.nr + msg.item.ponteiro.proximo
if (ImprimeLog)
break
if (ImprimeLog)
-
if (msg.ContFluxo)
if (ImprimeLog) if (ImprimeLog)
+ +
Log('info', "Log File:main.js Line:406 Function: T... Log('info', "Log File:main.js Line:416 Function: T.
+ +
msg.payload = {*}
Log('info', "Log File:main.js Line:409 Function: T...
file:///C:/Shared/xxx.js.svg 3/8/2019
Page 10 of 11
"buffer": sobj.buffer
if (typeof msg.trn.Error !== "undefined")
+ "cmd": 3
if (ImprimeLog) "tipocampo": -1
+
msg.payload = {*}
if (ImprimeLog)
+
"buffer": msg.trn.Error.StatusDescription
Log('info', "Log File:main.js Line:421 Functi
"cmd": 3
fs.unlinkSync(userdirData + '/tmp/Negada.json')
"tipocampo": -1
response: /*msg.trn.Error.ResultCode*/ -1
codError: msg.trn.Error.ResultCode
msg.payload.response =
if (ImprimeLog)
catch (ex)
ex
console.dir(ex)
file:///C:/Shared/xxx.js.svg 3/8/2019
Page 11 of 11
if (true)
if (true)
if (true)
return msg
file:///C:/Shared/xxx.js.svg 3/8/2019