Commit b2f7a7bc by Elias Sarraf

deploy ver 0.9.11

parent 56284871
...@@ -27,3 +27,5 @@ kgOrdersServer/bin/logs/ ...@@ -27,3 +27,5 @@ kgOrdersServer/bin/logs/
kgOrdersServer/bin/static/ kgOrdersServer/bin/static/
kgOrdersServer/static/reports/ kgOrdersServer/static/reports/
kgOrdersServer/bin/kgOrdersServer_MemoryManager_EventLog.txt
...@@ -117,7 +117,7 @@ type ...@@ -117,7 +117,7 @@ type
shipmode: string; shipmode: string;
public public
{ Public declarations } { Public declarations }
class function CreateForm(AElementID, customerInfo, info: string): TWebForm; class function CreateForm(AElementID, customerInfo, info: string): TWebForm;
end; end;
var var
......
...@@ -318,7 +318,6 @@ begin ...@@ -318,7 +318,6 @@ begin
end; end;
procedure ApplyReportTitle(CurrentReportType: string); procedure ApplyReportTitle(CurrentReportType: string);
var var
CrimeTitleElement: TJSHTMLElement; CrimeTitleElement: TJSHTMLElement;
...@@ -350,3 +349,4 @@ end; ...@@ -350,3 +349,4 @@ end;
// end; // end;
end. end.
...@@ -184,7 +184,7 @@ begin ...@@ -184,7 +184,7 @@ begin
if AuthService.TokenPayload.Properties['qb_enabled'] then if AuthService.TokenPayload.Properties['qb_enabled'] then
ShowSelectCustomerForm() ShowSelectCustomerForm()
else else
ShowNotificationModal('Quickbooks interface not currently active'); ShowNotificationModal('QuickBooks interface is not currently active');
end; end;
procedure TFViewCustomers.edtFilterChange(Sender: TObject); procedure TFViewCustomers.edtFilterChange(Sender: TObject);
......
...@@ -226,7 +226,7 @@ begin ...@@ -226,7 +226,7 @@ begin
Exit; Exit;
ShowConfirmationModal( ShowConfirmationModal(
'Are you sure you want to save changes to your profile?', 'Are you sure you want to save changes?',
'Save', 'Save',
'Cancel', 'Cancel',
procedure(confirmed: Boolean) procedure(confirmed: Boolean)
......
...@@ -477,13 +477,13 @@ begin ...@@ -477,13 +477,13 @@ begin
); );
end end
else else
ShowNotificationModal('Quickbooks interface not currently active.'); ShowNotificationModal('QuickBooks interface is not currently active.');
end; end;
procedure TFViewItems.btnCancelClick(Sender: TObject); procedure TFViewItems.btnCancelClick(Sender: TObject);
begin begin
ShowConfirmationModal( ShowConfirmationModal(
'Are you sure you want to cancel all changes to the customer?', 'Are you sure you want to cancel?',
'Yes', 'Yes',
'No', 'No',
procedure(confirmed: Boolean) procedure(confirmed: Boolean)
......
...@@ -390,17 +390,3 @@ is-invalid .form-check-input { ...@@ -390,17 +390,3 @@ is-invalid .form-check-input {
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
} }
...@@ -1184,7 +1184,7 @@ begin ...@@ -1184,7 +1184,7 @@ begin
try try
SQL := SQLQuery.SQL; SQL := SQLQuery.SQL;
whereSQL := SQLQuery.whereSQL; whereSQL := SQLQuery.whereSQL;
logger.Log(3, 'Getting orders with SQL query ' + SQL); logger.Log(5, 'Getting orders with SQL query ' + SQL);
doQuery(ordersDB.UniQuery1, SQL); doQuery(ordersDB.UniQuery1, SQL);
......
...@@ -147,29 +147,35 @@ begin ...@@ -147,29 +147,35 @@ begin
Logger.Log(1, '--- Database ---'); Logger.Log(1, '--- Database ---');
iniStr := IniFile.ReadString( 'Database', 'Server', '' ); iniStr := IniFile.ReadString( 'Database', 'Server', '' );
if iniStr.IsEmpty then if iniStr.IsEmpty then
Logger.Log( 1, '--Database->Server: Entry not found' ) Logger.Log( 1, '----Database->Server: Entry not found - ERROR: ini entry required!!!' )
else else
Logger.Log( 1, '--Database->Server: ' + iniStr ); Logger.Log( 1, '----Database->Server: ' + iniStr );
iniStr := iniFile.ReadString('Database', 'Database', ''); iniStr := iniFile.ReadString('Database', 'Database', '');
if iniStr.IsEmpty then if iniStr.IsEmpty then
Logger.Log( 1, '----Database->Database: Entry not found' ) Logger.Log( 1, '----Database->Database: ini entry not found - default: kg_order_entry' )
else else
Logger.Log( 1, '----Database->Database: ' + iniStr ); Logger.Log( 1, '----Database->Database: ini entry: ' + iniStr );
iniStr := iniFile.ReadString('Database', 'Username', ''); iniStr := iniFile.ReadString('Database', 'Username', '');
if iniStr.IsEmpty then if iniStr.IsEmpty then
Logger.Log( 1, '----Database->Username: Entry not found' ) Logger.Log( 1, '----Database->Username: Entry not found - default: root' )
else else
Logger.Log( 1, '----Database->Username: ' + iniStr ); Logger.Log( 1, '----Database->Username: ' + iniStr );
iniStr := iniFile.ReadString('Database', 'Password', ''); iniStr := iniFile.ReadString('Database', 'Password', '');
if iniStr.IsEmpty then if iniStr.IsEmpty then
Logger.Log( 1, '----Database->Password: Entry not found' ) Logger.Log( 1, '----Database->Password: Entry not found - default: xxxxxx' )
else else
Logger.Log( 1, '----Database->Password: xxxxxxxx' ); Logger.Log( 1, '----Database->Password: xxxxxxxx' );
Logger.Log(1, '---Quickbooks---'); Logger.Log(1, '---Quickbooks---');
iniStr := IniFile.ReadString( 'Quickbooks', 'Enabled', '' );
if iniStr.IsEmpty then
Logger.Log( 1, '--Quickbooks->Enabled: Entry not found - default: yes' )
else
Logger.Log( 1, '--Quickbooks->Enabled: ' + iniStr );
iniStr := IniFile.ReadString( 'Quickbooks', 'CompanyID', '' ); iniStr := IniFile.ReadString( 'Quickbooks', 'CompanyID', '' );
if iniStr.IsEmpty then if iniStr.IsEmpty then
Logger.Log( 1, '--Quickbooks->CompanyID: Entry not found' ) Logger.Log( 1, '--Quickbooks->CompanyID: Entry not found' )
......
...@@ -22,10 +22,10 @@ var ...@@ -22,10 +22,10 @@ var
begin begin
iniFile := TIniFile.Create( ExtractFilePath(Application.ExeName) + iniFilename ); iniFile := TIniFile.Create( ExtractFilePath(Application.ExeName) + iniFilename );
try try
uc.Server := iniFile.ReadString('Database', 'Server', uc.Server); uc.Server := iniFile.ReadString('Database', 'Server', '');
uc.Database := iniFile.ReadString('Database', 'Database', uc.Database); uc.Database := iniFile.ReadString('Database', 'Database', 'kg_order_entry');
uc.Username := iniFile.ReadString('Database', 'Username', uc.Username); uc.Username := iniFile.ReadString('Database', 'Username', 'root');
uc.Password := iniFile.ReadString('Database', 'Password', uc.Password); uc.Password := iniFile.ReadString('Database', 'Password', 'emsys01');
finally finally
iniFile.Free; iniFile.Free;
end; end;
......
...@@ -2,16 +2,16 @@ ...@@ -2,16 +2,16 @@
MemoLogLevel=4 MemoLogLevel=4
FileLogLevel=4 FileLogLevel=4
webClientVersion=0.9.11 webClientVersion=0.9.11
LogFileNum=160 LogFileNum=164
[Database] [Database]
--Server=192.168.116.138 Server=192.168.116.132
Server=192.168.102.129 --Server=192.168.102.129
--Server=192.168.75.133 --Server=192.168.75.133
--Server=192.168.159.10 --Server=192.168.159.10
Database=kg_order_entry --Database=kg_order_entry
Username=root --Username=root
Password=emsys01 --Password=emsys01
--Password=emsys!012 --Password=emsys!012
[Quickbooks] [Quickbooks]
......
This source diff could not be displayed because it is too large. You can view the blob instead.
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