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
b7274906
Commit
b7274906
authored
Oct 23, 2025
by
Elias Sarraf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed minor issues with SetStatus and increased checkbox size.
Done by Cam
parent
94933534
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
139 additions
and
52 deletions
+139
-52
AddCustomer.pas
kgOrdersClient/AddCustomer.pas
+1
-1
View.OrderEntryCorrugated.html
kgOrdersClient/View.OrderEntryCorrugated.html
+2
-1
View.OrderEntryCuttingDie.html
kgOrdersClient/View.OrderEntryCuttingDie.html
+2
-1
View.OrderEntryWeb.html
kgOrdersClient/View.OrderEntryWeb.html
+3
-2
View.Orders.pas
kgOrdersClient/View.Orders.pas
+9
-9
View.SetStatus.dfm
kgOrdersClient/View.SetStatus.dfm
+2
-0
View.SetStatus.pas
kgOrdersClient/View.SetStatus.pas
+34
-2
webKGOrders.dproj
kgOrdersClient/webKGOrders.dproj
+2
-2
Api.Database.dfm
kgOrdersServer/Source/Api.Database.dfm
+39
-0
Api.Database.pas
kgOrdersServer/Source/Api.Database.pas
+8
-0
Lookup.ServiceImpl.pas
kgOrdersServer/Source/Lookup.ServiceImpl.pas
+33
-31
kgOrdersServer.dproj
kgOrdersServer/kgOrdersServer.dproj
+1
-0
kgOrdersServer.ini
kgOrdersServer/kgOrdersServer.ini
+3
-3
No files found.
kgOrdersClient/AddCustomer.pas
View file @
b7274906
...
@@ -460,7 +460,7 @@ end;
...
@@ -460,7 +460,7 @@ end;
procedure
TFViewAddCustomer
.
btnShipDeleteClick
(
Sender
:
TObject
);
procedure
TFViewAddCustomer
.
btnShipDeleteClick
(
Sender
:
TObject
);
begin
begin
ShowToast
(
'Deleting Shipping Addresses
F
is not yet implemented.'
,
'info'
);
ShowToast
(
'Deleting Shipping Addresses is not yet implemented.'
,
'info'
);
{ShowConfirmationModal(
{ShowConfirmationModal(
'Are you sure you want to delete this address?',
'Are you sure you want to delete this address?',
'Delete',
'Delete',
...
...
kgOrdersClient/View.OrderEntryCorrugated.html
View file @
b7274906
...
@@ -59,7 +59,8 @@
...
@@ -59,7 +59,8 @@
</div>
</div>
<div
class=
"col-auto d-flex flex-column"
>
<div
class=
"col-auto d-flex flex-column"
>
<label
for=
"wdbcbinqb"
class=
"form-label mt-2"
style=
"font-weight: 700; font-size: 15px;"
>
In QB?:
</label>
<label
for=
"wdbcbinqb"
class=
"form-label mt-2"
style=
"font-weight: 700; font-size: 15px;"
>
In QB?:
</label>
<input
id=
"wdbcbinqb"
type=
"checkbox"
class=
"form-check-input mt-1"
>
<input
id=
"wdbcbinqb"
type=
"checkbox"
class=
"form-check-input mt-1"
style=
"transform: scale(1.2); width: 20px; height: 20px;"
>
</div>
</div>
<div
class=
"col-auto"
>
<div
class=
"col-auto"
>
<label
for=
"wdbe_first_name"
style=
"font-weight: 700; font-size: 15px;"
class=
"form-label mt-2"
>
QB Order Number:
</label>
<label
for=
"wdbe_first_name"
style=
"font-weight: 700; font-size: 15px;"
class=
"form-label mt-2"
>
QB Order Number:
</label>
...
...
kgOrdersClient/View.OrderEntryCuttingDie.html
View file @
b7274906
...
@@ -62,7 +62,8 @@
...
@@ -62,7 +62,8 @@
</div>
</div>
<div
class=
"col-auto d-flex flex-column"
>
<div
class=
"col-auto d-flex flex-column"
>
<label
for=
"wdbcbinqb"
class=
"form-label mt-2"
style=
"font-weight: 700; font-size: 15px;"
>
In QB?:
</label>
<label
for=
"wdbcbinqb"
class=
"form-label mt-2"
style=
"font-weight: 700; font-size: 15px;"
>
In QB?:
</label>
<input
id=
"wdbcbinqb"
type=
"checkbox"
class=
"form-check-input mt-1"
>
<input
id=
"wdbcbinqb"
type=
"checkbox"
class=
"form-check-input mt-1"
style=
"transform: scale(1.2); width: 20px; height: 20px;"
>
</div>
</div>
<div
class=
"col-auto"
>
<div
class=
"col-auto"
>
<label
for=
"wdbe_first_name"
style=
"font-weight: 700; font-size: 15px;"
class=
"form-label mt-2"
>
QB Order Number:
</label>
<label
for=
"wdbe_first_name"
style=
"font-weight: 700; font-size: 15px;"
class=
"form-label mt-2"
>
QB Order Number:
</label>
...
...
kgOrdersClient/View.OrderEntryWeb.html
View file @
b7274906
...
@@ -58,8 +58,9 @@
...
@@ -58,8 +58,9 @@
</div>
</div>
</div>
</div>
<div
class=
"col-auto d-flex flex-column"
>
<div
class=
"col-auto d-flex flex-column"
>
<label
for=
"wdbcbinqb"
class=
"form-label mt-2"
style=
"font-weight: 700; font-size: 15px;"
>
In QB?:
</label>
<label
for=
"wdbcbinqb"
class=
"form-label mt-2"
style=
"font-weight: 700; font-size: 15px;"
>
In QB?:
</label>
<input
id=
"wdbcbinqb"
type=
"checkbox"
class=
"form-check-input mt-1"
>
<input
id=
"wdbcbinqb"
type=
"checkbox"
class=
"form-check-input mt-1"
style=
"transform: scale(1.2); width: 20px; height: 20px;"
>
</div>
</div>
<div
class=
"col-auto"
>
<div
class=
"col-auto"
>
<label
for=
"wdbe_first_name"
style=
"font-weight: 700; font-size: 15px;"
class=
"form-label mt-2"
>
QB Order Number:
</label>
<label
for=
"wdbe_first_name"
style=
"font-weight: 700; font-size: 15px;"
class=
"form-label mt-2"
>
QB Order Number:
</label>
...
...
kgOrdersClient/View.Orders.pas
View file @
b7274906
...
@@ -230,7 +230,7 @@ begin
...
@@ -230,7 +230,7 @@ begin
[
searchOptions
]));
[
searchOptions
]));
jsObject
:=
TJSObject
(
xdcResponse
.
Result
);
jsObject
:=
TJSObject
(
xdcResponse
.
Result
);
pdfURL
:=
String
(
jsObject
.
Properties
[
'value'
]);
pdfURL
:=
String
(
jsObject
.
Properties
[
'value'
]);
console
.
log
(
pdfURL
);
if
Assigned
(
APdfTab
)
then
if
Assigned
(
APdfTab
)
then
APdfTab
.
location
.
href
:=
pdfURL
;
APdfTab
.
location
.
href
:=
pdfURL
;
except
except
...
@@ -443,20 +443,20 @@ begin
...
@@ -443,20 +443,20 @@ begin
newForm
.
Position
:=
poScreenCenter
;
newForm
.
Position
:=
poScreenCenter
;
newForm
.
OrderID
:=
statusOrderID
;
newForm
.
OrderID
:=
statusOrderID
;
newForm
.
JobName
:=
wdbtcOrders
.
Cells
[
3
,
row
];
newForm
.
JobName
:=
wdbtcOrders
.
Cells
[
3
,
row
];
if
wdbtcOrders
.
Cells
[
1
4
,
row
]
<>
''
then
if
wdbtcOrders
.
Cells
[
1
5
,
row
]
<>
''
then
newForm
.
ShipDue
:=
StrToDateTime
(
wdbtcOrders
.
Cells
[
1
4
,
row
])
newForm
.
ShipDue
:=
StrToDateTime
(
wdbtcOrders
.
Cells
[
1
5
,
row
])
else
else
newForm
.
MountDue
:=
0
;
newForm
.
MountDue
:=
0
;
if
wdbtcOrders
.
Cells
[
1
2
,
row
]
<>
''
then
if
wdbtcOrders
.
Cells
[
1
3
,
row
]
<>
''
then
newForm
.
MountDue
:=
StrToDateTime
(
wdbtcOrders
.
Cells
[
1
2
,
row
])
newForm
.
MountDue
:=
StrToDateTime
(
wdbtcOrders
.
Cells
[
1
3
,
row
])
else
else
newForm
.
MountDue
:=
0
;
newForm
.
MountDue
:=
0
;
if
wdbtcOrders
.
Cells
[
1
0
,
row
]
<>
''
then
if
wdbtcOrders
.
Cells
[
1
1
,
row
]
<>
''
then
newForm
.
PlateDue
:=
StrToDateTime
(
wdbtcOrders
.
Cells
[
1
0
,
row
])
newForm
.
PlateDue
:=
StrToDateTime
(
wdbtcOrders
.
Cells
[
1
1
,
row
])
else
else
newForm
.
PlateDue
:=
0
;
newForm
.
PlateDue
:=
0
;
if
wdbtcOrders
.
Cells
[
8
,
row
]
<>
''
then
if
wdbtcOrders
.
Cells
[
9
,
row
]
<>
''
then
newForm
.
ArtDue
:=
StrToDateTime
(
wdbtcOrders
.
Cells
[
8
,
row
])
newForm
.
ArtDue
:=
StrToDateTime
(
wdbtcOrders
.
Cells
[
9
,
row
])
else
else
newForm
.
ArtDue
:=
0
;
newForm
.
ArtDue
:=
0
;
newForm
.
OrderType
:=
statusOrderType
;
newForm
.
OrderType
:=
statusOrderType
;
...
...
kgOrdersClient/View.SetStatus.dfm
View file @
b7274906
...
@@ -188,6 +188,7 @@ object FSetStatus: TFSetStatus
...
@@ -188,6 +188,7 @@ object FSetStatus: TFSetStatus
Width = 145
Width = 145
Height = 22
Height = 22
ElementClassName = 'custom-select'
ElementClassName = 'custom-select'
ElementID = 'wlc_status'
HeightPercent = 100.000000000000000000
HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000
ItemIndex = -1
ItemIndex = -1
...
@@ -198,6 +199,7 @@ object FSetStatus: TFSetStatus
...
@@ -198,6 +199,7 @@ object FSetStatus: TFSetStatus
Top = 52
Top = 52
Width = 145
Width = 145
Height = 22
Height = 22
ElementID = 'dtpdate'
BorderStyle = bsSingle
BorderStyle = bsSingle
ChildOrder = 1
ChildOrder = 1
Color = clWhite
Color = clWhite
...
...
kgOrdersClient/View.SetStatus.pas
View file @
b7274906
...
@@ -40,6 +40,7 @@ type
...
@@ -40,6 +40,7 @@ type
procedure
btnCancelClick
(
Sender
:
TObject
);
procedure
btnCancelClick
(
Sender
:
TObject
);
private
private
{ Private declarations }
{ Private declarations }
function
Verify
():
boolean
;
public
public
{ Public declarations }
{ Public declarations }
confirm
:
boolean
;
confirm
:
boolean
;
...
@@ -59,10 +60,41 @@ begin
...
@@ -59,10 +60,41 @@ begin
Close
;
Close
;
end
;
end
;
function
TFSetStatus
.
Verify
:
Boolean
;
var
input
:
TJSHTMLElement
;
begin
result
:=
true
;
input
:=
TJSHTMLElement
(
document
.
getElementById
(
'dtpdate'
));
if
dtpDate
.
Date
=
0
then
begin
input
.
style
.
setProperty
(
'background-color'
,
'yellow'
);
result
:=
false
;
end
else
input
.
style
.
setProperty
(
'background-color'
,
'white'
);
input
:=
TJSHTMLElement
(
document
.
getElementById
(
'wlc_status'
));
if
wlcbStatus
.
Value
=
''
then
begin
input
.
style
.
setProperty
(
'background-color'
,
'yellow'
);
result
:=
false
;
end
else
input
.
style
.
setProperty
(
'background-color'
,
'white'
);
end
;
procedure
TFSetStatus
.
btnConfirmClick
(
Sender
:
TObject
);
procedure
TFSetStatus
.
btnConfirmClick
(
Sender
:
TObject
);
var
el
:
tjshtmlElement
;
begin
begin
if
(
(
dtpDate
.
Date
=
0
)
or
(
wlcbStatus
.
value
=
''
)
)
then
if
(
not
Verify
()
)
then
ShowToast
(
'Failure: Please fill in all information'
)
begin
ShowToast
(
'Failure: Please fill in all highlighted information'
)
end
else
if
(
(
OrderType
=
'web plate'
)
and
(
wlcbStatus
.
Value
=
'MOUNT'
)
)
then
else
if
(
(
OrderType
=
'web plate'
)
and
(
wlcbStatus
.
Value
=
'MOUNT'
)
)
then
ShowToast
(
'Failure: Web Plate Orders do not have Mount Due/Done dates'
)
ShowToast
(
'Failure: Web Plate Orders do not have Mount Due/Done dates'
)
else
if
(
(
OrderType
=
'cutting die'
)
and
(
(
wlcbStatus
.
Value
=
'MOUNT'
)
or
(
wlcbStatus
.
Value
=
'ART'
)
or
(
wlcbStatus
.
Value
=
'PLATE'
)
)
)
then
else
if
(
(
OrderType
=
'cutting die'
)
and
(
(
wlcbStatus
.
Value
=
'MOUNT'
)
or
(
wlcbStatus
.
Value
=
'ART'
)
or
(
wlcbStatus
.
Value
=
'PLATE'
)
)
)
then
...
...
kgOrdersClient/webKGOrders.dproj
View file @
b7274906
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<FrameworkType>VCL</FrameworkType>
<FrameworkType>VCL</FrameworkType>
<MainSource>webKGOrders.dpr</MainSource>
<MainSource>webKGOrders.dpr</MainSource>
<Base>True</Base>
<Base>True</Base>
<Config Condition="'$(Config)'==''">
Release
</Config>
<Config Condition="'$(Config)'==''">
Debug
</Config>
<Platform Condition="'$(Platform)'==''">Win32</Platform>
<Platform Condition="'$(Platform)'==''">Win32</Platform>
<TargetedPlatforms>1</TargetedPlatforms>
<TargetedPlatforms>1</TargetedPlatforms>
<AppType>Application</AppType>
<AppType>Application</AppType>
...
@@ -99,7 +99,7 @@
...
@@ -99,7 +99,7 @@
<VerInfo_MajorVer>0</VerInfo_MajorVer>
<VerInfo_MajorVer>0</VerInfo_MajorVer>
<VerInfo_MinorVer>9</VerInfo_MinorVer>
<VerInfo_MinorVer>9</VerInfo_MinorVer>
<VerInfo_Release>8</VerInfo_Release>
<VerInfo_Release>8</VerInfo_Release>
<TMSWebBrowser>
3
</TMSWebBrowser>
<TMSWebBrowser>
1
</TMSWebBrowser>
<TMSWebSingleInstance>1</TMSWebSingleInstance>
<TMSWebSingleInstance>1</TMSWebSingleInstance>
<TMSUseJSDebugger>2</TMSUseJSDebugger>
<TMSUseJSDebugger>2</TMSUseJSDebugger>
</PropertyGroup>
</PropertyGroup>
...
...
kgOrdersServer/Source/Api.Database.dfm
View file @
b7274906
...
@@ -4,9 +4,13 @@ object ApiDatabase: TApiDatabase
...
@@ -4,9 +4,13 @@ object ApiDatabase: TApiDatabase
Width = 519
Width = 519
object ucKG: TUniConnection
object ucKG: TUniConnection
ProviderName = 'MySQL'
ProviderName = 'MySQL'
Database = 'kg_order_entry'
Username = 'root'
Server = '192.168.159.158'
LoginPrompt = False
LoginPrompt = False
Left = 75
Left = 75
Top = 65
Top = 65
EncryptedPassword = '9AFF92FF8CFF86FF8CFFCFFFCEFF'
end
end
object UniQuery1: TUniQuery
object UniQuery1: TUniQuery
Connection = ucKG
Connection = ucKG
...
@@ -369,4 +373,39 @@ object ApiDatabase: TApiDatabase
...
@@ -369,4 +373,39 @@ object ApiDatabase: TApiDatabase
Size = 16
Size = 16
end
end
end
end
object uqOrdersStatusSchedule: TUniQuery
Connection = ucKG
SQL.Strings = (
'select * from ORDERS_STATUS_SCHEDULE')
Left = 365
Top = 146
object uqOrdersStatusScheduleORDERS_STATUS_SCHEDULE_ID: TLongWordField
FieldName = 'ORDERS_STATUS_SCHEDULE_ID'
end
object uqOrdersStatusScheduleORDER_ID: TLongWordField
FieldName = 'ORDER_ID'
Required = True
end
object uqOrdersStatusScheduleORDER_STATUS: TStringField
FieldName = 'ORDER_STATUS'
Required = True
Size = 45
end
object uqOrdersStatusScheduleSTATUS_DATE: TDateField
FieldName = 'STATUS_DATE'
Required = True
end
object uqOrdersStatusScheduleORIGINAL_STATUS_DATE: TDateField
FieldName = 'ORIGINAL_STATUS_DATE'
Required = True
end
object uqOrdersStatusScheduleUSER_ID: TLongWordField
FieldName = 'USER_ID'
Required = True
end
object uqOrdersStatusScheduleORDER_REVISION: TLongWordField
FieldName = 'ORDER_REVISION'
Required = True
end
end
end
end
kgOrdersServer/Source/Api.Database.pas
View file @
b7274906
...
@@ -104,6 +104,14 @@ type
...
@@ -104,6 +104,14 @@ type
uqOrdersstaff_fields_quantity
:
TStringField
;
uqOrdersstaff_fields_quantity
:
TStringField
;
uqOrderslayout_rsc_style
:
TStringField
;
uqOrderslayout_rsc_style
:
TStringField
;
uqOrdersstaff_fields_art_location
:
TStringField
;
uqOrdersstaff_fields_art_location
:
TStringField
;
uqOrdersStatusSchedule
:
TUniQuery
;
uqOrdersStatusScheduleORDERS_STATUS_SCHEDULE_ID
:
TLongWordField
;
uqOrdersStatusScheduleORDER_ID
:
TLongWordField
;
uqOrdersStatusScheduleORDER_STATUS
:
TStringField
;
uqOrdersStatusScheduleSTATUS_DATE
:
TDateField
;
uqOrdersStatusScheduleORIGINAL_STATUS_DATE
:
TDateField
;
uqOrdersStatusScheduleUSER_ID
:
TLongWordField
;
uqOrdersStatusScheduleORDER_REVISION
:
TLongWordField
;
procedure
DataModuleCreate
(
Sender
:
TObject
);
procedure
DataModuleCreate
(
Sender
:
TObject
);
private
private
{ Private declarations }
{ Private declarations }
...
...
kgOrdersServer/Source/Lookup.ServiceImpl.pas
View file @
b7274906
...
@@ -1889,50 +1889,42 @@ var
...
@@ -1889,50 +1889,42 @@ var
SQL
:
string
;
SQL
:
string
;
mode
:
string
;
mode
:
string
;
change
:
boolean
;
change
:
boolean
;
date
:
string
;
begin
begin
logger
.
Log
(
3
,
'TLookupService.AddStatusSchedule'
);
logger
.
Log
(
3
,
'TLookupService.AddStatusSchedule'
);
mode
:=
order
.
GetValue
<
string
>(
'mode'
);
if
mode
=
'ADD'
then
begin
SQL
:=
'select * from orders_status_schedule where ORDER_ID = 0 and ORDER_ID <> 0'
;
doQuery
(
ordersDB
.
UniQuery1
,
SQL
);
ordersDB
.
UniQuery1
.
Insert
;
end
else
begin
SQL
:=
'select * from orders_status_schedule where ORDER_ID = '
+
IntToStr
(
ORDER_ID
)
+
' AND ORDER_STATUS = '
+
quotedStr
(
StatusType
);
doQuery
(
ordersDB
.
UniQuery1
,
SQL
);
ordersDB
.
UniQuery1
.
Edit
;
end
;
ordersDB
.
UniQuery1
.
FieldByName
(
'ORDER_ID'
).
AsInteger
:=
ORDER_ID
;
SQL
:=
'select * from orders_status_schedule where ORDER_ID = '
+
IntToStr
(
ORDER_ID
)
+
' AND ORDER_STATUS = '
+
quotedStr
(
StatusType
)
;
ordersDB
.
UniQuery1
.
FieldByName
(
'ORDER_STATUS'
).
AsString
:=
StatusType
;
doQuery
(
ordersDB
.
uqOrdersStatusSchedule
,
SQL
)
;
if
(
(
StatusType
=
'PROOF'
)
or
(
StatusType
=
'SHIP'
)
)
then
if
(
(
StatusType
=
'PROOF'
)
or
(
StatusType
=
'SHIP'
)
)
then
begin
begin
change
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'STATUS_DATE'
).
AsString
<>
order
.
GetValue
<
string
>(
'staff_fields_'
+
StatusType
.
ToLower
+
'_date'
);
date
:=
order
.
GetValue
<
string
>(
'staff_fields_'
+
StatusType
.
ToLower
+
'_date'
);
ordersDB
.
UniQuery1
.
FieldByName
(
'STATUS_DATE'
).
AsString
:=
order
.
GetValue
<
string
>(
'staff_fields_'
+
StatusType
.
ToLower
+
'_date'
);
if
mode
<>
'EDIT'
then
ordersDB
.
UniQuery1
.
FieldByName
(
'ORIGINAL_STATUS_DATE'
).
AsString
:=
order
.
GetValue
<
string
>(
'staff_fields_'
+
StatusType
.
ToLower
+
'_date'
)
end
end
else
else
begin
date
:=
order
.
GetValue
<
string
>(
'staff_fields_'
+
StatusType
.
ToLower
+
'_due'
);
change
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'STATUS_DATE'
).
AsDateTime
<>
StrToDateTime
(
order
.
GetValue
<
string
>(
'staff_fields_'
+
StatusType
.
ToLower
+
'_due'
));
ordersDB
.
UniQuery1
.
FieldByName
(
'STATUS_DATE'
).
AsDateTime
:=
StrToDateTime
(
order
.
GetValue
<
string
>(
'staff_fields_'
+
StatusType
.
ToLower
+
'_due'
));
if
mode
<>
'EDIT'
then
ordersDB
.
UniQuery1
.
FieldByName
(
'ORIGINAL_STATUS_DATE'
).
AsDateTime
:=
StrToDateTime
(
order
.
GetValue
<
string
>(
'staff_fields_'
+
StatusType
.
ToLower
+
'_due'
))
end
;
ordersDB
.
UniQuery1
.
FieldByName
(
'USER_ID'
).
AsString
:=
order
.
GetValue
<
string
>(
'USER_ID'
);
if
mode
=
'ADD'
then
if
ordersDB
.
uqOrdersStatusSchedule
.
IsEmpty
then
ordersDB
.
UniQuery1
.
FieldByName
(
'ORDER_REVISION'
).
AsInteger
:=
1
begin
ordersDB
.
uqOrdersStatusSchedule
.
Insert
;
ordersDB
.
uqOrdersStatusScheduleORDER_REVISION
.
AsInteger
:=
1
;
ordersDB
.
uqOrdersStatusScheduleORIGINAL_STATUS_DATE
.
AsString
:=
date
;
ordersDB
.
uqOrdersStatusScheduleUSER_ID
.
AsString
:=
order
.
GetValue
<
string
>(
'USER_ID'
);
end
else
else
begin
begin
ordersDB
.
uqOrdersStatusSchedule
.
Edit
;
change
:=
ordersDB
.
uqOrdersStatusScheduleSTATUS_DATE
.
AsDateTime
<>
StrToDateTime
(
date
);
if
change
then
if
change
then
ordersDB
.
UniQuery1
.
FieldByName
(
'ORDER_REVISION'
).
AsInteger
:=
ordersDB
.
UniQuery1
.
FieldByName
(
'ORDER_REVISION'
).
AsInteger
+
1
;
begin
ordersDB
.
uqOrdersStatusScheduleORDER_REVISION
.
AsInteger
:=
ordersDB
.
uqOrdersStatusScheduleORDER_REVISION
.
AsInteger
+
1
;
ordersDB
.
uqOrdersStatusScheduleUSER_ID
.
AsString
:=
order
.
GetValue
<
string
>(
'USER_ID'
);
end
;
end
;
end
;
ordersDB
.
uqOrdersStatusScheduleSTATUS_DATE
.
AsDateTime
:=
StrToDateTime
(
date
);
ordersDB
.
uqOrdersStatusScheduleORDER_ID
.
AsInteger
:=
ORDER_ID
;
ordersDB
.
uqOrdersStatusScheduleORDER_STATUS
.
AsString
:=
StatusType
;
ordersDB
.
UniQuery1
.
Post
;
ordersDB
.
uqOrdersStatusSchedule
.
Post
;
Result
:=
'success'
;
Result
:=
'success'
;
end
;
end
;
...
@@ -2050,9 +2042,19 @@ begin
...
@@ -2050,9 +2042,19 @@ begin
table
:=
'corrugated_plate_orders'
;
table
:=
'corrugated_plate_orders'
;
SQL
:=
'select
ORDER_ID, '
+
StatusField
+
'
from '
+
table
+
' where ORDER_ID = '
+
IntToStr
(
ORDER_ID
);
SQL
:=
'select
*
from '
+
table
+
' where ORDER_ID = '
+
IntToStr
(
ORDER_ID
);
doQuery
(
OrdersDB
.
UniQuery1
,
SQL
);
doQuery
(
OrdersDB
.
UniQuery1
,
SQL
);
OrdersDB
.
UniQuery1
.
Edit
;
OrdersDB
.
UniQuery1
.
Edit
;
if
StatusInfo
.
GetValue
<
string
>(
'staff_fields_ship_date'
)
<>
'12/30/1899'
then
OrdersDB
.
UniQuery1
.
FieldByName
(
'staff_fields_ship_date'
).
AsString
:=
StatusInfo
.
GetValue
<
string
>(
'staff_fields_ship_date'
);
if
StatusInfo
.
GetValue
<
string
>(
'staff_fields_art_due'
)
<>
'12/30/1899'
then
OrdersDB
.
UniQuery1
.
FieldByName
(
'staff_fields_art_due'
).
AsString
:=
StatusInfo
.
GetValue
<
string
>(
'staff_fields_art_due'
);
if
StatusInfo
.
GetValue
<
string
>(
'staff_fields_plate_due'
)
<>
'12/30/1899'
then
OrdersDB
.
UniQuery1
.
FieldByName
(
'staff_fields_plate_due'
).
AsString
:=
StatusInfo
.
GetValue
<
string
>(
'staff_fields_plate_due'
);
if
StatusInfo
.
GetValue
<
string
>(
'staff_fields_mount_due'
)
<>
'12/30/1899'
then
OrdersDB
.
UniQuery1
.
FieldByName
(
'staff_fields_mount_due'
).
AsString
:=
StatusInfo
.
GetValue
<
string
>(
'staff_fields_mount_due'
);
OrdersDB
.
UniQuery1
.
FieldByName
(
StatusField
).
AsString
:=
Date
;
OrdersDB
.
UniQuery1
.
FieldByName
(
StatusField
).
AsString
:=
Date
;
OrdersDB
.
UniQuery1
.
Post
;
OrdersDB
.
UniQuery1
.
Post
;
...
...
kgOrdersServer/kgOrdersServer.dproj
View file @
b7274906
...
@@ -133,6 +133,7 @@
...
@@ -133,6 +133,7 @@
<VerInfo_MinorVer>9</VerInfo_MinorVer>
<VerInfo_MinorVer>9</VerInfo_MinorVer>
<VerInfo_Release>2</VerInfo_Release>
<VerInfo_Release>2</VerInfo_Release>
<VerInfo_Locale>1033</VerInfo_Locale>
<VerInfo_Locale>1033</VerInfo_Locale>
<DCC_ExeOutput>.</DCC_ExeOutput>
</PropertyGroup>
</PropertyGroup>
<PropertyGroup Condition="'$(Cfg_2_Win64)'!=''">
<PropertyGroup Condition="'$(Cfg_2_Win64)'!=''">
<AppDPIAwarenessMode>PerMonitorV2</AppDPIAwarenessMode>
<AppDPIAwarenessMode>PerMonitorV2</AppDPIAwarenessMode>
...
...
kgOrdersServer/kgOrdersServer.ini
View file @
b7274906
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
MemoLogLevel
=
5
MemoLogLevel
=
5
FileLogLevel
=
5
FileLogLevel
=
5
webClientVersion
=
1.0.0
webClientVersion
=
1.0.0
LogFileNum
=
993
LogFileNum
=
1021
[Database]
[Database]
Server
=
192.168.159.158
Server
=
192.168.159.158
...
@@ -18,5 +18,5 @@ CompanyID=9341454336461805
...
@@ -18,5 +18,5 @@ CompanyID=9341454336461805
ClientID
=
ABYqlDx1EsacZYXvHIJ7RDB7zmnQdwABU3fwQLIZPmBgU0VW1P
ClientID
=
ABYqlDx1EsacZYXvHIJ7RDB7zmnQdwABU3fwQLIZPmBgU0VW1P
ClientSecret
=
PM7OnvQWsgOqjWfDpZAnyRttDN9446Am6d85pDxr
ClientSecret
=
PM7OnvQWsgOqjWfDpZAnyRttDN9446Am6d85pDxr
RefreshToken
=
RT1-2-H0-1769887296o3747tv75irrt167rolf
RefreshToken
=
RT1-2-H0-1769887296o3747tv75irrt167rolf
AccessToken
=
eyJhbGciOiJkaXIiLCJlbmMiOiJBMTI4Q0JDLUhTMjU2IiwieC5vcmciOiJIMCJ9..
84BZUCQk1D0zH5dIEEW2zw.tmbh1n6DyHI3Z9BVuuztZNe8Y75GzsC5sMwqrIec0-yfcr9aBxO8FTQOAhpe4JLeZ1M2hatEf430cH_iYvK0lzV5HNl888ZlYiR8yDL4bfUj5PyNXdffmFZ5-yrtVTuC8heBWl_6VJDP0GSZXz5OtiG_0-Tn1kY6i6jZvQ1UFu9l7tgwVN-4bxoP2s36e-4llhD8Y-H7WreulFCJ5-k-73ICL5aBi7gn8eX9T3PpXSROyWqHIQ0ph5eOumCeykjaRkWn4GafmZSp20IaWg7Er1gZluzEOGc_TZ_5GkSt1_Bx-JpH9piDioF91BynHgDszIZ3mD18QNmmisVKzO6Z1eBT753RhaPEPa_qruR7oHay0s3RO1PhGf5UpQ4cTP-h0e_2hD02P-x1Svj-zlwDUyiiOrgwyPHiSjiTMv32puMoT-dGrBDWnt0BPp7A5Dle8CgUczw_SAnNZFtQMTZRbKJq8B7URe6M2Fs87HYs1HU.uWftkuUZ_GRIVaAg5k8pLw
AccessToken
=
eyJhbGciOiJkaXIiLCJlbmMiOiJBMTI4Q0JDLUhTMjU2IiwieC5vcmciOiJIMCJ9..
q3mvo01K17XZ0DwwsUy48A.26VRU91x7IJVrQUfJolSVbJhWSDW2gCxCVOFaiHQU55PNwyU8yENr1diWpmFumn8EjbYieO-ubxuMci1PFFWslgQE4zmljNvdXgBA75AKM8pg-BqOEeSMB1QEDYVAvqXnrOAAuTMPzVDfSnDduW_PItMCr9O2-VBwUIDwRuWEcJeqXfpg-TLY5Gx-0hA3T90sRzycwe6giEhHdcklHH47QUzEhWoyIhRALRfB-WABy1TSP2J0l7E6x_a4vgUX3bozJpRM0r0XtylaEXHK5uGx0lkAm7cd_RAoa9gLZHiGGj_7CmvsFqZc8jGtrsBrFa72TGPSpdPwMku0ADmNWBRQ0OCf2SN0PJrMZE33OjUjCTyO4FudOxpNeE4uoDb7JH0QeB1QRMfmXtjAbQIpVwvip_1LXMttRYruWqXu3Nc4gh4wVxuucfK6tB9ag4hd6PsVfE84mcL7nX5imMNApd6qRsugOkztWaY07iVNEl3kvM.zVZ6yBgvjIYs-vLaOcaQGQ
LastRefresh
=
10/2
2/2025 3:52:18
PM
LastRefresh
=
10/2
3/2025 12:28:19
PM
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