unit Form.Main;
interface
uses
Winapi.Windows,
Winapi.Messages, System.SysUtils, System.Variants, System.Classes,
Vcl.Graphics,
Vcl.Controls,
Vcl.Forms,
Vcl.Dialogs, Data.DB, Datasnap.DBClient,
Vcl.DBCtrls,
Vcl.Grids,
Vcl.DBGrids,
Vcl.StdCtrls,
Vcl.Mask,
Vcl.ExtCtrls;
type
TMainForm =
class( TForm )
GenderMappingData: TClientDataSet;
PersonData: TClientDataSet;
GenderMappingData_Gender: TIntegerField;
GenderMappingData_DisplayName: TStringField;
Person_Gender: TDBLookupComboBox;
GenderMapping: TDataSource;
PersonData_FirstName: TStringField;
PersonData_LastName: TStringField;
PersonData_Gender: TIntegerField;
Person: TDataSource;
PersonNavigator: TDBNavigator;
Person_FirstName: TDBEdit;
Person_LastName: TDBEdit;
PersonGrid: TDBGrid;
PersonData_GenderName: TStringField;
private
{ Private-Deklarationen }
public
procedure AfterConstruction;
override;
end;
var
MainForm: TMainForm;
implementation
{$R *.dfm}
{ TForm1 }
procedure TMainForm.AfterConstruction;
begin
inherited;
{GenderMappingData}
GenderMappingData.CreateDataSet;
GenderMappingData.LogChanges := False;
GenderMappingData.AppendRecord( [1, '
Männlich'] );
GenderMappingData.AppendRecord( [2, '
Weiblich'] );
GenderMappingData.AppendRecord( [3, '
Intersex'] );
GenderMappingData.AppendRecord( [4, '
Unbestimmt'] );
{PersonData}
PersonData.CreateDataSet;
PersonData.LogChanges := False;
end;
end.