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
122506f1
Commit
122506f1
authored
Dec 03, 2025
by
Elias Sarraf
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/cam'
parents
34c1f5e2
83b51b07
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
68 additions
and
14 deletions
+68
-14
View.OrderEntryCorrugated.dfm
kgOrdersClient/View.OrderEntryCorrugated.dfm
+1
-0
View.OrderEntryCorrugated.html
kgOrdersClient/View.OrderEntryCorrugated.html
+2
-2
View.OrderEntryCorrugated.pas
kgOrdersClient/View.OrderEntryCorrugated.pas
+14
-1
View.OrderEntryCuttingDie.dfm
kgOrdersClient/View.OrderEntryCuttingDie.dfm
+1
-0
View.OrderEntryCuttingDie.html
kgOrdersClient/View.OrderEntryCuttingDie.html
+2
-2
View.OrderEntryCuttingDie.pas
kgOrdersClient/View.OrderEntryCuttingDie.pas
+15
-2
View.OrderEntryWeb.dfm
kgOrdersClient/View.OrderEntryWeb.dfm
+1
-0
View.OrderEntryWeb.html
kgOrdersClient/View.OrderEntryWeb.html
+2
-2
View.OrderEntryWeb.pas
kgOrdersClient/View.OrderEntryWeb.pas
+15
-2
app.css
kgOrdersClient/css/app.css
+12
-0
kgOrdersServer.ini
kgOrdersServer/bin/kgOrdersServer.ini
+3
-3
No files found.
kgOrdersClient/View.OrderEntryCorrugated.dfm
View file @
122506f1
...
@@ -200,6 +200,7 @@ object FOrderEntryCorrugated: TFOrderEntryCorrugated
...
@@ -200,6 +200,7 @@ object FOrderEntryCorrugated: TFOrderEntryCorrugated
HeightPercent = 100.000000000000000000
HeightPercent = 100.000000000000000000
HideSelection = False
HideSelection = False
WidthPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
OnExit = edtPriceExit
DataField = 'staff_fields_price'
DataField = 'staff_fields_price'
DataSource = wdsOrder
DataSource = wdsOrder
end
end
...
...
kgOrdersClient/View.OrderEntryCorrugated.html
View file @
122506f1
...
@@ -385,8 +385,8 @@
...
@@ -385,8 +385,8 @@
<hr
class=
"custom-hr"
>
<hr
class=
"custom-hr"
>
<div
class=
"row pb-3"
>
<div
class=
"row pb-3"
>
<div
class=
"col-auto"
>
<div
class=
"col-auto"
>
<label
for=
"wdbe_first_name"
style=
"font-weight: 700; font-size: 15px;"
class=
"form-label"
>
Special Instructions
</label>
<label
for=
"wdbe_first_name"
style=
"font-weight: 700; font-size: 15px;"
class=
"form-label"
>
Special Instructions
(Max Length 2048 characters)
</label>
<textarea
id=
"edtspecialinstructions"
class=
"form-control mb-3"
style=
" width:
800px; height: 150px;
"
></textarea>
<textarea
id=
"edtspecialinstructions"
class=
"form-control mb-3"
style=
" width:
1100px; height: 150px;"
maxlength=
"2048
"
></textarea>
</div>
</div>
</div>
</div>
</div>
</div>
kgOrdersClient/View.OrderEntryCorrugated.pas
View file @
122506f1
...
@@ -232,6 +232,7 @@ type
...
@@ -232,6 +232,7 @@ type
procedure
wdbcbQuickbooksItemChange
(
Sender
:
TObject
);
procedure
wdbcbQuickbooksItemChange
(
Sender
:
TObject
);
procedure
btnQBClick
(
Sender
:
TObject
);
procedure
btnQBClick
(
Sender
:
TObject
);
function
VerifyQBOrder
:
Boolean
;
function
VerifyQBOrder
:
Boolean
;
procedure
edtPriceExit
(
Sender
:
TObject
);
private
private
FAgencyCode
:
string
;
FAgencyCode
:
string
;
FCurrentReportType
:
string
;
FCurrentReportType
:
string
;
...
@@ -952,6 +953,18 @@ begin
...
@@ -952,6 +953,18 @@ begin
' - '
+
xdwdsOrder
.
FieldByName
(
'staff_fields_job_name'
).
AsString
;
' - '
+
xdwdsOrder
.
FieldByName
(
'staff_fields_job_name'
).
AsString
;
end
;
end
;
procedure
TFOrderEntryCorrugated
.
edtPriceExit
(
Sender
:
TObject
);
var
v
:
Double
;
begin
if
TryStrToFloat
(
edtPrice
.
Text
,
v
)
then
begin
xdwdsOrderstaff_fields_price
.
AsFloat
:=
v
;
xdwdsOrderstaff_fields_price
.
AsString
:=
FormatFloat
(
'0.00'
,
v
);
edtPrice
.
Text
:=
FormatFloat
(
'0.00'
,
v
)
end
;
end
;
procedure
TFOrderEntryCorrugated
.
ViewMode
;
procedure
TFOrderEntryCorrugated
.
ViewMode
;
begin
begin
btnPDF
.
Enabled
:=
true
;
btnPDF
.
Enabled
:=
true
;
...
@@ -1145,7 +1158,7 @@ begin
...
@@ -1145,7 +1158,7 @@ begin
input
.
classList
.
remove
(
'is-invalid'
);
input
.
classList
.
remove
(
'is-invalid'
);
input
:=
TJSHTMLInputElement
(
document
.
getElementById
(
'edtprice'
));
input
:=
TJSHTMLInputElement
(
document
.
getElementById
(
'edtprice'
));
if
(
(
edtPrice
.
Text
=
''
)
or
(
StrToFloat
(
edtPrice
.
Text
)
<
=
0
)
)
then
if
(
(
edtPrice
.
Text
=
''
)
or
(
StrToFloat
(
edtPrice
.
Text
)
<
0
)
)
then
begin
begin
input
.
classList
.
add
(
'is-invalid'
);
input
.
classList
.
add
(
'is-invalid'
);
...
...
kgOrdersClient/View.OrderEntryCuttingDie.dfm
View file @
122506f1
...
@@ -105,6 +105,7 @@ object FOrderEntryCuttingDie: TFOrderEntryCuttingDie
...
@@ -105,6 +105,7 @@ object FOrderEntryCuttingDie: TFOrderEntryCuttingDie
ElementID = 'edtprice'
ElementID = 'edtprice'
HeightPercent = 100.000000000000000000
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
OnExit = edtPriceExit
DataField = 'staff_fields_price'
DataField = 'staff_fields_price'
DataSource = wdsOrder
DataSource = wdsOrder
end
end
...
...
kgOrdersClient/View.OrderEntryCuttingDie.html
View file @
122506f1
...
@@ -158,8 +158,8 @@
...
@@ -158,8 +158,8 @@
<hr
class=
"custom-hr"
>
<hr
class=
"custom-hr"
>
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"col-auto"
>
<div
class=
"col-auto"
>
<label
for=
"wdbe_first_name"
style=
"font-weight: 700; font-size: 15px;"
class=
"form-label"
>
Special Instructions
</label>
<label
for=
"wdbe_first_name"
style=
"font-weight: 700; font-size: 15px;"
class=
"form-label"
>
Special Instructions
(Max Length 2048 characters)
</label>
<textarea
id=
"edtspecialinstructions"
class=
"form-control mb-3"
style=
" width: 800px; height: 150px;
"
></textarea>
<textarea
id=
"edtspecialinstructions"
class=
"form-control mb-3"
style=
" width: 1100px; height: 150px;"
maxlength=
"2048
"
></textarea>
</div>
</div>
</div>
</div>
</div>
</div>
...
...
kgOrdersClient/View.OrderEntryCuttingDie.pas
View file @
122506f1
...
@@ -105,6 +105,7 @@ type
...
@@ -105,6 +105,7 @@ type
function
VerifyQBOrder
():
boolean
;
function
VerifyQBOrder
():
boolean
;
procedure
wcbQBItemChange
(
Sender
:
TObject
);
procedure
wcbQBItemChange
(
Sender
:
TObject
);
procedure
edtJobNameExit
(
Sender
:
TObject
);
procedure
edtJobNameExit
(
Sender
:
TObject
);
procedure
edtPriceExit
(
Sender
:
TObject
);
private
private
FAgencyCode
:
string
;
FAgencyCode
:
string
;
FCurrentReportType
:
string
;
FCurrentReportType
:
string
;
...
@@ -648,6 +649,18 @@ begin
...
@@ -648,6 +649,18 @@ begin
' - '
+
xdwdsOrder
.
FieldByName
(
'staff_fields_job_name'
).
AsString
;
' - '
+
xdwdsOrder
.
FieldByName
(
'staff_fields_job_name'
).
AsString
;
end
;
end
;
procedure
TFOrderEntryCuttingDie
.
edtPriceExit
(
Sender
:
TObject
);
var
v
:
Double
;
begin
if
TryStrToFloat
(
edtPrice
.
Text
,
v
)
then
begin
xdwdsOrderstaff_fields_price
.
AsFloat
:=
v
;
xdwdsOrderstaff_fields_price
.
AsString
:=
FormatFloat
(
'0.00'
,
v
);
edtPrice
.
Text
:=
FormatFloat
(
'0.00'
,
v
)
end
;
end
;
procedure
TFOrderEntryCuttingDie
.
ViewMode
;
procedure
TFOrderEntryCuttingDie
.
ViewMode
;
begin
begin
btnPDF
.
Enabled
:=
true
;
btnPDF
.
Enabled
:=
true
;
...
@@ -738,7 +751,7 @@ begin
...
@@ -738,7 +751,7 @@ begin
input
.
classList
.
remove
(
'is-invalid'
);
input
.
classList
.
remove
(
'is-invalid'
);
input
:=
TJSHTMLInputElement
(
document
.
getElementById
(
'edtprice'
));
input
:=
TJSHTMLInputElement
(
document
.
getElementById
(
'edtprice'
));
if
edtPrice
.
Text
=
''
then
if
(
(
edtPrice
.
Text
=
''
)
or
(
StrToFloat
(
edtPrice
.
Text
)
<
0
)
)
then
begin
begin
input
.
classList
.
add
(
'is-invalid'
);
input
.
classList
.
add
(
'is-invalid'
);
...
@@ -748,7 +761,7 @@ begin
...
@@ -748,7 +761,7 @@ begin
input
.
classList
.
remove
(
'is-invalid'
);
input
.
classList
.
remove
(
'is-invalid'
);
input
:=
TJSHTMLInputElement
(
document
.
getElementById
(
'edtquantity'
));
input
:=
TJSHTMLInputElement
(
document
.
getElementById
(
'edtquantity'
));
if
edtQuantity
.
Text
=
''
then
if
(
(
edtQuantity
.
Text
=
''
)
or
(
StrToFloat
(
edtQuantity
.
Text
)
<=
0
)
)
then
begin
begin
input
.
classList
.
add
(
'is-invalid'
);
input
.
classList
.
add
(
'is-invalid'
);
...
...
kgOrdersClient/View.OrderEntryWeb.dfm
View file @
122506f1
...
@@ -194,6 +194,7 @@ object FOrderEntryWeb: TFOrderEntryWeb
...
@@ -194,6 +194,7 @@ object FOrderEntryWeb: TFOrderEntryWeb
HeightPercent = 100.000000000000000000
HeightPercent = 100.000000000000000000
ShowFocus = False
ShowFocus = False
WidthPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
OnExit = edtPriceExit
DataField = 'staff_fields_price'
DataField = 'staff_fields_price'
DataSource = wdsOrder
DataSource = wdsOrder
end
end
...
...
kgOrdersClient/View.OrderEntryWeb.html
View file @
122506f1
...
@@ -449,8 +449,8 @@
...
@@ -449,8 +449,8 @@
<hr
class=
"custom-hr"
>
<hr
class=
"custom-hr"
>
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"col-auto"
>
<div
class=
"col-auto"
>
<label
style=
"font-weight: 700; font-size: 15px;"
class=
"form-label"
>
Comments
</label>
<label
for=
"wdbe_first_name"
style=
"font-weight: 700; font-size: 15px;"
class=
"form-label"
>
Special Instructions (Max Length 2048 characters)
</label>
<textarea
id=
"edtcomments"
class=
"form-control mb-3"
style=
" width: 800px; height: 150px;
"
></textarea>
<textarea
id=
"edtcomments"
class=
"form-control mb-3"
style=
" width: 1100px; height: 150px;"
maxlength=
"2048
"
></textarea>
</div>
</div>
</div>
</div>
</div>
</div>
...
...
kgOrdersClient/View.OrderEntryWeb.pas
View file @
122506f1
...
@@ -239,6 +239,7 @@ type
...
@@ -239,6 +239,7 @@ type
procedure
btnQBClick
(
Sender
:
TObject
);
procedure
btnQBClick
(
Sender
:
TObject
);
function
VerifyQBOrder
:
Boolean
;
function
VerifyQBOrder
:
Boolean
;
[
async
]
procedure
AddEstimate
(
orderID
:
string
);
[
async
]
procedure
AddEstimate
(
orderID
:
string
);
procedure
edtPriceExit
(
Sender
:
TObject
);
private
private
FModalAction
:
string
;
FModalAction
:
string
;
FAgencyCode
:
string
;
FAgencyCode
:
string
;
...
@@ -902,6 +903,18 @@ begin
...
@@ -902,6 +903,18 @@ begin
' - '
+
xdwdsOrder
.
FieldByName
(
'staff_fields_job_name'
).
AsString
;
' - '
+
xdwdsOrder
.
FieldByName
(
'staff_fields_job_name'
).
AsString
;
end
;
end
;
procedure
TFOrderEntryWeb
.
edtPriceExit
(
Sender
:
TObject
);
var
v
:
Double
;
begin
if
TryStrToFloat
(
edtPrice
.
Text
,
v
)
then
begin
xdwdsOrderstaff_fields_price
.
AsFloat
:=
v
;
xdwdsOrderstaff_fields_price
.
AsString
:=
FormatFloat
(
'0.00'
,
v
);
edtPrice
.
Text
:=
FormatFloat
(
'0.00'
,
v
)
end
;
end
;
procedure
TFOrderEntryWeb
.
ViewMode
;
procedure
TFOrderEntryWeb
.
ViewMode
;
begin
begin
btnPDF
.
Enabled
:=
true
;
btnPDF
.
Enabled
:=
true
;
...
@@ -995,7 +1008,7 @@ begin
...
@@ -995,7 +1008,7 @@ begin
input
.
classList
.
remove
(
'is-invalid'
);
input
.
classList
.
remove
(
'is-invalid'
);
input
:=
TJSHTMLInputElement
(
document
.
getElementById
(
'edtprice'
));
input
:=
TJSHTMLInputElement
(
document
.
getElementById
(
'edtprice'
));
if
edtPrice
.
Text
=
''
then
if
(
(
edtPrice
.
Text
=
''
)
or
(
StrToFloat
(
edtPrice
.
Text
)
<
0
)
)
then
begin
begin
input
.
classList
.
add
(
'is-invalid'
);
input
.
classList
.
add
(
'is-invalid'
);
...
@@ -1005,7 +1018,7 @@ begin
...
@@ -1005,7 +1018,7 @@ begin
input
.
classList
.
remove
(
'is-invalid'
);
input
.
classList
.
remove
(
'is-invalid'
);
input
:=
TJSHTMLInputElement
(
document
.
getElementById
(
'edtquantity'
));
input
:=
TJSHTMLInputElement
(
document
.
getElementById
(
'edtquantity'
));
if
edtQuantity
.
Text
=
''
then
if
(
(
edtQuantity
.
Text
=
''
)
or
(
StrToFloat
(
edtQuantity
.
Text
)
<=
0
)
)
then
begin
begin
input
.
classList
.
add
(
'is-invalid'
);
input
.
classList
.
add
(
'is-invalid'
);
...
...
kgOrdersClient/css/app.css
View file @
122506f1
...
@@ -18,6 +18,18 @@ input[type="text"] {
...
@@ -18,6 +18,18 @@ input[type="text"] {
padding-left
:
5px
;
padding-left
:
5px
;
}
}
/* Chrome, Safari, Edge, Opera */
input
[
type
=
number
]
::-webkit-inner-spin-button
,
input
[
type
=
number
]
::-webkit-outer-spin-button
{
-webkit-appearance
:
none
;
margin
:
0
;
}
/* Firefox */
input
[
type
=
number
]
{
-moz-appearance
:
textfield
;
}
is-invalid
.form-check-input
{
is-invalid
.form-check-input
{
border
:
1px
solid
#dc3545
!important
;
border
:
1px
solid
#dc3545
!important
;
}
}
...
...
kgOrdersServer/bin/kgOrdersServer.ini
View file @
122506f1
...
@@ -2,13 +2,13 @@
...
@@ -2,13 +2,13 @@
MemoLogLevel
=
5
MemoLogLevel
=
5
FileLogLevel
=
5
FileLogLevel
=
5
webClientVersion
=
0.9.12
webClientVersion
=
0.9.12
LogFileNum
=
1
06
LogFileNum
=
1
10
[Database]
[Database]
Server
=
192.168.116.132
--
Server
=
192.168.116.132
--Server
=
192.168.102.129
--Server
=
192.168.102.129
--Server
=
192.168.75.133
--Server
=
192.168.75.133
--
Server
=
192.168.159.10
Server
=
192.168.159.10
--Database
=
kg_order_entry
--Database
=
kg_order_entry
--Username
=
root
--Username
=
root
--Password
=
emsys01
--Password
=
emsys01
...
...
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