项目

一般

简介

4691json.txt

李 凯健, 2023-10-16 12:38

 
1
<h2><b>Javascript Error: Undefined variable batval
2

    
3
 At line 213, line => 
4

    
5
	if (batval==
6
</b></h2>
7
<pre>__header("Content-Type","text/html; charset=gb2312");
8
var serr="{\"op\":\"op err\"}";
9
var tbname = "";
10
var ikind = itype / 256;
11
var imode=0;
12
if (ikind == 1) 
13
{
14
	if (itype==259)  tbname = "tbTransf";
15
	else if (itype==260)  tbname = "tbPowSCADA";
16
	else if (itype==261)  tbname = "tbFBJK002G3S";
17
	else if (itype==262)  tbname = "tbHC311A";
18
	else if (itype==264)  tbname = "tbPsmE10c";
19
	else if (itype==265)  tbname = "tbElecDeepSeaDynemo";
20
	else if (itype==266)  tbname = "tbElecUpsEast";
21
	else if (itype==267)  tbname = "tbWaterMeter";
22
	else if (itype==268)  tbname = "tbElecJpmcwb";
23
	else if (itype==269)  tbname = "tbElecJSYMK141";
24
	else if (itype==270)  tbname = "tbElecCUC06H";
25
	else if (itype==271)  tbname = "tbElecAcsws";
26
	else if (itype==272)  tbname = "tbElecXuanYue";
27
	else if (itype==273)  tbname = "tbElecCur";
28
	else if (itype==274)  tbname = "tbElecCUC12H";
29
	else if (itype==276)  tbname = "tbElecIDCA21x6";
30
	else if (itype==277)  tbname = "tbElecPS48600";
31
	else tbname = "tbElec";
32
}
33
else if (ikind == 2)
34
{
35
	if (itype == 513)
36
		tbname = "tbElcSwA1086";
37
	else if (itype == 514)
38
		tbname = "tbElecSwTime12";
39
	else if (itype == 515){
40
		tbname = "tbElcSwTrans";
41
		if (batval==1) tbname="tbTransBaseInfo";
42
		else if (batval==2) tbname="tbTransMachineInfo";
43
		else if (batval==3) tbname="tbTransExcitateInfo";
44
		else if (batval==4) tbname="tbTransAmplifierInfo";
45
		else if (batval==5) tbname="tbTransPowerInfo";
46
	}
47
	else if (itype == 516)
48
		tbname = "tbElcSwIDCA21";
49
	else if (itype == 517)
50
		tbname = "tbElcSwRelay";
51
	else
52
		tbname = "tbOnOff";
53
}
54
else if (ikind == 3) 
55
{
56
	 if (itype < 788) 
57
		tbname = "tbUps";
58
	 else if (itype==788) 
59
		tbname = "tbUpsGXE";
60
	 else
61
		tbname = "tbUpsEx";
62
}
63
else if (ikind == 4)
64
{
65
  if (itype==1024) tbname = "tbBattDb100";
66
  else if (itype==1025) tbname = "tbBattAdu1000";
67
  else if (itype==1027) tbname = "tbBattRTVS";
68
  else if (itype==1028) {
69
    tbname = "tbBatt100";
70
    if (batval==1) tbname="tbBattVal";
71
  }
72
  else if (itype==1029) {
73
    tbname = "tbBattEB90";
74
    if (batval==1) tbname="tbBattEb90Val";
75
  }
76
  else if (itype==1030) {
77
    tbname = "tbBattBms";
78
    if (batval==1) tbname="tbBattBMSVal";
79
  }
80
  else if (itype==1031) tbname = "tbBattH3GTV";
81
  else if (itype==1032) tbname = "tbBattH3GTC";
82
  else if (itype==1033) tbname = "tbBattA60";
83
}
84
else if (ikind == 5)
85
{
86
  if (itype == 1282) tbname = "tbEnvirPm";
87
  else if (itype == 1283) tbname = "tbEnvirNHFS45";
88
  else if (itype == 1284) tbname = "tbEnvirLaserPM";
89
  else if (itype == 1285) tbname = "tbEnvirYS8159B";
90
  else if (itype == 1286) tbname = "tbEnvirT3";
91
  else if (itype == 1287) tbname = "tbEnvirJxbs";
92
  else if (itype==1288) {
93
    tbname = "tbSitePro";
94
    if (batval==1) tbname="tbSiteProTemHum";
95
    if (batval==2) tbname="tbSiteProLeak";
96
    if (batval==3) tbname="tbSiteProDi";
97
    if (batval==4) tbname="tbSiteProAirc";
98
  }
99
  else if (itype == 1289) tbname = "tbEnvirLightning";
100
  else if (itype == 1291) tbname = "tbEnvirO3";
101
  else if (itype == 1292) tbname = "tbEnvirBWDK3208E";
102
  else if (itype == 1293) tbname = "tbEnvirEx";
103
  else if (itype == 1300) tbname = "tbEnvirSobey";
104
  else if (itype == 1301) tbname = "tbXF";
105
  else if (itype == 1303) tbname = "tbEnvirJXBS3001QY";
106
  else if (itype == 1304) tbname = "tbEnvirJXBS4001O2";
107
  else if (itype == 1305) tbname = "tbEnvirWHCO";
108
  else if (itype == 1306) tbname = "tbEnvirVoice";
109
  else if (itype == 1307) tbname = "tbEnvirWindSpeed";
110
  else if (itype == 1308) tbname = "tbEnvirWindDir";
111
  else if (itype == 1308) tbname = "tbEnvirNew";
112
  else if (itype == 1310) tbname = "tbEnvirCPL";
113
  else tbname = "tbEnvir";
114
}
115
else if (ikind == 6) 
116
{
117
	tbname = "tbLeak";
118
}
119
else if (ikind == 7)
120
{
121
	if (itype == 1794) tbname = "tbAircLcpDx";
122
	else if (itype == 1795) tbname = "tbAircRS816";
123
	else if (itype == 1796) tbname = "tbAircIACRx0";
124
	else if (itype == 1797) tbname = "tbAircMitsubishi";
125
	else if (itype == 1798) tbname = "tbAircDeHumer";
126
	else if (itype == 1799) tbname = "tbAircEK3030E";
127
	else tbname = "tbAirc";
128
}
129
else if (ikind == 8)
130
{
131
  if (itype==2048) tbname = "tbCyberMate";
132
  else if (itype==2049) tbname = "tbEmerson";
133
  else if (itype==2050) tbname = "tbCybStulz";
134
  else if (itype==2052) tbname = "tbPlc";
135
  else if (itype==2053) tbname = "tbLinegt";
136
  else if (itype==2054) tbname = "tbLinegi";
137
  else if (itype==2055) tbname = "tbCanatal";
138
  else if (itype==2056) tbname = "tbPex";
139
  else if (itype==2057) tbname = "tbDME3000";
140
  else if (itype==2058) tbname = "tbMatrix";
141
  else if (itype==2059) tbname = "tbStation";
142
  else if (itype==2060) tbname = "tbTEMaster";
143
  else if (itype==2061) tbname = "tbCyberHiross";
144
  else if (itype==2062) tbname = "tbEvoCyberDx";
145
  else if (itype==2063) tbname = "tbRDA050CXTILI";
146
  else if (itype==2064) tbname = "tbSunrise";
147
  else if (itype==2065) tbname = "tbDF34BMS";
148
  else if (itype==2066) tbname = "tbAircK200";
149
  else if (itype==2067) tbname = "tbCyberDaiKin";
150
  else if (itype==2068) tbname = "tbCyberDataCool";
151
  else if (itype==2069) tbname = "tbCyberHairf";
152
  else if (itype==2070) tbname = "tbCyberCanatalKN10";
153
  else if (itype==2071) tbname = "tbCyberUG40";
154
  else if (itype==2072) tbname = "tbCyberInRowRD";
155
  else if (itype==2073) tbname = "tbCyberHstx";
156
  else if (itype==2074) tbname = "tbCyberPcos";
157
  else if (itype==2075) tbname = "tbCyberSCA";
158
  else if (itype==2076) tbname = "tbCyberJADC0110b";
159
  else if (itype==2077) tbname = "tbCyberCoolSmart";
160
  else if (itype==2078) tbname = "tbCyberDelta";
161
  else if (itype==2079) tbname = "tbCyberEcDx";
162
  else if (itype==2080) tbname = "tbCyberCSHH";
163
  else if (itype==2081) tbname = "tbCoolMaster7000Dx";
164
  else if (itype==2082) tbname = "tbCoolMaster7000Jd";
165
  else if (itype==2083) tbname = "tbCyberHirolink";
166
  else if (itype==2084) tbname = "tbCybIR33";
167
  else if (itype==2085) tbname = "tbCybAcxHpr";
168
  else if (itype==2086) tbname = "tbCybHserial";
169
  else if (itype==2087) tbname = "tbCyberMateDX";
170
  else if (itype==2088) tbname = "tbCyberHFSerial";
171
  else if (itype==2089) tbname = "tbCybMideaCN16";
172
  else if (itype==2090) tbname = "tbCybMideaUT204E";
173
  else if (itype==2091) tbname = "tbCybBlackShidlds";
174
  else if (itype==2092) tbname = "tbCyberZhX12";
175
  else if (itype==2093) tbname = "tbAircICX";
176
  else if (itype==2094) tbname = "tbCyberEk503";
177
  else if (itype==2095) tbname = "tbCyberSL1600F";
178
  else if (itype==2096) tbname = "tbCyberDeHumer";
179
  else if (itype==2097) tbname = "tbCyberStulzC7000CPDU_A";
180
  else if (itype==2099) tbname = "tbCyberZLU09D2HEAC";
181
  else if (itype==2100) tbname = "tbAircCM";
182
  else if (itype==2101) tbname = "tbCyberHaier";
183
  else if (itype==2102) tbname = "tbCyberClimente";
184
  else if (itype==2104) tbname = "tbCyberGDHW";
185
  else if (itype==2108) tbname = "tbCyberStulzC";
186
  else if (itype==2109) tbname = "tbCyberEmersonC";
187
  else tbname = "tbCyb";
188
}
189
else if (ikind == 9)
190
{
191
  if (itype == 2313) tbname = "tbMlan7vxpxj";
192
  else tbname = "tbDio";
193
}
194
else if (ikind == 10) tbname = "tbAlm";
195
else if (ikind == 11) tbname = "tbMon";
196
else if (ikind == 12) tbname = "tbCamera";
197
else if (ikind == 13) 
198
{
199
	if (itype==3332) tbname = "tbCXV6V8";
200
	else if (itype==3333) tbname = "tbCardRS485reader";
201
	else if (itype==3334) tbname = "tbCard20x0";
202
	else if (itype==3335) tbname = "tbPingNet";
203
	else
204
	tbname = "tbCardLog";
205
}
206
else if (ikind == 14)
207
{
208
	tbname = "tbSvr";
209
	imode=0;
210
}
211
else if (ikind==16 || ikind==17)
212
{
213
	tbname = "tbSnmpDat";
214
	imode=0;
215
}
216
else if (ikind==18 || ikind==19)
217
{
218
	tbname = "tbModbus";
219
	if (batval==1)
220
		tbname = "tbModbusDat";
221
	imode=0;
222
}
223
else if (ikind==20 || ikind==21)
224
{
225
	tbname = "tbYdt1363Dat";
226
	imode=0;
227
}
228

    
229
if (tbname=="")
230
  write(serr);
231
else
232
{
233
  db_Open("/NandFlash/tmp/dbDat0.db3");
234
  if (sid==0)
235
    db_QryAdv("select * from "+tbname+" where Type="+itype,itype);
236
  else
237
    db_QryAdv("select * from "+tbname+" where SID="+sid,sid,imode);
238
  db_Close();
239
}
240
</pre></body></html>