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
1589dd42
Commit
1589dd42
authored
Dec 13, 2024
by
Elias Sarraf
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/cam2'
parents
726b409a
7005e50c
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
117 additions
and
46 deletions
+117
-46
View.OrderEntryCorrugated.dfm
kgOrdersClient/View.OrderEntryCorrugated.dfm
+25
-24
View.OrderEntryCorrugated.html
kgOrdersClient/View.OrderEntryCorrugated.html
+1
-5
View.OrderEntryCorrugated.pas
kgOrdersClient/View.OrderEntryCorrugated.pas
+89
-17
Lookup.Service.pas
kgOrdersServer/Source/Lookup.Service.pas
+1
-0
Lookup.ServiceImpl.pas
kgOrdersServer/Source/Lookup.ServiceImpl.pas
+1
-0
No files found.
kgOrdersClient/View.OrderEntryCorrugated.dfm
View file @
1589dd42
...
...
@@ -142,7 +142,7 @@ object FOrderEntry: TFOrderEntry
BorderStyle = bsSingle
ChildOrder = 4
Color = clWhite
Date = 45
544.40238513889
0000000
Date = 45
638.52994313657
0000000
Role = ''
Text = ''
end
...
...
@@ -155,7 +155,7 @@ object FOrderEntry: TFOrderEntry
BorderStyle = bsSingle
ChildOrder = 4
Color = clWhite
Date = 45
544.40238513889
0000000
Date = 45
638.52994313657
0000000
Role = ''
Text = ''
end
...
...
@@ -168,7 +168,7 @@ object FOrderEntry: TFOrderEntry
BorderStyle = bsSingle
ChildOrder = 4
Color = clWhite
Date = 45
544.40238513889
0000000
Date = 45
638.52994313657
0000000
Role = ''
Text = ''
end
...
...
@@ -181,7 +181,7 @@ object FOrderEntry: TFOrderEntry
BorderStyle = bsSingle
ChildOrder = 17
Color = clWhite
Date = 45
544.40932332176
0000000
Date = 45
638.52994313657
0000000
Role = ''
Text = ''
end
...
...
@@ -194,7 +194,7 @@ object FOrderEntry: TFOrderEntry
BorderStyle = bsSingle
ChildOrder = 17
Color = clWhite
Date = 45
544.40932332176
0000000
Date = 45
638.52994313657
0000000
Role = ''
Text = ''
end
...
...
@@ -207,7 +207,7 @@ object FOrderEntry: TFOrderEntry
BorderStyle = bsSingle
ChildOrder = 17
Color = clWhite
Date = 45
544.40932332176
0000000
Date = 45
638.52994313657
0000000
Role = ''
Text = ''
end
...
...
@@ -232,7 +232,7 @@ object FOrderEntry: TFOrderEntry
BorderStyle = bsSingle
ChildOrder = 72
Color = clWhite
Date = 45
544.48120496528
0000000
Date = 45
638.52994313657
0000000
Role = ''
Text = ''
end
...
...
@@ -367,19 +367,6 @@ object FOrderEntry: TFOrderEntry
DataField = 'staff_fields_quickbooks_item'
DataSource = WebDataSource1
end
object edtEmail: TWebDBEdit
Left = 316
Top = 376
Width = 121
Height = 22
AutoSize = True
ChildOrder = 79
ElementID = 'edtemail'
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = 'supplied_by_customer_e_mail'
DataSource = WebDataSource1
end
object edtOther: TWebDBEdit
Left = 316
Top = 348
...
...
@@ -455,7 +442,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtrscd'
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = 'layout_r
sc
_d'
DataField = 'layout_r
cs
_d'
DataSource = WebDataSource1
end
object edtRSCW: TWebDBEdit
...
...
@@ -468,7 +455,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtrscw'
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = 'layout_r
sc
_w'
DataField = 'layout_r
cs
_w'
DataSource = WebDataSource1
end
object edtRSCL: TWebDBEdit
...
...
@@ -861,7 +848,7 @@ object FOrderEntry: TFOrderEntry
Height = 22
Caption = 'FTP?'
ChildOrder = 76
ElementID = '
edt
ftp'
ElementID = '
cb
ftp'
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
end
...
...
@@ -949,7 +936,7 @@ object FOrderEntry: TFOrderEntry
Height = 22
Caption = 'Excalibur Die'
ChildOrder = 76
ElementID = '
edtftp
'
ElementID = '
cbexcaliburdie
'
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
end
...
...
@@ -967,6 +954,17 @@ object FOrderEntry: TFOrderEntry
ListField = 'ADDRESS'
ListSource = wdsShipTo
end
object cbEmail: TWebCheckBox
Left = 316
Top = 376
Width = 113
Height = 22
Caption = 'Email?'
ChildOrder = 75
ElementID = 'edtemail'
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
end
object XDataWebClient1: TXDataWebClient
Connection = DMConnection.ApiConnection
Left = 244
...
...
@@ -1252,6 +1250,9 @@ object FOrderEntry: TFOrderEntry
object XDataWebDataSet1ADDRESS_LIST: TStringField
FieldName = 'ADDRESS_LIST'
end
object XDataWebDataSet1supplied_by_customer_order_date: TStringField
FieldName = 'supplied_by_customer_order_date'
end
end
object WebDataSource1: TWebDataSource
DataSet = XDataWebDataSet1
...
...
kgOrdersClient/View.OrderEntryCorrugated.html
View file @
1589dd42
...
...
@@ -99,16 +99,12 @@
<input
type=
"checkbox"
id=
"cbsampleCarton"
>
</div>
<div
class=
"col-auto"
>
<label
class=
'pe-2'
style=
"font-weight: 700; font-size: 15px;"
>
Disk or CD:
</label>
<input
type=
"checkbox"
id=
"cbdiskorcd"
>
</div>
<div
class=
"col-auto"
>
<label
class=
'pe-2'
style=
"font-weight: 700; font-size: 15px;"
>
Email:
</label>
<input
type=
"checkbox"
id=
"edtemail"
/>
</div>
<div
class=
"col-auto"
>
<label
class=
'pe-2'
style=
"font-weight: 700; font-size: 15px;"
>
FTP:
</label>
<input
type=
"checkbox"
id=
"
edt
ftp"
/>
<input
type=
"checkbox"
id=
"
cb
ftp"
/>
</div>
<div
class=
"col-auto"
>
<label
class=
'pe-2'
style=
"font-weight: 700; font-size: 15px;"
>
Other:
</label>
...
...
kgOrdersClient/View.OrderEntryCorrugated.pas
View file @
1589dd42
...
...
@@ -41,7 +41,6 @@ type
edtPONumber
:
TWebDBEdit
;
edtJobName
:
TWebDBEdit
;
edtQuickBooksItem
:
TWebDBEdit
;
edtEmail
:
TWebDBEdit
;
edtOther
:
TWebDBEdit
;
edtCADFile
:
TWebDBEdit
;
edtAroundNo
:
TWebDBEdit
;
...
...
@@ -186,6 +185,8 @@ type
xdwdsShipTo
:
TXDataWebDataSet
;
xdwdsShipToADDRESS
:
TStringField
;
WebDBComboBox1
:
TWebDBComboBox
;
cbEmail
:
TWebCheckBox
;
XDataWebDataSet1supplied_by_customer_order_date
:
TStringField
;
procedure
WebFormCreate
(
Sender
:
TObject
);
procedure
HideNotification
();
procedure
ShowNotification
(
Notification
:
string
);
...
...
@@ -233,11 +234,11 @@ var
Field
:
TField
;
Response
:
TXDataClientResponse
;
begin
//TJSONObject.Create;
orderJSON
:=
TJSONObject
.
Create
;
colorList
:=
TJSONArray
.
Create
;
container
:=
document
.
getElementById
(
'additionalFields'
);
colorCollection
:=
container
.
children
;
for
I
:=
0
to
colorCollection
.
length
-
1
do
begin
colorJSON
:=
TJSONObject
.
Create
;
...
...
@@ -262,7 +263,8 @@ begin
XDataWebDataSet1staff_fields_art_due
.
Value
:=
DateTimeToStr
(
dtpArtDue
.
Date
);
XDataWebDataSet1staff_fields_mount_due
.
Value
:=
DateTimeToStr
(
dtpMountDue
.
Date
);
XDataWebDataSet1staff_fields_plate_due
.
Value
:=
DateTimeToStr
(
dtpPlateDue
.
Date
);
XDataWebDataSet1ORDER_DATE
.
Value
:=
dtpOrderDate
.
Date
;
XDataWebDataSet1supplied_by_customer_order_date
.
Value
:=
DateTimeToStr
(
dtpOrderDate
.
Date
);
XDataWebDataSet1proofing_approved_date
.
Value
:=
DateTimeToStr
(
dtpOrderDate
.
Date
);
// Convert all check boxes to strings because the database stores them as strings
if
cbFTP
.
Checked
then
...
...
@@ -293,14 +295,38 @@ begin
XDataWebDataSet1supplied_by_customer_sample_ca
.
AsString
:=
'T'
else
XDataWebDataSet1supplied_by_customer_sample_ca
.
AsString
:=
''
;
if
cbEmail
.
Checked
then
XDataWebDataSet1supplied_by_customer_e_mail
.
AsString
:=
'T'
else
XDataWebDataSet1supplied_by_customer_e_mail
.
AsString
:=
''
;
// layout
if
cbExcaliburDie
.
Checked
then
XDataWebDataSet1layout_excalibur_die
.
AsString
:=
'T'
else
XDataWebDataSet1layout_excalibur_die
.
AsString
:=
''
;
// proofing
if
cbPDFFile
.
Checked
then
XDataWebDataSet1proofing_pdf_file
.
AsString
:=
'T'
else
XDataWebDataSet1proofing_pdf_file
.
AsString
:=
''
;
// Mounting
if
cbStickyBak
.
Checked
then
XDataWebDataSet1mounting_sticky_bak
.
AsString
:=
'T'
else
XDataWebDataSet1mounting_sticky_bak
.
AsString
:=
''
;
if
cbStickyBak
.
Checked
then
XDataWebDataSet1mounting_full_mount
.
AsString
:=
'T'
else
XDataWebDataSet1mounting_full_mount
.
AsString
:=
''
;
XDataWebDataSet1
.
Post
;
XDataWebDataSet1
.
First
;
console
.
log
(
XDataWebDataSet1supplied_by_customer_sample_ca
.
AsString
);
while
not
XDataWebDataSet1
.
Eof
do
begin
for
Field
in
XDataWebDataSet1
.
Fields
do
...
...
@@ -322,7 +348,7 @@ begin
end
;
XDataWebDataSet1
.
Next
;
end
;
orderJSON
.
AddPair
(
'COMPANY_ID'
,
'749'
);
orderJSON
.
AddPair
(
'COMPANY_ID'
,
customerID
);
orderJSON
.
AddPair
(
'USER_ID'
,
'1011'
);
orderJSON
.
AddPair
(
'mode'
,
mode
);
if
mode
=
'EDIT'
then
...
...
@@ -353,7 +379,6 @@ begin
TFOrderEntry
(
AForm
).
customerID
:=
customerInfo
;
TFOrderEntry
(
AForm
).
orderID
:=
orderInfo
;
TFOrderEntry
(
AForm
).
mode
:=
localMode
;
console
.
log
(
TFOrderEntry
(
AForm
).
mode
);
end
;
end
);
...
...
@@ -457,7 +482,9 @@ begin
addColorRow
(
String
(
color
[
'#'
]),
string
(
color
[
'Color'
]),
string
(
color
[
'LPI'
]),
string
(
color
[
'Size'
]));
end
;
end
;
console
.
log
(
XDataWebDataSet1staff_fields_invoice_to
.
AsString
);
// Check boxes and dates need to be manually set
if
not
(
XDataWebDataSet1staff_fields_order_date
.
AsString
=
''
)
then
dtpOrderDate
.
Date
:=
StrToDateTime
(
XDataWebDataSet1staff_fields_order_date
.
Value
)
else
...
...
@@ -486,10 +513,7 @@ begin
dtpApprovedDate
.
Date
:=
StrToDateTime
(
XDataWebDataSet1proofing_approved_date
.
AsString
)
else
dtpApprovedDate
.
Date
:=
0
;
if
XDataWebDataSet1supplied_by_customer_ftp
.
AsString
=
'T'
then
cbFTP
.
Checked
:=
true
else
cbFTP
.
Checked
:=
false
;
if
XDataWebDataSet1supplied_by_customer_existing_
.
AsString
=
'T'
then
cbExistingCuttingDie
.
Checked
:=
true
else
...
...
@@ -502,19 +526,70 @@ begin
cbRefArtPrintCard
.
Checked
:=
true
else
cbRefArtPrintCard
.
Checked
:=
false
;
if
XDataWebDataSet1supplied_by_customer_color_copy
.
AsString
=
'T'
then
// Supplied by customers check boxes
if
XDataWebDataSet1supplied_by_customer_color_copy
.
AsBoolean
then
cbColorCopy
.
Checked
:=
true
else
cbColorCopy
.
checked
:=
false
;
if
XDataWebDataSet1supplied_by_customer_plates
.
AsString
=
'T'
then
console
.
log
(
XDataWebDataSet1supplied_by_customer_ftp
.
AsString
);
if
XDataWebDataSet1supplied_by_customer_ftp
.
AsString
<>
''
then
begin
console
.
log
(
'hit'
);
cbFTP
.
Checked
:=
true
;
console
.
log
(
cbFTP
.
Checked
);
end
else
cbFTP
.
Checked
:=
false
;
if
XDataWebDataSet1supplied_by_customer_plates
.
AsBoolean
then
cbPlates
.
Checked
:=
true
else
cbPlates
.
Checked
:=
false
;
if
XDataWebDataSet1supplied_by_customer_sample_ca
.
AsString
=
'T'
then
if
XDataWebDataSet1supplied_by_customer_sample_ca
.
AsBoolean
then
cbSampleCarton
.
Checked
:=
true
else
cbSampleCarton
.
Checked
:=
false
;
if
XDataWebDataSet1supplied_by_customer_e_mail
.
AsBoolean
then
cbEmail
.
Checked
:=
true
else
cbSampleCarton
.
Checked
:=
false
;
// layout
if
XDataWebDataSet1layout_excalibur_die
.
AsBoolean
then
cbExcaliburDie
.
Checked
:=
true
else
cbExcaliburDie
.
Checked
:=
false
;
// Mounting check boxes
if
XDataWebDataSet1mounting_loose
.
AsString
<>
''
then
cbLoose
.
Checked
:=
true
else
cbLoose
.
Checked
:=
false
;
if
XDataWebDataSet1mounting_sticky_bak
.
AsString
<>
''
then
cbStickyBak
.
Checked
:=
true
else
cbStickyBak
.
Checked
:=
false
;
if
XDataWebDataSet1mounting_full_mount
.
AsString
<>
''
then
cbFullMount
.
Checked
:=
true
else
cbFullMount
.
Checked
:=
false
;
if
XDataWebDataSet1mounting_strip_mount
.
AsString
<>
''
then
cbStripMount
.
Checked
:=
true
else
cbStripMount
.
Checked
:=
false
;
end
;
...
...
@@ -534,8 +609,6 @@ begin
xdwdsShipTo
.
Close
;
xdwdsShipTo
.
SetJSONData
(
customer
[
'ADDRESS_LIST'
]);
xdwdsShipTo
.
Open
;
console
.
log
(
xdwdsShipToADDRESS
.
AsString
);
console
.
log
(
customer
[
'ADDRESS_LIST'
]);
end
;
...
...
@@ -545,7 +618,6 @@ begin
getOrder
(
orderID
)
else
getCustomer
(
customerID
);
console
.
log
(
customerID
);
HideNotification
();
end
;
...
...
kgOrdersServer/Source/Lookup.Service.pas
View file @
1589dd42
...
...
@@ -141,6 +141,7 @@ type
supplied_by_customer_existing_
:
string
;
supplied_by_customer_ref_art_p
:
string
;
supplied_by_customer_ref_art_a
:
string
;
supplied_by_customer_order_date
:
string
;
// Layout
layout_rsc_l
:
string
;
...
...
kgOrdersServer/Source/Lookup.ServiceImpl.pas
View file @
1589dd42
...
...
@@ -383,6 +383,7 @@ begin
result
.
staff_fields_mount_due
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'staff_fields_mount_due'
).
AsString
;
result
.
staff_fields_art_location
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'staff_fields_art_location'
).
AsString
;
result
.
staff_fields_invoice_to
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'staff_fields_invoice_to'
).
AsString
;
result
.
staff_fields_order_date
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'staff_fields_order_date'
).
AsString
;
// Supplied by Customer
if
ordersDB
.
UniQuery1
.
FieldByName
(
'supplied_by_customer_b_w_copy'
).
AsString
=
'T'
then
...
...
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