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
cd6b2e67
Commit
cd6b2e67
authored
7 months ago
by
cam
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
colors query is now fully functional
parent
e7324517
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
5 deletions
+30
-5
View.Orders.pas
kgOrdersClient/View.Orders.pas
+10
-2
Lookup.ServiceImpl.pas
kgOrdersServer/Source/Lookup.ServiceImpl.pas
+19
-2
kgOrdersServer.ini
kgOrdersServer/kgOrdersServer.ini
+1
-1
No files found.
kgOrdersClient/View.Orders.pas
View file @
cd6b2e67
...
...
@@ -110,6 +110,9 @@ procedure TFViewOrders.AddRowToTable(temp: string);
// MediaUrl: Link to the recording
var
NewRow
,
Cell
,
P
,
Button
,
Audio
:
TJSHTMLElement
;
colorObject
:
TJSObject
;
colorList
:
TJSArray
;
colors
:
integer
;
begin
NewRow
:=
TJSHTMLElement
(
document
.
createElement
(
'tr'
));
...
...
@@ -243,9 +246,14 @@ begin
Cell
:=
TJSHTMLElement
(
document
.
createElement
(
'td'
));
Cell
.
setAttribute
(
'data-label'
,
'Colors'
);
if
XDataWebDataSet1colors
.
Value
=
''
then
Cell
.
innerText
:=
'
None
'
Cell
.
innerText
:=
'
0
'
else
Cell
.
innerText
:=
XDataWebDataSet1colors
.
Value
;
begin
colorObject
:=
TJSObject
(
TJSJSON
.
parse
(
XDataWebDataSet1colors
.
Value
));
colorList
:=
TJSArray
(
colorObject
[
'items'
]);
colors
:=
colorList
.
flength
;
Cell
.
innerText
:=
IntToStr
(
colors
);
end
;
NewRow
.
appendChild
(
Cell
);
...
...
This diff is collapsed.
Click to expand it.
kgOrdersServer/Source/Lookup.ServiceImpl.pas
View file @
cd6b2e67
...
...
@@ -212,6 +212,8 @@ var
limit
:
string
;
SQL
:
string
;
Order
:
TOrderItem
;
colors
:
string
;
ColorType
:
string
;
begin
params
:=
TStringList
.
Create
;
params
.
StrictDelimiter
:=
true
;
...
...
@@ -226,7 +228,7 @@ begin
offset
:=
IntToStr
((
PageNum
-
1
)
*
PageSize
);
limit
:=
IntToStr
(
PageSize
);
SQL
:=
'SELECT o.ORDER_ID, o.LOCATION AS Loc, c.NAME AS COMPANY_NAME, o.JOB_NAME, o.ORDER_DATE, '
+
SQL
:=
'SELECT o.ORDER_ID, o.LOCATION AS Loc, c.NAME AS COMPANY_NAME, o.JOB_NAME, o.ORDER_DATE,
o.ORDER_TYPE,
'
+
'(SELECT oss.STATUS_DATE '
+
' FROM orders_status_schedule oss '
+
' WHERE oss.ORDER_ID = o.ORDER_ID AND oss.ORDER_STATUS = ''PROOF'') AS PROOF_DUE, '
+
...
...
@@ -314,7 +316,22 @@ begin
order.shipDone := '???';
order.qbRefNum := -1; }
order
.
colors
:=
'-1'
;
if
callsDB
.
UniQuery1
.
FieldByName
(
'ORDER_TYPE'
).
AsString
=
'web_plate'
then
begin
colorType
:=
'quantity_and_colors_qty_colors'
;
SQL
:=
'Select quantity_and_colors_qty_colors from web_plate_orders where order_id = '
+
order
.
ID
;
end
else
begin
colorType
:=
'colors_colors'
;
SQL
:=
'Select colors_colors from corrugated_plate_orders where order_id = '
+
order
.
ID
;
end
;
doQuery
(
callsDB
.
UniQuery2
,
SQL
);
colors
:=
callsDB
.
UniQuery2
.
FieldByName
(
ColorType
).
AsString
;
order
.
colors
:=
colors
;
callsDB
.
UniQuery1
.
Next
;
end
;
...
...
This diff is collapsed.
Click to expand it.
kgOrdersServer/kgOrdersServer.ini
View file @
cd6b2e67
[Options]
LogFileNum
=
8
2
LogFileNum
=
9
2
UpdateTimerLength
=
0
...
...
This diff is collapsed.
Click to expand it.
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