Commit d5960cdf by Mac Stephens

Archive functionality added

parent ce5c1912
...@@ -544,7 +544,6 @@ begin ...@@ -544,7 +544,6 @@ begin
raise EXDataHttpException.Create(404,'Complaint archive not found'); raise EXDataHttpException.Create(404,'Complaint archive not found');
obj := TJSONObject.Create; obj := TJSONObject.Create;
TXDataOperationContext.Current.Handler.ManagedObjects.Add(obj);
obj.AddPair('ComplaintId', ApiDB.uqComplaintDetailsCOMPLAINTID.AsString); obj.AddPair('ComplaintId', ApiDB.uqComplaintDetailsCOMPLAINTID.AsString);
obj.AddPair('CFSId', ApiDB.uqComplaintDetailsCFSID.AsString); obj.AddPair('CFSId', ApiDB.uqComplaintDetailsCFSID.AsString);
......
[Settings] [Settings]
LogFileNum=660 LogFileNum=665
webClientVersion=0.1.0 webClientVersion=0.1.0
--------------------------------2026/4/30 23:44:37-------------------------------- --------------------------------2026/6/3 9:19:39--------------------------------
FastMM has detected an attempt to call a virtual method on a freed object. An access violation will now be raised in order to abort the current operation. FastMM has detected an attempt to call a virtual method on a freed object. An access violation will now be raised in order to abort the current operation.
Freed object class: System.JSON.TJSONObject Freed object class: System.JSON.TJSONObject
Virtual method: Destroy Virtual method: Destroy
Virtual method address: CDDB7C Virtual method address: D2DB7C
The allocation number was: 350389 The allocation number was: 154914
The object was allocated by thread 0x4650, and the stack trace (return addresses) at the time was: The object was allocated by thread 0x3A78, and the stack trace (return addresses) at the time was:
9E722E [System.pas][System][@GetMem$qqri][5057] A3722E [System.pas][System][@GetMem$qqri][5057]
9E92D7 [System.pas][System][TObject.NewInstance][18511] A392D7 [System.pas][System][TObject.NewInstance][18511]
9E99DA [System.pas][System][@ClassCreate$qqrpvzc][19841] A399DA [System.pas][System][@ClassCreate$qqrpvzc][19841]
CDD9CE [System.JSON.pas][System.JSON][Json.TJSONObject.Create][3021] D2D9CE [System.JSON.pas][System.JSON][Json.TJSONObject.Create][3021]
10AB558 [MemDS][TMemDataSet.Locate] 10FB558 [MemDS][TMemDataSet.Locate]
138251F [Api.ServiceImpl.pas][Api.ServiceImpl][Serviceimpl.TApiService.GetComplaintArchiveDetails][546] 13D251F [Api.ServiceImpl.pas][Api.ServiceImpl][Serviceimpl.TApiService.GetComplaintArchiveDetails][546]
A62D74 [System.Rtti.pas][System.Rtti][Rtti.RawInvoke$qqrpvp23System.Rtti.TParamBlock][8868] AB2D74 [System.Rtti.pas][System.Rtti][Rtti.RawInvoke$qqrpvp23System.Rtti.TParamBlock][8868]
A63159 [System.Rtti.pas][System.Rtti][Rtti.Invoke$qqrpvx42System.%DynamicArray$18System.Rtti.TValue%24System.Typinfo.TCallConvp24System.Typinfo.TTypeInfooo][9113] AB3159 [System.Rtti.pas][System.Rtti][Rtti.Invoke$qqrpvx42System.%DynamicArray$18System.Rtti.TValue%24System.Typinfo.TCallConvp24System.Typinfo.TTypeInfooo][9113]
9ED079 [System.pas][System][@FinalizeRecord$qqrpvt1][33521] A3D079 [System.pas][System][@FinalizeRecord$qqrpvt1][33521]
9F074B [System.pas][System][@IntfClear$qqrr44System.%DelphiInterface$17System.IInterface%][39340] A4074B [System.pas][System][@IntfClear$qqrr44System.%DelphiInterface$17System.IInterface%][39340]
F02CDD [XData.Aurelius.Model.pas][XData.Aurelius.Model][Aurelius.Model.TXDataAureliusModel.GetActionInfo][490] F52CDD [XData.Aurelius.Model.pas][XData.Aurelius.Model][Aurelius.Model.TXDataAureliusModel.GetActionInfo][490]
The object was subsequently freed by thread 0x4650, and the stack trace (return addresses) at the time was: The object was subsequently freed by thread 0x3A78, and the stack trace (return addresses) at the time was:
9E92F5 [System.pas][System][TObject.FreeInstance][18520] A392F5 [System.pas][System][TObject.FreeInstance][18520]
9E9A25 [System.pas][System][@ClassDestroy$qqrxp14System.TObject][19884] A39A25 [System.pas][System][@ClassDestroy$qqrxp14System.TObject][19884]
CDDBE1 [System.JSON.pas][System.JSON][Json.TJSONObject.Destroy][3113] D2DBE1 [System.JSON.pas][System.JSON][Json.TJSONObject.Destroy][3113]
9E93EB [System.pas][System][TObject.Free][18583] A393EB [System.pas][System][TObject.Free][18583]
CDD859 [System.JSON.pas][System.JSON][Json.TJSONPair.Destroy][2952] FFD403 [XData.Server.Module.pas][XData.Server.Module][Server.Module.TXDataRequestHandler.DestroyIfNotInManagers][1679]
9E93EB [System.pas][System][TObject.Free][18583] FFB45B [XData.Server.Module.pas][XData.Server.Module][Server.Module.TXDataRequestHandler.CleanUp][1267]
CDDBB0 [System.JSON.pas][System.JSON][Json.TJSONObject.Destroy][3108] F9C49C [XData.Module.Base.pas][XData.Module.Base][Module.Base.TXDataBaseRequestHandler.InnerProcessRequest][869]
9E93EB [System.pas][System][TObject.Free][18583] F9CA62 [XData.Module.Base.pas][XData.Module.Base][Module.Base.TXDataBaseRequestHandler.ProcessRequest][907]
FAD403 [XData.Server.Module.pas][XData.Server.Module][Server.Module.TXDataRequestHandler.DestroyIfNotInManagers][1679] F9AAB0 [XData.Module.Base.pas][XData.Module.Base][Module.Base.TXDataBaseModule.ProcessRequest][330]
FAB45B [XData.Server.Module.pas][XData.Server.Module][Server.Module.TXDataRequestHandler.CleanUp][1267] F903EE [Sparkle.HttpServer.Module.pas][Sparkle.HttpServer.Module][261]
F4C49C [XData.Module.Base.pas][XData.Module.Base][Module.Base.TXDataBaseRequestHandler.InnerProcessRequest][869] 10AA727 [Sparkle.Middleware.Jwt.pas][Sparkle.Middleware.Jwt][Middleware.Jwt.TJwtMiddleware.ProcessRequest][273]
The current thread ID is 0x4650, and the stack trace (return addresses) leading to this error is: The current thread ID is 0x3A78, and the stack trace (return addresses) leading to this error is:
9E93EB [System.pas][System][TObject.Free][18583] D2D859 [System.JSON.pas][System.JSON][Json.TJSONPair.Destroy][2952]
FAD403 [XData.Server.Module.pas][XData.Server.Module][Server.Module.TXDataRequestHandler.DestroyIfNotInManagers][1679] A393EB [System.pas][System][TObject.Free][18583]
FAB45B [XData.Server.Module.pas][XData.Server.Module][Server.Module.TXDataRequestHandler.CleanUp][1267] D2DBB0 [System.JSON.pas][System.JSON][Json.TJSONObject.Destroy][3108]
F4C49C [XData.Module.Base.pas][XData.Module.Base][Module.Base.TXDataBaseRequestHandler.InnerProcessRequest][869] A393EB [System.pas][System][TObject.Free][18583]
F4CA62 [XData.Module.Base.pas][XData.Module.Base][Module.Base.TXDataBaseRequestHandler.ProcessRequest][907] FFD403 [XData.Server.Module.pas][XData.Server.Module][Server.Module.TXDataRequestHandler.DestroyIfNotInManagers][1679]
F4AAB0 [XData.Module.Base.pas][XData.Module.Base][Module.Base.TXDataBaseModule.ProcessRequest][330] FFB45B [XData.Server.Module.pas][XData.Server.Module][Server.Module.TXDataRequestHandler.CleanUp][1267]
F403EE [Sparkle.HttpServer.Module.pas][Sparkle.HttpServer.Module][261] F9C49C [XData.Module.Base.pas][XData.Module.Base][Module.Base.TXDataBaseRequestHandler.InnerProcessRequest][869]
105A727 [Sparkle.Middleware.Jwt.pas][Sparkle.Middleware.Jwt][Middleware.Jwt.TJwtMiddleware.ProcessRequest][273] F9CA62 [XData.Module.Base.pas][XData.Module.Base][Module.Base.TXDataBaseRequestHandler.ProcessRequest][907]
F40B10 [Sparkle.HttpServer.Module.pas][Sparkle.HttpServer.Module][304] F9AAB0 [XData.Module.Base.pas][XData.Module.Base][Module.Base.TXDataBaseModule.ProcessRequest][330]
105CECF [Sparkle.Middleware.Compress.pas][Sparkle.Middleware.Compress][Middleware.Compress.TCompressMiddleware.ProcessRequest][228] F903EE [Sparkle.HttpServer.Module.pas][Sparkle.HttpServer.Module][261]
F40B10 [Sparkle.HttpServer.Module.pas][Sparkle.HttpServer.Module][304] 10AA727 [Sparkle.Middleware.Jwt.pas][Sparkle.Middleware.Jwt][Middleware.Jwt.TJwtMiddleware.ProcessRequest][273]
Current memory dump of 256 bytes starting at pointer address 7E79CD40: Current memory dump of 256 bytes starting at pointer address 7E27B800:
8C CC 4E 01 80 80 80 80 80 80 80 80 80 80 80 80 91 9A DF 6F 80 80 80 80 00 00 00 00 C0 98 79 7E 8C CC 53 01 80 80 80 80 80 80 80 80 80 80 80 80 CC 7E B7 6E 80 80 80 80 00 00 00 00 20 7F 27 7E
00 00 00 00 00 00 00 00 78 AD 9F 00 00 00 00 00 0B 5A 05 00 2E 72 9E 00 5B B2 9E 00 F8 B6 9E 00 00 00 00 00 00 00 00 00 78 AD A4 00 00 00 00 00 88 5E 02 00 A6 B1 A4 00 FA 71 A3 00 02 AC AB 00
53 89 E5 00 C7 E6 E5 00 91 E6 E5 00 ED DD F4 00 3E 2E FB 00 14 2D FB 00 B4 20 FB 00 C5 D4 FA 00 1B CA A9 00 0A 88 D3 00 AF 7D D3 00 CD 3A EA 00 4E A2 0A 01 2A A8 0A 01 8B A0 0A 01 24 A6 0A 01
50 46 00 00 50 46 00 00 4A 72 9E 00 F5 92 9E 00 25 9A 9E 00 DE 93 9E 00 74 1C 9F 00 4B 07 9F 00 DC 3E 00 00 68 21 00 00 4A 72 A3 00 81 B3 A3 00 6E CB 1E 01 22 00 40 01 99 CC 1E 01 76 D1 1C 01
C7 D4 9E 00 0A CE A3 00 44 9A 9F 00 04 B0 9F 00 19 B0 9F 00 12 00 00 00 B0 D6 CE 00 5C 8D 36 90 93 D0 1C 01 8C 71 AF 00 F1 7B AF 00 58 55 AF 00 D2 64 AF 00 10 00 00 00 B0 04 02 00 32 9C E6 91
B0 04 02 00 01 00 00 00 02 00 00 00 4F 00 4B 00 00 00 A3 72 C9 6F 80 80 00 00 00 00 61 B9 79 7E 80 D1 40 01 01 00 00 00 CC B0 2D 7E 00 00 00 00 CD 63 19 6E 80 80 80 80 00 00 00 00 20 7F 27 7E
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 38 4C 05 00 2E 72 9E 00 5B B2 9E 00 F8 B6 9E 00 00 00 00 00 00 00 00 00 78 AD A4 00 00 00 00 00 4D 5B 02 00 2E 72 A3 00 5B B2 A3 00 C0 C3 A3 00
AC 4E AA 00 B5 7C AA 00 DA 99 9E 00 A6 8E C1 00 09 C1 C2 00 17 23 0A 01 D5 88 16 01 33 DA 19 01 67 EC A6 00 64 EB A6 00 12 C9 C8 00 27 9A EA 00 8C B7 EA 00 20 AD EA 00 24 C8 EA 00 F0 9E 00 01
N . o . . . . y ~ S . ~ n . . . .  ' ~
. . . . . . . . x . . . . . . Z . . . r . [ . . . . . . . . . . x . . . . . ^ . . . q . . .
S . . . . > . . . - . . . . . . . } . : . N . . * . . . . $ . .
P F . . P F . . J r . . % . . t . . K . . > . . h ! . . J r . . n . . " . @ . . . v . .
. . . D . . . . . . . . . . \ 6 . . q . { . X U . d . . . . . . . . 2
. . . . . . . . . . . O . K . . . r o . . . . a y ~ @ . . . . . - ~ . . . . c . n . . . .  ' ~
. . . . . . . . . . . . . . . . 8 L . . . r . [ . . . . . . . . . . x . . . . . M [ . . . r . [ . .
N . | . . . . . . # . . . . 3 . . g . d . . . ' . . . $ . . .
...@@ -211,7 +211,7 @@ object FViewMain: TFViewMain ...@@ -211,7 +211,7 @@ object FViewMain: TFViewMain
Top = 8 Top = 8
Width = 28 Width = 28
Height = 23 Height = 23
ElementClassName = 'btn btn-light' ElementID = 'btn_archive_modal_close'
ElementFont = efCSS ElementFont = efCSS
HeightStyle = ssAuto HeightStyle = ssAuto
HeightPercent = 100.000000000000000000 HeightPercent = 100.000000000000000000
......
...@@ -85,6 +85,39 @@ html, body { ...@@ -85,6 +85,39 @@ html, body {
transform: rotate(180deg); transform: rotate(180deg);
} }
.time-vscroll {
height: 100%;
overflow: auto;
}
.time-vscroll thead th {
position: sticky;
top: 0;
z-index: 2;
background: var(--bs-body-bg);
}
.time-vscroll thead th.th-resize {
z-index: 3;
}
.time-table {
table-layout: fixed;
}
.time-table th,
.time-table td {
overflow: hidden;
}
.time-table .dropdown,
.time-dd-toggle,
.time-dd-label,
.cell-input,
.cell-textarea {
min-width: 0;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment