unit Ufichearticle;

interface

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

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

var
  FficheArticle: TFficheArticle;

implementation
{$R *.dfm}
uses udata,uprinc;


procedure TFficheArticle.btokClick(Sender: TObject);
begin
data.Tarticle.Filtered:=false;
data.Tarticle.IndexName:='iart_pk';
if (data.Tanalyse.State =dsedit) or (data.Tarticle.State = dsinsert) then data.Tarticle.Post;
close;


end;

procedure TFficheArticle.btannulerClick(Sender: TObject);
begin
close;
end;

end.
