projectWoker.js 112 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379
  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=hjtotalCount-clhjtotalCount;
  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=lxhjtotalCount-cllxhjtotalCount;
  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=sjtotalCount-clsjtotalCount;
  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=lxsjtotalCount-cllxsjtotalCount;
  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=rtutotalCount-clrtutotalCount;
  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=lxrtutotalCount-cllxrtutotalCount;
  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. if(ConfirmStore4[0].dweftotalCount>0){
  1003. var tr27 = document.createElement('tr');
  1004. sta3.appendChild(tr27);
  1005. var td65 = document.createElement('td');
  1006. td65.width='10%';
  1007. td65.style.textAlign='center';
  1008. td65.innerHTML=7;
  1009. td65.style.fontSize='14px';
  1010. td65.style.borderLeft ='1px solid #BEBEBE';
  1011. td65.style.borderTop ='1px solid #BEBEBE';
  1012. tr27.appendChild(td65);
  1013. var td66 = document.createElement('td');
  1014. td66.width='15%';
  1015. td66.style.textAlign='center';
  1016. td66.innerHTML='电气火灾监测';
  1017. td66.rowSpan='2';
  1018. td66.style.fontSize='14px';
  1019. td66.style.borderLeft ='1px solid #BEBEBE';
  1020. td66.style.borderTop ='1px solid #BEBEBE';
  1021. tr27.appendChild(td66);
  1022. var td67 = document.createElement('td');
  1023. td67.width='15%';
  1024. td67.style.textAlign='center';
  1025. td67.innerHTML='报警';
  1026. td67.style.fontSize='14px';
  1027. td67.style.borderLeft ='1px solid #BEBEBE';
  1028. td67.style.borderTop ='1px solid #BEBEBE';
  1029. tr27.appendChild(td67);
  1030. var td68 = document.createElement('td');
  1031. td68.width='15%';
  1032. td68.style.textAlign='center';
  1033. td68.innerHTML=ConfirmStore4[0].eftotalCount;
  1034. td68.style.fontSize='14px';
  1035. td68.style.borderLeft ='1px solid #BEBEBE';
  1036. td68.style.borderTop ='1px solid #BEBEBE';
  1037. tr27.appendChild(td68);
  1038. var td69 = document.createElement('td');
  1039. td69.width='10%';
  1040. td69.style.textAlign='center';
  1041. td69.innerHTML=ConfirmStore4[0].cleftotalCount;
  1042. td69.style.fontSize='14px';
  1043. td69.style.borderLeft ='1px solid #BEBEBE';
  1044. td69.style.borderTop ='1px solid #BEBEBE';
  1045. tr27.appendChild(td69);
  1046. var td70 = document.createElement('td');
  1047. td70.width='10%';
  1048. td70.style.textAlign='center';
  1049. td70.innerHTML=ConfirmStore4[0].eftotalCount-ConfirmStore4[0].cleftotalCount;
  1050. td70.style.fontSize='14px';
  1051. td70.style.borderLeft ='1px solid #BEBEBE';
  1052. td70.style.borderTop ='1px solid #BEBEBE';
  1053. tr27.appendChild(td70);
  1054. var td71 = document.createElement('td');
  1055. td71.width='10%';
  1056. td71.style.textAlign='center';
  1057. td71.innerHTML=efbaifenbi+'%';
  1058. td71.style.fontSize='14px';
  1059. td71.style.borderLeft ='1px solid #BEBEBE';
  1060. td71.style.borderTop ='1px solid #BEBEBE';
  1061. tr27.appendChild(td71);
  1062. var td72 = document.createElement('td');
  1063. td72.width='15%';
  1064. td72.style.textAlign='center';
  1065. td72.innerHTML='';
  1066. td72.style.fontSize='14px';
  1067. td72.style.borderLeft ='1px solid #BEBEBE';
  1068. td72.style.borderTop ='1px solid #BEBEBE';
  1069. tr27.appendChild(td72);
  1070. var tr28 = document.createElement('tr');
  1071. sta3.appendChild(tr28);
  1072. var td73 = document.createElement('td');
  1073. td73.width='10%';
  1074. td73.style.textAlign='center';
  1075. td73.innerHTML=8;
  1076. td73.style.fontSize='14px';
  1077. td73.style.borderLeft ='1px solid #BEBEBE';
  1078. td73.style.borderTop ='1px solid #BEBEBE';
  1079. tr28.appendChild(td73);
  1080. var td74 = document.createElement('td');
  1081. td74.width='15%';
  1082. td74.style.textAlign='center';
  1083. td74.innerHTML='设备离线';
  1084. td74.style.fontSize='14px';
  1085. td74.style.borderLeft ='1px solid #BEBEBE';
  1086. td74.style.borderTop ='1px solid #BEBEBE';
  1087. tr28.appendChild(td74);
  1088. var td75 = document.createElement('td');
  1089. td75.width='15%';
  1090. td75.style.textAlign='center';
  1091. td75.innerHTML=ConfirmStore4[0].lxeftotalCount;
  1092. td75.style.fontSize='14px';
  1093. td75.style.borderLeft ='1px solid #BEBEBE';
  1094. td75.style.borderTop ='1px solid #BEBEBE';
  1095. tr28.appendChild(td75);
  1096. var td76 = document.createElement('td');
  1097. td76.width='10%';
  1098. td76.style.textAlign='center';
  1099. td76.innerHTML=ConfirmStore4[0].cllxeftotalCount;
  1100. td76.style.fontSize='14px';
  1101. td76.style.borderLeft ='1px solid #BEBEBE';
  1102. td76.style.borderTop ='1px solid #BEBEBE';
  1103. tr28.appendChild(td76);
  1104. var td77 = document.createElement('td');
  1105. td77.width='10%';
  1106. td77.style.textAlign='center';
  1107. td77.innerHTML=ConfirmStore4[0].lxeftotalCount-ConfirmStore4[0].cllxeftotalCount;
  1108. td77.style.fontSize='14px';
  1109. td77.style.borderLeft ='1px solid #BEBEBE';
  1110. td77.style.borderTop ='1px solid #BEBEBE';
  1111. tr28.appendChild(td77);
  1112. var td78 = document.createElement('td');
  1113. td78.width='10%';
  1114. td78.style.textAlign='center';
  1115. td78.innerHTML=lxefbaifenbi;
  1116. td78.style.fontSize='14px';
  1117. td78.style.borderLeft ='1px solid #BEBEBE';
  1118. td78.style.borderTop ='1px solid #BEBEBE';
  1119. tr28.appendChild(td78);
  1120. var td79= document.createElement('td');
  1121. td79.width='15%';
  1122. td79.style.textAlign='center';
  1123. td79.innerHTML='';
  1124. td79.style.fontSize='14px';
  1125. td79.style.borderLeft ='1px solid #BEBEBE';
  1126. td79.style.borderTop ='1px solid #BEBEBE';
  1127. tr28.appendChild(td79);
  1128. }
  1129. if(ConfirmStore4[0].dwvideototalCount>0){
  1130. var tr29 = document.createElement('tr');
  1131. sta3.appendChild(tr29);
  1132. var td80 = document.createElement('td');
  1133. td80.width='10%';
  1134. td80.style.textAlign='center';
  1135. if(ConfirmStore4[0].dweftotalCount>0){
  1136. td80.innerHTML=9;
  1137. }else{
  1138. td80.innerHTML=7;
  1139. }
  1140. td80.style.fontSize='14px';
  1141. td80.style.borderLeft ='1px solid #BEBEBE';
  1142. td80.style.borderTop ='1px solid #BEBEBE';
  1143. tr29.appendChild(td80);
  1144. var td81 = document.createElement('td');
  1145. td81.width='15%';
  1146. td81.style.textAlign='center';
  1147. td81.innerHTML='视频监测';
  1148. // td81.rowSpan='2';
  1149. td81.style.fontSize='14px';
  1150. td81.style.borderLeft ='1px solid #BEBEBE';
  1151. td81.style.borderTop ='1px solid #BEBEBE';
  1152. tr29.appendChild(td81);
  1153. var td82 = document.createElement('td');
  1154. td82.width='15%';
  1155. td82.style.textAlign='center';
  1156. td82.innerHTML='报警';
  1157. td82.style.fontSize='14px';
  1158. td82.style.borderLeft ='1px solid #BEBEBE';
  1159. td82.style.borderTop ='1px solid #BEBEBE';
  1160. tr29.appendChild(td82);
  1161. var td83 = document.createElement('td');
  1162. td83.width='15%';
  1163. td83.style.textAlign='center';
  1164. td83.innerHTML=ConfirmStore4[0].videototalCount;
  1165. td83.style.fontSize='14px';
  1166. td83.style.borderLeft ='1px solid #BEBEBE';
  1167. td83.style.borderTop ='1px solid #BEBEBE';
  1168. tr29.appendChild(td83);
  1169. var td84 = document.createElement('td');
  1170. td84.width='10%';
  1171. td84.style.textAlign='center';
  1172. td84.innerHTML=ConfirmStore4[0].clvideototalCount;
  1173. td84.style.fontSize='14px';
  1174. td84.style.borderLeft ='1px solid #BEBEBE';
  1175. td84.style.borderTop ='1px solid #BEBEBE';
  1176. tr29.appendChild(td84);
  1177. var td85 = document.createElement('td');
  1178. td85.width='10%';
  1179. td85.style.textAlign='center';
  1180. td85.innerHTML=ConfirmStore4[0].videototalCount-ConfirmStore4[0].clvideototalCount;
  1181. td85.style.fontSize='14px';
  1182. td85.style.borderLeft ='1px solid #BEBEBE';
  1183. td85.style.borderTop ='1px solid #BEBEBE';
  1184. tr29.appendChild(td85);
  1185. var td86 = document.createElement('td');
  1186. td86.width='10%';
  1187. td86.style.textAlign='center';
  1188. td86.innerHTML=videobaifenbi+'%';
  1189. td86.style.fontSize='14px';
  1190. td86.style.borderLeft ='1px solid #BEBEBE';
  1191. td86.style.borderTop ='1px solid #BEBEBE';
  1192. tr29.appendChild(td86);
  1193. var td87 = document.createElement('td');
  1194. td87.width='15%';
  1195. td87.style.textAlign='center';
  1196. td87.innerHTML='';
  1197. td87.style.fontSize='14px';
  1198. td87.style.borderLeft ='1px solid #BEBEBE';
  1199. td87.style.borderTop ='1px solid #BEBEBE';
  1200. tr29.appendChild(td87);
  1201. }
  1202. var title17 = document.createElement('div');
  1203. title17.style.textAlign='center';
  1204. title17.style.fontSize='14px';
  1205. title17.style.marginBottom='20px';
  1206. title17.style.fontWeight='bold';
  1207. title17.innerHTML='表4 项目阶段数据统计表';
  1208. div2.appendChild(title17);
  1209. var title18 = document.createElement('h3');
  1210. title18.style.textAlign='left';
  1211. title18.style.fontSize='14px';
  1212. title18.style.fontWeight='bold';
  1213. title18.innerHTML='3 阶段数据分析';
  1214. woker_talk.appendChild(title18);
  1215. var title18_highcharts = document.createElement('div');
  1216. // title20_highcharts.width='200!important';
  1217. // title20_highcharts.height='200!important';
  1218. title18_highcharts.style.marginTop='20px';
  1219. title18_highcharts.style.marginBottom='20px';
  1220. title18_highcharts.setAttribute('id','container3');
  1221. title18_highcharts.style.textAlign='center';
  1222. woker_talk.appendChild(title18_highcharts);
  1223. var title19 = document.createElement('h4');
  1224. title19.style.textAlign='left';
  1225. title19.style.fontSize='14px';
  1226. title19.style.fontWeight='bold';
  1227. title19.innerHTML='3.1 火灾监测数据分析';
  1228. woker_talk.appendChild(title19);
  1229. var title20_highcharts = document.createElement('div');
  1230. // title20_highcharts.width='200!important';
  1231. // title20_highcharts.height='200!important';
  1232. title20_highcharts.style.marginTop='20px';
  1233. title20_highcharts.style.marginBottom='20px';
  1234. title20_highcharts.setAttribute('id','container');
  1235. title20_highcharts.style.textAlign='center';
  1236. woker_talk.appendChild(title20_highcharts);
  1237. var title20 = document.createElement('div');
  1238. // title20.setAttribute('class','title20_label1');
  1239. title20.style.border='1px solid #BEBEBE';
  1240. title20.width='100%';
  1241. title20.style.background='#AAAAAA';
  1242. // title20.style.minHeight='80px';
  1243. title20.style.textIndent='2em';
  1244. title20.style.marginBottom='20px';
  1245. woker_talk.appendChild(title20);
  1246. var title20_p1 = document.createElement('p');
  1247. if(dwhjtotalCount>0){
  1248. if(Number(hjresult)>0.5&&Number(ConfirmStore4[0].lxhjresult)>0.5){
  1249. // if(typeof(days3)=="undefined"){
  1250. title20_p1.innerHTML='统计时段内火灾监测报告数量:'+hjtotalCount+'条。'+'报告平均发生:'+hjresult+'条/台/天。报告数量偏高。提示:火灾隐患极高或存在系统故障,需要排查;离线记录中,报告数量:'+lxhjtotalCount+'条。报告平均发生:'+ConfirmStore4[0].lxhjresult+'条/台/天。提示:火灾监测设备通信状态不稳定,需要排查。';
  1251. // }else if(Number(days3)>=1){
  1252. // title20_p1.innerHTML='统计时段内火灾监测报告数量:'+hjtotalCount+'条。'+'报告平均发生:'+hjresult+'条/台/天。报告数量偏高。提示:火灾隐患极高或存在系统故障,需要排查;离线记录中,报告数量:'+lxhjtotalCount+'条。报告平均发生:'+ConfirmStore4[0].lxhjresult+'条/台/天。提示:火灾监测设备通信状态不稳定,需要排查;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率较低或产品使用培训不足,需要增加使用培训和完善管理制度。';
  1253. // }else if(Number(days3)<1){
  1254. // title20_p1.innerHTML='统计时段内火灾监测报告数量:'+hjtotalCount+'条。'+'报告平均发生:'+hjresult+'条/台/天。报告数量偏高。提示:火灾隐患极高或存在系统故障,需要排查;离线记录中,报告数量:'+lxhjtotalCount+'条。报告平均发生:'+ConfirmStore4[0].lxhjresult+'条/台/天。提示:火灾监测设备通信状态不稳定,需要排查;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率正常,继续保持。';
  1255. // }
  1256. }else if(Number(hjresult)>0.5 && Number(ConfirmStore4[0].lxhjresult)<=0.5){
  1257. // if(typeof(days3)=="undefined"){
  1258. title20_p1.innerHTML='统计时段内火灾监测报告数量:'+hjtotalCount+'条。'+'报告平均发生:'+hjresult+'条/台/天。报告数量偏高。提示:火灾隐患极高或存在系统故障,需要排查;离线记录中,报告数量:'+lxhjtotalCount+'条。报告平均发生:'+ConfirmStore4[0].lxhjresult+'条/台/天。提示:火灾监测设备通信状态良好,数据接收情况稳定,需要保持。';
  1259. // }else if(Number(days3)>=1){
  1260. // title20_p1.innerHTML='统计时段内火灾监测报告数量:'+hjtotalCount+'条。'+'报告平均发生:'+hjresult+'条/台/天。报告数量偏高。提示:火灾隐患极高或存在系统故障,需要排查;离线记录中,报告数量:'+lxhjtotalCount+'条。报告平均发生:'+ConfirmStore4[0].lxhjresult+'条/台/天。提示:火灾监测设备通信状态良好,数据接收情况稳定,需要保持;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率较低或产品使用培训不足,需要增加使用培训和完善管理制度。';
  1261. // }else if(Number(days3)<1){
  1262. // title20_p1.innerHTML='统计时段内火灾监测报告数量:'+hjtotalCount+'条。'+'报告平均发生:'+hjresult+'条/台/天。报告数量偏高。提示:火灾隐患极高或存在系统故障,需要排查;离线记录中,报告数量:'+lxhjtotalCount+'条。报告平均发生:'+ConfirmStore4[0].lxhjresult+'条/台/天。提示:火灾监测设备通信状态良好,数据接收情况稳定,需要保持;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率正常,继续保持。';
  1263. // }
  1264. }else if(Number(hjresult)<=0.5&&Number(ConfirmStore4[0].lxhjresult)>0.5){
  1265. // if(typeof(days3)=="undefined"){
  1266. title20_p1.innerHTML='统计时段内火灾监测报告数量:'+hjtotalCount+'条。'+'报告平均发生:'+hjresult+'条/台/天。报告数量良好。提示:有一定的火灾隐患或存在系统故障,需要排查;离线记录中,报告数量:'+lxhjtotalCount+'条。报告平均发生:'+ConfirmStore4[0].lxhjresult+'条/台/天。提示:火灾监测设备通信状态不稳定,需要排查。';
  1267. // }else if(Number(days3)>=1){
  1268. // title20_p1.innerHTML='统计时段内火灾监测报告数量:'+hjtotalCount+'条。'+'报告平均发生:'+hjresult+'条/台/天。报告数量良好。提示:有一定的火灾隐患或存在系统故障,需要排查;离线记录中,报告数量:'+lxhjtotalCount+'条。报告平均发生:'+ConfirmStore4[0].lxhjresult+'条/台/天。提示:火灾监测设备通信状态不稳定,需要排查;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率较低或产品使用培训不足,需要增加使用培训和完善管理制度。';
  1269. // }else if(Number(days3)<1){
  1270. // title20_p1.innerHTML='统计时段内火灾监测报告数量:'+hjtotalCount+'条。'+'报告平均发生:'+hjresult+'条/台/天。报告数量良好。提示:有一定的火灾隐患或存在系统故障,需要排查;离线记录中,报告数量:'+lxhjtotalCount+'条。报告平均发生:'+ConfirmStore4[0].lxhjresult+'条/台/天。提示:火灾监测设备通信状态不稳定,需要排查;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率正常,继续保持。';
  1271. // }
  1272. }else if(Number(hjresult)<=0.5&&Number(ConfirmStore4[0].lxhjresult)<=0.5){
  1273. // if(typeof(days3)=="undefined"){
  1274. title20_p1.innerHTML='统计时段内火灾监测报告数量:'+hjtotalCount+'条。'+'报告平均发生:'+hjresult+'条/台/天。报告数量良好。提示:有一定的火灾隐患或存在系统故障,需要排查;离线记录中,报告数量:'+lxhjtotalCount+'条。报告平均发生:'+ConfirmStore4[0].lxhjresult+'条/台/天。提示:火灾监测设备通信状态良好,数据接收情况稳定,需要保持。';
  1275. // }else if(Number(days3)>=1){
  1276. // title20_p1.innerHTML='统计时段内火灾监测报告数量:'+hjtotalCount+'条。'+'报告平均发生:'+hjresult+'条/台/天。报告数量良好。提示:有一定的火灾隐患或存在系统故障,需要排查;离线记录中,报告数量:'+lxhjtotalCount+'条。报告平均发生:'+ConfirmStore4[0].lxhjresult+'条/台/天。提示:火灾监测设备通信状态良好,数据接收情况稳定,需要保持;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率较低或产品使用培训不足,需要增加使用培训和完善管理制度。';
  1277. // }else if(Number(days3)<1){
  1278. // title20_p1.innerHTML='统计时段内火灾监测报告数量:'+hjtotalCount+'条。'+'报告平均发生:'+hjresult+'条/台/天。报告数量良好。提示:有一定的火灾隐患或存在系统故障,需要排查;离线记录中,报告数量:'+lxhjtotalCount+'条。报告平均发生:'+ConfirmStore4[0].lxhjresult+'条/台/天。提示:火灾监测设备通信状态良好,数据接收情况稳定,需要保持;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率正常,继续保持。';
  1279. // }
  1280. }
  1281. }else{
  1282. title20_p1.innerHTML='未安装此设备';
  1283. }
  1284. // title20_p1.setAttribute('class','title14_label1_p1');
  1285. title20_p1.style.paddingLeft='36px';
  1286. title20_p1.style.paddingRight='36px';
  1287. title20_p1.style.marginBottom='20px';
  1288. title20_p1.style.marginTop='20px';
  1289. title20_p1.style.lineHeight='150%';
  1290. title20_p1.style.fontSize='14px';
  1291. title20.appendChild(title20_p1);
  1292. var title21 = document.createElement('h4');
  1293. title21.style.textAlign='left';
  1294. title21.style.fontSize='14px';
  1295. title21.style.fontWeight='bold';
  1296. title21.innerHTML='3.2 消防水系统监测数据分析';
  1297. woker_talk.appendChild(title21);
  1298. var title21_highcharts = document.createElement('div');
  1299. // title20_highcharts.width='200!important';
  1300. // title20_highcharts.height='200!important';
  1301. title21_highcharts.style.marginTop='20px';
  1302. title21_highcharts.style.marginBottom='46px';
  1303. title21_highcharts.setAttribute('id','container1');
  1304. title21_highcharts.style.textAlign='center';
  1305. woker_talk.appendChild(title21_highcharts);
  1306. var title22 = document.createElement('div');
  1307. // title22.setAttribute('class','title20_label1');
  1308. title22.style.border='1px solid #BEBEBE';
  1309. title22.width='100%';
  1310. title22.style.background='#AAAAAA';
  1311. // title22.style.minHeight='80px';
  1312. title22.style.textIndent='2em';
  1313. title22.style.marginBottom='20px';
  1314. woker_talk.appendChild(title22);
  1315. var title22_p1 = document.createElement('p');
  1316. if(dwsjtotalCount>0){
  1317. if(Number(sjresult)>1&&Number(ConfirmStore4[0].lxsjresult)>0.5){
  1318. // if(typeof(days6)=="undefined"){
  1319. title22_p1.innerHTML='统计时段内消防水系统监测报告数量:'+sjtotalCount+'次。'+'报告平均发生:'+sjresult+'条/台/天。报告数量偏高。提示:现场消防水压或液位存在隐患,需要排查;离线记录中,报告数量:'+lxsjtotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxsjresult+'条/台/天。提示:消防水系统监测设备通信状态不稳定,需要排查。';
  1320. // }else if(Number(days6)>=1){
  1321. // title22_p1.innerHTML='统计时段内消防水系统监测报告数量:'+sjtotalCount+'次。'+'报告平均发生:'+sjresult+'条/台/天。报告数量偏高。提示:现场消防水压或液位存在隐患,需要排查;离线记录中,报告数量:'+lxsjtotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxsjresult+'条/台/天。提示:消防水系统监测设备通信状态不稳定,需要排查;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率较低或产品使用培训不足,需要增加使用培训和完善管理制度。';
  1322. // }else if(Number(days6)<1){
  1323. // title22_p1.innerHTML='统计时段内消防水系统监测报告数量:'+sjtotalCount+'次。'+'报告平均发生:'+sjresult+'条/台/天。报告数量偏高。提示:现场消防水压或液位存在隐患,需要排查;离线记录中,报告数量:'+lxsjtotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxsjresult+'条/台/天。提示:消防水系统监测设备通信状态不稳定,需要排查;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率正常,继续保持。';
  1324. // }
  1325. }else if(Number(sjresult)>1 && Number(ConfirmStore4[0].lxsjresult)<=0.5){
  1326. // if(typeof(days6)=="undefined"){
  1327. title22_p1.innerHTML='统计时段内消防水系统监测报告数量:'+sjtotalCount+'次。'+'报告平均发生:'+sjresult+'条/台/天。报告数量偏高。提示:现场消防水压或液位存在隐患,需要排查;离线记录中,报告数量:'+lxsjtotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxsjresult+'条/台/天。提示:消防水系统监测设备通信状态良好,需要保持。';
  1328. // }else if(Number(days6)>=1){
  1329. // title22_p1.innerHTML='统计时段内消防水系统监测报告数量:'+sjtotalCount+'次。'+'报告平均发生:'+sjresult+'条/台/天。报告数量偏高。提示:现场消防水压或液位存在隐患,需要排查;离线记录中,报告数量:'+lxsjtotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxsjresult+'条/台/天。提示:消防水系统监测设备通信状态良好,需要保持;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率较低或产品使用培训不足,需要增加使用培训和完善管理制度。';
  1330. // }else if(Number(days6)<1){
  1331. // title22_p1.innerHTML='统计时段内消防水系统监测报告数量:'+sjtotalCount+'次。'+'报告平均发生:'+sjresult+'条/台/天。报告数量偏高。提示:现场消防水压或液位存在隐患,需要排查;离线记录中,报告数量:'+lxsjtotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxsjresult+'条/台/天。提示:消防水系统监测设备通信状态良好,需要保持;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率正常,继续保持。';
  1332. // }
  1333. }else if(Number(sjresult)<=1 && Number(ConfirmStore4[0].lxsjresult)>0.5){
  1334. // if(typeof(days6)=="undefined"){
  1335. title22_p1.innerHTML='统计时段内消防水系统监测报告数量:'+sjtotalCount+'次。'+'报告平均发生:'+sjresult+'条/台/天。报告数量良好。提示:消防水设备状态良好,需要保持;离线记录中,报告数量:'+lxsjtotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxsjresult+'条/台/天。提示:消防水系统监测设备通信状态不稳定,需要排查。';
  1336. // }else if(Number(days6)>=1){
  1337. // title22_p1.innerHTML='统计时段内消防水系统监测报告数量:'+sjtotalCount+'次。'+'报告平均发生:'+sjresult+'条/台/天。报告数量良好。提示:消防水设备状态良好,需要保持;离线记录中,报告数量:'+lxsjtotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxsjresult+'条/台/天。提示:消防水系统监测设备通信状态不稳定,需要排查;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率较低或产品使用培训不足,需要增加使用培训和完善管理制度。';
  1338. // }else if(Number(days6)<1){
  1339. // title22_p1.innerHTML='统计时段内消防水系统监测报告数量:'+sjtotalCount+'次。'+'报告平均发生:'+sjresult+'条/台/天。报告数量良好。提示:消防水设备状态良好,需要保持;离线记录中,报告数量:'+lxsjtotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxsjresult+'条/台/天。提示:消防水系统监测设备通信状态不稳定,需要排查;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率正常,继续保持。';
  1340. // }
  1341. }else if(Number(sjresult)<=1 && Number(ConfirmStore4[0].lxsjresult)<=0.5){
  1342. // if(typeof(days6)=="undefined"){
  1343. title22_p1.innerHTML='统计时段内消防水系统监测报告数量:'+sjtotalCount+'次。'+'报告平均发生:'+sjresult+'条/台/天。报告数量良好。提示:消防水设备状态良好,需要保持;离线记录中,报告数量:'+lxsjtotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxsjresult+'条/台/天。提示:消防水系统监测设备通信状态良好,需要保持。';
  1344. // }else if(Number(days6)>=1){
  1345. // title22_p1.innerHTML='统计时段内消防水系统监测报告数量:'+sjtotalCount+'次。'+'报告平均发生:'+sjresult+'条/台/天。报告数量良好。提示:消防水设备状态良好,需要保持;离线记录中,报告数量:'+lxsjtotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxsjresult+'条/台/天。提示:消防水系统监测设备通信状态良好,需要保持;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率较低或产品使用培训不足,需要增加使用培训和完善管理制度。';
  1346. // }else if(Number(days6)<1){
  1347. // title22_p1.innerHTML='统计时段内消防水系统监测报告数量:'+sjtotalCount+'次。'+'报告平均发生:'+sjresult+'条/台/天。报告数量良好。提示:消防水设备状态良好,需要保持;离线记录中,报告数量:'+lxsjtotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxsjresult+'条/台/天。提示:消防水系统监测设备通信状态良好,需要保持;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率正常,继续保持。';
  1348. // }
  1349. }
  1350. }else{
  1351. title22_p1.innerHTML='未安装此设备';
  1352. }
  1353. // title22_p1.setAttribute('class','title14_label1_p1');
  1354. title22_p1.style.fontSize='14px';
  1355. title22_p1.style.paddingLeft='36px';
  1356. title22_p1.style.paddingRight='36px';
  1357. title22_p1.style.marginBottom='20px';
  1358. title22_p1.style.marginTop='20px';
  1359. title22_p1.style.lineHeight='150%';
  1360. title22.appendChild(title22_p1);
  1361. var title23 = document.createElement('h4');
  1362. title23.style.textAlign='left';
  1363. title23.style.fontSize='14px';
  1364. title23.style.fontWeight='bold';
  1365. title23.innerHTML='3.3 RTU监测数据分析';
  1366. woker_talk.appendChild(title23);
  1367. var title23_highcharts = document.createElement('div');
  1368. // title23_highcharts.style.width='300px';
  1369. // title23_highcharts.style.height='300px';
  1370. title23_highcharts.style.marginTop='20px';
  1371. title23_highcharts.style.marginBottom='20px';
  1372. title23_highcharts.setAttribute('id','container2');
  1373. title23_highcharts.style.textAlign='center';
  1374. woker_talk.appendChild(title23_highcharts);
  1375. var title24 = document.createElement('div');
  1376. title24.style.border='1px solid #BEBEBE';
  1377. title24.width='100%';
  1378. title24.style.background='#AAAAAA';
  1379. // title22.style.minHeight='80px';
  1380. title24.style.textIndent='2em';
  1381. title24.style.marginBottom='20px';
  1382. woker_talk.appendChild(title24);
  1383. var title24_p1 = document.createElement('p');
  1384. if(dwrtutotalCount>0){
  1385. if(Number(rturesult)>0.5&&Number(ConfirmStore4[0].lxrturesult)>0.5){
  1386. // if(typeof(days9)=="undefined"){
  1387. title24_p1.innerHTML='统计时段内RTU监测报告数量:'+rtutotalCount+'次。'+'报告平均发生:'+rturesult+'条/台/天。'+'提示:控制柜状态切换频率异常;需要排查;离线记录中,报告数量:'+lxrtutotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxrturesult+'条/台/天。提示:RTU监测设备通信状态不稳定,需要排查。';
  1388. // }else if(Number(days9)>=1){
  1389. // title24_p1.innerHTML='统计时段内RTU监测报告数量:'+rtutotalCount+'次。'+'报告平均发生:'+rturesult+'条/台/天。'+'提示:控制柜状态切换频率异常;需要排查;离线记录中,报告数量:'+lxrtutotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxrturesult+'条/台/天。提示:RTU监测设备通信状态不稳定,需要排查;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率较低或产品使用培训不足,需要增加使用培训和完善管理制度。';
  1390. // }else if(Number(days9)<1){
  1391. // title24_p1.innerHTML='统计时段内RTU监测报告数量:'+rtutotalCount+'次。'+'报告平均发生:'+rturesult+'条/台/天。'+'提示:控制柜状态切换频率异常;需要排查;离线记录中,报告数量:'+lxrtutotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxrturesult+'条/台/天。提示:RTU监测设备通信状态不稳定,需要排查;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率正常,继续保持。';
  1392. // }
  1393. }else if(Number(rturesult)>0.5 && Number(ConfirmStore4[0].lxrturesult)<=0.5){
  1394. // if(typeof(days9)=="undefined"){
  1395. title24_p1.innerHTML='统计时段内RTU监测报告数量:'+rtutotalCount+'次。'+'报告平均发生:'+rturesult+'条/台/天。'+'提示:控制柜状态切换频率异常;需要排查;离线记录中,报告数量:'+lxrtutotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxrturesult+'条/台/天。提示:RTU监测设备通信状态良好,需要保持。';
  1396. // }else if(Number(days9)>=1){
  1397. // title24_p1.innerHTML='统计时段内RTU监测报告数量:'+rtutotalCount+'次。'+'报告平均发生:'+rturesult+'条/台/天。'+'提示:控制柜状态切换频率异常;需要排查;离线记录中,报告数量:'+lxrtutotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxrturesult+'条/台/天。提示:RTU监测设备通信状态良好,需要保持;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率较低或产品使用培训不足,需要增加使用培训和完善管理制度。';
  1398. // }else if(Number(days9)<1){
  1399. // title24_p1.innerHTML='统计时段内RTU监测报告数量:'+rtutotalCount+'次。'+'报告平均发生:'+rturesult+'条/台/天。'+'提示:控制柜状态切换频率异常;需要排查;离线记录中,报告数量:'+lxrtutotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxrturesult+'条/台/天。提示:RTU监测设备通信状态良好,需要保持;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率正常,继续保持。';
  1400. // }
  1401. }else if(Number(rturesult)<=0.5 && Number(ConfirmStore4[0].lxrturesult)>0.5){
  1402. // if(typeof(days9)=="undefined"){
  1403. title24_p1.innerHTML='统计时段内RTU监测报告数量:'+rtutotalCount+'次。'+'报告平均发生:'+rturesult+'条/台/天。'+'提示:控制柜状态切换频率良好;需要保持;离线记录中,报告数量:'+lxrtutotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxrturesult+'条/台/天。提示:RTU监测设备通信状态不稳定,需要排查。';
  1404. // }else if(Number(days9)>=1){
  1405. // title24_p1.innerHTML='统计时段内RTU监测报告数量:'+rtutotalCount+'次。'+'报告平均发生:'+rturesult+'条/台/天。'+'提示:控制柜状态切换频率良好;需要保持;离线记录中,报告数量:'+lxrtutotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxrturesult+'条/台/天。提示:RTU监测设备通信状态不稳定,需要排查;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率较低或产品使用培训不足,需要增加使用培训和完善管理制度。';
  1406. // }else if(Number(days9)<1){
  1407. // title24_p1.innerHTML='统计时段内RTU监测报告数量:'+rtutotalCount+'次。'+'报告平均发生:'+rturesult+'条/台/天。'+'提示:控制柜状态切换频率良好;需要保持;离线记录中,报告数量:'+lxrtutotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxrturesult+'条/台/天。提示:RTU监测设备通信状态不稳定,需要排查;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率正常,继续保持。';
  1408. // }
  1409. }else if(Number(rturesult)<=0.5 && Number(ConfirmStore4[0].lxrturesult)<=0.5){
  1410. // if(typeof(days9)=="undefined"){
  1411. title24_p1.innerHTML='统计时段内RTU监测报告数量:'+rtutotalCount+'次。'+'报告平均发生:'+rturesult+'条/台/天。'+'提示:控制柜状态切换频率良好;需要保持;离线记录中,报告数量:'+lxrtutotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxrturesult+'条/台/天。提示:RTU监测设备通信状态良好,需要保持。';
  1412. // }else if(Number(days9)>=1){
  1413. // title24_p1.innerHTML='统计时段内RTU监测报告数量:'+rtutotalCount+'次。'+'报告平均发生:'+rturesult+'条/台/天。'+'提示:控制柜状态切换频率良好;需要保持;离线记录中,报告数量:'+lxrtutotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxrturesult+'条/台/天。提示:RTU监测设备通信状态良好,需要保持;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率较低或产品使用培训不足,需要增加使用培训和完善管理制度。';
  1414. // }else if(Number(days9)<1){
  1415. // title24_p1.innerHTML='统计时段内RTU监测报告数量:'+rtutotalCount+'次。'+'报告平均发生:'+rturesult+'条/台/天。'+'提示:控制柜状态切换频率良好;需要保持;离线记录中,报告数量:'+lxrtutotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxrturesult+'条/台/天。提示:RTU监测设备通信状态良好,需要保持;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率正常,继续保持。';
  1416. // }
  1417. }
  1418. }else{
  1419. title24_p1.innerHTML='未安装此设备';
  1420. }
  1421. // title24_p1.setAttribute('class','title14_label1_p1');
  1422. title24_p1.style.fontSize='14px';
  1423. title24_p1.style.paddingLeft='36px';
  1424. title24_p1.style.paddingRight='36px';
  1425. title24_p1.style.marginBottom='20px';
  1426. title24_p1.style.marginTop='20px';
  1427. title24_p1.style.lineHeight='150%';
  1428. title24.appendChild(title24_p1);
  1429. if(ConfirmStore4[0].dweftotalCount>0){
  1430. var title30 = document.createElement('h4');
  1431. title30.style.textAlign='left';
  1432. title30.style.fontSize='14px';
  1433. title30.style.fontWeight='bold';
  1434. title30.innerHTML='3.4 电气火灾监测数据分析';
  1435. woker_talk.appendChild(title30);
  1436. var title30_highcharts = document.createElement('div');
  1437. // title23_highcharts.style.width='300px';
  1438. // title23_highcharts.style.height='300px';
  1439. title30_highcharts.style.marginTop='20px';
  1440. title30_highcharts.style.marginBottom='20px';
  1441. title30_highcharts.setAttribute('id','container4');
  1442. title30_highcharts.style.textAlign='center';
  1443. woker_talk.appendChild(title30_highcharts);
  1444. var title31 = document.createElement('div');
  1445. title31.style.border='1px solid #BEBEBE';
  1446. title31.width='100%';
  1447. title31.style.background='#AAAAAA';
  1448. // title22.style.minHeight='80px';
  1449. title31.style.textIndent='2em';
  1450. title31.style.marginBottom='20px';
  1451. woker_talk.appendChild(title31);
  1452. var title31_p1 = document.createElement('p');
  1453. if(Number(ConfirmStore4[0].efresult)>0.5&&Number(ConfirmStore4[0].lxefresult)>0.5){
  1454. // if(typeof(days9)=="undefined"){
  1455. title31_p1.innerHTML='统计时段内电气火灾监测报告数量:'+ConfirmStore4[0].eftotalCount+'次。'+'报告平均发生:'+ConfirmStore4[0].efresult+'条/台/天。'+'提示:电气火灾报警频率异常;需要排查是否有隐患;离线记录中,报告数量:'+ConfirmStore4[0].lxeftotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxefresult+'条/台/天。提示:电气火灾监测设备通信状态不稳定,需要排查。';
  1456. // }else if(Number(days9)>=1){
  1457. // title24_p1.innerHTML='统计时段内RTU监测报告数量:'+rtutotalCount+'次。'+'报告平均发生:'+rturesult+'条/台/天。'+'提示:控制柜状态切换频率异常;需要排查;离线记录中,报告数量:'+lxrtutotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxrturesult+'条/台/天。提示:RTU监测设备通信状态不稳定,需要排查;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率较低或产品使用培训不足,需要增加使用培训和完善管理制度。';
  1458. // }else if(Number(days9)<1){
  1459. // title24_p1.innerHTML='统计时段内RTU监测报告数量:'+rtutotalCount+'次。'+'报告平均发生:'+rturesult+'条/台/天。'+'提示:控制柜状态切换频率异常;需要排查;离线记录中,报告数量:'+lxrtutotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxrturesult+'条/台/天。提示:RTU监测设备通信状态不稳定,需要排查;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率正常,继续保持。';
  1460. // }
  1461. }else if(Number(ConfirmStore4[0].efresult)>0.5 && Number(ConfirmStore4[0].lxefresult)<=0.5){
  1462. // if(typeof(days9)=="undefined"){
  1463. title31_p1.innerHTML='统计时段内电气火灾监测报告数量:'+ConfirmStore4[0].eftotalCount+'次。'+'报告平均发生:'+ConfirmStore4[0].efresult+'条/台/天。'+'提示:电气火灾报警频率异常;需要排查是否有隐患;离线记录中,报告数量:'+ConfirmStore4[0].lxeftotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxefresult+'条/台/天。提示:电气火灾监测设备通信状态良好,需要保持。';
  1464. // }else if(Number(days9)>=1){
  1465. // title24_p1.innerHTML='统计时段内RTU监测报告数量:'+rtutotalCount+'次。'+'报告平均发生:'+rturesult+'条/台/天。'+'提示:控制柜状态切换频率异常;需要排查;离线记录中,报告数量:'+lxrtutotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxrturesult+'条/台/天。提示:RTU监测设备通信状态良好,需要保持;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率较低或产品使用培训不足,需要增加使用培训和完善管理制度。';
  1466. // }else if(Number(days9)<1){
  1467. // title24_p1.innerHTML='统计时段内RTU监测报告数量:'+rtutotalCount+'次。'+'报告平均发生:'+rturesult+'条/台/天。'+'提示:控制柜状态切换频率异常;需要排查;离线记录中,报告数量:'+lxrtutotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxrturesult+'条/台/天。提示:RTU监测设备通信状态良好,需要保持;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率正常,继续保持。';
  1468. // }
  1469. }else if(Number(ConfirmStore4[0].efresult)<=0.5 && Number(ConfirmStore4[0].lxefresult)>0.5){
  1470. // if(typeof(days9)=="undefined"){
  1471. title31_p1.innerHTML='统计时段内电气火灾监测报告数量:'+ConfirmStore4[0].eftotalCount+'次。'+'报告平均发生:'+ConfirmStore4[0].efresult+'条/台/天。'+'提示:电气火灾报警频率良好;需要保持;离线记录中,报告数量:'+ConfirmStore4[0].lxeftotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxefresult+'条/台/天。提示:电气火灾监测设备通信状态不稳定,需要排查。';
  1472. // }else if(Number(days9)>=1){
  1473. // title24_p1.innerHTML='统计时段内RTU监测报告数量:'+rtutotalCount+'次。'+'报告平均发生:'+rturesult+'条/台/天。'+'提示:控制柜状态切换频率良好;需要保持;离线记录中,报告数量:'+lxrtutotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxrturesult+'条/台/天。提示:RTU监测设备通信状态不稳定,需要排查;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率较低或产品使用培训不足,需要增加使用培训和完善管理制度。';
  1474. // }else if(Number(days9)<1){
  1475. // title24_p1.innerHTML='统计时段内RTU监测报告数量:'+rtutotalCount+'次。'+'报告平均发生:'+rturesult+'条/台/天。'+'提示:控制柜状态切换频率良好;需要保持;离线记录中,报告数量:'+lxrtutotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxrturesult+'条/台/天。提示:RTU监测设备通信状态不稳定,需要排查;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率正常,继续保持。';
  1476. // }
  1477. }else if(Number(ConfirmStore4[0].efresult)<=0.5 && Number(ConfirmStore4[0].lxefresult)<=0.5){
  1478. // if(typeof(days9)=="undefined"){
  1479. title31_p1.innerHTML='统计时段内电气火灾监测报告数量:'+ConfirmStore4[0].eftotalCount+'次。'+'报告平均发生:'+ConfirmStore4[0].efresult+'条/台/天。'+'提示:电气火灾报警频率良好;需要保持;离线记录中,报告数量:'+ConfirmStore4[0].lxeftotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxefresult+'条/台/天。提示:电气火灾监测设备通信状态良好,需要保持。';
  1480. // }else if(Number(days9)>=1){
  1481. // title24_p1.innerHTML='统计时段内RTU监测报告数量:'+rtutotalCount+'次。'+'报告平均发生:'+rturesult+'条/台/天。'+'提示:控制柜状态切换频率良好;需要保持;离线记录中,报告数量:'+lxrtutotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxrturesult+'条/台/天。提示:RTU监测设备通信状态良好,需要保持;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率较低或产品使用培训不足,需要增加使用培训和完善管理制度。';
  1482. // }else if(Number(days9)<1){
  1483. // title24_p1.innerHTML='统计时段内RTU监测报告数量:'+rtutotalCount+'次。'+'报告平均发生:'+rturesult+'条/台/天。'+'提示:控制柜状态切换频率良好;需要保持;离线记录中,报告数量:'+lxrtutotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxrturesult+'条/台/天。提示:RTU监测设备通信状态良好,需要保持;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率正常,继续保持。';
  1484. // }
  1485. }
  1486. // title24_p1.setAttribute('class','title14_label1_p1');
  1487. title31_p1.style.fontSize='14px';
  1488. title31_p1.style.paddingLeft='36px';
  1489. title31_p1.style.paddingRight='36px';
  1490. title31_p1.style.marginBottom='20px';
  1491. title31_p1.style.marginTop='20px';
  1492. title31_p1.style.lineHeight='150%';
  1493. title31.appendChild(title31_p1);
  1494. }
  1495. if(ConfirmStore4[0].dwvideototalCount>0){
  1496. var title32 = document.createElement('h4');
  1497. title32.style.textAlign='left';
  1498. title32.style.fontSize='14px';
  1499. title32.style.fontWeight='bold';
  1500. if(ConfirmStore4[0].dweftotalCount>0){
  1501. title32.innerHTML='3.5 视频监测数据分析';
  1502. }else{
  1503. title32.innerHTML='3.4 视频监测数据分析';
  1504. }
  1505. woker_talk.appendChild(title32);
  1506. var title32_highcharts = document.createElement('div');
  1507. // title23_highcharts.style.width='300px';
  1508. // title23_highcharts.style.height='300px';
  1509. title32_highcharts.style.marginTop='20px';
  1510. title32_highcharts.style.marginBottom='20px';
  1511. title32_highcharts.setAttribute('id','container5');
  1512. title32_highcharts.style.textAlign='center';
  1513. woker_talk.appendChild(title32_highcharts);
  1514. var title33 = document.createElement('div');
  1515. title33.style.border='1px solid #BEBEBE';
  1516. title33.width='100%';
  1517. title33.style.background='#AAAAAA';
  1518. // title22.style.minHeight='80px';
  1519. title33.style.textIndent='2em';
  1520. title33.style.marginBottom='20px';
  1521. woker_talk.appendChild(title33);
  1522. var title33_p1 = document.createElement('p');
  1523. if(Number(ConfirmStore4[0].videoresult)>0.5){
  1524. // if(typeof(days9)=="undefined"){
  1525. title33_p1.innerHTML='统计时段内视频监测报告数量:'+ConfirmStore4[0].videototalCount+'次。'+'报告平均发生:'+ConfirmStore4[0].videoresult+'条/台/天。'+'提示:视频报警频率较高;需要排查整治。';
  1526. // }else if(Number(days9)>=1){
  1527. // title24_p1.innerHTML='统计时段内RTU监测报告数量:'+rtutotalCount+'次。'+'报告平均发生:'+rturesult+'条/台/天。'+'提示:控制柜状态切换频率异常;需要排查;离线记录中,报告数量:'+lxrtutotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxrturesult+'条/台/天。提示:RTU监测设备通信状态不稳定,需要排查;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率较低或产品使用培训不足,需要增加使用培训和完善管理制度。';
  1528. // }else if(Number(days9)<1){
  1529. // title24_p1.innerHTML='统计时段内RTU监测报告数量:'+rtutotalCount+'次。'+'报告平均发生:'+rturesult+'条/台/天。'+'提示:控制柜状态切换频率异常;需要排查;离线记录中,报告数量:'+lxrtutotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxrturesult+'条/台/天。提示:RTU监测设备通信状态不稳定,需要排查;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率正常,继续保持。';
  1530. // }
  1531. }else if(Number(ConfirmStore4[0].videoresult)<=0.5){
  1532. // if(typeof(days9)=="undefined"){
  1533. title33_p1.innerHTML='统计时段内视频监测报告数量:'+ConfirmStore4[0].videototalCount+'次。'+'报告平均发生:'+ConfirmStore4[0].videoresult+'条/台/天。'+'提示:视频报警频率良好;需要保持。';
  1534. // }else if(Number(days9)>=1){
  1535. // title24_p1.innerHTML='统计时段内RTU监测报告数量:'+rtutotalCount+'次。'+'报告平均发生:'+rturesult+'条/台/天。'+'提示:控制柜状态切换频率良好;需要保持;离线记录中,报告数量:'+lxrtutotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxrturesult+'条/台/天。提示:RTU监测设备通信状态不稳定,需要排查;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率较低或产品使用培训不足,需要增加使用培训和完善管理制度。';
  1536. // }else if(Number(days9)<1){
  1537. // title24_p1.innerHTML='统计时段内RTU监测报告数量:'+rtutotalCount+'次。'+'报告平均发生:'+rturesult+'条/台/天。'+'提示:控制柜状态切换频率良好;需要保持;离线记录中,报告数量:'+lxrtutotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxrturesult+'条/台/天。提示:RTU监测设备通信状态不稳定,需要排查;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率正常,继续保持。';
  1538. // }
  1539. }
  1540. // title24_p1.setAttribute('class','title14_label1_p1');
  1541. title33_p1.style.fontSize='14px';
  1542. title33_p1.style.paddingLeft='36px';
  1543. title33_p1.style.paddingRight='36px';
  1544. title33_p1.style.marginBottom='20px';
  1545. title33_p1.style.marginTop='20px';
  1546. title33_p1.style.lineHeight='150%';
  1547. title33.appendChild(title33_p1);
  1548. }
  1549. var title25 = document.createElement('h3');
  1550. title25.style.textAlign='left';
  1551. title25.style.fontSize='14px';
  1552. title25.style.fontWeight='bold';
  1553. title25.innerHTML='4 分析结论';
  1554. woker_talk.appendChild(title25);
  1555. var title26 = document.createElement('h4');
  1556. title26.style.textAlign='left';
  1557. title26.style.fontSize='14px';
  1558. title26.style.fontWeight='bold';
  1559. title26.innerHTML='4.1 存在问题或需要改进事项';
  1560. woker_talk.appendChild(title26);
  1561. var title27 = document.createElement('ol');
  1562. // title27.setAttribute('class','title27_label1');
  1563. // title27.style.textAlign='center';
  1564. title27.style.border='1px solid #BEBEBE';
  1565. title27.width='100%';
  1566. title27.style.textAlign='left';
  1567. title27.style.background='#AAAAAA';
  1568. title27.style.minHeight='20px';
  1569. title27.style.paddingLeft='36px';
  1570. title27.style.marginBottom='20px';
  1571. woker_talk.appendChild(title27);
  1572. if(dwhjtotalCount>0){
  1573. if(Number(hjresult)>0.5){
  1574. var title27_p1 = document.createElement('li');
  1575. title27_p1.innerHTML='系统数据分析提示:火灾隐患极高或存在系统故障,建议尽早进行系统排查;';
  1576. // title27_p1.setAttribute('class','title14_label1_p1');
  1577. title27_p1.style.fontSize='14px';
  1578. title27.appendChild(title27_p1);
  1579. }
  1580. if(Number(ConfirmStore4[0].lxhjresult)>0.5){
  1581. var title27_p3 = document.createElement('li');
  1582. title27_p3.innerHTML='系统数据分析提示:火灾监测设备通信情况不稳定,建议尽早进行系统排查;';
  1583. title27_p3.style.fontSize='14px';
  1584. title27.appendChild(title27_p3);
  1585. }
  1586. }
  1587. if(dwsjtotalCount>0){
  1588. if(Number(sjresult)>1){
  1589. var title27_p2 = document.createElement('li');
  1590. title27_p2.innerHTML='系统数据分析提示:消防水系统隐患极高或存在系统故障,建议尽早进行系统排查;';
  1591. title27_p2.style.fontSize='14px';
  1592. title27.appendChild(title27_p2);
  1593. }
  1594. if(Number(ConfirmStore4[0].lxsjresult)>0.5){
  1595. var title27_p4 = document.createElement('li');
  1596. title27_p4.innerHTML='系统数据分析提示:消防水系统监测设备通信情况不稳定,建议尽早进行系统排查;';
  1597. title27_p4.style.fontSize='14px';
  1598. title27.appendChild(title27_p4);
  1599. }
  1600. }
  1601. if(dwrtutotalCount>0){
  1602. if(Number(rturesult)>0.5){
  1603. var title27_p5 = document.createElement('li');
  1604. title27_p5.innerHTML='系统数据分析提示:RTU监测隐患极高或存在系统故障,建议尽早进行系统排查;';
  1605. title27_p5.style.fontSize='14px';
  1606. title27.appendChild(title27_p5);
  1607. }
  1608. if(Number(ConfirmStore4[0].lxrturesult)>0.5){
  1609. var title27_p6 = document.createElement('li');
  1610. title27_p6.innerHTML='系统数据分析提示:RTU监测监测设备通信情况不稳定,建议尽早进行系统排查;';
  1611. title27_p6.style.fontSize='14px';
  1612. title27.appendChild(title27_p6);
  1613. }
  1614. }
  1615. if(ConfirmStore4[0].dweftotalCount>0){
  1616. if(Number(ConfirmStore4[0].efresult)>0.5){
  1617. var title27_p10 = document.createElement('li');
  1618. title27_p10.innerHTML='系统数据分析提示:电气火灾监测隐患极高或存在系统故障,建议尽早进行系统排查;';
  1619. title27_p10.style.fontSize='14px';
  1620. title27.appendChild(title27_p10);
  1621. }
  1622. if(Number(ConfirmStore4[0].lxefresult)>0.5){
  1623. var title27_p8 = document.createElement('li');
  1624. title27_p8.innerHTML='系统数据分析提示:电气火灾监测监测设备通信情况不稳定,建议尽早进行系统排查;';
  1625. title27_p8.style.fontSize='14px';
  1626. title27.appendChild(title27_p8);
  1627. }
  1628. }
  1629. if(ConfirmStore4[0].dwvideototalCount>0){
  1630. if(Number(ConfirmStore4[0].videoresult)>0.5){
  1631. var title27_p9 = document.createElement('li');
  1632. title27_p9.innerHTML='系统数据分析提示:视频监测隐患极高或存在系统故障,建议尽早进行系统排查;';
  1633. title27_p9.style.fontSize='14px';
  1634. title27.appendChild(title27_p9);
  1635. }
  1636. }
  1637. 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 && Number(ConfirmStore4[0].efresult)<=0.5 && Number(ConfirmStore4[0].lxefresult)<=0.5 && Number(ConfirmStore4[0].videoresult)<=0.5){
  1638. var title27_li7 = document.createElement('li');
  1639. title27_li7.innerHTML='暂无问题及需要改进事项。';
  1640. title27_li7.style.fontSize='14px';
  1641. title27.appendChild(title27_li7);
  1642. }
  1643. var title28 = document.createElement('h4');
  1644. title28.style.textAlign='left';
  1645. title28.style.fontSize='14px';
  1646. title28.style.fontWeight='bold';
  1647. title28.innerHTML='4.2 其他事宜';
  1648. woker_talk.appendChild(title28);
  1649. var title29_ol1 = document.createElement('ol');
  1650. title29_ol1.style.border='1px solid #BEBEBE';
  1651. title29_ol1.width='100%';
  1652. title29_ol1.style.textAlign='left';
  1653. title29_ol1.style.background='#AAAAAA';
  1654. title29_ol1.style.minHeight='20px';
  1655. title29_ol1.style.paddingLeft='36px';
  1656. title29_ol1.style.marginBottom='20px';
  1657. woker_talk.appendChild(title29_ol1);
  1658. if(dwhjtotalCount>0){
  1659. if(Number(hjresult)<=0.5){
  1660. var title29_li6 = document.createElement('li');
  1661. title29_li6.innerHTML='目前数据反映:火灾监测运行状态较好,需要保持;';
  1662. title29_li6.style.fontSize='14px';
  1663. title29_ol1.appendChild(title29_li6);
  1664. }
  1665. if(Number(ConfirmStore4[0].lxhjresult)<=0.5){
  1666. var title29_li1 = document.createElement('li');
  1667. title29_li1.innerHTML='目前数据反映:火灾监测设备通信情况较好,需要保持;';
  1668. title29_li1.style.fontSize='14px';
  1669. title29_ol1.appendChild(title29_li1);
  1670. }
  1671. }
  1672. if(dwsjtotalCount>0){
  1673. if(Number(sjresult)<=1){
  1674. var title29_li2 = document.createElement('li');
  1675. title29_li2.innerHTML='目前数据反映:消防水系统监测运行状态较好,需要保持;';
  1676. title29_li2.style.fontSize='14px';
  1677. title29_ol1.appendChild(title29_li2);
  1678. }
  1679. if(Number(ConfirmStore4[0].lxsjresult)<=0.5){
  1680. var title29_li3 = document.createElement('li');
  1681. title29_li3.innerHTML='目前数据反映:消防水系统监测设备通信情况较好,需要保持;';
  1682. title29_li3.style.fontSize='14px';
  1683. title29_ol1.appendChild(title29_li3);
  1684. }
  1685. }
  1686. if(dwrtutotalCount>0){
  1687. if(Number(rturesult)<=0.5){
  1688. var title29_li4 = document.createElement('li');
  1689. title29_li4.innerHTML='目前数据反映:RTU监测运行状态较好,需要保持;';
  1690. title29_li4.style.fontSize='14px';
  1691. title29_ol1.appendChild(title29_li4);
  1692. }
  1693. if(Number(ConfirmStore4[0].lxrturesult)<=0.5){
  1694. var title29_li5 = document.createElement('li');
  1695. title29_li5.innerHTML='目前数据反映:RTU监测设备通信情况较好,需要保持;';
  1696. title29_li5.style.fontSize='14px';
  1697. title29_ol1.appendChild(title29_li5);
  1698. }
  1699. }
  1700. if(ConfirmStore4[0].dweftotalCount>0){
  1701. if(Number(ConfirmStore4[0].efresult)<=0.5){
  1702. var title29_li8 = document.createElement('li');
  1703. title29_li8.innerHTML='目前数据反映:电气火灾监测运行状态较好,需要保持;';
  1704. title29_li8.style.fontSize='14px';
  1705. title29_ol1.appendChild(title29_li8);
  1706. }
  1707. if(Number(ConfirmStore4[0].lxefresult)<=0.5){
  1708. var title29_li9 = document.createElement('li');
  1709. title29_li9.innerHTML='目前数据反映:电气火灾监测设备通信情况较好,需要保持;';
  1710. title29_li9.style.fontSize='14px';
  1711. title29_ol1.appendChild(title29_li9);
  1712. }
  1713. }
  1714. if(ConfirmStore4[0].dwvideototalCount>0){
  1715. if(Number(ConfirmStore4[0].videoresult)<=0.5){
  1716. var title29_li10 = document.createElement('li');
  1717. title29_li10.innerHTML='目前数据反映:视频监测运行状态较好,需要保持。';
  1718. title29_li10.style.fontSize='14px';
  1719. title29_ol1.appendChild(title29_li10);
  1720. }
  1721. }
  1722. 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 && Number(ConfirmStore4[0].efresult)>0.5 && Number(ConfirmStore4[0].lxefresult)>0.5 && Number(ConfirmStore4[0].videoresult)>0.5){
  1723. var title29_li7 = document.createElement('li');
  1724. title29_li7.innerHTML='暂无其他事宜。';
  1725. title29_li7.style.fontSize='14px';
  1726. title29_ol1.appendChild(title29_li7);
  1727. }
  1728. }
  1729. var funDownload = function (content, filename) {
  1730. var eleLink = document.createElement('a');
  1731. eleLink.download = filename;
  1732. eleLink.style.display = 'none';
  1733. // 字符内容转变成blob地址
  1734. var blob = new Blob([content]);
  1735. eleLink.href = URL.createObjectURL(blob);
  1736. // 触发点击
  1737. document.body.appendChild(eleLink);
  1738. eleLink.click();
  1739. // 然后移除
  1740. document.body.removeChild(eleLink);
  1741. }
  1742. var highcharts = function () {
  1743. var clhjbaifenbi = parseFloat(hjbaifenbi);
  1744. $('#container').highcharts({
  1745. chart: {
  1746. plotBackgroundColor: null,
  1747. plotBorderWidth: null,
  1748. plotShadow: false,
  1749. type: 'pie'
  1750. },
  1751. credits: {
  1752. enabled: false
  1753. },
  1754. exporting: { enabled:false },
  1755. title: {
  1756. text: '火灾告警处理情况饼图'
  1757. },
  1758. tooltip: {
  1759. pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'
  1760. },
  1761. plotOptions: {
  1762. pie: {
  1763. allowPointSelect: true,
  1764. cursor: 'pointer',
  1765. dataLabels: {
  1766. enabled: true,
  1767. format: '<b>{point.name}</b>: {point.percentage:.1f} %',
  1768. style: {
  1769. color: (Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black'
  1770. }
  1771. },
  1772. showInLegend: true
  1773. }
  1774. },
  1775. series: [{
  1776. name: '百分比',
  1777. colorByPoint: true,
  1778. data: [{
  1779. name: '处理率',
  1780. y: clhjbaifenbi,
  1781. sliced: true,
  1782. selected: true
  1783. }, {
  1784. name: '未处理',
  1785. y: 100-clhjbaifenbi
  1786. }]
  1787. }]
  1788. });
  1789. }
  1790. var highcharts1 = function () {
  1791. var clsjbaifenbi = parseFloat(sjbaifenbi);
  1792. $('#container1').highcharts({
  1793. chart: {
  1794. plotBackgroundColor: null,
  1795. plotBorderWidth: null,
  1796. plotShadow: false,
  1797. type: 'pie'
  1798. },
  1799. credits: {
  1800. enabled: false
  1801. },
  1802. exporting: { enabled:false },
  1803. title: {
  1804. text: '水系统告警处理情况饼图'
  1805. },
  1806. tooltip: {
  1807. pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'
  1808. },
  1809. plotOptions: {
  1810. pie: {
  1811. allowPointSelect: true,
  1812. cursor: 'pointer',
  1813. dataLabels: {
  1814. enabled: true,
  1815. format: '<b>{point.name}</b>: {point.percentage:.1f} %',
  1816. style: {
  1817. color: (Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black'
  1818. }
  1819. },
  1820. showInLegend: true
  1821. }
  1822. },
  1823. series: [{
  1824. name: '百分比',
  1825. colorByPoint: true,
  1826. data: [{
  1827. name: '处理率',
  1828. y: clsjbaifenbi,
  1829. sliced: true,
  1830. selected: true
  1831. },{
  1832. name: '未处理',
  1833. y: 100-clsjbaifenbi
  1834. }]
  1835. }]
  1836. });
  1837. }
  1838. var highcharts2 = function () {
  1839. var clrtubaifenbi = parseFloat(rtubaifenbi);
  1840. $('#container2').highcharts({
  1841. chart: {
  1842. plotBackgroundColor: null,
  1843. plotBorderWidth: null,
  1844. plotShadow: false,
  1845. type: 'pie'
  1846. },
  1847. credits: {
  1848. enabled: false
  1849. },
  1850. exporting: { enabled:false },
  1851. title: {
  1852. text: 'RTU系统告警处理情况饼图'
  1853. },
  1854. tooltip: {
  1855. pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'
  1856. },
  1857. plotOptions: {
  1858. pie: {
  1859. allowPointSelect: true,
  1860. cursor: 'pointer',
  1861. dataLabels: {
  1862. enabled: true,
  1863. format: '<b>{point.name}</b>: {point.percentage:.1f} %',
  1864. style: {
  1865. color: (Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black'
  1866. }
  1867. },
  1868. showInLegend: true
  1869. }
  1870. },
  1871. series: [{
  1872. name: '百分比',
  1873. colorByPoint: true,
  1874. data: [{
  1875. name: '处理率',
  1876. y: clrtubaifenbi,
  1877. sliced: true,
  1878. selected: true
  1879. },{
  1880. name: '未处理',
  1881. y: 100-clrtubaifenbi
  1882. }]
  1883. }]
  1884. });
  1885. }
  1886. var highcharts3 = function () {
  1887. var hjresult1 = parseFloat(ConfirmStore4[0].result1);
  1888. var sjresult2 = parseFloat(ConfirmStore4[0].result2);
  1889. var rturesult3 = parseFloat(ConfirmStore4[0].result3);
  1890. var efresult4 = parseFloat(ConfirmStore4[0].result4);
  1891. var videoresult5 = parseFloat(ConfirmStore4[0].result5);
  1892. $('#container3').highcharts({
  1893. chart: {
  1894. plotBackgroundColor: null,
  1895. plotBorderWidth: null,
  1896. plotShadow: false,
  1897. type: 'pie'
  1898. },
  1899. credits: {
  1900. enabled: false
  1901. },
  1902. exporting: { enabled:false },
  1903. title: {
  1904. text: '各类告警总数情况饼图'
  1905. },
  1906. tooltip: {
  1907. pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'
  1908. },
  1909. plotOptions: {
  1910. pie: {
  1911. allowPointSelect: true,
  1912. cursor: 'pointer',
  1913. dataLabels: {
  1914. enabled: true,
  1915. format: '<b>{point.name}</b>: {point.percentage:.1f} %',
  1916. style: {
  1917. color: (Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black'
  1918. }
  1919. },
  1920. showInLegend: true
  1921. }
  1922. },
  1923. series: [{
  1924. name: '百分比',
  1925. colorByPoint: true,
  1926. data: [{
  1927. name: '火系统告警',
  1928. y: hjresult1,
  1929. sliced: true,
  1930. selected: true
  1931. },{
  1932. name: '水系统告警',
  1933. y: sjresult2
  1934. },{
  1935. name: 'RTU系统告警',
  1936. y: rturesult3
  1937. },{
  1938. name: '电气火灾系统告警',
  1939. y: efresult4
  1940. },{
  1941. name: '视频系统告警',
  1942. y: videoresult5
  1943. }]
  1944. }]
  1945. });
  1946. }
  1947. var highcharts4 = function () {
  1948. var clefbaifenbi = parseFloat(efbaifenbi);
  1949. $('#container4').highcharts({
  1950. chart: {
  1951. plotBackgroundColor: null,
  1952. plotBorderWidth: null,
  1953. plotShadow: false,
  1954. type: 'pie'
  1955. },
  1956. credits: {
  1957. enabled: false
  1958. },
  1959. exporting: { enabled:false },
  1960. title: {
  1961. text: '电气火灾系统告警处理情况饼图'
  1962. },
  1963. tooltip: {
  1964. pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'
  1965. },
  1966. plotOptions: {
  1967. pie: {
  1968. allowPointSelect: true,
  1969. cursor: 'pointer',
  1970. dataLabels: {
  1971. enabled: true,
  1972. format: '<b>{point.name}</b>: {point.percentage:.1f} %',
  1973. style: {
  1974. color: (Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black'
  1975. }
  1976. },
  1977. showInLegend: true
  1978. }
  1979. },
  1980. series: [{
  1981. name: '百分比',
  1982. colorByPoint: true,
  1983. data: [{
  1984. name: '处理率',
  1985. y: clefbaifenbi,
  1986. sliced: true,
  1987. selected: true
  1988. },{
  1989. name: '未处理',
  1990. y: 100-clefbaifenbi
  1991. }]
  1992. }]
  1993. });
  1994. }
  1995. var highcharts5 = function () {
  1996. var clvideobaifenbi = parseFloat(videobaifenbi);
  1997. $('#container5').highcharts({
  1998. chart: {
  1999. plotBackgroundColor: null,
  2000. plotBorderWidth: null,
  2001. plotShadow: false,
  2002. type: 'pie'
  2003. },
  2004. credits: {
  2005. enabled: false
  2006. },
  2007. exporting: { enabled:false },
  2008. title: {
  2009. text: '视频系统告警处理情况饼图'
  2010. },
  2011. tooltip: {
  2012. pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'
  2013. },
  2014. plotOptions: {
  2015. pie: {
  2016. allowPointSelect: true,
  2017. cursor: 'pointer',
  2018. dataLabels: {
  2019. enabled: true,
  2020. format: '<b>{point.name}</b>: {point.percentage:.1f} %',
  2021. style: {
  2022. color: (Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black'
  2023. }
  2024. },
  2025. showInLegend: true
  2026. }
  2027. },
  2028. series: [{
  2029. name: '百分比',
  2030. colorByPoint: true,
  2031. data: [{
  2032. name: '处理率',
  2033. y: clvideobaifenbi,
  2034. sliced: true,
  2035. selected: true
  2036. },{
  2037. name: '未处理',
  2038. y: 100-clvideobaifenbi
  2039. }]
  2040. }]
  2041. });
  2042. }
  2043. // var daochu = function(){
  2044. // var woker_talk = document.getElementById('woker_talk');
  2045. // var eleTextarea = document.querySelector('#woker_talk');
  2046. // var aa = '<!DOCTYPE html>'+
  2047. // '<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">'+
  2048. // '<head>'+
  2049. // '<!--[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]-->'+
  2050. // '<meta charset="UTF-8">'+
  2051. // '<meta name="viewport" content="width=device-width, initial-scale=1.0">'+
  2052. // '<meta http-equiv="X-UA-Compatible" content="ie=edge">'+
  2053. // '<title>Document</title>'+
  2054. // '</head>'+
  2055. // '<body>'+
  2056. // eleTextarea.outerHTML+'</body></html>'
  2057. // funDownload(aa, 'project.html');
  2058. // }
  2059. var daochu = function(){
  2060. var woker_talk = document.getElementById('woker_talk');
  2061. var eleTextarea = document.querySelector('#woker_talk');
  2062. html2canvas(woker_talk, {
  2063. height: $("#woker_talk").outerHeight(),
  2064. onrendered:function(canvas) {
  2065. var contentWidth = canvas.width;
  2066. var contentHeight = canvas.height;
  2067. //一页pdf显示html页面生成的canvas高度;
  2068. var pageHeight = contentWidth / 592.28 * 841.89;
  2069. //未生成pdf的html页面高度
  2070. var leftHeight = contentHeight;
  2071. //页面偏移
  2072. var position = 0;
  2073. //a4纸的尺寸[595.28,841.89],html页面生成的canvas在pdf中图片的宽高
  2074. var imgWidth = 555.28;
  2075. var imgHeight = 555.28/contentWidth * contentHeight;
  2076. var pageData = canvas.toDataURL('image/jpeg', 1.0);
  2077. var pdf = new jsPDF('', 'pt', 'a4');
  2078. //有两个高度需要区分,一个是html页面的实际高度,和生成pdf的页面高度(841.89)
  2079. //当内容未超过pdf一页显示的范围,无需分页
  2080. if (leftHeight < pageHeight) {
  2081. pdf.addImage(pageData, 'JPEG', 20, 0, imgWidth, imgHeight );
  2082. } else {
  2083. while(leftHeight > 0) {
  2084. pdf.addImage(pageData, 'JPEG', 20, position, imgWidth, imgHeight)
  2085. leftHeight -= pageHeight;
  2086. position -= 841.89;
  2087. //避免添加空白页
  2088. if(leftHeight > 0) {
  2089. pdf.addPage();
  2090. }
  2091. }
  2092. }
  2093. pdf.save('content.pdf');
  2094. }
  2095. })
  2096. }
  2097. var print_detail = function (){
  2098. var div1_label1 = document.getElementById('woker_talk').innerHTML;
  2099. var div2_label1 = document.getElementById('div2_label1').innerHTML;
  2100. var hkey_key;
  2101. var hkey_root = 'HKEY_CURRENT_USER';
  2102. var hkey_path = '\\Software\\Micorsoft\\Internet Explorer\\PageSetup\\';
  2103. var print_win = window.open('打印窗口','_blank');
  2104. var div = document.createElement('div');
  2105. div.setAttribute('width', '100%');
  2106. div.setAttribute('height', '100%');
  2107. var div_print = document.createElement('div');
  2108. div_print.setAttribute('style', 'width:595px;height:842px;padding:20px;margin:0px auto 0px auto');
  2109. div_print.innerHTML=div1_label1;
  2110. div.appendChild(div_print);
  2111. // var div_print1 = document.createElement('div');
  2112. // div_print1.setAttribute('style', 'width:595px;height:842px;padding:20px;margin:0px auto 0px auto');
  2113. // div_print1.innerHTML=div2_label1;
  2114. // div.appendChild(div_print1);
  2115. print_win.document.write(div.innerHTML);
  2116. print_win.document.close();
  2117. try{
  2118. var RegWsh = new ActiveXObject('WScript.Shell');
  2119. hkey_key='header';
  2120. RegWsh.RegWrite(hkey_root+hkey_path+hkey_key,'');
  2121. hkey_key='footer';
  2122. RegWsh.RegWrite(hkey_root+hkey_path+hkey_key,'');
  2123. }catch(e){}
  2124. print_win.print();
  2125. print_win.close();
  2126. }
  2127. var show_detail_data = function(start_data,end_data,build_code,project_date){
  2128. var start_data = start_data;
  2129. var end_data = end_data;
  2130. var build_code = build_code;
  2131. var project_date = project_date;
  2132. Ext.create('Ext.window.Window', {
  2133. id:'project_data_win',
  2134. title: '<div id="detail_win_title">工作月报</div>',
  2135. height: 841,
  2136. width: 650,
  2137. maximizable: true,
  2138. layout: 'fit',
  2139. modal:true,
  2140. buttons:[
  2141. {
  2142. text:'导出',
  2143. handler : function () {
  2144. print_detail();
  2145. }
  2146. },{
  2147. text:'关闭',
  2148. handler : function() {
  2149. Ext.getCmp('project_data_win').destroy();
  2150. location.href=baseUrl+'view/index.jsp?&theme='+theme+'&company_code='+build_code;
  2151. }
  2152. }
  2153. ],
  2154. closeAction:'destroy',
  2155. html:'<div style="overflow-y:auto;height:800px;width:640px;"><div id="woker_talk"></div></div>'
  2156. }).show();
  2157. var query = new Object();
  2158. query.V_LOGINNAME = $("#V_LOGINNAME").val();
  2159. query.V_PASSWORD = $("#V_PASSWORD").val();
  2160. query.start_data = start_data;
  2161. query.end_data = end_data;
  2162. query.build_code = build_code;
  2163. Ext.MessageBox.wait('Loading', '生成中…');
  2164. $.ajax({
  2165. type:'POST',
  2166. url: baseUrl+"iot/company/view/getProjectList",
  2167. data: {
  2168. queryJson : Ext.JSON.encode(query)
  2169. },
  2170. success: function(result){
  2171. var json = eval('(' + result + ')');
  2172. if(json.action=='getVProjectNameList'){
  2173. ConfirmStore = json.RESULT;
  2174. ConfirmStore1 = json.RESULT1;
  2175. ConfirmStore2 = json.RESULT2;
  2176. ConfirmStore4 = json.RESULT4;
  2177. hjtotalCount = json.hjtotalCount;
  2178. clhjtotalCount = json.clhjtotalCount;
  2179. lxhjtotalCount = json.lxhjtotalCount;
  2180. cllxhjtotalCount = json.cllxhjtotalCount;
  2181. sjtotalCount = json.sjtotalCount;
  2182. clsjtotalCount = json.clsjtotalCount;
  2183. lxsjtotalCount = json.lxsjtotalCount;
  2184. cllxsjtotalCount = json.cllxsjtotalCount;
  2185. rtutotalCount = json.rtutotalCount;
  2186. clrtutotalCount = json.clrtutotalCount;
  2187. lxrtutotalCount = json.lxrtutotalCount;
  2188. cllxrtutotalCount = json.cllxrtutotalCount;
  2189. hjbaifenbi = json.hjbaifenbi;
  2190. lxhjbaifenbi = json.lxhjbaifenbi;
  2191. efbaifenbi = json.efbaifenbi;
  2192. lxefbaifenbi = json.lxefbaifenbi;
  2193. videobaifenbi = json.videobaifenbi;
  2194. sjbaifenbi = json.sjbaifenbi;
  2195. lxsjbaifenbi = json.lxsjbaifenbi;
  2196. rtubaifenbi = json.rtubaifenbi;
  2197. lxrtubaifenbi = json.lxrtubaifenbi;
  2198. dwhjtotalCount = json.dwhjtotalCount;
  2199. dwsjtotalCount = json.dwsjtotalCount;
  2200. dwrtutotalCount = json.dwrtutotalCount;
  2201. days = json.days;
  2202. hjresult = json.hjresult;
  2203. sjresult = json.sjresult;
  2204. rturesult = json.rturesult;
  2205. device_type=json.device_type;
  2206. device_num1=json.device_num1;
  2207. device_num2=json.device_num2;
  2208. clhjbaifenbi = json.clhjbaifenbi;
  2209. days3 = json.days3;
  2210. days6 = json.days6;
  2211. days9 = json.days9;
  2212. Ext.MessageBox.hide();
  2213. draw_confirm(query.start_data,query.end_data,project_date);
  2214. highcharts();
  2215. highcharts1();
  2216. highcharts2();
  2217. highcharts3();
  2218. highcharts4();
  2219. highcharts5();
  2220. }
  2221. }
  2222. });
  2223. }
  2224. Ext.define('CompanyComboStore1',{
  2225. extend:'Ext.data.Model',
  2226. fields: [
  2227. {name:'owner_name', type:'string'},
  2228. {name:'owner_id',type:'string'}
  2229. ]
  2230. });
  2231. CompanyStory = Ext.create('Ext.data.Store',{
  2232. model: 'CompanyComboStore1',
  2233. proxy: {
  2234. type: 'ajax',
  2235. actionMethods: {
  2236. create : 'POST',
  2237. read : 'POST', // by default GET
  2238. update : 'POST',
  2239. destroy: 'POST'
  2240. },
  2241. url: baseUrl+'iot/company/view/getNameList',
  2242. reader: {
  2243. type: 'json',
  2244. root: 'RESULT',
  2245. totalProperty: 'totalCount'
  2246. },
  2247. extraParams:{
  2248. queryJson:Ext.JSON.encode(queryJson)
  2249. }
  2250. }
  2251. });
  2252. FilterWin = Ext.create('Ext.form.Panel', {
  2253. id: 'PatrolPlanFilterForm',
  2254. labelWidth: 55,
  2255. defaultType: 'textfield',
  2256. bodyPadding: 15,
  2257. items: [{
  2258. xtype:'datefield',
  2259. fieldLabel:"开始日期",
  2260. minValue:'07/07/2017',
  2261. minText:"当前日期选择应大于2017-07-07",
  2262. format:"Y-m-d",
  2263. value:Ext.util.Format.date(Ext.Date.add(new Date(),Ext.Date.MONTH,-1),"Y-m-01"),
  2264. columnWidth:0.5,
  2265. id: 'start_date',
  2266. name:"start_date",
  2267. editable:false,//只读约束
  2268. allowBlank:false,
  2269. blankText:"不能为空",
  2270. anchor:'95%'
  2271. },{
  2272. xtype:'datefield',
  2273. fieldLabel:"结束日期",
  2274. minValue:'07/07/2017',
  2275. minText:"当前日期选择应大于2017-07-07",
  2276. format:"Y-m-d",
  2277. value:Ext.util.Format.date(new Date(new Date(new Date().getUTCFullYear(), new Date().getMonth(), 1) - 86400000), "Y-m-d"),
  2278. columnWidth:0.5,
  2279. id: 'end_date',
  2280. name:"end_date",
  2281. editable:false,//只读约束
  2282. allowBlank:false,
  2283. blankText:"不能为空",
  2284. anchor:'95%'
  2285. },
  2286. {
  2287. xtype:'combo',
  2288. fieldLabel:'建筑物名称',
  2289. id: 'company_code',
  2290. name:'company_code',
  2291. displayField : 'owner_name',
  2292. valueField : 'owner_id',
  2293. allowBlank:false,
  2294. blankText:"不能为空",
  2295. editable : false,
  2296. anchor:'80%',
  2297. store:CompanyStory
  2298. },
  2299. {
  2300. id:'ff_queryJson',
  2301. name:'queryJson',
  2302. hidden:true
  2303. }],
  2304. buttons: [{
  2305. text: '下一步',
  2306. iconCls:'ok_btn',
  2307. handler: function() {
  2308. var form = this.up('form').getForm();
  2309. if (form.isValid()) {
  2310. var start_date=Ext.util.Format.date(Ext.getCmp('start_date').getValue(), 'Y-m-d');
  2311. var end_date=Ext.util.Format.date(Ext.getCmp('end_date').getValue(), 'Y-m-d');
  2312. var project_date=Ext.util.Format.date(Ext.getCmp('start_date').getValue(), 'Y-m');
  2313. var build_code = Ext.getCmp('company_code').getValue();
  2314. show_detail_data(start_date,end_date,build_code,project_date);
  2315. this.up('window').hide();
  2316. }
  2317. }
  2318. },{
  2319. text: '关闭',
  2320. iconCls: 'cancel_btn',
  2321. handler: function() {
  2322. this.up('window').hide();
  2323. location.href=baseUrl+'view/index.jsp?&theme='+theme+'&company_code='+Ext.getCmp('company_code').getValue();
  2324. }
  2325. }]
  2326. });
  2327. var filterwin = function() {
  2328. Ext.create('Ext.window.Window',{
  2329. title: '工作月报',
  2330. height: 300,
  2331. width: 350,
  2332. layout: 'fit',
  2333. items: FilterWin,
  2334. closeAction: 'hide'
  2335. }).show();
  2336. }();
  2337. });