home *** CD-ROM | disk | FTP | other *** search
/ Chip: Shareware for Win 95 / Chip-Shareware-Win95.bin / ostatni / delphi / delphi2 / seldlg.exe / 32BIT / FSDDEMO.PAS < prev    next >
Pascal/Delphi Source File  |  1996-10-16  |  2KB  |  76 lines

  1. unit Fsddemo;
  2.  
  3. interface
  4.  
  5. uses
  6.   SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
  7.   Forms, Dialogs, DB, DBTables, Grids, DBGrids, DBCtrls,
  8.   ExtCtrls, StdCtrls, TabNotBk, Buttons, Seldlg, ComCtrls;
  9.  
  10. type
  11.   TFormSelectDialog = class(TForm)
  12.     TabbedNotebook1: TTabbedNotebook;
  13.     Label1: TLabel;
  14.     Label2: TLabel;
  15.     Label4: TLabel;
  16.     Panel1: TPanel;
  17.     Label5: TLabel;
  18.     Panel2: TPanel;
  19.     Label10: TLabel;
  20.     DBNavigator1: TDBNavigator;
  21.     DBGrid1: TDBGrid;
  22.     Label11: TLabel;
  23.     TablePersonnel: TTable;
  24.     DSPersonnel: TDataSource;
  25.     TablePersonnelLastName: TStringField;
  26.     TablePersonnelHireDate: TDateTimeField;
  27.     TablePersonnelFirstName: TStringField;
  28.     Label12: TLabel;
  29.     Label13: TLabel;
  30.     SelectDialog1: TSelectDialog;
  31.     SelectDialog2: TSelectDialog;
  32.     SelectDialog3: TSelectDialog;
  33.     LookupDialog1: TLookupDialog;
  34.     TableDept: TTable;
  35.     DSDept: TDataSource;
  36.     TableDeptDepartmentID: TStringField;
  37.     TableDeptManagerID: TStringField;
  38.     TableDeptDescription: TStringField;
  39.     TableDeptOperatingCost: TCurrencyField;
  40.     TableDeptStaffTurnover: TFloatField;
  41.     TableDeptStaffSize: TSmallintField;
  42.     TableDeptDateEstablished: TDateField;
  43.     TableDeptOwnerDept: TStringField;
  44.     TablePersonnelEmpNo: TStringField;
  45.     TablePersonnelPhoneExt: TStringField;
  46.     TablePersonnelSalary: TFloatField;
  47.     TablePersonnelBoss: TStringField;
  48.     procedure FormCreate(Sender: TObject);
  49.     procedure FormDestroy(Sender: TObject);
  50.   private
  51.     { Private declarations }
  52.   public
  53.     { Public declarations }
  54.   end;
  55.  
  56. var
  57.   FormSelectDialog: TFormSelectDialog;
  58.  
  59. implementation
  60.  
  61. {$R *.DFM}
  62.  
  63. procedure TFormSelectDialog.FormCreate(Sender: TObject);
  64. begin
  65.   TablePersonnel.Open;
  66.   TableDept.Open;
  67. end;
  68.  
  69. procedure TFormSelectDialog.FormDestroy(Sender: TObject);
  70. begin
  71.   TablePersonnel.Close;
  72.   TableDept.Close;
  73. end;
  74.  
  75. end.
  76.