Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
emiMobile
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
Mac Stephens
emiMobile
Commits
1a14d7e4
Commit
1a14d7e4
authored
Nov 07, 2025
by
Mac Stephens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Version that works ready to be used with Mike.
parent
de1aebb1
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
71 deletions
+23
-71
Api.Database.dfm
emiMobileServer/Source/Api.Database.dfm
+0
-1
Api.Database.pas
emiMobileServer/Source/Api.Database.pas
+0
-47
emiMobileServer.ini
emiMobileServer/emiMobileServer.ini
+1
-1
View.Units.pas
webEMIMobile/View.Units.pas
+20
-20
webEmiMobile.dproj
webEMIMobile/webEmiMobile.dproj
+2
-2
No files found.
emiMobileServer/Source/Api.Database.dfm
View file @
1a14d7e4
object ApiDatabaseModule: TApiDatabaseModule
OnCreate = DataModuleCreate
Height = 491
Width = 640
object ucEnvoy: TUniConnection
...
...
emiMobileServer/Source/Api.Database.pas
View file @
1a14d7e4
...
...
@@ -121,7 +121,6 @@ type
uqComplaintDetailsDATERESPONDED
:
TDateTimeField
;
uqComplaintDetailsDATEARRIVED
:
TDateTimeField
;
uqComplaintDetailsDATECLEARED
:
TDateTimeField
;
procedure
DataModuleCreate
(
Sender
:
TObject
);
procedure
uqComplaintListCalcFields
(
DataSet
:
TDataSet
);
procedure
uqMapComplaintsCalcFields
(
DataSet
:
TDataSet
);
private
...
...
@@ -142,52 +141,6 @@ implementation
{$R *.dfm}
procedure
TApiDatabaseModule
.
DataModuleCreate
(
Sender
:
TObject
);
var
iniFile
:
TIniFile
;
begin
iniFile
:=
TIniFile
.
Create
(
ChangeFileExt
(
Application
.
ExeName
,
'.ini'
));
try
ucEnvoy
.
Server
:=
iniFile
.
ReadString
(
'Database'
,
'Server'
,
''
);
ucEnvoy
.
Database
:=
iniFile
.
ReadString
(
'Database'
,
'Database'
,
''
);
ucEnvoy
.
Username
:=
iniFile
.
ReadString
(
'Database'
,
'Username'
,
''
);
ucEnvoy
.
Password
:=
iniFile
.
ReadString
(
'Database'
,
'Password'
,
''
);
try
Logger
.
Log
(
2
,
''
);
Logger
.
Log
(
2
,
'Connecting to envoyCalls Database (ApiDatabaseModule)...'
);
Logger
.
Log
(
2
,
Format
(
'--ucEnvoy.Server: %s ucEnvoy.Username: %s'
,
[
ucEnvoy
.
Server
,
ucEnvoy
.
Username
]));
if
not
ucEnvoy
.
Connected
then
ucEnvoy
.
Connect
;
Logger
.
Log
(
2
,
'--ucEnvoy connected!'
);
except
on
E
:
Exception
do
begin
Logger
.
Log
(
2
,
Format
(
'Failed to connect to envoyCalls database: %s'
,
[
E
.
Message
]));
end
;
end
;
Logger
.
Log
(
1
,
''
);
Logger
.
Log
(
1
,
'Loading Twilio settings...'
);
var
twilioSID
:=
iniFile
.
ReadString
(
'Twilio'
,
'AccountSID'
,
''
);
if
twilioSID
.
IsEmpty
then
Logger
.
Log
(
1
,
'Twilio->AccountSID: Entry not found'
)
else
Logger
.
Log
(
1
,
'Twilio->AccountSID: '
+
twilioSID
);
var
twilioAuth
:=
iniFile
.
ReadString
(
'Twilio'
,
'AuthHeader'
,
''
);
if
twilioAuth
.
IsEmpty
then
Logger
.
Log
(
1
,
'Twilio->AuthHeader: Entry not found'
)
else
Logger
.
Log
(
1
,
'Twilio->AuthHeader: '
+
twilioAuth
);
finally
iniFile
.
Free
;
end
;
end
;
class
procedure
TApiDatabaseModule
.
ExecSQL
(
const
SQL
:
string
);
var
DB
:
TApiDatabaseModule
;
...
...
emiMobileServer/emiMobileServer.ini
View file @
1a14d7e4
[Settings]
LogFileNum
=
493
LogFileNum
=
502
webClientVersion
=
0.1.0
TwilioUpdateTime
=
0
...
...
webEMIMobile/View.Units.pas
View file @
1a14d7e4
...
...
@@ -57,26 +57,26 @@ begin
GetUnits
;
tmrRefresh
.
Enabled
:=
True
;
{$IFNDEF WIN32}
asm
var
root
=
pas
.
TFViewUnits
(
Self
).
dblUnitsList
.
ElementHandle
;
if
(
root
&&
!
root
.
__emiDelegated
)
{
root.__emiDelegated = true;
root.addEventListener('click', function (e) {
// Look for a click on, or inside, the details button
var btn = e.target && e.target.closest('.btn-unit-details');
if (!btn || !root.contains(btn)) return;
e.preventDefault();
e.stopPropagation();
var unitId = btn.getAttribute('data-unitid') || '';
pas.TFViewUnits(Self).OpenUnitDetails(unitId);
}
,
{ passive: true }
);
}
end
;
{$ENDIF}
//
{$IFNDEF WIN32}
//
asm
//
var root = pas.TFViewUnits(Self).dblUnitsList.ElementHandle;
//
if (root && !root.__emiDelegated) {
//
root.__emiDelegated = true;
//
//
root.addEventListener('click', function (e) {
//
// Look for a click on, or inside, the details button
//
var btn = e.target && e.target.closest('.btn-unit-details');
//
if (!btn || !root.contains(btn)) return;
//
//
e.preventDefault();
//
e.stopPropagation();
//
//
var unitId = btn.getAttribute('data-unitid') || '';
//
pas.TFViewUnits(Self).OpenUnitDetails(unitId);
//
}, { passive: true });
//
}
//
end;
//
{$ENDIF}
end
;
procedure
TFViewUnits
.
btnRefreshClick
(
Sender
:
TObject
);
...
...
webEMIMobile/webEmiMobile.dproj
View file @
1a14d7e4
...
...
@@ -94,10 +94,10 @@
<AppDPIAwarenessMode>PerMonitor</AppDPIAwarenessMode>
<VerInfo_MinorVer>9</VerInfo_MinorVer>
<VerInfo_MajorVer>0</VerInfo_MajorVer>
<VerInfo_Release>3</VerInfo_Release>
<TMSWebBrowser>1</TMSWebBrowser>
<TMSWebSingleInstance>1</TMSWebSingleInstance>
<TMSUseJSDebugger>2</TMSUseJSDebugger>
<VerInfo_Release>3</VerInfo_Release>
<TMSWebBrowser>3</TMSWebBrowser>
</PropertyGroup>
<PropertyGroup Condition="'$(Cfg_2)'!=''">
<DCC_LocalDebugSymbols>false</DCC_LocalDebugSymbols>
...
...
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