projectWoker.js 88 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898
  1. /**
  2. *
  3. */
  4. var baseUrl = '';
  5. var theme = '';
  6. var viewAlarmType,pieAlarmType,statusType;
  7. var filterwin;
  8. var FilterWin;
  9. Ext.onReady(function(){
  10. baseUrl = document.getElementById('basePath').value;
  11. theme = document.getElementById('theme').value;
  12. $("#V_LOGINNAME").val(sessionStorage.getItem('V_LOGINNAME'));
  13. $("#V_PASSWORD").val(sessionStorage.getItem('V_PASSWORD'));
  14. var queryJson = new Object();
  15. // queryJson.V_LOGINNAME = $("#V_LOGINNAME").val();
  16. // queryJson.V_PASSWORD = $("#V_PASSWORD").val();
  17. var draw_confirm = function(start_data,end_data,project_date){
  18. var start_data = start_data;
  19. var end_data = end_data;
  20. var project_date = project_date;
  21. var woker_talk = document.getElementById('woker_talk');
  22. var div1 = document.createElement('div');
  23. div1.width=580;
  24. div1.height=841;
  25. div1.setAttribute('id','div1_label1');
  26. woker_talk.appendChild(div1);
  27. var title = document.createElement('h2');
  28. title.id = 'device_list_status_title';
  29. title.style.fontSize='14px';
  30. title.style.textAlign='center';
  31. title.style.fontWeight='bold';
  32. title.innerHTML=ConfirmStore[0].company_name+'消防报警系统监测数据';
  33. div1.appendChild(title);
  34. var title1 = document.createElement('h2');
  35. title1.style.textAlign='center';
  36. title1.style.fontSize='14px';
  37. title1.style.fontWeight='bold';
  38. title1.innerHTML=project_date+'月报表';
  39. div1.appendChild(title1);
  40. var title2 = document.createElement('h3');
  41. title2.style.textAlign='left';
  42. title2.style.fontSize='14px';
  43. title2.style.fontWeight='bold';
  44. title2.innerHTML='1 基本情况';
  45. div1.appendChild(title2);
  46. var title88 = document.createElement('h4');
  47. title88.style.textAlign='left';
  48. title88.style.fontSize='14px';
  49. title88.style.fontWeight='bold';
  50. title88.innerHTML='1.1 项目情况';
  51. div1.appendChild(title88);
  52. var sta = document.createElement('table');
  53. sta.style.marginTop='10px';
  54. sta.width='100%';
  55. sta.style.marginBottom='20px';
  56. sta.style.borderRight ='1px solid #BEBEBE';
  57. sta.style.borderBottom ='1px solid #BEBEBE';
  58. div1.appendChild(sta);
  59. var tr = document.createElement('tr');
  60. sta.appendChild(tr);
  61. var td = document.createElement('td');
  62. td.width='20%';
  63. td.style.borderLeft ='1px solid #BEBEBE';
  64. td.style.borderTop ='1px solid #BEBEBE';
  65. td.style.textAlign='center';
  66. td.innerHTML='单位名称';
  67. td.style.fontSize='14px';
  68. tr.appendChild(td);
  69. var td1 = document.createElement('td');
  70. td1.width='80%';
  71. td1.colSpan='5';
  72. td1.style.textAlign='center';
  73. td1.style.borderLeft ='1px solid #BEBEBE';
  74. td1.style.borderTop ='1px solid #BEBEBE';
  75. td1.innerHTML=ConfirmStore[0].company_name;
  76. td1.style.fontSize='14px';
  77. tr.appendChild(td1);
  78. var tr1 = document.createElement('tr');
  79. sta.appendChild(tr1);
  80. var td2 = document.createElement('td');
  81. td2.width='20%';
  82. td2.style.textAlign='center';
  83. td2.style.borderLeft ='1px solid #BEBEBE';
  84. td2.style.borderTop ='1px solid #BEBEBE';
  85. td2.innerHTML='进场日期';
  86. td2.style.fontSize='14px';
  87. tr1.appendChild(td2);
  88. var td3 = document.createElement('td');
  89. td3.width='16%';
  90. td3.style.textAlign='center';
  91. td3.style.borderLeft ='1px solid #BEBEBE';
  92. td3.style.borderTop ='1px solid #BEBEBE';
  93. td3.innerHTML=ConfirmStore[0].approach_time;
  94. td3.style.fontSize='14px';
  95. tr1.appendChild(td3);
  96. var td4 = document.createElement('td');
  97. td4.width='16%';
  98. td4.style.textAlign='center';
  99. td4.innerHTML='完工日期';
  100. td4.style.fontSize='14px';
  101. td4.style.borderLeft ='1px solid #BEBEBE';
  102. td4.style.borderTop ='1px solid #BEBEBE';
  103. tr1.appendChild(td4);
  104. var td5 = document.createElement('td');
  105. td5.width='16%';
  106. td5.style.textAlign='center';
  107. td5.innerHTML=ConfirmStore[0].complete_time;
  108. td5.style.fontSize='14px';
  109. td5.style.borderLeft ='1px solid #BEBEBE';
  110. td5.style.borderTop ='1px solid #BEBEBE';
  111. tr1.appendChild(td5);
  112. var td6 = document.createElement('td');
  113. td6.width='16%';
  114. td6.style.textAlign='center';
  115. td6.style.borderLeft ='1px solid #BEBEBE';
  116. td6.style.borderTop ='1px solid #BEBEBE';
  117. td6.innerHTML='验收日期';
  118. td6.style.fontSize='14px';
  119. tr1.appendChild(td6);
  120. var td7 = document.createElement('td');
  121. td7.width='16%';
  122. td7.style.textAlign='center';
  123. td7.style.borderLeft ='1px solid #BEBEBE';
  124. td7.style.borderTop ='1px solid #BEBEBE';
  125. td7.innerHTML=ConfirmStore[0].check_time;
  126. td7.style.fontSize='14px';
  127. tr1.appendChild(td7);
  128. var title3 = document.createElement('div');
  129. title3.style.textAlign='center';
  130. title3.style.fontSize='14px';
  131. title3.style.marginBottom='20px';
  132. title3.style.fontWeight='bold';
  133. title3.innerHTML='表1 项目基本情况表';
  134. div1.appendChild(title3);
  135. var title4 = document.createElement('h4');
  136. title4.style.textAlign='left';
  137. title4.style.fontSize='14px';
  138. title4.style.fontWeight='bold';
  139. title4.innerHTML='1.2 安装设备情况';
  140. div1.appendChild(title4);
  141. var sta1 = document.createElement('table');
  142. sta1.style.marginTop='10px';
  143. sta1.width='100%';
  144. sta1.style.marginBottom='20px';
  145. sta1.style.borderRight ='1px solid #BEBEBE';
  146. sta1.style.borderBottom ='1px solid #BEBEBE';
  147. div1.appendChild(sta1);
  148. var tr12 = document.createElement('tr');
  149. sta1.appendChild(tr12);
  150. var th = document.createElement('th');
  151. th.width='10%';
  152. th.style.borderLeft ='1px solid #BEBEBE';
  153. th.style.borderTop ='1px solid #BEBEBE';
  154. th.style.textAlign='center';
  155. th.innerHTML='序号';
  156. th.style.fontSize='14px';
  157. tr12.appendChild(th);
  158. var th1 = document.createElement('th');
  159. th1.width='25%';
  160. th1.style.textAlign='center';
  161. th1.innerHTML='设备名称';
  162. th1.style.fontSize='14px';
  163. th1.style.borderLeft ='1px solid #BEBEBE';
  164. th1.style.borderTop ='1px solid #BEBEBE';
  165. tr12.appendChild(th1);
  166. var th2 = document.createElement('th');
  167. th2.width='25%';
  168. th2.style.textAlign='center';
  169. th2.innerHTML='规格型号';
  170. th2.style.fontSize='14px';
  171. th2.style.borderLeft ='1px solid #BEBEBE';
  172. th2.style.borderTop ='1px solid #BEBEBE';
  173. tr12.appendChild(th2);
  174. var th3 = document.createElement('th');
  175. th3.width='10%';
  176. th3.style.textAlign='center';
  177. th3.innerHTML='数量';
  178. th3.style.fontSize='14px';
  179. th3.style.borderLeft ='1px solid #BEBEBE';
  180. th3.style.borderTop ='1px solid #BEBEBE';
  181. tr12.appendChild(th3);
  182. var th4 = document.createElement('th');
  183. th4.width='30%';
  184. th4.style.textAlign='center';
  185. th4.innerHTML='备注';
  186. th4.style.fontSize='14px';
  187. th4.style.borderLeft ='1px solid #BEBEBE';
  188. th4.style.borderTop ='1px solid #BEBEBE';
  189. tr12.appendChild(th4);
  190. if(ConfirmStore1.length>0){
  191. if(ConfirmStore1.length==1){
  192. var tr13 = document.createElement('tr');
  193. sta1.appendChild(tr13);
  194. var td_details_num = document.createElement('td');
  195. td_details_num.width='5%';
  196. td_details_num.style.textAlign='center';
  197. td_details_num.innerHTML=1;
  198. td_details_num.style.fontSize='14px';
  199. td_details_num.style.borderLeft ='1px solid #BEBEBE';
  200. td_details_num.style.borderTop ='1px solid #BEBEBE';
  201. tr13.appendChild(td_details_num);
  202. var td_details_name= document.createElement('td');
  203. td_details_name.width='25%';
  204. td_details_name.style.textAlign='center';
  205. td_details_name.innerHTML= ConfirmStore1[0].device_name;
  206. td_details_name.style.borderLeft ='1px solid #BEBEBE';
  207. td_details_name.style.borderTop ='1px solid #BEBEBE';
  208. td_details_name.style.fontSize='14px';
  209. tr13.appendChild(td_details_name);
  210. var td_details_specifications = document.createElement('td');
  211. td_details_specifications.width='25%';
  212. td_details_specifications.style.textAlign='center';
  213. td_details_specifications.innerHTML=ConfirmStore1[0].specifications;
  214. td_details_specifications.style.fontSize='14px';
  215. td_details_specifications.style.borderLeft ='1px solid #BEBEBE';
  216. td_details_specifications.style.borderTop ='1px solid #BEBEBE';
  217. tr13.appendChild(td_details_specifications);
  218. var td_details_device_num = document.createElement('td');
  219. td_details_device_num.width='10%';
  220. td_details_device_num.style.textAlign='center';
  221. td_details_device_num.innerHTML=ConfirmStore1[0].device_num;
  222. td_details_device_num.style.fontSize='14px';
  223. td_details_device_num.style.borderLeft ='1px solid #BEBEBE';
  224. td_details_device_num.style.borderTop ='1px solid #BEBEBE';
  225. tr13.appendChild(td_details_device_num);
  226. var td_details_data_info = document.createElement('td');
  227. td_details_data_info.width='30%';
  228. td_details_data_info.style.textAlign='center';
  229. td_details_data_info.innerHTML=ConfirmStore1[0].data_info;
  230. td_details_data_info.style.fontSize='14px';
  231. td_details_data_info.style.borderLeft ='1px solid #BEBEBE';
  232. td_details_data_info.style.borderTop ='1px solid #BEBEBE';
  233. tr13.appendChild(td_details_data_info);
  234. }else{
  235. for(var i=0;i<ConfirmStore1.length;i++){
  236. var tr13 = document.createElement('tr');
  237. sta1.appendChild(tr13);
  238. var td_details_num = document.createElement('td');
  239. td_details_num.width='10%';
  240. td_details_num.style.textAlign='center';
  241. td_details_num.innerHTML=i+1;
  242. td_details_num.style.fontSize='14px';
  243. td_details_num.style.borderLeft ='1px solid #BEBEBE';
  244. td_details_num.style.borderTop ='1px solid #BEBEBE';
  245. tr13.appendChild(td_details_num);
  246. var td_details_name= document.createElement('td');
  247. td_details_name.width='25%';
  248. td_details_name.style.textAlign='center';
  249. td_details_name.innerHTML= ConfirmStore1[i].device_name;
  250. td_details_name.style.fontSize='14px';
  251. td_details_name.style.borderLeft ='1px solid #BEBEBE';
  252. td_details_name.style.borderTop ='1px solid #BEBEBE';
  253. tr13.appendChild(td_details_name);
  254. var td_details_specifications = document.createElement('td');
  255. td_details_specifications.width='25%';
  256. td_details_specifications.style.textAlign='center';
  257. td_details_specifications.innerHTML=ConfirmStore1[i].specifications;
  258. td_details_specifications.style.fontSize='14px';
  259. td_details_specifications.style.borderLeft ='1px solid #BEBEBE';
  260. td_details_specifications.style.borderTop ='1px solid #BEBEBE';
  261. tr13.appendChild(td_details_specifications);
  262. var td_details_device_num = document.createElement('td');
  263. td_details_device_num.width='10%';
  264. td_details_device_num.style.textAlign='center';
  265. td_details_device_num.innerHTML=ConfirmStore1[i].device_num;
  266. td_details_device_num.style.fontSize='14px';
  267. td_details_device_num.style.borderLeft ='1px solid #BEBEBE';
  268. td_details_device_num.style.borderTop ='1px solid #BEBEBE';
  269. tr13.appendChild(td_details_device_num);
  270. var td_details_data_info = document.createElement('td');
  271. td_details_data_info.width='30%';
  272. td_details_data_info.style.textAlign='center';
  273. td_details_data_info.innerHTML=ConfirmStore1[i].data_info;
  274. td_details_data_info.style.fontSize='14px';
  275. td_details_data_info.style.borderLeft ='1px solid #BEBEBE';
  276. td_details_data_info.style.borderTop ='1px solid #BEBEBE';
  277. tr13.appendChild(td_details_data_info);
  278. }
  279. var tr_details_device_num1 = document.createElement('tr');
  280. sta1.appendChild(tr_details_device_num1);
  281. var td_details_device_num1 = document.createElement('td');
  282. // td_details_device_num1.width='30%';
  283. td_details_device_num1.style.textAlign='center';
  284. td_details_device_num1.colSpan='2';
  285. td_details_device_num1.innerHTML='合计';
  286. td_details_device_num1.style.fontSize='14px';
  287. td_details_device_num1.style.borderLeft ='1px solid #BEBEBE';
  288. td_details_device_num1.style.borderTop ='1px solid #BEBEBE';
  289. tr_details_device_num1.appendChild(td_details_device_num1);
  290. var td_details_device_num2 = document.createElement('td');
  291. td_details_device_num2.width='25%';
  292. td_details_device_num2.style.textAlign='center';
  293. td_details_device_num2.innerHTML='';
  294. td_details_device_num2.style.fontSize='14px';
  295. td_details_device_num2.style.borderLeft ='1px solid #BEBEBE';
  296. td_details_device_num2.style.borderTop ='1px solid #BEBEBE';
  297. tr_details_device_num1.appendChild(td_details_device_num2);
  298. var td_details_device_num3 = document.createElement('td');
  299. td_details_device_num3.width='10%';
  300. td_details_device_num3.style.textAlign='center';
  301. td_details_device_num3.innerHTML=device_num1;
  302. td_details_device_num3.style.fontSize='14px';
  303. td_details_device_num3.style.borderLeft ='1px solid #BEBEBE';
  304. td_details_device_num3.style.borderTop ='1px solid #BEBEBE';
  305. tr_details_device_num1.appendChild(td_details_device_num3);
  306. var td_details_device_num4 = document.createElement('td');
  307. td_details_device_num4.width='30%';
  308. td_details_device_num4.style.textAlign='center';
  309. td_details_device_num4.innerHTML='';
  310. td_details_device_num4.style.fontSize='14px';
  311. td_details_device_num4.style.borderLeft ='1px solid #BEBEBE';
  312. td_details_device_num4.style.borderTop ='1px solid #BEBEBE';
  313. tr_details_device_num1.appendChild(td_details_device_num4);
  314. }
  315. }
  316. var title9 = document.createElement('div');
  317. title9.style.textAlign='center';
  318. title9.style.fontSize='14px';
  319. title9.style.marginBottom='20px';
  320. title9.style.fontWeight='bold';
  321. title9.innerHTML='表2 项目安装设备清单';
  322. div1.appendChild(title9);
  323. var title10 = document.createElement('h4');
  324. title10.style.textAlign='left';
  325. title10.style.fontSize='14px';
  326. title10.style.fontWeight='bold';
  327. title10.innerHTML='1.3 监测点情况';
  328. div1.appendChild(title10);
  329. var sta2 = document.createElement('table');
  330. sta2.style.marginTop='10px';
  331. sta2.width='100%';
  332. sta2.style.marginBottom='20px';
  333. sta2.style.borderRight ='1px solid #BEBEBE';
  334. sta2.style.borderBottom ='1px solid #BEBEBE';
  335. div1.appendChild(sta2);
  336. var tr14 = document.createElement('tr');
  337. sta2.appendChild(tr14);
  338. var th5 = document.createElement('th');
  339. th5.width='10%';
  340. th5.style.textAlign='center';
  341. th5.innerHTML='序号';
  342. th5.style.fontSize='14px';
  343. th5.style.borderLeft ='1px solid #BEBEBE';
  344. th5.style.borderTop ='1px solid #BEBEBE';
  345. tr14.appendChild(th5);
  346. var th6 = document.createElement('th');
  347. th6.width='25%';
  348. th6.style.textAlign='center';
  349. th6.innerHTML='监控子系统';
  350. th6.style.fontSize='14px';
  351. th6.style.borderLeft ='1px solid #BEBEBE';
  352. th6.style.borderTop ='1px solid #BEBEBE';
  353. tr14.appendChild(th6);
  354. var th7 = document.createElement('th');
  355. th7.width='25%';
  356. th7.style.textAlign='center';
  357. th7.innerHTML='监测点类型';
  358. th7.style.fontSize='14px';
  359. th7.style.borderLeft ='1px solid #BEBEBE';
  360. th7.style.borderTop ='1px solid #BEBEBE';
  361. tr14.appendChild(th7);
  362. var th8 = document.createElement('th');
  363. th8.width='10%';
  364. th8.style.textAlign='center';
  365. th8.innerHTML='数量';
  366. th8.style.fontSize='14px';
  367. th8.style.borderLeft ='1px solid #BEBEBE';
  368. th8.style.borderTop ='1px solid #BEBEBE';
  369. tr14.appendChild(th8);
  370. var th9 = document.createElement('th');
  371. th9.width='30%';
  372. th9.style.textAlign='center';
  373. th9.innerHTML='备注';
  374. th9.style.fontSize='14px';
  375. th9.style.borderLeft ='1px solid #BEBEBE';
  376. th9.style.borderTop ='1px solid #BEBEBE';
  377. tr14.appendChild(th9);
  378. if(ConfirmStore2.length>0){
  379. if(ConfirmStore2.length==1){
  380. var tr13 = document.createElement('tr');
  381. sta2.appendChild(tr13);
  382. var td_details_num = document.createElement('td');
  383. td_details_num.width='10%';
  384. td_details_num.style.textAlign='center';
  385. td_details_num.style.borderLeft ='1px solid #BEBEBE';
  386. td_details_num.style.borderTop ='1px solid #BEBEBE';
  387. td_details_num.innerHTML=1;
  388. td_details_num.style.fontSize='14px';
  389. tr13.appendChild(td_details_num);
  390. var td_details_name= document.createElement('td');
  391. td_details_name.width='25%';
  392. td_details_name.style.textAlign='center';
  393. td_details_name.innerHTML= ConfirmStore2[0].device_name;
  394. td_details_name.style.borderLeft ='1px solid #BEBEBE';
  395. td_details_name.style.borderTop ='1px solid #BEBEBE';
  396. td_details_name.style.fontSize='14px';
  397. tr13.appendChild(td_details_name);
  398. var td_details_specifications = document.createElement('td');
  399. td_details_specifications.width='25%';
  400. td_details_specifications.style.textAlign='center';
  401. td_details_specifications.innerHTML=ConfirmStore2[0].specifications;
  402. td_details_specifications.style.fontSize='14px';
  403. td_details_specifications.style.borderLeft ='1px solid #BEBEBE';
  404. td_details_specifications.style.borderTop ='1px solid #BEBEBE';
  405. tr13.appendChild(td_details_specifications);
  406. var td_details_device_num = document.createElement('td');
  407. td_details_device_num.width='10%';
  408. td_details_device_num.style.textAlign='center';
  409. td_details_device_num.innerHTML=ConfirmStore2[0].device_num;
  410. td_details_device_num.style.fontSize='14px';
  411. td_details_device_num.style.borderLeft ='1px solid #BEBEBE';
  412. td_details_device_num.style.borderTop ='1px solid #BEBEBE';
  413. tr13.appendChild(td_details_device_num);
  414. var td_details_data_info = document.createElement('td');
  415. td_details_data_info.width='30%';
  416. td_details_data_info.style.textAlign='center';
  417. td_details_data_info.innerHTML=ConfirmStore2[0].data_info;
  418. td_details_data_info.style.fontSize='14px';
  419. td_details_data_info.style.borderLeft ='1px solid #BEBEBE';
  420. td_details_data_info.style.borderTop ='1px solid #BEBEBE';
  421. tr13.appendChild(td_details_data_info);
  422. }else{
  423. for(var i=0;i<ConfirmStore2.length;i++){
  424. var tr13 = document.createElement('tr');
  425. sta2.appendChild(tr13);
  426. var td_details_num = document.createElement('td');
  427. td_details_num.width='10%';
  428. td_details_num.style.textAlign='center';
  429. td_details_num.innerHTML=i+1;
  430. td_details_num.style.fontSize='14px';
  431. td_details_num.style.borderLeft ='1px solid #BEBEBE';
  432. td_details_num.style.borderTop ='1px solid #BEBEBE';
  433. tr13.appendChild(td_details_num);
  434. var td_details_name= document.createElement('td');
  435. td_details_name.width='25%';
  436. td_details_name.style.textAlign='center';
  437. td_details_name.innerHTML= ConfirmStore2[i].monitor_son;
  438. td_details_name.style.fontSize='14px';
  439. td_details_name.style.borderLeft ='1px solid #BEBEBE';
  440. td_details_name.style.borderTop ='1px solid #BEBEBE';
  441. tr13.appendChild(td_details_name);
  442. var td_details_specifications = document.createElement('td');
  443. td_details_specifications.width='25%';
  444. td_details_specifications.style.textAlign='center';
  445. td_details_specifications.innerHTML=ConfirmStore2[i].monitor_type;
  446. td_details_specifications.style.fontSize='14px';
  447. td_details_specifications.style.borderLeft ='1px solid #BEBEBE';
  448. td_details_specifications.style.borderTop ='1px solid #BEBEBE';
  449. tr13.appendChild(td_details_specifications);
  450. var td_details_device_num = document.createElement('td');
  451. td_details_device_num.width='10%';
  452. td_details_device_num.style.textAlign='center';
  453. td_details_device_num.innerHTML=ConfirmStore2[i].monitor_sum;
  454. td_details_device_num.style.fontSize='14px';
  455. td_details_device_num.style.borderLeft ='1px solid #BEBEBE';
  456. td_details_device_num.style.borderTop ='1px solid #BEBEBE';
  457. tr13.appendChild(td_details_device_num);
  458. var td_details_data_info = document.createElement('td');
  459. td_details_data_info.width='30%';
  460. td_details_data_info.style.textAlign='center';
  461. td_details_data_info.innerHTML=ConfirmStore2[i].data_info;
  462. td_details_data_info.style.fontSize='14px';
  463. td_details_data_info.style.borderLeft ='1px solid #BEBEBE';
  464. td_details_data_info.style.borderTop ='1px solid #BEBEBE';
  465. tr13.appendChild(td_details_data_info);
  466. }
  467. var tr_details_device_num1 = document.createElement('tr');
  468. sta2.appendChild(tr_details_device_num1);
  469. var td_details_device_num1 = document.createElement('td');
  470. // td_details_device_num1.width='30%';
  471. td_details_device_num1.style.textAlign='center';
  472. td_details_device_num1.colSpan='2';
  473. td_details_device_num1.innerHTML='合计';
  474. td_details_device_num1.style.fontSize='14px';
  475. td_details_device_num1.style.borderLeft ='1px solid #BEBEBE';
  476. td_details_device_num1.style.borderTop ='1px solid #BEBEBE';
  477. tr_details_device_num1.appendChild(td_details_device_num1);
  478. var td_details_device_num2 = document.createElement('td');
  479. td_details_device_num2.width='25%';
  480. td_details_device_num2.style.textAlign='center';
  481. td_details_device_num2.innerHTML='';
  482. td_details_device_num2.style.fontSize='14px';
  483. td_details_device_num2.style.borderLeft ='1px solid #BEBEBE';
  484. td_details_device_num2.style.borderTop ='1px solid #BEBEBE';
  485. tr_details_device_num1.appendChild(td_details_device_num2);
  486. var td_details_device_num3 = document.createElement('td');
  487. td_details_device_num3.width='10%';
  488. td_details_device_num3.style.textAlign='center';
  489. td_details_device_num3.innerHTML=device_num2;
  490. td_details_device_num3.style.fontSize='14px';
  491. td_details_device_num3.style.borderLeft ='1px solid #BEBEBE';
  492. td_details_device_num3.style.borderTop ='1px solid #BEBEBE';
  493. tr_details_device_num1.appendChild(td_details_device_num3);
  494. var td_details_device_num4 = document.createElement('td');
  495. td_details_device_num4.width='30%';
  496. td_details_device_num4.style.textAlign='center';
  497. td_details_device_num4.innerHTML='';
  498. td_details_device_num4.style.fontSize='14px';
  499. td_details_device_num4.style.borderLeft ='1px solid #BEBEBE';
  500. td_details_device_num4.style.borderTop ='1px solid #BEBEBE';
  501. tr_details_device_num1.appendChild(td_details_device_num4);
  502. }
  503. }
  504. var title11 = document.createElement('div');
  505. title11.style.textAlign='center';
  506. title11.style.fontSize='14px';
  507. title11.style.marginBottom='20px';
  508. title11.style.fontWeight='bold';
  509. title11.innerHTML='表3 项目监测点清单';
  510. div1.appendChild(title11);
  511. var div2 = document.createElement('div');
  512. div2.width=580;
  513. div2.height=841;
  514. div2.setAttribute('id','div2_label1');
  515. woker_talk.appendChild(div2);
  516. var title12 = document.createElement('h3');
  517. title12.style.textAlign='left';
  518. title12.style.fontSize='14px';
  519. title12.style.fontWeight='bold';
  520. title12.innerHTML='2 阶段数据统计情况';
  521. div2.appendChild(title12);
  522. var title13 = document.createElement('h4');
  523. title13.style.textAlign='left';
  524. title13.style.fontSize='14px';
  525. title13.style.fontWeight='bold';
  526. title13.innerHTML='2.1 统计时段';
  527. div2.appendChild(title13);
  528. var title14 = document.createElement('div');
  529. title14.style.border='1px solid #BEBEBE';
  530. title14.width='100%';
  531. title14.style.background='#AAAAAA';
  532. title14.style.minHeight='60px';
  533. title14.style.paddingLeft='36px';
  534. title14.style.marginBottom='20px';
  535. div2.appendChild(title14);
  536. var title14_p1 = document.createElement('p');
  537. title14_p1.innerHTML='统计起始日期:'+start_data;
  538. title14_p1.style.fontSize='14px';
  539. title14.appendChild(title14_p1);
  540. var title14_p2 = document.createElement('p');
  541. title14_p2.innerHTML='统计截止日期:'+end_data;
  542. title14_p2.style.fontSize='14px';
  543. title14.appendChild(title14_p2);
  544. var title14_p3 = document.createElement('p');
  545. title14_p3.innerHTML='统计时段时长:'+days;
  546. title14_p3.style.fontSize='14px';
  547. title14.appendChild(title14_p3);
  548. var title15 = document.createElement('h4');
  549. title15.style.textAlign='left';
  550. title15.style.fontSize='14px';
  551. title15.style.fontWeight='bold';
  552. title15.innerHTML='2.2 统计报表';
  553. div2.appendChild(title15);
  554. var sta3 = document.createElement('table');
  555. sta3.style.marginTop='10px';
  556. sta3.width='100%';
  557. sta3.style.marginBottom='20px';
  558. sta3.style.borderRight ='1px solid #BEBEBE';
  559. sta3.style.borderBottom ='1px solid #BEBEBE';
  560. div2.appendChild(sta3);
  561. var tr20 = document.createElement('tr');
  562. sta3.appendChild(tr20);
  563. var th20 = document.createElement('th');
  564. th20.width='10%';
  565. th20.style.textAlign='center';
  566. th20.innerHTML='序号';
  567. th20.style.fontSize='14px';
  568. th20.style.borderLeft ='1px solid #BEBEBE';
  569. th20.style.borderTop ='1px solid #BEBEBE';
  570. tr20.appendChild(th20);
  571. var th21 = document.createElement('th');
  572. th21.width='15%';
  573. th21.style.textAlign='center';
  574. th21.innerHTML='报告分类';
  575. th21.style.fontSize='14px';
  576. th21.style.borderLeft ='1px solid #BEBEBE';
  577. th21.style.borderTop ='1px solid #BEBEBE';
  578. tr20.appendChild(th21);
  579. var th22 = document.createElement('th');
  580. th22.width='15%';
  581. th22.style.textAlign='center';
  582. th22.innerHTML='报告属性';
  583. th22.style.fontSize='14px';
  584. th22.style.borderLeft ='1px solid #BEBEBE';
  585. th22.style.borderTop ='1px solid #BEBEBE';
  586. tr20.appendChild(th22);
  587. var th23 = document.createElement('th');
  588. th23.width='15%';
  589. th23.style.textAlign='center';
  590. th23.innerHTML='报告总数';
  591. th23.style.fontSize='14px';
  592. th23.style.borderLeft ='1px solid #BEBEBE';
  593. th23.style.borderTop ='1px solid #BEBEBE';
  594. tr20.appendChild(th23);
  595. var th24 = document.createElement('th');
  596. th24.width='10%';
  597. th24.style.textAlign='center';
  598. th24.innerHTML='已处理';
  599. th24.style.fontSize='14px';
  600. th24.style.borderLeft ='1px solid #BEBEBE';
  601. th24.style.borderTop ='1px solid #BEBEBE';
  602. tr20.appendChild(th24);
  603. var th25 = document.createElement('th');
  604. th25.width='10%';
  605. th25.style.textAlign='center';
  606. th25.innerHTML='未处理';
  607. th25.style.fontSize='14px';
  608. th25.style.borderLeft ='1px solid #BEBEBE';
  609. th25.style.borderTop ='1px solid #BEBEBE';
  610. tr20.appendChild(th25);
  611. var th26 = document.createElement('th');
  612. th26.width='10%';
  613. th26.style.textAlign='center';
  614. th26.innerHTML='处置率';
  615. th26.style.fontSize='14px';
  616. th26.style.borderLeft ='1px solid #BEBEBE';
  617. th26.style.borderTop ='1px solid #BEBEBE';
  618. tr20.appendChild(th26);
  619. var th27 = document.createElement('th');
  620. th27.width='15%';
  621. th27.style.textAlign='center';
  622. th27.innerHTML='备注';
  623. th27.style.fontSize='14px';
  624. th27.style.borderLeft ='1px solid #BEBEBE';
  625. th27.style.borderTop ='1px solid #BEBEBE';
  626. tr20.appendChild(th27);
  627. var tr21 = document.createElement('tr');
  628. sta3.appendChild(tr21);
  629. var td20 = document.createElement('td');
  630. td20.width='10%';
  631. td20.style.textAlign='center';
  632. td20.innerHTML=1;
  633. td20.style.fontSize='14px';
  634. td20.style.borderLeft ='1px solid #BEBEBE';
  635. td20.style.borderTop ='1px solid #BEBEBE';
  636. tr21.appendChild(td20);
  637. var td21 = document.createElement('td');
  638. td21.width='15%';
  639. td21.style.textAlign='center';
  640. td21.innerHTML='火灾监测';
  641. td21.rowSpan='2';
  642. td21.style.fontSize='14px';
  643. td21.style.borderLeft ='1px solid #BEBEBE';
  644. td21.style.borderTop ='1px solid #BEBEBE';
  645. tr21.appendChild(td21);
  646. var td22 = document.createElement('td');
  647. td22.width='15%';
  648. td22.style.textAlign='center';
  649. td22.innerHTML='报警';
  650. td22.style.fontSize='14px';
  651. td22.style.borderLeft ='1px solid #BEBEBE';
  652. td22.style.borderTop ='1px solid #BEBEBE';
  653. tr21.appendChild(td22);
  654. var td23 = document.createElement('td');
  655. td23.width='15%';
  656. td23.style.textAlign='center';
  657. td23.innerHTML=hjtotalCount;
  658. td23.style.fontSize='14px';
  659. td23.style.borderLeft ='1px solid #BEBEBE';
  660. td23.style.borderTop ='1px solid #BEBEBE';
  661. tr21.appendChild(td23);
  662. var td24 = document.createElement('td');
  663. td24.width='10%';
  664. td24.style.textAlign='center';
  665. td24.innerHTML=clhjtotalCount;
  666. td24.style.fontSize='14px';
  667. td24.style.borderLeft ='1px solid #BEBEBE';
  668. td24.style.borderTop ='1px solid #BEBEBE';
  669. tr21.appendChild(td24);
  670. var td25 = document.createElement('td');
  671. td25.width='10%';
  672. td25.style.textAlign='center';
  673. td25.innerHTML=0;
  674. td25.style.fontSize='14px';
  675. td25.style.borderLeft ='1px solid #BEBEBE';
  676. td25.style.borderTop ='1px solid #BEBEBE';
  677. tr21.appendChild(td25);
  678. var td26 = document.createElement('td');
  679. td26.width='10%';
  680. td26.style.textAlign='center';
  681. td26.innerHTML=hjbaifenbi+'%';
  682. td26.style.fontSize='14px';
  683. td26.style.borderLeft ='1px solid #BEBEBE';
  684. td26.style.borderTop ='1px solid #BEBEBE';
  685. tr21.appendChild(td26);
  686. var td27 = document.createElement('td');
  687. td27.width='15%';
  688. td27.style.textAlign='center';
  689. td27.innerHTML='';
  690. td27.style.fontSize='14px';
  691. td27.style.borderLeft ='1px solid #BEBEBE';
  692. td27.style.borderTop ='1px solid #BEBEBE';
  693. tr21.appendChild(td27);
  694. var tr22 = document.createElement('tr');
  695. sta3.appendChild(tr22);
  696. var td28 = document.createElement('td');
  697. td28.width='10%';
  698. td28.style.textAlign='center';
  699. td28.innerHTML=2;
  700. td28.style.fontSize='14px';
  701. td28.style.borderLeft ='1px solid #BEBEBE';
  702. td28.style.borderTop ='1px solid #BEBEBE';
  703. tr22.appendChild(td28);
  704. var td29 = document.createElement('td');
  705. td29.width='15%';
  706. td29.style.textAlign='center';
  707. td29.innerHTML='设备离线';
  708. td29.style.fontSize='14px';
  709. td29.style.borderLeft ='1px solid #BEBEBE';
  710. td29.style.borderTop ='1px solid #BEBEBE';
  711. tr22.appendChild(td29);
  712. var td30 = document.createElement('td');
  713. td30.width='15%';
  714. td30.style.textAlign='center';
  715. td30.innerHTML=lxhjtotalCount;
  716. td30.style.fontSize='14px';
  717. td30.style.borderLeft ='1px solid #BEBEBE';
  718. td30.style.borderTop ='1px solid #BEBEBE';
  719. tr22.appendChild(td30);
  720. var td31 = document.createElement('td');
  721. td31.width='10%';
  722. td31.style.textAlign='center';
  723. td31.innerHTML=cllxhjtotalCount;
  724. td31.style.fontSize='14px';
  725. td31.style.borderLeft ='1px solid #BEBEBE';
  726. td31.style.borderTop ='1px solid #BEBEBE';
  727. tr22.appendChild(td31);
  728. var td32 = document.createElement('td');
  729. td32.width='10%';
  730. td32.style.textAlign='center';
  731. td32.innerHTML=0;
  732. td32.style.fontSize='14px';
  733. td32.style.borderLeft ='1px solid #BEBEBE';
  734. td32.style.borderTop ='1px solid #BEBEBE';
  735. tr22.appendChild(td32);
  736. var td33 = document.createElement('td');
  737. td33.width='10%';
  738. td33.style.textAlign='center';
  739. td33.innerHTML=lxhjbaifenbi;
  740. td33.style.fontSize='14px';
  741. td33.style.borderLeft ='1px solid #BEBEBE';
  742. td33.style.borderTop ='1px solid #BEBEBE';
  743. tr22.appendChild(td33);
  744. var td34 = document.createElement('td');
  745. td34.width='15%';
  746. td34.style.textAlign='center';
  747. td34.innerHTML='';
  748. td34.style.fontSize='14px';
  749. td34.style.borderLeft ='1px solid #BEBEBE';
  750. td34.style.borderTop ='1px solid #BEBEBE';
  751. tr22.appendChild(td34);
  752. var tr23 = document.createElement('tr');
  753. sta3.appendChild(tr23);
  754. var td35 = document.createElement('td');
  755. td35.width='10%';
  756. td35.style.textAlign='center';
  757. td35.innerHTML=3;
  758. td35.style.fontSize='14px';
  759. td35.style.borderLeft ='1px solid #BEBEBE';
  760. td35.style.borderTop ='1px solid #BEBEBE';
  761. tr23.appendChild(td35);
  762. var td36 = document.createElement('td');
  763. td36.width='15%';
  764. td36.style.textAlign='center';
  765. td36.innerHTML='消防水系统监测';
  766. td36.rowSpan='2';
  767. td36.style.fontSize='14px';
  768. td36.style.borderLeft ='1px solid #BEBEBE';
  769. td36.style.borderTop ='1px solid #BEBEBE';
  770. tr23.appendChild(td36);
  771. var td37 = document.createElement('td');
  772. td37.width='15%';
  773. td37.style.textAlign='center';
  774. td37.innerHTML='报警';
  775. td37.style.fontSize='14px';
  776. td37.style.borderLeft ='1px solid #BEBEBE';
  777. td37.style.borderTop ='1px solid #BEBEBE';
  778. tr23.appendChild(td37);
  779. var td38 = document.createElement('td');
  780. td38.width='15%';
  781. td38.style.textAlign='center';
  782. td38.innerHTML=sjtotalCount;
  783. td38.style.fontSize='14px';
  784. td38.style.borderLeft ='1px solid #BEBEBE';
  785. td38.style.borderTop ='1px solid #BEBEBE';
  786. tr23.appendChild(td38);
  787. var td39 = document.createElement('td');
  788. td39.width='10%';
  789. td39.style.textAlign='center';
  790. td39.innerHTML=clsjtotalCount;
  791. td39.style.fontSize='14px';
  792. td39.style.borderLeft ='1px solid #BEBEBE';
  793. td39.style.borderTop ='1px solid #BEBEBE';
  794. tr23.appendChild(td39);
  795. var td40 = document.createElement('td');
  796. td40.width='10%';
  797. td40.style.textAlign='center';
  798. td40.innerHTML=0;
  799. td40.style.fontSize='14px';
  800. td40.style.borderLeft ='1px solid #BEBEBE';
  801. td40.style.borderTop ='1px solid #BEBEBE';
  802. tr23.appendChild(td40);
  803. var td41 = document.createElement('td');
  804. td41.width='10%';
  805. td41.style.textAlign='center';
  806. td41.innerHTML=sjbaifenbi+'%';
  807. td41.style.fontSize='14px';
  808. td41.style.borderLeft ='1px solid #BEBEBE';
  809. td41.style.borderTop ='1px solid #BEBEBE';
  810. tr23.appendChild(td41);
  811. var td42 = document.createElement('td');
  812. td42.width='15%';
  813. td42.style.textAlign='center';
  814. td42.innerHTML='';
  815. td42.style.fontSize='14px';
  816. td42.style.borderLeft ='1px solid #BEBEBE';
  817. td42.style.borderTop ='1px solid #BEBEBE';
  818. tr23.appendChild(td42);
  819. var tr24 = document.createElement('tr');
  820. sta3.appendChild(tr24);
  821. var td43 = document.createElement('td');
  822. td43.width='10%';
  823. td43.style.textAlign='center';
  824. td43.innerHTML=4;
  825. td43.style.fontSize='14px';
  826. td43.style.borderLeft ='1px solid #BEBEBE';
  827. td43.style.borderTop ='1px solid #BEBEBE';
  828. tr24.appendChild(td43);
  829. var td44 = document.createElement('td');
  830. td44.width='15%';
  831. td44.style.textAlign='center';
  832. td44.innerHTML='设备离线';
  833. td44.style.fontSize='14px';
  834. td44.style.borderLeft ='1px solid #BEBEBE';
  835. td44.style.borderTop ='1px solid #BEBEBE';
  836. tr24.appendChild(td44);
  837. var td45 = document.createElement('td');
  838. td45.width='15%';
  839. td45.style.textAlign='center';
  840. td45.innerHTML=lxsjtotalCount;
  841. td45.style.fontSize='14px';
  842. td45.style.borderLeft ='1px solid #BEBEBE';
  843. td45.style.borderTop ='1px solid #BEBEBE';
  844. tr24.appendChild(td45);
  845. var td46 = document.createElement('td');
  846. td46.width='10%';
  847. td46.style.textAlign='center';
  848. td46.innerHTML=cllxsjtotalCount;
  849. td46.style.fontSize='14px';
  850. td46.style.borderLeft ='1px solid #BEBEBE';
  851. td46.style.borderTop ='1px solid #BEBEBE';
  852. tr24.appendChild(td46);
  853. var td47 = document.createElement('td');
  854. td47.width='10%';
  855. td47.style.textAlign='center';
  856. td47.innerHTML=0;
  857. td47.style.fontSize='14px';
  858. td47.style.borderLeft ='1px solid #BEBEBE';
  859. td47.style.borderTop ='1px solid #BEBEBE';
  860. tr24.appendChild(td47);
  861. var td48 = document.createElement('td');
  862. td48.width='10%';
  863. td48.style.textAlign='center';
  864. td48.innerHTML=lxsjbaifenbi;
  865. td48.style.fontSize='14px';
  866. td48.style.borderLeft ='1px solid #BEBEBE';
  867. td48.style.borderTop ='1px solid #BEBEBE';
  868. tr24.appendChild(td48);
  869. var td49= document.createElement('td');
  870. td49.width='15%';
  871. td49.style.textAlign='center';
  872. td49.innerHTML='';
  873. td49.style.fontSize='14px';
  874. td49.style.borderLeft ='1px solid #BEBEBE';
  875. td49.style.borderTop ='1px solid #BEBEBE';
  876. tr24.appendChild(td49);
  877. var tr25 = document.createElement('tr');
  878. sta3.appendChild(tr25);
  879. var td50 = document.createElement('td');
  880. td50.width='10%';
  881. td50.style.textAlign='center';
  882. td50.innerHTML=5;
  883. td50.style.fontSize='14px';
  884. td50.style.borderLeft ='1px solid #BEBEBE';
  885. td50.style.borderTop ='1px solid #BEBEBE';
  886. tr25.appendChild(td50);
  887. var td51 = document.createElement('td');
  888. td51.width='15%';
  889. td51.style.textAlign='center';
  890. td51.innerHTML='RTU监测';
  891. td51.rowSpan='2';
  892. td51.style.fontSize='14px';
  893. td51.style.borderLeft ='1px solid #BEBEBE';
  894. td51.style.borderTop ='1px solid #BEBEBE';
  895. tr25.appendChild(td51);
  896. var td52 = document.createElement('td');
  897. td52.width='15%';
  898. td52.style.textAlign='center';
  899. td52.innerHTML='报警';
  900. td52.style.fontSize='14px';
  901. td52.style.borderLeft ='1px solid #BEBEBE';
  902. td52.style.borderTop ='1px solid #BEBEBE';
  903. tr25.appendChild(td52);
  904. var td53 = document.createElement('td');
  905. td53.width='15%';
  906. td53.style.textAlign='center';
  907. td53.innerHTML=rtutotalCount;
  908. td53.style.fontSize='14px';
  909. td53.style.borderLeft ='1px solid #BEBEBE';
  910. td53.style.borderTop ='1px solid #BEBEBE';
  911. tr25.appendChild(td53);
  912. var td54 = document.createElement('td');
  913. td54.width='10%';
  914. td54.style.textAlign='center';
  915. td54.innerHTML=clrtutotalCount;
  916. td54.style.fontSize='14px';
  917. td54.style.borderLeft ='1px solid #BEBEBE';
  918. td54.style.borderTop ='1px solid #BEBEBE';
  919. tr25.appendChild(td54);
  920. var td55 = document.createElement('td');
  921. td55.width='10%';
  922. td55.style.textAlign='center';
  923. td55.innerHTML=0;
  924. td55.style.fontSize='14px';
  925. td55.style.borderLeft ='1px solid #BEBEBE';
  926. td55.style.borderTop ='1px solid #BEBEBE';
  927. tr25.appendChild(td55);
  928. var td56 = document.createElement('td');
  929. td56.width='10%';
  930. td56.style.textAlign='center';
  931. td56.innerHTML=rtubaifenbi+'%';
  932. td56.style.fontSize='14px';
  933. td56.style.borderLeft ='1px solid #BEBEBE';
  934. td56.style.borderTop ='1px solid #BEBEBE';
  935. tr25.appendChild(td56);
  936. var td57 = document.createElement('td');
  937. td57.width='15%';
  938. td57.style.textAlign='center';
  939. td57.innerHTML='';
  940. td57.style.fontSize='14px';
  941. td57.style.borderLeft ='1px solid #BEBEBE';
  942. td57.style.borderTop ='1px solid #BEBEBE';
  943. tr25.appendChild(td57);
  944. var tr26 = document.createElement('tr');
  945. sta3.appendChild(tr26);
  946. var td58 = document.createElement('td');
  947. td58.width='10%';
  948. td58.style.textAlign='center';
  949. td58.innerHTML=6;
  950. td58.style.fontSize='14px';
  951. td58.style.borderLeft ='1px solid #BEBEBE';
  952. td58.style.borderTop ='1px solid #BEBEBE';
  953. tr26.appendChild(td58);
  954. var td59 = document.createElement('td');
  955. td59.width='15%';
  956. td59.style.textAlign='center';
  957. td59.innerHTML='设备离线';
  958. td59.style.fontSize='14px';
  959. td59.style.borderLeft ='1px solid #BEBEBE';
  960. td59.style.borderTop ='1px solid #BEBEBE';
  961. tr26.appendChild(td59);
  962. var td60 = document.createElement('td');
  963. td60.width='15%';
  964. td60.style.textAlign='center';
  965. td60.innerHTML=lxrtutotalCount;
  966. td60.style.fontSize='14px';
  967. td60.style.borderLeft ='1px solid #BEBEBE';
  968. td60.style.borderTop ='1px solid #BEBEBE';
  969. tr26.appendChild(td60);
  970. var td61 = document.createElement('td');
  971. td61.width='10%';
  972. td61.style.textAlign='center';
  973. td61.innerHTML=cllxrtutotalCount;
  974. td61.style.fontSize='14px';
  975. td61.style.borderLeft ='1px solid #BEBEBE';
  976. td61.style.borderTop ='1px solid #BEBEBE';
  977. tr26.appendChild(td61);
  978. var td62 = document.createElement('td');
  979. td62.width='10%';
  980. td62.style.textAlign='center';
  981. td62.innerHTML=0;
  982. td62.style.fontSize='14px';
  983. td62.style.borderLeft ='1px solid #BEBEBE';
  984. td62.style.borderTop ='1px solid #BEBEBE';
  985. tr26.appendChild(td62);
  986. var td63 = document.createElement('td');
  987. td63.width='10%';
  988. td63.style.textAlign='center';
  989. td63.innerHTML=lxrtubaifenbi;
  990. td63.style.fontSize='14px';
  991. td63.style.borderLeft ='1px solid #BEBEBE';
  992. td63.style.borderTop ='1px solid #BEBEBE';
  993. tr26.appendChild(td63);
  994. var td64= document.createElement('td');
  995. td64.width='15%';
  996. td64.style.textAlign='center';
  997. td64.innerHTML='';
  998. td64.style.fontSize='14px';
  999. td64.style.borderLeft ='1px solid #BEBEBE';
  1000. td64.style.borderTop ='1px solid #BEBEBE';
  1001. tr26.appendChild(td64);
  1002. var title17 = document.createElement('div');
  1003. title17.style.textAlign='center';
  1004. title17.style.fontSize='14px';
  1005. title17.style.marginBottom='20px';
  1006. title17.style.fontWeight='bold';
  1007. title17.innerHTML='表4 项目阶段数据统计表';
  1008. div2.appendChild(title17);
  1009. var title18 = document.createElement('h3');
  1010. title18.style.textAlign='left';
  1011. title18.style.fontSize='14px';
  1012. title18.style.fontWeight='bold';
  1013. title18.innerHTML='3 阶段数据分析';
  1014. woker_talk.appendChild(title18);
  1015. var title18_highcharts = document.createElement('div');
  1016. // title20_highcharts.width='200!important';
  1017. // title20_highcharts.height='200!important';
  1018. title18_highcharts.style.marginTop='20px';
  1019. title18_highcharts.style.marginBottom='20px';
  1020. title18_highcharts.setAttribute('id','container3');
  1021. title18_highcharts.style.textAlign='center';
  1022. woker_talk.appendChild(title18_highcharts);
  1023. var title19 = document.createElement('h4');
  1024. title19.style.textAlign='left';
  1025. title19.style.fontSize='14px';
  1026. title19.style.fontWeight='bold';
  1027. title19.innerHTML='3.1 火灾监测数据分析';
  1028. woker_talk.appendChild(title19);
  1029. var title20_highcharts = document.createElement('div');
  1030. // title20_highcharts.width='200!important';
  1031. // title20_highcharts.height='200!important';
  1032. title20_highcharts.style.marginTop='20px';
  1033. title20_highcharts.style.marginBottom='20px';
  1034. title20_highcharts.setAttribute('id','container');
  1035. title20_highcharts.style.textAlign='center';
  1036. woker_talk.appendChild(title20_highcharts);
  1037. var title20 = document.createElement('div');
  1038. // title20.setAttribute('class','title20_label1');
  1039. title20.style.border='1px solid #BEBEBE';
  1040. title20.width='100%';
  1041. title20.style.background='#AAAAAA';
  1042. // title20.style.minHeight='80px';
  1043. title20.style.textIndent='2em';
  1044. title20.style.marginBottom='20px';
  1045. woker_talk.appendChild(title20);
  1046. var title20_p1 = document.createElement('p');
  1047. if(dwhjtotalCount>0){
  1048. if(Number(hjresult)>0.5&&Number(ConfirmStore4[0].lxhjresult)>0.5){
  1049. // if(typeof(days3)=="undefined"){
  1050. title20_p1.innerHTML='统计时段内火灾监测报告数量:'+hjtotalCount+'条。'+'报告平均发生:'+hjresult+'条/台/天。报告数量偏高。提示:火灾隐患极高或存在系统故障,需要排查;离线记录中,报告数量:'+lxhjtotalCount+'条。报告平均发生:'+ConfirmStore4[0].lxhjresult+'条/台/天。提示:火灾监测设备通信状态不稳定,需要排查。';
  1051. // }else if(Number(days3)>=1){
  1052. // title20_p1.innerHTML='统计时段内火灾监测报告数量:'+hjtotalCount+'条。'+'报告平均发生:'+hjresult+'条/台/天。报告数量偏高。提示:火灾隐患极高或存在系统故障,需要排查;离线记录中,报告数量:'+lxhjtotalCount+'条。报告平均发生:'+ConfirmStore4[0].lxhjresult+'条/台/天。提示:火灾监测设备通信状态不稳定,需要排查;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率较低或产品使用培训不足,需要增加使用培训和完善管理制度。';
  1053. // }else if(Number(days3)<1){
  1054. // title20_p1.innerHTML='统计时段内火灾监测报告数量:'+hjtotalCount+'条。'+'报告平均发生:'+hjresult+'条/台/天。报告数量偏高。提示:火灾隐患极高或存在系统故障,需要排查;离线记录中,报告数量:'+lxhjtotalCount+'条。报告平均发生:'+ConfirmStore4[0].lxhjresult+'条/台/天。提示:火灾监测设备通信状态不稳定,需要排查;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率正常,继续保持。';
  1055. // }
  1056. }else if(Number(hjresult)>0.5 && Number(ConfirmStore4[0].lxhjresult)<=0.5){
  1057. // if(typeof(days3)=="undefined"){
  1058. title20_p1.innerHTML='统计时段内火灾监测报告数量:'+hjtotalCount+'条。'+'报告平均发生:'+hjresult+'条/台/天。报告数量偏高。提示:火灾隐患极高或存在系统故障,需要排查;离线记录中,报告数量:'+lxhjtotalCount+'条。报告平均发生:'+ConfirmStore4[0].lxhjresult+'条/台/天。提示:火灾监测设备通信状态良好,数据接收情况稳定,需要保持。';
  1059. // }else if(Number(days3)>=1){
  1060. // title20_p1.innerHTML='统计时段内火灾监测报告数量:'+hjtotalCount+'条。'+'报告平均发生:'+hjresult+'条/台/天。报告数量偏高。提示:火灾隐患极高或存在系统故障,需要排查;离线记录中,报告数量:'+lxhjtotalCount+'条。报告平均发生:'+ConfirmStore4[0].lxhjresult+'条/台/天。提示:火灾监测设备通信状态良好,数据接收情况稳定,需要保持;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率较低或产品使用培训不足,需要增加使用培训和完善管理制度。';
  1061. // }else if(Number(days3)<1){
  1062. // title20_p1.innerHTML='统计时段内火灾监测报告数量:'+hjtotalCount+'条。'+'报告平均发生:'+hjresult+'条/台/天。报告数量偏高。提示:火灾隐患极高或存在系统故障,需要排查;离线记录中,报告数量:'+lxhjtotalCount+'条。报告平均发生:'+ConfirmStore4[0].lxhjresult+'条/台/天。提示:火灾监测设备通信状态良好,数据接收情况稳定,需要保持;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率正常,继续保持。';
  1063. // }
  1064. }else if(Number(hjresult)<=0.5&&Number(ConfirmStore4[0].lxhjresult)>0.5){
  1065. // if(typeof(days3)=="undefined"){
  1066. title20_p1.innerHTML='统计时段内火灾监测报告数量:'+hjtotalCount+'条。'+'报告平均发生:'+hjresult+'条/台/天。报告数量良好。提示:有一定的火灾隐患或存在系统故障,需要排查;离线记录中,报告数量:'+lxhjtotalCount+'条。报告平均发生:'+ConfirmStore4[0].lxhjresult+'条/台/天。提示:火灾监测设备通信状态不稳定,需要排查。';
  1067. // }else if(Number(days3)>=1){
  1068. // title20_p1.innerHTML='统计时段内火灾监测报告数量:'+hjtotalCount+'条。'+'报告平均发生:'+hjresult+'条/台/天。报告数量良好。提示:有一定的火灾隐患或存在系统故障,需要排查;离线记录中,报告数量:'+lxhjtotalCount+'条。报告平均发生:'+ConfirmStore4[0].lxhjresult+'条/台/天。提示:火灾监测设备通信状态不稳定,需要排查;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率较低或产品使用培训不足,需要增加使用培训和完善管理制度。';
  1069. // }else if(Number(days3)<1){
  1070. // title20_p1.innerHTML='统计时段内火灾监测报告数量:'+hjtotalCount+'条。'+'报告平均发生:'+hjresult+'条/台/天。报告数量良好。提示:有一定的火灾隐患或存在系统故障,需要排查;离线记录中,报告数量:'+lxhjtotalCount+'条。报告平均发生:'+ConfirmStore4[0].lxhjresult+'条/台/天。提示:火灾监测设备通信状态不稳定,需要排查;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率正常,继续保持。';
  1071. // }
  1072. }else if(Number(hjresult)<=0.5&&Number(ConfirmStore4[0].lxhjresult)<=0.5){
  1073. // if(typeof(days3)=="undefined"){
  1074. title20_p1.innerHTML='统计时段内火灾监测报告数量:'+hjtotalCount+'条。'+'报告平均发生:'+hjresult+'条/台/天。报告数量良好。提示:有一定的火灾隐患或存在系统故障,需要排查;离线记录中,报告数量:'+lxhjtotalCount+'条。报告平均发生:'+ConfirmStore4[0].lxhjresult+'条/台/天。提示:火灾监测设备通信状态良好,数据接收情况稳定,需要保持。';
  1075. // }else if(Number(days3)>=1){
  1076. // title20_p1.innerHTML='统计时段内火灾监测报告数量:'+hjtotalCount+'条。'+'报告平均发生:'+hjresult+'条/台/天。报告数量良好。提示:有一定的火灾隐患或存在系统故障,需要排查;离线记录中,报告数量:'+lxhjtotalCount+'条。报告平均发生:'+ConfirmStore4[0].lxhjresult+'条/台/天。提示:火灾监测设备通信状态良好,数据接收情况稳定,需要保持;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率较低或产品使用培训不足,需要增加使用培训和完善管理制度。';
  1077. // }else if(Number(days3)<1){
  1078. // title20_p1.innerHTML='统计时段内火灾监测报告数量:'+hjtotalCount+'条。'+'报告平均发生:'+hjresult+'条/台/天。报告数量良好。提示:有一定的火灾隐患或存在系统故障,需要排查;离线记录中,报告数量:'+lxhjtotalCount+'条。报告平均发生:'+ConfirmStore4[0].lxhjresult+'条/台/天。提示:火灾监测设备通信状态良好,数据接收情况稳定,需要保持;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率正常,继续保持。';
  1079. // }
  1080. }
  1081. }else{
  1082. title20_p1.innerHTML='未安装此设备';
  1083. }
  1084. // title20_p1.setAttribute('class','title14_label1_p1');
  1085. title20_p1.style.paddingLeft='36px';
  1086. title20_p1.style.paddingRight='36px';
  1087. title20_p1.style.marginBottom='20px';
  1088. title20_p1.style.marginTop='20px';
  1089. title20_p1.style.lineHeight='150%';
  1090. title20_p1.style.fontSize='14px';
  1091. title20.appendChild(title20_p1);
  1092. var title21 = document.createElement('h4');
  1093. title21.style.textAlign='left';
  1094. title21.style.fontSize='14px';
  1095. title21.style.fontWeight='bold';
  1096. title21.innerHTML='3.2 消防水系统监测数据分析';
  1097. woker_talk.appendChild(title21);
  1098. var title21_highcharts = document.createElement('div');
  1099. // title20_highcharts.width='200!important';
  1100. // title20_highcharts.height='200!important';
  1101. title21_highcharts.style.marginTop='20px';
  1102. title21_highcharts.style.marginBottom='46px';
  1103. title21_highcharts.setAttribute('id','container1');
  1104. title21_highcharts.style.textAlign='center';
  1105. woker_talk.appendChild(title21_highcharts);
  1106. var title22 = document.createElement('div');
  1107. // title22.setAttribute('class','title20_label1');
  1108. title22.style.border='1px solid #BEBEBE';
  1109. title22.width='100%';
  1110. title22.style.background='#AAAAAA';
  1111. // title22.style.minHeight='80px';
  1112. title22.style.textIndent='2em';
  1113. title22.style.marginBottom='20px';
  1114. woker_talk.appendChild(title22);
  1115. var title22_p1 = document.createElement('p');
  1116. if(dwsjtotalCount>0){
  1117. if(Number(sjresult)>1&&Number(ConfirmStore4[0].lxsjresult)>0.5){
  1118. // if(typeof(days6)=="undefined"){
  1119. title22_p1.innerHTML='统计时段内消防水系统监测报告数量:'+sjtotalCount+'次。'+'报告平均发生:'+sjresult+'条/台/天。报告数量偏高。提示:现场消防水压或液位存在隐患,需要排查;离线记录中,报告数量:'+lxsjtotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxsjresult+'条/台/天。提示:消防水系统监测设备通信状态不稳定,需要排查。';
  1120. // }else if(Number(days6)>=1){
  1121. // title22_p1.innerHTML='统计时段内消防水系统监测报告数量:'+sjtotalCount+'次。'+'报告平均发生:'+sjresult+'条/台/天。报告数量偏高。提示:现场消防水压或液位存在隐患,需要排查;离线记录中,报告数量:'+lxsjtotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxsjresult+'条/台/天。提示:消防水系统监测设备通信状态不稳定,需要排查;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率较低或产品使用培训不足,需要增加使用培训和完善管理制度。';
  1122. // }else if(Number(days6)<1){
  1123. // title22_p1.innerHTML='统计时段内消防水系统监测报告数量:'+sjtotalCount+'次。'+'报告平均发生:'+sjresult+'条/台/天。报告数量偏高。提示:现场消防水压或液位存在隐患,需要排查;离线记录中,报告数量:'+lxsjtotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxsjresult+'条/台/天。提示:消防水系统监测设备通信状态不稳定,需要排查;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率正常,继续保持。';
  1124. // }
  1125. }else if(Number(sjresult)>1 && Number(ConfirmStore4[0].lxsjresult)<=0.5){
  1126. // if(typeof(days6)=="undefined"){
  1127. title22_p1.innerHTML='统计时段内消防水系统监测报告数量:'+sjtotalCount+'次。'+'报告平均发生:'+sjresult+'条/台/天。报告数量偏高。提示:现场消防水压或液位存在隐患,需要排查;离线记录中,报告数量:'+lxsjtotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxsjresult+'条/台/天。提示:消防水系统监测设备通信状态良好,需要保持。';
  1128. // }else if(Number(days6)>=1){
  1129. // title22_p1.innerHTML='统计时段内消防水系统监测报告数量:'+sjtotalCount+'次。'+'报告平均发生:'+sjresult+'条/台/天。报告数量偏高。提示:现场消防水压或液位存在隐患,需要排查;离线记录中,报告数量:'+lxsjtotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxsjresult+'条/台/天。提示:消防水系统监测设备通信状态良好,需要保持;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率较低或产品使用培训不足,需要增加使用培训和完善管理制度。';
  1130. // }else if(Number(days6)<1){
  1131. // title22_p1.innerHTML='统计时段内消防水系统监测报告数量:'+sjtotalCount+'次。'+'报告平均发生:'+sjresult+'条/台/天。报告数量偏高。提示:现场消防水压或液位存在隐患,需要排查;离线记录中,报告数量:'+lxsjtotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxsjresult+'条/台/天。提示:消防水系统监测设备通信状态良好,需要保持;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率正常,继续保持。';
  1132. // }
  1133. }else if(Number(sjresult)<=1 && Number(ConfirmStore4[0].lxsjresult)>0.5){
  1134. // if(typeof(days6)=="undefined"){
  1135. title22_p1.innerHTML='统计时段内消防水系统监测报告数量:'+sjtotalCount+'次。'+'报告平均发生:'+sjresult+'条/台/天。报告数量良好。提示:消防水设备状态良好,需要保持;离线记录中,报告数量:'+lxsjtotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxsjresult+'条/台/天。提示:消防水系统监测设备通信状态不稳定,需要排查。';
  1136. // }else if(Number(days6)>=1){
  1137. // title22_p1.innerHTML='统计时段内消防水系统监测报告数量:'+sjtotalCount+'次。'+'报告平均发生:'+sjresult+'条/台/天。报告数量良好。提示:消防水设备状态良好,需要保持;离线记录中,报告数量:'+lxsjtotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxsjresult+'条/台/天。提示:消防水系统监测设备通信状态不稳定,需要排查;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率较低或产品使用培训不足,需要增加使用培训和完善管理制度。';
  1138. // }else if(Number(days6)<1){
  1139. // title22_p1.innerHTML='统计时段内消防水系统监测报告数量:'+sjtotalCount+'次。'+'报告平均发生:'+sjresult+'条/台/天。报告数量良好。提示:消防水设备状态良好,需要保持;离线记录中,报告数量:'+lxsjtotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxsjresult+'条/台/天。提示:消防水系统监测设备通信状态不稳定,需要排查;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率正常,继续保持。';
  1140. // }
  1141. }else if(Number(sjresult)<=1 && Number(ConfirmStore4[0].lxsjresult)<=0.5){
  1142. // if(typeof(days6)=="undefined"){
  1143. title22_p1.innerHTML='统计时段内消防水系统监测报告数量:'+sjtotalCount+'次。'+'报告平均发生:'+sjresult+'条/台/天。报告数量良好。提示:消防水设备状态良好,需要保持;离线记录中,报告数量:'+lxsjtotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxsjresult+'条/台/天。提示:消防水系统监测设备通信状态良好,需要保持。';
  1144. // }else if(Number(days6)>=1){
  1145. // title22_p1.innerHTML='统计时段内消防水系统监测报告数量:'+sjtotalCount+'次。'+'报告平均发生:'+sjresult+'条/台/天。报告数量良好。提示:消防水设备状态良好,需要保持;离线记录中,报告数量:'+lxsjtotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxsjresult+'条/台/天。提示:消防水系统监测设备通信状态良好,需要保持;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率较低或产品使用培训不足,需要增加使用培训和完善管理制度。';
  1146. // }else if(Number(days6)<1){
  1147. // title22_p1.innerHTML='统计时段内消防水系统监测报告数量:'+sjtotalCount+'次。'+'报告平均发生:'+sjresult+'条/台/天。报告数量良好。提示:消防水设备状态良好,需要保持;离线记录中,报告数量:'+lxsjtotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxsjresult+'条/台/天。提示:消防水系统监测设备通信状态良好,需要保持;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率正常,继续保持。';
  1148. // }
  1149. }
  1150. }else{
  1151. title22_p1.innerHTML='未安装此设备';
  1152. }
  1153. // title22_p1.setAttribute('class','title14_label1_p1');
  1154. title22_p1.style.fontSize='14px';
  1155. title22_p1.style.paddingLeft='36px';
  1156. title22_p1.style.paddingRight='36px';
  1157. title22_p1.style.marginBottom='20px';
  1158. title22_p1.style.marginTop='20px';
  1159. title22_p1.style.lineHeight='150%';
  1160. title22.appendChild(title22_p1);
  1161. var title23 = document.createElement('h4');
  1162. title23.style.textAlign='left';
  1163. title23.style.fontSize='14px';
  1164. title23.style.fontWeight='bold';
  1165. title23.innerHTML='3.3 RTU监测数据分析';
  1166. woker_talk.appendChild(title23);
  1167. var title23_highcharts = document.createElement('div');
  1168. // title23_highcharts.style.width='300px';
  1169. // title23_highcharts.style.height='300px';
  1170. title23_highcharts.style.marginTop='20px';
  1171. title23_highcharts.style.marginBottom='20px';
  1172. title23_highcharts.setAttribute('id','container2');
  1173. title23_highcharts.style.textAlign='center';
  1174. woker_talk.appendChild(title23_highcharts);
  1175. var title24 = document.createElement('div');
  1176. title24.style.border='1px solid #BEBEBE';
  1177. title24.width='100%';
  1178. title24.style.background='#AAAAAA';
  1179. // title22.style.minHeight='80px';
  1180. title24.style.textIndent='2em';
  1181. title24.style.marginBottom='20px';
  1182. woker_talk.appendChild(title24);
  1183. var title24_p1 = document.createElement('p');
  1184. if(dwrtutotalCount>0){
  1185. if(Number(rturesult)>0.5&&Number(ConfirmStore4[0].lxrturesult)>0.5){
  1186. // if(typeof(days9)=="undefined"){
  1187. title24_p1.innerHTML='统计时段内RTU监测报告数量:'+rtutotalCount+'次。'+'报告平均发生:'+rturesult+'条/台/天。'+'提示:控制柜状态切换频率异常;需要排查;离线记录中,报告数量:'+lxrtutotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxrturesult+'条/台/天。提示:RTU监测设备通信状态不稳定,需要排查。';
  1188. // }else if(Number(days9)>=1){
  1189. // title24_p1.innerHTML='统计时段内RTU监测报告数量:'+rtutotalCount+'次。'+'报告平均发生:'+rturesult+'条/台/天。'+'提示:控制柜状态切换频率异常;需要排查;离线记录中,报告数量:'+lxrtutotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxrturesult+'条/台/天。提示:RTU监测设备通信状态不稳定,需要排查;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率较低或产品使用培训不足,需要增加使用培训和完善管理制度。';
  1190. // }else if(Number(days9)<1){
  1191. // title24_p1.innerHTML='统计时段内RTU监测报告数量:'+rtutotalCount+'次。'+'报告平均发生:'+rturesult+'条/台/天。'+'提示:控制柜状态切换频率异常;需要排查;离线记录中,报告数量:'+lxrtutotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxrturesult+'条/台/天。提示:RTU监测设备通信状态不稳定,需要排查;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率正常,继续保持。';
  1192. // }
  1193. }else if(Number(rturesult)>0.5 && Number(ConfirmStore4[0].lxrturesult)<=0.5){
  1194. // if(typeof(days9)=="undefined"){
  1195. title24_p1.innerHTML='统计时段内RTU监测报告数量:'+rtutotalCount+'次。'+'报告平均发生:'+rturesult+'条/台/天。'+'提示:控制柜状态切换频率异常;需要排查;离线记录中,报告数量:'+lxrtutotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxrturesult+'条/台/天。提示:RTU监测设备通信状态良好,需要保持。';
  1196. // }else if(Number(days9)>=1){
  1197. // title24_p1.innerHTML='统计时段内RTU监测报告数量:'+rtutotalCount+'次。'+'报告平均发生:'+rturesult+'条/台/天。'+'提示:控制柜状态切换频率异常;需要排查;离线记录中,报告数量:'+lxrtutotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxrturesult+'条/台/天。提示:RTU监测设备通信状态良好,需要保持;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率较低或产品使用培训不足,需要增加使用培训和完善管理制度。';
  1198. // }else if(Number(days9)<1){
  1199. // title24_p1.innerHTML='统计时段内RTU监测报告数量:'+rtutotalCount+'次。'+'报告平均发生:'+rturesult+'条/台/天。'+'提示:控制柜状态切换频率异常;需要排查;离线记录中,报告数量:'+lxrtutotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxrturesult+'条/台/天。提示:RTU监测设备通信状态良好,需要保持;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率正常,继续保持。';
  1200. // }
  1201. }else if(Number(rturesult)<=0.5 && Number(ConfirmStore4[0].lxrturesult)>0.5){
  1202. // if(typeof(days9)=="undefined"){
  1203. title24_p1.innerHTML='统计时段内RTU监测报告数量:'+rtutotalCount+'次。'+'报告平均发生:'+rturesult+'条/台/天。'+'提示:控制柜状态切换频率良好;需要保持;离线记录中,报告数量:'+lxrtutotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxrturesult+'条/台/天。提示:RTU监测设备通信状态不稳定,需要排查。';
  1204. // }else if(Number(days9)>=1){
  1205. // title24_p1.innerHTML='统计时段内RTU监测报告数量:'+rtutotalCount+'次。'+'报告平均发生:'+rturesult+'条/台/天。'+'提示:控制柜状态切换频率良好;需要保持;离线记录中,报告数量:'+lxrtutotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxrturesult+'条/台/天。提示:RTU监测设备通信状态不稳定,需要排查;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率较低或产品使用培训不足,需要增加使用培训和完善管理制度。';
  1206. // }else if(Number(days9)<1){
  1207. // title24_p1.innerHTML='统计时段内RTU监测报告数量:'+rtutotalCount+'次。'+'报告平均发生:'+rturesult+'条/台/天。'+'提示:控制柜状态切换频率良好;需要保持;离线记录中,报告数量:'+lxrtutotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxrturesult+'条/台/天。提示:RTU监测设备通信状态不稳定,需要排查;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率正常,继续保持。';
  1208. // }
  1209. }else if(Number(rturesult)<=0.5 && Number(ConfirmStore4[0].lxrturesult)<=0.5){
  1210. // if(typeof(days9)=="undefined"){
  1211. title24_p1.innerHTML='统计时段内RTU监测报告数量:'+rtutotalCount+'次。'+'报告平均发生:'+rturesult+'条/台/天。'+'提示:控制柜状态切换频率良好;需要保持;离线记录中,报告数量:'+lxrtutotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxrturesult+'条/台/天。提示:RTU监测设备通信状态良好,需要保持。';
  1212. // }else if(Number(days9)>=1){
  1213. // title24_p1.innerHTML='统计时段内RTU监测报告数量:'+rtutotalCount+'次。'+'报告平均发生:'+rturesult+'条/台/天。'+'提示:控制柜状态切换频率良好;需要保持;离线记录中,报告数量:'+lxrtutotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxrturesult+'条/台/天。提示:RTU监测设备通信状态良好,需要保持;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率较低或产品使用培训不足,需要增加使用培训和完善管理制度。';
  1214. // }else if(Number(days9)<1){
  1215. // title24_p1.innerHTML='统计时段内RTU监测报告数量:'+rtutotalCount+'次。'+'报告平均发生:'+rturesult+'条/台/天。'+'提示:控制柜状态切换频率良好;需要保持;离线记录中,报告数量:'+lxrtutotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxrturesult+'条/台/天。提示:RTU监测设备通信状态良好,需要保持;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率正常,继续保持。';
  1216. // }
  1217. }
  1218. }else{
  1219. title24_p1.innerHTML='未安装此设备';
  1220. }
  1221. // title24_p1.setAttribute('class','title14_label1_p1');
  1222. title24_p1.style.fontSize='14px';
  1223. title24_p1.style.paddingLeft='36px';
  1224. title24_p1.style.paddingRight='36px';
  1225. title24_p1.style.marginBottom='20px';
  1226. title24_p1.style.marginTop='20px';
  1227. title24_p1.style.lineHeight='150%';
  1228. title24.appendChild(title24_p1);
  1229. var title25 = document.createElement('h3');
  1230. title25.style.textAlign='left';
  1231. title25.style.fontSize='14px';
  1232. title25.style.fontWeight='bold';
  1233. title25.innerHTML='4 分析结论';
  1234. woker_talk.appendChild(title25);
  1235. var title26 = document.createElement('h4');
  1236. title26.style.textAlign='left';
  1237. title26.style.fontSize='14px';
  1238. title26.style.fontWeight='bold';
  1239. title26.innerHTML='4.1 存在问题或需要改进事项';
  1240. woker_talk.appendChild(title26);
  1241. var title27 = document.createElement('ol');
  1242. // title27.setAttribute('class','title27_label1');
  1243. // title27.style.textAlign='center';
  1244. title27.style.border='1px solid #BEBEBE';
  1245. title27.width='100%';
  1246. title27.style.textAlign='left';
  1247. title27.style.background='#AAAAAA';
  1248. title27.style.minHeight='20px';
  1249. title27.style.paddingLeft='36px';
  1250. title27.style.marginBottom='20px';
  1251. woker_talk.appendChild(title27);
  1252. if(dwhjtotalCount>0){
  1253. if(Number(hjresult)>0.5){
  1254. var title27_p1 = document.createElement('li');
  1255. title27_p1.innerHTML='系统数据分析提示:火灾隐患极高或存在系统故障,建议尽早进行系统排查;';
  1256. // title27_p1.setAttribute('class','title14_label1_p1');
  1257. title27_p1.style.fontSize='14px';
  1258. title27.appendChild(title27_p1);
  1259. }
  1260. if(Number(ConfirmStore4[0].lxhjresult)>0.5){
  1261. var title27_p3 = document.createElement('li');
  1262. title27_p3.innerHTML='系统数据分析提示:火灾监测设备通信情况不稳定,建议尽早进行系统排查;';
  1263. title27_p3.style.fontSize='14px';
  1264. title27.appendChild(title27_p3);
  1265. }
  1266. }
  1267. if(dwsjtotalCount>0){
  1268. if(Number(sjresult)>1){
  1269. var title27_p2 = document.createElement('li');
  1270. title27_p2.innerHTML='系统数据分析提示:消防水系统隐患极高或存在系统故障,建议尽早进行系统排查;';
  1271. title27_p2.style.fontSize='14px';
  1272. title27.appendChild(title27_p2);
  1273. }
  1274. if(Number(ConfirmStore4[0].lxsjresult)>0.5){
  1275. var title27_p4 = document.createElement('li');
  1276. title27_p4.innerHTML='系统数据分析提示:消防水系统监测设备通信情况不稳定,建议尽早进行系统排查;';
  1277. title27_p4.style.fontSize='14px';
  1278. title27.appendChild(title27_p4);
  1279. }
  1280. }
  1281. if(dwrtutotalCount>0){
  1282. if(Number(rturesult)>0.5){
  1283. var title27_p5 = document.createElement('li');
  1284. title27_p5.innerHTML='系统数据分析提示:RTU监测隐患极高或存在系统故障,建议尽早进行系统排查;';
  1285. title27_p5.style.fontSize='14px';
  1286. title27.appendChild(title27_p5);
  1287. }
  1288. if(Number(ConfirmStore4[0].lxrturesult)>0.5){
  1289. var title27_p6 = document.createElement('li');
  1290. title27_p6.innerHTML='系统数据分析提示:RTU监测监测设备通信情况不稳定,建议尽早进行系统排查;';
  1291. title27_p6.style.fontSize='14px';
  1292. title27.appendChild(title27_p6);
  1293. }
  1294. }
  1295. if(Number(hjresult)<=0.5 && Number(ConfirmStore4[0].lxhjresult)<=0.5 && Number(sjresult)<=1 && Number(ConfirmStore4[0].lxsjresult)<=0.5 && Number(rturesult)<=0.5 && Number(ConfirmStore4[0].lxrturesult)<=0.5){
  1296. var title27_li7 = document.createElement('li');
  1297. title27_li7.innerHTML='暂无问题及需要改进事项。';
  1298. title27_li7.style.fontSize='14px';
  1299. title27.appendChild(title27_li7);
  1300. }
  1301. var title28 = document.createElement('h4');
  1302. title28.style.textAlign='left';
  1303. title28.style.fontSize='14px';
  1304. title28.style.fontWeight='bold';
  1305. title28.innerHTML='4.2 其他事宜';
  1306. woker_talk.appendChild(title28);
  1307. var title29_ol1 = document.createElement('ol');
  1308. title29_ol1.style.border='1px solid #BEBEBE';
  1309. title29_ol1.width='100%';
  1310. title29_ol1.style.textAlign='left';
  1311. title29_ol1.style.background='#AAAAAA';
  1312. title29_ol1.style.minHeight='20px';
  1313. title29_ol1.style.paddingLeft='36px';
  1314. title29_ol1.style.marginBottom='20px';
  1315. woker_talk.appendChild(title29_ol1);
  1316. if(dwhjtotalCount>0){
  1317. if(Number(hjresult)<=0.5){
  1318. var title29_li6 = document.createElement('li');
  1319. title29_li6.innerHTML='目前数据反映:火灾监测运行状态较好,需要保持;';
  1320. title29_li6.style.fontSize='14px';
  1321. title29_ol1.appendChild(title29_li6);
  1322. }
  1323. if(Number(ConfirmStore4[0].lxhjresult)<=0.5){
  1324. var title29_li1 = document.createElement('li');
  1325. title29_li1.innerHTML='目前数据反映:火灾监测设备通信情况较好,需要保持;';
  1326. title29_li1.style.fontSize='14px';
  1327. title29_ol1.appendChild(title29_li1);
  1328. }
  1329. }
  1330. if(dwsjtotalCount>0){
  1331. if(Number(sjresult)<=1){
  1332. var title29_li2 = document.createElement('li');
  1333. title29_li2.innerHTML='目前数据反映:消防水系统监测运行状态较好,需要保持;';
  1334. title29_li2.style.fontSize='14px';
  1335. title29_ol1.appendChild(title29_li2);
  1336. }
  1337. if(Number(ConfirmStore4[0].lxsjresult)<=0.5){
  1338. var title29_li3 = document.createElement('li');
  1339. title29_li3.innerHTML='目前数据反映:消防水系统监测设备通信情况较好,需要保持;';
  1340. title29_li3.style.fontSize='14px';
  1341. title29_ol1.appendChild(title29_li3);
  1342. }
  1343. }
  1344. if(dwrtutotalCount>0){
  1345. if(Number(rturesult)<=0.5){
  1346. var title29_li4 = document.createElement('li');
  1347. title29_li4.innerHTML='目前数据反映:RTU监测运行状态较好,需要保持;';
  1348. title29_li4.style.fontSize='14px';
  1349. title29_ol1.appendChild(title29_li4);
  1350. }
  1351. if(Number(ConfirmStore4[0].lxrturesult)<=0.5){
  1352. var title29_li5 = document.createElement('li');
  1353. title29_li5.innerHTML='目前数据反映:RTU监测设备通信情况较好,需要保持。';
  1354. title29_li5.style.fontSize='14px';
  1355. title29_ol1.appendChild(title29_li5);
  1356. }
  1357. }
  1358. if(Number(hjresult)>0.5 && Number(ConfirmStore4[0].lxhjresult)>0.5 && Number(sjresult)>1 && Number(ConfirmStore4[0].lxsjresult)>0.5 && Number(rturesult)>0.5 && Number(ConfirmStore4[0].lxrturesult)>0.5){
  1359. var title29_li7 = document.createElement('li');
  1360. title29_li7.innerHTML='暂无其他事宜。';
  1361. title29_li7.style.fontSize='14px';
  1362. title29_ol1.appendChild(title29_li7);
  1363. }
  1364. }
  1365. var funDownload = function (content, filename) {
  1366. var eleLink = document.createElement('a');
  1367. eleLink.download = filename;
  1368. eleLink.style.display = 'none';
  1369. // 字符内容转变成blob地址
  1370. var blob = new Blob([content]);
  1371. eleLink.href = URL.createObjectURL(blob);
  1372. // 触发点击
  1373. document.body.appendChild(eleLink);
  1374. eleLink.click();
  1375. // 然后移除
  1376. document.body.removeChild(eleLink);
  1377. }
  1378. var highcharts = function () {
  1379. var clhjbaifenbi = parseFloat(hjbaifenbi);
  1380. $('#container').highcharts({
  1381. chart: {
  1382. plotBackgroundColor: null,
  1383. plotBorderWidth: null,
  1384. plotShadow: false,
  1385. type: 'pie'
  1386. },
  1387. credits: {
  1388. enabled: false
  1389. },
  1390. exporting: { enabled:false },
  1391. title: {
  1392. text: '火灾告警处理情况饼图'
  1393. },
  1394. tooltip: {
  1395. pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'
  1396. },
  1397. plotOptions: {
  1398. pie: {
  1399. allowPointSelect: true,
  1400. cursor: 'pointer',
  1401. dataLabels: {
  1402. enabled: true,
  1403. format: '<b>{point.name}</b>: {point.percentage:.1f} %',
  1404. style: {
  1405. color: (Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black'
  1406. }
  1407. },
  1408. showInLegend: true
  1409. }
  1410. },
  1411. series: [{
  1412. name: '百分比',
  1413. colorByPoint: true,
  1414. data: [{
  1415. name: '处理率',
  1416. y: clhjbaifenbi,
  1417. sliced: true,
  1418. selected: true
  1419. }, {
  1420. name: '未处理',
  1421. y: 100-clhjbaifenbi
  1422. }]
  1423. }]
  1424. });
  1425. }
  1426. var highcharts1 = function () {
  1427. var clsjbaifenbi = parseFloat(sjbaifenbi);
  1428. $('#container1').highcharts({
  1429. chart: {
  1430. plotBackgroundColor: null,
  1431. plotBorderWidth: null,
  1432. plotShadow: false,
  1433. type: 'pie'
  1434. },
  1435. credits: {
  1436. enabled: false
  1437. },
  1438. exporting: { enabled:false },
  1439. title: {
  1440. text: '水系统告警处理情况饼图'
  1441. },
  1442. tooltip: {
  1443. pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'
  1444. },
  1445. plotOptions: {
  1446. pie: {
  1447. allowPointSelect: true,
  1448. cursor: 'pointer',
  1449. dataLabels: {
  1450. enabled: true,
  1451. format: '<b>{point.name}</b>: {point.percentage:.1f} %',
  1452. style: {
  1453. color: (Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black'
  1454. }
  1455. },
  1456. showInLegend: true
  1457. }
  1458. },
  1459. series: [{
  1460. name: '百分比',
  1461. colorByPoint: true,
  1462. data: [{
  1463. name: '处理率',
  1464. y: clsjbaifenbi,
  1465. sliced: true,
  1466. selected: true
  1467. },{
  1468. name: '未处理',
  1469. y: 100-clsjbaifenbi
  1470. }]
  1471. }]
  1472. });
  1473. }
  1474. var highcharts2 = function () {
  1475. var clrtubaifenbi = parseFloat(rtubaifenbi);
  1476. $('#container2').highcharts({
  1477. chart: {
  1478. plotBackgroundColor: null,
  1479. plotBorderWidth: null,
  1480. plotShadow: false,
  1481. type: 'pie'
  1482. },
  1483. credits: {
  1484. enabled: false
  1485. },
  1486. exporting: { enabled:false },
  1487. title: {
  1488. text: 'RTU系统告警处理情况饼图'
  1489. },
  1490. tooltip: {
  1491. pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'
  1492. },
  1493. plotOptions: {
  1494. pie: {
  1495. allowPointSelect: true,
  1496. cursor: 'pointer',
  1497. dataLabels: {
  1498. enabled: true,
  1499. format: '<b>{point.name}</b>: {point.percentage:.1f} %',
  1500. style: {
  1501. color: (Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black'
  1502. }
  1503. },
  1504. showInLegend: true
  1505. }
  1506. },
  1507. series: [{
  1508. name: '百分比',
  1509. colorByPoint: true,
  1510. data: [{
  1511. name: '处理率',
  1512. y: clrtubaifenbi,
  1513. sliced: true,
  1514. selected: true
  1515. },{
  1516. name: '未处理',
  1517. y: 100-clrtubaifenbi
  1518. }]
  1519. }]
  1520. });
  1521. }
  1522. var highcharts3 = function () {
  1523. var hjresult1 = parseFloat(result1);
  1524. var sjresult2 = parseFloat(result2);
  1525. var rturesult3 = parseFloat(result3);
  1526. $('#container3').highcharts({
  1527. chart: {
  1528. plotBackgroundColor: null,
  1529. plotBorderWidth: null,
  1530. plotShadow: false,
  1531. type: 'pie'
  1532. },
  1533. credits: {
  1534. enabled: false
  1535. },
  1536. exporting: { enabled:false },
  1537. title: {
  1538. text: '各类告警总数情况饼图'
  1539. },
  1540. tooltip: {
  1541. pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'
  1542. },
  1543. plotOptions: {
  1544. pie: {
  1545. allowPointSelect: true,
  1546. cursor: 'pointer',
  1547. dataLabels: {
  1548. enabled: true,
  1549. format: '<b>{point.name}</b>: {point.percentage:.1f} %',
  1550. style: {
  1551. color: (Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black'
  1552. }
  1553. },
  1554. showInLegend: true
  1555. }
  1556. },
  1557. series: [{
  1558. name: '百分比',
  1559. colorByPoint: true,
  1560. data: [{
  1561. name: '火系统告警',
  1562. y: hjresult1,
  1563. sliced: true,
  1564. selected: true
  1565. },{
  1566. name: '水系统告警',
  1567. y: sjresult2
  1568. },{
  1569. name: 'RTU系统告警',
  1570. y: rturesult3
  1571. }]
  1572. }]
  1573. });
  1574. }
  1575. // var daochu = function(){
  1576. // var woker_talk = document.getElementById('woker_talk');
  1577. // var eleTextarea = document.querySelector('#woker_talk');
  1578. // var aa = '<!DOCTYPE html>'+
  1579. // '<html xmlns:v="urn:schemas-microsoft-com:vml"xmlns:o="urn:schemas-microsoft-com:office:office"xmlns:w="urn:schemas-microsoft-com:office:word"xmlns:m="http://schemas.microsoft.com/office/2004/12/omml"xmlns="http://www.w3.org/TR/REC-html40">'+
  1580. // '<head>'+
  1581. // '<!--[if gte mso 9]><xml><w:WordDocument><w:View>Print</w:View><w:TrackMoves>false</w:TrackMoves><w:TrackFormatting/><w:ValidateAgainstSchemas/><w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid><w:IgnoreMixedContent>false</w:IgnoreMixedContent><w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText><w:DoNotPromoteQF/><w:LidThemeOther>EN-US</w:LidThemeOther><w:LidThemeAsian>ZH-CN</w:LidThemeAsian><w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript><w:Compatibility><w:BreakWrappedTables/><w:SnapToGridInCell/><w:WrapTextWithPunct/><w:UseAsianBreakRules/><w:DontGrowAutofit/><w:SplitPgBreakAndParaMark/><w:DontVertAlignCellWithSp/><w:DontBreakConstrainedForcedTables/><w:DontVertAlignInTxbx/><w:Word11KerningPairs/><w:CachedColBalance/><w:UseFELayout/></w:Compatibility><w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel><m:mathPr><m:mathFont m:val="Cambria Math"/><m:brkBin m:val="before"/><m:brkBinSub m:val="--"/><m:smallFrac m:val="off"/><m:dispDef/><m:lMargin m:val="0"/> <m:rMargin m:val="0"/><m:defJc m:val="centerGroup"/><m:wrapIndent m:val="1440"/><m:intLim m:val="subSup"/><m:naryLim m:val="undOvr"/></m:mathPr></w:WordDocument></xml><![endif]-->'+
  1582. // '<meta charset="UTF-8">'+
  1583. // '<meta name="viewport" content="width=device-width, initial-scale=1.0">'+
  1584. // '<meta http-equiv="X-UA-Compatible" content="ie=edge">'+
  1585. // '<title>Document</title>'+
  1586. // '</head>'+
  1587. // '<body>'+
  1588. // eleTextarea.outerHTML+'</body></html>'
  1589. // funDownload(aa, 'project.html');
  1590. // }
  1591. var daochu = function(){
  1592. var woker_talk = document.getElementById('woker_talk');
  1593. var eleTextarea = document.querySelector('#woker_talk');
  1594. html2canvas(woker_talk, {
  1595. height: $("#woker_talk").outerHeight(),
  1596. onrendered:function(canvas) {
  1597. var contentWidth = canvas.width;
  1598. var contentHeight = canvas.height;
  1599. //一页pdf显示html页面生成的canvas高度;
  1600. var pageHeight = contentWidth / 592.28 * 841.89;
  1601. //未生成pdf的html页面高度
  1602. var leftHeight = contentHeight;
  1603. //页面偏移
  1604. var position = 0;
  1605. //a4纸的尺寸[595.28,841.89],html页面生成的canvas在pdf中图片的宽高
  1606. var imgWidth = 555.28;
  1607. var imgHeight = 555.28/contentWidth * contentHeight;
  1608. var pageData = canvas.toDataURL('image/jpeg', 1.0);
  1609. var pdf = new jsPDF('', 'pt', 'a4');
  1610. //有两个高度需要区分,一个是html页面的实际高度,和生成pdf的页面高度(841.89)
  1611. //当内容未超过pdf一页显示的范围,无需分页
  1612. if (leftHeight < pageHeight) {
  1613. pdf.addImage(pageData, 'JPEG', 20, 0, imgWidth, imgHeight );
  1614. } else {
  1615. while(leftHeight > 0) {
  1616. pdf.addImage(pageData, 'JPEG', 20, position, imgWidth, imgHeight)
  1617. leftHeight -= pageHeight;
  1618. position -= 841.89;
  1619. //避免添加空白页
  1620. if(leftHeight > 0) {
  1621. pdf.addPage();
  1622. }
  1623. }
  1624. }
  1625. pdf.save('content.pdf');
  1626. }
  1627. })
  1628. }
  1629. var print_detail = function (){
  1630. var div1_label1 = document.getElementById('woker_talk').innerHTML;
  1631. var div2_label1 = document.getElementById('div2_label1').innerHTML;
  1632. var hkey_key;
  1633. var hkey_root = 'HKEY_CURRENT_USER';
  1634. var hkey_path = '\\Software\\Micorsoft\\Internet Explorer\\PageSetup\\';
  1635. var print_win = window.open('打印窗口','_blank');
  1636. var div = document.createElement('div');
  1637. div.setAttribute('width', '100%');
  1638. div.setAttribute('height', '100%');
  1639. var div_print = document.createElement('div');
  1640. div_print.setAttribute('style', 'width:595px;height:842px;padding:20px;margin:0px auto 0px auto');
  1641. div_print.innerHTML=div1_label1;
  1642. div.appendChild(div_print);
  1643. // var div_print1 = document.createElement('div');
  1644. // div_print1.setAttribute('style', 'width:595px;height:842px;padding:20px;margin:0px auto 0px auto');
  1645. // div_print1.innerHTML=div2_label1;
  1646. // div.appendChild(div_print1);
  1647. print_win.document.write(div.innerHTML);
  1648. print_win.document.close();
  1649. try{
  1650. var RegWsh = new ActiveXObject('WScript.Shell');
  1651. hkey_key='header';
  1652. RegWsh.RegWrite(hkey_root+hkey_path+hkey_key,'');
  1653. hkey_key='footer';
  1654. RegWsh.RegWrite(hkey_root+hkey_path+hkey_key,'');
  1655. }catch(e){}
  1656. print_win.print();
  1657. print_win.close();
  1658. }
  1659. var show_detail_data = function(start_data,end_data,build_code,project_date){
  1660. var start_data = start_data;
  1661. var end_data = end_data;
  1662. var build_code = build_code;
  1663. var project_date = project_date;
  1664. Ext.create('Ext.window.Window', {
  1665. id:'project_data_win',
  1666. title: '<div id="detail_win_title">水系统隐患分析</div>',
  1667. height: 841,
  1668. width: 650,
  1669. maximizable: true,
  1670. layout: 'fit',
  1671. modal:true,
  1672. buttons:[
  1673. {
  1674. text:'导出',
  1675. handler : function () {
  1676. print_detail();
  1677. }
  1678. },{
  1679. text:'关闭',
  1680. handler : function() {
  1681. Ext.getCmp('project_data_win').destroy();
  1682. location.href=baseUrl+'view/index.jsp?&theme='+theme+'&company_code='+build_code;
  1683. }
  1684. }
  1685. ],
  1686. closeAction:'destroy',
  1687. html:'<div style="overflow-y:auto;height:800px;width:640px;"><div id="woker_talk"></div></div>'
  1688. }).show();
  1689. var query = new Object();
  1690. // query.V_LOGINNAME = $("#V_LOGINNAME").val();
  1691. // query.V_PASSWORD = $("#V_PASSWORD").val();
  1692. query.start_data = start_data;
  1693. query.end_data = end_data;
  1694. query.build_code = build_code;
  1695. Ext.MessageBox.wait('Loading', '生成中…');
  1696. $.ajax({
  1697. type:'POST',
  1698. url: baseUrl+"iot/company/view/getProjectList",
  1699. data: {
  1700. queryJson : Ext.JSON.encode(query)
  1701. },
  1702. success: function(result){
  1703. var json = eval('(' + result + ')');
  1704. if(json.action=='getVProjectNameList'){
  1705. ConfirmStore = json.RESULT;
  1706. ConfirmStore1 = json.RESULT1;
  1707. ConfirmStore2 = json.RESULT2;
  1708. ConfirmStore4 = json.RESULT4;
  1709. hjtotalCount = json.hjtotalCount;
  1710. clhjtotalCount = json.clhjtotalCount;
  1711. lxhjtotalCount = json.lxhjtotalCount;
  1712. cllxhjtotalCount = json.cllxhjtotalCount;
  1713. eftotalCount = json.eftotalCount;
  1714. cleftotalCount = json.cleftotalCount;
  1715. lxeftotalCount = json.lxeftotalCount;
  1716. cllxeftotalCount = json.cllxeftotalCount;
  1717. sjtotalCount = json.sjtotalCount;
  1718. clsjtotalCount = json.clsjtotalCount;
  1719. lxsjtotalCount = json.lxsjtotalCount;
  1720. cllxsjtotalCount = json.cllxsjtotalCount;
  1721. rtutotalCount = json.rtutotalCount;
  1722. clrtutotalCount = json.clrtutotalCount;
  1723. lxrtutotalCount = json.lxrtutotalCount;
  1724. cllxrtutotalCount = json.cllxrtutotalCount;
  1725. hjbaifenbi = json.hjbaifenbi;
  1726. lxhjbaifenbi = json.lxhjbaifenbi;
  1727. efbaifenbi = json.efbaifenbi;
  1728. lxefbaifenbi = json.lxefbaifenbi;
  1729. sjbaifenbi = json.sjbaifenbi;
  1730. lxsjbaifenbi = json.lxsjbaifenbi;
  1731. rtubaifenbi = json.rtubaifenbi;
  1732. lxrtubaifenbi = json.lxrtubaifenbi;
  1733. dwhjtotalCount = json.dwhjtotalCount;
  1734. dwsjtotalCount = json.dwsjtotalCount;
  1735. dwrtutotalCount = json.dwrtutotalCount;
  1736. days = json.days;
  1737. hjresult = json.hjresult;
  1738. sjresult = json.sjresult;
  1739. rturesult = json.rturesult;
  1740. device_num1=json.device_num1;
  1741. device_num2=json.device_num2;
  1742. clhjbaifenbi = json.clhjbaifenbi;
  1743. result1 = json.result1;
  1744. result2 = json.result2;
  1745. result3 = json.result3;
  1746. days3 = json.days3;
  1747. days6 = json.days6;
  1748. days9 = json.days9;
  1749. Ext.MessageBox.hide();
  1750. draw_confirm(query.start_data,query.end_data,project_date);
  1751. highcharts();
  1752. highcharts1();
  1753. highcharts2();
  1754. highcharts3();
  1755. }
  1756. }
  1757. });
  1758. }
  1759. Ext.define('CompanyComboStore1',{
  1760. extend:'Ext.data.Model',
  1761. fields: [
  1762. {name:'owner_name', type:'string'},
  1763. {name:'owner_id',type:'string'}
  1764. ]
  1765. });
  1766. CompanyStory = Ext.create('Ext.data.Store',{
  1767. model: 'CompanyComboStore1',
  1768. proxy: {
  1769. type: 'ajax',
  1770. actionMethods: {
  1771. create : 'POST',
  1772. read : 'POST', // by default GET
  1773. update : 'POST',
  1774. destroy: 'POST'
  1775. },
  1776. url: baseUrl+'iot/company/view/getNameList',
  1777. reader: {
  1778. type: 'json',
  1779. root: 'RESULT',
  1780. totalProperty: 'totalCount'
  1781. },
  1782. extraParams:{
  1783. queryJson:Ext.JSON.encode(queryJson)
  1784. }
  1785. }
  1786. });
  1787. FilterWin = Ext.create('Ext.form.Panel', {
  1788. id: 'PatrolPlanFilterForm',
  1789. labelWidth: 55,
  1790. defaultType: 'textfield',
  1791. bodyPadding: 15,
  1792. items: [{
  1793. xtype:'datefield',
  1794. fieldLabel:"开始日期",
  1795. minValue:'07/07/2017',
  1796. minText:"当前日期选择应大于2017-07-07",
  1797. format:"Y-m-d",
  1798. value:Ext.util.Format.date(Ext.Date.add(new Date(),Ext.Date.MONTH,-1),"Y-m-01"),
  1799. columnWidth:0.5,
  1800. id: 'start_date',
  1801. name:"start_date",
  1802. editable:false,//只读约束
  1803. allowBlank:false,
  1804. blankText:"不能为空",
  1805. anchor:'95%'
  1806. },{
  1807. xtype:'datefield',
  1808. fieldLabel:"结束日期",
  1809. minValue:'07/07/2017',
  1810. minText:"当前日期选择应大于2017-07-07",
  1811. format:"Y-m-d",
  1812. value:Ext.util.Format.date(new Date(new Date(new Date().getUTCFullYear(), new Date().getMonth(), 1) - 86400000), "Y-m-d"),
  1813. columnWidth:0.5,
  1814. id: 'end_date',
  1815. name:"end_date",
  1816. editable:false,//只读约束
  1817. allowBlank:false,
  1818. blankText:"不能为空",
  1819. anchor:'95%'
  1820. },
  1821. {
  1822. xtype:'combo',
  1823. fieldLabel:'建筑物名称',
  1824. id: 'company_code',
  1825. name:'company_code',
  1826. displayField : 'owner_name',
  1827. valueField : 'owner_id',
  1828. allowBlank:false,
  1829. blankText:"不能为空",
  1830. editable : false,
  1831. anchor:'80%',
  1832. store:CompanyStory
  1833. },
  1834. {
  1835. id:'ff_queryJson',
  1836. name:'queryJson',
  1837. hidden:true
  1838. }],
  1839. buttons: [{
  1840. text: '下一步',
  1841. iconCls:'ok_btn',
  1842. handler: function() {
  1843. var form = this.up('form').getForm();
  1844. if (form.isValid()) {
  1845. var start_date=Ext.util.Format.date(Ext.getCmp('start_date').getValue(), 'Y-m-d');
  1846. var end_date=Ext.util.Format.date(Ext.getCmp('end_date').getValue(), 'Y-m-d');
  1847. var project_date=Ext.util.Format.date(Ext.getCmp('start_date').getValue(), 'Y-m');
  1848. var build_code = Ext.getCmp('company_code').getValue();
  1849. // show_detail_data(start_date,end_date,build_code,project_date);
  1850. // this.up('window').hide();
  1851. alert("数据量有限,暂无法分析");
  1852. location.href=baseUrl+'view/index.jsp?&theme='+theme+'&company_code='+Ext.getCmp('company_code').getValue();
  1853. }
  1854. }
  1855. },{
  1856. text: '关闭',
  1857. iconCls: 'cancel_btn',
  1858. handler: function() {
  1859. this.up('window').hide();
  1860. location.href=baseUrl+'view/index.jsp?&theme='+theme+'&company_code='+Ext.getCmp('company_code').getValue();
  1861. }
  1862. }]
  1863. });
  1864. var filterwin = function() {
  1865. Ext.create('Ext.window.Window',{
  1866. title: '水系统隐患分析',
  1867. height: 300,
  1868. width: 350,
  1869. layout: 'fit',
  1870. items: FilterWin,
  1871. closeAction: 'hide'
  1872. }).show();
  1873. }();
  1874. });