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
+32
View File
@@ -0,0 +1,32 @@
IMPORT util
TYPE t_sync_cmd RECORD
oper STRING,
data STRING
END RECORD
FUNCTION conexion()
DEFINE purl,cmd,res, msg STRING,
ret INT
DEFINE r_cmd t_sync_cmd
# LET purl="https://ws.marmotech.com.do/gas/ws/r/restserver"
# LET purl="http://181.36.230.171/gas/ws/r/restserver"
LET purl="http://192.168.40.9/gas/ws/r/restserver"
# LET purl="http://200.88.67.188:2089/gas/ws/r/restserver"
# LET purl="https://ws.marmotech.com.do/gas/ws/r/restserver"
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 msg=SFMT(%"Connection '%1' failed",r_cmd.oper),"\n URL:",purl,"\n",res
CALL show_sync_err(msg)
LET purl='0'
END IF
RETURN purl
END FUNCTION