-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathfrmAnaResu.frm
926 lines (866 loc) · 31.5 KB
/
frmAnaResu.frm
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
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Begin VB.Form frmAnaResu
BorderStyle = 3 'Fixed Dialog
Caption = "Resumen del Análisis"
ClientHeight = 4425
ClientLeft = 2235
ClientTop = 1350
ClientWidth = 7395
Icon = "frmAnaResu.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 295
ScaleMode = 3 'Pixel
ScaleWidth = 493
ShowInTaskbar = 0 'False
Begin MSComctlLib.ListView lvwInfoAna
Height = 1740
Left = 570
TabIndex = 42
Top = 4980
Width = 5055
_ExtentX = 8916
_ExtentY = 3069
View = 3
LabelEdit = 1
LabelWrap = -1 'True
HideSelection = -1 'True
FullRowSelect = -1 'True
_Version = 393217
ForeColor = -2147483640
BackColor = -2147483643
BorderStyle = 1
Appearance = 1
NumItems = 5
BeginProperty ColumnHeader(1) {BDD1F052-858B-11D1-B16A-00C0F0283628}
Text = "N°"
Object.Width = 1323
EndProperty
BeginProperty ColumnHeader(2) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 1
Text = "Problema"
Object.Width = 2646
EndProperty
BeginProperty ColumnHeader(3) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 2
Text = "Ubicación"
Object.Width = 2646
EndProperty
BeginProperty ColumnHeader(4) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 3
Text = "Tipo"
Object.Width = 1323
EndProperty
BeginProperty ColumnHeader(5) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 4
Text = "Comentario"
Object.Width = 5292
EndProperty
End
Begin VB.CommandButton cmd
Caption = "&Imprimir"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Index = 1
Left = 6090
TabIndex = 41
Top = 540
Width = 1215
End
Begin VB.CommandButton cmd
Caption = "&Aceptar"
Default = -1 'True
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Index = 0
Left = 6090
TabIndex = 20
Top = 105
Width = 1215
End
Begin VB.Frame fra
Caption = "Información:"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 4365
Left = 375
TabIndex = 1
Top = 15
Width = 5625
Begin VB.TextBox txtM
Alignment = 1 'Right Justify
Height = 285
Index = 10
Left = 4260
Locked = -1 'True
TabIndex = 40
Text = "0"
Top = 3630
Width = 1260
End
Begin VB.TextBox txtM
Alignment = 1 'Right Justify
Height = 285
Index = 0
Left = 4260
Locked = -1 'True
TabIndex = 39
Text = "0"
Top = 465
Width = 1260
End
Begin VB.TextBox txtM
Alignment = 1 'Right Justify
Height = 285
Index = 1
Left = 4260
Locked = -1 'True
TabIndex = 38
Text = "0"
Top = 780
Width = 1260
End
Begin VB.TextBox txtM
Alignment = 1 'Right Justify
Height = 285
Index = 2
Left = 4260
Locked = -1 'True
TabIndex = 37
Text = "0"
Top = 1095
Width = 1260
End
Begin VB.TextBox txtM
Alignment = 1 'Right Justify
Height = 285
Index = 3
Left = 4260
Locked = -1 'True
TabIndex = 36
Text = "0"
Top = 1410
Width = 1260
End
Begin VB.TextBox txtM
Alignment = 1 'Right Justify
Height = 285
Index = 4
Left = 4260
Locked = -1 'True
TabIndex = 35
Text = "0"
Top = 1725
Width = 1260
End
Begin VB.TextBox txtM
Alignment = 1 'Right Justify
Height = 285
Index = 5
Left = 4260
Locked = -1 'True
TabIndex = 34
Text = "0"
Top = 2040
Width = 1260
End
Begin VB.TextBox txtM
Alignment = 1 'Right Justify
Height = 285
Index = 6
Left = 4260
Locked = -1 'True
TabIndex = 33
Text = "0"
Top = 2355
Width = 1260
End
Begin VB.TextBox txtM
Alignment = 1 'Right Justify
Height = 285
Index = 7
Left = 4260
Locked = -1 'True
TabIndex = 32
Text = "0"
Top = 2670
Width = 1260
End
Begin VB.TextBox txtM
Alignment = 1 'Right Justify
Height = 285
Index = 8
Left = 4260
Locked = -1 'True
TabIndex = 31
Text = "0"
Top = 3000
Width = 1260
End
Begin VB.TextBox txtM
Alignment = 1 'Right Justify
Height = 285
Index = 9
Left = 4260
Locked = -1 'True
TabIndex = 30
Text = "0"
Top = 3315
Width = 1260
End
Begin VB.TextBox txt
Alignment = 1 'Right Justify
Height = 285
Index = 10
Left = 2835
Locked = -1 'True
TabIndex = 29
Text = "0"
Top = 3630
Width = 1260
End
Begin VB.TextBox txtTot
Alignment = 1 'Right Justify
Height = 285
Index = 1
Left = 4260
Locked = -1 'True
TabIndex = 27
Text = "0"
Top = 3990
Width = 1260
End
Begin VB.TextBox txt
Alignment = 1 'Right Justify
Height = 285
Index = 9
Left = 2835
Locked = -1 'True
TabIndex = 24
Text = "0"
Top = 3315
Width = 1260
End
Begin VB.TextBox txt
Alignment = 1 'Right Justify
Height = 285
Index = 8
Left = 2835
Locked = -1 'True
TabIndex = 21
Text = "0"
Top = 3000
Width = 1260
End
Begin VB.TextBox txtTot
Alignment = 1 'Right Justify
Height = 285
Index = 0
Left = 2835
Locked = -1 'True
TabIndex = 18
Text = "0"
Top = 3990
Width = 1260
End
Begin VB.TextBox txt
Alignment = 1 'Right Justify
Height = 285
Index = 7
Left = 2835
Locked = -1 'True
TabIndex = 17
Text = "0"
Top = 2670
Width = 1260
End
Begin VB.TextBox txt
Alignment = 1 'Right Justify
Height = 285
Index = 6
Left = 2835
Locked = -1 'True
TabIndex = 16
Text = "0"
Top = 2355
Width = 1260
End
Begin VB.TextBox txt
Alignment = 1 'Right Justify
Height = 285
Index = 5
Left = 2835
Locked = -1 'True
TabIndex = 15
Text = "0"
Top = 2040
Width = 1260
End
Begin VB.TextBox txt
Alignment = 1 'Right Justify
Height = 285
Index = 4
Left = 2835
Locked = -1 'True
TabIndex = 14
Text = "0"
Top = 1725
Width = 1260
End
Begin VB.TextBox txt
Alignment = 1 'Right Justify
Height = 285
Index = 3
Left = 2835
Locked = -1 'True
TabIndex = 13
Text = "0"
Top = 1410
Width = 1260
End
Begin VB.TextBox txt
Alignment = 1 'Right Justify
Height = 285
Index = 2
Left = 2835
Locked = -1 'True
TabIndex = 12
Text = "0"
Top = 1095
Width = 1260
End
Begin VB.TextBox txt
Alignment = 1 'Right Justify
Height = 285
Index = 1
Left = 2835
Locked = -1 'True
TabIndex = 11
Text = "0"
Top = 780
Width = 1260
End
Begin VB.TextBox txt
Alignment = 1 'Right Justify
Height = 285
Index = 0
Left = 2835
Locked = -1 'True
TabIndex = 10
Text = "0"
Top = 465
Width = 1260
End
Begin VB.Label lbl
AutoSize = -1 'True
Caption = "Propiedades :"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 195
Index = 13
Left = 105
TabIndex = 28
Top = 1710
Width = 1185
End
Begin VB.Line Line1
X1 = 2835
X2 = 5505
Y1 = 3945
Y2 = 3945
End
Begin VB.Label lbl
AutoSize = -1 'True
Caption = "Muertas"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 195
Index = 12
Left = 4560
TabIndex = 26
Top = 210
Width = 690
End
Begin VB.Label lbl
AutoSize = -1 'True
Caption = "Vivas"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 195
Index = 11
Left = 3150
TabIndex = 25
Top = 210
Width = 480
End
Begin VB.Label lbl
AutoSize = -1 'True
Caption = "Elementos enumeraciones"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 195
Index = 10
Left = 105
TabIndex = 23
Top = 3630
Width = 2220
End
Begin VB.Label lbl
AutoSize = -1 'True
Caption = "Arrays"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 195
Index = 9
Left = 105
TabIndex = 22
Top = 3300
Width = 540
End
Begin VB.Label lbl
AutoSize = -1 'True
Caption = "Totales:"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 195
Index = 8
Left = 1830
TabIndex = 19
Top = 3945
Width = 705
End
Begin VB.Label lbl
AutoSize = -1 'True
Caption = "Apis :"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 195
Index = 7
Left = 105
TabIndex = 9
Top = 2970
Width = 495
End
Begin VB.Label lbl
AutoSize = -1 'True
Caption = "Archivos :"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 195
Index = 6
Left = 105
TabIndex = 8
Top = 2640
Width = 870
End
Begin VB.Label lbl
AutoSize = -1 'True
Caption = "Tipos :"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 195
Index = 5
Left = 105
TabIndex = 7
Top = 2340
Width = 600
End
Begin VB.Label lbl
AutoSize = -1 'True
Caption = "Enumeraciones :"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 195
Index = 4
Left = 105
TabIndex = 6
Top = 2010
Width = 1425
End
Begin VB.Label lbl
AutoSize = -1 'True
Caption = "Subs :"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 195
Index = 3
Left = 105
TabIndex = 5
Top = 1425
Width = 555
End
Begin VB.Label lbl
AutoSize = -1 'True
Caption = "Funciones :"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 195
Index = 2
Left = 105
TabIndex = 4
Top = 1125
Width = 1005
End
Begin VB.Label lbl
AutoSize = -1 'True
Caption = "Constantes :"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 195
Index = 1
Left = 105
TabIndex = 3
Top = 810
Width = 1080
End
Begin VB.Label lbl
AutoSize = -1 'True
Caption = "Variables :"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 195
Index = 0
Left = 105
TabIndex = 2
Top = 480
Width = 915
End
End
Begin VB.PictureBox picDraw
Appearance = 0 'Flat
AutoRedraw = -1 'True
BackColor = &H80000005&
ForeColor = &H00C0FFFF&
Height = 4365
Left = 0
ScaleHeight = 289
ScaleMode = 3 'Pixel
ScaleWidth = 22
TabIndex = 0
Top = 0
Width = 360
End
End
Attribute VB_Name = "frmAnaResu"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private mGradient As New clsGradient
Private Sub Imprimir()
On Local Error GoTo ErrorImprimir
Dim Archivo As String
Dim k As Integer
Dim itmx As ListItem
Dim nFreeFile As Integer
Dim Fuente As String
Dim Path As String
Path = ConfigurarPath(hwnd)
If Path = "" Or Path = "\" Then
Exit Sub
End If
nFreeFile = FreeFile
Call Hourglass(hwnd, True)
Call EnabledControls(Me, False)
lvwInfoAna.ListItems.Clear
'cargar los problemas de analisis
For k = 1 To UBound(Proyecto.aArchivos)
Call CargaDetalleAnalisis(k)
Next k
'generar archivo de problemas
Fuente = Replace("<font face='Verdana, Arial, Helvetica, sans-serif' size='1'>", "'", Chr$(34))
Archivo = Path & "\informe.htm"
Open Archivo For Output As #nFreeFile
'cabezera del archivo
Print #nFreeFile, "<html>"
Print #nFreeFile, "<head>"
Print #nFreeFile, "<title>Informe de problemas encontrados</title>"
Print #nFreeFile, Replace("<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'>", "'", Chr$(34))
Print #nFreeFile, "</head>"
'titulo del reporte
Print #nFreeFile, Replace("<body bgcolor='#FFFFFF' text='#000000'>", "'", Chr$(34))
Print #nFreeFile, Fuente
Print #nFreeFile, "<p><b>Informe de analisis</b></p>"
Print #nFreeFile, "<p><b>Proyecto : " & Proyecto.Nombre & "</b></p>"
Print #nFreeFile, "</font>"
'generar titulos
Print #nFreeFile, Replace("<table width='97%' border='1' bordercolor='#FFFFFF'>", "'", Chr$(34))
Print #nFreeFile, Replace("<tr bgcolor='#999999' bordercolor='#000000'>", "'", Chr$(34))
Print #nFreeFile, Replace("<td width='03%'><b>" & Fuente & "Nº</font></b></td>", "'", Chr$(34))
Print #nFreeFile, Replace("<td width='35%'><b>" & Fuente & "Problema</font></b></td>", "'", Chr$(34))
Print #nFreeFile, Replace("<td width='25%'><b>" & Fuente & "Ubicación</font></b></td>", "'", Chr$(34))
Print #nFreeFile, Replace("<td width='25%'><b>" & Fuente & "Tipo</font></b></td>", "'", Chr$(34))
Print #nFreeFile, Replace("<td width='09%'><b>" & Fuente & "Comentario</font></b></td>", "'", Chr$(34))
Print #nFreeFile, "</tr>"
For k = 1 To lvwInfoAna.ListItems.Count
Set itmx = lvwInfoAna.ListItems(k)
'imprimir informacion
Print #nFreeFile, Replace("<tr bordercolor='#000000'>", "'", Chr$(34))
'correlativo
Print #nFreeFile, Replace("<td width='03%' height='18'>" & Fuente & k & "</font></td>", "'", Chr$(34))
'Problema
Print #nFreeFile, Replace("<td width='35%' height='18'><b>" & Fuente & itmx.SubItems(1) & "</font></b></td>", "'", Chr$(34))
'Ubicacion
Print #nFreeFile, Replace("<td width='25%' height='18'>" & Fuente & itmx.SubItems(2) & "</font></td>", "'", Chr$(34))
'Tipo
Print #nFreeFile, Replace("<td width='25%' height='18'><b>" & Fuente & itmx.SubItems(3) & "</font></b></td>", "'", Chr$(34))
'comentario
Print #nFreeFile, Replace("<td width='09%' height='18'>" & Fuente & itmx.SubItems(4) & "</font></td>", "'", Chr$(34))
Print #nFreeFile, "</tr>"
Next k
Print #nFreeFile, "</table>"
Print #nFreeFile, "</body>"
Print #nFreeFile, "</html>"
Close #nFreeFile
ShellExecute Me.hwnd, vbNullString, Archivo, vbNullString, Path, SW_SHOWMAXIMIZED
GoTo SalirImprimir
ErrorImprimir:
SendMail ("Imprimir : " & Err & " " & Error$)
Resume SalirImprimir
SalirImprimir:
Call EnabledControls(Me, True)
Call Hourglass(hwnd, False)
Err = 0
End Sub
Private Function Totales(ByVal i As Integer) As Long
Dim ret As Long
If i = 1 Then
ret = TotalesProyecto.TotalVariablesVivas
ret = ret + TotalesProyecto.TotalConstantesVivas
ret = ret + TotalesProyecto.TotalFuncionesVivas
ret = ret + TotalesProyecto.TotalSubsVivas
ret = ret + TotalesProyecto.TotalEnumeracionesVivas
ret = ret + TotalesProyecto.TotalTiposVivas
ret = ret + TotalesProyecto.TotalArchivosVivos
ret = ret + TotalesProyecto.TotalApiVivas
ret = ret + TotalesProyecto.TotalArrayVivas
Else
ret = TotalesProyecto.TotalVariablesMuertas
ret = ret + TotalesProyecto.TotalConstantesMuertas
ret = ret + TotalesProyecto.TotalFuncionesMuertas
ret = ret + TotalesProyecto.TotalSubsMuertas
ret = ret + TotalesProyecto.TotalEnumeracionesMuertas
ret = ret + TotalesProyecto.TotalTiposMuertos
ret = ret + TotalesProyecto.TotalArchivosMuertos
ret = ret + TotalesProyecto.TotalApiMuertas
ret = ret + TotalesProyecto.TotalArrayMuertas
End If
Totales = ret
End Function
Private Sub cmd_Click(Index As Integer)
If Index = 0 Then
Unload Me
Else
If lvwInfoAna.ListItems.Count > 0 Then
Call Imprimir
End If
End If
End Sub
Private Sub Form_Load()
Dim k As Integer
Call CenterWindow(hwnd)
'contar las usadas
txt(0).text = TotalesProyecto.TotalVariablesVivas
txt(1).text = TotalesProyecto.TotalConstantesVivas
txt(2).text = TotalesProyecto.TotalFuncionesVivas
txt(3).text = TotalesProyecto.TotalSubsVivas
txt(4).text = TotalesProyecto.TotalPropiedadesVivas
txt(5).text = TotalesProyecto.TotalEnumeracionesVivas
txt(6).text = TotalesProyecto.TotalTiposVivas
txt(7).text = TotalesProyecto.TotalArchivosVivos
txt(8).text = TotalesProyecto.TotalApiVivas
txt(9).text = TotalesProyecto.TotalArrayVivas
txt(10).text = 0
txtTot(0).text = Totales(1)
txtM(0).text = TotalesProyecto.TotalVariablesMuertas
txtM(1).text = TotalesProyecto.TotalConstantesMuertas
txtM(2).text = TotalesProyecto.TotalFuncionesMuertas
txtM(3).text = TotalesProyecto.TotalSubsMuertas
txtM(4).text = TotalesProyecto.TotalPropiedadesMuertas
txtM(5).text = TotalesProyecto.TotalEnumeracionesMuertas
txtM(6).text = TotalesProyecto.TotalTiposMuertos
txtM(7).text = TotalesProyecto.TotalArchivosMuertos
txtM(8).text = TotalesProyecto.TotalApiMuertas
txtM(9).text = TotalesProyecto.TotalArrayMuertas
txtM(10).text = 0
txtTot(1).text = Totales(2)
With mGradient
.Angle = 90 '.Angle
.Color1 = 16744448
.Color2 = 0
.Draw picDraw
End With
For k = 1 To UBound(Proyecto.aArchivos)
Call CargaDetalleAnalisis(k)
Next k
Call FontStuff(Me.Caption, picDraw)
End Sub
'carga el detalle del analisis
Private Sub CargaDetalleAnalisis(ByVal k As Integer)
Dim j As Integer
Dim c As Integer
Dim r As Integer
Dim Problema As String
Dim Icono As Integer
Dim Ubicacion As String
Dim Tipo As String
Dim Comen As String
c = lvwInfoAna.ListItems.Count + 1
'cargar los problemas en la parte general
For j = 1 To UBound(Proyecto.aArchivos(k).aAnalisis)
Icono = Proyecto.aArchivos(k).aAnalisis(j).Icono
Problema = Proyecto.aArchivos(k).aAnalisis(j).Problema
Ubicacion = Proyecto.aArchivos(k).aAnalisis(j).Ubicacion
Tipo = Proyecto.aArchivos(k).aAnalisis(j).Tipo
Comen = Proyecto.aArchivos(k).aAnalisis(j).Comentario
lvwInfoAna.ListItems.Add , , Format(CStr(c), "000") ', Icono, Icono
lvwInfoAna.ListItems(c).SubItems(1) = Problema
lvwInfoAna.ListItems(c).SubItems(2) = Ubicacion
lvwInfoAna.ListItems(c).SubItems(3) = Tipo
lvwInfoAna.ListItems(c).SubItems(4) = Comen
c = c + 1
Next j
'cargar los problemas a nivel de procedimientos
For r = 1 To UBound(Proyecto.aArchivos(k).aRutinas())
For j = 1 To UBound(Proyecto.aArchivos(k).aRutinas(r).aAnalisis)
Icono = Proyecto.aArchivos(k).aRutinas(r).aAnalisis(j).Icono
Problema = Proyecto.aArchivos(k).aRutinas(r).aAnalisis(j).Problema
Ubicacion = Proyecto.aArchivos(k).aRutinas(r).aAnalisis(j).Ubicacion
Tipo = Proyecto.aArchivos(k).aRutinas(r).aAnalisis(j).Tipo
Comen = Proyecto.aArchivos(k).aRutinas(r).aAnalisis(j).Comentario
lvwInfoAna.ListItems.Add , , Format(CStr(c), "000") ', Icono, Icono
lvwInfoAna.ListItems(c).SubItems(1) = Problema
lvwInfoAna.ListItems(c).SubItems(2) = Ubicacion
lvwInfoAna.ListItems(c).SubItems(3) = Tipo
lvwInfoAna.ListItems(c).SubItems(4) = Comen
c = c + 1
Next j
Next r
End Sub
Private Sub Form_Unload(Cancel As Integer)
Set frmAnaResu = Nothing
End Sub