unit Unit1;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls,
Grids,Unit2,Unit3,Unit4,Unit5;
type
{ TForm1 }
TForm1 = class(TForm)
botonborrarcliente: TButton;
botonagregarcliente: TButton;
Button1: TButton;
Button2: TButton;
botonborrarproductomain: TButton;
botonagregarproductomain: TButton;
botonfacturar: TButton;
subtotalbarra: TEdit;
ivabarra: TEdit;
totalbarra: TEdit;
GroupBox3: TGroupBox;
Label6: TLabel;
Label7: TLabel;
Label8: TLabel;
StringGrid1: TStringGrid;
usuariocajerobarra: TEdit;
GroupBox2: TGroupBox;
Label5: TLabel;
nombrerazonsocialbarra: TEdit;
apellidobarra: TEdit;
cedularifbarra: TEdit;
direccionbarra: TEdit;
GroupBox1: TGroupBox;
Label1: TLabel;
Label2: TLabel;
Label3: TLabel;
Label4: TLabel;
procedure botonagregarclienteClick(Sender: TObject);
procedure botonagregarproductomainClick(Sender: TObject);
procedure botonborrarclienteClick(Sender: TObject);
procedure botonfacturarClick(Sender: TObject);
procedure Button1Click(Sender: TObject);
procedure Button2Click(Sender: TObject);
private
public
nombreorazonsocial_ing,apellido_ing,cedulaorif_ing,direccion_ing,
usuariocajero_ing:String;
end;
var
Form1: TForm1;
implementation
{$R *.lfm}
{ TForm1 }
procedure TForm1.botonagregarproductomainClick(Sender: TObject);
begin
form2.showmodal;
end;
procedure TForm1.botonborrarclienteClick(Sender: TObject);
begin
nombreorazonsocial_ing:=#0;
nombrerazonsocialbarra.ReadOnly:=False;
nombrerazonsocialbarra.Text:='';
apellido_ing:=#0;
apellidobarra.ReadOnly:=False;
apellidobarra.Text:='';
cedulaorif_ing:=#0;
cedularifbarra.ReadOnly:=False;
cedularifbarra.Text:='';
direccion_ing:=#0;
direccionbarra.ReadOnly:=False;
direccionbarra.Text:='';
end;
procedure TForm1.botonagregarclienteClick(Sender: TObject);
begin
nombreorazonsocial_ing:=nombrerazonsocialbarra.text;
nombrerazonsocialbarra.ReadOnly:=True;
apellido_ing:=apellidobarra.Text;
apellidobarra.ReadOnly:=True;
cedulaorif_ing:=cedularifbarra.Text;
cedularifbarra.ReadOnly:=True;
direccion_ing:=direccionbarra.Text;
direccionbarra.readonly:=True;
end;
procedure TForm1.botonfacturarClick(Sender: TObject);
begin
form4.showmodal;
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
form3.showmodal;
end;
procedure TForm1.Button2Click(Sender: TObject);
begin
usuariocajero_ing:=#0;
usuariocajerobarra.text:='';
end;
end.