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
4fbdce5d
Commit
4fbdce5d
authored
Apr 29, 2025
by
Cam Hayes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Search String now saves across pages
parent
d607fed9
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
70 additions
and
31 deletions
+70
-31
View.Main.html
kgOrdersClient/View.Main.html
+1
-1
View.OrderEntryCorrugated.html
kgOrdersClient/View.OrderEntryCorrugated.html
+1
-1
View.OrderEntryCorrugated.pas
kgOrdersClient/View.OrderEntryCorrugated.pas
+1
-2
View.Orders.pas
kgOrdersClient/View.Orders.pas
+64
-24
View.Search.dfm
kgOrdersClient/View.Search.dfm
+1
-1
View.Search.pas
kgOrdersClient/View.Search.pas
+1
-1
kgOrdersServer.ini
kgOrdersServer/kgOrdersServer.ini
+1
-1
No files found.
kgOrdersClient/View.Main.html
View file @
4fbdce5d
<div
id=
"wrapper"
>
<nav
class=
"navbar navbar-expand navbar-light bg-light
sticky-top
"
style=
"margin-bottom: 0px;"
>
<nav
class=
"navbar navbar-expand navbar-light bg-light"
style=
"margin-bottom: 0px;"
>
<div
class=
"container-fluid"
>
<div
class=
"d-flex align-items-center"
>
<a
id=
"view.main.apptitle"
class=
"navbar-brand"
href=
"index.html"
>
Koehler-Gibson Orders
</a>
...
...
kgOrdersClient/View.OrderEntryCorrugated.html
View file @
4fbdce5d
...
...
@@ -29,7 +29,7 @@
<button
id=
"btncancel"
class=
"btn btn-danger btn-sm"
>
Cancel
</button>
</li>
<li
class=
"nav-item"
>
<button
id=
"btnclose"
class=
"btn btn-
second
ary btn-sm"
>
Close
</button>
<button
id=
"btnclose"
class=
"btn btn-
prim
ary btn-sm"
>
Close
</button>
</li>
</ul>
</div>
...
...
kgOrdersClient/View.OrderEntryCorrugated.pas
View file @
4fbdce5d
...
...
@@ -481,8 +481,7 @@ begin
dtpShipDate
.
Date
:=
0
;
dtpApprovedDate
.
Date
:=
0
;
edtOrderNum
.
Text
:=
''
;
btnPDF
.
Enabled
:=
False
;
btnDelete
.
Enabled
:=
False
;
EditMode
();
ShowNotification
(
'Success:Order Successfully Copied'
);
window
.
scrollTo
(
0
,
0
);
end
;
...
...
kgOrdersClient/View.Orders.pas
View file @
4fbdce5d
...
...
@@ -172,30 +172,70 @@ procedure TFViewOrders.WebFormCreate(Sender: TObject);
// PageSize: Number of entries per page.
var
today
:
TDateTime
;
params
:
TStringList
;
begin
DMConnection
.
ApiConnection
.
Connected
:=
True
;
PageNumber
:=
1
;
TotalPages
:=
1
;
// Initial total pages
//Status 1
startDate1
:=
FormatDateTime
(
'yyyy/mm/dd'
,
0
);
endDate1
:=
FormatDateTime
(
'yyyy/mm/dd'
,
0
);
filterType1
:=
''
;
null1
:=
false
;
//Status 2
startDate2
:=
FormatDateTime
(
'yyyy/mm/dd'
,
0
);
endDate2
:=
FormatDateTime
(
'yyyy/mm/dd'
,
0
);
filterType2
:=
''
;
null2
:=
false
;
orderType
:=
''
;
//today := TDateTime.Today;
wcbPageSize
.
Text
:=
'500'
;
PageSize
:=
500
;
wlcbOrderBy
.
DisplayText
:=
'Order Date'
;
OrderBy
:=
'o.ORDER_DATE DESC'
;
if
FViewMain
.
search
=
''
then
begin
//Status 1
startDate1
:=
FormatDateTime
(
'yyyy/mm/dd'
,
0
);
endDate1
:=
FormatDateTime
(
'yyyy/mm/dd'
,
0
);
filterType1
:=
''
;
null1
:=
false
;
//Status 2
startDate2
:=
FormatDateTime
(
'yyyy/mm/dd'
,
0
);
endDate2
:=
FormatDateTime
(
'yyyy/mm/dd'
,
0
);
filterType2
:=
''
;
null2
:=
false
;
orderType
:=
''
;
//today := TDateTime.Today;
wcbPageSize
.
Text
:=
'500'
;
PageSize
:=
500
;
wlcbOrderBy
.
DisplayText
:=
'Order Date'
;
OrderBy
:=
'o.ORDER_DATE DESC'
;
end
else
begin
params
:=
TStringList
.
Create
;
params
.
StrictDelimiter
:=
true
;
// parse the searchOptions
params
.
Delimiter
:=
'&'
;
params
.
DelimitedText
:=
FViewMain
.
search
;
PageNumber
:=
StrToInt
(
params
.
Values
[
'pagenumber'
]);
PageSize
:=
StrToInt
(
params
.
Values
[
'pagesize'
]);
wcbPageSize
.
Text
:=
IntToStr
(
PageSize
);
OrderBy
:=
params
.
Values
[
'orderby'
];
wlcbOrderBy
.
DisplayText
:=
OrderBy
;
orderType
:=
params
.
Values
[
'orderType'
].
ToLower
();
OrderID
:=
params
.
Values
[
'orderID'
];
companyID
:=
params
.
Values
[
'companyID'
];
jobName
:=
params
.
Values
[
'jobName'
];
// Status1
startDate1
:=
params
.
Values
[
'startDate1'
];
endDate1
:=
params
.
Values
[
'endDate1'
];
filterType1
:=
params
.
Values
[
'filterType1'
];
if
params
.
Values
[
'null1'
]
=
''
then
null1
:=
false
else
null1
:=
StrToBool
(
params
.
Values
[
'null1'
]);
// Status 2
startDate2
:=
params
.
Values
[
'startDate2'
];
endDate2
:=
params
.
Values
[
'endDate2'
];
filterType2
:=
params
.
Values
[
'filterType2'
];
if
params
.
Values
[
'null2'
]
=
''
then
null2
:=
false
else
null2
:=
StrToBool
(
params
.
Values
[
'null2'
]);
end
;
getOrders
(
GenerateSearchOptions
());
end
;
...
...
@@ -273,7 +313,7 @@ begin
newform
.
Caption
:=
'Input Search Options'
;
newForm
.
Popup
:=
True
;
newForm
.
Border
:=
fbDialog
;
newForm
.
searchOptions
:=
GenerateSearchOptions
();
//
FViewMain.search;
newForm
.
searchOptions
:=
FViewMain
.
search
;
// used to manage Back button handling to close subform
window
.
location
.
hash
:=
'subform'
;
...
...
@@ -304,10 +344,10 @@ begin
companyID
:=
newform
.
DBID
;
orderType
:=
newform
.
wcbOrderType
.
Text
;
//
FViewMain.search := generateSearchOptions();
searchOptions
:=
generateSearchOptions
();
edtSearch
.
Text
:=
searchOptions
;
getOrders
(
searchOptions
);
FViewMain
.
search
:=
generateSearchOptions
();
//
searchOptions := generateSearchOptions();
edtSearch
.
Text
:=
FViewMain
.
search
;
getOrders
(
FViewMain
.
search
);
end
;
end
);
...
...
kgOrdersClient/View.Search.dfm
View file @
4fbdce5d
...
...
@@ -350,7 +350,7 @@ object FSearch: TFSearch
Items.Strings = (
'Corrugated'
'Web'
'Cutting
D
ie'
'Cutting
d
ie'
'Any')
end
object wcbFilterType2: TWebComboBox
...
...
kgOrdersClient/View.Search.pas
View file @
4fbdce5d
...
...
@@ -116,7 +116,7 @@ begin
DateFormatSettings
:=
TFormatSettings
.
Create
;
DateFormatSettings
.
ShortDateFormat
:=
'yyyy/mm/dd'
;
console
.
log
(
UpperCase
(
Copy
(
params
.
Values
[
'orderType'
],
1
,
1
))
+
LowerCase
(
Copy
(
params
.
Values
[
'orderType'
],
2
,
MaxInt
)));
wcbOrderType
.
Text
:=
UpperCase
(
Copy
(
params
.
Values
[
'orderType'
],
1
,
1
))
+
LowerCase
(
Copy
(
params
.
Values
[
'orderType'
],
2
,
MaxInt
));
edtOrderID
.
Text
:=
params
.
Values
[
'orderID'
];
edtCompanyID
.
Text
:=
params
.
Values
[
'companyID'
];
...
...
kgOrdersServer/kgOrdersServer.ini
View file @
4fbdce5d
...
...
@@ -2,7 +2,7 @@
MemoLogLevel
=
3
FileLogLevel
=
5
webClientVersion
=
0.9.2
LogFileNum
=
43
4
LogFileNum
=
43
8
[Database]
Server
=
192.168.159.131
...
...
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