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
HeightPercent = 100.000000000000000000
MaxLength = 90
WidthPercent = 100.000000000000000000
DataField = '
companyName
'
DataField = '
NAME
'
DataSource = WebDataSource1
end
object edtCompanyAccountName: TWebDBEdit
...
...
@@ -258,7 +258,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtaccountcompanyname'
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = '
accountCompanyName
'
DataField = '
SHORT_NAME
'
DataSource = WebDataSource1
end
object edtInQuickBooks: TWebDBEdit
...
...
@@ -282,7 +282,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtshipvia'
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = 's
hipV
ia'
DataField = 's
taff_fields_ship_v
ia'
DataSource = WebDataSource1
end
object edtQuantity: TWebDBEdit
...
...
@@ -294,7 +294,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtquantity'
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = '
Q
uantity'
DataField = '
staff_fields_q
uantity'
DataSource = WebDataSource1
end
object edtPrice: TWebDBEdit
...
...
@@ -306,7 +306,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtprice'
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = 'price'
DataField = '
staff_fields_
price'
DataSource = WebDataSource1
end
object edtInvoiceTo: TWebDBEdit
...
...
@@ -318,7 +318,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtinvoiceto'
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = '
invoiceT
o'
DataField = '
staff_fields_invoice_t
o'
DataSource = WebDataSource1
end
object edtShipTo: TWebDBEdit
...
...
@@ -330,7 +330,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtshipto'
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = 's
hipT
o'
DataField = 's
taff_fields_ship_t
o'
DataSource = WebDataSource1
end
object edtPONumber: TWebDBEdit
...
...
@@ -342,7 +342,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtponumber'
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = '
poN
umber'
DataField = '
staff_fields_po_n
umber'
DataSource = WebDataSource1
end
object edtJobName: TWebDBEdit
...
...
@@ -354,7 +354,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtjobname'
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = '
jobN
ame'
DataField = '
staff_fields_job_n
ame'
DataSource = WebDataSource1
end
object edtQuickBooksItem: TWebDBEdit
...
...
@@ -366,7 +366,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtquickbooksitem'
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = '
quickBooksI
tem'
DataField = '
staff_fields_quickbooks_i
tem'
DataSource = WebDataSource1
end
object edtArtLocation: TWebDBEdit
...
...
@@ -378,7 +378,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtartlocation'
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = '
artL
ocation'
DataField = '
staff_fields_art_l
ocation'
DataSource = WebDataSource1
end
object edtDimensionalLayout: TWebDBEdit
...
...
@@ -390,7 +390,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtdimensionallayout'
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = '
dimensionalLayout
'
DataField = '
supplied_by_customer_dimension
'
DataSource = WebDataSource1
end
object edtEmail: TWebDBEdit
...
...
@@ -402,7 +402,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtemail'
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = '
e
mail'
DataField = '
supplied_by_customer_e_
mail'
DataSource = WebDataSource1
end
object edtFTP: TWebDBEdit
...
...
@@ -414,7 +414,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtftp'
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = 'ftp'
DataField = '
supplied_by_customer_
ftp'
DataSource = WebDataSource1
end
object edtOther: TWebDBEdit
...
...
@@ -426,7 +426,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtother'
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = 'other'
DataField = '
supplied_by_customer_
other'
DataSource = WebDataSource1
end
object edtExistingCuttingDie: TWebDBEdit
...
...
@@ -438,7 +438,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtexistingcuttingdie'
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = '
existingCuttingDie
'
DataField = '
supplied_by_customer_existing_
'
DataSource = WebDataSource1
end
object edtRefArtPrintCard: TWebDBEdit
...
...
@@ -450,7 +450,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtrefartprintcard'
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = '
refArtPrintCard
'
DataField = '
supplied_by_customer_ref_art_p
'
DataSource = WebDataSource1
end
object edtRefArtAPDF: TWebDBEdit
...
...
@@ -462,7 +462,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtrefartapdf'
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = '
refArtA
'
DataField = '
supplied_by_customer_ref_art_a
'
DataSource = WebDataSource1
end
object edtCADFile: TWebDBEdit
...
...
@@ -474,7 +474,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtcadfile'
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = '
cadF
ile'
DataField = '
layout_cad_f
ile'
DataSource = WebDataSource1
end
object edtAroundNo: TWebDBEdit
...
...
@@ -486,7 +486,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtaroundno'
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = '
aroundN
o'
DataField = '
layout_around_n
o'
DataSource = WebDataSource1
end
object edtAcrossNo: TWebDBEdit
...
...
@@ -498,7 +498,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtacrossno'
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = '
acrossN
o'
DataField = '
layout_accross_n
o'
DataSource = WebDataSource1
end
object edtDieCutNo: TWebDBEdit
...
...
@@ -510,7 +510,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtdiecutno'
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = '
dieCutN
o'
DataField = '
layout_die_cut_n
o'
DataSource = WebDataSource1
end
object edtRSCD: TWebDBEdit
...
...
@@ -522,7 +522,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtrscd'
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = '
rsc
d'
DataField = '
layout_rsc_
d'
DataSource = WebDataSource1
end
object edtRSCW: TWebDBEdit
...
...
@@ -534,7 +534,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtrscw'
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = '
rsc
w'
DataField = '
layout_rsc_
w'
DataSource = WebDataSource1
end
object edtRSCL: TWebDBEdit
...
...
@@ -546,7 +546,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtrscl'
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = '
rsc
l'
DataField = '
layout_rsc_
l'
DataSource = WebDataSource1
end
object edtCustomAdhesive: TWebDBEdit
...
...
@@ -558,7 +558,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtcustomadhesive'
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = '
customA
dhesive'
DataField = '
mounting_custom_a
dhesive'
DataSource = WebDataSource1
end
object edtCustomBacking: TWebDBEdit
...
...
@@ -570,7 +570,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtcustombacking'
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = '
customB
acking'
DataField = '
mounting_custom_b
acking'
DataSource = WebDataSource1
end
object edtStandardSetup: TWebDBEdit
...
...
@@ -582,7 +582,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtstandardsetup'
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = '
standardS
etup'
DataField = '
mounting_standard_s
etup'
DataSource = WebDataSource1
end
object edtStripMount: TWebDBEdit
...
...
@@ -594,7 +594,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtstripmount'
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = '
stripM
ount'
DataField = '
mounting_strip_m
ount'
DataSource = WebDataSource1
end
object edtLoose: TWebDBEdit
...
...
@@ -606,7 +606,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtloose'
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = 'loose'
DataField = '
mounting_
loose'
DataSource = WebDataSource1
end
object edtRSCStyle: TWebDBEdit
...
...
@@ -618,7 +618,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtrscstyle'
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = '
rscS
tyle'
DataField = '
layout_rsc_s
tyle'
DataSource = WebDataSource1
end
object edtProofOther: TWebDBEdit
...
...
@@ -630,7 +630,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtproofother'
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = 'proof
O
ther'
DataField = 'proof
ing_o
ther'
DataSource = WebDataSource1
end
object edtProofShipTo: TWebDBEdit
...
...
@@ -642,7 +642,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtproofshipto'
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = 'proof
ShipT
o'
DataField = 'proof
ing_ship_t
o'
DataSource = WebDataSource1
end
object edtEmailAttn: TWebDBEdit
...
...
@@ -654,7 +654,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtemailattn'
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = '
emailA
ttn'
DataField = '
proofing_e_mail_a
ttn'
DataSource = WebDataSource1
end
object edtProofEmail: TWebDBEdit
...
...
@@ -666,7 +666,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtproofemail'
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = 'proof
E
mail'
DataField = 'proof
ing_e_
mail'
DataSource = WebDataSource1
end
object edtFaxAttn: TWebDBEdit
...
...
@@ -678,7 +678,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtfaxattn'
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = '
faxA
ttn'
DataField = '
proofing_fax_a
ttn'
DataSource = WebDataSource1
end
object edtFax: TWebDBEdit
...
...
@@ -690,7 +690,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtfax'
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = 'fax'
DataField = '
proofing_
fax'
DataSource = WebDataSource1
end
object edtClemson: TWebDBEdit
...
...
@@ -702,7 +702,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtclemson'
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = 'clemson'
DataField = 'c
olors_c
lemson'
DataSource = WebDataSource1
end
object edtCrossHairs: TWebDBEdit
...
...
@@ -714,7 +714,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtcrosshairs'
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = 'c
rossH
airs'
DataField = 'c
olors_cross_h
airs'
DataSource = WebDataSource1
end
object edtMachineIndent: TWebDBEdit
...
...
@@ -726,7 +726,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtmachineindent'
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = '
machineI
dent'
DataField = '
colors_machine_i
dent'
DataSource = WebDataSource1
end
object edtCylinderSize: TWebDBEdit
...
...
@@ -738,7 +738,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtcylindersize'
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = 'c
ylinderS
ize'
DataField = 'c
olors_cylinder_s
ize'
DataSource = WebDataSource1
end
object edtJobNumber: TWebDBEdit
...
...
@@ -750,7 +750,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtjobnumber'
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = '
jobN
umber'
DataField = '
plates_job_n
umber'
DataSource = WebDataSource1
end
object edtPlateMaterial: TWebDBEdit
...
...
@@ -762,7 +762,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtplatematerial'
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = 'plate
M
aterial'
DataField = 'plate
s_plate_m
aterial'
DataSource = WebDataSource1
end
object edtThickness: TWebDBEdit
...
...
@@ -774,7 +774,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtThickness'
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = 'thickness'
DataField = '
plates_
thickness'
DataSource = WebDataSource1
end
object cbArtApprovedAsIs: TWebDBCheckBox
...
...
@@ -787,7 +787,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'cbartapprovedasis'
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = '
artApprovedAsI
s'
DataField = '
proofing_art_approved_as_i
s'
DataSource = WebDataSource1
end
object cbPDFFile: TWebDBCheckBox
...
...
@@ -800,7 +800,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'cbpdffile'
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = 'p
dfF
ile'
DataField = 'p
roofing_pdf_f
ile'
DataSource = WebDataSource1
end
object cbWideFormat: TWebDBCheckBox
...
...
@@ -813,7 +813,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'cbwideformat'
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = '
wideF
ormat'
DataField = '
proofing_wide_f
ormat'
DataSource = WebDataSource1
end
object cbPrintCard: TWebDBCheckBox
...
...
@@ -826,7 +826,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'cbprintcard'
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = 'pr
intC
ard'
DataField = 'pr
oofing_print_c
ard'
DataSource = WebDataSource1
end
object cbFullSizePanel: TWebDBCheckBox
...
...
@@ -839,7 +839,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'cbfullsizepanel'
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = '
fullSizeP
anel'
DataField = '
proofing_full_size_p
anel'
DataSource = WebDataSource1
end
object cbStripMount: TWebDBCheckBox
...
...
@@ -863,7 +863,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'cbfullmount'
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = '
fullM
ount'
DataField = '
mounting_full_m
ount'
DataSource = WebDataSource1
end
object cbStickyBak: TWebDBCheckBox
...
...
@@ -876,7 +876,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'cbstickybak'
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = '
stickyB
ak'
DataField = '
mounting_sticky_b
ak'
DataSource = WebDataSource1
end
object WebDBCheckBox9: TWebDBCheckBox
...
...
@@ -901,7 +901,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'cbexcaliburdie'
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = '
excaliburD
ie'
DataField = '
layout_excalibur_d
ie'
DataSource = WebDataSource1
end
object cbDiskorCD: TWebDBCheckBox
...
...
@@ -914,7 +914,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'cbdiskorcd'
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = '
diskOrCD
'
DataField = '
supplied_by_customer_disk_or_cd
'
DataSource = WebDataSource1
end
object cbSampleCarton: TWebDBCheckBox
...
...
@@ -927,7 +927,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'cbsimpleCarton'
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = 's
ampleCarton
'
DataField = 's
upplied_by_customer_sample_ca
'
DataSource = WebDataSource1
end
object cbPlate: TWebDBCheckBox
...
...
@@ -940,7 +940,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'cbplates'
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = 'plates'
DataField = '
supplied_by_customer_
plates'
DataSource = WebDataSource1
end
object cbColorCopy: TWebDBCheckBox
...
...
@@ -953,7 +953,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'cbcolorcopy'
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = '
colorC
opy'
DataField = '
supplied_by_customer_color_c
opy'
DataSource = WebDataSource1
end
object cbBWCopy: TWebDBCheckBox
...
...
@@ -966,7 +966,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'cbbwcopy'
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = '
bwC
opy'
DataField = '
supplied_by_customer_b_w_c
opy'
DataSource = WebDataSource1
end
object edtSpecialInstructions: TWebDBEdit
...
...
@@ -978,7 +978,7 @@ object FOrderEntry: TFOrderEntry
ElementID = 'edtspecialinstructions'
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = '
specialI
nstructions'
DataField = '
general_special_i
nstructions'
DataSource = WebDataSource1
end
object btnConfirm: TWebButton
...
...
@@ -1008,206 +1008,272 @@ object FOrderEntry: TFOrderEntry
Connection = DMConnection.ApiConnection
Left = 324
Top = 104
object XDataWebDataSet1
Quantity: TString
Field
FieldName = '
Quantity
'
object XDataWebDataSet1
ORDER_ID: TInteger
Field
FieldName = '
ORDER_ID
'
end
object XDataWebDataSet1
accountCompanyName: TString
Field
FieldName = '
accountCompanyName
'
object XDataWebDataSet1
COMPANY_ID: TInteger
Field
FieldName = '
COMPANY_ID
'
end
object XDataWebDataSet1
acrossNo: TString
Field
FieldName = '
acrossNo
'
object XDataWebDataSet1
USER_ID: TInteger
Field
FieldName = '
USER_ID
'
end
object XDataWebDataSet1
approvedDate: TString
Field
FieldName = '
approvedDate
'
object XDataWebDataSet1
ORDER_DATE: TDate
Field
FieldName = '
ORDER_DATE
'
end
object XDataWebDataSet1
aroundNo: TString
Field
FieldName = '
aroundNo
'
object XDataWebDataSet1
START_DATE: TDate
Field
FieldName = '
START_DATE
'
end
object XDataWebDataSet1
artApprovedAsIs: TBoolean
Field
FieldName = '
artApprovedAsIs
'
object XDataWebDataSet1
END_DATE: TDate
Field
FieldName = '
END_DATE
'
end
object XDataWebDataSet1
artDue
: TStringField
FieldName = '
artDue
'
object XDataWebDataSet1
ORDER_STATUS
: TStringField
FieldName = '
ORDER_STATUS
'
end
object XDataWebDataSet1
artLocation
: TStringField
FieldName = '
artLocation
'
object XDataWebDataSet1
SCHED_JSON
: TStringField
FieldName = '
SCHED_JSON
'
end
object XDataWebDataSet1
bwCopy: TBoolean
Field
FieldName = '
bwCopy
'
object XDataWebDataSet1
NAME: TString
Field
FieldName = '
NAME
'
end
object XDataWebDataSet1
cadFile
: TStringField
FieldName = '
cadFile
'
object XDataWebDataSet1
SHORT_NAME
: TStringField
FieldName = '
SHORT_NAME
'
end
object XDataWebDataSet1
clemson
: TStringField
FieldName = '
clemson
'
object XDataWebDataSet1
staff_fields_ship_via
: TStringField
FieldName = '
staff_fields_ship_via
'
end
object XDataWebDataSet1
companyNam
e: TStringField
FieldName = '
companyNam
e'
object XDataWebDataSet1
staff_fields_pric
e: TStringField
FieldName = '
staff_fields_pric
e'
end
object XDataWebDataSet1
crossHairs: TInteger
Field
FieldName = '
crossHairs
'
object XDataWebDataSet1
staff_fields_invoice_to: TString
Field
FieldName = '
staff_fields_invoice_to
'
end
object XDataWebDataSet1
customAdhesive
: TStringField
FieldName = '
customAdhesive
'
object XDataWebDataSet1
staff_fields_invoice_attention
: TStringField
FieldName = '
staff_fields_invoice_attention
'
end
object XDataWebDataSet1
customBacking
: TStringField
FieldName = '
customBacking
'
object XDataWebDataSet1
staff_fields_ship_to
: TStringField
FieldName = '
staff_fields_ship_to
'
end
object XDataWebDataSet1
cylinderSize
: TStringField
FieldName = '
cylinderSize
'
object XDataWebDataSet1
staff_fields_ship_attention
: TStringField
FieldName = '
staff_fields_ship_attention
'
end
object XDataWebDataSet1
dieCutNo
: TStringField
FieldName = '
dieCutNo
'
object XDataWebDataSet1
staff_fields_po_number
: TStringField
FieldName = '
staff_fields_po_number
'
end
object XDataWebDataSet1
dimensionalLayout
: TStringField
FieldName = '
dimensionalLayout
'
object XDataWebDataSet1
staff_fields_job_name
: TStringField
FieldName = '
staff_fields_job_name
'
end
object XDataWebDataSet1
diskOrCD: TBoolean
Field
FieldName = '
diskOrCD
'
object XDataWebDataSet1
plates_job_number: TString
Field
FieldName = '
plates_job_number
'
end
object XDataWebDataSet1
email: TString
Field
FieldName = '
email
'
object XDataWebDataSet1
supplied_by_customer_b_w_copy: TBoolean
Field
FieldName = '
supplied_by_customer_b_w_copy
'
end
object XDataWebDataSet1
emailAtt
n: TStringField
FieldName = '
emailAtt
n'
object XDataWebDataSet1
supplied_by_customer_dimensio
n: TStringField
FieldName = '
supplied_by_customer_dimensio
n'
end
object XDataWebDataSet1
excaliburDie: TBoolean
Field
FieldName = '
excaliburDie
'
object XDataWebDataSet1
supplied_by_customer_e_mail: TString
Field
FieldName = '
supplied_by_customer_e_mail
'
end
object XDataWebDataSet1
existingCuttingDie
: TStringField
FieldName = '
existingCuttingDie
'
object XDataWebDataSet1
supplied_by_customer_ftp
: TStringField
FieldName = '
supplied_by_customer_ftp
'
end
object XDataWebDataSet1
fax
: TStringField
FieldName = '
fax
'
object XDataWebDataSet1
supplied_by_customer_other
: TStringField
FieldName = '
supplied_by_customer_other
'
end
object XDataWebDataSet1
faxAttn
: TStringField
FieldName = '
faxAttn
'
object XDataWebDataSet1
supplied_by_customer_existing_
: TStringField
FieldName = '
supplied_by_customer_existing_
'
end
object XDataWebDataSet1
ft
p: TStringField
FieldName = '
ft
p'
object XDataWebDataSet1
supplied_by_customer_ref_art_
p: TStringField
FieldName = '
supplied_by_customer_ref_art_
p'
end
object XDataWebDataSet1
fullMount: TBoolean
Field
FieldName = '
fullMount
'
object XDataWebDataSet1
supplied_by_customer_ref_art_a: TString
Field
FieldName = '
supplied_by_customer_ref_art_a
'
end
object XDataWebDataSet1
fullSizePanel: TBoolean
Field
FieldName = '
fullSizePanel
'
object XDataWebDataSet1
cut_die_cutdier: TString
Field
FieldName = '
cut_die_cutdier
'
end
object XDataWebDataSet1
inQuickBooks
: TStringField
FieldName = '
inQuickBooks
'
object XDataWebDataSet1
cut_die_cutdieb
: TStringField
FieldName = '
cut_die_cutdieb
'
end
object XDataWebDataSet1
jobName
: TStringField
FieldName = '
jobName
'
object XDataWebDataSet1
cut_die_cutdief
: TStringField
FieldName = '
cut_die_cutdief
'
end
object XDataWebDataSet1
jobNumbe
r: TStringField
FieldName = '
jobNumbe
r'
object XDataWebDataSet1
cut_die_cutdierk
r: TStringField
FieldName = '
cut_die_cutdierk
r'
end
object XDataWebDataSet1
loose
: TStringField
FieldName = '
loose
'
object XDataWebDataSet1
cut_die_cutdiefkr
: TStringField
FieldName = '
cut_die_cutdiefkr
'
end
object XDataWebDataSet1
machineIdent
: TStringField
FieldName = '
machineIdent
'
object XDataWebDataSet1
cut_die_cad_file
: TStringField
FieldName = '
cut_die_cad_file
'
end
object XDataWebDataSet1
mountDue
: TStringField
FieldName = '
mountDue
'
object XDataWebDataSet1
cut_die_attached
: TStringField
FieldName = '
cut_die_attached
'
end
object XDataWebDataSet1
orderDate
: TStringField
FieldName = '
orderDate
'
object XDataWebDataSet1
cut_die_boxpol250
: TStringField
FieldName = '
cut_die_boxpol250
'
end
object XDataWebDataSet1
other
: TStringField
FieldName = '
other
'
object XDataWebDataSet1
cut_die_boxpol155
: TStringField
FieldName = '
cut_die_boxpol155
'
end
object XDataWebDataSet1
pdfFile: TBoolean
Field
FieldName = '
pdfFile
'
object XDataWebDataSet1
cut_die_boxpol125: TString
Field
FieldName = '
cut_die_boxpol125
'
end
object XDataWebDataSet1
plateDue
: TStringField
FieldName = '
plateDue
'
object XDataWebDataSet1
cut_die_brub
: TStringField
FieldName = '
cut_die_brub
'
end
object XDataWebDataSet1p
lateMaterial
: TStringField
FieldName = 'p
lateMaterial
'
object XDataWebDataSet1p
roofing_fax
: TStringField
FieldName = 'p
roofing_fax
'
end
object XDataWebDataSet1p
lates: TBoolean
Field
FieldName = 'p
lates
'
object XDataWebDataSet1p
roofing_fax_attn: TString
Field
FieldName = 'p
roofing_fax_attn
'
end
object XDataWebDataSet1pr
intCard: TBoolean
Field
FieldName = 'pr
intCard
'
object XDataWebDataSet1pr
oofing_e_mail: TString
Field
FieldName = 'pr
oofing_e_mail
'
end
object XDataWebDataSet1proof
Date
: TStringField
FieldName = 'proof
Date
'
object XDataWebDataSet1proof
ing_ship_to
: TStringField
FieldName = 'proof
ing_ship_to
'
end
object XDataWebDataSet1proof
Email
: TStringField
FieldName = 'proof
Email
'
object XDataWebDataSet1proof
ing_other
: TStringField
FieldName = 'proof
ing_other
'
end
object XDataWebDataSet1proof
Other
: TStringField
FieldName = 'proof
Other
'
object XDataWebDataSet1proof
ing_changes_required
: TStringField
FieldName = 'proof
ing_changes_required
'
end
object XDataWebDataSet1proof
ShipTo: TString
Field
FieldName = 'proof
ShipTo
'
object XDataWebDataSet1proof
ing_changes_date: TDate
Field
FieldName = 'proof
ing_changes_date
'
end
object XDataWebDataSet1
quickBooksItem
: TStringField
FieldName = '
quickBooksItem
'
object XDataWebDataSet1
layout_rsc_l
: TStringField
FieldName = '
layout_rsc_l
'
end
object XDataWebDataSet1
refArtPrintCard
: TStringField
FieldName = '
refArtPrintCard
'
object XDataWebDataSet1
layout_rcs_w
: TStringField
FieldName = '
layout_rcs_w
'
end
object XDataWebDataSet1
rscStyle
: TStringField
FieldName = '
rscStyle
'
object XDataWebDataSet1
layout_rcs_d
: TStringField
FieldName = '
layout_rcs_d
'
end
object XDataWebDataSet1
rscd
: TStringField
FieldName = '
rscd
'
object XDataWebDataSet1
layout_die_cut_no
: TStringField
FieldName = '
layout_die_cut_no
'
end
object XDataWebDataSet1
rescl
: TStringField
FieldName = '
rescl
'
object XDataWebDataSet1
layout_accross_no
: TStringField
FieldName = '
layout_accross_no
'
end
object XDataWebDataSet1
rscw
: TStringField
FieldName = '
rscw
'
object XDataWebDataSet1
layout_around_no
: TStringField
FieldName = '
layout_around_no
'
end
object XDataWebDataSet1
sampleCarton: TBoolean
Field
FieldName = '
sampleCarton
'
object XDataWebDataSet1
layout_cad_file: TString
Field
FieldName = '
layout_cad_file
'
end
object XDataWebDataSet1
shipDate
: TStringField
FieldName = '
shipDate
'
object XDataWebDataSet1
mounting_standard_setup
: TStringField
FieldName = '
mounting_standard_setup
'
end
object XDataWebDataSet1
shipTo
: TStringField
FieldName = '
shipTo
'
object XDataWebDataSet1
mounting_custom_backing
: TStringField
FieldName = '
mounting_custom_backing
'
end
object XDataWebDataSet1
shipVia
: TStringField
FieldName = '
shipVia
'
object XDataWebDataSet1
mounting_custom_adhesive
: TStringField
FieldName = '
mounting_custom_adhesive
'
end
object XDataWebDataSet1
specialInstructions
: TStringField
FieldName = '
specialInstructions
'
object XDataWebDataSet1
colors_cylinder_size
: TStringField
FieldName = '
colors_cylinder_size
'
end
object XDataWebDataSet1
standardSetup
: TStringField
FieldName = '
standardSetup
'
object XDataWebDataSet1
colors_cross_hairs
: TStringField
FieldName = '
colors_cross_hairs
'
end
object XDataWebDataSet1
stickyBak: TBoolean
Field
FieldName = '
stickyBak
'
object XDataWebDataSet1
colors_machine_ident: TString
Field
FieldName = '
colors_machine_ident
'
end
object XDataWebDataSet1
stripMount
: TStringField
FieldName = '
stripMount
'
object XDataWebDataSet1
colors_clemson
: TStringField
FieldName = '
colors_clemson
'
end
object XDataWebDataSet1thickness: TStringField
FieldName = 'thickness'
object XDataWebDataSet1
plates_
thickness: TStringField
FieldName = '
plates_
thickness'
end
object XDataWebDataSet1
wideFormat
: TStringField
FieldName = '
wideFormat
'
object XDataWebDataSet1
plates_plate_material
: TStringField
FieldName = '
plates_plate_material
'
end
object XDataWebDataSet1
price
: TStringField
FieldName = '
price
'
object XDataWebDataSet1
general_special_instructions
: TStringField
FieldName = '
general_special_instructions
'
end
object XDataWebDataSet1
invoiceTo
: TStringField
FieldName = '
invoiceTo
'
object XDataWebDataSet1
colors_colors
: TStringField
FieldName = '
colors_colors
'
end
object XDataWebDataSet1
colorCopy: TBoolean
Field
FieldName = '
colorCopy
'
object XDataWebDataSet1
staff_fields_quickbooks_item: TString
Field
FieldName = '
staff_fields_quickbooks_item
'
end
object XDataWebDataSet1
refArtAPDF
: TStringField
FieldName = '
refArtAPDF
'
object XDataWebDataSet1
staff_fields_quantity
: TStringField
FieldName = '
staff_fields_quantity
'
end
object XDataWebDataSet1
poNumber
: TStringField
FieldName = '
poNumber
'
object XDataWebDataSet1
layout_rsc_style
: TStringField
FieldName = '
layout_rsc_style
'
end
object XDataWebDataSet1colors: TStringField
FieldName = 'colors'
object XDataWebDataSet1staff_fields_art_location: TStringField
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
object WebDataSource1: TWebDataSource
...
...
kgOrdersClient/View.OrderEntryCorrugated.pas
View file @
fcb79526
...
...
@@ -96,74 +96,96 @@ type
tmrScrollTop
:
TWebTimer
;
XDataWebDataSet1
:
TXDataWebDataSet
;
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
;
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
HideNotification
();
procedure
ShowNotification
(
Notification
:
string
);
...
...
@@ -195,7 +217,7 @@ uses
procedure
TFOrderEntry
.
btnConfirmClick
(
Sender
:
TObject
);
var
colorList
:
T
List
<
TJSONObject
>
;
colorList
:
T
JSONArray
;
container
:
TJSElement
;
colorCollection
:
TJSHTMLCollection
;
color
:
TJSHTMLElement
;
...
...
@@ -206,7 +228,7 @@ var
header
,
value
:
string
;
begin
//TJSONObject.Create;
colorList
:=
T
List
<
TJSONObject
>
.
Create
;
colorList
:=
T
JSONArray
.
Create
;
container
:=
document
.
getElementById
(
'additionalFields'
);
colorCollection
:=
container
.
children
;
for
I
:=
0
to
colorCollection
.
length
-
1
do
...
...
@@ -220,37 +242,9 @@ begin
value
:=
TJSHTMLInputElement
(
TJSHTMLElement
(
itemList
[
J
]).
childNodes
[
1
]).
value
;
colorJSON
.
AddPair
(
header
,
value
);
end
;
colorList
.
Add
(
colorJ
son
);
colorList
.
Add
(
colorJ
SON
);
end
;
for
colorJSON
in
colorList
do
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;}
console
.
log
(
colorList
.
ToString
);
end
;
class
function
TFOrderEntry
.
CreateForm
(
AElementID
,
orderInfo
:
string
):
TWebForm
;
...
...
@@ -355,7 +349,8 @@ begin
XDataWebDataSet1
.
Close
;
XDataWebDataSet1
.
SetJsonData
(
order
);
XDataWebDataSet1
.
Open
;
colorObject
:=
TJSObject
(
TJSJSON
.
parse
(
XDataWebDataSet1colors
.
Value
));
colorObject
:=
TJSObject
(
TJSJSON
.
parse
(
XDataWebDataSet1colors_colors
.
Value
));
console
.
log
(
order
);
colorList
:=
TJSArray
(
colorObject
[
'items'
]);
colorLength
:=
colorList
.
length
;
for
i
:=
0
to
colorLength
-
1
do
...
...
@@ -363,20 +358,20 @@ begin
color
:=
TJSObject
(
colorList
[
i
]);
addColorRow
(
String
(
color
[
'#'
]),
string
(
color
[
'Color'
]),
string
(
color
[
'LPI'
]),
string
(
color
[
'Size'
]));
end
;
if
not
(
XDataWebDataSet1
orderD
ate
.
AsString
=
''
)
then
dtpOrderDate
.
Date
:=
StrToDateTime
(
XDataWebDataSet1
orderD
ate
.
Value
);
if
not
(
XDataWebDataSet1
proofD
ate
.
AsString
=
''
)
then
dtpProofDate
.
Date
:=
StrToDateTime
(
XDataWebDataSet1
proofDate
.
Value
);
if
not
(
XDataWebDataSet1s
hipD
ate
.
AsString
=
''
)
then
dtpShipDate
.
Date
:=
StrToDateTime
(
XDataWebDataSet1s
hipDate
.
Value
);
if
not
(
XDataWebDataSet1
artD
ue
.
AsString
=
''
)
then
dtpArtDue
.
Date
:=
StrToDateTime
(
XDataWebDataSet1
artDue
.
Value
);
if
not
(
XDataWebDataSet1
plateD
ue
.
AsString
=
''
)
then
dtpPlateDue
.
Date
:=
StrToDateTime
(
XDataWebDataSet1
plateDue
.
Value
);
if
not
(
XDataWebDataSet1
mountD
ue
.
AsString
=
''
)
then
dtpMountDue
.
Date
:=
StrToDateTime
(
XDataWebDataSet1
mountDue
.
Value
);
if
not
(
XDataWebDataSet1
approvedD
ate
.
AsString
=
''
)
then
dtpApprovedDate
.
Date
:=
StrToDateTime
(
XDataWebDataSet1
approvedDate
.
Value
)
if
not
(
XDataWebDataSet1
staff_fields_order_d
ate
.
AsString
=
''
)
then
dtpOrderDate
.
Date
:=
StrToDateTime
(
XDataWebDataSet1
staff_fields_order_d
ate
.
Value
);
if
not
(
XDataWebDataSet1
staff_fields_proof_d
ate
.
AsString
=
''
)
then
dtpProofDate
.
Date
:=
StrToDateTime
(
XDataWebDataSet1
staff_fields_proof_date
.
AsString
);
if
not
(
XDataWebDataSet1s
taff_fields_ship_d
ate
.
AsString
=
''
)
then
dtpShipDate
.
Date
:=
StrToDateTime
(
XDataWebDataSet1s
taff_fields_ship_date
.
AsString
);
if
not
(
XDataWebDataSet1
staff_fields_art_d
ue
.
AsString
=
''
)
then
dtpArtDue
.
Date
:=
StrToDateTime
(
XDataWebDataSet1
staff_fields_art_due
.
AsString
);
if
not
(
XDataWebDataSet1
staff_fields_plate_d
ue
.
AsString
=
''
)
then
dtpPlateDue
.
Date
:=
StrToDateTime
(
XDataWebDataSet1
staff_fields_plate_due
.
AsString
);
if
not
(
XDataWebDataSet1
staff_fields_mount_d
ue
.
AsString
=
''
)
then
dtpMountDue
.
Date
:=
StrToDateTime
(
XDataWebDataSet1
staff_fields_mount_due
.
AsString
);
if
not
(
XDataWebDataSet1
proofing_approved_d
ate
.
AsString
=
''
)
then
dtpApprovedDate
.
Date
:=
StrToDateTime
(
XDataWebDataSet1
proofing_approved_date
.
AsString
)
else
dtpApprovedDate
.
Date
:=
Now
;
end
;
...
...
kgOrdersServer/Source/Database.dfm
View file @
fcb79526
...
...
@@ -33,4 +33,347 @@ object FDatabaseModule: TFDatabaseModule
Left = 433
Top = 144
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
kgOrdersServer/Source/Database.pas
View file @
fcb79526
...
...
@@ -16,6 +16,94 @@ type
UniQuery1
:
TUniQuery
;
MySQLUniProvider1
:
TMySQLUniProvider
;
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
);
private
{ Private declarations }
...
...
kgOrdersServer/Source/Lookup.Service.pas
View file @
fcb79526
...
...
@@ -57,24 +57,25 @@ type
TOrderItem
=
class
public
ID
:
string
;
companyName
:
string
;
jobName
:
string
;
orderDate
:
string
;
proofDue
:
string
;
proofDone
:
string
;
artDue
:
string
;
artDone
:
string
;
plateDue
:
string
;
plateDone
:
string
;
mountDue
:
string
;
mountDone
:
string
;
shipDue
:
string
;
shipDone
:
string
;
price
:
string
;
qbRefNum
:
string
;
colors
:
string
;
orderType
:
string
;
ID
,
companyName
,
jobName
,
orderDate
,
proofDue
,
proofDone
,
artDue
,
artDone
,
plateDue
,
plateDone
,
mountDue
,
mountDone
,
shipDue
,
shipDone
,
price
,
qbRefNum
,
orderType
,
colors
:
string
;
end
;
TOrderList
=
class
...
...
@@ -86,89 +87,92 @@ type
TFullOrder
=
class
Public
//Company
companyName
:
string
;
accountCompanyName
:
string
;
NAME
:
string
;
SHORT_NAME
:
string
;
inQuickBooks
:
string
;
// Staff Fields:
orderD
ate
:
string
;
proofD
ate
:
string
;
s
hipD
ate
:
string
;
s
hipV
ia
:
string
;
Q
uantity
:
string
;
price
:
string
;
invoiceT
o
:
string
;
s
hipT
o
:
string
;
poN
umber
:
string
;
jobN
ame
:
string
;
quickBooksI
tem
:
string
;
artD
ue
:
string
;
plateD
ue
:
string
;
mountD
ue
:
string
;
artL
ocation
:
string
;
staff_fields_order_d
ate
:
string
;
staff_fields_proof_d
ate
:
string
;
s
taff_fields_ship_d
ate
:
string
;
s
taff_fields_ship_v
ia
:
string
;
staff_fields_q
uantity
:
string
;
staff_fields_
price
:
string
;
staff_fields_invoice_t
o
:
string
;
s
taff_fields_ship_t
o
:
string
;
staff_fields_po_n
umber
:
string
;
staff_fields_job_n
ame
:
string
;
staff_fields_quickbooks_i
tem
:
string
;
staff_fields_art_d
ue
:
string
;
staff_fields_plate_d
ue
:
string
;
staff_fields_mount_d
ue
:
string
;
staff_fields_art_l
ocation
:
string
;
// Supplied by Customer:
bwC
opy
:
boolean
;
colorC
opy
:
boolean
;
plates
:
boolean
;
s
ampleCarton
:
boolean
;
dimensionalLayout
:
string
;
diskOrCD
:
boolean
;
e
mail
:
string
;
ftp
:
string
;
other
:
string
;
existingCuttingDie
:
string
;
refArtPrintCard
:
string
;
refArtAPDF
:
string
;
supplied_by_customer_b_w_c
opy
:
boolean
;
supplied_by_customer_color_c
opy
:
boolean
;
supplied_by_customer_
plates
:
boolean
;
s
upplied_by_customer_sample_ca
:
boolean
;
supplied_by_customer_dimension
:
string
;
supplied_by_customer_disk_or_cd
:
boolean
;
supplied_by_customer_e_
mail
:
string
;
supplied_by_customer_
ftp
:
string
;
supplied_by_customer_
other
:
string
;
supplied_by_customer_existing_
:
string
;
supplied_by_customer_ref_art_p
:
string
;
supplied_by_customer_ref_art_a
:
string
;
// Layout
rscl
:
string
;
rscw
:
string
;
rscd
:
string
;
dieCutNo
:
string
;
acrossNo
:
string
;
aroundNo
:
string
;
cadFile
:
string
;
excalliburDie
:
boolean
;
rscStyle
:
string
;
layout_rsc_l
:
string
;
//Typos to match database typos
layout_rcs_w
:
string
;
layout_rcs_d
:
string
;
layout_die_cut_no
:
string
;
layout_accross_no
:
string
;
layout_around_no
:
string
;
layout_cad_file
:
string
;
layout_excalibur_die
:
boolean
;
layout_rsc_style
:
string
;
// Mounting
loose
:
string
;
stickyB
ak
:
boolean
;
fullM
ount
:
boolean
;
stripM
ount
:
string
;
standardS
etup
:
string
;
customB
acking
:
string
;
customA
dhesive
:
string
;
mounting_
loose
:
string
;
mounting_sticky_b
ak
:
boolean
;
mounting_full_m
ount
:
boolean
;
mounting_strip_m
ount
:
string
;
mounting_standard_s
etup
:
string
;
mounting_custom_b
acking
:
string
;
mounting_custom_a
dhesive
:
string
;
// Colors
c
ylinderS
ize
:
string
;
machineI
dent
:
string
;
c
rossH
airs
:
string
;
clemson
:
string
;
colors
:
string
;
c
olors_cylinder_s
ize
:
string
;
colors_machine_i
dent
:
string
;
c
olors_cross_h
airs
:
string
;
c
olors_c
lemson
:
string
;
colors
_colors
:
string
;
// Proofing
fax
:
string
;
faxA
ttn
:
string
;
proof
E
mail
:
string
;
emailA
ttn
:
string
;
proof
ShipT
o
:
string
;
fullSizeP
anel
:
boolean
;
pr
intC
ard
:
boolean
;
wideF
ormat
:
boolean
;
p
dfF
ile
:
boolean
;
proof
O
ther
:
string
;
artApprovedAsI
s
:
boolean
;
approvedD
ate
:
string
;
proofing_
fax
:
string
;
proofing_fax_a
ttn
:
string
;
proof
ing_e_
mail
:
string
;
proofing_e_mail_a
ttn
:
string
;
proof
ing_ship_t
o
:
string
;
proofing_full_size_p
anel
:
boolean
;
pr
oofing_print_c
ard
:
boolean
;
proofing_wide_f
ormat
:
boolean
;
p
roofing_pdf_f
ile
:
boolean
;
proof
ing_o
ther
:
string
;
proofing_art_approved_as_i
s
:
boolean
;
proofing_approved_d
ate
:
string
;
// Plates
thickness
:
string
;
plate
M
aterial
:
string
;
jobN
umber
:
string
;
plates_
thickness
:
string
;
plate
s_plate_m
aterial
:
string
;
plates_job_n
umber
:
string
;
// General
specialI
nstructions
:
string
;
general_special_i
nstructions
:
string
;
end
;
...
...
kgOrdersServer/Source/Lookup.ServiceImpl.pas
View file @
fcb79526
...
...
@@ -12,7 +12,7 @@ uses
XData
.
Server
.
Module
,
XData
.
Service
.
Common
,
Database
,
Data
.
DB
,
Lookup
.
Service
,
System
.
Hash
,
System
.
Classes
;
Lookup
.
Service
,
System
.
Hash
,
System
.
Classes
,
System
.
JSON
;
type
...
...
@@ -32,6 +32,7 @@ type
function
DelUser
(
username
:
string
):
string
;
function
generateSelectSQL
(
filterType
,
startDate
,
endDate
:
string
):
string
;
function
generateSubQuery
(
filterType
:
string
;
currStatus
:
string
):
string
;
function
AddCorrugatedOrder
(
orderInfo
:
string
):
TJSONObject
;
procedure
AfterConstruction
;
override
;
procedure
BeforeDestruction
;
override
;
end
;
...
...
@@ -256,161 +257,162 @@ begin
result
:=
TFullOrder
.
Create
;
// Company
result
.
companyName
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'NAME'
).
AsString
;
result
.
accountCompanyName
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'SHORT_NAME'
).
AsString
;
result
.
NAME
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'NAME'
).
AsString
;
result
.
SHORT_NAME
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'SHORT_NAME'
).
AsString
;
result
.
inQuickBooks
:=
'?'
;
// Staff Fields
result
.
orderD
ate
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'staff_fields_order_date'
).
AsString
;
result
.
proofD
ate
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'staff_fields_proof_date'
).
AsString
;
result
.
s
hipD
ate
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'staff_fields_ship_date'
).
AsString
;
result
.
s
hipV
ia
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'staff_fields_ship_via'
).
AsString
;
result
.
Q
uantity
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'staff_fields_quantity'
).
AsString
;
result
.
s
hipT
o
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'staff_fields_ship_to'
).
AsString
;
result
.
poN
umber
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'staff_fields_po_number'
).
AsString
;
result
.
jobN
ame
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'staff_fields_job_name'
).
AsString
;
result
.
quickBooksI
tem
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'staff_fields_quickbooks_item'
).
AsString
;
result
.
artD
ue
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'staff_fields_art_due'
).
AsString
;
result
.
plateD
ue
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'staff_fields_plate_due'
).
AsString
;
result
.
staff_fields_order_d
ate
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'staff_fields_order_date'
).
AsString
;
result
.
staff_fields_proof_d
ate
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'staff_fields_proof_date'
).
AsString
;
result
.
s
taff_fields_ship_d
ate
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'staff_fields_ship_date'
).
AsString
;
result
.
s
taff_fields_ship_v
ia
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'staff_fields_ship_via'
).
AsString
;
result
.
staff_fields_q
uantity
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'staff_fields_quantity'
).
AsString
;
result
.
s
taff_fields_ship_t
o
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'staff_fields_ship_to'
).
AsString
;
result
.
staff_fields_po_n
umber
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'staff_fields_po_number'
).
AsString
;
result
.
staff_fields_job_n
ame
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'staff_fields_job_name'
).
AsString
;
result
.
staff_fields_quickbooks_i
tem
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'staff_fields_quickbooks_item'
).
AsString
;
result
.
staff_fields_art_d
ue
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'staff_fields_art_due'
).
AsString
;
result
.
staff_fields_plate_d
ue
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'staff_fields_plate_due'
).
AsString
;
if
orderType
=
'corrugated_plate_order'
then
result
.
mountD
ue
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'staff_fields_mount_due'
).
AsString
;
result
.
artL
ocation
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'staff_fields_art_location'
).
AsString
;
result
.
staff_fields_mount_d
ue
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'staff_fields_mount_due'
).
AsString
;
result
.
staff_fields_art_l
ocation
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'staff_fields_art_location'
).
AsString
;
// Supplied by Customer
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
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
result
.
colorC
opy
:=
true
result
.
supplied_by_customer_color_c
opy
:=
true
else
result
.
colorC
opy
:=
false
;
result
.
supplied_by_customer_color_c
opy
:=
false
;
if
ordersDB
.
UniQuery1
.
FieldByName
(
'supplied_by_customer_plates'
).
AsString
=
'T'
then
result
.
plates
:=
true
result
.
supplied_by_customer_
plates
:=
true
else
result
.
plates
:=
false
;
result
.
supplied_by_customer_
plates
:=
false
;
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
result
.
s
ampleCarton
:=
false
;
result
.
dimensionalLayout
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'supplied_by_customer_dimension'
).
AsString
;
result
.
s
upplied_by_customer_sample_ca
:=
false
;
result
.
supplied_by_customer_dimension
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'supplied_by_customer_dimension'
).
AsString
;
if
orderType
=
'web_plate'
then
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
else
result
.
diskOrCD
:=
false
;
result.diskOrCD := false;
}
end
else
begin
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
result
.
diskOrCD
:=
false
;
result
.
supplied_by_customer_disk_or_cd
:=
false
;
end
;
result
.
e
mail
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'supplied_by_customer_e_mail'
).
AsString
;
result
.
ftp
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'supplied_by_customer_ftp'
).
AsString
;
result
.
other
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'supplied_by_customer_other'
).
AsString
;
result
.
supplied_by_customer_e_
mail
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'supplied_by_customer_e_mail'
).
AsString
;
result
.
supplied_by_customer_
ftp
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'supplied_by_customer_ftp'
).
AsString
;
result
.
supplied_by_customer_
other
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'supplied_by_customer_other'
).
AsString
;
if
orderType
=
'corrugated_plate'
then
begin
result
.
existingCuttingDie
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'supplied_by_customer_existing_'
).
AsString
;
result
.
refArtPrintCard
:=
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_existing_
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'supplied_by_customer_existing_'
).
AsString
;
result
.
supplied_by_customer_ref_art_p
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'supplied_by_customer_ref_art_p'
).
AsString
;
result
.
supplied_by_customer_ref_art_a
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'supplied_by_customer_ref_art_a'
).
AsString
;
end
;
// Layout
if
orderType
=
'corrugated_plate'
then
begin
result
.
rsc
l
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'layout_rsc_l'
).
AsString
;
result
.
rsc
w
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'layout_rcs_w'
).
AsString
;
result
.
rsc
d
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'layout_rcs_d'
).
AsString
;
result
.
dieCutN
o
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'layout_die_cut_no'
).
AsString
;
result
.
acrossN
o
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'layout_accross_no'
).
AsString
;
result
.
aroundN
o
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'layout_around_no'
).
AsString
;
result
.
cadF
ile
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'layout_cad_file'
).
AsString
;
result
.
layout_rsc_
l
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'layout_rsc_l'
).
AsString
;
result
.
layout_rcs_
w
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'layout_rcs_w'
).
AsString
;
result
.
layout_rcs_
d
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'layout_rcs_d'
).
AsString
;
result
.
layout_die_cut_n
o
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'layout_die_cut_no'
).
AsString
;
result
.
layout_accross_n
o
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'layout_accross_no'
).
AsString
;
result
.
layout_around_n
o
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'layout_around_no'
).
AsString
;
result
.
layout_cad_f
ile
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'layout_cad_file'
).
AsString
;
if
ordersDB
.
UniQuery1
.
FieldByName
(
'layout_excalibur_die'
).
AsString
=
'T'
then
result
.
excalliburD
ie
:=
true
result
.
layout_excalibur_d
ie
:=
true
else
result
.
excalliburD
ie
:=
false
;
result
.
rscS
tyle
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'layout_rsc_style'
).
AsString
;
result
.
layout_excalibur_d
ie
:=
false
;
result
.
layout_rsc_s
tyle
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'layout_rsc_style'
).
AsString
;
end
else
begin
result
.
acrossNo
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'layout_accross'
).
AsString
;
result
.
aroundNo
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'layout_around'
).
AsString
;
//
result.acrossNo := ordersDB.UniQuery1.FieldByName('layout_accross').AsString;
//
result.aroundNo := ordersDB.UniQuery1.FieldByName('layout_around').AsString;
end
;
// Mounting & Colors & Proofing
if
orderType
=
'corrugated_plate'
then
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
result
.
stickyB
ak
:=
true
result
.
mounting_sticky_b
ak
:=
true
else
result
.
stickyB
ak
:=
false
;
result
.
mounting_sticky_b
ak
:=
false
;
if
ordersDB
.
UniQuery1
.
FieldByName
(
'mounting_full_mount'
).
AsString
=
'T'
then
result
.
fullM
ount
:=
true
result
.
mounting_full_m
ount
:=
true
else
result
.
fullMount
:=
false
;
result
.
stripMount
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'mounting_strip_mount'
).
AsString
;
result
.
standardSetup
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'mounting_standard_setup'
).
AsString
;
result
.
customBacking
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'mounting_custom_backing'
).
AsString
;
result
.
customAdhesive
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'mounting_custom_adhesive'
).
AsString
;
result
.
cylinderSize
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'colors_cylinder_size'
).
AsString
;
result
.
machineIdent
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'colors_machine_ident'
).
AsString
;
result
.
crossHairs
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'colors_cross_hairs'
).
AsString
;
result
.
clemson
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'colors_clemson'
).
AsString
;
result
.
colors
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'colors_colors'
).
AsString
;
result
.
fax
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'proofing_fax'
).
AsString
;
result
.
faxAttn
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'proofing_fax_attn'
).
AsString
;
result
.
proofEmail
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'proofing_e_mail'
).
AsString
;
result
.
proofShipTo
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'proofing_ship_to'
).
AsString
;
result
.
mounting_full_mount
:=
false
;
result
.
mounting_strip_mount
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'mounting_strip_mount'
).
AsString
;
result
.
mounting_standard_setup
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'mounting_standard_setup'
).
AsString
;
result
.
mounting_custom_backing
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'mounting_custom_backing'
).
AsString
;
result
.
mounting_custom_adhesive
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'mounting_custom_adhesive'
).
AsString
;
result
.
colors_cylinder_size
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'colors_cylinder_size'
).
AsString
;
result
.
colors_machine_ident
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'colors_machine_ident'
).
AsString
;
result
.
colors_cross_hairs
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'colors_cross_hairs'
).
AsString
;
result
.
colors_clemson
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'colors_clemson'
).
AsString
;
result
.
colors_colors
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'colors_colors'
).
AsString
;
result
.
proofing_fax
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'proofing_fax'
).
AsString
;
result
.
proofing_fax_attn
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'proofing_fax_attn'
).
AsString
;
result
.
proofing_e_mail
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'proofing_e_mail'
).
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
result
.
fullSizeP
anel
:=
true
result
.
proofing_full_size_p
anel
:=
true
else
result
.
fullSizeP
anel
:=
false
;
result
.
proofing_full_size_p
anel
:=
false
;
if
ordersDB
.
UniQuery1
.
FieldByName
(
'proofing_print_card'
).
AsString
=
'T'
then
result
.
pr
intC
ard
:=
true
result
.
pr
oofing_print_c
ard
:=
true
else
result
.
pr
intC
ard
:=
false
;
result
.
pr
oofing_print_c
ard
:=
false
;
if
ordersDB
.
UniQuery1
.
FieldByName
(
'proofing_wide_format'
).
AsString
=
'T'
then
result
.
wideF
ormat
:=
true
result
.
proofing_wide_f
ormat
:=
true
else
result
.
wideF
ormat
:=
false
;
result
.
proofing_wide_f
ormat
:=
false
;
if
ordersDB
.
UniQuery1
.
FieldByName
(
'proofing_pdf_file'
).
AsString
=
'T'
then
result
.
p
dfF
ile
:=
true
result
.
p
roofing_pdf_f
ile
:=
true
else
result
.
p
dfF
ile
:=
false
;
result
.
proof
O
ther
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'proofing_other'
).
AsString
;
result
.
p
roofing_pdf_f
ile
:=
false
;
result
.
proof
ing_o
ther
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'proofing_other'
).
AsString
;
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
result
.
artApprovedAsI
s
:=
false
;
result
.
approvedD
ate
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'proofing_approved_date'
).
AsString
;
result
.
proofing_art_approved_as_i
s
:=
false
;
result
.
proofing_approved_d
ate
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'proofing_approved_date'
).
AsString
;
end
else
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
result.pdfFile := true
else
result
.
pdfFile
:=
false
;
result.pdfFile := false;
}
end
;
// Plates
result
.
thickness
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'plates_thickness'
).
AsString
;
result
.
plate
M
aterial
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'plates_plate_material'
).
AsString
;
result
.
jobN
umber
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'plates_job_number'
).
AsString
;
result
.
plates_
thickness
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'plates_thickness'
).
AsString
;
result
.
plate
s_plate_m
aterial
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'plates_plate_material'
).
AsString
;
result
.
plates_job_n
umber
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'plates_job_number'
).
AsString
;
// General
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
result
.
specialInstructions
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'general_comments'
).
AsString
//
result.specialInstructions := ordersDB.UniQuery1.FieldByName('general_comments').AsString
...
...
@@ -595,6 +597,54 @@ begin
ordersDB
.
UniQuery1
.
Close
;
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
;
var
...
...
kgOrdersServer/kgOrdersServer.ini
View file @
fcb79526
[Options]
LogFileNum
=
1
39
LogFileNum
=
1
42
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