Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- +- REQUEST - 8:20:33 AM ----------------------------
- POST http://10.0.1.103:52773/api/atelier/v5/INTRANET/action/query
- COOKIE: <value>
- ACCEPT: application/json
- CONTENT-TYPE: application/json
- CACHE-CONTROL: no-cache
- AUTHORIZATION: <value>
- Body:
- {
- "parameters": [
- "*.cspall",
- "1",
- "1",
- "0",
- "1",
- "0",
- "0",
- "",
- "0",
- "1"
- ],
- "query": "SELECT Name, Type FROM %Library.RoutineMgr_StudioOpenDialog(?,?,?,?,?,?,?,?,?,?)"
- }
- +- ERROR --------------------------------------------
- {
- "message": "Request failed with status code 504",
- "name": "AxiosError",
- "stack": "AxiosError: Request failed with status code 504\n at Xe (/Users/pasp/.vscode/extensions/intersystems-community.vscode-objectscript-3.0.4-beta.4/dist/extension.js:2:1182406)\n at IncomingMessage.<anonymous> (/Users/pasp/.vscode/extensions/intersystems-community.vscode-objectscript-3.0.4-beta.4/dist/extension.js:2:1194581)\n at IncomingMessage.emit (node:events:530:35)\n at endReadableNT (node:internal/streams/readable:1698:12)\n at processTicksAndRejections (node:internal/process/task_queues:90:21)\n at cn.request (/Users/pasp/.vscode/extensions/intersystems-community.vscode-objectscript-3.0.4-beta.4/dist/extension.js:2:1206796)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at t.AtelierAPI.request (/Users/pasp/.vscode/extensions/intersystems-community.vscode-objectscript-3.0.4-beta.4/dist/extension.js:2:146388)\n at async Promise.all (index 0)\n at tV.q (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:129:5024)",
- "config": {
- "transitional": {
- "silentJSONParsing": true,
- "forcedJSONParsing": true,
- "clarifyTimeoutError": false
- },
- "adapter": [
- "xhr",
- "http",
- "fetch"
- ],
- "transformRequest": [
- null
- ],
- "transformResponse": [
- null
- ],
- "timeout": 0,
- "xsrfCookieName": "XSRF-TOKEN",
- "xsrfHeaderName": "X-XSRF-TOKEN",
- "maxContentLength": -1,
- "maxBodyLength": -1,
- "env": {},
- "headers": {
- "Accept": "application/json",
- "Content-Type": "application/json",
- "Cache-Control": "no-cache",
- "Authorization": "Basic cGFzcDo5MDA4MDI4MDE4SHM=",
- "Cookie": "CSPSESSIONID-SP-52773-UP-api-atelier-=002000000000Kqj7mD0BjAT0isf4R3_zKjX33SWSeNkEpEDkcS; path=/api/atelier/; sameSite=strict;, CSPWSERVERID=C22YOcC7; path=/; httpOnly;",
- "User-Agent": "axios/1.8.4",
- "Content-Length": "153",
- "Accept-Encoding": "gzip, compress, deflate, br"
- },
- "method": "post",
- "url": "http://10.0.1.103:52773/api/atelier/v5/INTRANET/action/query",
- "data": "{\"parameters\":[\"*.cspall\",\"1\",\"1\",\"0\",\"1\",\"0\",\"0\",\"\",\"0\",\"1\"],\"query\":\"SELECT Name, Type FROM %Library.RoutineMgr_StudioOpenDialog(?,?,?,?,?,?,?,?,?,?)\"}",
- "withCredentials": true,
- "httpsAgent": {
- "_events": {},
- "_eventsCount": 2,
- "defaultPort": 443,
- "protocol": "https:",
- "options": {
- "rejectUnauthorized": false,
- "noDelay": true,
- "path": null
- },
- "requests": {},
- "sockets": {},
- "freeSockets": {},
- "keepAliveMsecs": 1000,
- "keepAlive": false,
- "maxSockets": null,
- "maxFreeSockets": 256,
- "scheduling": "lifo",
- "maxTotalSockets": null,
- "totalSocketCount": 0,
- "maxCachedSessions": 100,
- "_sessionCache": {
- "map": {},
- "list": []
- }
- },
- "allowAbsoluteUrls": true
- },
- "code": "ERR_BAD_RESPONSE",
- "status": 504
- }
- +- END ----------------------------------------------
- +- REQUEST - 8:21:06 AM ----------------------------
- GET http://10.0.1.103:52773/api/atelier/v5/INTRANET/doc/production.statistic.mac
- COOKIE: <value>
- IF-NONE-MATCH: 2025-06-24 08:18:17.664
- ACCEPT: application/json
- CACHE-CONTROL: no-cache
- AUTHORIZATION: <value>
- +- RESPONSE - 8:21:33 AM ---------------------------
- 304 Not Modified
- DATE: Tue, 24 Jun 2025 06:21:06 GMT
- SERVER: Apache
- SET-COOKIE: <value>
- CACHE-CONTROL: no-cache
- ETAG: 2025-06-24 08:18:17.664
- EXPIRES: Thu, 29 Oct 1998 17:04:19 GMT
- PRAGMA: no-cache
- CONNECTION: close
- +- END ----------------------------------------------
- +- REQUEST - 8:21:33 AM ----------------------------
- GET http://10.0.1.103:52773/api/atelier/v5/INTRANET/doc/production.statistic.mac
- COOKIE: <value>
- IF-NONE-MATCH: 2025-06-24 08:18:17.664
- ACCEPT: application/json
- CACHE-CONTROL: no-cache
- AUTHORIZATION: <value>
- +- RESPONSE - 8:21:33 AM ---------------------------
- 304 Not Modified
- DATE: Tue, 24 Jun 2025 06:21:33 GMT
- SERVER: Apache
- SET-COOKIE: <value>
- CACHE-CONTROL: no-cache
- ETAG: 2025-06-24 08:18:17.664
- EXPIRES: Thu, 29 Oct 1998 17:04:19 GMT
- PRAGMA: no-cache
- CONNECTION: close
- +- END ----------------------------------------------
- +- REQUEST - 8:20:35 AM ----------------------------
- POST http://10.0.1.103:52773/api/atelier/v5/INTRANET/action/query
- COOKIE: <value>
- ACCEPT: application/json
- CONTENT-TYPE: application/json
- CACHE-CONTROL: no-cache
- AUTHORIZATION: <value>
- Body:
- {
- "parameters": [
- "*.cspall",
- "1",
- "1",
- "0",
- "1",
- "0",
- "0",
- "",
- "0",
- "1"
- ],
- "query": "SELECT Name, Type FROM %Library.RoutineMgr_StudioOpenDialog(?,?,?,?,?,?,?,?,?,?)"
- }
- +- ERROR --------------------------------------------
- {
- "message": "Request failed with status code 504",
- "name": "AxiosError",
- "stack": "AxiosError: Request failed with status code 504\n at Xe (/Users/pasp/.vscode/extensions/intersystems-community.vscode-objectscript-3.0.4-beta.4/dist/extension.js:2:1182406)\n at IncomingMessage.<anonymous> (/Users/pasp/.vscode/extensions/intersystems-community.vscode-objectscript-3.0.4-beta.4/dist/extension.js:2:1194581)\n at IncomingMessage.emit (node:events:530:35)\n at endReadableNT (node:internal/streams/readable:1698:12)\n at processTicksAndRejections (node:internal/process/task_queues:90:21)\n at cn.request (/Users/pasp/.vscode/extensions/intersystems-community.vscode-objectscript-3.0.4-beta.4/dist/extension.js:2:1206796)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at t.AtelierAPI.request (/Users/pasp/.vscode/extensions/intersystems-community.vscode-objectscript-3.0.4-beta.4/dist/extension.js:2:146388)\n at async Promise.all (index 0)\n at tV.q (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:129:5024)",
- "config": {
- "transitional": {
- "silentJSONParsing": true,
- "forcedJSONParsing": true,
- "clarifyTimeoutError": false
- },
- "adapter": [
- "xhr",
- "http",
- "fetch"
- ],
- "transformRequest": [
- null
- ],
- "transformResponse": [
- null
- ],
- "timeout": 0,
- "xsrfCookieName": "XSRF-TOKEN",
- "xsrfHeaderName": "X-XSRF-TOKEN",
- "maxContentLength": -1,
- "maxBodyLength": -1,
- "env": {},
- "headers": {
- "Accept": "application/json",
- "Content-Type": "application/json",
- "Cache-Control": "no-cache",
- "Authorization": "Basic cGFzcDo5MDA4MDI4MDE4SHM=",
- "Cookie": "CSPSESSIONID-SP-52773-UP-api-atelier-=002000000000Kqj7mD0BjAT0isf4R3_zKjX33SWSeNkEpEDkcS; path=/api/atelier/; sameSite=strict;, CSPWSERVERID=C22YOcC7; path=/; httpOnly;",
- "User-Agent": "axios/1.8.4",
- "Content-Length": "153",
- "Accept-Encoding": "gzip, compress, deflate, br"
- },
- "method": "post",
- "url": "http://10.0.1.103:52773/api/atelier/v5/INTRANET/action/query",
- "data": "{\"parameters\":[\"*.cspall\",\"1\",\"1\",\"0\",\"1\",\"0\",\"0\",\"\",\"0\",\"1\"],\"query\":\"SELECT Name, Type FROM %Library.RoutineMgr_StudioOpenDialog(?,?,?,?,?,?,?,?,?,?)\"}",
- "withCredentials": true,
- "httpsAgent": {
- "_events": {},
- "_eventsCount": 2,
- "defaultPort": 443,
- "protocol": "https:",
- "options": {
- "rejectUnauthorized": false,
- "noDelay": true,
- "path": null
- },
- "requests": {},
- "sockets": {},
- "freeSockets": {},
- "keepAliveMsecs": 1000,
- "keepAlive": false,
- "maxSockets": null,
- "maxFreeSockets": 256,
- "scheduling": "lifo",
- "maxTotalSockets": null,
- "totalSocketCount": 0,
- "maxCachedSessions": 100,
- "_sessionCache": {
- "map": {},
- "list": []
- }
- },
- "allowAbsoluteUrls": true
- },
- "code": "ERR_BAD_RESPONSE",
- "status": 504
- }
- +- END ----------------------------------------------
- +- REQUEST - 8:21:33 AM ----------------------------
- PUT http://10.0.1.103:52773/api/atelier/v5/INTRANET/doc/production.statistic.mac?ignoreConflict=1
- COOKIE: <value>
- ACCEPT: application/json
- CONTENT-TYPE: application/json
- CACHE-CONTROL: no-cache
- AUTHORIZATION: <value>
- Body:
- {
- "content": [
- "ROUTINE production.statistic",
- " /// Program : production.statistic",
- " /// Last compiled : 2025-06-24 08:17:26.4613653",
- " #dim %sys as wcs.system",
- " #dim %ses as wcs.session",
- " #dim %env as dho.environment",
- " #dim %user as wcs.user",
- " #dim %util as wcs.util",
- " #dim %tabs as wcs.tabs",
- " #dim %tab as wcs.tab.tab",
- " #dim %pgm as wcs.program",
- " #dim %print as wcs.pdf",
- " #dim %printjob as wcs.printjob",
- " #dim bg0 as wcs.component.buttongroup",
- " #dim cEnvironment as wcs.component.combo",
- " #dim cType as wcs.component.combo",
- " #dim chart as wcs.component.chartjs",
- " #dim extOverview as wcs.component.extgrid",
- " #dim extOverviewEditGroup as wcs.component.buttongroup",
- " #dim extOverviewrefreshBtn as wcs.component.button",
- " #dim lblCompany as wcs.component.label",
- " #dim lblType as wcs.component.label",
- " #dim pCenter as wcs.component.panel",
- " #dim pEast as wcs.component.panel",
- " /// DONE",
- "layout(x)",
- " SET l = $lb(\"layout='border'\", \"border=false\"),",
- "\t l(1) = $lb(\"xtype='panel'\", \"id='pCenter'\", \"region='center'\", \"layout='border'\", \"border=false\"),",
- "\t l(1, 1) = $lb(\"xtype='extgrid'\", \"id='extOverview'\", \"region='center'\", \"add=false\", \"edit=false\", \"select=false\", \"delete=false\", \"refresh=true\", \"search=false\", \"ribbon=true\", \"border=false\", \"cls='borderr'\"),",
- "\t l(1, 1, \"columns\", 1) = $lb(\"header='Date'\", \"width=80\")",
- "",
- " SET l(1, 1, \"tbar\", 1) = $lb(\"xtype='buttongroup'\", \"id='bg0'\", \"title='Selection'\", \"columns=2\"),",
- "\t l(1, 1, \"tbar\", 1, 1) = $lb(\"xtype='label'\", \"id='lblCompany'\", \"text='Company:'\", \"style='padding-right:5px;'\"),",
- "\t l(1, 1, \"tbar\", 1, 2) = $lb(\"xtype='combo'\", \"id='cEnvironment'\"),",
- "\t l(1, 1, \"tbar\", 1, 2, \"on\", \"select\") = \"environmentChage\",",
- "\t l(1, 1, \"tbar\", 1, 2, \"width\") = \"250\",",
- "\t l(1, 1, \"tbar\", 1, 3) = $lb(\"xtype='label'\", \"id='lblType'\", \"text='Type:'\", \"style='padding-right:5px;'\"),",
- "\t l(1, 1, \"tbar\", 1, 4) = $lb(\"xtype='combo'\", \"id='cType'\", \"width=250\")",
- "",
- " SET l(2) = $lb(\"xtype='panel'\", \"id='pEast'\", \"region='east'\", \"layout='border'\", \"border=false\", \"collapsible=true\", \"width=500\", \"title='Charts'\", \"split=true\"),",
- "\t l(2, 1) = $lb(\"xtype='chartjs'\", \"id='chart'\", \"region='center'\")",
- "\t ",
- " DO %tab.setLayout(.l)",
- "",
- " QUIT",
- "",
- "start(x)",
- " ",
- " // COMPANY OPTIONS",
- " //",
- " SET environment = %user.getEnvironmentList(),",
- "\t defaultEnv = \"\"",
- " ",
- " SET sql = \"SELECT code, name FROM dho.environment WHERE isProduction = 1 ORDER BY name\",",
- "\t rs = ##class(%SQL.Statement).%ExecDirect(,sql)",
- " ",
- " WHILE rs.%Next()",
- " {",
- "\tIF (\",\"_environment_\",\") '[ (\",\"_rs.code_\",\")",
- "\t{",
- "\t\tCONTINUE",
- "\t}",
- "",
- "\tSET:defaultEnv=\"\" defaultEnv = rs.code ",
- "",
- "\tSET tab(rs.code) = $SELECT(rs.name = \"\" :rs.code, 1: rs.name_\" (\"_rs.code_\")\"),",
- "\t\ttab(rs.code, \"sortValue\") = rs.name",
- " }",
- "",
- " DO cEnvironment.setData(.tab)",
- "",
- " IF ($ISOBJECT(%user.mainEnvironment) && ($DATA(tab(%user.mainEnvironment.code))))",
- " {",
- "\tSET cEnvironment.value = %user.mainEnvironment.code",
- " }",
- " ELSE",
- " {",
- "\tSET cEnvironment.value = defaultEnv",
- " }",
- "",
- " KILL tab",
- "",
- " // Types",
- " SET tab(2) = %pgm.translate(\"Lifts\"),",
- "\t tab(2, \"sortValue\") = 1,",
- "\t tab(1) = %pgm.translate(\"Platforms\"),",
- "\t tab(1, \"sortValue\") = 2",
- "",
- " DO cType.setData(.tab)",
- " SET cType.value = 2",
- "",
- " DO setColumns",
- "",
- " QUIT",
- "",
- "setColumns",
- "",
- " SET sql = \"SELECT code, production.location_sqlDescription(ID, \"_%t_\") AS description FROM production.location\"_",
- "\t\t \" WHERE environment = '\"_cEnvironment.value_\"' AND active = 1 AND component = \"_cType.value_",
- "\t\t \" ORDER BY code ASC\",",
- "\t rs = ##class(%SQL.Statement).%ExecDirect(,sql),",
- "\t i = i",
- "",
- " KILL col",
- "",
- " SET col(i, \"header\") = %pgm.translate(\"Date\"),",
- "\t col(i, \"width\") = 80",
- "",
- " WHILE rs.%Next()",
- " {",
- "\tSET i = $INCREMENT(i)",
- "",
- "\tSET col(i, \"header\") = rs.code,",
- "\t\tcol(i, \"width\") = 80,",
- "\t\tcol(i ,\"align\") = \"'right'\",",
- "\t\tcol(i, \"tooltip\") = rs.description",
- " }",
- "",
- " DO extOverview.setColumns(.col)",
- "",
- " QUIT",
- "",
- "generateDays",
- "",
- " SET year = $SYSTEM.SQL.Functions.YEAR($ZDT($H, 3)),",
- "\t month = $SYSTEM.SQL.Functions.MONTH($ZDT($H, 3))",
- "\t",
- " SET firstDay = year_\"-\"_month_\"-01\",",
- "\t lastDay = $P($ZDT($H, 3), \" \", 1),",
- "\t days = $SYSTEM.SQL.Functions.DATEDIFF(\"dd\", firstDay, lastDay)",
- "",
- " FOR i=1:1:days",
- " {",
- "\t",
- " }",
- "",
- " QUIT",
- ""
- ],
- "enc": false,
- "mtime": -1
- }
- +- RESPONSE - 8:21:36 AM ---------------------------
- 200 OK
- DATE: Tue, 24 Jun 2025 06:21:33 GMT
- SERVER: Apache
- SET-COOKIE: <value>
- CACHE-CONTROL: no-cache
- ETAG: 2025-06-24 08:21:36.306
- EXPIRES: Thu, 29 Oct 1998 17:04:19 GMT
- PRAGMA: no-cache
- CONTENT-LENGTH: 213
- CONNECTION: close
- CONTENT-TYPE: application/json; charset=utf-8
- Body:
- {
- "status": {
- "errors": [],
- "summary": ""
- },
- "console": [],
- "result": {
- "name": "production.statistic.mac",
- "db": "INTRANET",
- "ts": "2025-06-24 08:21:36.306",
- "upd": false,
- "cat": "RTN",
- "status": "",
- "enc": false,
- "flags": 0,
- "content": []
- }
- }
- +- END ----------------------------------------------
- +- REQUEST - 8:21:36 AM ----------------------------
- POST http://10.0.1.103:52773/api/atelier/v5/INTRANET/work
- COOKIE: <value>
- ACCEPT: application/json
- CONTENT-TYPE: application/json
- CACHE-CONTROL: no-cache
- AUTHORIZATION: <value>
- Body:
- {
- "request": "compile",
- "documents": [
- "production.statistic.mac"
- ],
- "source": false,
- "flags": "cukb"
- }
- +- RESPONSE - 8:21:36 AM ---------------------------
- 202 Accepted
- DATE: Tue, 24 Jun 2025 06:21:36 GMT
- SERVER: Apache
- SET-COOKIE: <value>
- CACHE-CONTROL: no-cache
- EXPIRES: Thu, 29 Oct 1998 17:04:19 GMT
- LOCATION: 30844
- PRAGMA: no-cache
- CONTENT-LENGTH: 74
- CONNECTION: close
- CONTENT-TYPE: application/json; charset=utf-8
- Body:
- {
- "status": {
- "errors": [],
- "summary": ""
- },
- "console": [],
- "result": {
- "content": {}
- }
- }
- +- END ----------------------------------------------
- +- REQUEST - 8:21:36 AM ----------------------------
- GET http://10.0.1.103:52773/api/atelier/v5/INTRANET/doc/production.statistic.mac
- COOKIE: <value>
- IF-NONE-MATCH: 2025-06-24 08:18:17.664
- ACCEPT: application/json
- CACHE-CONTROL: no-cache
- AUTHORIZATION: <value>
- +- RESPONSE - 8:21:36 AM ---------------------------
- 200 OK
- DATE: Tue, 24 Jun 2025 06:21:36 GMT
- SERVER: Apache
- SET-COOKIE: <value>
- CACHE-CONTROL: no-cache
- ETAG: 2025-06-24 08:21:36.306
- EXPIRES: Thu, 29 Oct 1998 17:04:19 GMT
- PRAGMA: no-cache
- CONTENT-LENGTH: 1633
- CONNECTION: close
- CONTENT-TYPE: application/json; charset=utf-8
- Body:
- {
- "status": {
- "errors": [],
- "summary": ""
- },
- "console": [],
- "result": {
- "name": "production.statistic.mac",
- "db": "INTRANET",
- "ts": "2025-06-24 08:21:36.306",
- "upd": true,
- "cat": "RTN",
- "status": "",
- "enc": false,
- "flags": 0,
- "content": [
- "ROUTINE production.statistic",
- " /// Program : production.statistic",
- " /// Last compiled : 2025-06-24 08:17:26.4613653",
- " #dim %sys as wcs.system",
- " #dim %ses as wcs.session",
- " #dim %env as dho.environment",
- " #dim %user as wcs.user",
- " #dim %util as wcs.util",
- " #dim %tabs as wcs.tabs",
- " #dim %tab as wcs.tab.tab",
- " #dim %pgm as wcs.program",
- " #dim %print as wcs.pdf",
- " #dim %printjob as wcs.printjob",
- " #dim bg0 as wcs.component.buttongroup",
- " #dim cEnvironment as wcs.component.combo",
- " #dim cType as wcs.component.combo",
- " #dim chart as wcs.component.chartjs",
- " #dim extOverview as wcs.component.extgrid",
- " #dim extOverviewEditGroup as wcs.component.buttongroup",
- " #dim extOverviewrefreshBtn as wcs.component.button",
- " #dim lblCompany as wcs.component.label",
- " #dim lblType as wcs.component.label",
- " #dim pCenter as wcs.component.panel",
- " #dim pEast as wcs.component.panel",
- " /// DONE",
- "layout(x)",
- " SET l = $lb(\"layout='border'\", \"border=false\"),",
- "\t l(1) = $lb(\"xtype='panel'\", \"id='pCenter'\", \"region='center'\", \"layout='border'\", \"border=false\"),",
- "\t l(1, 1) = $lb(\"xtype='extgrid'\", \"id='extOverview'\", \"region='center'\", \"add=false\", \"edit=false\", \"select=false\", \"delete=false\", \"refresh=true\", \"search=false\", \"ribbon=true\", \"border=false\", \"cls='borderr'\"),",
- "\t l(1, 1, \"columns\", 1) = $lb(\"header='Date'\", \"width=80\")",
- "",
- " SET l(1, 1, \"tbar\", 1) = $lb(\"xtype='buttongroup'\", \"id='bg0'\", \"title='Selection'\", \"columns=2\"),",
- "\t l(1, 1, \"tbar\", 1, 1) = $lb(\"xtype='label'\", \"id='lblCompany'\", \"text='Company:'\", \"style='padding-right:5px;'\"),",
- "\t l(1, 1, \"tbar\", 1, 2) = $lb(\"xtype='combo'\", \"id='cEnvironment'\"),",
- "\t l(1, 1, \"tbar\", 1, 2, \"on\", \"select\") = \"environmentChage\",",
- "\t l(1, 1, \"tbar\", 1, 2, \"width\") = \"250\",",
- "\t l(1, 1, \"tbar\", 1, 3) = $lb(\"xtype='label'\", \"id='lblType'\", \"text='Type:'\", \"style='padding-right:5px;'\"),",
- "\t l(1, 1, \"tbar\", 1, 4) = $lb(\"xtype='combo'\", \"id='cType'\", \"width=250\")",
- "",
- " SET l(2) = $lb(\"xtype='panel'\", \"id='pEast'\", \"region='east'\", \"layout='border'\", \"border=false\", \"collapsible=true\", \"width=500\", \"title='Charts'\", \"split=true\"),",
- "\t l(2, 1) = $lb(\"xtype='chartjs'\", \"id='chart'\", \"region='center'\")",
- "\t ",
- " DO %tab.setLayout(.l)",
- "",
- " QUIT",
- "",
- "start(x)",
- " ",
- " // COMPANY OPTIONS",
- " //",
- " SET environment = %user.getEnvironmentList(),",
- "\t defaultEnv = \"\"",
- " ",
- " SET sql = \"SELECT code, name FROM dho.environment WHERE isProduction = 1 ORDER BY name\",",
- "\t rs = ##class(%SQL.Statement).%ExecDirect(,sql)",
- " ",
- " WHILE rs.%Next()",
- " {",
- "\tIF (\",\"_environment_\",\") '[ (\",\"_rs.code_\",\")",
- "\t{",
- "\t\tCONTINUE",
- "\t}",
- "",
- "\tSET:defaultEnv=\"\" defaultEnv = rs.code ",
- "",
- "\tSET tab(rs.code) = $SELECT(rs.name = \"\" :rs.code, 1: rs.name_\" (\"_rs.code_\")\"),",
- "\t\ttab(rs.code, \"sortValue\") = rs.name",
- " }",
- "",
- " DO cEnvironment.setData(.tab)",
- "",
- " IF ($ISOBJECT(%user.mainEnvironment) && ($DATA(tab(%user.mainEnvironment.code))))",
- " {",
- "\tSET cEnvironment.value = %user.mainEnvironment.code",
- " }",
- " ELSE",
- " {",
- "\tSET cEnvironment.value = defaultEnv",
- " }",
- "",
- " KILL tab",
- "",
- " // Types",
- " SET tab(2) = %pgm.translate(\"Lifts\"),",
- "\t tab(2, \"sortValue\") = 1,",
- "\t tab(1) = %pgm.translate(\"Platforms\"),",
- "\t tab(1, \"sortValue\") = 2",
- "",
- " DO cType.setData(.tab)",
- " SET cType.value = 2",
- "",
- " DO setColumns",
- "",
- " QUIT",
- "",
- "setColumns",
- "",
- " SET sql = \"SELECT code, production.location_sqlDescription(ID, \"_%t_\") AS description FROM production.location\"_",
- "\t\t \" WHERE environment = '\"_cEnvironment.value_\"' AND active = 1 AND component = \"_cType.value_",
- "\t\t \" ORDER BY code ASC\",",
- "\t rs = ##class(%SQL.Statement).%ExecDirect(,sql),",
- "\t i = i",
- "",
- " KILL col",
- "",
- " SET col(i, \"header\") = %pgm.translate(\"Date\"),",
- "\t col(i, \"width\") = 80",
- "",
- " WHILE rs.%Next()",
- " {",
- "\tSET i = $INCREMENT(i)",
- "",
- "\tSET col(i, \"header\") = rs.code,",
- "\t\tcol(i, \"width\") = 80,",
- "\t\tcol(i ,\"align\") = \"'right'\",",
- "\t\tcol(i, \"tooltip\") = rs.description",
- " }",
- "",
- " DO extOverview.setColumns(.col)",
- "",
- " QUIT",
- "",
- "generateDays",
- "",
- " SET year = $SYSTEM.SQL.Functions.YEAR($ZDT($H, 3)),",
- "\t month = $SYSTEM.SQL.Functions.MONTH($ZDT($H, 3))",
- "\t",
- " SET firstDay = year_\"-\"_month_\"-01\",",
- "\t lastDay = $P($ZDT($H, 3), \" \", 1),",
- "\t days = $SYSTEM.SQL.Functions.DATEDIFF(\"dd\", firstDay, lastDay)",
- "",
- " FOR i=1:1:days",
- " {",
- "\t",
- " }",
- "",
- " QUIT",
- ""
- ]
- }
- }
- +- END ----------------------------------------------
- +- REQUEST - 8:21:36 AM ----------------------------
- GET http://10.0.1.103:52773/api/atelier/v5/INTRANET/work/30844
- COOKIE: <value>
- NOOUTPUT: false
- ACCEPT: application/json
- CACHE-CONTROL: no-cache
- AUTHORIZATION: <value>
- +- RESPONSE - 8:21:36 AM ---------------------------
- 200 OK
- DATE: Tue, 24 Jun 2025 06:21:36 GMT
- SERVER: Apache
- SET-COOKIE: <value>
- CACHE-CONTROL: no-cache
- EXPIRES: Thu, 29 Oct 1998 17:04:19 GMT
- PRAGMA: no-cache
- CONTENT-LENGTH: 238
- CONNECTION: close
- CONTENT-TYPE: application/json; charset=utf-8
- Body:
- {
- "status": {
- "errors": [],
- "summary": ""
- },
- "console": [
- "",
- "Compilation started on 06/24/2025 08:21:36 with qualifiers 'cukb'",
- "Compiling routine : production.statistic.mac",
- "Compilation finished successfully in 0.003s."
- ],
- "result": {
- "content": []
- }
- }
- +- END ----------------------------------------------
- Compilation started on 06/24/2025 08:21:36 with qualifiers 'cukb'
- Compiling routine : production.statistic.mac
- Compilation finished successfully in 0.003s.
- +- REQUEST - 8:21:36 AM ----------------------------
- GET http://10.0.1.103:52773/api/atelier/v5/INTRANET/doc/production.statistic.mac
- COOKIE: <value>
- IF-NONE-MATCH: 2025-06-24 08:21:36.306
- ACCEPT: application/json
- CACHE-CONTROL: no-cache
- AUTHORIZATION: <value>
- +- RESPONSE - 8:21:36 AM ---------------------------
- 304 Not Modified
- DATE: Tue, 24 Jun 2025 06:21:36 GMT
- SERVER: Apache
- SET-COOKIE: <value>
- CACHE-CONTROL: no-cache
- ETAG: 2025-06-24 08:21:36.306
- EXPIRES: Thu, 29 Oct 1998 17:04:19 GMT
- PRAGMA: no-cache
- CONNECTION: close
- +- END ----------------------------------------------
- +- REQUEST - 8:21:36 AM ----------------------------
- POST http://10.0.1.103:52773/api/atelier/v5/INTRANET/action/index
- COOKIE: <value>
- ACCEPT: application/json
- CONTENT-TYPE: application/json
- CACHE-CONTROL: no-cache
- AUTHORIZATION: <value>
- Body:
- [
- "p",
- "r",
- "o",
- "d",
- "u",
- "c",
- "t",
- "i",
- "n",
- ".",
- "s",
- "a",
- "m"
- ]
- +- RESPONSE - 8:21:36 AM ---------------------------
- 200 OK
- DATE: Tue, 24 Jun 2025 06:21:36 GMT
- SERVER: Apache
- SET-COOKIE: <value>
- CACHE-CONTROL: no-cache
- EXPIRES: Thu, 29 Oct 1998 17:04:19 GMT
- PRAGMA: no-cache
- CONTENT-LENGTH: 242
- CONNECTION: close
- CONTENT-TYPE: application/json; charset=utf-8
- Body:
- {
- "status": {
- "errors": [],
- "summary": ""
- },
- "console": [],
- "result": {
- "content": [
- {
- "name": ".",
- "db": "",
- "ts": "",
- "cat": "",
- "gen": false,
- "others": [],
- "status": "ERROR #16006: Document '.' name is invalid",
- "content": {}
- },
- {
- "name": "a",
- "db": "",
- "ts": "",
- "cat": "",
- "gen": false,
- "others": [],
- "status": "ERROR #16006: Document 'a' name is invalid",
- "content": {}
- },
- {
- "name": "c",
- "db": "",
- "ts": "",
- "cat": "",
- "gen": false,
- "others": [],
- "status": "ERROR #16006: Document 'c' name is invalid",
- "content": {}
- },
- {
- "name": "d",
- "db": "",
- "ts": "",
- "cat": "",
- "gen": false,
- "others": [],
- "status": "ERROR #16006: Document 'd' name is invalid",
- "content": {}
- },
- {
- "name": "i",
- "db": "",
- "ts": "",
- "cat": "",
- "gen": false,
- "others": [],
- "status": "ERROR #16006: Document 'i' name is invalid",
- "content": {}
- },
- {
- "name": "m",
- "db": "",
- "ts": "",
- "cat": "",
- "gen": false,
- "others": [],
- "status": "ERROR #16006: Document 'm' name is invalid",
- "content": {}
- },
- {
- "name": "n",
- "db": "",
- "ts": "",
- "cat": "",
- "gen": false,
- "others": [],
- "status": "ERROR #16006: Document 'n' name is invalid",
- "content": {}
- },
- {
- "name": "o",
- "db": "",
- "ts": "",
- "cat": "",
- "gen": false,
- "others": [],
- "status": "ERROR #16006: Document 'o' name is invalid",
- "content": {}
- },
- {
- "name": "p",
- "db": "",
- "ts": "",
- "cat": "",
- "gen": false,
- "others": [],
- "status": "ERROR #16006: Document 'p' name is invalid",
- "content": {}
- },
- {
- "name": "r",
- "db": "",
- "ts": "",
- "cat": "",
- "gen": false,
- "others": [],
- "status": "ERROR #16006: Document 'r' name is invalid",
- "content": {}
- },
- {
- "name": "s",
- "db": "",
- "ts": "",
- "cat": "",
- "gen": false,
- "others": [],
- "status": "ERROR #16006: Document 's' name is invalid",
- "content": {}
- },
- {
- "name": "t",
- "db": "",
- "ts": "",
- "cat": "",
- "gen": false,
- "others": [],
- "status": "ERROR #16006: Document 't' name is invalid",
- "content": {}
- },
- {
- "name": "u",
- "db": "",
- "ts": "",
- "cat": "",
- "gen": false,
- "others": [],
- "status": "ERROR #16006: Document 'u' name is invalid",
- "content": {}
- }
- ]
- }
- }
- +- END ----------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement