Commit inicial: fuentes MBS ERP (Genero 6) + .gitignore + docs/SETUP_PC_MBS.md

This commit is contained in:
2026-08-18 20:59:52 -04:00
commit 454973e269
5978 changed files with 2664094 additions and 0 deletions
+37
View File
@@ -0,0 +1,37 @@
IMPORT util
TYPE t_sync_cmd RECORD
oper STRING,
data STRING
END RECORD
FUNCTION conexion_demo()
DEFINE purl,cmd,res, msg STRING,
ret INT
DEFINE r_cmd t_sync_cmd
LET purl="http://200.88.67.188:8098"
# LET purl="http://192.168.1.119:8097"
LET r_cmd.oper = "get_status"
LET r_cmd.data = util.JSON.stringify(' ') -- aca se convierte a string los datos de la operacion
LET cmd = util.JSON.stringify(r_cmd) -- aca se convierte a string el comando/operacion a enviar al server
CALL sync_send_command(purl, cmd) RETURNING ret, res
IF ret ==0 THEN
RETURN purl
ELSE
LET purl="http://192.168.40.2:8098"
CALL sync_send_command(purl, cmd) RETURNING ret, res
IF ret==0 THEN
RETURN purl
ELSE
LET msg=SFMT(%"Connection '%1' failed",r_cmd.oper),"\n URL:",purl,"\n",res
# CALL show_sync_err(msg)
LET purl='0'
END IF
END IF
RETURN purl
END FUNCTION