Advertisement
Guest User

Logs

a guest
Jun 24th, 2025
10
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 27.48 KB | None | 0 0
  1. +- REQUEST - 8:20:33 AM ----------------------------
  2. POST http://10.0.1.103:52773/api/atelier/v5/INTRANET/action/query
  3. COOKIE: <value>
  4. ACCEPT: application/json
  5. CONTENT-TYPE: application/json
  6. CACHE-CONTROL: no-cache
  7. AUTHORIZATION: <value>
  8. Body:
  9. {
  10. "parameters": [
  11. "*.cspall",
  12. "1",
  13. "1",
  14. "0",
  15. "1",
  16. "0",
  17. "0",
  18. "",
  19. "0",
  20. "1"
  21. ],
  22. "query": "SELECT Name, Type FROM %Library.RoutineMgr_StudioOpenDialog(?,?,?,?,?,?,?,?,?,?)"
  23. }
  24. +- ERROR --------------------------------------------
  25. {
  26. "message": "Request failed with status code 504",
  27. "name": "AxiosError",
  28. "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)",
  29. "config": {
  30. "transitional": {
  31. "silentJSONParsing": true,
  32. "forcedJSONParsing": true,
  33. "clarifyTimeoutError": false
  34. },
  35. "adapter": [
  36. "xhr",
  37. "http",
  38. "fetch"
  39. ],
  40. "transformRequest": [
  41. null
  42. ],
  43. "transformResponse": [
  44. null
  45. ],
  46. "timeout": 0,
  47. "xsrfCookieName": "XSRF-TOKEN",
  48. "xsrfHeaderName": "X-XSRF-TOKEN",
  49. "maxContentLength": -1,
  50. "maxBodyLength": -1,
  51. "env": {},
  52. "headers": {
  53. "Accept": "application/json",
  54. "Content-Type": "application/json",
  55. "Cache-Control": "no-cache",
  56. "Authorization": "Basic cGFzcDo5MDA4MDI4MDE4SHM=",
  57. "Cookie": "CSPSESSIONID-SP-52773-UP-api-atelier-=002000000000Kqj7mD0BjAT0isf4R3_zKjX33SWSeNkEpEDkcS; path=/api/atelier/; sameSite=strict;, CSPWSERVERID=C22YOcC7; path=/; httpOnly;",
  58. "User-Agent": "axios/1.8.4",
  59. "Content-Length": "153",
  60. "Accept-Encoding": "gzip, compress, deflate, br"
  61. },
  62. "method": "post",
  63. "url": "http://10.0.1.103:52773/api/atelier/v5/INTRANET/action/query",
  64. "data": "{\"parameters\":[\"*.cspall\",\"1\",\"1\",\"0\",\"1\",\"0\",\"0\",\"\",\"0\",\"1\"],\"query\":\"SELECT Name, Type FROM %Library.RoutineMgr_StudioOpenDialog(?,?,?,?,?,?,?,?,?,?)\"}",
  65. "withCredentials": true,
  66. "httpsAgent": {
  67. "_events": {},
  68. "_eventsCount": 2,
  69. "defaultPort": 443,
  70. "protocol": "https:",
  71. "options": {
  72. "rejectUnauthorized": false,
  73. "noDelay": true,
  74. "path": null
  75. },
  76. "requests": {},
  77. "sockets": {},
  78. "freeSockets": {},
  79. "keepAliveMsecs": 1000,
  80. "keepAlive": false,
  81. "maxSockets": null,
  82. "maxFreeSockets": 256,
  83. "scheduling": "lifo",
  84. "maxTotalSockets": null,
  85. "totalSocketCount": 0,
  86. "maxCachedSessions": 100,
  87. "_sessionCache": {
  88. "map": {},
  89. "list": []
  90. }
  91. },
  92. "allowAbsoluteUrls": true
  93. },
  94. "code": "ERR_BAD_RESPONSE",
  95. "status": 504
  96. }
  97. +- END ----------------------------------------------
  98. +- REQUEST - 8:21:06 AM ----------------------------
  99. GET http://10.0.1.103:52773/api/atelier/v5/INTRANET/doc/production.statistic.mac
  100. COOKIE: <value>
  101. IF-NONE-MATCH: 2025-06-24 08:18:17.664
  102. ACCEPT: application/json
  103. CACHE-CONTROL: no-cache
  104. AUTHORIZATION: <value>
  105. +- RESPONSE - 8:21:33 AM ---------------------------
  106. 304 Not Modified
  107. DATE: Tue, 24 Jun 2025 06:21:06 GMT
  108. SERVER: Apache
  109. SET-COOKIE: <value>
  110. CACHE-CONTROL: no-cache
  111. ETAG: 2025-06-24 08:18:17.664
  112. EXPIRES: Thu, 29 Oct 1998 17:04:19 GMT
  113. PRAGMA: no-cache
  114. CONNECTION: close
  115. +- END ----------------------------------------------
  116. +- REQUEST - 8:21:33 AM ----------------------------
  117. GET http://10.0.1.103:52773/api/atelier/v5/INTRANET/doc/production.statistic.mac
  118. COOKIE: <value>
  119. IF-NONE-MATCH: 2025-06-24 08:18:17.664
  120. ACCEPT: application/json
  121. CACHE-CONTROL: no-cache
  122. AUTHORIZATION: <value>
  123. +- RESPONSE - 8:21:33 AM ---------------------------
  124. 304 Not Modified
  125. DATE: Tue, 24 Jun 2025 06:21:33 GMT
  126. SERVER: Apache
  127. SET-COOKIE: <value>
  128. CACHE-CONTROL: no-cache
  129. ETAG: 2025-06-24 08:18:17.664
  130. EXPIRES: Thu, 29 Oct 1998 17:04:19 GMT
  131. PRAGMA: no-cache
  132. CONNECTION: close
  133. +- END ----------------------------------------------
  134. +- REQUEST - 8:20:35 AM ----------------------------
  135. POST http://10.0.1.103:52773/api/atelier/v5/INTRANET/action/query
  136. COOKIE: <value>
  137. ACCEPT: application/json
  138. CONTENT-TYPE: application/json
  139. CACHE-CONTROL: no-cache
  140. AUTHORIZATION: <value>
  141. Body:
  142. {
  143. "parameters": [
  144. "*.cspall",
  145. "1",
  146. "1",
  147. "0",
  148. "1",
  149. "0",
  150. "0",
  151. "",
  152. "0",
  153. "1"
  154. ],
  155. "query": "SELECT Name, Type FROM %Library.RoutineMgr_StudioOpenDialog(?,?,?,?,?,?,?,?,?,?)"
  156. }
  157. +- ERROR --------------------------------------------
  158. {
  159. "message": "Request failed with status code 504",
  160. "name": "AxiosError",
  161. "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)",
  162. "config": {
  163. "transitional": {
  164. "silentJSONParsing": true,
  165. "forcedJSONParsing": true,
  166. "clarifyTimeoutError": false
  167. },
  168. "adapter": [
  169. "xhr",
  170. "http",
  171. "fetch"
  172. ],
  173. "transformRequest": [
  174. null
  175. ],
  176. "transformResponse": [
  177. null
  178. ],
  179. "timeout": 0,
  180. "xsrfCookieName": "XSRF-TOKEN",
  181. "xsrfHeaderName": "X-XSRF-TOKEN",
  182. "maxContentLength": -1,
  183. "maxBodyLength": -1,
  184. "env": {},
  185. "headers": {
  186. "Accept": "application/json",
  187. "Content-Type": "application/json",
  188. "Cache-Control": "no-cache",
  189. "Authorization": "Basic cGFzcDo5MDA4MDI4MDE4SHM=",
  190. "Cookie": "CSPSESSIONID-SP-52773-UP-api-atelier-=002000000000Kqj7mD0BjAT0isf4R3_zKjX33SWSeNkEpEDkcS; path=/api/atelier/; sameSite=strict;, CSPWSERVERID=C22YOcC7; path=/; httpOnly;",
  191. "User-Agent": "axios/1.8.4",
  192. "Content-Length": "153",
  193. "Accept-Encoding": "gzip, compress, deflate, br"
  194. },
  195. "method": "post",
  196. "url": "http://10.0.1.103:52773/api/atelier/v5/INTRANET/action/query",
  197. "data": "{\"parameters\":[\"*.cspall\",\"1\",\"1\",\"0\",\"1\",\"0\",\"0\",\"\",\"0\",\"1\"],\"query\":\"SELECT Name, Type FROM %Library.RoutineMgr_StudioOpenDialog(?,?,?,?,?,?,?,?,?,?)\"}",
  198. "withCredentials": true,
  199. "httpsAgent": {
  200. "_events": {},
  201. "_eventsCount": 2,
  202. "defaultPort": 443,
  203. "protocol": "https:",
  204. "options": {
  205. "rejectUnauthorized": false,
  206. "noDelay": true,
  207. "path": null
  208. },
  209. "requests": {},
  210. "sockets": {},
  211. "freeSockets": {},
  212. "keepAliveMsecs": 1000,
  213. "keepAlive": false,
  214. "maxSockets": null,
  215. "maxFreeSockets": 256,
  216. "scheduling": "lifo",
  217. "maxTotalSockets": null,
  218. "totalSocketCount": 0,
  219. "maxCachedSessions": 100,
  220. "_sessionCache": {
  221. "map": {},
  222. "list": []
  223. }
  224. },
  225. "allowAbsoluteUrls": true
  226. },
  227. "code": "ERR_BAD_RESPONSE",
  228. "status": 504
  229. }
  230. +- END ----------------------------------------------
  231. +- REQUEST - 8:21:33 AM ----------------------------
  232. PUT http://10.0.1.103:52773/api/atelier/v5/INTRANET/doc/production.statistic.mac?ignoreConflict=1
  233. COOKIE: <value>
  234. ACCEPT: application/json
  235. CONTENT-TYPE: application/json
  236. CACHE-CONTROL: no-cache
  237. AUTHORIZATION: <value>
  238. Body:
  239. {
  240. "content": [
  241. "ROUTINE production.statistic",
  242. " /// Program : production.statistic",
  243. " /// Last compiled : 2025-06-24 08:17:26.4613653",
  244. " #dim %sys as wcs.system",
  245. " #dim %ses as wcs.session",
  246. " #dim %env as dho.environment",
  247. " #dim %user as wcs.user",
  248. " #dim %util as wcs.util",
  249. " #dim %tabs as wcs.tabs",
  250. " #dim %tab as wcs.tab.tab",
  251. " #dim %pgm as wcs.program",
  252. " #dim %print as wcs.pdf",
  253. " #dim %printjob as wcs.printjob",
  254. " #dim bg0 as wcs.component.buttongroup",
  255. " #dim cEnvironment as wcs.component.combo",
  256. " #dim cType as wcs.component.combo",
  257. " #dim chart as wcs.component.chartjs",
  258. " #dim extOverview as wcs.component.extgrid",
  259. " #dim extOverviewEditGroup as wcs.component.buttongroup",
  260. " #dim extOverviewrefreshBtn as wcs.component.button",
  261. " #dim lblCompany as wcs.component.label",
  262. " #dim lblType as wcs.component.label",
  263. " #dim pCenter as wcs.component.panel",
  264. " #dim pEast as wcs.component.panel",
  265. " /// DONE",
  266. "layout(x)",
  267. " SET l = $lb(\"layout='border'\", \"border=false\"),",
  268. "\t l(1) = $lb(\"xtype='panel'\", \"id='pCenter'\", \"region='center'\", \"layout='border'\", \"border=false\"),",
  269. "\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'\"),",
  270. "\t l(1, 1, \"columns\", 1) = $lb(\"header='Date'\", \"width=80\")",
  271. "",
  272. " SET l(1, 1, \"tbar\", 1) = $lb(\"xtype='buttongroup'\", \"id='bg0'\", \"title='Selection'\", \"columns=2\"),",
  273. "\t l(1, 1, \"tbar\", 1, 1) = $lb(\"xtype='label'\", \"id='lblCompany'\", \"text='Company:'\", \"style='padding-right:5px;'\"),",
  274. "\t l(1, 1, \"tbar\", 1, 2) = $lb(\"xtype='combo'\", \"id='cEnvironment'\"),",
  275. "\t l(1, 1, \"tbar\", 1, 2, \"on\", \"select\") = \"environmentChage\",",
  276. "\t l(1, 1, \"tbar\", 1, 2, \"width\") = \"250\",",
  277. "\t l(1, 1, \"tbar\", 1, 3) = $lb(\"xtype='label'\", \"id='lblType'\", \"text='Type:'\", \"style='padding-right:5px;'\"),",
  278. "\t l(1, 1, \"tbar\", 1, 4) = $lb(\"xtype='combo'\", \"id='cType'\", \"width=250\")",
  279. "",
  280. " SET l(2) = $lb(\"xtype='panel'\", \"id='pEast'\", \"region='east'\", \"layout='border'\", \"border=false\", \"collapsible=true\", \"width=500\", \"title='Charts'\", \"split=true\"),",
  281. "\t l(2, 1) = $lb(\"xtype='chartjs'\", \"id='chart'\", \"region='center'\")",
  282. "\t ",
  283. " DO %tab.setLayout(.l)",
  284. "",
  285. " QUIT",
  286. "",
  287. "start(x)",
  288. " ",
  289. " // COMPANY OPTIONS",
  290. " //",
  291. " SET environment = %user.getEnvironmentList(),",
  292. "\t defaultEnv = \"\"",
  293. " ",
  294. " SET sql = \"SELECT code, name FROM dho.environment WHERE isProduction = 1 ORDER BY name\",",
  295. "\t rs = ##class(%SQL.Statement).%ExecDirect(,sql)",
  296. " ",
  297. " WHILE rs.%Next()",
  298. " {",
  299. "\tIF (\",\"_environment_\",\") '[ (\",\"_rs.code_\",\")",
  300. "\t{",
  301. "\t\tCONTINUE",
  302. "\t}",
  303. "",
  304. "\tSET:defaultEnv=\"\" defaultEnv = rs.code ",
  305. "",
  306. "\tSET tab(rs.code) = $SELECT(rs.name = \"\" :rs.code, 1: rs.name_\" (\"_rs.code_\")\"),",
  307. "\t\ttab(rs.code, \"sortValue\") = rs.name",
  308. " }",
  309. "",
  310. " DO cEnvironment.setData(.tab)",
  311. "",
  312. " IF ($ISOBJECT(%user.mainEnvironment) && ($DATA(tab(%user.mainEnvironment.code))))",
  313. " {",
  314. "\tSET cEnvironment.value = %user.mainEnvironment.code",
  315. " }",
  316. " ELSE",
  317. " {",
  318. "\tSET cEnvironment.value = defaultEnv",
  319. " }",
  320. "",
  321. " KILL tab",
  322. "",
  323. " // Types",
  324. " SET tab(2) = %pgm.translate(\"Lifts\"),",
  325. "\t tab(2, \"sortValue\") = 1,",
  326. "\t tab(1) = %pgm.translate(\"Platforms\"),",
  327. "\t tab(1, \"sortValue\") = 2",
  328. "",
  329. " DO cType.setData(.tab)",
  330. " SET cType.value = 2",
  331. "",
  332. " DO setColumns",
  333. "",
  334. " QUIT",
  335. "",
  336. "setColumns",
  337. "",
  338. " SET sql = \"SELECT code, production.location_sqlDescription(ID, \"_%t_\") AS description FROM production.location\"_",
  339. "\t\t \" WHERE environment = '\"_cEnvironment.value_\"' AND active = 1 AND component = \"_cType.value_",
  340. "\t\t \" ORDER BY code ASC\",",
  341. "\t rs = ##class(%SQL.Statement).%ExecDirect(,sql),",
  342. "\t i = i",
  343. "",
  344. " KILL col",
  345. "",
  346. " SET col(i, \"header\") = %pgm.translate(\"Date\"),",
  347. "\t col(i, \"width\") = 80",
  348. "",
  349. " WHILE rs.%Next()",
  350. " {",
  351. "\tSET i = $INCREMENT(i)",
  352. "",
  353. "\tSET col(i, \"header\") = rs.code,",
  354. "\t\tcol(i, \"width\") = 80,",
  355. "\t\tcol(i ,\"align\") = \"'right'\",",
  356. "\t\tcol(i, \"tooltip\") = rs.description",
  357. " }",
  358. "",
  359. " DO extOverview.setColumns(.col)",
  360. "",
  361. " QUIT",
  362. "",
  363. "generateDays",
  364. "",
  365. " SET year = $SYSTEM.SQL.Functions.YEAR($ZDT($H, 3)),",
  366. "\t month = $SYSTEM.SQL.Functions.MONTH($ZDT($H, 3))",
  367. "\t",
  368. " SET firstDay = year_\"-\"_month_\"-01\",",
  369. "\t lastDay = $P($ZDT($H, 3), \" \", 1),",
  370. "\t days = $SYSTEM.SQL.Functions.DATEDIFF(\"dd\", firstDay, lastDay)",
  371. "",
  372. " FOR i=1:1:days",
  373. " {",
  374. "\t",
  375. " }",
  376. "",
  377. " QUIT",
  378. ""
  379. ],
  380. "enc": false,
  381. "mtime": -1
  382. }
  383. +- RESPONSE - 8:21:36 AM ---------------------------
  384. 200 OK
  385. DATE: Tue, 24 Jun 2025 06:21:33 GMT
  386. SERVER: Apache
  387. SET-COOKIE: <value>
  388. CACHE-CONTROL: no-cache
  389. ETAG: 2025-06-24 08:21:36.306
  390. EXPIRES: Thu, 29 Oct 1998 17:04:19 GMT
  391. PRAGMA: no-cache
  392. CONTENT-LENGTH: 213
  393. CONNECTION: close
  394. CONTENT-TYPE: application/json; charset=utf-8
  395. Body:
  396. {
  397. "status": {
  398. "errors": [],
  399. "summary": ""
  400. },
  401. "console": [],
  402. "result": {
  403. "name": "production.statistic.mac",
  404. "db": "INTRANET",
  405. "ts": "2025-06-24 08:21:36.306",
  406. "upd": false,
  407. "cat": "RTN",
  408. "status": "",
  409. "enc": false,
  410. "flags": 0,
  411. "content": []
  412. }
  413. }
  414. +- END ----------------------------------------------
  415. +- REQUEST - 8:21:36 AM ----------------------------
  416. POST http://10.0.1.103:52773/api/atelier/v5/INTRANET/work
  417. COOKIE: <value>
  418. ACCEPT: application/json
  419. CONTENT-TYPE: application/json
  420. CACHE-CONTROL: no-cache
  421. AUTHORIZATION: <value>
  422. Body:
  423. {
  424. "request": "compile",
  425. "documents": [
  426. "production.statistic.mac"
  427. ],
  428. "source": false,
  429. "flags": "cukb"
  430. }
  431. +- RESPONSE - 8:21:36 AM ---------------------------
  432. 202 Accepted
  433. DATE: Tue, 24 Jun 2025 06:21:36 GMT
  434. SERVER: Apache
  435. SET-COOKIE: <value>
  436. CACHE-CONTROL: no-cache
  437. EXPIRES: Thu, 29 Oct 1998 17:04:19 GMT
  438. LOCATION: 30844
  439. PRAGMA: no-cache
  440. CONTENT-LENGTH: 74
  441. CONNECTION: close
  442. CONTENT-TYPE: application/json; charset=utf-8
  443. Body:
  444. {
  445. "status": {
  446. "errors": [],
  447. "summary": ""
  448. },
  449. "console": [],
  450. "result": {
  451. "content": {}
  452. }
  453. }
  454. +- END ----------------------------------------------
  455. +- REQUEST - 8:21:36 AM ----------------------------
  456. GET http://10.0.1.103:52773/api/atelier/v5/INTRANET/doc/production.statistic.mac
  457. COOKIE: <value>
  458. IF-NONE-MATCH: 2025-06-24 08:18:17.664
  459. ACCEPT: application/json
  460. CACHE-CONTROL: no-cache
  461. AUTHORIZATION: <value>
  462. +- RESPONSE - 8:21:36 AM ---------------------------
  463. 200 OK
  464. DATE: Tue, 24 Jun 2025 06:21:36 GMT
  465. SERVER: Apache
  466. SET-COOKIE: <value>
  467. CACHE-CONTROL: no-cache
  468. ETAG: 2025-06-24 08:21:36.306
  469. EXPIRES: Thu, 29 Oct 1998 17:04:19 GMT
  470. PRAGMA: no-cache
  471. CONTENT-LENGTH: 1633
  472. CONNECTION: close
  473. CONTENT-TYPE: application/json; charset=utf-8
  474. Body:
  475. {
  476. "status": {
  477. "errors": [],
  478. "summary": ""
  479. },
  480. "console": [],
  481. "result": {
  482. "name": "production.statistic.mac",
  483. "db": "INTRANET",
  484. "ts": "2025-06-24 08:21:36.306",
  485. "upd": true,
  486. "cat": "RTN",
  487. "status": "",
  488. "enc": false,
  489. "flags": 0,
  490. "content": [
  491. "ROUTINE production.statistic",
  492. " /// Program : production.statistic",
  493. " /// Last compiled : 2025-06-24 08:17:26.4613653",
  494. " #dim %sys as wcs.system",
  495. " #dim %ses as wcs.session",
  496. " #dim %env as dho.environment",
  497. " #dim %user as wcs.user",
  498. " #dim %util as wcs.util",
  499. " #dim %tabs as wcs.tabs",
  500. " #dim %tab as wcs.tab.tab",
  501. " #dim %pgm as wcs.program",
  502. " #dim %print as wcs.pdf",
  503. " #dim %printjob as wcs.printjob",
  504. " #dim bg0 as wcs.component.buttongroup",
  505. " #dim cEnvironment as wcs.component.combo",
  506. " #dim cType as wcs.component.combo",
  507. " #dim chart as wcs.component.chartjs",
  508. " #dim extOverview as wcs.component.extgrid",
  509. " #dim extOverviewEditGroup as wcs.component.buttongroup",
  510. " #dim extOverviewrefreshBtn as wcs.component.button",
  511. " #dim lblCompany as wcs.component.label",
  512. " #dim lblType as wcs.component.label",
  513. " #dim pCenter as wcs.component.panel",
  514. " #dim pEast as wcs.component.panel",
  515. " /// DONE",
  516. "layout(x)",
  517. " SET l = $lb(\"layout='border'\", \"border=false\"),",
  518. "\t l(1) = $lb(\"xtype='panel'\", \"id='pCenter'\", \"region='center'\", \"layout='border'\", \"border=false\"),",
  519. "\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'\"),",
  520. "\t l(1, 1, \"columns\", 1) = $lb(\"header='Date'\", \"width=80\")",
  521. "",
  522. " SET l(1, 1, \"tbar\", 1) = $lb(\"xtype='buttongroup'\", \"id='bg0'\", \"title='Selection'\", \"columns=2\"),",
  523. "\t l(1, 1, \"tbar\", 1, 1) = $lb(\"xtype='label'\", \"id='lblCompany'\", \"text='Company:'\", \"style='padding-right:5px;'\"),",
  524. "\t l(1, 1, \"tbar\", 1, 2) = $lb(\"xtype='combo'\", \"id='cEnvironment'\"),",
  525. "\t l(1, 1, \"tbar\", 1, 2, \"on\", \"select\") = \"environmentChage\",",
  526. "\t l(1, 1, \"tbar\", 1, 2, \"width\") = \"250\",",
  527. "\t l(1, 1, \"tbar\", 1, 3) = $lb(\"xtype='label'\", \"id='lblType'\", \"text='Type:'\", \"style='padding-right:5px;'\"),",
  528. "\t l(1, 1, \"tbar\", 1, 4) = $lb(\"xtype='combo'\", \"id='cType'\", \"width=250\")",
  529. "",
  530. " SET l(2) = $lb(\"xtype='panel'\", \"id='pEast'\", \"region='east'\", \"layout='border'\", \"border=false\", \"collapsible=true\", \"width=500\", \"title='Charts'\", \"split=true\"),",
  531. "\t l(2, 1) = $lb(\"xtype='chartjs'\", \"id='chart'\", \"region='center'\")",
  532. "\t ",
  533. " DO %tab.setLayout(.l)",
  534. "",
  535. " QUIT",
  536. "",
  537. "start(x)",
  538. " ",
  539. " // COMPANY OPTIONS",
  540. " //",
  541. " SET environment = %user.getEnvironmentList(),",
  542. "\t defaultEnv = \"\"",
  543. " ",
  544. " SET sql = \"SELECT code, name FROM dho.environment WHERE isProduction = 1 ORDER BY name\",",
  545. "\t rs = ##class(%SQL.Statement).%ExecDirect(,sql)",
  546. " ",
  547. " WHILE rs.%Next()",
  548. " {",
  549. "\tIF (\",\"_environment_\",\") '[ (\",\"_rs.code_\",\")",
  550. "\t{",
  551. "\t\tCONTINUE",
  552. "\t}",
  553. "",
  554. "\tSET:defaultEnv=\"\" defaultEnv = rs.code ",
  555. "",
  556. "\tSET tab(rs.code) = $SELECT(rs.name = \"\" :rs.code, 1: rs.name_\" (\"_rs.code_\")\"),",
  557. "\t\ttab(rs.code, \"sortValue\") = rs.name",
  558. " }",
  559. "",
  560. " DO cEnvironment.setData(.tab)",
  561. "",
  562. " IF ($ISOBJECT(%user.mainEnvironment) && ($DATA(tab(%user.mainEnvironment.code))))",
  563. " {",
  564. "\tSET cEnvironment.value = %user.mainEnvironment.code",
  565. " }",
  566. " ELSE",
  567. " {",
  568. "\tSET cEnvironment.value = defaultEnv",
  569. " }",
  570. "",
  571. " KILL tab",
  572. "",
  573. " // Types",
  574. " SET tab(2) = %pgm.translate(\"Lifts\"),",
  575. "\t tab(2, \"sortValue\") = 1,",
  576. "\t tab(1) = %pgm.translate(\"Platforms\"),",
  577. "\t tab(1, \"sortValue\") = 2",
  578. "",
  579. " DO cType.setData(.tab)",
  580. " SET cType.value = 2",
  581. "",
  582. " DO setColumns",
  583. "",
  584. " QUIT",
  585. "",
  586. "setColumns",
  587. "",
  588. " SET sql = \"SELECT code, production.location_sqlDescription(ID, \"_%t_\") AS description FROM production.location\"_",
  589. "\t\t \" WHERE environment = '\"_cEnvironment.value_\"' AND active = 1 AND component = \"_cType.value_",
  590. "\t\t \" ORDER BY code ASC\",",
  591. "\t rs = ##class(%SQL.Statement).%ExecDirect(,sql),",
  592. "\t i = i",
  593. "",
  594. " KILL col",
  595. "",
  596. " SET col(i, \"header\") = %pgm.translate(\"Date\"),",
  597. "\t col(i, \"width\") = 80",
  598. "",
  599. " WHILE rs.%Next()",
  600. " {",
  601. "\tSET i = $INCREMENT(i)",
  602. "",
  603. "\tSET col(i, \"header\") = rs.code,",
  604. "\t\tcol(i, \"width\") = 80,",
  605. "\t\tcol(i ,\"align\") = \"'right'\",",
  606. "\t\tcol(i, \"tooltip\") = rs.description",
  607. " }",
  608. "",
  609. " DO extOverview.setColumns(.col)",
  610. "",
  611. " QUIT",
  612. "",
  613. "generateDays",
  614. "",
  615. " SET year = $SYSTEM.SQL.Functions.YEAR($ZDT($H, 3)),",
  616. "\t month = $SYSTEM.SQL.Functions.MONTH($ZDT($H, 3))",
  617. "\t",
  618. " SET firstDay = year_\"-\"_month_\"-01\",",
  619. "\t lastDay = $P($ZDT($H, 3), \" \", 1),",
  620. "\t days = $SYSTEM.SQL.Functions.DATEDIFF(\"dd\", firstDay, lastDay)",
  621. "",
  622. " FOR i=1:1:days",
  623. " {",
  624. "\t",
  625. " }",
  626. "",
  627. " QUIT",
  628. ""
  629. ]
  630. }
  631. }
  632. +- END ----------------------------------------------
  633. +- REQUEST - 8:21:36 AM ----------------------------
  634. GET http://10.0.1.103:52773/api/atelier/v5/INTRANET/work/30844
  635. COOKIE: <value>
  636. NOOUTPUT: false
  637. ACCEPT: application/json
  638. CACHE-CONTROL: no-cache
  639. AUTHORIZATION: <value>
  640. +- RESPONSE - 8:21:36 AM ---------------------------
  641. 200 OK
  642. DATE: Tue, 24 Jun 2025 06:21:36 GMT
  643. SERVER: Apache
  644. SET-COOKIE: <value>
  645. CACHE-CONTROL: no-cache
  646. EXPIRES: Thu, 29 Oct 1998 17:04:19 GMT
  647. PRAGMA: no-cache
  648. CONTENT-LENGTH: 238
  649. CONNECTION: close
  650. CONTENT-TYPE: application/json; charset=utf-8
  651. Body:
  652. {
  653. "status": {
  654. "errors": [],
  655. "summary": ""
  656. },
  657. "console": [
  658. "",
  659. "Compilation started on 06/24/2025 08:21:36 with qualifiers 'cukb'",
  660. "Compiling routine : production.statistic.mac",
  661. "Compilation finished successfully in 0.003s."
  662. ],
  663. "result": {
  664. "content": []
  665. }
  666. }
  667. +- END ----------------------------------------------
  668.  
  669. Compilation started on 06/24/2025 08:21:36 with qualifiers 'cukb'
  670. Compiling routine : production.statistic.mac
  671. Compilation finished successfully in 0.003s.
  672. +- REQUEST - 8:21:36 AM ----------------------------
  673. GET http://10.0.1.103:52773/api/atelier/v5/INTRANET/doc/production.statistic.mac
  674. COOKIE: <value>
  675. IF-NONE-MATCH: 2025-06-24 08:21:36.306
  676. ACCEPT: application/json
  677. CACHE-CONTROL: no-cache
  678. AUTHORIZATION: <value>
  679. +- RESPONSE - 8:21:36 AM ---------------------------
  680. 304 Not Modified
  681. DATE: Tue, 24 Jun 2025 06:21:36 GMT
  682. SERVER: Apache
  683. SET-COOKIE: <value>
  684. CACHE-CONTROL: no-cache
  685. ETAG: 2025-06-24 08:21:36.306
  686. EXPIRES: Thu, 29 Oct 1998 17:04:19 GMT
  687. PRAGMA: no-cache
  688. CONNECTION: close
  689. +- END ----------------------------------------------
  690. +- REQUEST - 8:21:36 AM ----------------------------
  691. POST http://10.0.1.103:52773/api/atelier/v5/INTRANET/action/index
  692. COOKIE: <value>
  693. ACCEPT: application/json
  694. CONTENT-TYPE: application/json
  695. CACHE-CONTROL: no-cache
  696. AUTHORIZATION: <value>
  697. Body:
  698. [
  699. "p",
  700. "r",
  701. "o",
  702. "d",
  703. "u",
  704. "c",
  705. "t",
  706. "i",
  707. "n",
  708. ".",
  709. "s",
  710. "a",
  711. "m"
  712. ]
  713. +- RESPONSE - 8:21:36 AM ---------------------------
  714. 200 OK
  715. DATE: Tue, 24 Jun 2025 06:21:36 GMT
  716. SERVER: Apache
  717. SET-COOKIE: <value>
  718. CACHE-CONTROL: no-cache
  719. EXPIRES: Thu, 29 Oct 1998 17:04:19 GMT
  720. PRAGMA: no-cache
  721. CONTENT-LENGTH: 242
  722. CONNECTION: close
  723. CONTENT-TYPE: application/json; charset=utf-8
  724. Body:
  725. {
  726. "status": {
  727. "errors": [],
  728. "summary": ""
  729. },
  730. "console": [],
  731. "result": {
  732. "content": [
  733. {
  734. "name": ".",
  735. "db": "",
  736. "ts": "",
  737. "cat": "",
  738. "gen": false,
  739. "others": [],
  740. "status": "ERROR #16006: Document '.' name is invalid",
  741. "content": {}
  742. },
  743. {
  744. "name": "a",
  745. "db": "",
  746. "ts": "",
  747. "cat": "",
  748. "gen": false,
  749. "others": [],
  750. "status": "ERROR #16006: Document 'a' name is invalid",
  751. "content": {}
  752. },
  753. {
  754. "name": "c",
  755. "db": "",
  756. "ts": "",
  757. "cat": "",
  758. "gen": false,
  759. "others": [],
  760. "status": "ERROR #16006: Document 'c' name is invalid",
  761. "content": {}
  762. },
  763. {
  764. "name": "d",
  765. "db": "",
  766. "ts": "",
  767. "cat": "",
  768. "gen": false,
  769. "others": [],
  770. "status": "ERROR #16006: Document 'd' name is invalid",
  771. "content": {}
  772. },
  773. {
  774. "name": "i",
  775. "db": "",
  776. "ts": "",
  777. "cat": "",
  778. "gen": false,
  779. "others": [],
  780. "status": "ERROR #16006: Document 'i' name is invalid",
  781. "content": {}
  782. },
  783. {
  784. "name": "m",
  785. "db": "",
  786. "ts": "",
  787. "cat": "",
  788. "gen": false,
  789. "others": [],
  790. "status": "ERROR #16006: Document 'm' name is invalid",
  791. "content": {}
  792. },
  793. {
  794. "name": "n",
  795. "db": "",
  796. "ts": "",
  797. "cat": "",
  798. "gen": false,
  799. "others": [],
  800. "status": "ERROR #16006: Document 'n' name is invalid",
  801. "content": {}
  802. },
  803. {
  804. "name": "o",
  805. "db": "",
  806. "ts": "",
  807. "cat": "",
  808. "gen": false,
  809. "others": [],
  810. "status": "ERROR #16006: Document 'o' name is invalid",
  811. "content": {}
  812. },
  813. {
  814. "name": "p",
  815. "db": "",
  816. "ts": "",
  817. "cat": "",
  818. "gen": false,
  819. "others": [],
  820. "status": "ERROR #16006: Document 'p' name is invalid",
  821. "content": {}
  822. },
  823. {
  824. "name": "r",
  825. "db": "",
  826. "ts": "",
  827. "cat": "",
  828. "gen": false,
  829. "others": [],
  830. "status": "ERROR #16006: Document 'r' name is invalid",
  831. "content": {}
  832. },
  833. {
  834. "name": "s",
  835. "db": "",
  836. "ts": "",
  837. "cat": "",
  838. "gen": false,
  839. "others": [],
  840. "status": "ERROR #16006: Document 's' name is invalid",
  841. "content": {}
  842. },
  843. {
  844. "name": "t",
  845. "db": "",
  846. "ts": "",
  847. "cat": "",
  848. "gen": false,
  849. "others": [],
  850. "status": "ERROR #16006: Document 't' name is invalid",
  851. "content": {}
  852. },
  853. {
  854. "name": "u",
  855. "db": "",
  856. "ts": "",
  857. "cat": "",
  858. "gen": false,
  859. "others": [],
  860. "status": "ERROR #16006: Document 'u' name is invalid",
  861. "content": {}
  862. }
  863. ]
  864. }
  865. }
  866. +- END ----------------------------------------------
  867.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement