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
fcb79526
Commit
fcb79526
authored
Oct 14, 2024
by
cam
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rebuilt order entry form to making it easier to submit info to db
parent
26156618
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
1023 additions
and
477 deletions
+1023
-477
View.OrderEntryCorrugated.dfm
kgOrdersClient/View.OrderEntryCorrugated.dfm
+258
-192
View.OrderEntryCorrugated.pas
kgOrdersClient/View.OrderEntryCorrugated.pas
+109
-114
Database.dfm
kgOrdersServer/Source/Database.dfm
+343
-0
Database.pas
kgOrdersServer/Source/Database.pas
+88
-0
Lookup.Service.pas
kgOrdersServer/Source/Lookup.Service.pas
+88
-84
Lookup.ServiceImpl.pas
kgOrdersServer/Source/Lookup.ServiceImpl.pas
+136
-86
kgOrdersServer.ini
kgOrdersServer/kgOrdersServer.ini
+1
-1
No files found.
kgOrdersClient/View.OrderEntryCorrugated.dfm
View file @
fcb79526
...
@@ -246,7 +246,7 @@ object FOrderEntry: TFOrderEntry
...
@@ -246,7 +246,7 @@ object FOrderEntry: TFOrderEntry
HeightPercent = 100.000000000000000000
HeightPercent = 100.000000000000000000
MaxLength = 90
MaxLength = 90
WidthPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = '
companyName
'
DataField = '
NAME
'
DataSource = WebDataSource1
DataSource = WebDataSource1
end
end
object edtCompanyAccountName: TWebDBEdit
object edtCompanyAccountName: TWebDBEdit
...
@@ -258,7 +258,7 @@ object FOrderEntry: TFOrderEntry
...
@@ -258,7 +258,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtaccountcompanyname'
ElementID = 'edtaccountcompanyname'
HeightPercent = 100.000000000000000000
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = '
accountCompanyName
'
DataField = '
SHORT_NAME
'
DataSource = WebDataSource1
DataSource = WebDataSource1
end
end
object edtInQuickBooks: TWebDBEdit
object edtInQuickBooks: TWebDBEdit
...
@@ -282,7 +282,7 @@ object FOrderEntry: TFOrderEntry
...
@@ -282,7 +282,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtshipvia'
ElementID = 'edtshipvia'
HeightPercent = 100.000000000000000000
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = 's
hipV
ia'
DataField = 's
taff_fields_ship_v
ia'
DataSource = WebDataSource1
DataSource = WebDataSource1
end
end
object edtQuantity: TWebDBEdit
object edtQuantity: TWebDBEdit
...
@@ -294,7 +294,7 @@ object FOrderEntry: TFOrderEntry
...
@@ -294,7 +294,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtquantity'
ElementID = 'edtquantity'
HeightPercent = 100.000000000000000000
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = '
Q
uantity'
DataField = '
staff_fields_q
uantity'
DataSource = WebDataSource1
DataSource = WebDataSource1
end
end
object edtPrice: TWebDBEdit
object edtPrice: TWebDBEdit
...
@@ -306,7 +306,7 @@ object FOrderEntry: TFOrderEntry
...
@@ -306,7 +306,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtprice'
ElementID = 'edtprice'
HeightPercent = 100.000000000000000000
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = 'price'
DataField = '
staff_fields_
price'
DataSource = WebDataSource1
DataSource = WebDataSource1
end
end
object edtInvoiceTo: TWebDBEdit
object edtInvoiceTo: TWebDBEdit
...
@@ -318,7 +318,7 @@ object FOrderEntry: TFOrderEntry
...
@@ -318,7 +318,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtinvoiceto'
ElementID = 'edtinvoiceto'
HeightPercent = 100.000000000000000000
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = '
invoiceT
o'
DataField = '
staff_fields_invoice_t
o'
DataSource = WebDataSource1
DataSource = WebDataSource1
end
end
object edtShipTo: TWebDBEdit
object edtShipTo: TWebDBEdit
...
@@ -330,7 +330,7 @@ object FOrderEntry: TFOrderEntry
...
@@ -330,7 +330,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtshipto'
ElementID = 'edtshipto'
HeightPercent = 100.000000000000000000
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = 's
hipT
o'
DataField = 's
taff_fields_ship_t
o'
DataSource = WebDataSource1
DataSource = WebDataSource1
end
end
object edtPONumber: TWebDBEdit
object edtPONumber: TWebDBEdit
...
@@ -342,7 +342,7 @@ object FOrderEntry: TFOrderEntry
...
@@ -342,7 +342,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtponumber'
ElementID = 'edtponumber'
HeightPercent = 100.000000000000000000
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = '
poN
umber'
DataField = '
staff_fields_po_n
umber'
DataSource = WebDataSource1
DataSource = WebDataSource1
end
end
object edtJobName: TWebDBEdit
object edtJobName: TWebDBEdit
...
@@ -354,7 +354,7 @@ object FOrderEntry: TFOrderEntry
...
@@ -354,7 +354,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtjobname'
ElementID = 'edtjobname'
HeightPercent = 100.000000000000000000
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = '
jobN
ame'
DataField = '
staff_fields_job_n
ame'
DataSource = WebDataSource1
DataSource = WebDataSource1
end
end
object edtQuickBooksItem: TWebDBEdit
object edtQuickBooksItem: TWebDBEdit
...
@@ -366,7 +366,7 @@ object FOrderEntry: TFOrderEntry
...
@@ -366,7 +366,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtquickbooksitem'
ElementID = 'edtquickbooksitem'
HeightPercent = 100.000000000000000000
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = '
quickBooksI
tem'
DataField = '
staff_fields_quickbooks_i
tem'
DataSource = WebDataSource1
DataSource = WebDataSource1
end
end
object edtArtLocation: TWebDBEdit
object edtArtLocation: TWebDBEdit
...
@@ -378,7 +378,7 @@ object FOrderEntry: TFOrderEntry
...
@@ -378,7 +378,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtartlocation'
ElementID = 'edtartlocation'
HeightPercent = 100.000000000000000000
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = '
artL
ocation'
DataField = '
staff_fields_art_l
ocation'
DataSource = WebDataSource1
DataSource = WebDataSource1
end
end
object edtDimensionalLayout: TWebDBEdit
object edtDimensionalLayout: TWebDBEdit
...
@@ -390,7 +390,7 @@ object FOrderEntry: TFOrderEntry
...
@@ -390,7 +390,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtdimensionallayout'
ElementID = 'edtdimensionallayout'
HeightPercent = 100.000000000000000000
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = '
dimensionalLayout
'
DataField = '
supplied_by_customer_dimension
'
DataSource = WebDataSource1
DataSource = WebDataSource1
end
end
object edtEmail: TWebDBEdit
object edtEmail: TWebDBEdit
...
@@ -402,7 +402,7 @@ object FOrderEntry: TFOrderEntry
...
@@ -402,7 +402,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtemail'
ElementID = 'edtemail'
HeightPercent = 100.000000000000000000
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = '
e
mail'
DataField = '
supplied_by_customer_e_
mail'
DataSource = WebDataSource1
DataSource = WebDataSource1
end
end
object edtFTP: TWebDBEdit
object edtFTP: TWebDBEdit
...
@@ -414,7 +414,7 @@ object FOrderEntry: TFOrderEntry
...
@@ -414,7 +414,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtftp'
ElementID = 'edtftp'
HeightPercent = 100.000000000000000000
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = 'ftp'
DataField = '
supplied_by_customer_
ftp'
DataSource = WebDataSource1
DataSource = WebDataSource1
end
end
object edtOther: TWebDBEdit
object edtOther: TWebDBEdit
...
@@ -426,7 +426,7 @@ object FOrderEntry: TFOrderEntry
...
@@ -426,7 +426,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtother'
ElementID = 'edtother'
HeightPercent = 100.000000000000000000
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = 'other'
DataField = '
supplied_by_customer_
other'
DataSource = WebDataSource1
DataSource = WebDataSource1
end
end
object edtExistingCuttingDie: TWebDBEdit
object edtExistingCuttingDie: TWebDBEdit
...
@@ -438,7 +438,7 @@ object FOrderEntry: TFOrderEntry
...
@@ -438,7 +438,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtexistingcuttingdie'
ElementID = 'edtexistingcuttingdie'
HeightPercent = 100.000000000000000000
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = '
existingCuttingDie
'
DataField = '
supplied_by_customer_existing_
'
DataSource = WebDataSource1
DataSource = WebDataSource1
end
end
object edtRefArtPrintCard: TWebDBEdit
object edtRefArtPrintCard: TWebDBEdit
...
@@ -450,7 +450,7 @@ object FOrderEntry: TFOrderEntry
...
@@ -450,7 +450,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtrefartprintcard'
ElementID = 'edtrefartprintcard'
HeightPercent = 100.000000000000000000
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = '
refArtPrintCard
'
DataField = '
supplied_by_customer_ref_art_p
'
DataSource = WebDataSource1
DataSource = WebDataSource1
end
end
object edtRefArtAPDF: TWebDBEdit
object edtRefArtAPDF: TWebDBEdit
...
@@ -462,7 +462,7 @@ object FOrderEntry: TFOrderEntry
...
@@ -462,7 +462,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtrefartapdf'
ElementID = 'edtrefartapdf'
HeightPercent = 100.000000000000000000
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = '
refArtA
'
DataField = '
supplied_by_customer_ref_art_a
'
DataSource = WebDataSource1
DataSource = WebDataSource1
end
end
object edtCADFile: TWebDBEdit
object edtCADFile: TWebDBEdit
...
@@ -474,7 +474,7 @@ object FOrderEntry: TFOrderEntry
...
@@ -474,7 +474,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtcadfile'
ElementID = 'edtcadfile'
HeightPercent = 100.000000000000000000
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = '
cadF
ile'
DataField = '
layout_cad_f
ile'
DataSource = WebDataSource1
DataSource = WebDataSource1
end
end
object edtAroundNo: TWebDBEdit
object edtAroundNo: TWebDBEdit
...
@@ -486,7 +486,7 @@ object FOrderEntry: TFOrderEntry
...
@@ -486,7 +486,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtaroundno'
ElementID = 'edtaroundno'
HeightPercent = 100.000000000000000000
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = '
aroundN
o'
DataField = '
layout_around_n
o'
DataSource = WebDataSource1
DataSource = WebDataSource1
end
end
object edtAcrossNo: TWebDBEdit
object edtAcrossNo: TWebDBEdit
...
@@ -498,7 +498,7 @@ object FOrderEntry: TFOrderEntry
...
@@ -498,7 +498,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtacrossno'
ElementID = 'edtacrossno'
HeightPercent = 100.000000000000000000
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = '
acrossN
o'
DataField = '
layout_accross_n
o'
DataSource = WebDataSource1
DataSource = WebDataSource1
end
end
object edtDieCutNo: TWebDBEdit
object edtDieCutNo: TWebDBEdit
...
@@ -510,7 +510,7 @@ object FOrderEntry: TFOrderEntry
...
@@ -510,7 +510,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtdiecutno'
ElementID = 'edtdiecutno'
HeightPercent = 100.000000000000000000
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = '
dieCutN
o'
DataField = '
layout_die_cut_n
o'
DataSource = WebDataSource1
DataSource = WebDataSource1
end
end
object edtRSCD: TWebDBEdit
object edtRSCD: TWebDBEdit
...
@@ -522,7 +522,7 @@ object FOrderEntry: TFOrderEntry
...
@@ -522,7 +522,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtrscd'
ElementID = 'edtrscd'
HeightPercent = 100.000000000000000000
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = '
rsc
d'
DataField = '
layout_rsc_
d'
DataSource = WebDataSource1
DataSource = WebDataSource1
end
end
object edtRSCW: TWebDBEdit
object edtRSCW: TWebDBEdit
...
@@ -534,7 +534,7 @@ object FOrderEntry: TFOrderEntry
...
@@ -534,7 +534,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtrscw'
ElementID = 'edtrscw'
HeightPercent = 100.000000000000000000
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = '
rsc
w'
DataField = '
layout_rsc_
w'
DataSource = WebDataSource1
DataSource = WebDataSource1
end
end
object edtRSCL: TWebDBEdit
object edtRSCL: TWebDBEdit
...
@@ -546,7 +546,7 @@ object FOrderEntry: TFOrderEntry
...
@@ -546,7 +546,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtrscl'
ElementID = 'edtrscl'
HeightPercent = 100.000000000000000000
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = '
rsc
l'
DataField = '
layout_rsc_
l'
DataSource = WebDataSource1
DataSource = WebDataSource1
end
end
object edtCustomAdhesive: TWebDBEdit
object edtCustomAdhesive: TWebDBEdit
...
@@ -558,7 +558,7 @@ object FOrderEntry: TFOrderEntry
...
@@ -558,7 +558,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtcustomadhesive'
ElementID = 'edtcustomadhesive'
HeightPercent = 100.000000000000000000
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = '
customA
dhesive'
DataField = '
mounting_custom_a
dhesive'
DataSource = WebDataSource1
DataSource = WebDataSource1
end
end
object edtCustomBacking: TWebDBEdit
object edtCustomBacking: TWebDBEdit
...
@@ -570,7 +570,7 @@ object FOrderEntry: TFOrderEntry
...
@@ -570,7 +570,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtcustombacking'
ElementID = 'edtcustombacking'
HeightPercent = 100.000000000000000000
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = '
customB
acking'
DataField = '
mounting_custom_b
acking'
DataSource = WebDataSource1
DataSource = WebDataSource1
end
end
object edtStandardSetup: TWebDBEdit
object edtStandardSetup: TWebDBEdit
...
@@ -582,7 +582,7 @@ object FOrderEntry: TFOrderEntry
...
@@ -582,7 +582,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtstandardsetup'
ElementID = 'edtstandardsetup'
HeightPercent = 100.000000000000000000
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = '
standardS
etup'
DataField = '
mounting_standard_s
etup'
DataSource = WebDataSource1
DataSource = WebDataSource1
end
end
object edtStripMount: TWebDBEdit
object edtStripMount: TWebDBEdit
...
@@ -594,7 +594,7 @@ object FOrderEntry: TFOrderEntry
...
@@ -594,7 +594,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtstripmount'
ElementID = 'edtstripmount'
HeightPercent = 100.000000000000000000
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = '
stripM
ount'
DataField = '
mounting_strip_m
ount'
DataSource = WebDataSource1
DataSource = WebDataSource1
end
end
object edtLoose: TWebDBEdit
object edtLoose: TWebDBEdit
...
@@ -606,7 +606,7 @@ object FOrderEntry: TFOrderEntry
...
@@ -606,7 +606,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtloose'
ElementID = 'edtloose'
HeightPercent = 100.000000000000000000
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = 'loose'
DataField = '
mounting_
loose'
DataSource = WebDataSource1
DataSource = WebDataSource1
end
end
object edtRSCStyle: TWebDBEdit
object edtRSCStyle: TWebDBEdit
...
@@ -618,7 +618,7 @@ object FOrderEntry: TFOrderEntry
...
@@ -618,7 +618,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtrscstyle'
ElementID = 'edtrscstyle'
HeightPercent = 100.000000000000000000
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = '
rscS
tyle'
DataField = '
layout_rsc_s
tyle'
DataSource = WebDataSource1
DataSource = WebDataSource1
end
end
object edtProofOther: TWebDBEdit
object edtProofOther: TWebDBEdit
...
@@ -630,7 +630,7 @@ object FOrderEntry: TFOrderEntry
...
@@ -630,7 +630,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtproofother'
ElementID = 'edtproofother'
HeightPercent = 100.000000000000000000
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = 'proof
O
ther'
DataField = 'proof
ing_o
ther'
DataSource = WebDataSource1
DataSource = WebDataSource1
end
end
object edtProofShipTo: TWebDBEdit
object edtProofShipTo: TWebDBEdit
...
@@ -642,7 +642,7 @@ object FOrderEntry: TFOrderEntry
...
@@ -642,7 +642,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtproofshipto'
ElementID = 'edtproofshipto'
HeightPercent = 100.000000000000000000
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = 'proof
ShipT
o'
DataField = 'proof
ing_ship_t
o'
DataSource = WebDataSource1
DataSource = WebDataSource1
end
end
object edtEmailAttn: TWebDBEdit
object edtEmailAttn: TWebDBEdit
...
@@ -654,7 +654,7 @@ object FOrderEntry: TFOrderEntry
...
@@ -654,7 +654,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtemailattn'
ElementID = 'edtemailattn'
HeightPercent = 100.000000000000000000
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = '
emailA
ttn'
DataField = '
proofing_e_mail_a
ttn'
DataSource = WebDataSource1
DataSource = WebDataSource1
end
end
object edtProofEmail: TWebDBEdit
object edtProofEmail: TWebDBEdit
...
@@ -666,7 +666,7 @@ object FOrderEntry: TFOrderEntry
...
@@ -666,7 +666,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtproofemail'
ElementID = 'edtproofemail'
HeightPercent = 100.000000000000000000
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = 'proof
E
mail'
DataField = 'proof
ing_e_
mail'
DataSource = WebDataSource1
DataSource = WebDataSource1
end
end
object edtFaxAttn: TWebDBEdit
object edtFaxAttn: TWebDBEdit
...
@@ -678,7 +678,7 @@ object FOrderEntry: TFOrderEntry
...
@@ -678,7 +678,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtfaxattn'
ElementID = 'edtfaxattn'
HeightPercent = 100.000000000000000000
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = '
faxA
ttn'
DataField = '
proofing_fax_a
ttn'
DataSource = WebDataSource1
DataSource = WebDataSource1
end
end
object edtFax: TWebDBEdit
object edtFax: TWebDBEdit
...
@@ -690,7 +690,7 @@ object FOrderEntry: TFOrderEntry
...
@@ -690,7 +690,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtfax'
ElementID = 'edtfax'
HeightPercent = 100.000000000000000000
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = 'fax'
DataField = '
proofing_
fax'
DataSource = WebDataSource1
DataSource = WebDataSource1
end
end
object edtClemson: TWebDBEdit
object edtClemson: TWebDBEdit
...
@@ -702,7 +702,7 @@ object FOrderEntry: TFOrderEntry
...
@@ -702,7 +702,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtclemson'
ElementID = 'edtclemson'
HeightPercent = 100.000000000000000000
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = 'clemson'
DataField = 'c
olors_c
lemson'
DataSource = WebDataSource1
DataSource = WebDataSource1
end
end
object edtCrossHairs: TWebDBEdit
object edtCrossHairs: TWebDBEdit
...
@@ -714,7 +714,7 @@ object FOrderEntry: TFOrderEntry
...
@@ -714,7 +714,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtcrosshairs'
ElementID = 'edtcrosshairs'
HeightPercent = 100.000000000000000000
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = 'c
rossH
airs'
DataField = 'c
olors_cross_h
airs'
DataSource = WebDataSource1
DataSource = WebDataSource1
end
end
object edtMachineIndent: TWebDBEdit
object edtMachineIndent: TWebDBEdit
...
@@ -726,7 +726,7 @@ object FOrderEntry: TFOrderEntry
...
@@ -726,7 +726,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtmachineindent'
ElementID = 'edtmachineindent'
HeightPercent = 100.000000000000000000
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = '
machineI
dent'
DataField = '
colors_machine_i
dent'
DataSource = WebDataSource1
DataSource = WebDataSource1
end
end
object edtCylinderSize: TWebDBEdit
object edtCylinderSize: TWebDBEdit
...
@@ -738,7 +738,7 @@ object FOrderEntry: TFOrderEntry
...
@@ -738,7 +738,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtcylindersize'
ElementID = 'edtcylindersize'
HeightPercent = 100.000000000000000000
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = 'c
ylinderS
ize'
DataField = 'c
olors_cylinder_s
ize'
DataSource = WebDataSource1
DataSource = WebDataSource1
end
end
object edtJobNumber: TWebDBEdit
object edtJobNumber: TWebDBEdit
...
@@ -750,7 +750,7 @@ object FOrderEntry: TFOrderEntry
...
@@ -750,7 +750,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtjobnumber'
ElementID = 'edtjobnumber'
HeightPercent = 100.000000000000000000
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = '
jobN
umber'
DataField = '
plates_job_n
umber'
DataSource = WebDataSource1
DataSource = WebDataSource1
end
end
object edtPlateMaterial: TWebDBEdit
object edtPlateMaterial: TWebDBEdit
...
@@ -762,7 +762,7 @@ object FOrderEntry: TFOrderEntry
...
@@ -762,7 +762,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtplatematerial'
ElementID = 'edtplatematerial'
HeightPercent = 100.000000000000000000
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = 'plate
M
aterial'
DataField = 'plate
s_plate_m
aterial'
DataSource = WebDataSource1
DataSource = WebDataSource1
end
end
object edtThickness: TWebDBEdit
object edtThickness: TWebDBEdit
...
@@ -774,7 +774,7 @@ object FOrderEntry: TFOrderEntry
...
@@ -774,7 +774,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtThickness'
ElementID = 'edtThickness'
HeightPercent = 100.000000000000000000
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = 'thickness'
DataField = '
plates_
thickness'
DataSource = WebDataSource1
DataSource = WebDataSource1
end
end
object cbArtApprovedAsIs: TWebDBCheckBox
object cbArtApprovedAsIs: TWebDBCheckBox
...
@@ -787,7 +787,7 @@ object FOrderEntry: TFOrderEntry
...
@@ -787,7 +787,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'cbartapprovedasis'
ElementID = 'cbartapprovedasis'
HeightPercent = 100.000000000000000000
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = '
artApprovedAsI
s'
DataField = '
proofing_art_approved_as_i
s'
DataSource = WebDataSource1
DataSource = WebDataSource1
end
end
object cbPDFFile: TWebDBCheckBox
object cbPDFFile: TWebDBCheckBox
...
@@ -800,7 +800,7 @@ object FOrderEntry: TFOrderEntry
...
@@ -800,7 +800,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'cbpdffile'
ElementID = 'cbpdffile'
HeightPercent = 100.000000000000000000
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = 'p
dfF
ile'
DataField = 'p
roofing_pdf_f
ile'
DataSource = WebDataSource1
DataSource = WebDataSource1
end
end
object cbWideFormat: TWebDBCheckBox
object cbWideFormat: TWebDBCheckBox
...
@@ -813,7 +813,7 @@ object FOrderEntry: TFOrderEntry
...
@@ -813,7 +813,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'cbwideformat'
ElementID = 'cbwideformat'
HeightPercent = 100.000000000000000000
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = '
wideF
ormat'
DataField = '
proofing_wide_f
ormat'
DataSource = WebDataSource1
DataSource = WebDataSource1
end
end
object cbPrintCard: TWebDBCheckBox
object cbPrintCard: TWebDBCheckBox
...
@@ -826,7 +826,7 @@ object FOrderEntry: TFOrderEntry
...
@@ -826,7 +826,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'cbprintcard'
ElementID = 'cbprintcard'
HeightPercent = 100.000000000000000000
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = 'pr
intC
ard'
DataField = 'pr
oofing_print_c
ard'
DataSource = WebDataSource1
DataSource = WebDataSource1
end
end
object cbFullSizePanel: TWebDBCheckBox
object cbFullSizePanel: TWebDBCheckBox
...
@@ -839,7 +839,7 @@ object FOrderEntry: TFOrderEntry
...
@@ -839,7 +839,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'cbfullsizepanel'
ElementID = 'cbfullsizepanel'
HeightPercent = 100.000000000000000000
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = '
fullSizeP
anel'
DataField = '
proofing_full_size_p
anel'
DataSource = WebDataSource1
DataSource = WebDataSource1
end
end
object cbStripMount: TWebDBCheckBox
object cbStripMount: TWebDBCheckBox
...
@@ -863,7 +863,7 @@ object FOrderEntry: TFOrderEntry
...
@@ -863,7 +863,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'cbfullmount'
ElementID = 'cbfullmount'
HeightPercent = 100.000000000000000000
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = '
fullM
ount'
DataField = '
mounting_full_m
ount'
DataSource = WebDataSource1
DataSource = WebDataSource1
end
end
object cbStickyBak: TWebDBCheckBox
object cbStickyBak: TWebDBCheckBox
...
@@ -876,7 +876,7 @@ object FOrderEntry: TFOrderEntry
...
@@ -876,7 +876,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'cbstickybak'
ElementID = 'cbstickybak'
HeightPercent = 100.000000000000000000
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = '
stickyB
ak'
DataField = '
mounting_sticky_b
ak'
DataSource = WebDataSource1
DataSource = WebDataSource1
end
end
object WebDBCheckBox9: TWebDBCheckBox
object WebDBCheckBox9: TWebDBCheckBox
...
@@ -901,7 +901,7 @@ object FOrderEntry: TFOrderEntry
...
@@ -901,7 +901,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'cbexcaliburdie'
ElementID = 'cbexcaliburdie'
HeightPercent = 100.000000000000000000
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = '
excaliburD
ie'
DataField = '
layout_excalibur_d
ie'
DataSource = WebDataSource1
DataSource = WebDataSource1
end
end
object cbDiskorCD: TWebDBCheckBox
object cbDiskorCD: TWebDBCheckBox
...
@@ -914,7 +914,7 @@ object FOrderEntry: TFOrderEntry
...
@@ -914,7 +914,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'cbdiskorcd'
ElementID = 'cbdiskorcd'
HeightPercent = 100.000000000000000000
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = '
diskOrCD
'
DataField = '
supplied_by_customer_disk_or_cd
'
DataSource = WebDataSource1
DataSource = WebDataSource1
end
end
object cbSampleCarton: TWebDBCheckBox
object cbSampleCarton: TWebDBCheckBox
...
@@ -927,7 +927,7 @@ object FOrderEntry: TFOrderEntry
...
@@ -927,7 +927,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'cbsimpleCarton'
ElementID = 'cbsimpleCarton'
HeightPercent = 100.000000000000000000
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = 's
ampleCarton
'
DataField = 's
upplied_by_customer_sample_ca
'
DataSource = WebDataSource1
DataSource = WebDataSource1
end
end
object cbPlate: TWebDBCheckBox
object cbPlate: TWebDBCheckBox
...
@@ -940,7 +940,7 @@ object FOrderEntry: TFOrderEntry
...
@@ -940,7 +940,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'cbplates'
ElementID = 'cbplates'
HeightPercent = 100.000000000000000000
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = 'plates'
DataField = '
supplied_by_customer_
plates'
DataSource = WebDataSource1
DataSource = WebDataSource1
end
end
object cbColorCopy: TWebDBCheckBox
object cbColorCopy: TWebDBCheckBox
...
@@ -953,7 +953,7 @@ object FOrderEntry: TFOrderEntry
...
@@ -953,7 +953,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'cbcolorcopy'
ElementID = 'cbcolorcopy'
HeightPercent = 100.000000000000000000
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = '
colorC
opy'
DataField = '
supplied_by_customer_color_c
opy'
DataSource = WebDataSource1
DataSource = WebDataSource1
end
end
object cbBWCopy: TWebDBCheckBox
object cbBWCopy: TWebDBCheckBox
...
@@ -966,7 +966,7 @@ object FOrderEntry: TFOrderEntry
...
@@ -966,7 +966,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'cbbwcopy'
ElementID = 'cbbwcopy'
HeightPercent = 100.000000000000000000
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = '
bwC
opy'
DataField = '
supplied_by_customer_b_w_c
opy'
DataSource = WebDataSource1
DataSource = WebDataSource1
end
end
object edtSpecialInstructions: TWebDBEdit
object edtSpecialInstructions: TWebDBEdit
...
@@ -978,7 +978,7 @@ object FOrderEntry: TFOrderEntry
...
@@ -978,7 +978,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtspecialinstructions'
ElementID = 'edtspecialinstructions'
HeightPercent = 100.000000000000000000
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = '
specialI
nstructions'
DataField = '
general_special_i
nstructions'
DataSource = WebDataSource1
DataSource = WebDataSource1
end
end
object btnConfirm: TWebButton
object btnConfirm: TWebButton
...
@@ -1008,206 +1008,272 @@ object FOrderEntry: TFOrderEntry
...
@@ -1008,206 +1008,272 @@ object FOrderEntry: TFOrderEntry
Connection = DMConnection.ApiConnection
Connection = DMConnection.ApiConnection
Left = 324
Left = 324
Top = 104
Top = 104
object XDataWebDataSet1
Quantity: TString
Field
object XDataWebDataSet1
ORDER_ID: TInteger
Field
FieldName = '
Quantity
'
FieldName = '
ORDER_ID
'
end
end
object XDataWebDataSet1
accountCompanyName: TString
Field
object XDataWebDataSet1
COMPANY_ID: TInteger
Field
FieldName = '
accountCompanyName
'
FieldName = '
COMPANY_ID
'
end
end
object XDataWebDataSet1
acrossNo: TString
Field
object XDataWebDataSet1
USER_ID: TInteger
Field
FieldName = '
acrossNo
'
FieldName = '
USER_ID
'
end
end
object XDataWebDataSet1
approvedDate: TString
Field
object XDataWebDataSet1
ORDER_DATE: TDate
Field
FieldName = '
approvedDate
'
FieldName = '
ORDER_DATE
'
end
end
object XDataWebDataSet1
aroundNo: TString
Field
object XDataWebDataSet1
START_DATE: TDate
Field
FieldName = '
aroundNo
'
FieldName = '
START_DATE
'
end
end
object XDataWebDataSet1
artApprovedAsIs: TBoolean
Field
object XDataWebDataSet1
END_DATE: TDate
Field
FieldName = '
artApprovedAsIs
'
FieldName = '
END_DATE
'
end
end
object XDataWebDataSet1
artDue
: TStringField
object XDataWebDataSet1
ORDER_STATUS
: TStringField
FieldName = '
artDue
'
FieldName = '
ORDER_STATUS
'
end
end
object XDataWebDataSet1
artLocation
: TStringField
object XDataWebDataSet1
SCHED_JSON
: TStringField
FieldName = '
artLocation
'
FieldName = '
SCHED_JSON
'
end
end
object XDataWebDataSet1
bwCopy: TBoolean
Field
object XDataWebDataSet1
NAME: TString
Field
FieldName = '
bwCopy
'
FieldName = '
NAME
'
end
end
object XDataWebDataSet1
cadFile
: TStringField
object XDataWebDataSet1
SHORT_NAME
: TStringField
FieldName = '
cadFile
'
FieldName = '
SHORT_NAME
'
end
end
object XDataWebDataSet1
clemson
: TStringField
object XDataWebDataSet1
staff_fields_ship_via
: TStringField
FieldName = '
clemson
'
FieldName = '
staff_fields_ship_via
'
end
end
object XDataWebDataSet1
companyNam
e: TStringField
object XDataWebDataSet1
staff_fields_pric
e: TStringField
FieldName = '
companyNam
e'
FieldName = '
staff_fields_pric
e'
end
end
object XDataWebDataSet1
crossHairs: TInteger
Field
object XDataWebDataSet1
staff_fields_invoice_to: TString
Field
FieldName = '
crossHairs
'
FieldName = '
staff_fields_invoice_to
'
end
end
object XDataWebDataSet1
customAdhesive
: TStringField
object XDataWebDataSet1
staff_fields_invoice_attention
: TStringField
FieldName = '
customAdhesive
'
FieldName = '
staff_fields_invoice_attention
'
end
end
object XDataWebDataSet1
customBacking
: TStringField
object XDataWebDataSet1
staff_fields_ship_to
: TStringField
FieldName = '
customBacking
'
FieldName = '
staff_fields_ship_to
'
end
end
object XDataWebDataSet1
cylinderSize
: TStringField
object XDataWebDataSet1
staff_fields_ship_attention
: TStringField
FieldName = '
cylinderSize
'
FieldName = '
staff_fields_ship_attention
'
end
end
object XDataWebDataSet1
dieCutNo
: TStringField
object XDataWebDataSet1
staff_fields_po_number
: TStringField
FieldName = '
dieCutNo
'
FieldName = '
staff_fields_po_number
'
end
end
object XDataWebDataSet1
dimensionalLayout
: TStringField
object XDataWebDataSet1
staff_fields_job_name
: TStringField
FieldName = '
dimensionalLayout
'
FieldName = '
staff_fields_job_name
'
end
end
object XDataWebDataSet1
diskOrCD: TBoolean
Field
object XDataWebDataSet1
plates_job_number: TString
Field
FieldName = '
diskOrCD
'
FieldName = '
plates_job_number
'
end
end
object XDataWebDataSet1
email: TString
Field
object XDataWebDataSet1
supplied_by_customer_b_w_copy: TBoolean
Field
FieldName = '
email
'
FieldName = '
supplied_by_customer_b_w_copy
'
end
end
object XDataWebDataSet1
emailAtt
n: TStringField
object XDataWebDataSet1
supplied_by_customer_dimensio
n: TStringField
FieldName = '
emailAtt
n'
FieldName = '
supplied_by_customer_dimensio
n'
end
end
object XDataWebDataSet1
excaliburDie: TBoolean
Field
object XDataWebDataSet1
supplied_by_customer_e_mail: TString
Field
FieldName = '
excaliburDie
'
FieldName = '
supplied_by_customer_e_mail
'
end
end
object XDataWebDataSet1
existingCuttingDie
: TStringField
object XDataWebDataSet1
supplied_by_customer_ftp
: TStringField
FieldName = '
existingCuttingDie
'
FieldName = '
supplied_by_customer_ftp
'
end
end
object XDataWebDataSet1
fax
: TStringField
object XDataWebDataSet1
supplied_by_customer_other
: TStringField
FieldName = '
fax
'
FieldName = '
supplied_by_customer_other
'
end
end
object XDataWebDataSet1
faxAttn
: TStringField
object XDataWebDataSet1
supplied_by_customer_existing_
: TStringField
FieldName = '
faxAttn
'
FieldName = '
supplied_by_customer_existing_
'
end
end
object XDataWebDataSet1
ft
p: TStringField
object XDataWebDataSet1
supplied_by_customer_ref_art_
p: TStringField
FieldName = '
ft
p'
FieldName = '
supplied_by_customer_ref_art_
p'
end
end
object XDataWebDataSet1
fullMount: TBoolean
Field
object XDataWebDataSet1
supplied_by_customer_ref_art_a: TString
Field
FieldName = '
fullMount
'
FieldName = '
supplied_by_customer_ref_art_a
'
end
end
object XDataWebDataSet1
fullSizePanel: TBoolean
Field
object XDataWebDataSet1
cut_die_cutdier: TString
Field
FieldName = '
fullSizePanel
'
FieldName = '
cut_die_cutdier
'
end
end
object XDataWebDataSet1
inQuickBooks
: TStringField
object XDataWebDataSet1
cut_die_cutdieb
: TStringField
FieldName = '
inQuickBooks
'
FieldName = '
cut_die_cutdieb
'
end
end
object XDataWebDataSet1
jobName
: TStringField
object XDataWebDataSet1
cut_die_cutdief
: TStringField
FieldName = '
jobName
'
FieldName = '
cut_die_cutdief
'
end
end
object XDataWebDataSet1
jobNumbe
r: TStringField
object XDataWebDataSet1
cut_die_cutdierk
r: TStringField
FieldName = '
jobNumbe
r'
FieldName = '
cut_die_cutdierk
r'
end
end
object XDataWebDataSet1
loose
: TStringField
object XDataWebDataSet1
cut_die_cutdiefkr
: TStringField
FieldName = '
loose
'
FieldName = '
cut_die_cutdiefkr
'
end
end
object XDataWebDataSet1
machineIdent
: TStringField
object XDataWebDataSet1
cut_die_cad_file
: TStringField
FieldName = '
machineIdent
'
FieldName = '
cut_die_cad_file
'
end
end
object XDataWebDataSet1
mountDue
: TStringField
object XDataWebDataSet1
cut_die_attached
: TStringField
FieldName = '
mountDue
'
FieldName = '
cut_die_attached
'
end
end
object XDataWebDataSet1
orderDate
: TStringField
object XDataWebDataSet1
cut_die_boxpol250
: TStringField
FieldName = '
orderDate
'
FieldName = '
cut_die_boxpol250
'
end
end
object XDataWebDataSet1
other
: TStringField
object XDataWebDataSet1
cut_die_boxpol155
: TStringField
FieldName = '
other
'
FieldName = '
cut_die_boxpol155
'
end
end
object XDataWebDataSet1
pdfFile: TBoolean
Field
object XDataWebDataSet1
cut_die_boxpol125: TString
Field
FieldName = '
pdfFile
'
FieldName = '
cut_die_boxpol125
'
end
end
object XDataWebDataSet1
plateDue
: TStringField
object XDataWebDataSet1
cut_die_brub
: TStringField
FieldName = '
plateDue
'
FieldName = '
cut_die_brub
'
end
end
object XDataWebDataSet1p
lateMaterial
: TStringField
object XDataWebDataSet1p
roofing_fax
: TStringField
FieldName = 'p
lateMaterial
'
FieldName = 'p
roofing_fax
'
end
end
object XDataWebDataSet1p
lates: TBoolean
Field
object XDataWebDataSet1p
roofing_fax_attn: TString
Field
FieldName = 'p
lates
'
FieldName = 'p
roofing_fax_attn
'
end
end
object XDataWebDataSet1pr
intCard: TBoolean
Field
object XDataWebDataSet1pr
oofing_e_mail: TString
Field
FieldName = 'pr
intCard
'
FieldName = 'pr
oofing_e_mail
'
end
end
object XDataWebDataSet1proof
Date
: TStringField
object XDataWebDataSet1proof
ing_ship_to
: TStringField
FieldName = 'proof
Date
'
FieldName = 'proof
ing_ship_to
'
end
end
object XDataWebDataSet1proof
Email
: TStringField
object XDataWebDataSet1proof
ing_other
: TStringField
FieldName = 'proof
Email
'
FieldName = 'proof
ing_other
'
end
end
object XDataWebDataSet1proof
Other
: TStringField
object XDataWebDataSet1proof
ing_changes_required
: TStringField
FieldName = 'proof
Other
'
FieldName = 'proof
ing_changes_required
'
end
end
object XDataWebDataSet1proof
ShipTo: TString
Field
object XDataWebDataSet1proof
ing_changes_date: TDate
Field
FieldName = 'proof
ShipTo
'
FieldName = 'proof
ing_changes_date
'
end
end
object XDataWebDataSet1
quickBooksItem
: TStringField
object XDataWebDataSet1
layout_rsc_l
: TStringField
FieldName = '
quickBooksItem
'
FieldName = '
layout_rsc_l
'
end
end
object XDataWebDataSet1
refArtPrintCard
: TStringField
object XDataWebDataSet1
layout_rcs_w
: TStringField
FieldName = '
refArtPrintCard
'
FieldName = '
layout_rcs_w
'
end
end
object XDataWebDataSet1
rscStyle
: TStringField
object XDataWebDataSet1
layout_rcs_d
: TStringField
FieldName = '
rscStyle
'
FieldName = '
layout_rcs_d
'
end
end
object XDataWebDataSet1
rscd
: TStringField
object XDataWebDataSet1
layout_die_cut_no
: TStringField
FieldName = '
rscd
'
FieldName = '
layout_die_cut_no
'
end
end
object XDataWebDataSet1
rescl
: TStringField
object XDataWebDataSet1
layout_accross_no
: TStringField
FieldName = '
rescl
'
FieldName = '
layout_accross_no
'
end
end
object XDataWebDataSet1
rscw
: TStringField
object XDataWebDataSet1
layout_around_no
: TStringField
FieldName = '
rscw
'
FieldName = '
layout_around_no
'
end
end
object XDataWebDataSet1
sampleCarton: TBoolean
Field
object XDataWebDataSet1
layout_cad_file: TString
Field
FieldName = '
sampleCarton
'
FieldName = '
layout_cad_file
'
end
end
object XDataWebDataSet1
shipDate
: TStringField
object XDataWebDataSet1
mounting_standard_setup
: TStringField
FieldName = '
shipDate
'
FieldName = '
mounting_standard_setup
'
end
end
object XDataWebDataSet1
shipTo
: TStringField
object XDataWebDataSet1
mounting_custom_backing
: TStringField
FieldName = '
shipTo
'
FieldName = '
mounting_custom_backing
'
end
end
object XDataWebDataSet1
shipVia
: TStringField
object XDataWebDataSet1
mounting_custom_adhesive
: TStringField
FieldName = '
shipVia
'
FieldName = '
mounting_custom_adhesive
'
end
end
object XDataWebDataSet1
specialInstructions
: TStringField
object XDataWebDataSet1
colors_cylinder_size
: TStringField
FieldName = '
specialInstructions
'
FieldName = '
colors_cylinder_size
'
end
end
object XDataWebDataSet1
standardSetup
: TStringField
object XDataWebDataSet1
colors_cross_hairs
: TStringField
FieldName = '
standardSetup
'
FieldName = '
colors_cross_hairs
'
end
end
object XDataWebDataSet1
stickyBak: TBoolean
Field
object XDataWebDataSet1
colors_machine_ident: TString
Field
FieldName = '
stickyBak
'
FieldName = '
colors_machine_ident
'
end
end
object XDataWebDataSet1
stripMount
: TStringField
object XDataWebDataSet1
colors_clemson
: TStringField
FieldName = '
stripMount
'
FieldName = '
colors_clemson
'
end
end
object XDataWebDataSet1thickness: TStringField
object XDataWebDataSet1
plates_
thickness: TStringField
FieldName = 'thickness'
FieldName = '
plates_
thickness'
end
end
object XDataWebDataSet1
wideFormat
: TStringField
object XDataWebDataSet1
plates_plate_material
: TStringField
FieldName = '
wideFormat
'
FieldName = '
plates_plate_material
'
end
end
object XDataWebDataSet1
price
: TStringField
object XDataWebDataSet1
general_special_instructions
: TStringField
FieldName = '
price
'
FieldName = '
general_special_instructions
'
end
end
object XDataWebDataSet1
invoiceTo
: TStringField
object XDataWebDataSet1
colors_colors
: TStringField
FieldName = '
invoiceTo
'
FieldName = '
colors_colors
'
end
end
object XDataWebDataSet1
colorCopy: TBoolean
Field
object XDataWebDataSet1
staff_fields_quickbooks_item: TString
Field
FieldName = '
colorCopy
'
FieldName = '
staff_fields_quickbooks_item
'
end
end
object XDataWebDataSet1
refArtAPDF
: TStringField
object XDataWebDataSet1
staff_fields_quantity
: TStringField
FieldName = '
refArtAPDF
'
FieldName = '
staff_fields_quantity
'
end
end
object XDataWebDataSet1
poNumber
: TStringField
object XDataWebDataSet1
layout_rsc_style
: TStringField
FieldName = '
poNumber
'
FieldName = '
layout_rsc_style
'
end
end
object XDataWebDataSet1colors: TStringField
object XDataWebDataSet1staff_fields_art_location: TStringField
FieldName = 'colors'
FieldName = 'staff_fields_art_location'
end
object XDataWebDataSet1supplied_by_customer_color_copy: TBooleanField
FieldName = 'supplied_by_customer_color_copy'
end
object XDataWebDataSet1supplied_by_customer_plates: TBooleanField
FieldName = 'supplied_by_customer_plates'
end
object XDataWebDataSet1supplied_by_customer_sample_ca: TBooleanField
FieldName = 'supplied_by_customer_sample_ca'
end
object XDataWebDataSet1supplied_by_customer_disk_or_cd: TBooleanField
FieldName = 'supplied_by_customer_disk_or_cd'
end
object XDataWebDataSet1mounting_loose: TStringField
FieldName = 'mounting_loose'
end
object XDataWebDataSet1mounting_sticky_bak: TBooleanField
FieldName = 'mounting_sticky_bak'
end
object XDataWebDataSet1mounting_full_mount: TBooleanField
FieldName = 'mounting_full_mount'
end
object XDataWebDataSet1mounting_strip_mount: TStringField
FieldName = 'mounting_strip_mount'
end
object XDataWebDataSet1layout_excalibur_die: TBooleanField
FieldName = 'layout_excalibur_die'
end
object XDataWebDataSet1proofing_full_size_panel: TBooleanField
FieldName = 'proofing_full_size_panel'
end
object XDataWebDataSet1proofing_print_card: TBooleanField
FieldName = 'proofing_print_card'
end
object XDataWebDataSet1proofing_wide_format: TBooleanField
FieldName = 'proofing_wide_format'
end
object XDataWebDataSet1proofing_pdf_file: TBooleanField
FieldName = 'proofing_pdf_file'
end
object XDataWebDataSet1proofing_art_approved_as_is: TBooleanField
FieldName = 'proofing_art_approved_as_is'
end
object XDataWebDataSet1proofing_e_mail_attn: TStringField
FieldName = 'proofing_e_mail_attn'
end
object XDataWebDataSet1proofing_approved_date: TStringField
FieldName = 'proofing_approved_date'
end
object XDataWebDataSet1staff_fields_order_date: TStringField
FieldName = 'staff_fields_order_date'
end
object XDataWebDataSet1staff_fields_proof_date: TStringField
FieldName = 'staff_fields_proof_date'
end
object XDataWebDataSet1staff_fields_ship_date: TStringField
FieldName = 'staff_fields_ship_date'
end
object XDataWebDataSet1staff_fields_art_due: TStringField
FieldName = 'staff_fields_art_due'
end
object XDataWebDataSet1staff_fields_plate_due: TStringField
FieldName = 'staff_fields_plate_due'
end
object XDataWebDataSet1staff_fields_mount_due: TStringField
FieldName = 'staff_fields_mount_due'
end
end
end
end
object WebDataSource1: TWebDataSource
object WebDataSource1: TWebDataSource
...
...
kgOrdersClient/View.OrderEntryCorrugated.pas
View file @
fcb79526
...
@@ -96,74 +96,96 @@ type
...
@@ -96,74 +96,96 @@ type
tmrScrollTop
:
TWebTimer
;
tmrScrollTop
:
TWebTimer
;
XDataWebDataSet1
:
TXDataWebDataSet
;
XDataWebDataSet1
:
TXDataWebDataSet
;
WebDataSource1
:
TWebDataSource
;
WebDataSource1
:
TWebDataSource
;
XDataWebDataSet1Quantity
:
TStringField
;
XDataWebDataSet1accountCompanyName
:
TStringField
;
XDataWebDataSet1acrossNo
:
TStringField
;
XDataWebDataSet1approvedDate
:
TStringField
;
XDataWebDataSet1aroundNo
:
TStringField
;
XDataWebDataSet1artApprovedAsIs
:
TBooleanField
;
XDataWebDataSet1artDue
:
TStringField
;
XDataWebDataSet1artLocation
:
TStringField
;
XDataWebDataSet1bwCopy
:
TBooleanField
;
XDataWebDataSet1cadFile
:
TStringField
;
XDataWebDataSet1clemson
:
TStringField
;
XDataWebDataSet1companyName
:
TStringField
;
XDataWebDataSet1crossHairs
:
TIntegerField
;
XDataWebDataSet1customAdhesive
:
TStringField
;
XDataWebDataSet1customBacking
:
TStringField
;
XDataWebDataSet1cylinderSize
:
TStringField
;
XDataWebDataSet1dieCutNo
:
TStringField
;
XDataWebDataSet1dimensionalLayout
:
TStringField
;
XDataWebDataSet1diskOrCD
:
TBooleanField
;
XDataWebDataSet1email
:
TStringField
;
XDataWebDataSet1emailAttn
:
TStringField
;
XDataWebDataSet1excaliburDie
:
TBooleanField
;
XDataWebDataSet1existingCuttingDie
:
TStringField
;
XDataWebDataSet1fax
:
TStringField
;
XDataWebDataSet1faxAttn
:
TStringField
;
XDataWebDataSet1ftp
:
TStringField
;
XDataWebDataSet1fullMount
:
TBooleanField
;
XDataWebDataSet1fullSizePanel
:
TBooleanField
;
XDataWebDataSet1inQuickBooks
:
TStringField
;
XDataWebDataSet1jobName
:
TStringField
;
XDataWebDataSet1jobNumber
:
TStringField
;
XDataWebDataSet1loose
:
TStringField
;
XDataWebDataSet1machineIdent
:
TStringField
;
XDataWebDataSet1mountDue
:
TStringField
;
XDataWebDataSet1orderDate
:
TStringField
;
XDataWebDataSet1other
:
TStringField
;
XDataWebDataSet1pdfFile
:
TBooleanField
;
XDataWebDataSet1plateDue
:
TStringField
;
XDataWebDataSet1plateMaterial
:
TStringField
;
XDataWebDataSet1plates
:
TBooleanField
;
XDataWebDataSet1printCard
:
TBooleanField
;
XDataWebDataSet1proofDate
:
TStringField
;
XDataWebDataSet1proofEmail
:
TStringField
;
XDataWebDataSet1proofOther
:
TStringField
;
XDataWebDataSet1proofShipTo
:
TStringField
;
XDataWebDataSet1quickBooksItem
:
TStringField
;
XDataWebDataSet1refArtPrintCard
:
TStringField
;
XDataWebDataSet1rscStyle
:
TStringField
;
XDataWebDataSet1rscd
:
TStringField
;
XDataWebDataSet1rescl
:
TStringField
;
XDataWebDataSet1rscw
:
TStringField
;
XDataWebDataSet1sampleCarton
:
TBooleanField
;
XDataWebDataSet1shipDate
:
TStringField
;
XDataWebDataSet1shipTo
:
TStringField
;
XDataWebDataSet1shipVia
:
TStringField
;
XDataWebDataSet1specialInstructions
:
TStringField
;
XDataWebDataSet1standardSetup
:
TStringField
;
XDataWebDataSet1stickyBak
:
TBooleanField
;
XDataWebDataSet1stripMount
:
TStringField
;
XDataWebDataSet1thickness
:
TStringField
;
XDataWebDataSet1wideFormat
:
TStringField
;
XDataWebDataSet1price
:
TStringField
;
XDataWebDataSet1invoiceTo
:
TStringField
;
XDataWebDataSet1colorCopy
:
TBooleanField
;
XDataWebDataSet1refArtAPDF
:
TStringField
;
XDataWebDataSet1poNumber
:
TStringField
;
XDataWebDataSet1colors
:
TStringField
;
btnConfirm
:
TWebButton
;
btnConfirm
:
TWebButton
;
XDataWebDataSet1ORDER_ID
:
TIntegerField
;
XDataWebDataSet1COMPANY_ID
:
TIntegerField
;
XDataWebDataSet1USER_ID
:
TIntegerField
;
XDataWebDataSet1ORDER_STATUS
:
TStringField
;
XDataWebDataSet1SCHED_JSON
:
TStringField
;
XDataWebDataSet1staff_fields_ship_via
:
TStringField
;
XDataWebDataSet1staff_fields_price
:
TStringField
;
XDataWebDataSet1staff_fields_invoice_to
:
TStringField
;
XDataWebDataSet1staff_fields_invoice_attention
:
TStringField
;
XDataWebDataSet1staff_fields_ship_to
:
TStringField
;
XDataWebDataSet1staff_fields_ship_attention
:
TStringField
;
XDataWebDataSet1staff_fields_po_number
:
TStringField
;
XDataWebDataSet1staff_fields_job_name
:
TStringField
;
XDataWebDataSet1ORDER_DATE
:
TDateField
;
XDataWebDataSet1START_DATE
:
TDateField
;
XDataWebDataSet1END_DATE
:
TDateField
;
XDataWebDataSet1plates_job_number
:
TStringField
;
XDataWebDataSet1supplied_by_customer_dimension
:
TStringField
;
XDataWebDataSet1supplied_by_customer_e_mail
:
TStringField
;
XDataWebDataSet1supplied_by_customer_ftp
:
TStringField
;
XDataWebDataSet1supplied_by_customer_other
:
TStringField
;
XDataWebDataSet1supplied_by_customer_existing_
:
TStringField
;
XDataWebDataSet1supplied_by_customer_ref_art_p
:
TStringField
;
XDataWebDataSet1supplied_by_customer_ref_art_a
:
TStringField
;
XDataWebDataSet1cut_die_cutdier
:
TStringField
;
XDataWebDataSet1cut_die_cutdieb
:
TStringField
;
XDataWebDataSet1cut_die_cutdief
:
TStringField
;
XDataWebDataSet1cut_die_cutdierkr
:
TStringField
;
XDataWebDataSet1cut_die_cutdiefkr
:
TStringField
;
XDataWebDataSet1cut_die_cad_file
:
TStringField
;
XDataWebDataSet1cut_die_attached
:
TStringField
;
XDataWebDataSet1cut_die_boxpol250
:
TStringField
;
XDataWebDataSet1cut_die_boxpol155
:
TStringField
;
XDataWebDataSet1cut_die_boxpol125
:
TStringField
;
XDataWebDataSet1cut_die_brub
:
TStringField
;
XDataWebDataSet1proofing_fax
:
TStringField
;
XDataWebDataSet1proofing_fax_attn
:
TStringField
;
XDataWebDataSet1proofing_e_mail
:
TStringField
;
XDataWebDataSet1proofing_ship_to
:
TStringField
;
XDataWebDataSet1proofing_other
:
TStringField
;
XDataWebDataSet1proofing_changes_required
:
TStringField
;
XDataWebDataSet1proofing_changes_date
:
TDateField
;
XDataWebDataSet1layout_rsc_l
:
TStringField
;
XDataWebDataSet1layout_rcs_w
:
TStringField
;
XDataWebDataSet1layout_rcs_d
:
TStringField
;
XDataWebDataSet1layout_die_cut_no
:
TStringField
;
XDataWebDataSet1layout_accross_no
:
TStringField
;
XDataWebDataSet1layout_around_no
:
TStringField
;
XDataWebDataSet1layout_cad_file
:
TStringField
;
XDataWebDataSet1colors_cylinder_size
:
TStringField
;
XDataWebDataSet1colors_machine_ident
:
TStringField
;
XDataWebDataSet1mounting_standard_setup
:
TStringField
;
XDataWebDataSet1mounting_custom_backing
:
TStringField
;
XDataWebDataSet1mounting_custom_adhesive
:
TStringField
;
XDataWebDataSet1colors_cross_hairs
:
TStringField
;
XDataWebDataSet1colors_clemson
:
TStringField
;
XDataWebDataSet1plates_thickness
:
TStringField
;
XDataWebDataSet1plates_plate_material
:
TStringField
;
XDataWebDataSet1general_special_instructions
:
TStringField
;
XDataWebDataSet1colors_colors
:
TStringField
;
XDataWebDataSet1staff_fields_quickbooks_item
:
TStringField
;
XDataWebDataSet1staff_fields_quantity
:
TStringField
;
XDataWebDataSet1layout_rsc_style
:
TStringField
;
XDataWebDataSet1staff_fields_art_location
:
TStringField
;
XDataWebDataSet1NAME
:
TStringField
;
XDataWebDataSet1SHORT_NAME
:
TStringField
;
XDataWebDataSet1supplied_by_customer_b_w_copy
:
TBooleanField
;
XDataWebDataSet1supplied_by_customer_color_copy
:
TBooleanField
;
XDataWebDataSet1supplied_by_customer_plates
:
TBooleanField
;
XDataWebDataSet1supplied_by_customer_sample_ca
:
TBooleanField
;
XDataWebDataSet1supplied_by_customer_disk_or_cd
:
TBooleanField
;
XDataWebDataSet1mounting_loose
:
TStringField
;
XDataWebDataSet1mounting_sticky_bak
:
TBooleanField
;
XDataWebDataSet1mounting_full_mount
:
TBooleanField
;
XDataWebDataSet1mounting_strip_mount
:
TStringField
;
XDataWebDataSet1layout_excalibur_die
:
TBooleanField
;
XDataWebDataSet1proofing_full_size_panel
:
TBooleanField
;
XDataWebDataSet1proofing_print_card
:
TBooleanField
;
XDataWebDataSet1proofing_wide_format
:
TBooleanField
;
XDataWebDataSet1proofing_pdf_file
:
TBooleanField
;
XDataWebDataSet1proofing_art_approved_as_is
:
TBooleanField
;
XDataWebDataSet1proofing_e_mail_attn
:
TStringField
;
XDataWebDataSet1proofing_approved_date
:
TStringField
;
XDataWebDataSet1staff_fields_order_date
:
TStringField
;
XDataWebDataSet1staff_fields_proof_date
:
TStringField
;
XDataWebDataSet1staff_fields_ship_date
:
TStringField
;
XDataWebDataSet1staff_fields_art_due
:
TStringField
;
XDataWebDataSet1staff_fields_plate_due
:
TStringField
;
XDataWebDataSet1staff_fields_mount_due
:
TStringField
;
procedure
WebFormCreate
(
Sender
:
TObject
);
procedure
WebFormCreate
(
Sender
:
TObject
);
procedure
HideNotification
();
procedure
HideNotification
();
procedure
ShowNotification
(
Notification
:
string
);
procedure
ShowNotification
(
Notification
:
string
);
...
@@ -195,7 +217,7 @@ uses
...
@@ -195,7 +217,7 @@ uses
procedure
TFOrderEntry
.
btnConfirmClick
(
Sender
:
TObject
);
procedure
TFOrderEntry
.
btnConfirmClick
(
Sender
:
TObject
);
var
var
colorList
:
T
List
<
TJSONObject
>
;
colorList
:
T
JSONArray
;
container
:
TJSElement
;
container
:
TJSElement
;
colorCollection
:
TJSHTMLCollection
;
colorCollection
:
TJSHTMLCollection
;
color
:
TJSHTMLElement
;
color
:
TJSHTMLElement
;
...
@@ -206,7 +228,7 @@ var
...
@@ -206,7 +228,7 @@ var
header
,
value
:
string
;
header
,
value
:
string
;
begin
begin
//TJSONObject.Create;
//TJSONObject.Create;
colorList
:=
T
List
<
TJSONObject
>
.
Create
;
colorList
:=
T
JSONArray
.
Create
;
container
:=
document
.
getElementById
(
'additionalFields'
);
container
:=
document
.
getElementById
(
'additionalFields'
);
colorCollection
:=
container
.
children
;
colorCollection
:=
container
.
children
;
for
I
:=
0
to
colorCollection
.
length
-
1
do
for
I
:=
0
to
colorCollection
.
length
-
1
do
...
@@ -220,37 +242,9 @@ begin
...
@@ -220,37 +242,9 @@ begin
value
:=
TJSHTMLInputElement
(
TJSHTMLElement
(
itemList
[
J
]).
childNodes
[
1
]).
value
;
value
:=
TJSHTMLInputElement
(
TJSHTMLElement
(
itemList
[
J
]).
childNodes
[
1
]).
value
;
colorJSON
.
AddPair
(
header
,
value
);
colorJSON
.
AddPair
(
header
,
value
);
end
;
end
;
colorList
.
Add
(
colorJ
son
);
colorList
.
Add
(
colorJ
SON
);
end
;
end
;
for
colorJSON
in
colorList
do
console
.
log
(
colorList
.
ToString
);
begin
console
.
log
(
colorJSON
.
ToString
);
// Log each JSON object
end
;
//XDataWebDataSet1.Insert;
//XDataWebDataSet1colors.AsString := ' ';
//XDataWebDataSet1.Post;
{asm
const container = document.getElementById('additionalFields');
const rows = container.children;
const inputData = [];
for (let i = 0; i < rows.length; i++) {
const inputs = rows[i].getElementsByTagName('input');
const rowData = {}
;
{for (let j = 0; j < inputs.length; j++) {
const label = inputs[j].previousElementSibling.textContent.replace(':', '').trim();
rowData[label] = inputs[j].value;
}
{inputData.push(rowData);
}
{console.log(inputData);
end;}
end
;
end
;
class
function
TFOrderEntry
.
CreateForm
(
AElementID
,
orderInfo
:
string
):
TWebForm
;
class
function
TFOrderEntry
.
CreateForm
(
AElementID
,
orderInfo
:
string
):
TWebForm
;
...
@@ -355,7 +349,8 @@ begin
...
@@ -355,7 +349,8 @@ begin
XDataWebDataSet1
.
Close
;
XDataWebDataSet1
.
Close
;
XDataWebDataSet1
.
SetJsonData
(
order
);
XDataWebDataSet1
.
SetJsonData
(
order
);
XDataWebDataSet1
.
Open
;
XDataWebDataSet1
.
Open
;
colorObject
:=
TJSObject
(
TJSJSON
.
parse
(
XDataWebDataSet1colors
.
Value
));
colorObject
:=
TJSObject
(
TJSJSON
.
parse
(
XDataWebDataSet1colors_colors
.
Value
));
console
.
log
(
order
);
colorList
:=
TJSArray
(
colorObject
[
'items'
]);
colorList
:=
TJSArray
(
colorObject
[
'items'
]);
colorLength
:=
colorList
.
length
;
colorLength
:=
colorList
.
length
;
for
i
:=
0
to
colorLength
-
1
do
for
i
:=
0
to
colorLength
-
1
do
...
@@ -363,20 +358,20 @@ begin
...
@@ -363,20 +358,20 @@ begin
color
:=
TJSObject
(
colorList
[
i
]);
color
:=
TJSObject
(
colorList
[
i
]);
addColorRow
(
String
(
color
[
'#'
]),
string
(
color
[
'Color'
]),
string
(
color
[
'LPI'
]),
string
(
color
[
'Size'
]));
addColorRow
(
String
(
color
[
'#'
]),
string
(
color
[
'Color'
]),
string
(
color
[
'LPI'
]),
string
(
color
[
'Size'
]));
end
;
end
;
if
not
(
XDataWebDataSet1
orderD
ate
.
AsString
=
''
)
then
if
not
(
XDataWebDataSet1
staff_fields_order_d
ate
.
AsString
=
''
)
then
dtpOrderDate
.
Date
:=
StrToDateTime
(
XDataWebDataSet1
orderD
ate
.
Value
);
dtpOrderDate
.
Date
:=
StrToDateTime
(
XDataWebDataSet1
staff_fields_order_d
ate
.
Value
);
if
not
(
XDataWebDataSet1
proofD
ate
.
AsString
=
''
)
then
if
not
(
XDataWebDataSet1
staff_fields_proof_d
ate
.
AsString
=
''
)
then
dtpProofDate
.
Date
:=
StrToDateTime
(
XDataWebDataSet1
proofDate
.
Value
);
dtpProofDate
.
Date
:=
StrToDateTime
(
XDataWebDataSet1
staff_fields_proof_date
.
AsString
);
if
not
(
XDataWebDataSet1s
hipD
ate
.
AsString
=
''
)
then
if
not
(
XDataWebDataSet1s
taff_fields_ship_d
ate
.
AsString
=
''
)
then
dtpShipDate
.
Date
:=
StrToDateTime
(
XDataWebDataSet1s
hipDate
.
Value
);
dtpShipDate
.
Date
:=
StrToDateTime
(
XDataWebDataSet1s
taff_fields_ship_date
.
AsString
);
if
not
(
XDataWebDataSet1
artD
ue
.
AsString
=
''
)
then
if
not
(
XDataWebDataSet1
staff_fields_art_d
ue
.
AsString
=
''
)
then
dtpArtDue
.
Date
:=
StrToDateTime
(
XDataWebDataSet1
artDue
.
Value
);
dtpArtDue
.
Date
:=
StrToDateTime
(
XDataWebDataSet1
staff_fields_art_due
.
AsString
);
if
not
(
XDataWebDataSet1
plateD
ue
.
AsString
=
''
)
then
if
not
(
XDataWebDataSet1
staff_fields_plate_d
ue
.
AsString
=
''
)
then
dtpPlateDue
.
Date
:=
StrToDateTime
(
XDataWebDataSet1
plateDue
.
Value
);
dtpPlateDue
.
Date
:=
StrToDateTime
(
XDataWebDataSet1
staff_fields_plate_due
.
AsString
);
if
not
(
XDataWebDataSet1
mountD
ue
.
AsString
=
''
)
then
if
not
(
XDataWebDataSet1
staff_fields_mount_d
ue
.
AsString
=
''
)
then
dtpMountDue
.
Date
:=
StrToDateTime
(
XDataWebDataSet1
mountDue
.
Value
);
dtpMountDue
.
Date
:=
StrToDateTime
(
XDataWebDataSet1
staff_fields_mount_due
.
AsString
);
if
not
(
XDataWebDataSet1
approvedD
ate
.
AsString
=
''
)
then
if
not
(
XDataWebDataSet1
proofing_approved_d
ate
.
AsString
=
''
)
then
dtpApprovedDate
.
Date
:=
StrToDateTime
(
XDataWebDataSet1
approvedDate
.
Value
)
dtpApprovedDate
.
Date
:=
StrToDateTime
(
XDataWebDataSet1
proofing_approved_date
.
AsString
)
else
else
dtpApprovedDate
.
Date
:=
Now
;
dtpApprovedDate
.
Date
:=
Now
;
end
;
end
;
...
...
kgOrdersServer/Source/Database.dfm
View file @
fcb79526
...
@@ -33,4 +33,347 @@ object FDatabaseModule: TFDatabaseModule
...
@@ -33,4 +33,347 @@ object FDatabaseModule: TFDatabaseModule
Left = 433
Left = 433
Top = 144
Top = 144
end
end
object uqOrders: TUniQuery
Connection = ucKG
SQL.Strings = (
'select * from corrugated_plate_orders')
Left = 527
Top = 120
object uqOrdersORDER_ID: TIntegerField
FieldName = 'ORDER_ID'
end
object uqOrdersCOMPANY_ID: TIntegerField
FieldName = 'COMPANY_ID'
Required = True
end
object uqOrdersUSER_ID: TIntegerField
FieldName = 'USER_ID'
Required = True
end
object uqOrdersORDER_DATE: TDateTimeField
FieldName = 'ORDER_DATE'
end
object uqOrdersSTART_DATE: TDateField
FieldName = 'START_DATE'
end
object uqOrdersEND_DATE: TDateField
FieldName = 'END_DATE'
end
object uqOrdersORDER_STATUS: TStringField
FieldName = 'ORDER_STATUS'
Size = 10
end
object uqOrdersSCHED_JSON: TStringField
FieldName = 'SCHED_JSON'
Size = 4096
end
object uqOrdersstaff_fields_order_date: TDateField
FieldName = 'staff_fields_order_date'
end
object uqOrdersstaff_fields_proof_date: TDateField
FieldName = 'staff_fields_proof_date'
end
object uqOrdersstaff_fields_ship_date: TDateField
FieldName = 'staff_fields_ship_date'
end
object uqOrdersstaff_fields_ship_via: TStringField
FieldName = 'staff_fields_ship_via'
Size = 45
end
object uqOrdersstaff_fields_price: TStringField
FieldName = 'staff_fields_price'
Size = 10
end
object uqOrdersstaff_fields_invoice_to: TStringField
FieldName = 'staff_fields_invoice_to'
Size = 128
end
object uqOrdersstaff_fields_invoice_attention: TStringField
FieldName = 'staff_fields_invoice_attention'
Size = 256
end
object uqOrdersstaff_fields_ship_to: TStringField
FieldName = 'staff_fields_ship_to'
Size = 128
end
object uqOrdersstaff_fields_ship_attention: TStringField
FieldName = 'staff_fields_ship_attention'
Size = 256
end
object uqOrdersstaff_fields_po_number: TStringField
FieldName = 'staff_fields_po_number'
Size = 16
end
object uqOrdersstaff_fields_job_name: TStringField
FieldName = 'staff_fields_job_name'
Size = 45
end
object uqOrdersstaff_fields_art_due: TDateField
FieldName = 'staff_fields_art_due'
end
object uqOrdersstaff_fields_plate_due: TDateField
FieldName = 'staff_fields_plate_due'
end
object uqOrdersstaff_fields_mount_due: TDateField
FieldName = 'staff_fields_mount_due'
end
object uqOrdersplates_job_number: TStringField
FieldName = 'plates_job_number'
Size = 16
end
object uqOrderssupplied_by_customer_b_w_copy: TStringField
FieldName = 'supplied_by_customer_b_w_copy'
Size = 1
end
object uqOrderssupplied_by_customer_color_copy: TStringField
FieldName = 'supplied_by_customer_color_copy'
Size = 1
end
object uqOrderssupplied_by_customer_plates: TStringField
FieldName = 'supplied_by_customer_plates'
Size = 1
end
object uqOrderssupplied_by_customer_sample_ca: TStringField
FieldName = 'supplied_by_customer_sample_ca'
Size = 1
end
object uqOrderssupplied_by_customer_dimension: TStringField
FieldName = 'supplied_by_customer_dimension'
Size = 64
end
object uqOrderssupplied_by_customer_disk_or_cd: TStringField
FieldName = 'supplied_by_customer_disk_or_cd'
Size = 1
end
object uqOrderssupplied_by_customer_e_mail: TStringField
FieldName = 'supplied_by_customer_e_mail'
Size = 256
end
object uqOrderssupplied_by_customer_ftp: TStringField
FieldName = 'supplied_by_customer_ftp'
Size = 256
end
object uqOrderssupplied_by_customer_other: TStringField
FieldName = 'supplied_by_customer_other'
Size = 96
end
object uqOrderssupplied_by_customer_existing_: TStringField
FieldName = 'supplied_by_customer_existing_'
Size = 16
end
object uqOrderssupplied_by_customer_ref_art_p: TStringField
FieldName = 'supplied_by_customer_ref_art_p'
Size = 256
end
object uqOrderssupplied_by_customer_ref_art_a: TStringField
FieldName = 'supplied_by_customer_ref_art_a'
Size = 256
end
object uqOrderscut_die_cutdier: TStringField
FieldName = 'cut_die_cutdier'
Size = 10
end
object uqOrderscut_die_cutdieb: TStringField
FieldName = 'cut_die_cutdieb'
Size = 10
end
object uqOrderscut_die_cutdief: TStringField
FieldName = 'cut_die_cutdief'
Size = 10
end
object uqOrderscut_die_cutdierkr: TStringField
FieldName = 'cut_die_cutdierkr'
Size = 10
end
object uqOrderscut_die_cutdiefkr: TStringField
FieldName = 'cut_die_cutdiefkr'
Size = 10
end
object uqOrderscut_die_cad_file: TStringField
FieldName = 'cut_die_cad_file'
Size = 128
end
object uqOrderscut_die_attached: TStringField
FieldName = 'cut_die_attached'
Size = 1
end
object uqOrderscut_die_boxpol250: TStringField
FieldName = 'cut_die_boxpol250'
Size = 10
end
object uqOrderscut_die_boxpol155: TStringField
FieldName = 'cut_die_boxpol155'
Size = 10
end
object uqOrderscut_die_boxpol125: TStringField
FieldName = 'cut_die_boxpol125'
Size = 10
end
object uqOrderscut_die_brub: TStringField
FieldName = 'cut_die_brub'
Size = 10
end
object uqOrdersproofing_fax: TStringField
FieldName = 'proofing_fax'
Size = 16
end
object uqOrdersproofing_fax_attn: TStringField
FieldName = 'proofing_fax_attn'
Size = 256
end
object uqOrdersproofing_e_mail: TStringField
FieldName = 'proofing_e_mail'
Size = 256
end
object uqOrdersproofing_e_mail_attn: TStringField
FieldName = 'proofing_e_mail_attn'
Size = 256
end
object uqOrdersproofing_ship_to: TStringField
FieldName = 'proofing_ship_to'
Size = 1024
end
object uqOrdersproofing_full_size_panel: TStringField
FieldName = 'proofing_full_size_panel'
Size = 1
end
object uqOrdersproofing_print_card: TStringField
FieldName = 'proofing_print_card'
Size = 1
end
object uqOrdersproofing_wide_format: TStringField
FieldName = 'proofing_wide_format'
Size = 1
end
object uqOrdersproofing_pdf_file: TStringField
FieldName = 'proofing_pdf_file'
Size = 1
end
object uqOrdersproofing_other: TStringField
FieldName = 'proofing_other'
Size = 64
end
object uqOrdersproofing_art_approved_as_is: TStringField
FieldName = 'proofing_art_approved_as_is'
Size = 1
end
object uqOrdersproofing_approved_date: TDateField
FieldName = 'proofing_approved_date'
end
object uqOrdersproofing_changes_required: TStringField
FieldName = 'proofing_changes_required'
Size = 1
end
object uqOrdersproofing_changes_date: TDateField
FieldName = 'proofing_changes_date'
end
object uqOrderslayout_rsc_l: TStringField
FieldName = 'layout_rsc_l'
Size = 10
end
object uqOrderslayout_rcs_w: TStringField
FieldName = 'layout_rcs_w'
Size = 10
end
object uqOrderslayout_rcs_d: TStringField
FieldName = 'layout_rcs_d'
Size = 10
end
object uqOrderslayout_die_cut_no: TStringField
FieldName = 'layout_die_cut_no'
Size = 45
end
object uqOrderslayout_accross_no: TStringField
FieldName = 'layout_accross_no'
Size = 10
end
object uqOrderslayout_around_no: TStringField
FieldName = 'layout_around_no'
Size = 10
end
object uqOrderslayout_cad_file: TStringField
FieldName = 'layout_cad_file'
Size = 45
end
object uqOrderslayout_excalibur_die: TStringField
FieldName = 'layout_excalibur_die'
Size = 1
end
object uqOrdersmounting_loose: TStringField
FieldName = 'mounting_loose'
Size = 10
end
object uqOrdersmounting_sticky_bak: TStringField
FieldName = 'mounting_sticky_bak'
Size = 1
end
object uqOrdersmounting_full_mount: TStringField
FieldName = 'mounting_full_mount'
Size = 1
end
object uqOrdersmounting_strip_mount: TStringField
FieldName = 'mounting_strip_mount'
Size = 10
end
object uqOrderscolors_cylinder_size: TStringField
FieldName = 'colors_cylinder_size'
Size = 45
end
object uqOrderscolors_machine_ident: TStringField
FieldName = 'colors_machine_ident'
Size = 45
end
object uqOrdersmounting_standard_setup: TStringField
FieldName = 'mounting_standard_setup'
Size = 45
end
object uqOrdersmounting_custom_backing: TStringField
FieldName = 'mounting_custom_backing'
Size = 96
end
object uqOrdersmounting_custom_adhesive: TStringField
FieldName = 'mounting_custom_adhesive'
Size = 45
end
object uqOrderscolors_cross_hairs: TStringField
FieldName = 'colors_cross_hairs'
Size = 10
end
object uqOrderscolors_clemson: TStringField
FieldName = 'colors_clemson'
Size = 10
end
object uqOrdersplates_thickness: TStringField
FieldName = 'plates_thickness'
Size = 5
end
object uqOrdersplates_plate_material: TStringField
FieldName = 'plates_plate_material'
Size = 16
end
object uqOrdersgeneral_special_instructions: TStringField
FieldName = 'general_special_instructions'
Size = 2048
end
object uqOrderscolors_colors: TStringField
FieldName = 'colors_colors'
Size = 4096
end
object uqOrdersstaff_fields_quickbooks_item: TStringField
FieldName = 'staff_fields_quickbooks_item'
Size = 45
end
object uqOrdersstaff_fields_quantity: TStringField
FieldName = 'staff_fields_quantity'
Size = 10
end
object uqOrderslayout_rsc_style: TStringField
FieldName = 'layout_rsc_style'
Size = 32
end
object uqOrdersstaff_fields_art_location: TStringField
FieldName = 'staff_fields_art_location'
Size = 16
end
end
end
end
kgOrdersServer/Source/Database.pas
View file @
fcb79526
...
@@ -16,6 +16,94 @@ type
...
@@ -16,6 +16,94 @@ type
UniQuery1
:
TUniQuery
;
UniQuery1
:
TUniQuery
;
MySQLUniProvider1
:
TMySQLUniProvider
;
MySQLUniProvider1
:
TMySQLUniProvider
;
UniQuery2
:
TUniQuery
;
UniQuery2
:
TUniQuery
;
uqOrders
:
TUniQuery
;
uqOrdersORDER_ID
:
TIntegerField
;
uqOrdersCOMPANY_ID
:
TIntegerField
;
uqOrdersUSER_ID
:
TIntegerField
;
uqOrdersORDER_DATE
:
TDateTimeField
;
uqOrdersSTART_DATE
:
TDateField
;
uqOrdersEND_DATE
:
TDateField
;
uqOrdersORDER_STATUS
:
TStringField
;
uqOrdersSCHED_JSON
:
TStringField
;
uqOrdersstaff_fields_order_date
:
TDateField
;
uqOrdersstaff_fields_proof_date
:
TDateField
;
uqOrdersstaff_fields_ship_date
:
TDateField
;
uqOrdersstaff_fields_ship_via
:
TStringField
;
uqOrdersstaff_fields_price
:
TStringField
;
uqOrdersstaff_fields_invoice_to
:
TStringField
;
uqOrdersstaff_fields_invoice_attention
:
TStringField
;
uqOrdersstaff_fields_ship_to
:
TStringField
;
uqOrdersstaff_fields_ship_attention
:
TStringField
;
uqOrdersstaff_fields_po_number
:
TStringField
;
uqOrdersstaff_fields_job_name
:
TStringField
;
uqOrdersstaff_fields_art_due
:
TDateField
;
uqOrdersstaff_fields_plate_due
:
TDateField
;
uqOrdersstaff_fields_mount_due
:
TDateField
;
uqOrdersplates_job_number
:
TStringField
;
uqOrderssupplied_by_customer_b_w_copy
:
TStringField
;
uqOrderssupplied_by_customer_color_copy
:
TStringField
;
uqOrderssupplied_by_customer_plates
:
TStringField
;
uqOrderssupplied_by_customer_sample_ca
:
TStringField
;
uqOrderssupplied_by_customer_dimension
:
TStringField
;
uqOrderssupplied_by_customer_disk_or_cd
:
TStringField
;
uqOrderssupplied_by_customer_e_mail
:
TStringField
;
uqOrderssupplied_by_customer_ftp
:
TStringField
;
uqOrderssupplied_by_customer_other
:
TStringField
;
uqOrderssupplied_by_customer_existing_
:
TStringField
;
uqOrderssupplied_by_customer_ref_art_p
:
TStringField
;
uqOrderssupplied_by_customer_ref_art_a
:
TStringField
;
uqOrderscut_die_cutdier
:
TStringField
;
uqOrderscut_die_cutdieb
:
TStringField
;
uqOrderscut_die_cutdief
:
TStringField
;
uqOrderscut_die_cutdierkr
:
TStringField
;
uqOrderscut_die_cutdiefkr
:
TStringField
;
uqOrderscut_die_cad_file
:
TStringField
;
uqOrderscut_die_attached
:
TStringField
;
uqOrderscut_die_boxpol250
:
TStringField
;
uqOrderscut_die_boxpol155
:
TStringField
;
uqOrderscut_die_boxpol125
:
TStringField
;
uqOrderscut_die_brub
:
TStringField
;
uqOrdersproofing_fax
:
TStringField
;
uqOrdersproofing_fax_attn
:
TStringField
;
uqOrdersproofing_e_mail
:
TStringField
;
uqOrdersproofing_e_mail_attn
:
TStringField
;
uqOrdersproofing_ship_to
:
TStringField
;
uqOrdersproofing_full_size_panel
:
TStringField
;
uqOrdersproofing_print_card
:
TStringField
;
uqOrdersproofing_wide_format
:
TStringField
;
uqOrdersproofing_pdf_file
:
TStringField
;
uqOrdersproofing_other
:
TStringField
;
uqOrdersproofing_art_approved_as_is
:
TStringField
;
uqOrdersproofing_approved_date
:
TDateField
;
uqOrdersproofing_changes_required
:
TStringField
;
uqOrdersproofing_changes_date
:
TDateField
;
uqOrderslayout_rsc_l
:
TStringField
;
uqOrderslayout_rcs_w
:
TStringField
;
uqOrderslayout_rcs_d
:
TStringField
;
uqOrderslayout_die_cut_no
:
TStringField
;
uqOrderslayout_accross_no
:
TStringField
;
uqOrderslayout_around_no
:
TStringField
;
uqOrderslayout_cad_file
:
TStringField
;
uqOrderslayout_excalibur_die
:
TStringField
;
uqOrdersmounting_loose
:
TStringField
;
uqOrdersmounting_sticky_bak
:
TStringField
;
uqOrdersmounting_full_mount
:
TStringField
;
uqOrdersmounting_strip_mount
:
TStringField
;
uqOrderscolors_cylinder_size
:
TStringField
;
uqOrderscolors_machine_ident
:
TStringField
;
uqOrdersmounting_standard_setup
:
TStringField
;
uqOrdersmounting_custom_backing
:
TStringField
;
uqOrdersmounting_custom_adhesive
:
TStringField
;
uqOrderscolors_cross_hairs
:
TStringField
;
uqOrderscolors_clemson
:
TStringField
;
uqOrdersplates_thickness
:
TStringField
;
uqOrdersplates_plate_material
:
TStringField
;
uqOrdersgeneral_special_instructions
:
TStringField
;
uqOrderscolors_colors
:
TStringField
;
uqOrdersstaff_fields_quickbooks_item
:
TStringField
;
uqOrdersstaff_fields_quantity
:
TStringField
;
uqOrderslayout_rsc_style
:
TStringField
;
uqOrdersstaff_fields_art_location
:
TStringField
;
procedure
DataModuleCreate
(
Sender
:
TObject
);
procedure
DataModuleCreate
(
Sender
:
TObject
);
private
private
{ Private declarations }
{ Private declarations }
...
...
kgOrdersServer/Source/Lookup.Service.pas
View file @
fcb79526
...
@@ -57,24 +57,25 @@ type
...
@@ -57,24 +57,25 @@ type
TOrderItem
=
class
TOrderItem
=
class
public
public
ID
:
string
;
ID
,
companyName
:
string
;
companyName
,
jobName
:
string
;
jobName
,
orderDate
:
string
;
orderDate
,
proofDue
:
string
;
proofDue
,
proofDone
:
string
;
proofDone
,
artDue
:
string
;
artDue
,
artDone
:
string
;
artDone
,
plateDue
:
string
;
plateDue
,
plateDone
:
string
;
plateDone
,
mountDue
:
string
;
mountDue
,
mountDone
:
string
;
mountDone
,
shipDue
:
string
;
shipDue
,
shipDone
:
string
;
shipDone
,
price
:
string
;
price
,
qbRefNum
:
string
;
qbRefNum
,
colors
:
string
;
orderType
,
orderType
:
string
;
colors
:
string
;
end
;
end
;
TOrderList
=
class
TOrderList
=
class
...
@@ -86,89 +87,92 @@ type
...
@@ -86,89 +87,92 @@ type
TFullOrder
=
class
TFullOrder
=
class
Public
Public
//Company
//Company
companyName
:
string
;
NAME
:
string
;
accountCompanyName
:
string
;
SHORT_NAME
:
string
;
inQuickBooks
:
string
;
inQuickBooks
:
string
;
// Staff Fields:
// Staff Fields:
orderD
ate
:
string
;
staff_fields_order_d
ate
:
string
;
proofD
ate
:
string
;
staff_fields_proof_d
ate
:
string
;
s
hipD
ate
:
string
;
s
taff_fields_ship_d
ate
:
string
;
s
hipV
ia
:
string
;
s
taff_fields_ship_v
ia
:
string
;
Q
uantity
:
string
;
staff_fields_q
uantity
:
string
;
price
:
string
;
staff_fields_
price
:
string
;
invoiceT
o
:
string
;
staff_fields_invoice_t
o
:
string
;
s
hipT
o
:
string
;
s
taff_fields_ship_t
o
:
string
;
poN
umber
:
string
;
staff_fields_po_n
umber
:
string
;
jobN
ame
:
string
;
staff_fields_job_n
ame
:
string
;
quickBooksI
tem
:
string
;
staff_fields_quickbooks_i
tem
:
string
;
artD
ue
:
string
;
staff_fields_art_d
ue
:
string
;
plateD
ue
:
string
;
staff_fields_plate_d
ue
:
string
;
mountD
ue
:
string
;
staff_fields_mount_d
ue
:
string
;
artL
ocation
:
string
;
staff_fields_art_l
ocation
:
string
;
// Supplied by Customer:
// Supplied by Customer:
bwC
opy
:
boolean
;
supplied_by_customer_b_w_c
opy
:
boolean
;
colorC
opy
:
boolean
;
supplied_by_customer_color_c
opy
:
boolean
;
plates
:
boolean
;
supplied_by_customer_
plates
:
boolean
;
s
ampleCarton
:
boolean
;
s
upplied_by_customer_sample_ca
:
boolean
;
dimensionalLayout
:
string
;
supplied_by_customer_dimension
:
string
;
diskOrCD
:
boolean
;
supplied_by_customer_disk_or_cd
:
boolean
;
e
mail
:
string
;
supplied_by_customer_e_
mail
:
string
;
ftp
:
string
;
supplied_by_customer_
ftp
:
string
;
other
:
string
;
supplied_by_customer_
other
:
string
;
existingCuttingDie
:
string
;
supplied_by_customer_existing_
:
string
;
refArtPrintCard
:
string
;
supplied_by_customer_ref_art_p
:
string
;
refArtAPDF
:
string
;
supplied_by_customer_ref_art_a
:
string
;
// Layout
// Layout
rscl
:
string
;
layout_rsc_l
:
string
;
rscw
:
string
;
rscd
:
string
;
//Typos to match database typos
dieCutNo
:
string
;
layout_rcs_w
:
string
;
acrossNo
:
string
;
layout_rcs_d
:
string
;
aroundNo
:
string
;
cadFile
:
string
;
layout_die_cut_no
:
string
;
excalliburDie
:
boolean
;
layout_accross_no
:
string
;
rscStyle
:
string
;
layout_around_no
:
string
;
layout_cad_file
:
string
;
layout_excalibur_die
:
boolean
;
layout_rsc_style
:
string
;
// Mounting
// Mounting
loose
:
string
;
mounting_
loose
:
string
;
stickyB
ak
:
boolean
;
mounting_sticky_b
ak
:
boolean
;
fullM
ount
:
boolean
;
mounting_full_m
ount
:
boolean
;
stripM
ount
:
string
;
mounting_strip_m
ount
:
string
;
standardS
etup
:
string
;
mounting_standard_s
etup
:
string
;
customB
acking
:
string
;
mounting_custom_b
acking
:
string
;
customA
dhesive
:
string
;
mounting_custom_a
dhesive
:
string
;
// Colors
// Colors
c
ylinderS
ize
:
string
;
c
olors_cylinder_s
ize
:
string
;
machineI
dent
:
string
;
colors_machine_i
dent
:
string
;
c
rossH
airs
:
string
;
c
olors_cross_h
airs
:
string
;
clemson
:
string
;
c
olors_c
lemson
:
string
;
colors
:
string
;
colors
_colors
:
string
;
// Proofing
// Proofing
fax
:
string
;
proofing_
fax
:
string
;
faxA
ttn
:
string
;
proofing_fax_a
ttn
:
string
;
proof
E
mail
:
string
;
proof
ing_e_
mail
:
string
;
emailA
ttn
:
string
;
proofing_e_mail_a
ttn
:
string
;
proof
ShipT
o
:
string
;
proof
ing_ship_t
o
:
string
;
fullSizeP
anel
:
boolean
;
proofing_full_size_p
anel
:
boolean
;
pr
intC
ard
:
boolean
;
pr
oofing_print_c
ard
:
boolean
;
wideF
ormat
:
boolean
;
proofing_wide_f
ormat
:
boolean
;
p
dfF
ile
:
boolean
;
p
roofing_pdf_f
ile
:
boolean
;
proof
O
ther
:
string
;
proof
ing_o
ther
:
string
;
artApprovedAsI
s
:
boolean
;
proofing_art_approved_as_i
s
:
boolean
;
approvedD
ate
:
string
;
proofing_approved_d
ate
:
string
;
// Plates
// Plates
thickness
:
string
;
plates_
thickness
:
string
;
plate
M
aterial
:
string
;
plate
s_plate_m
aterial
:
string
;
jobN
umber
:
string
;
plates_job_n
umber
:
string
;
// General
// General
specialI
nstructions
:
string
;
general_special_i
nstructions
:
string
;
end
;
end
;
...
...
kgOrdersServer/Source/Lookup.ServiceImpl.pas
View file @
fcb79526
...
@@ -12,7 +12,7 @@ uses
...
@@ -12,7 +12,7 @@ uses
XData
.
Server
.
Module
,
XData
.
Server
.
Module
,
XData
.
Service
.
Common
,
XData
.
Service
.
Common
,
Database
,
Data
.
DB
,
Database
,
Data
.
DB
,
Lookup
.
Service
,
System
.
Hash
,
System
.
Classes
;
Lookup
.
Service
,
System
.
Hash
,
System
.
Classes
,
System
.
JSON
;
type
type
...
@@ -32,6 +32,7 @@ type
...
@@ -32,6 +32,7 @@ type
function
DelUser
(
username
:
string
):
string
;
function
DelUser
(
username
:
string
):
string
;
function
generateSelectSQL
(
filterType
,
startDate
,
endDate
:
string
):
string
;
function
generateSelectSQL
(
filterType
,
startDate
,
endDate
:
string
):
string
;
function
generateSubQuery
(
filterType
:
string
;
currStatus
:
string
):
string
;
function
generateSubQuery
(
filterType
:
string
;
currStatus
:
string
):
string
;
function
AddCorrugatedOrder
(
orderInfo
:
string
):
TJSONObject
;
procedure
AfterConstruction
;
override
;
procedure
AfterConstruction
;
override
;
procedure
BeforeDestruction
;
override
;
procedure
BeforeDestruction
;
override
;
end
;
end
;
...
@@ -256,161 +257,162 @@ begin
...
@@ -256,161 +257,162 @@ begin
result
:=
TFullOrder
.
Create
;
result
:=
TFullOrder
.
Create
;
// Company
// Company
result
.
companyName
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'NAME'
).
AsString
;
result
.
NAME
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'NAME'
).
AsString
;
result
.
accountCompanyName
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'SHORT_NAME'
).
AsString
;
result
.
SHORT_NAME
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'SHORT_NAME'
).
AsString
;
result
.
inQuickBooks
:=
'?'
;
result
.
inQuickBooks
:=
'?'
;
// Staff Fields
// Staff Fields
result
.
orderD
ate
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'staff_fields_order_date'
).
AsString
;
result
.
staff_fields_order_d
ate
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'staff_fields_order_date'
).
AsString
;
result
.
proofD
ate
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'staff_fields_proof_date'
).
AsString
;
result
.
staff_fields_proof_d
ate
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'staff_fields_proof_date'
).
AsString
;
result
.
s
hipD
ate
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'staff_fields_ship_date'
).
AsString
;
result
.
s
taff_fields_ship_d
ate
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'staff_fields_ship_date'
).
AsString
;
result
.
s
hipV
ia
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'staff_fields_ship_via'
).
AsString
;
result
.
s
taff_fields_ship_v
ia
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'staff_fields_ship_via'
).
AsString
;
result
.
Q
uantity
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'staff_fields_quantity'
).
AsString
;
result
.
staff_fields_q
uantity
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'staff_fields_quantity'
).
AsString
;
result
.
s
hipT
o
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'staff_fields_ship_to'
).
AsString
;
result
.
s
taff_fields_ship_t
o
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'staff_fields_ship_to'
).
AsString
;
result
.
poN
umber
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'staff_fields_po_number'
).
AsString
;
result
.
staff_fields_po_n
umber
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'staff_fields_po_number'
).
AsString
;
result
.
jobN
ame
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'staff_fields_job_name'
).
AsString
;
result
.
staff_fields_job_n
ame
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'staff_fields_job_name'
).
AsString
;
result
.
quickBooksI
tem
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'staff_fields_quickbooks_item'
).
AsString
;
result
.
staff_fields_quickbooks_i
tem
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'staff_fields_quickbooks_item'
).
AsString
;
result
.
artD
ue
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'staff_fields_art_due'
).
AsString
;
result
.
staff_fields_art_d
ue
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'staff_fields_art_due'
).
AsString
;
result
.
plateD
ue
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'staff_fields_plate_due'
).
AsString
;
result
.
staff_fields_plate_d
ue
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'staff_fields_plate_due'
).
AsString
;
if
orderType
=
'corrugated_plate_order'
then
if
orderType
=
'corrugated_plate_order'
then
result
.
mountD
ue
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'staff_fields_mount_due'
).
AsString
;
result
.
staff_fields_mount_d
ue
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'staff_fields_mount_due'
).
AsString
;
result
.
artL
ocation
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'staff_fields_art_location'
).
AsString
;
result
.
staff_fields_art_l
ocation
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'staff_fields_art_location'
).
AsString
;
// Supplied by Customer
// Supplied by Customer
if
ordersDB
.
UniQuery1
.
FieldByName
(
'supplied_by_customer_b_w_copy'
).
AsString
=
'T'
then
if
ordersDB
.
UniQuery1
.
FieldByName
(
'supplied_by_customer_b_w_copy'
).
AsString
=
'T'
then
result
.
bwC
opy
:=
true
result
.
supplied_by_customer_b_w_c
opy
:=
true
else
else
result
.
bwC
opy
:=
false
;
result
.
supplied_by_customer_b_w_c
opy
:=
false
;
if
ordersDB
.
UniQuery1
.
FieldByName
(
'supplied_by_customer_color_copy'
).
AsString
=
'T'
then
if
ordersDB
.
UniQuery1
.
FieldByName
(
'supplied_by_customer_color_copy'
).
AsString
=
'T'
then
result
.
colorC
opy
:=
true
result
.
supplied_by_customer_color_c
opy
:=
true
else
else
result
.
colorC
opy
:=
false
;
result
.
supplied_by_customer_color_c
opy
:=
false
;
if
ordersDB
.
UniQuery1
.
FieldByName
(
'supplied_by_customer_plates'
).
AsString
=
'T'
then
if
ordersDB
.
UniQuery1
.
FieldByName
(
'supplied_by_customer_plates'
).
AsString
=
'T'
then
result
.
plates
:=
true
result
.
supplied_by_customer_
plates
:=
true
else
else
result
.
plates
:=
false
;
result
.
supplied_by_customer_
plates
:=
false
;
if
ordersDB
.
UniQuery1
.
FieldByName
(
'supplied_by_customer_sample_ca'
).
AsString
=
'T'
then
if
ordersDB
.
UniQuery1
.
FieldByName
(
'supplied_by_customer_sample_ca'
).
AsString
=
'T'
then
result
.
s
ampleCarton
:=
true
result
.
s
upplied_by_customer_sample_ca
:=
true
else
else
result
.
s
ampleCarton
:=
false
;
result
.
s
upplied_by_customer_sample_ca
:=
false
;
result
.
dimensionalLayout
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'supplied_by_customer_dimension'
).
AsString
;
result
.
supplied_by_customer_dimension
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'supplied_by_customer_dimension'
).
AsString
;
if
orderType
=
'web_plate'
then
if
orderType
=
'web_plate'
then
begin
begin
if
ordersDB
.
UniQuery1
.
FieldByName
(
'supplied_by_customer_disk'
).
AsString
=
'T'
then
{
if ordersDB.UniQuery1.FieldByName('supplied_by_customer_disk').AsString = 'T' then
result.diskOrCD := true
result.diskOrCD := true
else
else
result
.
diskOrCD
:=
false
;
result.diskOrCD := false;
}
end
end
else
else
begin
begin
if
ordersDB
.
UniQuery1
.
FieldByName
(
'supplied_by_customer_disk_or_cd'
).
AsString
=
'T'
then
if
ordersDB
.
UniQuery1
.
FieldByName
(
'supplied_by_customer_disk_or_cd'
).
AsString
=
'T'
then
result
.
diskOrCD
:=
true
result
.
supplied_by_customer_disk_or_cd
:=
true
else
else
result
.
diskOrCD
:=
false
;
result
.
supplied_by_customer_disk_or_cd
:=
false
;
end
;
end
;
result
.
e
mail
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'supplied_by_customer_e_mail'
).
AsString
;
result
.
supplied_by_customer_e_
mail
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'supplied_by_customer_e_mail'
).
AsString
;
result
.
ftp
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'supplied_by_customer_ftp'
).
AsString
;
result
.
supplied_by_customer_
ftp
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'supplied_by_customer_ftp'
).
AsString
;
result
.
other
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'supplied_by_customer_other'
).
AsString
;
result
.
supplied_by_customer_
other
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'supplied_by_customer_other'
).
AsString
;
if
orderType
=
'corrugated_plate'
then
if
orderType
=
'corrugated_plate'
then
begin
begin
result
.
existingCuttingDie
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'supplied_by_customer_existing_'
).
AsString
;
result
.
supplied_by_customer_existing_
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'supplied_by_customer_existing_'
).
AsString
;
result
.
refArtPrintCard
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'supplied_by_customer_ref_art_p'
).
AsString
;
result
.
supplied_by_customer_ref_art_p
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'supplied_by_customer_ref_art_p'
).
AsString
;
result
.
refArtAPDF
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'supplied_by_customer_ref_art_a'
).
AsString
;
result
.
supplied_by_customer_ref_art_a
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'supplied_by_customer_ref_art_a'
).
AsString
;
end
;
end
;
// Layout
// Layout
if
orderType
=
'corrugated_plate'
then
if
orderType
=
'corrugated_plate'
then
begin
begin
result
.
rsc
l
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'layout_rsc_l'
).
AsString
;
result
.
layout_rsc_
l
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'layout_rsc_l'
).
AsString
;
result
.
rsc
w
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'layout_rcs_w'
).
AsString
;
result
.
layout_rcs_
w
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'layout_rcs_w'
).
AsString
;
result
.
rsc
d
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'layout_rcs_d'
).
AsString
;
result
.
layout_rcs_
d
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'layout_rcs_d'
).
AsString
;
result
.
dieCutN
o
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'layout_die_cut_no'
).
AsString
;
result
.
layout_die_cut_n
o
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'layout_die_cut_no'
).
AsString
;
result
.
acrossN
o
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'layout_accross_no'
).
AsString
;
result
.
layout_accross_n
o
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'layout_accross_no'
).
AsString
;
result
.
aroundN
o
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'layout_around_no'
).
AsString
;
result
.
layout_around_n
o
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'layout_around_no'
).
AsString
;
result
.
cadF
ile
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'layout_cad_file'
).
AsString
;
result
.
layout_cad_f
ile
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'layout_cad_file'
).
AsString
;
if
ordersDB
.
UniQuery1
.
FieldByName
(
'layout_excalibur_die'
).
AsString
=
'T'
then
if
ordersDB
.
UniQuery1
.
FieldByName
(
'layout_excalibur_die'
).
AsString
=
'T'
then
result
.
excalliburD
ie
:=
true
result
.
layout_excalibur_d
ie
:=
true
else
else
result
.
excalliburD
ie
:=
false
;
result
.
layout_excalibur_d
ie
:=
false
;
result
.
rscS
tyle
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'layout_rsc_style'
).
AsString
;
result
.
layout_rsc_s
tyle
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'layout_rsc_style'
).
AsString
;
end
end
else
else
begin
begin
result
.
acrossNo
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'layout_accross'
).
AsString
;
//
result.acrossNo := ordersDB.UniQuery1.FieldByName('layout_accross').AsString;
result
.
aroundNo
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'layout_around'
).
AsString
;
//
result.aroundNo := ordersDB.UniQuery1.FieldByName('layout_around').AsString;
end
;
end
;
// Mounting & Colors & Proofing
// Mounting & Colors & Proofing
if
orderType
=
'corrugated_plate'
then
if
orderType
=
'corrugated_plate'
then
begin
begin
result
.
loose
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'mounting_loose'
).
AsString
;
result
.
mounting_
loose
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'mounting_loose'
).
AsString
;
if
ordersDB
.
UniQuery1
.
FieldByName
(
'mounting_sticky_bak'
).
AsString
=
'T'
then
if
ordersDB
.
UniQuery1
.
FieldByName
(
'mounting_sticky_bak'
).
AsString
=
'T'
then
result
.
stickyB
ak
:=
true
result
.
mounting_sticky_b
ak
:=
true
else
else
result
.
stickyB
ak
:=
false
;
result
.
mounting_sticky_b
ak
:=
false
;
if
ordersDB
.
UniQuery1
.
FieldByName
(
'mounting_full_mount'
).
AsString
=
'T'
then
if
ordersDB
.
UniQuery1
.
FieldByName
(
'mounting_full_mount'
).
AsString
=
'T'
then
result
.
fullM
ount
:=
true
result
.
mounting_full_m
ount
:=
true
else
else
result
.
fullMount
:=
false
;
result
.
mounting_full_mount
:=
false
;
result
.
stripMount
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'mounting_strip_mount'
).
AsString
;
result
.
mounting_strip_mount
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'mounting_strip_mount'
).
AsString
;
result
.
standardSetup
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'mounting_standard_setup'
).
AsString
;
result
.
mounting_standard_setup
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'mounting_standard_setup'
).
AsString
;
result
.
customBacking
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'mounting_custom_backing'
).
AsString
;
result
.
mounting_custom_backing
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'mounting_custom_backing'
).
AsString
;
result
.
customAdhesive
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'mounting_custom_adhesive'
).
AsString
;
result
.
mounting_custom_adhesive
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'mounting_custom_adhesive'
).
AsString
;
result
.
cylinderSize
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'colors_cylinder_size'
).
AsString
;
result
.
colors_cylinder_size
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'colors_cylinder_size'
).
AsString
;
result
.
machineIdent
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'colors_machine_ident'
).
AsString
;
result
.
colors_machine_ident
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'colors_machine_ident'
).
AsString
;
result
.
crossHairs
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'colors_cross_hairs'
).
AsString
;
result
.
colors_cross_hairs
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'colors_cross_hairs'
).
AsString
;
result
.
clemson
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'colors_clemson'
).
AsString
;
result
.
colors_clemson
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'colors_clemson'
).
AsString
;
result
.
colors
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'colors_colors'
).
AsString
;
result
.
colors_colors
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'colors_colors'
).
AsString
;
result
.
fax
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'proofing_fax'
).
AsString
;
result
.
proofing_fax
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'proofing_fax'
).
AsString
;
result
.
faxAttn
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'proofing_fax_attn'
).
AsString
;
result
.
proofing_fax_attn
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'proofing_fax_attn'
).
AsString
;
result
.
proofEmail
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'proofing_e_mail'
).
AsString
;
result
.
proofing_e_mail
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'proofing_e_mail'
).
AsString
;
result
.
proofShipTo
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'proofing_ship_to'
).
AsString
;
result
.
proofing_e_mail_attn
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'proofing_e_mail_attn'
).
AsString
;
result
.
proofing_ship_to
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'proofing_ship_to'
).
AsString
;
if
ordersDB
.
UniQuery1
.
FieldByName
(
'proofing_full_size_panel'
).
AsString
=
'T'
then
if
ordersDB
.
UniQuery1
.
FieldByName
(
'proofing_full_size_panel'
).
AsString
=
'T'
then
result
.
fullSizeP
anel
:=
true
result
.
proofing_full_size_p
anel
:=
true
else
else
result
.
fullSizeP
anel
:=
false
;
result
.
proofing_full_size_p
anel
:=
false
;
if
ordersDB
.
UniQuery1
.
FieldByName
(
'proofing_print_card'
).
AsString
=
'T'
then
if
ordersDB
.
UniQuery1
.
FieldByName
(
'proofing_print_card'
).
AsString
=
'T'
then
result
.
pr
intC
ard
:=
true
result
.
pr
oofing_print_c
ard
:=
true
else
else
result
.
pr
intC
ard
:=
false
;
result
.
pr
oofing_print_c
ard
:=
false
;
if
ordersDB
.
UniQuery1
.
FieldByName
(
'proofing_wide_format'
).
AsString
=
'T'
then
if
ordersDB
.
UniQuery1
.
FieldByName
(
'proofing_wide_format'
).
AsString
=
'T'
then
result
.
wideF
ormat
:=
true
result
.
proofing_wide_f
ormat
:=
true
else
else
result
.
wideF
ormat
:=
false
;
result
.
proofing_wide_f
ormat
:=
false
;
if
ordersDB
.
UniQuery1
.
FieldByName
(
'proofing_pdf_file'
).
AsString
=
'T'
then
if
ordersDB
.
UniQuery1
.
FieldByName
(
'proofing_pdf_file'
).
AsString
=
'T'
then
result
.
p
dfF
ile
:=
true
result
.
p
roofing_pdf_f
ile
:=
true
else
else
result
.
p
dfF
ile
:=
false
;
result
.
p
roofing_pdf_f
ile
:=
false
;
result
.
proof
O
ther
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'proofing_other'
).
AsString
;
result
.
proof
ing_o
ther
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'proofing_other'
).
AsString
;
if
ordersDB
.
UniQuery1
.
FieldByName
(
'proofing_art_approved_as_is'
).
AsString
=
'T'
then
if
ordersDB
.
UniQuery1
.
FieldByName
(
'proofing_art_approved_as_is'
).
AsString
=
'T'
then
result
.
artApprovedAsI
s
:=
true
result
.
proofing_art_approved_as_i
s
:=
true
else
else
result
.
artApprovedAsI
s
:=
false
;
result
.
proofing_art_approved_as_i
s
:=
false
;
result
.
approvedD
ate
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'proofing_approved_date'
).
AsString
;
result
.
proofing_approved_d
ate
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'proofing_approved_date'
).
AsString
;
end
end
else
else
begin
begin
result
.
colors
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'quatity_and_colors_qty_colors'
).
AsString
;
{
result.colors := ordersDB.UniQuery1.FieldByName('quatity_and_colors_qty_colors').AsString;
if ordersDB.UniQuery1.FieldByName('proofing_pdf').AsString = 'T'then
if ordersDB.UniQuery1.FieldByName('proofing_pdf').AsString = 'T'then
result.pdfFile := true
result.pdfFile := true
else
else
result
.
pdfFile
:=
false
;
result.pdfFile := false;
}
end
;
end
;
// Plates
// Plates
result
.
thickness
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'plates_thickness'
).
AsString
;
result
.
plates_
thickness
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'plates_thickness'
).
AsString
;
result
.
plate
M
aterial
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'plates_plate_material'
).
AsString
;
result
.
plate
s_plate_m
aterial
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'plates_plate_material'
).
AsString
;
result
.
jobN
umber
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'plates_job_number'
).
AsString
;
result
.
plates_job_n
umber
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'plates_job_number'
).
AsString
;
// General
// General
if
orderType
=
'corrugated_plate'
then
if
orderType
=
'corrugated_plate'
then
result
.
specialI
nstructions
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'general_special_instructions'
).
AsString
result
.
general_special_i
nstructions
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'general_special_instructions'
).
AsString
else
else
result
.
specialInstructions
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'general_comments'
).
AsString
//
result.specialInstructions := ordersDB.UniQuery1.FieldByName('general_comments').AsString
...
@@ -595,6 +597,54 @@ begin
...
@@ -595,6 +597,54 @@ begin
ordersDB
.
UniQuery1
.
Close
;
ordersDB
.
UniQuery1
.
Close
;
end
;
end
;
function
TLookupService
.
AddCorrugatedOrder
(
orderInfo
:
string
):
TJSONObject
;
var
JSONData
,
ResponseData
:
TJSONObject
;
SQL
:
string
;
Pair
:
TJSONPair
;
Field
:
TField
;
DateFormat
:
TFormatSettings
;
begin
DateFormat
:=
TFormatSettings
.
Create
;
DateFormat
.
ShortDateFormat
:=
'yyyy-mm-dd'
;
DateFormat
.
DateSeparator
:=
'-'
;
JSONData
:=
TJSONObject
.
ParseJSONValue
(
orderInfo
)
as
TJSONObject
;
if
JSONData
=
nil
then
raise
Exception
.
Create
(
'Invalid JSON format'
);
// If parsing fails, raise an exception
SQL
:=
'select * from corrugated_plate_orders where ORDER_ID = '
+
JSONData
.
GetValue
(
'ORDER_ID'
).
Value
;
doQuery
(
ordersDB
.
UniQuery1
,
SQL
);
if
(
ordersDB
.
UniQuery1
.
IsEmpty
)
then
begin
try
ordersDB
.
UniQuery1
.
Insert
;
for
Pair
in
JSONData
do
begin
Field
:=
ordersDB
.
UniQuery1
.
FindField
(
Pair
.
JsonString
.
Value
);
// Checks if the field exists in the dataset
if
Assigned
(
Field
)
then
begin
// handles any dates or datetimes
if
(
Field
is
TDateTimeField
)
and
(
Pair
.
JsonValue
.
Value
<>
''
)
then
TDateTimeField
(
Field
).
AsDateTime
:=
StrToDateTime
(
Pair
.
JsonValue
.
Value
,
DateFormat
)
else
if
Pair
.
JsonValue
.
Value
<>
''
then
Field
.
AsString
:=
Pair
.
JsonValue
.
Value
;
end
;
end
;
// Post the new record to the database
ordersDB
.
UniQuery1
.
Post
;
Result
:=
TJSONObject
.
Create
.
AddPair
(
'status'
,
'success'
);
TXDataOperationContext
.
Current
.
Handler
.
ManagedObjects
.
Add
(
Result
);
except
on
E
:
Exception
do
begin
Result
:=
TJSONObject
.
Create
.
AddPair
(
'error'
,
E
.
Message
);
end
;
end
;
end
else
Result
:=
TJSONObject
.
Create
.
AddPair
(
'error'
,
'Order Already Exists'
);
end
;
function
TLookupService
.
AddUser
(
userInfo
:
string
):
string
;
function
TLookupService
.
AddUser
(
userInfo
:
string
):
string
;
var
var
...
...
kgOrdersServer/kgOrdersServer.ini
View file @
fcb79526
[Options]
[Options]
LogFileNum
=
1
39
LogFileNum
=
1
42
UpdateTimerLength
=
0
UpdateTimerLength
=
0
...
...
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