home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip: Shareware for Win 95
/
Chip-Shareware-Win95.bin
/
ostatni
/
delphi
/
ruzne
/
rzcomps.exe
/
DEMO
/
DATAFRM.PA_
/
DATAFRM.PA
Wrap
Text File
|
1996-10-18
|
2KB
|
86 lines
unit Datafrm;
interface
uses
SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
Forms, Dialogs, StdCtrls, DBTables, DBCtrls, Grids, DBGrids, RzLabel,
RzDBLbl, Mask, RzDBLnEd, RzSpnEdt, RzDBSpin, RzBtnEdt, RzDBBnEd,
RzDBLook, RzPrgres, RzDBProg, RzTrkBar, RzDBTrak, DB, RzStatus, RzDBStat,
ExtCtrls, RzPanel, RzBorder;
type
TFrmData1 = class(TForm)
BtnOK: TButton;
RzStatusBar1: TRzStatusBar;
RzDBStatusPane1: TRzDBStatusPane;
RzDBStatusPane2: TRzDBStatusPane;
RzDBStateStatus1: TRzDBStateStatus;
TblParts: TTable;
SrcParts: TDataSource;
DlgVendorLookup: TRzDBLookupDialog;
DBGrid1: TDBGrid;
DBNavigator1: TDBNavigator;
RzLabel1: TRzLabel;
QryVendors: TQuery;
RzLabel4: TRzLabel;
RzBorder1: TRzBorder;
RzLabel6: TRzLabel;
GroupBox1: TGroupBox;
RzLabel2: TRzLabel;
SpnOnHand: TRzDBSpinEdit;
RzLabel3: TRzLabel;
SpnOnOrder: TRzDBSpinEdit;
RzPanel1: TRzPanel;
RzLabel5: TRzLabel;
EdtVendorNo: TRzDBButtonEdit;
RzPanel2: TRzPanel;
PbrPrice: TRzDBProgressBar;
TblPartsPartNo: TFloatField;
TblPartsVendorNo: TFloatField;
TblPartsDescription: TStringField;
TblPartsOnHand: TFloatField;
TblPartsOnOrder: TFloatField;
TblPartsCost: TCurrencyField;
TblPartsListPrice: TCurrencyField;
RzBorder2: TRzBorder;
procedure EdtVendorNoButtonClick(Sender: TObject);
procedure FormClose(Sender: TObject; var Action: TCloseAction);
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
FrmData1: TFrmData1;
implementation
{$R *.DFM}
procedure TFrmData1.EdtVendorNoButtonClick(Sender: TObject);
begin
if DlgVendorLookup.Execute then
begin
if not ( TblParts.State in dsEditModes ) then
TblParts.Edit;
EdtVendorNo.Text := QryVendors.FieldByName( 'VendorNo' ).AsString;
end;
end;
procedure TFrmData1.FormClose(Sender: TObject; var Action: TCloseAction);
begin
Action := caFree;
end;
procedure TFrmData1.FormCreate(Sender: TObject);
begin
PbrPrice.Hint := 'Can also compare a single'#13 +
'field value against a'#13 +
'constant base value.';
end;
end.