-
Notifications
You must be signed in to change notification settings - Fork 1
/
ufrmCadProduto.pas
74 lines (65 loc) · 2.31 KB
/
ufrmCadProduto.pas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
unit ufrmCadProduto;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, ufrmCadBase, cxGraphics, cxControls,
cxLookAndFeels, cxLookAndFeelPainters, dxRibbonCustomizationForm,
dxRibbonSkins, dxBarBuiltInMenu, cxStyles, cxCustomData, cxFilter, cxData,
cxDataStorage, cxEdit, cxNavigator, dxDateRanges, Data.DB, cxDBData,
cxButtonEdit, cxDropDownEdit, cxTextEdit, FireDAC.Stan.Intf,
FireDAC.Stan.Option, FireDAC.Stan.Param, FireDAC.Stan.Error, FireDAC.DatS,
FireDAC.Phys.Intf, FireDAC.DApt.Intf, FireDAC.Stan.Async, FireDAC.DApt,
cxContainer, cxCurrencyEdit, cxDBEdit, cxMaskEdit, cxSpinEdit, Vcl.StdCtrls,
FireDAC.Comp.DataSet, FireDAC.Comp.Client, System.ImageList, Vcl.ImgList,
cxImageList, dxSkinsForm, dxBar, cxBarEditItem, cxClasses, cxGridLevel,
cxGridCustomView, cxGridCustomTableView, cxGridTableView, cxGridDBTableView,
cxGrid, cxPC, dxRibbon, cxLookupEdit, cxDBLookupEdit, cxDBLookupComboBox,
cxCheckBox, dxSkinsCore, dxSkinProject1;
type
TfrmCadProduto = class(TfrmCadBase)
dtsUnidadeMedida: TDataSource;
FDQueryUM: TFDQuery;
FDQueryUMID: TFDAutoIncField;
FDQueryUMNOME: TStringField;
FDQueryUMSIGLA: TStringField;
FDQueryID: TFDAutoIncField;
FDQueryNOME: TStringField;
FDQueryIDUNIDADEDEMEDIDA: TIntegerField;
FDQueryVALORDOPRODUTO: TCurrencyField;
FDQueryQUANTIDADE: TFMTBCDField;
FDQuerySTATUS: TSmallintField;
Label1: TLabel;
cxDBSpinEdit1: TcxDBSpinEdit;
Label2: TLabel;
cxDBTextEdit1: TcxDBTextEdit;
Label3: TLabel;
cxDBCurrencyEdit1: TcxDBCurrencyEdit;
cxDBLookupComboBox1: TcxDBLookupComboBox;
Label5: TLabel;
cxDBCheckBox1: TcxDBCheckBox;
Label6: TLabel;
FDQueryIDUM: TIntegerField;
FDQueryNOMEUM: TStringField;
FDQuerySIGLAUM: TStringField;
cxGridDBTableView1ID: TcxGridDBColumn;
cxGridDBTableView1NOME: TcxGridDBColumn;
cxGridDBTableView1VALORDOPRODUTO: TcxGridDBColumn;
cxGridDBTableView1NOMEUM: TcxGridDBColumn;
private
{ Private declarations }
public
procedure MontaQry; override;
end;
var
frmCadProduto: TfrmCadProduto;
implementation
{$R *.dfm}
{ TfrmCadBase1 }
procedure TfrmCadProduto.MontaQry;
begin
inherited;
FDQuery.close;
FDQuery.Open;
FDQueryUM.Open;
end;
end.