Ignore:
Timestamp:
Feb 18, 2009, 12:11:53 PM (16 years ago)
Author:
george
Message:
  • Upraveno: Přepracován databázový objektový subsystém.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/web/UFinancePage.pas

    r138 r158  
    44
    55interface
     6
     7uses
     8  UDatabase, UConfig;
     9
     10type
     11
     12  { TBaseObject }
     13
     14  TBaseObject = class(TDbObject)
     15  private
     16    FName: string;
     17  published
     18    property Name: string read FName write FName;
     19  end;
    620
    721function FinanceOverviewPage: string;
     
    94108end;
    95109
     110function Test: string;
     111var
     112  Base: TBaseObject;
     113begin
     114  Result := ShowHeader('<strong>ZděchovNET</strong> - komunitní počítačová síť', 'Finance');
     115  Base := TBaseObject.Create(nil);
     116  Base.Database := TDatabase.Create;
     117  Base.Database.Hostname := DatabaseHostname;
     118  Base.Database.Database := 'centrala';
     119  Base.Database.UserName := DatabaseUserName;
     120  Base.Database.Password := DatabasePassword;
     121  Base.Database.Connect;
     122  //Base.Store;
     123
     124  Result := Result + ShowFooter;
     125end;
     126
     127{ TBaseObject }
     128
    96129begin
    97130  RegisterPage('finance', @FinanceOverviewPage);   
    98   RegisterPage('finance-clenove', @FinanceClientList);   
     131  RegisterPage('finance-clenove', @FinanceClientList);
     132  RegisterPage('test', @Test);
    99133end.
Note: See TracChangeset for help on using the changeset viewer.