unit Ufichefou;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, Mask, DBCtrls,db;

type
  TFfichefou = class(TForm)
    Label1: TLabel;
    DBEdit1: TDBEdit;
    Label2: TLabel;
    DBEdit2: TDBEdit;
    Label3: TLabel;
    DBEdit3: TDBEdit;
    Label4: TLabel;
    DBEdit4: TDBEdit;
    Label5: TLabel;
    DBEdit5: TDBEdit;
    btok: TButton;
    btannuler: TButton;
    Label6: TLabel;
    DBLookupComboBox1: TDBLookupComboBox;
    Label7: TLabel;
    DBLookupComboBox2: TDBLookupComboBox;
    procedure btokClick(Sender: TObject);
    procedure btannulerClick(Sender: TObject);
  private
    { Déclarations privées }
  public
    { Déclarations publiques }
  end;

var
  Ffichefou: TFfichefou;

implementation

{$R *.dfm}

uses udata;
procedure TFfichefou.btokClick(Sender: TObject);
begin
If (Data.Tfournisseur.State = DsEdit) or (Data.Tfournisseur.State = DsInsert)
 then Data.Tfournisseur.Post;
close;

end;

procedure TFfichefou.btannulerClick(Sender: TObject);
begin
data.Tfournisseur.Cancel;
end;

end.
