-
Notifications
You must be signed in to change notification settings - Fork 2
/
uDMManifesto.dfm
363 lines (361 loc) · 9.68 KB
/
uDMManifesto.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
object DMManifesto: TDMManifesto
OldCreateOrder = False
OnCreate = DataModuleCreate
Height = 308
Width = 433
object sqlManifesto: TFDQuery
OnCalcFields = sqlManifestoCalcFields
Connection = DMConection.FDConnection
SQL.Strings = (
'select *'
'from MANIFESTO_AN MA'
'where (MA.CHAVE_ACESSO = :CHAVEACESSO or cast(:CHAVEACESSO as va' +
'rchar(44)) = '#39#39') '
'order by NSU Desc')
Left = 24
Top = 32
ParamData = <
item
Name = 'CHAVEACESSO'
DataType = ftString
ParamType = ptInput
Value = Null
end>
object sqlManifestoID: TIntegerField
FieldName = 'ID'
Origin = 'ID'
ProviderFlags = [pfInUpdate, pfInWhere, pfInKey]
end
object sqlManifestoCHAVE_ACESSO: TStringField
DisplayLabel = 'Chave Acesso'
FieldName = 'CHAVE_ACESSO'
Origin = 'CHAVE_ACESSO'
Size = 44
end
object sqlManifestoCNPJ: TStringField
FieldName = 'CNPJ'
Origin = 'CNPJ'
EditMask = '99.999.999/9999-99;0'
Size = 18
end
object sqlManifestoINSC_ESTADUAL: TStringField
DisplayLabel = 'Insc Estadual'
FieldName = 'INSC_ESTADUAL'
Origin = 'INSC_ESTADUAL'
end
object sqlManifestoDTEMISSAO: TStringField
DisplayLabel = 'Dt Emiss'#227'o'
FieldName = 'DTEMISSAO'
Origin = 'DTEMISSAO'
Size = 30
end
object sqlManifestoNOME: TStringField
DisplayLabel = 'Nome'
FieldName = 'NOME'
Origin = 'NOME'
Size = 70
end
object sqlManifestoNUM_NOTA: TLargeintField
DisplayLabel = 'N'#186' Nota'
FieldName = 'NUM_NOTA'
Origin = 'NUM_NOTA'
end
object sqlManifestoVLR_NOTA: TFloatField
DisplayLabel = 'Vlr Nota'
FieldName = 'VLR_NOTA'
Origin = 'VLR_NOTA'
DisplayFormat = '#,##0.00'
end
object sqlManifestoNUM_PROTOCOLO: TStringField
DisplayLabel = 'N'#186' Protocolo'
FieldName = 'NUM_PROTOCOLO'
Origin = 'NUM_PROTOCOLO'
Size = 25
end
object sqlManifestoDOWNLOAD: TStringField
DisplayLabel = 'Download'
FieldName = 'DOWNLOAD'
Origin = 'DOWNLOAD'
FixedChar = True
Size = 1
end
object sqlManifestoGRAVADA_NOTA: TStringField
DisplayLabel = 'Gravada Nota'
FieldName = 'GRAVADA_NOTA'
Origin = 'GRAVADA_NOTA'
FixedChar = True
Size = 1
end
object sqlManifestoTIPO_EVE: TStringField
DisplayLabel = 'Tipo Evento'
FieldName = 'TIPO_EVE'
Origin = 'TIPO_EVE'
end
object sqlManifestoCNPJ_FILIAL: TStringField
DisplayLabel = 'CNPJ Filial'
FieldName = 'CNPJ_FILIAL'
Origin = 'CNPJ_FILIAL'
Size = 18
end
object sqlManifestoFILIAL: TIntegerField
DisplayLabel = 'Filial'
FieldName = 'FILIAL'
Origin = 'FILIAL'
end
object sqlManifestoNOTA_PROPRIA: TStringField
DisplayLabel = 'Nota Pr'#243'pria'
FieldName = 'NOTA_PROPRIA'
Origin = 'NOTA_PROPRIA'
FixedChar = True
Size = 1
end
object sqlManifestoSERIE: TStringField
DisplayLabel = 'S'#233'rie'
FieldName = 'SERIE'
Origin = 'SERIE'
Size = 3
end
object sqlManifestoNSU: TStringField
FieldName = 'NSU'
Origin = 'NSU'
Size = 15
end
object sqlManifestoDTEMISSAO2: TDateField
DisplayLabel = 'Dt Emiss'#227'o 2'
FieldName = 'DTEMISSAO2'
Origin = 'DTEMISSAO2'
end
object sqlManifestoPOSSUI_CCE: TStringField
DisplayLabel = 'CCE'
FieldName = 'POSSUI_CCE'
Origin = 'POSSUI_CCE'
Size = 1
end
object sqlManifestoOCULTAR: TStringField
DisplayLabel = 'Ocultar'
FieldName = 'OCULTAR'
Origin = 'OCULTAR'
Size = 1
end
object sqlManifestoDTRECEBIMENTO: TDateField
FieldName = 'DTRECEBIMENTO'
Origin = 'DTRECEBIMENTO'
end
object sqlManifestoSITUACAO_MANIF: TStringField
FieldName = 'SITUACAO_MANIF'
Origin = 'SITUACAO_MANIF'
FixedChar = True
Size = 1
end
object sqlManifestoSITUACAO_NFE: TStringField
FieldName = 'SITUACAO_NFE'
Origin = 'SITUACAO_NFE'
FixedChar = True
Size = 1
end
object sqlManifestoBaixado: TStringField
FieldKind = fkCalculated
FieldName = 'Baixado'
Size = 3
Calculated = True
end
object sqlManifestoDescSituacao_Manif: TStringField
FieldKind = fkCalculated
FieldName = 'DescSituacao_Manif'
Size = 25
Calculated = True
end
end
object sqlFilial: TFDQuery
Connection = DMConection.FDConnection
SQL.Strings = (
'SELECT ID, NOME, NOME_INTERNO, UF, CNPJ_CPF FROM FILIAL')
Left = 176
Top = 40
object sqlFilialID: TIntegerField
FieldName = 'ID'
Origin = 'ID'
ProviderFlags = [pfInUpdate, pfInWhere, pfInKey]
Required = True
end
object sqlFilialNOME: TStringField
FieldName = 'NOME'
Origin = 'NOME'
Size = 60
end
object sqlFilialNOME_INTERNO: TStringField
FieldName = 'NOME_INTERNO'
Origin = 'NOME_INTERNO'
Size = 30
end
object sqlFilialUF: TStringField
FieldName = 'UF'
Origin = 'UF'
Size = 2
end
object sqlFilialCNPJ_CPF: TStringField
FieldName = 'CNPJ_CPF'
Origin = 'CNPJ_CPF'
Size = 18
end
end
object dsFilial: TDataSource
DataSet = sqlFilial
Left = 216
Top = 40
end
object ACBrNFe: TACBrNFe
Configuracoes.Geral.SSLLib = libWinCrypt
Configuracoes.Geral.SSLCryptLib = cryWinCrypt
Configuracoes.Geral.SSLHttpLib = httpWinHttp
Configuracoes.Geral.SSLXmlSignLib = xsLibXml2
Configuracoes.Geral.FormatoAlerta = 'TAG:%TAGNIVEL% ID:%ID%/%TAG%(%DESCRICAO%) - %MSG%.'
Configuracoes.Geral.VersaoQRCode = veqr000
Configuracoes.Arquivos.AdicionarLiteral = True
Configuracoes.Arquivos.OrdenacaoPath = <>
Configuracoes.Arquivos.EmissaoPathNFe = True
Configuracoes.WebServices.UF = 'RS'
Configuracoes.WebServices.Ambiente = taProducao
Configuracoes.WebServices.AguardarConsultaRet = 15000
Configuracoes.WebServices.AjustaAguardaConsultaRet = True
Configuracoes.WebServices.TimeOut = 15000
Configuracoes.WebServices.QuebradeLinha = '|'
Configuracoes.RespTec.IdCSRT = 0
Left = 176
Top = 104
end
object sqlConsulta: TFDQuery
Connection = DMConection.FDConnection
SQL.Strings = (
'select AN.*'
'FROM manifesto_AN AN'
'WHERE AN.filial = :FILIAL')
Left = 48
Top = 192
ParamData = <
item
Name = 'FILIAL'
DataType = ftInteger
ParamType = ptInput
Value = Null
end>
end
object dsManifesto: TDataSource
DataSet = sqlManifesto
Left = 72
Top = 32
end
object sqlManifesto_Eve: TFDQuery
Connection = DMConection.FDConnection
SQL.Strings = (
'select *'
'from MANIFESTO_EVE'
'where CHAVE_ACESSO = :CHAVEACESSO and'
' (TIPO_EVENTO = :TIPOEVENTO or cast(:TIPOEVENTO AS VARCHAR(' +
'20)) = '#39#39')')
Left = 32
Top = 88
ParamData = <
item
Name = 'CHAVEACESSO'
DataType = ftString
ParamType = ptInput
Size = 44
Value = Null
end
item
Name = 'TIPOEVENTO'
DataType = ftString
ParamType = ptInput
Size = 20
end>
object sqlManifesto_EveID: TIntegerField
FieldName = 'ID'
Origin = 'ID'
ProviderFlags = [pfInUpdate, pfInWhere, pfInKey]
end
object sqlManifesto_EveCHAVE_ACESSO: TStringField
DisplayLabel = 'Chave Acesso'
FieldName = 'CHAVE_ACESSO'
Origin = 'CHAVE_ACESSO'
ProviderFlags = [pfInUpdate, pfInWhere, pfInKey]
Required = True
Size = 44
end
object sqlManifesto_EveTIPO_EVENTO: TStringField
DisplayLabel = 'Tipo Evento'
FieldName = 'TIPO_EVENTO'
Origin = 'TIPO_EVENTO'
ProviderFlags = [pfInUpdate, pfInWhere, pfInKey]
Required = True
end
object sqlManifesto_EveSCHEMA: TStringField
FieldName = 'SCHEMA'
Origin = '"SCHEMA"'
Size = 50
end
object sqlManifesto_EveXML: TMemoField
FieldName = 'XML'
Origin = 'XML'
BlobType = ftMemo
end
object sqlManifesto_EveORGAO: TStringField
DisplayLabel = 'Org'#227'o'
FieldName = 'ORGAO'
Origin = 'ORGAO'
Size = 5
end
object sqlManifesto_EveSEQ_EVENTO: TIntegerField
DisplayLabel = 'Seq.Evento'
FieldName = 'SEQ_EVENTO'
Origin = 'SEQ_EVENTO'
end
object sqlManifesto_EveDTEVENTO: TDateField
DisplayLabel = 'Dt Evento'
FieldName = 'DTEVENTO'
Origin = 'DTEVENTO'
end
object sqlManifesto_EveDESCRICAO_EVENTO: TStringField
DisplayLabel = 'Descri'#231#227'o Evento'
FieldName = 'DESCRICAO_EVENTO'
Origin = 'DESCRICAO_EVENTO'
Size = 60
end
object sqlManifesto_EveCOD_EVENTO: TStringField
DisplayLabel = 'C'#243'd.Evento'
FieldName = 'COD_EVENTO'
Origin = 'COD_EVENTO'
Size = 10
end
object sqlManifesto_EveFILIAL: TIntegerField
DisplayLabel = 'Filial'
FieldName = 'FILIAL'
Origin = 'FILIAL'
end
object sqlManifesto_EveNOTA_PROPRIA: TStringField
FieldName = 'NOTA_PROPRIA'
Origin = 'NOTA_PROPRIA'
FixedChar = True
Size = 1
end
object sqlManifesto_EveNUM_NOTA: TIntegerField
FieldName = 'NUM_NOTA'
Origin = 'NUM_NOTA'
end
object sqlManifesto_EveSERIE: TStringField
FieldName = 'SERIE'
Origin = 'SERIE'
Size = 3
end
object sqlManifesto_EveNSU: TStringField
FieldName = 'NSU'
Origin = 'NSU'
Size = 15
end
end
object dsManifestoEventos: TDataSource
DataSet = sqlManifesto_Eve
Left = 80
Top = 88
end
end