Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
kgOrders
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Cam Hayes
kgOrders
Commits
15cf7db5
Commit
15cf7db5
authored
Jun 15, 2026
by
Cam Hayes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed pdf generation issue
parent
2702ac1c
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
876 deletions
+13
-876
config.json
kgOrdersClient/config/config.json
+1
-0
rOrderCorrugated.dfm
kgOrdersServer/Source/rOrderCorrugated.dfm
+0
-436
rOrderCorrugated.pas
kgOrdersServer/Source/rOrderCorrugated.pas
+6
-2
rOrderWeb.dfm
kgOrdersServer/Source/rOrderWeb.dfm
+0
-436
rOrderWeb.pas
kgOrdersServer/Source/rOrderWeb.pas
+6
-2
No files found.
kgOrdersClient/config/config.json
View file @
15cf7db5
...
@@ -2,3 +2,4 @@
...
@@ -2,3 +2,4 @@
"AuthUrl"
:
"https://webapps.em-sys.net/kgOrders/auth/"
,
"AuthUrl"
:
"https://webapps.em-sys.net/kgOrders/auth/"
,
"ApiUrl"
:
"https://webapps.em-sys.net/kgOrders/api/"
"ApiUrl"
:
"https://webapps.em-sys.net/kgOrders/api/"
}
}
kgOrdersServer/Source/rOrderCorrugated.dfm
View file @
15cf7db5
This diff is collapsed.
Click to expand it.
kgOrdersServer/Source/rOrderCorrugated.pas
View file @
15cf7db5
...
@@ -156,15 +156,19 @@ var
...
@@ -156,15 +156,19 @@ var
colorArray
:
TJSONArray
;
colorArray
:
TJSONArray
;
colorsObject
,
colorObject
:
TJSONObject
;
colorsObject
,
colorObject
:
TJSONObject
;
colorsString
:
string
;
colorsString
:
string
;
i
,
maxColors
:
Integer
;
i
,
maxColors
,
totalColors
:
Integer
;
begin
begin
logger
.
Log
(
5
,
'TrptOrderCorrugated.PopulateColorTable'
);
logger
.
Log
(
5
,
'TrptOrderCorrugated.PopulateColorTable'
);
maxColors
:=
13
;
maxColors
:=
13
;
colorsString
:=
uqOrderCorrugated
.
FieldByName
(
'colors_colors'
).
AsString
;
colorsString
:=
uqOrderCorrugated
.
FieldByName
(
'colors_colors'
).
AsString
;
colorsObject
:=
TJSONObject
.
ParseJSONValue
(
colorsString
)
as
TJSONObject
;
colorsObject
:=
TJSONObject
.
ParseJSONValue
(
colorsString
)
as
TJSONObject
;
colorArray
:=
TJSONArray
(
colorsObject
.
GetValue
<
TJSONArray
>(
'items'
));
colorArray
:=
TJSONArray
(
colorsObject
.
GetValue
<
TJSONArray
>(
'items'
));
totalColors
:=
colorArray
.
Count
;
for
i
:=
0
to
maxColors
-
1
do
if
totalColors
>
maxColors
then
totalColors
:=
maxColors
;
for
i
:=
0
to
totalColors
-
1
do
begin
begin
row
:=
frxOrderCorrugated
.
FindObject
(
'ColorRow'
+
IntToStr
(
i
+
1
))
as
TfrxCustomTableRow
;
row
:=
frxOrderCorrugated
.
FindObject
(
'ColorRow'
+
IntToStr
(
i
+
1
))
as
TfrxCustomTableRow
;
colorObject
:=
colorArray
.
Items
[
i
]
as
TJSONObject
;
colorObject
:=
colorArray
.
Items
[
i
]
as
TJSONObject
;
...
...
kgOrdersServer/Source/rOrderWeb.dfm
View file @
15cf7db5
This diff is collapsed.
Click to expand it.
kgOrdersServer/Source/rOrderWeb.pas
View file @
15cf7db5
...
@@ -155,7 +155,7 @@ var
...
@@ -155,7 +155,7 @@ var
colorArray
:
TJSONArray
;
colorArray
:
TJSONArray
;
colorsObject
,
colorObject
:
TJSONObject
;
colorsObject
,
colorObject
:
TJSONObject
;
colorsString
:
string
;
colorsString
:
string
;
i
,
maxColors
:
Integer
;
i
,
maxColors
,
totalColors
:
Integer
;
begin
begin
maxColors
:=
10
;
maxColors
:=
10
;
logger
.
Log
(
5
,
'TrptOrderWeb.PopulateColorTable'
);
logger
.
Log
(
5
,
'TrptOrderWeb.PopulateColorTable'
);
...
@@ -163,8 +163,12 @@ begin
...
@@ -163,8 +163,12 @@ begin
colorsString
:=
uqOrderWeb
.
FieldByName
(
'quantity_and_colors_qty_colors'
).
AsString
;
colorsString
:=
uqOrderWeb
.
FieldByName
(
'quantity_and_colors_qty_colors'
).
AsString
;
colorsObject
:=
TJSONObject
.
ParseJSONValue
(
colorsString
)
as
TJSONObject
;
colorsObject
:=
TJSONObject
.
ParseJSONValue
(
colorsString
)
as
TJSONObject
;
colorArray
:=
TJSONArray
(
colorsObject
.
GetValue
<
TJSONArray
>(
'items'
));
colorArray
:=
TJSONArray
(
colorsObject
.
GetValue
<
TJSONArray
>(
'items'
));
totalColors
:=
colorArray
.
Count
;
for
i
:=
0
to
maxColors
-
1
do
if
totalColors
>
maxColors
then
totalColors
:=
maxColors
;
for
i
:=
0
to
totalColors
-
1
do
begin
begin
row
:=
frxOrderWeb
.
FindObject
(
'ColorRow'
+
IntToStr
(
i
+
1
))
as
TfrxCustomTableRow
;
row
:=
frxOrderWeb
.
FindObject
(
'ColorRow'
+
IntToStr
(
i
+
1
))
as
TfrxCustomTableRow
;
colorObject
:=
colorArray
.
Items
[
i
]
as
TJSONObject
;
colorObject
:=
colorArray
.
Items
[
i
]
as
TJSONObject
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment