Commit 7a4d7d63 by Mac Stephens

Update username and password error message

parent b094feee
...@@ -18,3 +18,5 @@ emT3XDataServer/Win32/ ...@@ -18,3 +18,5 @@ emT3XDataServer/Win32/
*.tvsconfig *.tvsconfig
*.txt *.txt
*.zip *.zip
emT3VCLDemo/__recovery/
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<Platform Condition="'$(Platform)'==''">Win32</Platform> <Platform Condition="'$(Platform)'==''">Win32</Platform>
<TargetedPlatforms>1</TargetedPlatforms> <TargetedPlatforms>1</TargetedPlatforms>
<AppType>Application</AppType> <AppType>Application</AppType>
<ProjectName Condition="'$(ProjectName)'==''">emT3Web</ProjectName> <ProjectName Condition="'$(ProjectName)'==''">emT3web</ProjectName>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Config)'=='Base' or '$(Base)'!=''"> <PropertyGroup Condition="'$(Config)'=='Base' or '$(Base)'!=''">
<Base>true</Base> <Base>true</Base>
...@@ -99,10 +99,11 @@ ...@@ -99,10 +99,11 @@
<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>
<TMSUseJSDebugger>2</TMSUseJSDebugger>
<TMSWebSingleInstance>1</TMSWebSingleInstance>
<TMSWebBrowser>1</TMSWebBrowser> <TMSWebBrowser>1</TMSWebBrowser>
<TMSWebOutputPath>..\emT3XDataServer\bin\static</TMSWebOutputPath> <TMSWebOutputPath>..\emT3XDataServer\bin\static</TMSWebOutputPath>
<TMSWebSingleInstance>1</TMSWebSingleInstance>
<TMSURLParams>?user_id=1019&amp;task_id=4045&amp;url_code=123456</TMSURLParams>
<TMSUseJSDebugger>2</TMSUseJSDebugger>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Cfg_2)'!=''"> <PropertyGroup Condition="'$(Cfg_2)'!=''">
<DCC_LocalDebugSymbols>false</DCC_LocalDebugSymbols> <DCC_LocalDebugSymbols>false</DCC_LocalDebugSymbols>
......
...@@ -195,7 +195,10 @@ begin ...@@ -195,7 +195,10 @@ begin
if insertAfterItemNum > maxItemNum then if insertAfterItemNum > maxItemNum then
insertAfterItemNum := maxItemNum; insertAfterItemNum := maxItemNum;
newItemNum := insertAfterItemNum + 1; if insertAfterItemNum = 0 then
newItemNum := maxItemNum + 1
else
newItemNum := insertAfterItemNum + 1;
apiDB.uqAddTaskRow.Connection.StartTransaction; apiDB.uqAddTaskRow.Connection.StartTransaction;
try try
......
...@@ -34,21 +34,25 @@ type ...@@ -34,21 +34,25 @@ type
property dbDatabase: string read FDBDatabase; property dbDatabase: string read FDBDatabase;
property dbUsername: string read FDBUsername; property dbUsername: string read FDBUsername;
property dbPassword: string read FDBPassword; property dbPassword: string read FDBPassword;
end;
end; procedure LoadIniEntries;
procedure LoadIniEntries;
var var
IniEntries: TIniEntries; IniEntries: TIniEntries;
implementation implementation
uses
Common.Logging;
procedure LoadIniEntries; procedure LoadIniEntries;
begin begin
if Assigned(IniEntries) then Logger.Log(1, 'IniEntries global variable instantiated');
IniEntries.Free; // if Assigned(IniEntries) then
IniEntries := TIniEntries.Create; // IniEntries.Free;
// IniEntries := TIniEntries.Create;
end; end;
{ TIniEntries } { TIniEntries }
...@@ -60,7 +64,7 @@ begin ...@@ -60,7 +64,7 @@ begin
iniFile := TIniFile.Create(ChangeFileExt(Application.ExeName, '.ini')); iniFile := TIniFile.Create(ChangeFileExt(Application.ExeName, '.ini'));
try try
// [Settings] // [Settings]
FMemoLogLevel := iniFile.ReadInteger('Settings', 'ConsoleLogLevel', 3); FMemoLogLevel := iniFile.ReadInteger('Settings', 'MemoLogLevel', 3);
FFileLogLevel := iniFile.ReadInteger('Settings', 'FileLogLevel', 3); FFileLogLevel := iniFile.ReadInteger('Settings', 'FileLogLevel', 3);
FLogFileNum := iniFile.ReadInteger('Settings', 'LogFileNum', 0); FLogFileNum := iniFile.ReadInteger('Settings', 'LogFileNum', 0);
Inc(FLogFileNum); Inc(FLogFileNum);
...@@ -77,6 +81,12 @@ begin ...@@ -77,6 +81,12 @@ begin
end; end;
end; end;
initialization
IniEntries := TIniEntries.Create;
finalization
IniEntries.Free;
end. end.
...@@ -2,12 +2,12 @@ ...@@ -2,12 +2,12 @@
MemoLogLevel=4 MemoLogLevel=4
FileLogLevel=4 FileLogLevel=4
webClientVersion=0.8.3 webClientVersion=0.8.3
LogFileNum=111 LogFileNum=136
[Database] [Database]
Server=192.168.116.131 --Server=192.168.116.131
--Server=192.168.116.128 --Server=192.168.116.128
--Server=192.168.75.133 Server=192.168.102.131
--Server=192.168.159.10 --Server=192.168.159.10
Database=eTask Database=eTask
Username=root Username=root
......
...@@ -160,7 +160,8 @@ begin ...@@ -160,7 +160,8 @@ begin
iniFilename := ChangeFileExt( Application.ExeName, '.ini' ); iniFilename := ChangeFileExt( Application.ExeName, '.ini' );
iniFile := TIniFile.Create( iniFilename ); iniFile := TIniFile.Create( iniFilename );
try try
LoadIniEntries;
// LoadIniEntries;
//memoLogLevel := iniFile.ReadInteger('Settings', 'MemoLogLevel', 3); //memoLogLevel := iniFile.ReadInteger('Settings', 'MemoLogLevel', 3);
//fileLogLevel := iniFile.ReadInteger('Settings', 'FileLogLevel', 4); //fileLogLevel := iniFile.ReadInteger('Settings', 'FileLogLevel', 4);
//fileNum := iniFile.ReadInteger( 'Settings', 'LogFileNum', 0 ); //fileNum := iniFile.ReadInteger( 'Settings', 'LogFileNum', 0 );
...@@ -175,6 +176,7 @@ begin ...@@ -175,6 +176,7 @@ begin
Logger.Log( 1, '*******************************************************' ); Logger.Log( 1, '*******************************************************' );
Logger.Log( 1, '' ); Logger.Log( 1, '' );
LoadIniEntries;
Logger.Log( 1, 'iniFile: ' + iniFilename ); Logger.Log( 1, 'iniFile: ' + iniFilename );
iniStr := iniFile.ReadString( 'Settings', 'MemoLogLevel', '' ); iniStr := iniFile.ReadString( 'Settings', 'MemoLogLevel', '' );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment