-
Notifications
You must be signed in to change notification settings - Fork 0
/
uDataModule.pas
51 lines (41 loc) · 1.18 KB
/
uDataModule.pas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
unit uDataModule;
interface
uses
System.SysUtils, System.Classes, ABSMain, Data.DB;
type
Tdm = class(TDataModule)
tbMemBigDeals: TABSTable;
tbMemBigDealsadate: TDateTimeField;
tbMemBigDealshash: TStringField;
tbMemBigDealsinout: TBooleanField;
tbMemBigDealscurrency: TStringField;
tbMemBigDealsamount: TFloatField;
tbMemBigDealsTop: TIntegerField;
tbMemBigDealsPlace2: TIntegerField;
ABSDatabase1: TABSDatabase;
tbDeals: TABSTable;
tbMemReturns: TABSTable;
tbMemReturnsCurrency: TStringField;
tbMemReturnsDealsBuy: TIntegerField;
tbMemReturnsDealsSell: TIntegerField;
tbMemReturnsDeals: TIntegerField;
tbMemReturnsVolumeBuy: TFloatField;
tbMemReturnsVolumeSell: TFloatField;
tbMemReturnsDexLink: TStringField;
tbMemReturnsLastAddedTime: TDateTimeField;
tbMemReturnsLastRemovedTime: TDateTimeField;
private
public
function FindHash(const hash: string): Boolean;
end;
var
dm: Tdm;
implementation
{%CLASSGROUP 'Vcl.Controls.TControl'}
{$R *.dfm}
function Tdm.FindHash(const hash: string): Boolean;
begin
tbDeals.IndexName := 'xHash'; // èùåì õåø â áàçå
Result := tbDeals.FindKey([Hash]);
end;
end.