-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathURCrec.dfm
396 lines (394 loc) · 9.76 KB
/
URCrec.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
inherited frmRCrec: TfrmRCrec
Caption = 'frmRCrec'
ExplicitWidth = 798
ExplicitHeight = 556
PixelsPerInch = 96
TextHeight = 13
inherited RLReport1: TRLReport
Margins.LeftMargin = 5.000000000000000000
Margins.TopMargin = 5.000000000000000000
Margins.RightMargin = 5.000000000000000000
Margins.BottomMargin = 5.000000000000000000
inherited RLBand1: TRLBand
Left = 19
Top = 19
Width = 756
Height = 103
Font.Height = -11
Font.Style = [fsBold]
ParentFont = False
ExplicitLeft = 19
ExplicitTop = 19
ExplicitWidth = 756
ExplicitHeight = 103
object RLLabel9: TRLLabel [0]
Left = 4
Top = 93
Width = 753
Height = 14
Caption =
'================================================================' +
'============================================================='
end
inherited RLLabel1: TRLLabel
Left = 190
Top = 9
Width = 354
Caption = 'Relat'#243'rio de Contas a Receber'
ExplicitLeft = 190
ExplicitTop = 9
ExplicitWidth = 354
end
inherited RLSystemInfo2: TRLSystemInfo
Left = 509
ExplicitLeft = 509
end
object RLLabel3: TRLLabel
Left = 4
Top = 82
Width = 42
Height = 14
Caption = 'C'#243'digo'
end
object RLLabel8: TRLLabel
Left = 4
Top = 69
Width = 753
Height = 14
Caption =
'================================================================' +
'============================================================='
end
object RLLabel4: TRLLabel
Left = 69
Top = 82
Width = 42
Height = 14
Caption = 'Cliente'
end
object RLLabel5: TRLLabel
Left = 257
Top = 82
Width = 70
Height = 14
Caption = 'Vencimento'
end
object RLLabel6: TRLLabel
Left = 334
Top = 82
Width = 82
Height = 14
Caption = 'Valor Principal'
end
object RLLabel7: TRLLabel
Left = 681
Top = 82
Width = 70
Height = 14
Caption = 'Tipo de Doc.'
end
object RLLabel10: TRLLabel
Left = 429
Top = 82
Width = 35
Height = 14
Caption = 'Juros'
end
object RLLabel12: TRLLabel
Left = 477
Top = 82
Width = 55
Height = 14
Caption = 'Desconto'
end
object RLLabel13: TRLLabel
Left = 540
Top = 82
Width = 62
Height = 14
Caption = 'Valor Pago'
end
object RLLabel14: TRLLabel
Left = 607
Top = 82
Width = 59
Height = 14
Caption = 'Saldo Dev.'
Font.Charset = DEFAULT_CHARSET
Font.Color = clBlack
Font.Height = -11
Font.Name = 'Arial'
Font.Style = [fsBold]
ParentFont = False
end
end
inherited RLBand2: TRLBand
Left = 19
Top = 185
Width = 756
ExplicitLeft = 19
ExplicitTop = 185
ExplicitWidth = 756
inherited RLLabel2: TRLLabel
Width = 756
ExplicitWidth = 756
end
end
object RLBand4: TRLBand
Left = 19
Top = 122
Width = 756
Height = 17
Font.Charset = DEFAULT_CHARSET
Font.Color = clBlack
Font.Height = -11
Font.Name = 'Arial'
Font.Style = []
ParentFont = False
object RLDBText2: TRLDBText
Left = 4
Top = 0
Width = 61
Height = 15
AutoSize = False
DataField = 'COD_REC'
DataSource = dsTab
end
object RLDBText3: TRLDBText
Left = 69
Top = 0
Width = 186
Height = 15
AutoSize = False
DataField = 'NOME'
DataSource = dsTab
end
object RLDBText4: TRLDBText
Left = 257
Top = 0
Width = 70
Height = 15
AutoSize = False
DataField = 'VENCIMENTO'
DataSource = dsTab
end
object RLDBText5: TRLDBText
Left = 334
Top = 0
Width = 80
Height = 15
Alignment = taCenter
AutoSize = False
DataField = 'VLR_PRIC'
DataSource = dsTab
end
object RLDBText6: TRLDBText
Left = 682
Top = 0
Width = 76
Height = 15
AutoSize = False
DataField = 'FINALIZADORA'
DataSource = dsTab
end
object RLDBText1: TRLDBText
Left = 421
Top = 0
Width = 54
Height = 15
Alignment = taCenter
AutoSize = False
DataField = 'JUROS'
DataSource = dsTab
end
object RLDBText7: TRLDBText
Left = 477
Top = 0
Width = 56
Height = 15
Alignment = taCenter
AutoSize = False
DataField = 'VLR_DESC'
DataSource = dsTab
end
object RLDBText8: TRLDBText
Left = 539
Top = 0
Width = 62
Height = 15
Alignment = taCenter
AutoSize = False
DataField = 'VLR_PAGO'
DataSource = dsTab
end
object RLDBText9: TRLDBText
Left = 607
Top = 0
Width = 64
Height = 15
Alignment = taCenter
AutoSize = False
DataField = 'SALDO_DEV'
DataSource = dsTab
end
end
object RLBand5: TRLBand
Left = 19
Top = 139
Width = 756
Height = 46
BandType = btSummary
Font.Charset = DEFAULT_CHARSET
Font.Color = clBlack
Font.Height = -11
Font.Name = 'Arial'
Font.Style = [fsBold]
ParentFont = False
object RLLabel11: TRLLabel
Left = 4
Top = -6
Width = 751
Height = 14
Caption =
'----------------------------------------------------------------' +
'----------------------------------------------------------------' +
'-----------------------------------------------------------'
end
object RLDBResult1: TRLDBResult
Left = 4
Top = 8
Width = 172
Height = 15
DataField = 'VLR_PRIC'
DataSource = dsTab
DisplayMask = 'R$ #,##0.00'
Font.Charset = DEFAULT_CHARSET
Font.Color = clBlack
Font.Height = -12
Font.Name = 'Arial'
Font.Style = [fsBold]
Info = riSum
ParentFont = False
Text = 'Vlr Principal: '
end
object RLDBResult2: TRLDBResult
Left = 268
Top = 8
Width = 119
Height = 15
DataField = 'JUROS'
DataSource = dsTab
DisplayMask = 'R$ #,##0.00'
Font.Charset = DEFAULT_CHARSET
Font.Color = clBlack
Font.Height = -12
Font.Name = 'Arial'
Font.Style = [fsBold]
Info = riSum
ParentFont = False
Text = 'Juros: '
end
object RLDBResult3: TRLDBResult
Left = 268
Top = 29
Width = 161
Height = 15
DataField = 'VLR_DESC'
DataSource = dsTab
DisplayMask = 'R$ #,##0.00'
Font.Charset = DEFAULT_CHARSET
Font.Color = clBlack
Font.Height = -12
Font.Name = 'Arial'
Font.Style = [fsBold]
Info = riSum
ParentFont = False
Text = 'Desconto: '
end
object RLDBResult4: TRLDBResult
Left = 548
Top = 6
Width = 160
Height = 15
DataField = 'VLR_PAGO'
DataSource = dsTab
DisplayMask = 'R$ #,##0.00'
Font.Charset = DEFAULT_CHARSET
Font.Color = clBlack
Font.Height = -12
Font.Name = 'Arial'
Font.Style = [fsBold]
Info = riSum
ParentFont = False
Text = 'Vlr. Pago: '
end
object RLDBResult5: TRLDBResult
Left = 548
Top = 27
Width = 175
Height = 15
DataField = 'SALDO_DEV'
DataSource = dsTab
DisplayMask = 'R$ #,##0.00'
Font.Charset = DEFAULT_CHARSET
Font.Color = clBlack
Font.Height = -12
Font.Name = 'Arial'
Font.Style = [fsBold]
Info = riSum
ParentFont = False
Text = 'Saldo Dev.: '
end
end
end
inherited cdsTab: TClientDataSet
object cdsTabCOD_REC: TIntegerField
FieldName = 'COD_REC'
Required = True
end
object cdsTabVENCIMENTO: TDateField
FieldName = 'VENCIMENTO'
end
object cdsTabVLR_PRIC: TSingleField
FieldName = 'VLR_PRIC'
currency = True
end
object cdsTabJUROS: TSingleField
FieldName = 'JUROS'
currency = True
end
object cdsTabVLR_DESC: TSingleField
FieldName = 'VLR_DESC'
currency = True
end
object cdsTabVLR_PAGO: TSingleField
FieldName = 'VLR_PAGO'
currency = True
end
object cdsTabSALDO_DEV: TSingleField
FieldName = 'SALDO_DEV'
currency = True
end
object cdsTabFINALIZADORA: TStringField
FieldName = 'FINALIZADORA'
Size = 100
end
object cdsTabNOME: TStringField
FieldName = 'NOME'
Size = 114
end
end
inherited sqlTab: TSQLQuery
SQL.Strings = (
'SELECT'
' C.COD_REC, C.COD_CLIE || '#39' - '#39' || CC.NOME AS NOME, C.VENCIMENTO' +
', CAST(COALESCE(C.VLR_PRIC, 0) AS FLOAT) AS VLR_PRIC, CAST(COALE' +
'SCE(C.JUROS, 0) AS FLOAT) AS JUROS, CAST(COALESCE(C.VLR_DESC, 0)' +
' AS FLOAT) AS VLR_DESC, CAST(COALESCE(C.VLR_PAGO, 0) AS FLOAT) A' +
'S VLR_PAGO, CAST(COALESCE(C.SALDO_DEV, 0) AS FLOAT) AS SALDO_DEV' +
','
' (SELECT F.DESCRICAO FROM FINALIZ F WHERE F.FINALIZADORA = C.TP_' +
'DOC) AS FINALIZADORA'
'FROM CREC C, CLIEN CC WHERE C.COD_CLIE = CC.COD_CLIE')
end
end