n="justify"> begin
Form14.ShowModal;
end;
end.
unit pokaz;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, DB, IBCustomDataSet, IBQuery, StdCtrls, ComCtrls, Grids, DBGrids;
type
TForm10=class (TForm)
Edit1: TEdit;
Edit2: TEdit;
DataSource1: TDataSource;
DBGrid1: TDBGrid;
Label1: TLabel;
Label2: TLabel;
DateTimePicker1: TDateTimePicker;
Edit3: TEdit;
Button1: TButton;
Button2: TButton;
IBQuery1: TIBQuery;
IBQuery2: TIBQuery;
IBQuery3: TIBQuery;
procedure Button1Click (Sender: TObject);
procedure Button2Click (Sender: TObject);
private
{Private declarations}
public
{Public declarations}
end;
var
Form10: TForm10;
implementation
uses menu;
{$ R * .dfm}
procedure TForm10.Button1Click (Sender: TObject);
begin
IBQuery2.Params [0] .AsDateTime:=DateTimePicker1.DateTime;
IBQuery2.Params [1] .AsString:=Edit3.Text;
IBQuery2.Params [2] .AsString:=Edit2.Text;
IBQuery2.Open;
IBQuery2.Close;
IBQuery1.Close;
IBQuery1.Open;
Edit3.Text:= raquo ;;
end;
procedure TForm10.Button2Click (Sender: TObject);
begin
IBQuery3.Params [0] .AsString:=IBQuery1.Fields [0] .AsString;
IBQuery3.Open;
IBQuery3.Close;
IBQuery1.Close;
IBQuery1.Open;
end;
end.
unit pom;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, DB, IBCustomDataSet, IBQuery, StdCtrls, DBCtrls, Grids, DBGrids;
type
TForm8=class (TForm)
Label1: TLabel;
DataSource1: TDataSource;
DBGrid1: TDBGrid;
DBLookupComboBox1: TDBLookupComboBox;
Label2: TLabel;
Label3: TLabel;
Edit1: TEdit;
Edit2: TEdit;
Button1: TButton;
Button2: TButton;
Button3: TButton;
Button4: TButton;
Label4: TLabel;
IBQuery1: TIBQuery;
IBQuery2: TIBQuery;
IBQuery3: TIBQuery;
IBQuery4: TIBQuery;
procedure Button1Click (Sender: TObject);
procedure Button3Click (Sender: TObject);
procedure Button2Click (Sender: TObject);
procedure Button4Click (Sender: TObject);
procedure DBLookupComboBox1Click (Sender: TObject);
private
{Private declarations}
public
{Public declarations}
end;
var
Form8: TForm8;
implementation
uses menu, itazh, list_ust;
{$ R * .dfm}
procedure TForm8.Button1Click (Sender: TObject);
begin
IBQuery2.Params [0] .AsString:=Edit1.Text;
IBQuery2.Params [1] .AsString:=Edit2.Text;
IBQuery2.Params [2] .AsString:=form2.IBQuery1.Fields [0] .AsString;
IBQuery2.Open;
IBQuery2.Close;
IBQuery1.Close;