-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUAgenda_MesHora.~dfm
531 lines (531 loc) · 13.4 KB
/
UAgenda_MesHora.~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
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
object FAgenda_MesHora: TFAgenda_MesHora
Left = 290
Top = 115
Width = 828
Height = 459
BorderIcons = [biSystemMenu, biMaximize]
Caption = 'Agenda...'
Color = clBtnFace
Constraints.MinHeight = 400
Constraints.MinWidth = 670
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'MS Sans Serif'
Font.Style = []
KeyPreview = True
OldCreateOrder = False
Position = poDesktopCenter
OnCreate = FormCreate
OnHide = FormHide
OnKeyDown = FormKeyDown
OnResize = FormResize
OnShow = FormShow
PixelsPerInch = 96
TextHeight = 13
object Panel1: TPanel
Left = 8
Top = 48
Width = 473
Height = 169
BevelOuter = bvNone
Caption = 'Panel1'
TabOrder = 0
object Panel4: TPanel
Left = 0
Top = 0
Width = 473
Height = 41
Align = alTop
Caption = ' Manh'#227
Color = clYellow
ParentBackground = False
TabOrder = 0
end
object ThemeDBGrid1: TThemeDBGrid
Left = 0
Top = 41
Width = 473
Height = 128
Align = alClient
DataSource = Manha_Source
DefaultDrawing = False
Options = [dgTitles, dgColumnResize, dgColLines, dgRowLines, dgTabs, dgRowSelect, dgConfirmDelete, dgCancelOnExit]
TabOrder = 1
TitleFont.Charset = DEFAULT_CHARSET
TitleFont.Color = clWindowText
TitleFont.Height = -11
TitleFont.Name = 'MS Sans Serif'
TitleFont.Style = []
OnDrawColumnCell = ThemeDBGrid1DrawColumnCell
end
end
object Panel3: TPanel
Left = 320
Top = 232
Width = 281
Height = 113
BevelOuter = bvNone
Caption = 'Panel3'
TabOrder = 1
Visible = False
object Panel6: TPanel
Left = 0
Top = 0
Width = 281
Height = 41
Align = alTop
Caption = 'Noite'
Color = 4194368
Font.Charset = DEFAULT_CHARSET
Font.Color = clWhite
Font.Height = -11
Font.Name = 'MS Sans Serif'
Font.Style = []
ParentBackground = False
ParentFont = False
TabOrder = 0
end
object ThemeDBGrid3: TThemeDBGrid
Left = 0
Top = 41
Width = 281
Height = 72
Align = alClient
DataSource = Noite_Source
DefaultDrawing = False
Font.Charset = DEFAULT_CHARSET
Font.Color = clBlack
Font.Height = -11
Font.Name = 'MS Sans Serif'
Font.Style = []
Options = [dgTitles, dgColumnResize, dgColLines, dgRowLines, dgTabs, dgRowSelect, dgConfirmDelete, dgCancelOnExit]
ParentFont = False
TabOrder = 1
TitleFont.Charset = DEFAULT_CHARSET
TitleFont.Color = clWindowText
TitleFont.Height = -11
TitleFont.Name = 'MS Sans Serif'
TitleFont.Style = []
OnDrawColumnCell = ThemeDBGrid3DrawColumnCell
end
end
object Panel2: TPanel
Left = 32
Top = 232
Width = 281
Height = 137
BevelOuter = bvNone
Caption = 'Panel2'
TabOrder = 2
object Panel5: TPanel
Left = 0
Top = 0
Width = 281
Height = 41
Align = alTop
Caption = 'Tarde'
Color = 8421631
ParentBackground = False
TabOrder = 0
end
object ThemeDBGrid2: TThemeDBGrid
Left = 0
Top = 41
Width = 281
Height = 96
Align = alClient
DataSource = Tarde_Source
DefaultDrawing = False
Options = [dgTitles, dgColumnResize, dgColLines, dgRowLines, dgTabs, dgRowSelect, dgConfirmDelete, dgCancelOnExit]
TabOrder = 1
TitleFont.Charset = DEFAULT_CHARSET
TitleFont.Color = clWindowText
TitleFont.Height = -11
TitleFont.Name = 'MS Sans Serif'
TitleFont.Style = []
OnDrawColumnCell = ThemeDBGrid2DrawColumnCell
end
end
object Panel7: TPanel
Left = 0
Top = 0
Width = 812
Height = 57
Align = alTop
Color = clSilver
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -27
Font.Name = 'Courier New'
Font.Style = []
ParentBackground = False
ParentFont = False
TabOrder = 3
object SpeedButton1: TSpeedButton
Left = 656
Top = 8
Width = 49
Height = 41
Cursor = crHandPoint
Caption = 'R'
Flat = True
Font.Charset = DEFAULT_CHARSET
Font.Color = 62708
Font.Height = -40
Font.Name = 'Wingdings'
Font.Style = []
Layout = blGlyphBottom
ParentFont = False
OnClick = SpeedButton1Click
end
object SpeedButton2: TSpeedButton
Left = 712
Top = 8
Width = 41
Height = 41
Cursor = crHandPoint
Caption = 'I'
Flat = True
Font.Charset = DEFAULT_CHARSET
Font.Color = 4703738
Font.Height = -36
Font.Name = 'Webdings'
Font.Style = []
Layout = blGlyphBottom
ParentFont = False
OnClick = SpeedButton2Click
end
object SpeedButton3: TSpeedButton
Left = 760
Top = 8
Width = 41
Height = 41
Cursor = crHandPoint
Caption = 'Z'
Flat = True
Font.Charset = DEFAULT_CHARSET
Font.Color = 6908265
Font.Height = -36
Font.Name = 'Wingdings'
Font.Style = []
Layout = blGlyphBottom
ParentFont = False
OnClick = SpeedButton3Click
end
object SpeedButton4: TSpeedButton
Left = 8
Top = 8
Width = 41
Height = 41
Cursor = crHandPoint
Caption = #193
Flat = True
Font.Charset = DEFAULT_CHARSET
Font.Color = clBlack
Font.Height = -36
Font.Name = 'Wingdings'
Font.Style = []
Layout = blGlyphBottom
ParentFont = False
OnClick = SpeedButton4Click
end
object SpeedButton5: TSpeedButton
Left = 56
Top = 8
Width = 41
Height = 41
Cursor = crHandPoint
Caption = #339
Flat = True
Font.Charset = DEFAULT_CHARSET
Font.Color = clBlack
Font.Height = -36
Font.Name = 'Webdings'
Font.Style = []
Layout = blGlyphBottom
ParentFont = False
OnClick = Button2Click
end
object SpeedButton6: TSpeedButton
Left = 104
Top = 8
Width = 41
Height = 41
Cursor = crHandPoint
Caption = #254
Flat = True
Font.Charset = DEFAULT_CHARSET
Font.Color = clBlack
Font.Height = -36
Font.Name = 'Webdings'
Font.Style = []
Layout = blGlyphBottom
ParentFont = False
OnClick = Button1Click
end
end
object TB_Agenda: TADOQuery
Connection = Banco.ADOConnection1
CursorType = ctStatic
Parameters = <>
SQL.Strings = (
'Select '
'A.Data,'
'A.Efetuado,'
'A.agTipo,'
'A.Contato_Forma,'
'A.Assunto, '
'A.id_cliente,'
'B.nome_razao, '
'B.nome, B.UF, '
'B.cpf '
'from tb_Agenda A'
'left join Cliente_cadastro B on'
'A.id_cliente = b.codigo')
Left = 560
Top = 56
object TB_AgendaData: TDateTimeField
FieldName = 'Data'
end
object TB_AgendaEfetuado: TBooleanField
FieldName = 'Efetuado'
end
object TB_AgendaContato_Forma: TIntegerField
FieldName = 'Contato_Forma'
end
object TB_AgendaAssunto: TWideStringField
FieldName = 'Assunto'
Size = 255
end
object TB_Agendanome_razao: TWideStringField
FieldName = 'nome_razao'
Size = 150
end
object TB_Agendanome: TWideStringField
FieldName = 'nome'
Size = 150
end
object TB_AgendaUF: TWideStringField
FieldName = 'UF'
Size = 2
end
object TB_Agendacpf: TWideStringField
FieldName = 'cpf'
Size = 18
end
object TB_Agendaid_cliente: TIntegerField
FieldName = 'id_cliente'
end
object TB_AgendaagTipo: TIntegerField
FieldName = 'agTipo'
end
end
object TB_Manha: TClientDataSet
Aggregates = <>
Params = <>
AfterOpen = TB_ManhaAfterOpen
Left = 528
Top = 88
object TB_ManhaCodCliente: TIntegerField
DisplayLabel = 'C'#243'd Cliente'
FieldKind = fkCalculated
FieldName = 'CodCliente'
Calculated = True
end
object TB_ManhaRazao: TWideStringField
DisplayLabel = 'Raz'#227'o Social'
FieldName = 'Razao'
Size = 30
end
object TB_ManhaCPF: TWideStringField
DisplayLabel = 'CPF / CNPJ'
FieldName = 'CPF'
Size = 30
end
object TB_ManhaEfetuado: TBooleanField
FieldName = 'Efetuado'
DisplayValues = 'Sim;N'#227'o'
end
object TB_ManhaHora: TTimeField
FieldName = 'Hora'
end
object TB_ManhaAssunto: TWideStringField
FieldName = 'Assunto'
Size = 255
end
object TB_ManhaTipo_Virtual: TStringField
DisplayLabel = 'Tipo'
FieldKind = fkLookup
FieldName = 'Tipo_Virtual'
LookupDataSet = Banco.TB_Agenda_Tipo
LookupKeyFields = 'Codigo'
LookupResultField = 'Descricao'
KeyFields = 'Tipo'
Size = 255
Lookup = True
end
object TB_ManhaContato_Virtual: TStringField
DisplayLabel = 'Contato'
FieldKind = fkLookup
FieldName = 'Contato_Virtual'
LookupDataSet = Banco.TB_Agenda_Contato
LookupKeyFields = 'Codigo'
LookupResultField = 'Descricao'
KeyFields = 'Contato'
Size = 255
Lookup = True
end
object TB_ManhaTipo: TIntegerField
Tag = 1
FieldName = 'Tipo'
end
object TB_ManhaContato: TIntegerField
Tag = 1
FieldName = 'Contato'
end
end
object TB_Tarde: TClientDataSet
Aggregates = <>
Params = <>
AfterOpen = TB_TardeAfterOpen
Left = 560
Top = 88
object TB_TardeCodCliente: TIntegerField
DisplayLabel = 'C'#243'd Cliente'
FieldKind = fkCalculated
FieldName = 'CodCliente'
Calculated = True
end
object TB_TardeRazao: TWideStringField
DisplayLabel = 'Raz'#227'o Social'
FieldName = 'Razao'
Size = 30
end
object TB_TardeCPF: TWideStringField
DisplayLabel = 'CPF / CNPJ'
FieldName = 'CPF'
Size = 30
end
object TB_TardeEfetuado: TBooleanField
FieldName = 'Efetuado'
DisplayValues = 'Sim;N'#227'o'
end
object TB_TardeHora: TTimeField
FieldName = 'Hora'
end
object TB_TardeAssunto: TWideStringField
FieldName = 'Assunto'
Size = 255
end
object TB_TardeTipo_Virtual: TStringField
DisplayLabel = 'Tipo'
FieldKind = fkLookup
FieldName = 'Tipo_Virtual'
LookupDataSet = Banco.TB_Agenda_Tipo
LookupKeyFields = 'Codigo'
LookupResultField = 'Descricao'
KeyFields = 'Tipo'
Size = 255
Lookup = True
end
object TB_TardeContato_Virtual: TStringField
DisplayLabel = 'Contato'
FieldKind = fkLookup
FieldName = 'Contato_Virtual'
LookupDataSet = Banco.TB_Agenda_Contato
LookupKeyFields = 'Codigo'
LookupResultField = 'Descricao'
KeyFields = 'Contato'
Size = 255
Lookup = True
end
object TB_TardeTipo: TIntegerField
Tag = 1
FieldName = 'Tipo'
end
object TB_TardeContato: TIntegerField
Tag = 1
FieldName = 'Contato'
end
end
object TB_Noite: TClientDataSet
Aggregates = <>
Params = <>
AfterOpen = TB_NoiteAfterOpen
Left = 592
Top = 88
object TB_NoiteCodCliente: TIntegerField
DisplayLabel = 'C'#243'd Cliente'
FieldKind = fkCalculated
FieldName = 'CodCliente'
Calculated = True
end
object TB_NoiteRazao: TWideStringField
DisplayLabel = 'Raz'#227'o Social'
FieldName = 'Razao'
Size = 30
end
object TB_NoiteCPF: TWideStringField
DisplayLabel = 'CPF / CNPJ'
FieldName = 'CPF'
Size = 30
end
object TB_NoiteEfetuado: TBooleanField
FieldName = 'Efetuado'
DisplayValues = 'Sim;N'#227'o'
end
object TB_NoiteHora: TTimeField
FieldName = 'Hora'
end
object TB_NoiteAssunto: TWideStringField
FieldName = 'Assunto'
Size = 255
end
object TB_NoiteTipo_Virtual: TStringField
DisplayLabel = 'Tipo'
FieldKind = fkLookup
FieldName = 'Tipo_Virtual'
LookupDataSet = Banco.TB_Agenda_Tipo
LookupKeyFields = 'Codigo'
LookupResultField = 'Descricao'
KeyFields = 'Tipo'
Size = 255
Lookup = True
end
object TB_NoiteContato_Virtual: TStringField
DisplayLabel = 'Contato'
FieldKind = fkLookup
FieldName = 'Contato_Virtual'
LookupDataSet = Banco.TB_Agenda_Contato
LookupKeyFields = 'Codigo'
LookupResultField = 'Descricao'
KeyFields = 'Contato'
Size = 255
Lookup = True
end
object TB_NoiteTipo: TIntegerField
Tag = 1
FieldName = 'Tipo'
end
object TB_NoiteContato: TIntegerField
Tag = 1
FieldName = 'Contato'
end
end
object Manha_Source: TDataSource
DataSet = TB_Manha
Left = 528
Top = 120
end
object Tarde_Source: TDataSource
DataSet = TB_Tarde
Left = 560
Top = 120
end
object Noite_Source: TDataSource
DataSet = TB_Noite
Left = 592
Top = 120
end
end