Changeset 20 for trunk/Modules


Ignore:
Timestamp:
Nov 15, 2012, 8:59:57 PM (12 years ago)
Author:
chronos
Message:
  • Přidáno: Modul, který bude obsahovat implementaci komunikace s přístupovými terminály firmy Chiyu.
Location:
trunk/Modules
Files:
7 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/Attendance/UModuleAttendance.pas

    r19 r20  
    5252    procedure DoStart; override;
    5353    procedure DoStop; override;
     54    procedure DoInstall; override;
     55    procedure DoUninstall; override;
    5456  public
    5557    constructor Create(Owner: TComponent); override;
     
    187189        ReferencedTable := 'User';
    188190      with AddItem(SOperation, 'Operation', ctReference, True, Bounds(1, 1, 1, 1)) do
    189         ReferencedTable := 'User';
     191        ReferencedTable := 'Operation';
    190192      with AddItem(STerminal, 'Terminal', ctReference, True, Bounds(3, 1, 1, 1)) do
    191         ReferencedTable := 'User';
     193        ReferencedTable := 'Terminal';
    192194    end;
    193195    Name := 'Passage';
     
    283285      AddItem(SAddress, 'Address', True, 120);
    284286      AddItem(SPort, 'Port', True, 50);
    285       AddItem(SType, 'Type', True, 80);
     287      with AddItem(SType, 'Type', True, 80) do
     288        ReferencedTable := 'TerminalType';
    286289      AddItem(SNote, 'Note', True, 80);
    287290    end;
     
    298301      AddItem(SAddress, 'Address', ctEdit, True, Bounds(1, 1, 1, 1));
    299302      AddItem(SPort, 'Port', ctSpinEdit, True, Bounds(3, 1, 1, 1));
    300       AddItem(SType, 'Type', ctComboBox, True, Bounds(1, 2, 1, 1));
     303      with AddItem(SType, 'Type', ctReference, True, Bounds(1, 2, 1, 1)) do
     304        ReferencedTable := 'TerminalType';
    301305      AddItem(SNote, 'Note', ctMemo, True, Bounds(0, 4, 4, 4), alTop);
    302306    end;
     
    377381end;
    378382
     383procedure TModuleAttendance.DoInstall;
     384begin
     385  inherited DoInstall;
     386end;
     387
     388procedure TModuleAttendance.DoUninstall;
     389begin
     390  inherited DoUninstall;
     391end;
     392
    379393constructor TModuleAttendance.Create(Owner: TComponent);
    380394begin
Note: See TracChangeset for help on using the changeset viewer.