Changeset 24 for trunk/Modules/Attendance/UAccessControler.pas
- Timestamp:
- Nov 19, 2012, 12:31:19 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Attendance/UAccessControler.pas
r20 r24 6 6 7 7 uses 8 Classes, SysUtils ;8 Classes, SysUtils, UAttendance, UCommPin; 9 9 10 10 type 11 12 11 { TAccessControler } 13 12 14 13 TAccessControler = class 15 (* function GetUser(Id: Integer): TUser; 16 function GetUserCount: Integer; 17 function GetPassage(Id: Integer): TPassage; 18 function GetPassageCount: Integer;*) 14 private 15 FActive: Boolean; 16 protected 17 procedure SetActive(AValue: Boolean); virtual; 18 public 19 Id: Integer; 20 Pin: TCommPin; 21 constructor Create; virtual; 22 destructor Destroy; override; 23 function GetUser(Id: Integer; User: TUser): Boolean; virtual; 24 function GetUserCount: Integer; virtual; 25 function GetPassage(Id: Integer; Passage: TUserPassage): Boolean; virtual; 26 function GetPassageCount: Integer; virtual; 27 property Active: Boolean read FActive write SetActive; 19 28 end; 20 29 … … 23 32 { TAccessControler } 24 33 25 (*function TAccessControler.GetUser(Id: Integer): TUser; 34 procedure TAccessControler.SetActive(AValue: Boolean); 35 begin 36 if FActive = AValue then Exit; 37 FActive := AValue; 38 end; 39 40 constructor TAccessControler.Create; 41 begin 42 Pin := TCommPin.Create; 43 Id := 1; 44 end; 45 46 destructor TAccessControler.Destroy; 47 begin 48 FreeAndNil(Pin); 49 inherited Destroy; 50 end; 51 52 function TAccessControler.GetUser(Id: Integer; User: TUser): Boolean; 26 53 begin 27 54 … … 33 60 end; 34 61 35 function TAccessControler.GetPassage(Id: Integer ): TPassage;62 function TAccessControler.GetPassage(Id: Integer; Passage: TUserPassage): Boolean; 36 63 begin 37 64 … … 41 68 begin 42 69 43 end; *)70 end; 44 71 45 72 end.
Note:
See TracChangeset
for help on using the changeset viewer.