y"> end.
unit prov;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, DB, IBCustomDataSet, IBQuery, StdCtrls, ComCtrls, Grids, DBGrids,
DBCtrls;
type
TForm11=class (TForm)
Edit1: TEdit;
Edit2: TEdit;
DataSource1: TDataSource;
DBGrid1: TDBGrid;
Label1: TLabel;
Label2: TLabel;
Edit3: TEdit;
DateTimePicker1: TDateTimePicker;
Button1: TButton;
Button2: TButton;
IBQuery1: TIBQuery;
IBQuery2: TIBQuery;
IBQuery3: TIBQuery;
Label3: TLabel;
DBLookupComboBox1: TDBLookupComboBox;
procedure Button1Click (Sender: TObject);
procedure Button2Click (Sender: TObject);
private
{Private declarations}
public
{Public declarations}
end;
var
Form11: TForm11;
implementation
uses menu, sotr;
{$ R * .dfm}
procedure TForm11.Button1Click (Sender: TObject);
begin
IBQuery2.Params [0] .AsString:=DateToStr (DateTimePicker1.DateTime);
IBQuery2.Params [1] .AsString:=Edit3.Text;
IBQuery2.Params [2] .AsString:=Edit2.Text;
IBQuery2.Params [3] .AsString:=form6.IBQuery1.Fields [0] .AsString;
IBQuery2.Open;
IBQuery2.Close;
IBQuery1.Close;
IBQuery1.Open;
Edit3.Text:= raquo ;;
end;
procedure TForm11.Button2Click (Sender: TObject);
begin
IBQuery3.Params [0] .AsString:=IBQuery1.Fields [0] .AsString;
IBQuery3.Open;
IBQuery3.Close;
IBQuery1.Close;
IBQuery1.Open;
end;
end.
unit sotr;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Grids, DBGrids, DB, IBCustomDataSet, IBQuery;
type
TForm6=class (TForm)
DataSource1: TDataSource;
DBGrid1: TDBGrid;
Label1: TLabel;
Label2: TLabel;
Label3: TLabel;
Label4: TLabel;
Edit1: TEdit;
Edit2: TEdit;
Edit3: TEdit;
Edit4: TEdit;
Button1: TButton;
Button2: TButton;
Button3: TButton;
IBQuery1: TIBQuery;
IBQuery2: TIBQuery;
IBQuery3: TIBQuery;
IBQuery4: TIBQuery;
procedure Button1Click (Sender: TObject);
procedure Button2Click (Sender: TObject);
procedure Button3Click (Sender: TObject);
private
{Private declarations}
public
{Public declarations}
end;
var
Form6: TForm6;
implementation
uses menu;
{$ R * .dfm}
procedure TForm6.Button1Click (Sender: TObject);
begin
IBQuery2.Params [0] .AsString:=Edit2.Text + + Edit3.Text + + Edit4.Text;
IBQuery2.Params [1] .AsString:=Edit1.Text;
IBQuery2.Open;
IBQuery2.Close;
IBQuery1.Close;
IBQuery1.Open;
Edit1.Text:= raquo ;;
Edit2.Text:= raquo ;; <...