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
60d7ce4f
Commit
60d7ce4f
authored
Jan 06, 2026
by
Elias Sarraf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
deploy ver 0.9.13 & server 0.9.13.2
parent
6219d663
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
18 additions
and
22 deletions
+18
-22
ConnectionModule.pas
kgOrdersClient/ConnectionModule.pas
+5
-2
Auth.Service.pas
kgOrdersServer/Source/Auth.Service.pas
+1
-1
Auth.ServiceImpl.pas
kgOrdersServer/Source/Auth.ServiceImpl.pas
+4
-5
Common.Config.pas
kgOrdersServer/Source/Common.Config.pas
+5
-0
Main.dfm
kgOrdersServer/Source/Main.dfm
+0
-1
Main.pas
kgOrdersServer/Source/Main.pas
+0
-10
kgOrdersServer.dproj
kgOrdersServer/kgOrdersServer.dproj
+3
-3
No files found.
kgOrdersClient/ConnectionModule.pas
View file @
60d7ce4f
...
...
@@ -19,7 +19,7 @@ type
FUnauthorizedAccessProc
:
TUnauthorizedAccessProc
;
public
const
clientVersion
=
'0.9.1
2
'
;
const
clientVersion
=
'0.9.1
3
'
;
procedure
InitApp
(
SuccessProc
:
TSuccessProc
;
UnauthorizedAccessProc
:
TUnauthorizedAccessProc
);
procedure
SetClientConfig
(
Callback
:
TVersionCheckCallback
);
...
...
@@ -46,12 +46,14 @@ begin
TFViewErrorPage
.
DisplayConnectionError
(
Error
);
end
;
procedure
TDMConnection
.
ApiConnectionRequest
(
Args
:
TXDataWebConnectionRequest
);
begin
if
AuthService
.
Authenticated
then
Args
.
Request
.
Headers
.
SetValue
(
'Authorization'
,
'Bearer '
+
AuthService
.
GetToken
);
end
;
procedure
TDMConnection
.
ApiConnectionResponse
(
Args
:
TXDataWebConnectionResponse
);
begin
...
...
@@ -59,11 +61,13 @@ begin
FUnauthorizedAccessProc
(
Format
(
'%d: %s'
,[
Args
.
Response
.
StatusCode
,
Args
.
Response
.
ContentAsText
]));
end
;
procedure
TDMConnection
.
AuthConnectionError
(
Error
:
TXDataWebConnectionError
);
begin
TFViewErrorPage
.
DisplayConnectionError
(
Error
);
end
;
procedure
TDMConnection
.
InitApp
(
SuccessProc
:
TSuccessProc
;
UnauthorizedAccessProc
:
TUnauthorizedAccessProc
);
...
...
@@ -85,7 +89,6 @@ end;
procedure
TDMConnection
.
SetClientConfig
(
Callback
:
TVersionCheckCallback
);
begin
XDataWebClient1
.
Connection
:=
AuthConnection
;
...
...
kgOrdersServer/Source/Auth.Service.pas
View file @
60d7ce4f
...
...
@@ -19,7 +19,7 @@ type
IAuthService
=
interface
(
IInvokable
)
[
'{9CFD59B2-A832-4F82-82BB-9A25FC93F305}'
]
function
Login
(
const
user
,
password
:
string
):
string
;
function
VerifyVersion
(
C
lientVersion
:
string
):
TJSONObject
;
function
VerifyVersion
(
c
lientVersion
:
string
):
TJSONObject
;
end
;
implementation
...
...
kgOrdersServer/Source/Auth.ServiceImpl.pas
View file @
60d7ce4f
...
...
@@ -62,11 +62,12 @@ begin
inherited
;
end
;
function
TAuthService
.
VerifyVersion
(
C
lientVersion
:
string
):
TJSONObject
;
function
TAuthService
.
VerifyVersion
(
c
lientVersion
:
string
):
TJSONObject
;
var
iniFile
:
TIniFile
;
webClientVersion
:
string
;
begin
Logger
.
Log
(
5
,
'TAuthService.VerifyVersion(clientVersion: '
+
clientVersion
+
')'
);
Result
:=
TJSONObject
.
Create
;
TXDataOperationContext
.
Current
.
Handler
.
ManagedObjects
.
Add
(
Result
);
...
...
@@ -82,11 +83,9 @@ begin
end
;
if
clientVersion
<>
webClientVersion
then
begin
//Result.AddPair('error',
//'Your browser is running version' + webClientVersion + ' when it should be running ' +
//clientVersion + sLineBreak + 'Please click below to reload.');
Logger
.
Log
(
1
,
'webApp version mismatch client ver: '
+
clientVersion
+
' required ver: '
+
webClientVersion
);
Result
.
AddPair
(
'error'
,
'
V
ersion mismatch'
+
sLineBreak
+
' Client version: '
+
clientVersion
+
'
webApp v
ersion mismatch'
+
sLineBreak
+
' Client version: '
+
clientVersion
+
sLineBreak
+
' Server version: '
+
webClientVersion
+
sLineBreak
+
'Please click button to clear cache and reload.'
);
end
;
...
...
kgOrdersServer/Source/Common.Config.pas
View file @
60d7ce4f
...
...
@@ -91,5 +91,10 @@ begin
Logger
.
Log
(
1
,
'--TServerConfig.Create - end'
);
end
;
initialization
ServerConfig
:=
TServerConfig
.
Create
;
finalization
ServerConfig
.
Free
;
end
.
kgOrdersServer/Source/Main.dfm
View file @
60d7ce4f
...
...
@@ -10,7 +10,6 @@ object FMain: TFMain
Font.Height = -11
Font.Name = 'Tahoma'
Font.Style = []
OnClose = FormClose
DesignSize = (
773
597)
...
...
kgOrdersServer/Source/Main.pas
View file @
60d7ce4f
...
...
@@ -26,7 +26,6 @@ type
procedure
btnDataClick
(
Sender
:
TObject
);
procedure
btnExitClick
(
Sender
:
TObject
);
procedure
ContactFormData
(
AText
:
String
);
procedure
FormClose
(
Sender
:
TObject
;
var
Action
:
TCloseAction
);
procedure
initTimerTimer
(
Sender
:
TObject
);
procedure
btnAuthSwaggerUIClick
(
Sender
:
TObject
);
procedure
btnQBClick
(
Sender
:
TObject
);
...
...
@@ -242,15 +241,6 @@ begin
end
;
procedure
TFMain
.
FormClose
(
Sender
:
TObject
;
var
Action
:
TCloseAction
);
begin
ServerConfig
.
Free
;
AuthServerModule
.
Free
;
ApiServerModule
.
Free
;
AppServerModule
.
Free
;
end
;
procedure
TFMain
.
UpdateGUI
;
begin
if
AuthServerModule
.
SparkleHttpSysDispatcher
.
Active
then
...
...
kgOrdersServer/kgOrdersServer.dproj
View file @
60d7ce4f
...
...
@@ -114,11 +114,11 @@
<VerInfo_Locale>1033</VerInfo_Locale>
<DCC_ExeOutput>.\bin</DCC_ExeOutput>
<DCC_UnitSearchPath>C:\RADTOOLS\FastMM4;$(DCC_UnitSearchPath)</DCC_UnitSearchPath>
<VerInfo_Keys>CompanyName=EM Systems;FileDescription=$(MSBuildProjectName);FileVersion=0.9.1
2.1
;InternalName=;LegalCopyright=;LegalTrademarks=;OriginalFilename=;ProgramID=com.embarcadero.$(MSBuildProjectName);ProductName=$(MSBuildProjectName);ProductVersion=0.9.11;Comments=</VerInfo_Keys>
<VerInfo_Keys>CompanyName=EM Systems;FileDescription=$(MSBuildProjectName);FileVersion=0.9.1
3.2
;InternalName=;LegalCopyright=;LegalTrademarks=;OriginalFilename=;ProgramID=com.embarcadero.$(MSBuildProjectName);ProductName=$(MSBuildProjectName);ProductVersion=0.9.11;Comments=</VerInfo_Keys>
<VerInfo_MajorVer>0</VerInfo_MajorVer>
<VerInfo_MinorVer>9</VerInfo_MinorVer>
<VerInfo_Release>1
2
</VerInfo_Release>
<VerInfo_Build>
1
</VerInfo_Build>
<VerInfo_Release>1
3
</VerInfo_Release>
<VerInfo_Build>
2
</VerInfo_Build>
</PropertyGroup>
<PropertyGroup Condition="'$(Cfg_1_Win64)'!=''">
<AppDPIAwarenessMode>PerMonitorV2</AppDPIAwarenessMode>
...
...
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