Commit d2ea84ea by Elias Sarraf

merged Mac code

parent dae33801
...@@ -13,7 +13,6 @@ kgOrdersServer/logs ...@@ -13,7 +13,6 @@ kgOrdersServer/logs
kgOrdersServer/Win32/ kgOrdersServer/Win32/
kgOrdersServer/Source/__history/ kgOrdersServer/Source/__history/
kgOrdersServer/Source/__recovery/ kgOrdersServer/Source/__recovery/
/Reports
*.exe *.exe
*.local *.local
......
...@@ -1520,4 +1520,11 @@ object FData: TFData ...@@ -1520,4 +1520,11 @@ object FData: TFData
Left = 669 Left = 669
Top = 456 Top = 456
end end
object Timer1: TTimer
Enabled = False
Interval = 100
OnTimer = Timer1Timer
Left = 348
Top = 369
end
end end
...@@ -14,7 +14,7 @@ uses ...@@ -14,7 +14,7 @@ uses
BaseGrid, AdvGrid, DBAdvGrid, MemDS, DBAccess, Uni, Vcl.StdCtrls, Vcl.Mask, BaseGrid, AdvGrid, DBAdvGrid, MemDS, DBAccess, Uni, Vcl.StdCtrls, Vcl.Mask,
vcl.wwdbedit, vcl.wwdotdot, vcl.wwdbcomb, REST.Client, REST.Types, System.JSON, vcl.wwdbedit, vcl.wwdotdot, vcl.wwdbcomb, REST.Client, REST.Types, System.JSON,
System.Generics.Collections, AdvEdit, vcl.wwdblook, vcl.wwdbdatetimepicker, System.Generics.Collections, AdvEdit, vcl.wwdblook, vcl.wwdbdatetimepicker,
System.Hash, Api.Database; System.Hash, Api.Database, Vcl.ExtCtrls;
type type
TFData = class(TForm) TFData = class(TForm)
...@@ -35,9 +35,11 @@ type ...@@ -35,9 +35,11 @@ type
edtPhoneNumber: TEdit; edtPhoneNumber: TEdit;
edtEmailAddress: TEdit; edtEmailAddress: TEdit;
btnPDF: TButton; btnPDF: TButton;
Timer1: TTimer;
procedure FormCreate(Sender: TObject); procedure FormCreate(Sender: TObject);
procedure btnFindClick(Sender: TObject); procedure btnFindClick(Sender: TObject);
procedure btnPDFClick(Sender: TObject); procedure btnPDFClick(Sender: TObject);
procedure Timer1Timer(Sender: TObject);
private private
kgDB: TApiDatabase; kgDB: TApiDatabase;
accountSID: string; accountSID: string;
...@@ -55,17 +57,29 @@ implementation ...@@ -55,17 +57,29 @@ implementation
uses uLibrary, rOrders; uses uLibrary, rOrders;
procedure TFData.btnPDFClick(Sender: TObject); procedure TFData.FormCreate(Sender: TObject);
begin begin
RunOrdersReport('&pagenumber=1&pagesize=50&orderby='); Timer1.Enabled := True;
end; end;
procedure TFData.FormCreate(Sender: TObject); procedure TFData.Timer1Timer(Sender: TObject);
begin begin
Timer1.Enabled := False;
Screen.Cursor := crHourGlass;
Memo1.Lines.Add( 'creating kgDB TApiDatabase...' );
kgDB := TApiDatabase.Create(Self); kgDB := TApiDatabase.Create(Self);
Memo1.Lines.Add( '--kgDB TApiDatabase created!' );
Screen.Cursor := crDefault;
end; end;
procedure TFData.btnPDFClick(Sender: TObject);
begin
RunOrdersReport('&pagenumber=1&pagesize=50&orderby=');
end;
procedure TFData.btnFindClick(Sender: TObject); procedure TFData.btnFindClick(Sender: TObject);
// Retrieves calls from a specific number from the database. // Retrieves calls from a specific number from the database.
// SQL: SQL statement to retrieve calls from the database // SQL: SQL statement to retrieve calls from the database
......
...@@ -1164,7 +1164,6 @@ ...@@ -1164,7 +1164,6 @@
<Platform value="Win32">True</Platform> <Platform value="Win32">True</Platform>
<Platform value="Win64">True</Platform> <Platform value="Win64">True</Platform>
</Platforms> </Platforms>
<ModelSupport>False</ModelSupport>
</BorlandProject> </BorlandProject>
<ProjectFileVersion>12</ProjectFileVersion> <ProjectFileVersion>12</ProjectFileVersion>
</ProjectExtensions> </ProjectExtensions>
......
[Settings] [Settings]
MemoLogLevel=5 MemoLogLevel=5
FileLogLevel=5 FileLogLevel=5
LogFileNum=30 LogFileNum=34
webClientVersion=1.0.0 webClientVersion=1.0.0
[Database] [Database]
......
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