-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUVeiculo.dfm
367 lines (367 loc) · 8.66 KB
/
UVeiculo.dfm
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
inherited frmVeiculo: TfrmVeiculo
Caption = 'Cadastro de Ve'#237'culos'
ClientHeight = 427
ExplicitWidth = 638
ExplicitHeight = 466
PixelsPerInch = 96
TextHeight = 13
inherited Panel1: TPanel
Height = 427
inherited Panel2: TPanel
Left = 12
Top = 11
Height = 402
ExplicitLeft = 12
ExplicitTop = 11
ExplicitHeight = 402
inherited Panel3: TPanel
inherited Label1: TLabel
Width = 208
Caption = 'Formul'#225'rio usado para cadastro de ve'#237'culos'
ExplicitWidth = 208
end
end
inherited GroupBox1: TGroupBox
Left = 71
Top = 335
ExplicitLeft = 71
ExplicitTop = 335
end
object GroupBox2: TGroupBox
Left = 9
Top = 91
Width = 558
Height = 238
Caption = 'Dados Cadastrais'
TabOrder = 2
object Label5: TLabel
Left = 9
Top = 17
Width = 33
Height = 13
Caption = 'C'#243'digo'
FocusControl = DBEdit1
end
object Label6: TLabel
Left = 137
Top = 17
Width = 94
Height = 13
Caption = 'Data do Cadastro *'
end
object lblNome: TLabel
Left = 9
Top = 57
Width = 106
Height = 13
Caption = 'Descri'#231#227'o do Ve'#237'culo *'
FocusControl = DBEdit2
end
object lblCPF: TLabel
Left = 9
Top = 98
Width = 29
Height = 13
Caption = 'Marca'
FocusControl = DBEdit4
end
object lblRG: TLabel
Left = 154
Top = 98
Width = 34
Height = 13
Caption = 'Modelo'
FocusControl = DBEdit5
end
object Label17: TLabel
Left = 9
Top = 137
Width = 31
Height = 13
Caption = 'Chassi'
FocusControl = DBEdit13
end
object Label20: TLabel
Left = 9
Top = 177
Width = 19
Height = 13
Caption = 'Ano'
FocusControl = DBEdit15
end
object Label21: TLabel
Left = 86
Top = 177
Width = 17
Height = 13
Caption = 'Cor'
FocusControl = DBEdit16
end
object Label26: TLabel
Left = 275
Top = 137
Width = 43
Height = 13
Caption = 'Renavan'
FocusControl = DBEdit19
end
object Label7: TLabel
Left = 339
Top = 98
Width = 25
Height = 13
Caption = 'Placa'
FocusControl = DBEdit3
end
object Label9: TLabel
Left = 257
Top = 177
Width = 59
Height = 13
Caption = 'Prc. Compra'
FocusControl = DBEdit6
end
object Label10: TLabel
Left = 360
Top = 177
Width = 52
Height = 13
Caption = 'Prc. Venda'
FocusControl = DBEdit7
end
object Label11: TLabel
Left = 460
Top = 177
Width = 39
Height = 13
Caption = 'Estoque'
FocusControl = DBEdit8
end
object DBEdit1: TDBEdit
Left = 9
Top = 33
Width = 124
Height = 21
Color = 16744448
DataField = 'COD_VEICULO'
DataSource = dsTab
Font.Charset = DEFAULT_CHARSET
Font.Color = clWhite
Font.Height = -11
Font.Name = 'Tahoma'
Font.Style = [fsBold]
ParentFont = False
ReadOnly = True
TabOrder = 0
end
object DBDateEdit1: TDBDateEdit
Left = 137
Top = 33
Width = 125
Height = 21
Margins.Left = 4
Margins.Top = 1
DataField = 'DAT_CAD'
DataSource = dsTab
NumGlyphs = 2
TabOrder = 1
end
object DBEdit2: TDBEdit
Left = 9
Top = 73
Width = 536
Height = 21
DataField = 'DESCRICAO'
DataSource = dsTab
TabOrder = 2
end
object DBEdit4: TDBEdit
Left = 9
Top = 114
Width = 139
Height = 21
DataField = 'MARCA'
DataSource = dsTab
TabOrder = 3
end
object DBEdit5: TDBEdit
Left = 154
Top = 114
Width = 181
Height = 21
DataField = 'MODELO'
DataSource = dsTab
TabOrder = 4
end
object DBEdit13: TDBEdit
Left = 9
Top = 153
Width = 262
Height = 21
DataField = 'CHASSI'
DataSource = dsTab
TabOrder = 5
end
object DBEdit15: TDBEdit
Left = 9
Top = 193
Width = 71
Height = 21
DataField = 'ANO'
DataSource = dsTab
TabOrder = 6
end
object DBEdit16: TDBEdit
Left = 86
Top = 193
Width = 165
Height = 21
Color = clWhite
DataField = 'COR'
DataSource = dsTab
Font.Charset = DEFAULT_CHARSET
Font.Color = clBlack
Font.Height = -11
Font.Name = 'Tahoma'
Font.Style = []
ParentFont = False
TabOrder = 7
end
object DBEdit19: TDBEdit
Left = 275
Top = 153
Width = 270
Height = 21
DataField = 'RENAVAN'
DataSource = dsTab
TabOrder = 8
end
object DBEdit3: TDBEdit
Left = 341
Top = 117
Width = 181
Height = 21
DataField = 'PLACA'
DataSource = dsTab
TabOrder = 9
end
object DBEdit6: TDBEdit
Left = 257
Top = 193
Width = 97
Height = 21
DataField = 'PRC_COMPRA'
DataSource = dsTab
TabOrder = 10
end
object DBEdit7: TDBEdit
Left = 360
Top = 193
Width = 97
Height = 21
DataField = 'PRC_VENDA'
DataSource = dsTab
TabOrder = 11
end
object DBEdit8: TDBEdit
Left = 460
Top = 193
Width = 85
Height = 21
Color = 16744448
DataField = 'UNID_ESTOQUE'
DataSource = dsTab
Font.Charset = DEFAULT_CHARSET
Font.Color = clWhite
Font.Height = -11
Font.Name = 'Tahoma'
Font.Style = [fsBold]
ParentFont = False
ReadOnly = True
TabOrder = 12
end
object DBRadioGroup1: TDBRadioGroup
Left = 268
Top = 17
Width = 185
Height = 43
Caption = 'Tipo de Ve'#237'culo'
Columns = 2
DataField = 'TIPO'
DataSource = dsTab
Items.Strings = (
'Motocicleta'
'Autom'#243'vel')
ParentBackground = True
TabOrder = 13
end
end
end
end
inherited cdsTab: TClientDataSet
object cdsTabCOD_VEICULO: TIntegerField
FieldName = 'COD_VEICULO'
Required = True
end
object cdsTabDAT_CAD: TDateField
FieldName = 'DAT_CAD'
end
object cdsTabDESCRICAO: TStringField
FieldName = 'DESCRICAO'
Size = 100
end
object cdsTabTIPO: TStringField
FieldName = 'TIPO'
Size = 1
end
object cdsTabPLACA: TStringField
FieldName = 'PLACA'
Size = 50
end
object cdsTabMARCA: TStringField
FieldName = 'MARCA'
Size = 100
end
object cdsTabMODELO: TStringField
FieldName = 'MODELO'
Size = 100
end
object cdsTabANO: TStringField
FieldName = 'ANO'
Size = 10
end
object cdsTabCHASSI: TStringField
FieldName = 'CHASSI'
Size = 100
end
object cdsTabRENAVAN: TStringField
FieldName = 'RENAVAN'
Size = 100
end
object cdsTabCOR: TStringField
FieldName = 'COR'
Size = 100
end
object cdsTabPRC_VENDA: TSingleField
FieldName = 'PRC_VENDA'
currency = True
end
object cdsTabPRC_COMPRA: TSingleField
FieldName = 'PRC_COMPRA'
currency = True
end
object cdsTabUNID_ESTOQUE: TSingleField
FieldName = 'UNID_ESTOQUE'
end
end
inherited sqlTab: TSQLQuery
Params = <
item
DataType = ftInteger
Name = 'COD_VEICULO'
ParamType = ptInput
end>
SQL.Strings = (
'SELECT * FROM VEICULOS WHERE COD_VEICULO = :COD_VEICULO')
end
end