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
b3095bc3
Commit
b3095bc3
authored
Jul 24, 2025
by
Cameron Hayes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed issues so that other order pages are functional
parent
4ee28e36
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
34 additions
and
28 deletions
+34
-28
View.OrderEntryCorrugated.pas
kgOrdersClient/View.OrderEntryCorrugated.pas
+14
-13
View.OrderEntryWeb.dfm
kgOrdersClient/View.OrderEntryWeb.dfm
+1
-1
View.OrderEntryWeb.pas
kgOrdersClient/View.OrderEntryWeb.pas
+16
-11
View.Orders.pas
kgOrdersClient/View.Orders.pas
+2
-2
kgOrdersServer.ini
kgOrdersServer/kgOrdersServer.ini
+1
-1
No files found.
kgOrdersClient/View.OrderEntryCorrugated.pas
View file @
b3095bc3
...
...
@@ -262,7 +262,6 @@ begin
orderID
:=
orderInfo
;
mode
:=
modeParam
;
notification
:=
info
;
InitializeForm
;
end
;
end
...
...
@@ -431,7 +430,6 @@ begin
if
mode
=
'EDIT'
then
orderJSON
.
AddPair
(
'ORDER_ID'
,
orderID
);
console
.
log
(
orderJSON
);
AddCorrugatedOrder
(
orderJSON
);
end
;
...
...
@@ -841,7 +839,7 @@ var
orderList
:
TJSObject
;
i
:
integer
;
data
:
TJSArray
;
order
:
TJSObject
;
order
,
customer
,
items
:
TJSObject
;
callListLength
:
integer
;
tempString
,
strColorList
:
string
;
colorObject
:
TJSObject
;
...
...
@@ -850,7 +848,6 @@ var
color
:
TJSObject
;
colorJSON
:
TJSONObject
;
colorListJSON
:
TJSONArray
;
items
:
TJSObject
;
begin
try
xdcResponse
:=
await
(
XDataWebClient1
.
RawInvokeAsync
(
'ILookupService.GetOrder'
,
[
Order_ID
]));
...
...
@@ -974,14 +971,16 @@ begin
else
cbStripMount
.
Checked
:=
false
;
if
mode
=
'EDIT'
then
begin
CustomerID
:=
XDataWebDataSet1COMPANY_ID
.
AsString
;
xdwdsShipTo
.
Close
;
xdwdsShipTo
.
SetJSONData
(
order
[
'ADDRESS_LIST'
]);
xdwdsShipTo
.
Open
;
end
;
xdcResponse
:=
await
(
XDataWebClient1
.
RawInvokeAsync
(
'ILookupService.GetCustomer'
,
[
XDataWebDataSet1
.
FieldByName
(
'COMPANY_ID'
).
AsString
]));
customer
:=
TJSObject
(
xdcResponse
.
Result
);
xdwdsShipTo
.
Close
;
xdwdsShipTo
.
SetJSONData
(
customer
[
'SHIPPING_ADDRESS_LIST'
]);
xdwdsShipTo
.
Open
;
xdcResponse
:=
await
(
XDataWebClient1
.
RawInvokeAsync
(
'ILookupService.GetItems'
,
[]));
items
:=
TJSObject
(
xdcResponse
.
Result
);
xdwdsQBItem
.
Close
;
items
:=
TJSObject
(
order
[
'ITEMS'
]);
xdwdsQBItem
.
SetJsonData
(
items
[
'data'
]);
...
...
@@ -1010,11 +1009,13 @@ begin
XDataWebDataSet1
.
Edit
;
xdwdsShipTo
.
Close
;
xdwdsShipTo
.
SetJSONData
(
customer
[
'ADDRESS_LIST'
]);
xdwdsShipTo
.
SetJSONData
(
customer
[
'
SHIPPING_
ADDRESS_LIST'
]);
xdwdsShipTo
.
Open
;
xdcResponse
:=
await
(
XDataWebClient1
.
RawInvokeAsync
(
'ILookupService.GetItems'
,
[]));
items
:=
TJSObject
(
xdcResponse
.
Result
);
xdwdsQBItem
.
Close
;
items
:=
TJSObject
(
customer
[
'ITEMS'
]);
xdwdsQBItem
.
SetJsonData
(
items
[
'data'
]);
xdwdsQBITEM
.
Open
;
...
...
kgOrdersClient/View.OrderEntryWeb.dfm
View file @
b3095bc3
...
...
@@ -1413,7 +1413,7 @@ object FOrderEntryWeb: TFOrderEntryWeb
end
object XDataWebDataSet1: TXDataWebDataSet
Connection = DMConnection.ApiConnection
Left = 4
08
Left = 4
34
Top = 4
object XDataWebDataSet1ORDER_ID: TIntegerField
FieldName = 'ORDER_ID'
...
...
kgOrdersClient/View.OrderEntryWeb.pas
View file @
b3095bc3
...
...
@@ -777,7 +777,7 @@ var
orderList
:
TJSObject
;
i
:
integer
;
data
:
TJSArray
;
order
:
TJSObject
;
order
,
customer
:
TJSObject
;
callListLength
:
integer
;
tempString
,
strColorList
:
string
;
colorObject
:
TJSObject
;
...
...
@@ -870,16 +870,19 @@ begin
else
dtpDigitalColorDate
.
Date
:=
0
;
if
mode
=
'EDIT'
then
begin
CustomerID
:=
XDataWebDataSet1COMPANY_ID
.
AsString
;
xdwdsShipTo
.
Close
;
xdwdsShipTo
.
SetJSONData
(
order
[
'ADDRESS_LIST'
]);
xdwdsShipTo
.
Open
;
end
;
xdcResponse
:=
await
(
XDataWebClient1
.
RawInvokeAsync
(
'ILookupService.GetCustomer'
,
[
XDataWebDataSet1
.
FieldByName
(
'COMPANY_ID'
).
AsString
]));
customer
:=
TJSObject
(
xdcResponse
.
Result
);
xdwdsShipTo
.
Close
;
xdwdsShipTo
.
SetJSONData
(
customer
[
'SHIPPING_ADDRESS_LIST'
]);
xdwdsShipTo
.
Open
;
xdcResponse
:=
await
(
XDataWebClient1
.
RawInvokeAsync
(
'ILookupService.GetItems'
,
[]));
items
:=
TJSObject
(
xdcResponse
.
Result
);
xdwdsQBItem
.
Close
;
items
:=
TJSObject
(
order
[
'ITEMS'
]);
xdwdsQBItem
.
SetJsonData
(
items
[
'data'
]);
xdwdsQBITEM
.
Open
;
except
...
...
@@ -909,11 +912,13 @@ begin
xdwdsShipTo
.
Close
;
xdwdsShipTo
.
SetJSONData
(
customer
[
'ADDRESS_LIST'
]);
xdwdsShipTo
.
SetJSONData
(
customer
[
'
SHIPPING_
ADDRESS_LIST'
]);
xdwdsShipTo
.
Open
;
xdcResponse
:=
await
(
XDataWebClient1
.
RawInvokeAsync
(
'ILookupService.GetItems'
,
[]));
items
:=
TJSObject
(
xdcResponse
.
Result
);
xdwdsQBItem
.
Close
;
items
:=
TJSObject
(
customer
[
'ITEMS'
]);
xdwdsQBItem
.
SetJsonData
(
items
[
'data'
]);
xdwdsQBITEM
.
Open
;
...
...
kgOrdersClient/View.Orders.pas
View file @
b3095bc3
...
...
@@ -519,7 +519,7 @@ procedure TFViewOrders.wdbtcOrdersClickCell(Sender: TObject; ACol,
ARow
:
Integer
);
begin
statusOrderID
:=
wdbtcOrders
.
Cells
[
0
,
ARow
];
statusOrderType
:=
wdbtcOrders
.
Cells
[
4
,
ARow
];
statusOrderType
:=
wdbtcOrders
.
Cells
[
5
,
ARow
];
row
:=
ARow
;
end
;
...
...
@@ -527,7 +527,7 @@ procedure TFViewOrders.wdbtcOrdersDblClickCell(Sender: TObject; ACol,
ARow
:
Integer
);
begin
OrderID
:=
wdbtcOrders
.
Cells
[
0
,
ARow
];
orderType
:=
wdbtcOrders
.
Cells
[
4
,
ARow
].
Split
([
' '
])[
0
];
orderType
:=
wdbtcOrders
.
Cells
[
5
,
ARow
].
Split
([
' '
])[
0
];
// Parameter 1: OrderID: The ID of the order, used when editting an existing order.
...
...
kgOrdersServer/kgOrdersServer.ini
View file @
b3095bc3
...
...
@@ -2,7 +2,7 @@
MemoLogLevel
=
3
FileLogLevel
=
5
webClientVersion
=
0.9.7
LogFileNum
=
92
6
LogFileNum
=
92
7
[Database]
Server
=
192.168.159.155
...
...
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