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
601d01e1
Commit
601d01e1
authored
Dec 05, 2024
by
cam
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed width of the boxes on the order entry form
parent
d479324a
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
195 additions
and
121 deletions
+195
-121
View.OrderEntryCorrugated.dfm
kgOrdersClient/View.OrderEntryCorrugated.dfm
+31
-14
View.OrderEntryCorrugated.html
kgOrdersClient/View.OrderEntryCorrugated.html
+94
-98
View.OrderEntryCorrugated.pas
kgOrdersClient/View.OrderEntryCorrugated.pas
+22
-3
View.Orders.pas
kgOrdersClient/View.Orders.pas
+2
-1
app.css
kgOrdersClient/template/css/app.css
+6
-1
Lookup.Service.pas
kgOrdersServer/Source/Lookup.Service.pas
+8
-2
Lookup.ServiceImpl.pas
kgOrdersServer/Source/Lookup.ServiceImpl.pas
+31
-1
kgOrdersServer.ini
kgOrdersServer/kgOrdersServer.ini
+1
-1
No files found.
kgOrdersClient/View.OrderEntryCorrugated.dfm
View file @
601d01e1
...
...
@@ -239,13 +239,14 @@ object FOrderEntry: TFOrderEntry
object edtCompanyName: TWebDBEdit
Left = 24
Top = 92
Width =
121
Width =
260
Height = 22
AutoSize = True
ChildOrder = 79
ElementID = 'edtcompanyname'
HeightPercent = 100.000000000000000000
MaxLength = 90
WidthStyle = ssAuto
WidthPercent = 100.000000000000000000
DataField = 'NAME'
DataSource = WebDataSource1
...
...
@@ -327,19 +328,6 @@ object FOrderEntry: TFOrderEntry
DataField = 'staff_fields_invoice_to'
DataSource = WebDataSource1
end
object edtShipTo: TWebDBEdit
Left = 26
Top = 430
Width = 121
Height = 22
AutoSize = True
ChildOrder = 79
ElementID = 'edtshipto'
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
DataField = 'staff_fields_ship_to'
DataSource = WebDataSource1
end
object edtPONumber: TWebDBEdit
Left = 26
Top = 458
...
...
@@ -965,6 +953,20 @@ object FOrderEntry: TFOrderEntry
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
end
object WebDBComboBox1: TWebDBComboBox
Left = 26
Top = 430
Width = 145
Height = 22
ElementID = 'wcbshipto'
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
ItemIndex = -1
DataField = 'staff_fields_ship_to'
DataSource = WebDataSource1
ListField = 'ADDRESS'
ListSource = wdsShipTo
end
object XDataWebClient1: TXDataWebClient
Connection = DMConnection.ApiConnection
Left = 244
...
...
@@ -1247,10 +1249,25 @@ object FOrderEntry: TFOrderEntry
object XDataWebDataSet1staff_fields_mount_due: TStringField
FieldName = 'staff_fields_mount_due'
end
object XDataWebDataSet1ADDRESS_LIST: TStringField
FieldName = 'ADDRESS_LIST'
end
end
object WebDataSource1: TWebDataSource
DataSet = XDataWebDataSet1
Left = 216
Top = 104
end
object wdsShipTo: TWebDataSource
DataSet = xdwdsShipTo
Left = 212
Top = 436
end
object xdwdsShipTo: TXDataWebDataSet
Left = 192
Top = 486
object xdwdsShipToADDRESS: TStringField
FieldName = 'ADDRESS'
end
end
end
kgOrdersClient/View.OrderEntryCorrugated.html
View file @
601d01e1
...
...
@@ -12,80 +12,76 @@
<div
class=
"row"
>
<div
class=
"col-auto"
>
<label
for=
"wdbe_first_name"
class=
"form-label mt-2"
>
Company Name:
</label>
<input
id=
"edtcompanyname"
type=
"text"
class=
"form-control"
width=
150px
/
>
<input
id=
"edtcompanyname"
type=
"text"
class=
"form-control"
style=
"width: 300px;"
/>
</div>
<div
class=
"col-auto"
>
<label
for=
"wdbe_first_name"
class=
"form-label mt-2"
>
Account Company Name:
</label>
<input
id=
"edtaccountcompanyname"
type=
"text"
class=
"form-control"
width=
300px
/
>
<input
id=
"edtaccountcompanyname"
type=
"text"
class=
"form-control"
style=
"width: 150px"
/>
</div>
<div
class=
"col-auto"
>
<label
for=
"wdbe_first_name"
class=
"form-label mt-2"
>
In Quickbooks?:
</label>
<input
id=
"edtinquickbooks"
type=
"text"
class=
"form-control"
width=
300px
/
>
<input
id=
"edtinquickbooks"
type=
"text"
class=
"form-control"
style=
"width: 150px"
/>
</div>
</div>
<h4
class=
"custom-h4 mt-3"
>
Staff Fields
</h4>
<hr
class=
"custom-hr"
>
<div
class=
"row"
>
<div
class=
"col-auto"
>
<label
for=
"wdbe_first_name"
class=
"form-label mt-2"
>
Order Date:
</label>
<label
for=
"wdbe_first_name"
style=
"font-weight: 700; font-size: 15px;"
class=
"form-label mt-2"
>
Order Date:
</label>
<input
class=
"form-control input-sm"
id=
"dtporderdate"
type=
"date"
>
</div>
<div
class=
"col-auto"
>
<label
for=
"wdbe_first_name"
class=
"form-label mt-2"
>
Proof Date:
</label>
<label
for=
"wdbe_first_name"
style=
"font-weight: 700; font-size: 15px;"
class=
"form-label mt-2"
>
Proof Date:
</label>
<input
class=
"form-control input-sm"
id=
"dtpproofdate"
type=
"date"
>
</div>
<div
class=
"col-auto"
>
<label
for=
"wdbe_first_name"
class=
"form-label mt-2"
>
Ship Date:
</label>
<label
for=
"wdbe_first_name"
style=
"font-weight: 700; font-size: 15px;"
class=
"form-label mt-2"
>
Ship Date:
</label>
<input
class=
"form-control input-sm"
id=
"dtpshipdate"
type=
"date"
>
</div>
<div
class=
"col-auto"
>
<label
for=
"wdbe_first_name"
class=
"form-label mt-2"
>
Ship Via:
</label>
<input
id=
"edtshipvia"
type=
"text"
class=
"form-control"
width=
300px
/
>
<label
for=
"wdbe_first_name"
style=
"font-weight: 700; font-size: 15px;"
class=
"form-label mt-2"
>
Ship Via:
</label>
<input
id=
"edtshipvia"
type=
"text"
class=
"form-control"
/>
</div>
<div
class=
"col-auto"
>
<label
for=
"wdbe_first_name"
class=
"form-label mt-2"
>
Quantity:
</label>
<input
id=
"edtquantity"
class=
"form-control input-sm"
width=
'50%'
/>
<label
for=
"wdbe_first_name"
style=
"font-weight: 700; font-size: 15px;"
class=
"form-label mt-2"
>
Quantity:
</label>
<input
id=
"edtquantity"
class=
"form-control input-sm"
style=
"width: 100px"
/>
</div>
<div
class=
"col-auto"
>
<label
for=
"wdbe_first_name"
class=
"form-label mt-2"
>
Price:
</label>
<input
id=
"edtprice"
class=
"form-control input-sm"
width=
'50%'
/>
<label
for=
"wdbe_first_name"
style=
"font-weight: 700; font-size: 15px;"
class=
"form-label mt-2"
>
Price:
</label>
<input
id=
"edtprice"
class=
"form-control input-sm"
style=
"width: 100px"
type=
"number"
min=
"0"
/>
</div>
<div
class=
"col-auto"
>
<label
for=
"wdbe_first_name"
class=
"form-label mt-2"
>
Invoice To:
</label>
<input
id=
"edtinvoiceto"
class=
"form-control input-sm"
width=
'50%'
/>
<div>
<label
for=
"wdbe_first_name"
style=
"font-weight: 700; font-size: 15px;"
class=
"form-label mt-2"
>
Invoice To:
</label>
<input
id=
"edtinvoiceto"
class=
"form-control input-sm"
/>
</div>
<div
class=
"col-auto"
>
<label
for=
"wdbe_first_name"
class=
"form-label mt-2"
>
Ship To:
</label>
<
input
id=
"edtshipto"
class=
"form-control input-sm"
width=
'50%'
/
>
<div>
<label
for=
"wdbe_first_name"
style=
"font-weight: 700; font-size: 15px;"
class=
"form-label mt-2"
>
Ship To:
</label>
<
select
id=
"wcbshipto"
class=
'form-select'
></select
>
</div>
<div
class=
"col-auto"
>
<label
for=
"wdbe_first_name"
class=
"form-label mt-2"
>
PO Number:
</label>
<label
for=
"wdbe_first_name"
style=
"font-weight: 700; font-size: 15px;"
class=
"form-label mt-2"
>
PO Number:
</label>
<input
id=
"edtponumber"
class=
"form-control input-sm"
width=
'50%'
/>
</div>
<div
class=
"col-auto"
>
<label
for=
"wdbe_first_name"
class=
"form-label mt-2"
>
Job Name:
</label>
<label
for=
"wdbe_first_name"
style=
"font-weight: 700; font-size: 15px;"
class=
"form-label mt-2"
>
Job Name:
</label>
<input
id=
"edtjobname"
class=
"form-control input-sm"
width=
'50%'
/>
</div>
<div
class=
"col-auto"
>
<label
for=
"wdbe_first_name"
class=
"form-label mt-2"
>
QuickBooks Item:
</label>
<label
for=
"wdbe_first_name"
style=
"font-weight: 700; font-size: 15px;"
class=
"form-label mt-2"
>
QuickBooks Item:
</label>
<input
id=
"edtquickbooksitem"
class=
"form-control input-sm"
width=
'50%'
/>
</div>
<div
class=
"col-auto"
>
<label
for=
"wdbe_first_name"
class=
"form-label mt-2"
>
Art Due:
</label>
<label
for=
"wdbe_first_name"
style=
"font-weight: 700; font-size: 15px;"
class=
"form-label mt-2"
>
Art Due:
</label>
<input
class=
"form-control input-sm"
id=
"dtpartdue"
type=
"date"
>
</div>
<div
class=
"col-auto"
>
<label
for=
"wdbe_first_name"
class=
"form-label mt-2"
>
Plate Due:
</label>
<label
for=
"wdbe_first_name"
style=
"font-weight: 700; font-size: 15px;"
class=
"form-label mt-2"
>
Plate Due:
</label>
<input
class=
"form-control input-sm"
id=
"dtpplatedue"
type=
"date"
>
</div>
<div
class=
"col-auto"
>
<label
for=
"wdbe_first_name"
class=
"form-label mt-2"
>
Mount Due:
</label>
<label
for=
"wdbe_first_name"
style=
"font-weight: 700; font-size: 15px;"
class=
"form-label mt-2"
>
Mount Due:
</label>
<input
class=
"form-control input-sm"
id=
"dtpmountdue"
type=
"date"
>
</div>
<div
class=
"col-auto"
>
<label
class=
"form-label mt-2"
>
Art Location:
</label>
<input
id=
"edtartlocation"
class=
"form-control input-sm"
width=
'50%'
/>
</div>
</div>
<h4
class=
"custom-h4 mt-3"
>
Supplied by Customer
</h4>
<hr
class=
"custom-hr"
>
...
...
@@ -108,67 +104,67 @@
</div>
<div
class=
"col-auto"
>
<label
class=
'pe-2'
style=
"font-weight: 700; font-size: 15px;"
>
Email:
</label>
<input
type=
"checkbox"
id=
"edtemail"
width=
'50%'
/>
<input
type=
"checkbox"
id=
"edtemail"
/>
</div>
<div
class=
"col-auto"
>
<label
class=
'pe-2'
style=
"font-weight: 700; font-size: 15px;"
>
FTP:
</label>
<input
type=
"checkbox"
id=
"edtftp"
width=
'50%'
/>
<input
type=
"checkbox"
id=
"edtftp"
/>
</div>
<div
class=
"col-auto"
>
<label
class=
'pe-2'
style=
"font-weight: 700; font-size: 15px;"
>
Other:
</label>
<input
class=
"form-control input-sm"
id=
"edtother"
width=
'50%'
/>
<input
class=
"form-control input-sm"
id=
"edtother"
style=
"width: 150px"
/>
</div>
<div
class=
"col-auto"
>
<label
class=
'pe-2'
style=
"font-weight: 700; font-size: 15px;"
>
Existing Cutting Die:
</label>
<input
type=
"checkbox"
id=
"edtexistingcuttingdie"
width=
'50%'
/>
<input
type=
"checkbox"
id=
"edtexistingcuttingdie"
/>
</div>
<div
class=
"col-auto"
>
<label
class=
'pe-2'
style=
"font-weight: 700; font-size: 15px;"
>
Ref Art Print Card:
</label>
<input
type=
"checkbox"
id=
"edtrefartprintcard"
width=
'50%'
/>
<input
type=
"checkbox"
id=
"edtrefartprintcard"
/>
</div>
<div
class=
"col-auto"
>
<label
class=
'pe-2'
style=
"font-weight: 700; font-size: 15px;"
>
Ref Art A PDF:
</label>
<input
type=
"checkbox"
id=
"edtrefartapdf"
width=
'50%'
/>
<input
type=
"checkbox"
id=
"edtrefartapdf"
/>
</div>
</div>
<h4
class=
"custom-h4 mt-3"
>
Layout
</h4>
<hr
class=
"custom-hr"
>
<div
class=
"row"
>
<div
class=
"col-auto"
>
<label
for=
"wdbe_first_name"
class=
"form-label mt-2"
>
RSC L:
</label>
<input
id=
"edtrscl"
class=
"form-control input-sm"
width=
'50%'
/>
<label
for=
"wdbe_first_name"
style=
"font-weight: 700; font-size: 15px;"
class=
"form-label mt-2"
>
RSC L:
</label>
<input
id=
"edtrscl"
class=
"form-control input-sm"
style=
"width: 150px"
/>
</div>
<div
class=
"col-auto"
>
<label
for=
"wdbe_first_name"
class=
"form-label mt-2"
>
RSC W:
</label>
<input
id=
"edtrscw"
class=
"form-control input-sm"
width=
'50%'
/>
<label
for=
"wdbe_first_name"
style=
"font-weight: 700; font-size: 15px;"
class=
"form-label mt-2"
>
RSC W:
</label>
<input
id=
"edtrscw"
class=
"form-control input-sm"
style=
"width: 150px"
/>
</div>
<div
class=
"col-auto"
>
<label
for=
"wdbe_first_name"
class=
"form-label mt-2"
>
RSC D:
</label>
<input
id=
"edtrscd"
class=
"form-control input-sm"
width=
'50%'
/>
<label
for=
"wdbe_first_name"
style=
"font-weight: 700; font-size: 15px;"
class=
"form-label mt-2"
>
RSC D:
</label>
<input
id=
"edtrscd"
class=
"form-control input-sm"
style=
"width: 150px"
/>
</div>
<div
class=
"col-auto"
>
<label
for=
"wdbe_first_name"
class=
"form-label mt-2"
>
Die Cut No:
</label>
<input
class=
"form-control input-sm"
id=
"edtdiecutno"
width=
'50%'
/>
<label
for=
"wdbe_first_name"
style=
"font-weight: 700; font-size: 15px;"
class=
"form-label mt-2"
>
Die Cut No:
</label>
<input
class=
"form-control input-sm"
id=
"edtdiecutno"
style=
"width: 150px"
/>
</div>
<div
class=
"col-auto"
>
<label
for=
"wdbe_first_name"
class=
"form-label mt-2"
>
Across No:
</label>
<input
class=
"form-control input-sm"
id=
"edtacrossno"
width=
'50%'
/>
<label
for=
"wdbe_first_name"
style=
"font-weight: 700; font-size: 15px;"
class=
"form-label mt-2"
>
Across No:
</label>
<input
class=
"form-control input-sm"
id=
"edtacrossno"
style=
"width: 150px"
/>
</div>
<div
class=
"col-auto"
>
<label
for=
"wdbe_first_name"
class=
"form-label mt-2"
>
Around No:
</label>
<input
class=
"form-control input-sm"
id=
"edtaroundno"
width=
'50%'
/>
<label
for=
"wdbe_first_name"
style=
"font-weight: 700; font-size: 15px;"
class=
"form-label mt-2"
>
Around No:
</label>
<input
class=
"form-control input-sm"
id=
"edtaroundno"
style=
"width: 150px"
/>
</div>
<div
class=
"col-auto"
>
<label
for=
"wdbe_first_name"
class=
"form-label mt-2"
>
CAD File:
</label>
<input
id=
"edtcadfile"
class=
"form-control input-sm"
width=
'50%'
/>
<label
for=
"wdbe_first_name"
style=
"font-weight: 700; font-size: 15px;"
class=
"form-label mt-2"
>
CAD File:
</label>
<input
id=
"edtcadfile"
class=
"form-control input-sm"
style=
"width: 150px"
/>
</div>
<div
class=
"col-auto"
>
<label
for=
"wdbe_first_name"
class=
"form-label mt-2"
>
Excalibur Die:
</label>
<label
for=
"wdbe_first_name"
style=
"font-weight: 700; font-size: 15px;"
class=
"form-label mt-2"
>
Excalibur Die:
</label>
<input
type=
"checkbox"
id=
"cbexcaliburdie"
>
</div>
<div
class=
"col-auto"
>
<label
for=
"wdbe_first_name"
class=
"form-label mt-2"
>
RSC Style:
</label>
<input
id=
"edtrscstyle"
class=
"form-control input-sm"
width=
'50%'
/>
<label
for=
"wdbe_first_name"
style=
"font-weight: 700; font-size: 15px;"
class=
"form-label mt-2"
>
RSC Style:
</label>
<input
id=
"edtrscstyle"
class=
"form-control input-sm"
style=
"width: 150px"
/>
</div>
</div>
<h4
class=
"custom-h4 mt-3"
>
Mounting
</h4>
...
...
@@ -177,55 +173,55 @@
<div
class=
"col-auto"
>
<label
for=
"wdbe_first_name"
class=
"form-label mt-2"
>
Loose:
</label>
<input
type=
"checkbox"
id=
"cbloose"
>
<input
id=
"edtloose"
class=
"form-control input-sm"
width=
'50%'
/>
<input
id=
"edtloose"
class=
"form-control input-sm"
style=
"width: 150px"
/>
</div>
<div
class=
"col-auto"
>
<label
for=
"wdbe_first_name"
class=
"form-label mt-2"
>
Sticky Bak:
</label>
<label
for=
"wdbe_first_name"
style=
"font-weight: 700; font-size: 15px;"
class=
"form-label mt-2"
>
Sticky Bak:
</label>
<input
type=
"checkbox"
id=
"cbstickybak"
>
</div>
<div
class=
"col-auto"
>
<label
for=
"wdbe_first_name"
class=
"form-label mt-2"
>
Full Mount:
</label>
<label
for=
"wdbe_first_name"
style=
"font-weight: 700; font-size: 15px;"
class=
"form-label mt-2"
>
Full Mount:
</label>
<input
type=
"checkbox"
id=
"cbfullmount"
>
</div>
<div
class=
"col-auto"
>
<label
for=
"wdbe_first_name"
class=
"form-label mt-2"
>
Strip Mount:
</label>
<label
for=
"wdbe_first_name"
style=
"font-weight: 700; font-size: 15px;"
class=
"form-label mt-2"
>
Strip Mount:
</label>
<input
type=
"checkbox"
id=
"cbstripmount"
>
<input
id=
"edtstripmount"
class=
"form-control input-sm"
width=
'50%'
/>
<input
id=
"edtstripmount"
class=
"form-control input-sm"
style=
"width: 150px"
/>
</div>
<div
class=
"col-auto"
>
<label
for=
"wdbe_first_name"
class=
"form-label mt-2"
>
Standard Setup:
</label>
<input
id=
"edtstandardsetup"
class=
"form-control input-sm"
width=
'50%'
/>
<label
for=
"wdbe_first_name"
style=
"font-weight: 700; font-size: 15px;"
class=
"form-label mt-2"
>
Standard Setup:
</label>
<input
id=
"edtstandardsetup"
class=
"form-control input-sm"
style=
"width: 150px"
/>
</div>
<div
class=
"col-auto"
>
<label
for=
"wdbe_first_name"
class=
"form-label mt-2"
>
Custom Backing:
</label>
<input
id=
"edtcustombacking"
class=
"form-control input-sm"
width=
'50%'
/>
<label
for=
"wdbe_first_name"
style=
"font-weight: 700; font-size: 15px;"
class=
"form-label mt-2"
>
Custom Backing:
</label>
<input
id=
"edtcustombacking"
class=
"form-control input-sm"
style=
"width: 150px"
/>
</div>
<div
class=
"col-auto"
>
<label
for=
"wdbe_first_name"
class=
"form-label mt-2"
>
Custom Adhesive:
</label>
<input
id=
"edtcustomadhesive"
class=
"form-control input-sm"
width=
'50%'
/>
<label
for=
"wdbe_first_name"
style=
"font-weight: 700; font-size: 15px;"
class=
"form-label mt-2"
>
Custom Adhesive:
</label>
<input
id=
"edtcustomadhesive"
class=
"form-control input-sm"
style=
"width: 150px"
/>
</div>
</div>
<h4
class=
"custom-h4 mt-3"
>
Colors
</h4>
<hr
class=
"custom-hr"
>
<div
class=
"row"
>
<div
class=
"col-auto"
>
<label
for=
"wdbe_first_name"
class=
"form-label mt-2"
>
Cylinder Size:
</label>
<input
id=
"edtcylindersize"
class=
"form-control input-sm"
width=
'50%'
/>
<label
for=
"wdbe_first_name"
style=
"font-weight: 700; font-size: 15px;"
class=
"form-label mt-2"
>
Cylinder Size:
</label>
<input
id=
"edtcylindersize"
class=
"form-control input-sm"
style=
"width: 150px"
/>
</div>
<div
class=
"col-auto"
>
<label
for=
"wdbe_first_name"
class=
"form-label mt-2"
>
Machine Indent:
</label>
<input
id=
"edtmachineindent"
class=
"form-control input-sm"
width=
'50%'
/>
<label
for=
"wdbe_first_name"
style=
"font-weight: 700; font-size: 15px;"
class=
"form-label mt-2"
>
Machine Indent:
</label>
<input
id=
"edtmachineindent"
class=
"form-control input-sm"
style=
"width: 150px"
/>
</div>
<div
class=
"col-auto"
>
<label
for=
"wdbe_first_name"
class=
"form-label mt-2"
>
Cross Hairs:
</label>
<input
id=
"edtcrosshairs"
class=
"form-control input-sm"
width=
'50%'
/>
<label
for=
"wdbe_first_name"
style=
"font-weight: 700; font-size: 15px;"
class=
"form-label mt-2"
>
Cross Hairs:
</label>
<input
id=
"edtcrosshairs"
class=
"form-control input-sm"
style=
"width: 150px"
/>
</div>
<div
class=
"col-auto"
>
<label
for=
"wdbe_first_name"
class=
"form-label mt-2"
>
Clemson:
</label>
<input
id=
"edtclemson"
class=
"form-control input-sm"
width=
'50%'
/>
<label
for=
"wdbe_first_name"
style=
"font-weight: 700; font-size: 15px;"
class=
"form-label mt-2"
>
Clemson:
</label>
<input
id=
"edtclemson"
class=
"form-control input-sm"
style=
"width: 150px"
/>
</div>
</div>
<h4
class=
"custom-h4 mt-3"
>
Colors
</h4>
<hr
class=
"custom-hr"
>
<div
class=
"row"
>
<div
class=
"col-auto"
>
<label
for=
"wdbe_first_name"
class=
"form-label mt-2"
>
Colors:
</label>
<label
for=
"wdbe_first_name"
style=
"font-weight: 700; font-size: 15px;"
class=
"form-label mt-2"
>
Colors:
</label>
<button
id=
"btnaddcolor"
class=
"btn btn-primary btn-sm float-end"
>
+
</button>
<div
id=
"additionalFields"
class=
"row mt-3"
></div>
</div>
...
...
@@ -234,51 +230,51 @@
<hr
class=
"custom-hr"
>
<div
class=
"row"
>
<div
class=
"col-auto"
>
<label
for=
"wdbe_first_name"
class=
"form-label mt-2"
>
Fax:
</label>
<input
id=
"edtfax"
class=
"form-control input-sm"
width=
'50%'
/>
<label
for=
"wdbe_first_name"
style=
"font-weight: 700; font-size: 15px;"
class=
"form-label mt-2"
>
Fax:
</label>
<input
id=
"edtfax"
class=
"form-control input-sm"
style=
"width: 150px"
/>
</div>
<div
class=
"col-auto"
>
<label
for=
"wdbe_first_name"
class=
"form-label mt-2"
>
Fax Attn:
</label>
<input
id=
"edtfaxattn"
class=
"form-control input-sm"
width=
'50%'
/>
<label
for=
"wdbe_first_name"
style=
"font-weight: 700; font-size: 15px;"
class=
"form-label mt-2"
>
Fax Attn:
</label>
<input
id=
"edtfaxattn"
class=
"form-control input-sm"
style=
"width: 150px"
/>
</div>
<div
class=
"col-auto"
>
<label
for=
"wdbe_first_name"
class=
"form-label mt-2"
>
Email:
</label>
<input
id=
"edtproofemail"
class=
"form-control input-sm"
width=
'50%'
/>
<label
for=
"wdbe_first_name"
style=
"font-weight: 700; font-size: 15px;"
class=
"form-label mt-2"
>
Email:
</label>
<input
id=
"edtproofemail"
class=
"form-control input-sm"
style=
"width: 150px"
/>
</div>
<div
class=
"col-auto"
>
<label
for=
"wdbe_first_name"
class=
"form-label mt-2"
>
Email Attn:
</label>
<input
id=
"edtemailattn"
class=
"form-control input-sm"
width=
'50%'
/>
<label
for=
"wdbe_first_name"
style=
"font-weight: 700; font-size: 15px;"
class=
"form-label mt-2"
>
Email Attn:
</label>
<input
id=
"edtemailattn"
class=
"form-control input-sm"
style=
"width: 150px"
/>
</div>
<div
class=
"col-auto"
>
<label
for=
"wdbe_first_name"
class=
"form-label mt-2"
>
Ship To:
</label>
<input
id=
"edtproofshipto"
class=
"form-control input-sm"
width=
'50%'
/>
<label
for=
"wdbe_first_name"
style=
"font-weight: 700; font-size: 15px;"
class=
"form-label mt-2"
>
Ship To:
</label>
<input
id=
"edtproofshipto"
class=
"form-control input-sm"
style=
"width: 150px"
/>
</div>
<div
class=
"col-auto"
>
<label
for=
"wdbe_first_name"
class=
"form-label mt-2"
>
Full Size Panel:
</label>
<label
for=
"wdbe_first_name"
style=
"font-weight: 700; font-size: 15px;"
class=
"form-label mt-2"
>
Full Size Panel:
</label>
<input
type=
"checkbox"
id=
"cbfullsizepanel"
>
</div>
<div
class=
"col-auto"
>
<label
for=
"wdbe_first_name"
class=
"form-label mt-2"
>
Print Card:
</label>
<label
for=
"wdbe_first_name"
style=
"font-weight: 700; font-size: 15px;"
class=
"form-label mt-2"
>
Print Card:
</label>
<input
type=
"checkbox"
id=
"cbprintcard"
>
</div>
<div
class=
"col-auto"
>
<label
for=
"wdbe_first_name"
class=
"form-label mt-2"
>
Wide Format:
</label>
<label
for=
"wdbe_first_name"
style=
"font-weight: 700; font-size: 15px;"
class=
"form-label mt-2"
>
Wide Format:
</label>
<input
type=
"checkbox"
id=
"cbwideformat"
>
</div>
<div
class=
"col-auto"
>
<label
for=
"wdbe_first_name"
class=
"form-label mt-2"
>
PDF File:
</label>
<label
for=
"wdbe_first_name"
style=
"font-weight: 700; font-size: 15px;"
class=
"form-label mt-2"
>
PDF File:
</label>
<input
type=
"checkbox"
id=
"cbpdffile"
>
</div>
<div
class=
"col-auto"
>
<label
for=
"wdbe_first_name"
class=
"form-label mt-2"
>
Other:
</label>
<input
id=
"edtproofother"
class=
"form-control input-sm"
width=
'50%'
/>
<label
for=
"wdbe_first_name"
style=
"font-weight: 700; font-size: 15px;"
class=
"form-label mt-2"
>
Other:
</label>
<input
id=
"edtproofother"
class=
"form-control input-sm"
style=
"width: 150px"
/>
</div>
<div
class=
"col-auto"
>
<label
for=
"wdbe_first_name"
class=
"form-label mt-2"
>
Art Approved As Is:
</label>
<label
for=
"wdbe_first_name"
style=
"font-weight: 700; font-size: 15px;"
class=
"form-label mt-2"
>
Art Approved As Is:
</label>
<input
type=
"checkbox"
id=
"cbartapprovedasis"
>
</div>
<div
class=
"col-auto"
>
<label
for=
"wdbe_first_name"
class=
"form-label mt-2"
>
Approved Date:
</label>
<label
for=
"wdbe_first_name"
style=
"font-weight: 700; font-size: 15px;"
class=
"form-label mt-2"
>
Approved Date:
</label>
<input
class=
"form-control input-sm"
id=
"dtpapproveddate"
type=
"date"
>
</div>
</div>
...
...
@@ -287,23 +283,23 @@
<div
class=
"row"
>
<div
class=
"col-auto"
>
<label
class=
'pe-2'
style=
"font-weight: 700; font-size: 15px;"
id=
"lblthickness"
>
Thickness:
</label>
<input
id=
"edtThickness"
class=
"form-control input-sm"
width=
'50%'
/>
<input
id=
"edtThickness"
class=
"form-control input-sm"
style=
"width: 150px"
/>
</div>
<div
class=
"col-auto"
>
<label
class=
'pe-2'
style=
"font-weight: 700; font-size: 15px;"
id=
"lblplatematerial"
>
Plate Material:
</label>
<input
id=
"edtplatematerial"
class=
"form-control input-sm"
width=
'50%'
/>
<input
id=
"edtplatematerial"
class=
"form-control input-sm"
style=
"width: 150px"
/>
</div>
<div
class=
"col-auto"
>
<label
class=
'pe-2'
style=
"font-weight: 700; font-size: 15px;"
id=
"lbljobnumber"
>
Job Number:
</label>
<input
id=
"edtjobnumber"
class=
"form-control input-sm"
width=
'50%'
/>
<input
id=
"edtjobnumber"
class=
"form-control input-sm"
style=
"width: 150px"
/>
</div>
</div>
<h4
class=
"custom-h4 mt-3"
>
General
</h4>
<hr
class=
"custom-hr"
>
<div
class=
"row"
>
<div
class=
"col-auto"
>
<label
for=
"wdbe_first_name"
class=
"form-label"
>
Special Instructions
</label>
<
input
type=
"text"
class=
"form-control"
id=
"edtspecialinstructions"
style=
"width: 300px;"
>
<label
for=
"wdbe_first_name"
style=
"font-weight: 700; font-size: 15px;"
class=
"form-label"
>
Special Instructions
</label>
<
textarea
id=
"edtspecialinstructions"
class=
"form-control"
style=
" width: 500px; height: 150px;"
></textarea
>
</div>
</div>
<div
class=
"row"
>
...
...
kgOrdersClient/View.OrderEntryCorrugated.pas
View file @
601d01e1
...
...
@@ -38,7 +38,6 @@ type
edtQuantity
:
TWebDBEdit
;
edtPrice
:
TWebDBEdit
;
edtInvoiceTo
:
TWebDBEdit
;
edtShipTo
:
TWebDBEdit
;
edtPONumber
:
TWebDBEdit
;
edtJobName
:
TWebDBEdit
;
edtQuickBooksItem
:
TWebDBEdit
;
...
...
@@ -182,6 +181,11 @@ type
cbStickyBak
:
TWebCheckBox
;
cbLoose
:
TWebCheckBox
;
cbExcaliburDie
:
TWebCheckBox
;
XDataWebDataSet1ADDRESS_LIST
:
TStringField
;
wdsShipTo
:
TWebDataSource
;
xdwdsShipTo
:
TXDataWebDataSet
;
xdwdsShipToADDRESS
:
TStringField
;
WebDBComboBox1
:
TWebDBComboBox
;
procedure
WebFormCreate
(
Sender
:
TObject
);
procedure
HideNotification
();
procedure
ShowNotification
(
Notification
:
string
);
...
...
@@ -518,15 +522,30 @@ procedure TFOrderEntry.getCustomer(customerID: string);
var
xdcResponse
:
TXDataClientResponse
;
customer
:
TJSObject
;
address
:
string
;
begin
xdcResponse
:=
await
(
XDataWebClient1
.
RawInvokeAsync
(
'ILookupService.GetCustomer'
,
[
customerID
]));
customer
:=
TJSObject
(
xdcResponse
.
Result
);
XDataWebDataSet1
.
Close
;
XDataWebDataSet1
.
SetJsonData
(
customer
);
XDataWebDataSet1
.
Open
;
xdwdsShipTo
.
Close
;
xdwdsShipTo
.
SetJSONData
(
customer
[
'ADDRESS_LIST'
]);
xdwdsShipTo
.
Open
;
console
.
log
(
xdwdsShipToADDRESS
.
AsString
);
console
.
log
(
customer
[
'ADDRESS_LIST'
]);
end
;
procedure
TFOrderEntry
.
WebFormShow
(
Sender
:
TObject
);
begin
getOrder
(
orderID
);
if
mode
<>
'ADD'
then
getOrder
(
orderID
)
else
getCustomer
(
customerID
);
console
.
log
(
customerID
);
//getCustomer(customerID);
HideNotification
();
end
;
...
...
kgOrdersClient/View.Orders.pas
View file @
601d01e1
...
...
@@ -190,7 +190,8 @@ begin
newform
.
ShowModal
(
procedure
(
AValue
:
TModalResult
)
begin
orderEntry
(
''
,
newForm
.
edtID
.
Text
,
'ADD'
);
if
newForm
.
edtID
.
Text
<>
''
then
orderEntry
(
''
,
newForm
.
edtID
.
Text
,
'ADD'
);
end
);
end
;
...
...
kgOrdersClient/template/css/app.css
View file @
601d01e1
...
...
@@ -7,7 +7,12 @@
background-color
:
#fff
;
}
input
[
type
=
"text"
]
{
min-width
:
50px
;
max-width
:
100%
;
width
:
auto
;
padding-left
:
5px
;
}
.card-header
{
width
:
100%
;
...
...
kgOrdersServer/Source/Lookup.Service.pas
View file @
601d01e1
...
...
@@ -84,12 +84,18 @@ type
data
:
TList
<
TOrderItem
>;
end
;
TAddressItem
=
class
Public
ADDRESS
:
string
;
end
;
TCustomerItem
=
class
Public
NAME
:
string
;
ID
:
integer
;
SHORT_NAME
:
string
;
ADDRESS
:
string
;
staff_fields_invoice_to
:
string
;
ADDRESS_LIST
:
TList
<
TAddressItem
>;
end
;
TCustomerList
=
class
...
...
@@ -202,7 +208,7 @@ type
[
HttpGet
]
function
GetOrders
(
searchOptions
:
string
):
TOrderList
;
[
HttpGet
]
function
GetOrder
(
orderInfo
:
string
):
TFullOrder
;
[
HttpGet
]
function
GetCustomers
():
TCustomerList
;
//[HttpGet] function GetCustomer(): TFullCustomer
;
[
HttpGet
]
function
GetCustomer
(
ID
:
string
):
TCustomerItem
;
function
AddUser
(
userInfo
:
string
):
string
;
function
AddItem
(
itemInfo
:
string
):
string
;
...
...
kgOrdersServer/Source/Lookup.ServiceImpl.pas
View file @
601d01e1
...
...
@@ -26,6 +26,7 @@ type
function
GetOrders
(
searchOptions
:
string
):
TOrderList
;
function
GetOrder
(
orderInfo
:
string
):
TFullOrder
;
function
GetCustomers
():
TCustomerList
;
function
GetCustomer
(
ID
:
string
):
TCustomerItem
;
function
EditUser
(
const
editOptions
:
string
):
string
;
function
Search
(
phoneNum
:
string
):
TOrderList
;
function
AddUser
(
userInfo
:
string
):
string
;
...
...
@@ -80,7 +81,7 @@ begin
customer
.
NAME
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'NAME'
).
AsString
;
customer
.
ID
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'CUSTOMER_ID'
).
AsInteger
;
customer
.
SHORT_NAME
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'SHORT_NAME'
).
AsString
;
customer
.
ADDRESS
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'BILL_ADDRESS'
).
AsString
+
customer
.
staff_fields_invoice_to
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'BILL_ADDRESS'
).
AsString
+
', '
+
ordersDB
.
UniQuery1
.
FieldByName
(
'BILL_CITY'
).
AsString
+
' '
+
ordersDB
.
UniQuery1
.
FieldByName
(
'BILL_ZIP'
).
AsString
;
result
.
data
.
Add
(
customer
);
...
...
@@ -90,6 +91,35 @@ begin
ordersDB
.
UniQuery1
.
Close
;
end
;
function
TLookupService
.
GetCustomer
(
ID
:
string
):
TCustomerItem
;
var
SQL
:
string
;
ADDRESS
:
TAddressItem
;
begin
SQL
:=
'SELECT c.NAME, c.SHORT_NAME, c.BILL_ADDRESS_BLOCK, s.ship_block FROM customers c JOIN customers_ship s ON c.CUSTOMER_ID = s.customer_id WHERE c.CUSTOMER_ID = '
+
ID
;
doQuery
(
ordersDB
.
UniQuery1
,
SQL
);
result
:=
TCustomerItem
.
Create
;
result
.
ADDRESS_LIST
:=
TList
<
TAddressItem
>.
Create
;
TXDataOperationContext
.
Current
.
Handler
.
ManagedObjects
.
Add
(
Result
.
ADDRESS_LIST
);
result
.
NAME
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'NAME'
).
AsString
;
result
.
ID
:=
StrToInt
(
ID
);
result
.
SHORT_NAME
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'SHORT_NAME'
).
AsString
;
result
.
staff_fields_invoice_to
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'BILL_ADDRESS_BLOCK'
).
AsString
;
while
not
ordersDB
.
UniQuery1
.
Eof
do
begin
ADDRESS
:=
TAddressItem
.
Create
;
TXDataOperationContext
.
Current
.
Handler
.
ManagedObjects
.
Add
(
ADDRESS
);
ADDRESS
.
ADDRESS
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'ship_block'
).
AsString
;
result
.
ADDRESS_LIST
.
Add
(
ADDRESS
);
ordersDB
.
UniQuery1
.
Next
;
end
;
ordersDB
.
UniQuery1
.
Close
;
end
;
function
TLookupService
.
Search
(
phoneNum
:
string
):
TOrderList
;
// Searchs the database for a specific from phone number then returns a list of
// calls from said number
...
...
kgOrdersServer/kgOrdersServer.ini
View file @
601d01e1
[Options]
LogFileNum
=
2
25
LogFileNum
=
2
30
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