@measurequick/measurequick-report-generator 1.5.21 → 1.5.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/report-gen-scripts/nci-report.js +65 -50
package/package.json
CHANGED
|
@@ -42,56 +42,71 @@ export async function getReport(payload, _test) {
|
|
|
42
42
|
supply_pressure = 4,
|
|
43
43
|
test = payload&&payload.test ? payload.test : {};
|
|
44
44
|
|
|
45
|
-
if (test.
|
|
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
|
-
|
|
45
|
+
if (test.ductSystemType === 1){
|
|
46
|
+
if (test.ductScreeningFilterLocation === 'Grille'){
|
|
47
|
+
filter_pressure_drop = 1,
|
|
48
|
+
return_pressure_drop = 2,
|
|
49
|
+
coil_pressure_drop = 3,
|
|
50
|
+
supply_pressure = 4;
|
|
51
|
+
} else {
|
|
52
|
+
filter_pressure_drop = 2,
|
|
53
|
+
return_pressure_drop = 1,
|
|
54
|
+
coil_pressure_drop = 3,
|
|
55
|
+
supply_pressure = 4;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
else {
|
|
59
|
+
if (test.ductScreeningSystemType === 'Package Draw Through' && test.ductScreeningFilterLocation === 'Grille'){
|
|
60
|
+
filter_pressure_drop = 1,
|
|
61
|
+
return_pressure_drop = 2,
|
|
62
|
+
coil_pressure_drop = 3,
|
|
63
|
+
supply_pressure = 4;
|
|
64
|
+
} else if (test.ductScreeningSystemType === 'Package Draw Through' && test.ductScreeningFilterLocation === 'Slot'){
|
|
65
|
+
filter_pressure_drop = 2,
|
|
66
|
+
return_pressure_drop = 1,
|
|
67
|
+
coil_pressure_drop = 3,
|
|
68
|
+
supply_pressure = 4;
|
|
69
|
+
} else if (test.ductScreeningSystemType === 'Package Blow Through' && test.ductScreeningFilterLocation === 'Grille') {
|
|
70
|
+
filter_pressure_drop = 1,
|
|
71
|
+
return_pressure_drop = 2,
|
|
72
|
+
coil_pressure_drop = 3,
|
|
73
|
+
supply_pressure = 4;
|
|
74
|
+
} else if (test.ductScreeningSystemType === 'Package Blow Through' && test.ductScreeningFilterLocation === 'Slot') {
|
|
75
|
+
filter_pressure_drop = 2,
|
|
76
|
+
return_pressure_drop = 1,
|
|
77
|
+
coil_pressure_drop = 3,
|
|
78
|
+
supply_pressure = 4;
|
|
79
|
+
} else if (test.ductScreeningSystemType === 'AHU Draw Through' && test.ductScreeningFilterLocation === 'Grille'){
|
|
80
|
+
filter_pressure_drop = 1,
|
|
81
|
+
return_pressure_drop = 2,
|
|
82
|
+
coil_pressure_drop = 3,
|
|
83
|
+
supply_pressure = 4;
|
|
84
|
+
} else if (test.ductScreeningSystemType === 'AHU Draw Through' && test.ductScreeningFilterLocation === 'Slot'){
|
|
85
|
+
filter_pressure_drop = 2,
|
|
86
|
+
return_pressure_drop = 1,
|
|
87
|
+
coil_pressure_drop = 3,
|
|
88
|
+
supply_pressure = 4;
|
|
89
|
+
} else if (test.ductScreeningSystemType === 'AHU Blow Through' && test.ductScreeningFilterLocation === 'Grille'){
|
|
90
|
+
filter_pressure_drop = 1,
|
|
91
|
+
return_pressure_drop = 2,
|
|
92
|
+
coil_pressure_drop = 3,
|
|
93
|
+
supply_pressure = 4;
|
|
94
|
+
} else if (test.ductScreeningSystemType === 'AHU Blow Through' && test.ductScreeningFilterLocation === 'Slot'){
|
|
95
|
+
filter_pressure_drop = 2,
|
|
96
|
+
return_pressure_drop = 1,
|
|
97
|
+
coil_pressure_drop = 3,
|
|
98
|
+
supply_pressure = 4;
|
|
99
|
+
} else if (test.ductScreeningSystemType === 'Furnace' && test.ductScreeningFilterLocation === 'Grille'){
|
|
100
|
+
filter_pressure_drop = 1,
|
|
101
|
+
return_pressure_drop = 2,
|
|
102
|
+
coil_pressure_drop = 3,
|
|
103
|
+
supply_pressure = 4;
|
|
104
|
+
} else if (test.ductScreeningSystemType === 'Furnace' && test.ductScreeningFilterLocation === 'Slot'){
|
|
105
|
+
filter_pressure_drop = 2,
|
|
106
|
+
return_pressure_drop = 1,
|
|
107
|
+
coil_pressure_drop = 3,
|
|
108
|
+
supply_pressure = 4;
|
|
109
|
+
}
|
|
95
110
|
}
|
|
96
111
|
|
|
97
112
|
// embed company logo and profile picture
|