-
Notifications
You must be signed in to change notification settings - Fork 0
/
ServerMethods_PTest.dfm
493 lines (490 loc) · 13.2 KB
/
ServerMethods_PTest.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
object ServerMethods1: TServerMethods1
OnCreate = DSServerModuleCreate
Height = 690
Width = 1066
object DataSetProvider1: TDataSetProvider
DataSet = FDQuery1
Options = [poAllowCommandText, poUseQuoteChar]
UpdateMode = upWhereKeyOnly
Left = 32
Top = 128
end
object FDQuery1: TFDQuery
Connection = DM_Connection.FDConn_Sql
FetchOptions.AssignedValues = [evAutoFetchAll]
FetchOptions.AutoFetchAll = afDisable
ResourceOptions.AssignedValues = [rvCmdExecMode]
ResourceOptions.CmdExecMode = amCancelDialog
OnError = FDQuery1Error
OnExecuteError = FDQuery1ExecuteError
SQL.Strings = (
'SELECT A.*, B.TIPO_PRATICA, B.DESCRIZIONE , (SELECT CAST(COUNT(*' +
') AS CHAR(10)) FROM NC_PROROGHE D WHERE D.FK_NC = A.PK_PROGRESSI' +
'VO) AS TOTALE_PROROGHE '
'FROM NC_MASTER A, SYS_TIPO_PRATICA B'
'WHERE A.K_TIPO_PRATICA = B.PK_PROGRESSIVO '
'')
Left = 32
Top = 64
end
object FDGUIxErrorDialog1: TFDGUIxErrorDialog
Provider = 'Console'
OnShow = FDGUIxErrorDialog1Show
OnHide = FDGUIxErrorDialog1Hide
Left = 376
Top = 208
end
object FDGUIxWaitCursor1: TFDGUIxWaitCursor
Provider = 'Console'
ScreenCursor = gcrHourGlass
Left = 512
Top = 176
end
object FDGUIxAsyncExecuteDialog1: TFDGUIxAsyncExecuteDialog
Provider = 'Console'
Left = 480
Top = 248
end
object FDGUIxScriptDialog1: TFDGUIxScriptDialog
Provider = 'Console'
Left = 304
Top = 112
end
object FDGUIxLoginDialog1: TFDGUIxLoginDialog
Provider = 'Console'
Left = 456
Top = 88
end
object FDQuery2: TFDQuery
Connection = DM_Connection.FDConn_Sql
SQL.Strings = (
'select * from TS1_RICLASSIFICA_PROGETTO')
Left = 96
Top = 248
object FDQuery2PK_PROGRESSIVO: TIntegerField
FieldName = 'PK_PROGRESSIVO'
Origin = 'PK_PROGRESSIVO'
ProviderFlags = [pfInUpdate, pfInWhere, pfInKey]
Required = True
end
object FDQuery2FK_MACROGRUPPO: TIntegerField
FieldName = 'FK_MACROGRUPPO'
Origin = 'FK_MACROGRUPPO'
Required = True
end
object FDQuery2FLAG_ATTIVO: TStringField
FieldName = 'FLAG_ATTIVO'
Origin = 'FLAG_ATTIVO'
Required = True
FixedChar = True
Size = 1
end
object FDQuery2NOTE: TStringField
FieldName = 'NOTE'
Origin = 'NOTE'
Size = 300
end
object FDQuery2DEFINIZIONE_RICLASSIFICATO: TStringField
FieldName = 'DEFINIZIONE_RICLASSIFICATO'
Origin = 'DEFINIZIONE_RICLASSIFICATO'
Required = True
Size = 250
end
object FDQuery2NSAL_UFFICIALI: TSmallintField
FieldName = 'NSAL_UFFICIALI'
Origin = 'NSAL_UFFICIALI'
Required = True
end
object FDQuery2NSAL_INTERNI: TSmallintField
FieldName = 'NSAL_INTERNI'
Origin = 'NSAL_INTERNI'
Required = True
end
end
object FDQuery3: TFDQuery
Connection = DM_Connection.FDConn_Sql
SQL.Strings = (
'select * from TS1_RICLASSIFICA_PROGETTO_DETAIL')
Left = 88
Top = 368
object FDQuery3PK_PROGRESSIVO: TIntegerField
FieldName = 'PK_PROGRESSIVO'
Origin = 'PK_PROGRESSIVO'
ProviderFlags = [pfInUpdate, pfInWhere, pfInKey]
Required = True
end
object FDQuery3FK_PARAM_PROGETTO: TIntegerField
FieldName = 'FK_PARAM_PROGETTO'
Origin = 'FK_PARAM_PROGETTO'
Required = True
end
object FDQuery3FK_TIPO_COSTO: TIntegerField
FieldName = 'FK_TIPO_COSTO'
Origin = 'FK_TIPO_COSTO'
Required = True
end
object FDQuery3FLAG_ATTIVO: TStringField
FieldName = 'FLAG_ATTIVO'
Origin = 'FLAG_ATTIVO'
Required = True
FixedChar = True
Size = 1
end
object FDQuery3DATA_IN: TDateField
FieldName = 'DATA_IN'
Origin = 'DATA_IN'
Required = True
end
object FDQuery3DATA_FI: TDateField
FieldName = 'DATA_FI'
Origin = 'DATA_FI'
Required = True
end
object FDQuery3BUDGET: TFloatField
FieldName = 'BUDGET'
Origin = 'BUDGET'
Required = True
end
object FDQuery3BUDGET_UTILIZZATO: TFloatField
FieldName = 'BUDGET_UTILIZZATO'
Origin = 'BUDGET_UTILIZZATO'
Required = True
end
object FDQuery3QUOTA_DETRAIBILE: TSingleField
FieldName = 'QUOTA_DETRAIBILE'
Origin = 'QUOTA_DETRAIBILE'
Required = True
end
object FDQuery3BUDGET_TMP_CALCOLI: TFloatField
FieldName = 'BUDGET_TMP_CALCOLI'
Origin = 'BUDGET_TMP_CALCOLI'
Required = True
end
object FDQuery3GG_TMP: TIntegerField
FieldName = 'GG_TMP'
Origin = 'GG_TMP'
end
object FDQuery3BUDGET_GG_TMP: TFloatField
FieldName = 'BUDGET_GG_TMP'
Origin = 'BUDGET_GG_TMP'
end
object FDQuery3DATA_IN_TMP: TDateField
FieldName = 'DATA_IN_TMP'
Origin = 'DATA_IN_TMP'
Required = True
end
object FDQuery3FK_ANAG: TIntegerField
FieldName = 'FK_ANAG'
Origin = 'FK_ANAG'
Required = True
end
end
object FDQuery4: TFDQuery
Connection = DM_Connection.FDConn_Sql
SQL.Strings = (
'select * from TS1_RICLASSIFICA_PROGETTO_DETT_ALLERT')
Left = 232
Top = 272
object FDQuery4PK_PROGRESSIVO: TIntegerField
FieldName = 'PK_PROGRESSIVO'
Origin = 'PK_PROGRESSIVO'
ProviderFlags = [pfInUpdate, pfInWhere, pfInKey]
Required = True
end
object FDQuery4FK_PARAM_PROGETTO_DETAIL: TIntegerField
FieldName = 'FK_PARAM_PROGETTO_DETAIL'
Origin = 'FK_PARAM_PROGETTO_DETAIL'
Required = True
end
object FDQuery4FLAG_ATTIVO: TStringField
FieldName = 'FLAG_ATTIVO'
Origin = 'FLAG_ATTIVO'
Required = True
FixedChar = True
Size = 1
end
object FDQuery4DATA_IN: TDateField
FieldName = 'DATA_IN'
Origin = 'DATA_IN'
Required = True
end
object FDQuery4DATA_FI: TDateField
FieldName = 'DATA_FI'
Origin = 'DATA_FI'
Required = True
end
object FDQuery4BUDGET: TFloatField
FieldName = 'BUDGET'
Origin = 'BUDGET'
Required = True
end
object FDQuery4BUDGET_UTILIZZATO: TFloatField
FieldName = 'BUDGET_UTILIZZATO'
Origin = 'BUDGET_UTILIZZATO'
Required = True
end
object FDQuery4FK_ANAG: TIntegerField
FieldName = 'FK_ANAG'
Origin = 'FK_ANAG'
Required = True
end
object FDQuery4FLAG_EMAIL: TStringField
FieldName = 'FLAG_EMAIL'
Origin = 'FLAG_EMAIL'
Required = True
FixedChar = True
Size = 1
end
object FDQuery4GG_ALLERT: TSmallintField
FieldName = 'GG_ALLERT'
Origin = 'GG_ALLERT'
Required = True
end
end
object DataSetProvider2: TDataSetProvider
DataSet = FDQuery2
Options = [poAllowCommandText, poUseQuoteChar]
UpdateMode = upWhereKeyOnly
Left = 96
Top = 304
end
object DataSetProvider3: TDataSetProvider
DataSet = FDQuery3
Options = [poAllowCommandText, poUseQuoteChar]
UpdateMode = upWhereKeyOnly
Left = 88
Top = 424
end
object DataSetProvider4: TDataSetProvider
DataSet = FDQuery4
Options = [poAllowCommandText, poUseQuoteChar]
UpdateMode = upWhereKeyOnly
Left = 232
Top = 352
end
object FDQuery5: TFDQuery
Connection = DM_Connection.FDConn_Sql
SQL.Strings = (
'select * from combobox_test')
Left = 472
Top = 344
object FDQuery5PK_1: TIntegerField
FieldName = 'PK_1'
Origin = 'PK_1'
ProviderFlags = [pfInUpdate, pfInWhere, pfInKey]
Required = True
end
object FDQuery5PK_2: TIntegerField
FieldName = 'PK_2'
Origin = 'PK_2'
ProviderFlags = [pfInUpdate, pfInWhere, pfInKey]
Required = True
end
object FDQuery5PK_3: TIntegerField
FieldName = 'PK_3'
Origin = 'PK_3'
ProviderFlags = [pfInUpdate, pfInWhere, pfInKey]
Required = True
end
end
object DataSetProvider5: TDataSetProvider
DataSet = FDQuery5
Options = [poAllowCommandText, poUseQuoteChar]
UpdateMode = upWhereKeyOnly
Left = 480
Top = 424
end
object FDQ_Master: TFDQuery
Connection = DM_Connection.FDConn_Sql
SQL.Strings = (
'select * from tmaster')
Left = 768
Top = 40
object FDQ_MasterPK_PRIMARY_KEY: TIntegerField
FieldName = 'PK_PRIMARY_KEY'
Origin = 'PK_PRIMARY_KEY'
ProviderFlags = [pfInUpdate, pfInWhere, pfInKey]
Required = True
end
object FDQ_MasterDESCRIPTION: TStringField
FieldName = 'DESCRIPTION'
Origin = 'DESCRIPTION'
Required = True
Size = 250
end
end
object DSP_Master: TDataSetProvider
DataSet = FDQ_Master
Options = [poAllowCommandText, poUseQuoteChar]
Left = 768
Top = 112
end
object FDQ_Detail1: TFDQuery
Connection = DM_Connection.FDConn_Sql
SQL.Strings = (
'select * from tdetail_level1')
Left = 744
Top = 216
object FDQ_Detail1PK_PRIMARY_KEY: TIntegerField
FieldName = 'PK_PRIMARY_KEY'
Origin = 'PK_PRIMARY_KEY'
ProviderFlags = [pfInUpdate, pfInWhere, pfInKey]
Required = True
end
object FDQ_Detail1FK_PRIMARY_KEY: TIntegerField
FieldName = 'FK_PRIMARY_KEY'
Origin = 'FK_PRIMARY_KEY'
Required = True
end
object FDQ_Detail1DESCRIPTION_DETAIL1: TStringField
FieldName = 'DESCRIPTION_DETAIL1'
Origin = 'DESCRIPTION_DETAIL1'
Required = True
Size = 250
end
end
object DSP_Detail1: TDataSetProvider
DataSet = FDQ_Detail1
Options = [poAllowCommandText, poUseQuoteChar]
Left = 744
Top = 288
end
object FDQ_Detail2: TFDQuery
Connection = DM_Connection.FDConn_Sql
SQL.Strings = (
'select * from tdetail_level2')
Left = 760
Top = 384
object FDQ_Detail2PK_PRIMARY_KEY: TIntegerField
FieldName = 'PK_PRIMARY_KEY'
Origin = 'PK_PRIMARY_KEY'
ProviderFlags = [pfInUpdate, pfInWhere, pfInKey]
Required = True
end
object FDQ_Detail2FK_PRIMARY_KEY_DETAIL1: TIntegerField
FieldName = 'FK_PRIMARY_KEY_DETAIL1'
Origin = 'FK_PRIMARY_KEY_DETAIL1'
Required = True
end
object FDQ_Detail2DESCRIPTION_DETAIL2: TStringField
FieldName = 'DESCRIPTION_DETAIL2'
Origin = 'DESCRIPTION_DETAIL2'
Required = True
Size = 250
end
end
object DSP_Detail2: TDataSetProvider
DataSet = FDQ_Detail2
Options = [poAllowCommandText, poUseQuoteChar]
Left = 760
Top = 456
end
object FDQ_Master1: TFDQuery
Connection = DM_Connection.FDConn_Sql
SQL.Strings = (
'select * from tmaster')
Left = 920
Top = 48
object IntegerField1: TIntegerField
FieldName = 'PK_PRIMARY_KEY'
Origin = 'PK_PRIMARY_KEY'
ProviderFlags = [pfInUpdate, pfInWhere, pfInKey]
Required = True
end
object StringField1: TStringField
FieldName = 'DESCRIPTION'
Origin = 'DESCRIPTION'
Required = True
Size = 250
end
end
object DSP_Master1: TDataSetProvider
DataSet = FDQ_Master1
Left = 920
Top = 104
end
object FDQ_Detail1_1: TFDQuery
IndexFieldNames = 'FK_PRIMARY_KEY'
MasterSource = DataSource1
MasterFields = 'PK_PRIMARY_KEY'
DetailFields = 'FK_PRIMARY_KEY'
Connection = DM_Connection.FDConn_Sql
FetchOptions.AssignedValues = [evItems, evCache]
SQL.Strings = (
'select * from tdetail_level1 where FK_PRIMARY_KEY = :PK_PRIMARY_' +
'KEY')
Left = 912
Top = 192
ParamData = <
item
Name = 'PK_PRIMARY_KEY'
DataType = ftInteger
ParamType = ptInput
Value = 3
end>
object IntegerField2: TIntegerField
FieldName = 'PK_PRIMARY_KEY'
Origin = 'PK_PRIMARY_KEY'
ProviderFlags = [pfInUpdate, pfInWhere, pfInKey]
Required = True
end
object IntegerField3: TIntegerField
FieldName = 'FK_PRIMARY_KEY'
Origin = 'FK_PRIMARY_KEY'
Required = True
end
object StringField2: TStringField
FieldName = 'DESCRIPTION_DETAIL1'
Origin = 'DESCRIPTION_DETAIL1'
Required = True
Size = 250
end
end
object FDQ_Detail1_2: TFDQuery
IndexFieldNames = 'PK_PRIMARY_KEY'
MasterSource = DataSource2
MasterFields = 'PK_PRIMARY_KEY'
DetailFields = 'PK_PRIMARY_KEY'
Connection = DM_Connection.FDConn_Sql
FetchOptions.AssignedValues = [evItems, evCache]
SQL.Strings = (
'select * from tdetail_level2 where FK_PRIMARY_KEY_DETAIL1 = :PK_' +
'PRIMARY_KEY')
Left = 912
Top = 272
ParamData = <
item
Name = 'PK_PRIMARY_KEY'
DataType = ftInteger
ParamType = ptInput
Value = 3
end>
object IntegerField4: TIntegerField
FieldName = 'PK_PRIMARY_KEY'
Origin = 'PK_PRIMARY_KEY'
ProviderFlags = [pfInUpdate, pfInWhere, pfInKey]
Required = True
end
object IntegerField5: TIntegerField
FieldName = 'FK_PRIMARY_KEY_DETAIL1'
Origin = 'FK_PRIMARY_KEY_DETAIL1'
Required = True
end
object StringField3: TStringField
FieldName = 'DESCRIPTION_DETAIL2'
Origin = 'DESCRIPTION_DETAIL2'
Required = True
Size = 250
end
end
object DataSource1: TDataSource
DataSet = FDQ_Master1
Left = 992
Top = 64
end
object DataSource2: TDataSource
DataSet = FDQ_Detail1_1
Left = 1000
Top = 192
end
end