| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898 | 
							- /**
 
-  * 
 
-  */
 
- var baseUrl = '';
 
- var theme = '';
 
- var viewAlarmType,pieAlarmType,statusType;
 
- var filterwin;
 
- var FilterWin;
 
- Ext.onReady(function(){
 
- 	baseUrl = document.getElementById('basePath').value;
 
- 	theme = document.getElementById('theme').value;
 
- 	$("#V_LOGINNAME").val(sessionStorage.getItem('V_LOGINNAME'));
 
- 	$("#V_PASSWORD").val(sessionStorage.getItem('V_PASSWORD'));
 
- 	var queryJson = new Object();
 
- 	queryJson.V_LOGINNAME = $("#V_LOGINNAME").val();
 
- 	queryJson.V_PASSWORD =  $("#V_PASSWORD").val();
 
- 	var draw_confirm = function(start_data,end_data,project_date){
 
- 		var start_data = start_data;
 
- 		var end_data = end_data;
 
- 		var project_date = project_date;
 
- 		var woker_talk = document.getElementById('woker_talk');
 
- 		var div1 = document.createElement('div');
 
- 		div1.width=580;
 
- 		div1.height=841;
 
- 		div1.setAttribute('id','div1_label1');
 
- 		woker_talk.appendChild(div1);
 
- 		var title = document.createElement('h2');
 
- 		title.id = 'device_list_status_title';
 
- 		title.style.fontSize='14px';
 
- 		title.style.textAlign='center';
 
- 		title.style.fontWeight='bold';
 
- 		title.innerHTML=ConfirmStore[0].company_name+'消防报警系统监测数据';
 
- 		div1.appendChild(title);
 
- 		var title1 = document.createElement('h2');
 
- 		title1.style.textAlign='center';
 
- 		title1.style.fontSize='14px';
 
- 		title1.style.fontWeight='bold';
 
- 		title1.innerHTML=project_date+'月报表';
 
- 		div1.appendChild(title1);
 
- 		var title2 = document.createElement('h3');
 
- 		title2.style.textAlign='left';
 
- 		title2.style.fontSize='14px';
 
- 		title2.style.fontWeight='bold';
 
- 		title2.innerHTML='1 基本情况';
 
- 		div1.appendChild(title2);
 
- 		var title88 = document.createElement('h4');
 
- 		title88.style.textAlign='left';
 
- 		title88.style.fontSize='14px';
 
- 		title88.style.fontWeight='bold';
 
- 		title88.innerHTML='1.1 项目情况';
 
- 		div1.appendChild(title88);
 
- 		var sta = document.createElement('table');
 
- 		sta.style.marginTop='10px';
 
- 		sta.width='100%';
 
- 		sta.style.marginBottom='20px';
 
- 		sta.style.borderRight ='1px solid #BEBEBE';
 
- 		sta.style.borderBottom ='1px solid #BEBEBE';
 
- 		div1.appendChild(sta);
 
- 		var tr = document.createElement('tr');
 
- 		sta.appendChild(tr);
 
- 		var td = document.createElement('td');
 
- 		td.width='20%';
 
- 		td.style.borderLeft ='1px solid #BEBEBE';
 
- 		td.style.borderTop ='1px solid #BEBEBE';
 
- 		td.style.textAlign='center';
 
- 		td.innerHTML='单位名称';
 
- 		td.style.fontSize='14px';
 
- 		tr.appendChild(td);
 
- 		var td1 = document.createElement('td');
 
- 		td1.width='80%';
 
- 		td1.colSpan='5';
 
- 		td1.style.textAlign='center';
 
- 		td1.style.borderLeft ='1px solid #BEBEBE';
 
- 		td1.style.borderTop ='1px solid #BEBEBE';
 
- 		td1.innerHTML=ConfirmStore[0].company_name;
 
- 		td1.style.fontSize='14px';
 
- 		tr.appendChild(td1);
 
- 		var tr1 = document.createElement('tr');
 
- 		sta.appendChild(tr1);
 
- 		var td2 = document.createElement('td');
 
- 		td2.width='20%';
 
- 		td2.style.textAlign='center';
 
- 		td2.style.borderLeft ='1px solid #BEBEBE';
 
- 		td2.style.borderTop ='1px solid #BEBEBE';
 
- 		td2.innerHTML='进场日期';
 
- 		td2.style.fontSize='14px';
 
- 		tr1.appendChild(td2);
 
- 		var td3 = document.createElement('td');
 
- 		td3.width='16%';
 
- 		td3.style.textAlign='center';
 
- 		td3.style.borderLeft ='1px solid #BEBEBE';
 
- 		td3.style.borderTop ='1px solid #BEBEBE';
 
- 		td3.innerHTML=ConfirmStore[0].approach_time;
 
- 		td3.style.fontSize='14px';
 
- 		tr1.appendChild(td3);
 
- 		var td4 = document.createElement('td');
 
- 		td4.width='16%';
 
- 		td4.style.textAlign='center';
 
- 		td4.innerHTML='完工日期';
 
- 		td4.style.fontSize='14px';
 
- 		td4.style.borderLeft ='1px solid #BEBEBE';
 
- 		td4.style.borderTop ='1px solid #BEBEBE';
 
- 		tr1.appendChild(td4);
 
- 		var td5 = document.createElement('td');
 
- 		td5.width='16%';
 
- 		td5.style.textAlign='center';
 
- 		td5.innerHTML=ConfirmStore[0].complete_time;
 
- 		td5.style.fontSize='14px';
 
- 		td5.style.borderLeft ='1px solid #BEBEBE';
 
- 		td5.style.borderTop ='1px solid #BEBEBE';
 
- 		tr1.appendChild(td5);
 
- 		var td6 = document.createElement('td');
 
- 		td6.width='16%';
 
- 		td6.style.textAlign='center';
 
- 		td6.style.borderLeft ='1px solid #BEBEBE';
 
- 		td6.style.borderTop ='1px solid #BEBEBE';
 
- 		td6.innerHTML='验收日期';
 
- 		td6.style.fontSize='14px';
 
- 		tr1.appendChild(td6);
 
- 		var td7 = document.createElement('td');
 
- 		td7.width='16%';
 
- 		td7.style.textAlign='center';
 
- 		td7.style.borderLeft ='1px solid #BEBEBE';
 
- 		td7.style.borderTop ='1px solid #BEBEBE';
 
- 		td7.innerHTML=ConfirmStore[0].check_time;
 
- 		td7.style.fontSize='14px';
 
- 		tr1.appendChild(td7);
 
- 		var title3 = document.createElement('div');
 
- 		title3.style.textAlign='center';
 
- 		title3.style.fontSize='14px';
 
- 		title3.style.marginBottom='20px';
 
- 		title3.style.fontWeight='bold';
 
- 		title3.innerHTML='表1 项目基本情况表';
 
- 		div1.appendChild(title3);
 
- 		var title4 = document.createElement('h4');
 
- 		title4.style.textAlign='left';
 
- 		title4.style.fontSize='14px';
 
- 		title4.style.fontWeight='bold';
 
- 		title4.innerHTML='1.2 安装设备情况';
 
- 		div1.appendChild(title4);
 
- 		var sta1 = document.createElement('table');
 
- 		sta1.style.marginTop='10px';
 
- 		sta1.width='100%';
 
- 		sta1.style.marginBottom='20px';
 
- 		sta1.style.borderRight ='1px solid #BEBEBE';
 
- 		sta1.style.borderBottom ='1px solid #BEBEBE';
 
- 		div1.appendChild(sta1);
 
- 		var tr12 = document.createElement('tr');
 
- 		sta1.appendChild(tr12);
 
- 		var th = document.createElement('th');
 
- 		th.width='10%';
 
- 		th.style.borderLeft ='1px solid #BEBEBE';
 
- 		th.style.borderTop ='1px solid #BEBEBE';
 
- 		th.style.textAlign='center';
 
- 		th.innerHTML='序号';
 
- 		th.style.fontSize='14px';
 
- 		tr12.appendChild(th);
 
- 		var th1 = document.createElement('th');
 
- 		th1.width='25%';
 
- 		th1.style.textAlign='center';
 
- 		th1.innerHTML='设备名称';
 
- 		th1.style.fontSize='14px';
 
- 		th1.style.borderLeft ='1px solid #BEBEBE';
 
- 		th1.style.borderTop ='1px solid #BEBEBE';
 
- 		tr12.appendChild(th1);
 
- 		var th2 = document.createElement('th');
 
- 		th2.width='25%';
 
- 		th2.style.textAlign='center';
 
- 		th2.innerHTML='规格型号';
 
- 		th2.style.fontSize='14px';
 
- 		th2.style.borderLeft ='1px solid #BEBEBE';
 
- 		th2.style.borderTop ='1px solid #BEBEBE';
 
- 		tr12.appendChild(th2);
 
- 		var th3 = document.createElement('th');
 
- 		th3.width='10%';
 
- 		th3.style.textAlign='center';
 
- 		th3.innerHTML='数量';
 
- 		th3.style.fontSize='14px';
 
- 		th3.style.borderLeft ='1px solid #BEBEBE';
 
- 		th3.style.borderTop ='1px solid #BEBEBE';
 
- 		tr12.appendChild(th3);
 
- 		var th4 = document.createElement('th');
 
- 		th4.width='30%';
 
- 		th4.style.textAlign='center';
 
- 		th4.innerHTML='备注';
 
- 		th4.style.fontSize='14px';
 
- 		th4.style.borderLeft ='1px solid #BEBEBE';
 
- 		th4.style.borderTop ='1px solid #BEBEBE';
 
- 		tr12.appendChild(th4);
 
- 		if(ConfirmStore1.length>0){
 
- 		  if(ConfirmStore1.length==1){
 
- 			var tr13 = document.createElement('tr');
 
- 			sta1.appendChild(tr13);
 
- 			var td_details_num = document.createElement('td');
 
- 			td_details_num.width='5%';
 
- 			td_details_num.style.textAlign='center';
 
- 			td_details_num.innerHTML=1;
 
- 			td_details_num.style.fontSize='14px';
 
- 			td_details_num.style.borderLeft ='1px solid #BEBEBE';
 
- 			td_details_num.style.borderTop ='1px solid #BEBEBE';
 
- 			tr13.appendChild(td_details_num);
 
- 			var td_details_name= document.createElement('td');
 
- 			td_details_name.width='25%';
 
- 			td_details_name.style.textAlign='center';
 
- 			td_details_name.innerHTML= ConfirmStore1[0].device_name;
 
- 			td_details_name.style.borderLeft ='1px solid #BEBEBE';
 
- 			td_details_name.style.borderTop ='1px solid #BEBEBE';
 
- 			td_details_name.style.fontSize='14px';
 
- 			tr13.appendChild(td_details_name);
 
- 			var td_details_specifications = document.createElement('td');
 
- 			td_details_specifications.width='25%';
 
- 			td_details_specifications.style.textAlign='center';
 
- 			td_details_specifications.innerHTML=ConfirmStore1[0].specifications;
 
- 			td_details_specifications.style.fontSize='14px';
 
- 			td_details_specifications.style.borderLeft ='1px solid #BEBEBE';
 
- 			td_details_specifications.style.borderTop ='1px solid #BEBEBE';
 
- 			tr13.appendChild(td_details_specifications);
 
- 			var td_details_device_num = document.createElement('td');
 
- 			td_details_device_num.width='10%';
 
- 			td_details_device_num.style.textAlign='center';
 
- 			td_details_device_num.innerHTML=ConfirmStore1[0].device_num;
 
- 			td_details_device_num.style.fontSize='14px';
 
- 			td_details_device_num.style.borderLeft ='1px solid #BEBEBE';
 
- 			td_details_device_num.style.borderTop ='1px solid #BEBEBE';
 
- 			tr13.appendChild(td_details_device_num);
 
- 			var td_details_data_info = document.createElement('td');
 
- 			td_details_data_info.width='30%';
 
- 			td_details_data_info.style.textAlign='center';
 
- 			td_details_data_info.innerHTML=ConfirmStore1[0].data_info;
 
- 			td_details_data_info.style.fontSize='14px';
 
- 			td_details_data_info.style.borderLeft ='1px solid #BEBEBE';
 
- 			td_details_data_info.style.borderTop ='1px solid #BEBEBE';
 
- 			tr13.appendChild(td_details_data_info);
 
- 		}else{
 
- 		  for(var i=0;i<ConfirmStore1.length;i++){
 
- 			var tr13 = document.createElement('tr');
 
- 			sta1.appendChild(tr13);
 
- 			var td_details_num = document.createElement('td');
 
- 			td_details_num.width='10%';
 
- 			td_details_num.style.textAlign='center';
 
- 			td_details_num.innerHTML=i+1;
 
- 			td_details_num.style.fontSize='14px';
 
- 			td_details_num.style.borderLeft ='1px solid #BEBEBE';
 
- 			td_details_num.style.borderTop ='1px solid #BEBEBE';
 
- 			tr13.appendChild(td_details_num);
 
- 			var td_details_name= document.createElement('td');
 
- 			td_details_name.width='25%';
 
- 			td_details_name.style.textAlign='center';
 
- 			td_details_name.innerHTML= ConfirmStore1[i].device_name;
 
- 			td_details_name.style.fontSize='14px';
 
- 			td_details_name.style.borderLeft ='1px solid #BEBEBE';
 
- 			td_details_name.style.borderTop ='1px solid #BEBEBE';
 
- 			tr13.appendChild(td_details_name);
 
- 			var td_details_specifications = document.createElement('td');
 
- 			td_details_specifications.width='25%';
 
- 			td_details_specifications.style.textAlign='center';
 
- 			td_details_specifications.innerHTML=ConfirmStore1[i].specifications;
 
- 			td_details_specifications.style.fontSize='14px';
 
- 			td_details_specifications.style.borderLeft ='1px solid #BEBEBE';
 
- 			td_details_specifications.style.borderTop ='1px solid #BEBEBE';
 
- 			tr13.appendChild(td_details_specifications);
 
- 			var td_details_device_num = document.createElement('td');
 
- 			td_details_device_num.width='10%';
 
- 			td_details_device_num.style.textAlign='center';
 
- 			td_details_device_num.innerHTML=ConfirmStore1[i].device_num;
 
- 			td_details_device_num.style.fontSize='14px';
 
- 			td_details_device_num.style.borderLeft ='1px solid #BEBEBE';
 
- 			td_details_device_num.style.borderTop ='1px solid #BEBEBE';
 
- 			tr13.appendChild(td_details_device_num);
 
- 			var td_details_data_info = document.createElement('td');
 
- 			td_details_data_info.width='30%';
 
- 			td_details_data_info.style.textAlign='center';
 
- 			td_details_data_info.innerHTML=ConfirmStore1[i].data_info;
 
- 			td_details_data_info.style.fontSize='14px';
 
- 			td_details_data_info.style.borderLeft ='1px solid #BEBEBE';
 
- 			td_details_data_info.style.borderTop ='1px solid #BEBEBE';
 
- 			tr13.appendChild(td_details_data_info);
 
- 		   }
 
- 		  var tr_details_device_num1 = document.createElement('tr');
 
- 			sta1.appendChild(tr_details_device_num1);
 
- 		  var td_details_device_num1 = document.createElement('td');
 
- //		    td_details_device_num1.width='30%';
 
- 		    td_details_device_num1.style.textAlign='center';
 
- 		    td_details_device_num1.colSpan='2';
 
- 		    td_details_device_num1.innerHTML='合计';
 
- 		    td_details_device_num1.style.fontSize='14px';
 
- 		    td_details_device_num1.style.borderLeft ='1px solid #BEBEBE';
 
- 		    td_details_device_num1.style.borderTop ='1px solid #BEBEBE';
 
- 			tr_details_device_num1.appendChild(td_details_device_num1);
 
- 		  var td_details_device_num2 = document.createElement('td');
 
- 		    td_details_device_num2.width='25%';
 
- 		    td_details_device_num2.style.textAlign='center';
 
- 		    td_details_device_num2.innerHTML='';
 
- 		    td_details_device_num2.style.fontSize='14px';
 
- 		    td_details_device_num2.style.borderLeft ='1px solid #BEBEBE';
 
- 		    td_details_device_num2.style.borderTop ='1px solid #BEBEBE';
 
- 			tr_details_device_num1.appendChild(td_details_device_num2);
 
- 		  var td_details_device_num3 = document.createElement('td');
 
- 		    td_details_device_num3.width='10%';
 
- 		    td_details_device_num3.style.textAlign='center';
 
- 		    td_details_device_num3.innerHTML=device_num1;
 
- 		    td_details_device_num3.style.fontSize='14px';
 
- 		    td_details_device_num3.style.borderLeft ='1px solid #BEBEBE';
 
- 		    td_details_device_num3.style.borderTop ='1px solid #BEBEBE';
 
- 			tr_details_device_num1.appendChild(td_details_device_num3);
 
- 		  var td_details_device_num4 = document.createElement('td');
 
- 		    td_details_device_num4.width='30%';
 
- 		    td_details_device_num4.style.textAlign='center';
 
- 		    td_details_device_num4.innerHTML='';
 
- 		    td_details_device_num4.style.fontSize='14px';
 
- 		    td_details_device_num4.style.borderLeft ='1px solid #BEBEBE';
 
- 		    td_details_device_num4.style.borderTop ='1px solid #BEBEBE';
 
- 			tr_details_device_num1.appendChild(td_details_device_num4);
 
- 		  }
 
- 		}
 
- 		var title9 = document.createElement('div');
 
- 		title9.style.textAlign='center';
 
- 		title9.style.fontSize='14px';
 
- 		title9.style.marginBottom='20px';
 
- 		title9.style.fontWeight='bold';
 
- 		title9.innerHTML='表2 项目安装设备清单';
 
- 		div1.appendChild(title9);
 
- 		var title10 = document.createElement('h4');
 
- 		title10.style.textAlign='left';
 
- 		title10.style.fontSize='14px';
 
- 		title10.style.fontWeight='bold';
 
- 		title10.innerHTML='1.3 监测点情况';
 
- 		div1.appendChild(title10);
 
- 		var sta2 = document.createElement('table');
 
- 		sta2.style.marginTop='10px';
 
- 		sta2.width='100%';
 
- 		sta2.style.marginBottom='20px';
 
- 		sta2.style.borderRight ='1px solid #BEBEBE';
 
- 		sta2.style.borderBottom ='1px solid #BEBEBE';
 
- 		div1.appendChild(sta2);
 
- 		var tr14 = document.createElement('tr');
 
- 		sta2.appendChild(tr14);
 
- 		var th5 = document.createElement('th');
 
- 		th5.width='10%';
 
- 		th5.style.textAlign='center';
 
- 		th5.innerHTML='序号';
 
- 		th5.style.fontSize='14px';
 
- 		th5.style.borderLeft ='1px solid #BEBEBE';
 
- 		th5.style.borderTop ='1px solid #BEBEBE';
 
- 		tr14.appendChild(th5);
 
- 		var th6 = document.createElement('th');
 
- 		th6.width='25%';
 
- 		th6.style.textAlign='center';
 
- 		th6.innerHTML='监控子系统';
 
- 		th6.style.fontSize='14px';
 
- 		th6.style.borderLeft ='1px solid #BEBEBE';
 
- 		th6.style.borderTop ='1px solid #BEBEBE';
 
- 		tr14.appendChild(th6);
 
- 		var th7 = document.createElement('th');
 
- 		th7.width='25%';
 
- 		th7.style.textAlign='center';
 
- 		th7.innerHTML='监测点类型';
 
- 		th7.style.fontSize='14px';
 
- 		th7.style.borderLeft ='1px solid #BEBEBE';
 
- 		th7.style.borderTop ='1px solid #BEBEBE';
 
- 		tr14.appendChild(th7);
 
- 		var th8 = document.createElement('th');
 
- 		th8.width='10%';
 
- 		th8.style.textAlign='center';
 
- 		th8.innerHTML='数量';
 
- 		th8.style.fontSize='14px';
 
- 		th8.style.borderLeft ='1px solid #BEBEBE';
 
- 		th8.style.borderTop ='1px solid #BEBEBE';
 
- 		tr14.appendChild(th8);
 
- 		var th9 = document.createElement('th');
 
- 		th9.width='30%';
 
- 		th9.style.textAlign='center';
 
- 		th9.innerHTML='备注';
 
- 		th9.style.fontSize='14px';
 
- 		th9.style.borderLeft ='1px solid #BEBEBE';
 
- 		th9.style.borderTop ='1px solid #BEBEBE';
 
- 		tr14.appendChild(th9);
 
- 		if(ConfirmStore2.length>0){
 
- 			  if(ConfirmStore2.length==1){
 
- 				var tr13 = document.createElement('tr');
 
- 				sta2.appendChild(tr13);
 
- 				var td_details_num = document.createElement('td');
 
- 				td_details_num.width='10%';
 
- 				td_details_num.style.textAlign='center';
 
- 				td_details_num.style.borderLeft ='1px solid #BEBEBE';
 
- 				td_details_num.style.borderTop ='1px solid #BEBEBE';
 
- 				td_details_num.innerHTML=1;
 
- 				td_details_num.style.fontSize='14px';
 
- 				tr13.appendChild(td_details_num);
 
- 				var td_details_name= document.createElement('td');
 
- 				td_details_name.width='25%';
 
- 				td_details_name.style.textAlign='center';
 
- 				td_details_name.innerHTML= ConfirmStore2[0].device_name;
 
- 				td_details_name.style.borderLeft ='1px solid #BEBEBE';
 
- 				td_details_name.style.borderTop ='1px solid #BEBEBE';
 
- 				td_details_name.style.fontSize='14px';
 
- 				tr13.appendChild(td_details_name);
 
- 				var td_details_specifications = document.createElement('td');
 
- 				td_details_specifications.width='25%';
 
- 				td_details_specifications.style.textAlign='center';
 
- 				td_details_specifications.innerHTML=ConfirmStore2[0].specifications;
 
- 				td_details_specifications.style.fontSize='14px';
 
- 				td_details_specifications.style.borderLeft ='1px solid #BEBEBE';
 
- 				td_details_specifications.style.borderTop ='1px solid #BEBEBE';
 
- 				tr13.appendChild(td_details_specifications);
 
- 				var td_details_device_num = document.createElement('td');
 
- 				td_details_device_num.width='10%';
 
- 				td_details_device_num.style.textAlign='center';
 
- 				td_details_device_num.innerHTML=ConfirmStore2[0].device_num;
 
- 				td_details_device_num.style.fontSize='14px';
 
- 				td_details_device_num.style.borderLeft ='1px solid #BEBEBE';
 
- 				td_details_device_num.style.borderTop ='1px solid #BEBEBE';
 
- 				tr13.appendChild(td_details_device_num);
 
- 				var td_details_data_info = document.createElement('td');
 
- 				td_details_data_info.width='30%';
 
- 				td_details_data_info.style.textAlign='center';
 
- 				td_details_data_info.innerHTML=ConfirmStore2[0].data_info;
 
- 				td_details_data_info.style.fontSize='14px';
 
- 				td_details_data_info.style.borderLeft ='1px solid #BEBEBE';
 
- 				td_details_data_info.style.borderTop ='1px solid #BEBEBE';
 
- 				tr13.appendChild(td_details_data_info);
 
- 			}else{
 
- 			  for(var i=0;i<ConfirmStore2.length;i++){
 
- 				var tr13 = document.createElement('tr');
 
- 				sta2.appendChild(tr13);
 
- 				var td_details_num = document.createElement('td');
 
- 				td_details_num.width='10%';
 
- 				td_details_num.style.textAlign='center';
 
- 				td_details_num.innerHTML=i+1;
 
- 				td_details_num.style.fontSize='14px';
 
- 				td_details_num.style.borderLeft ='1px solid #BEBEBE';
 
- 				td_details_num.style.borderTop ='1px solid #BEBEBE';
 
- 				tr13.appendChild(td_details_num);
 
- 				var td_details_name= document.createElement('td');
 
- 				td_details_name.width='25%';
 
- 				td_details_name.style.textAlign='center';
 
- 				td_details_name.innerHTML= ConfirmStore2[i].monitor_son;
 
- 				td_details_name.style.fontSize='14px';
 
- 				td_details_name.style.borderLeft ='1px solid #BEBEBE';
 
- 				td_details_name.style.borderTop ='1px solid #BEBEBE';
 
- 				tr13.appendChild(td_details_name);
 
- 				var td_details_specifications = document.createElement('td');
 
- 				td_details_specifications.width='25%';
 
- 				td_details_specifications.style.textAlign='center';
 
- 				td_details_specifications.innerHTML=ConfirmStore2[i].monitor_type;
 
- 				td_details_specifications.style.fontSize='14px';
 
- 				td_details_specifications.style.borderLeft ='1px solid #BEBEBE';
 
- 				td_details_specifications.style.borderTop ='1px solid #BEBEBE';
 
- 				tr13.appendChild(td_details_specifications);
 
- 				var td_details_device_num = document.createElement('td');
 
- 				td_details_device_num.width='10%';
 
- 				td_details_device_num.style.textAlign='center';
 
- 				td_details_device_num.innerHTML=ConfirmStore2[i].monitor_sum;
 
- 				td_details_device_num.style.fontSize='14px';
 
- 				td_details_device_num.style.borderLeft ='1px solid #BEBEBE';
 
- 				td_details_device_num.style.borderTop ='1px solid #BEBEBE';
 
- 				tr13.appendChild(td_details_device_num);
 
- 				var td_details_data_info = document.createElement('td');
 
- 				td_details_data_info.width='30%';
 
- 				td_details_data_info.style.textAlign='center';
 
- 				td_details_data_info.innerHTML=ConfirmStore2[i].data_info;
 
- 				td_details_data_info.style.fontSize='14px';
 
- 				td_details_data_info.style.borderLeft ='1px solid #BEBEBE';
 
- 				td_details_data_info.style.borderTop ='1px solid #BEBEBE';
 
- 				tr13.appendChild(td_details_data_info);
 
- 			   }
 
- 			  var tr_details_device_num1 = document.createElement('tr');
 
- 				sta2.appendChild(tr_details_device_num1);
 
- 			  var td_details_device_num1 = document.createElement('td');
 
- //			    td_details_device_num1.width='30%';
 
- 			    td_details_device_num1.style.textAlign='center';
 
- 			    td_details_device_num1.colSpan='2';
 
- 			    td_details_device_num1.innerHTML='合计';
 
- 			    td_details_device_num1.style.fontSize='14px';
 
- 			    td_details_device_num1.style.borderLeft ='1px solid #BEBEBE';
 
- 			    td_details_device_num1.style.borderTop ='1px solid #BEBEBE';
 
- 				tr_details_device_num1.appendChild(td_details_device_num1);
 
- 			  var td_details_device_num2 = document.createElement('td');
 
- 			    td_details_device_num2.width='25%';
 
- 			    td_details_device_num2.style.textAlign='center';
 
- 			    td_details_device_num2.innerHTML='';
 
- 			    td_details_device_num2.style.fontSize='14px';
 
- 			    td_details_device_num2.style.borderLeft ='1px solid #BEBEBE';
 
- 			    td_details_device_num2.style.borderTop ='1px solid #BEBEBE';
 
- 				tr_details_device_num1.appendChild(td_details_device_num2);
 
- 			  var td_details_device_num3 = document.createElement('td');
 
- 			    td_details_device_num3.width='10%';
 
- 			    td_details_device_num3.style.textAlign='center';
 
- 			    td_details_device_num3.innerHTML=device_num2;
 
- 			    td_details_device_num3.style.fontSize='14px';
 
- 			    td_details_device_num3.style.borderLeft ='1px solid #BEBEBE';
 
- 			    td_details_device_num3.style.borderTop ='1px solid #BEBEBE';
 
- 				tr_details_device_num1.appendChild(td_details_device_num3);
 
- 			  var td_details_device_num4 = document.createElement('td');
 
- 			    td_details_device_num4.width='30%';
 
- 			    td_details_device_num4.style.textAlign='center';
 
- 			    td_details_device_num4.innerHTML='';
 
- 			    td_details_device_num4.style.fontSize='14px';
 
- 			    td_details_device_num4.style.borderLeft ='1px solid #BEBEBE';
 
- 			    td_details_device_num4.style.borderTop ='1px solid #BEBEBE';
 
- 				tr_details_device_num1.appendChild(td_details_device_num4);
 
- 			  }
 
- 			}
 
- 		var title11 = document.createElement('div');
 
- 		title11.style.textAlign='center';
 
- 		title11.style.fontSize='14px';
 
- 		title11.style.marginBottom='20px';
 
- 		title11.style.fontWeight='bold';
 
- 		title11.innerHTML='表3 项目监测点清单';
 
- 		div1.appendChild(title11);
 
- 		var div2 = document.createElement('div');
 
- 		div2.width=580;
 
- 		div2.height=841;
 
- 		div2.setAttribute('id','div2_label1');
 
- 		woker_talk.appendChild(div2);
 
- 		var title12 = document.createElement('h3');
 
- 		title12.style.textAlign='left';
 
- 		title12.style.fontSize='14px';
 
- 		title12.style.fontWeight='bold';
 
- 		title12.innerHTML='2 阶段数据统计情况';
 
- 		div2.appendChild(title12);
 
- 		var title13 = document.createElement('h4');
 
- 		title13.style.textAlign='left';
 
- 		title13.style.fontSize='14px';
 
- 		title13.style.fontWeight='bold';
 
- 		title13.innerHTML='2.1 统计时段';
 
- 		div2.appendChild(title13);
 
- 		var title14 = document.createElement('div');
 
- 		title14.style.border='1px solid #BEBEBE';
 
- 		title14.width='100%';
 
- 		title14.style.background='#AAAAAA';
 
- 		title14.style.minHeight='60px';
 
- 		title14.style.paddingLeft='36px';
 
- 		title14.style.marginBottom='20px';
 
- 		div2.appendChild(title14);
 
- 		var title14_p1 = document.createElement('p');
 
- 		title14_p1.innerHTML='统计起始日期:'+start_data;
 
- 		title14_p1.style.fontSize='14px';
 
- 		title14.appendChild(title14_p1);
 
- 		var title14_p2 = document.createElement('p');
 
- 		title14_p2.innerHTML='统计截止日期:'+end_data;
 
- 		title14_p2.style.fontSize='14px';
 
- 		title14.appendChild(title14_p2);
 
- 		var title14_p3 = document.createElement('p');
 
- 		title14_p3.innerHTML='统计时段时长:'+days;
 
- 		title14_p3.style.fontSize='14px';
 
- 		title14.appendChild(title14_p3);
 
- 		var title15 = document.createElement('h4');
 
- 		title15.style.textAlign='left';
 
- 		title15.style.fontSize='14px';
 
- 		title15.style.fontWeight='bold';
 
- 		title15.innerHTML='2.2 统计报表';
 
- 		div2.appendChild(title15);
 
- 		var sta3 = document.createElement('table');
 
- 		sta3.style.marginTop='10px';
 
- 		sta3.width='100%';
 
- 		sta3.style.marginBottom='20px';
 
- 		sta3.style.borderRight ='1px solid #BEBEBE';
 
- 		sta3.style.borderBottom ='1px solid #BEBEBE';
 
- 		div2.appendChild(sta3);
 
- 		var tr20 = document.createElement('tr');
 
- 		sta3.appendChild(tr20);
 
- 		var th20 = document.createElement('th');
 
- 		th20.width='10%';
 
- 		th20.style.textAlign='center';
 
- 		th20.innerHTML='序号';
 
- 		th20.style.fontSize='14px';
 
- 		th20.style.borderLeft ='1px solid #BEBEBE';
 
- 		th20.style.borderTop ='1px solid #BEBEBE';
 
- 		tr20.appendChild(th20);
 
- 		var th21 = document.createElement('th');
 
- 		th21.width='15%';
 
- 		th21.style.textAlign='center';
 
- 		th21.innerHTML='报告分类';
 
- 		th21.style.fontSize='14px';
 
- 		th21.style.borderLeft ='1px solid #BEBEBE';
 
- 		th21.style.borderTop ='1px solid #BEBEBE';
 
- 		tr20.appendChild(th21);
 
- 		var th22 = document.createElement('th');
 
- 		th22.width='15%';
 
- 		th22.style.textAlign='center';
 
- 		th22.innerHTML='报告属性';
 
- 		th22.style.fontSize='14px';
 
- 		th22.style.borderLeft ='1px solid #BEBEBE';
 
- 		th22.style.borderTop ='1px solid #BEBEBE';
 
- 		tr20.appendChild(th22);
 
- 		var th23 = document.createElement('th');
 
- 		th23.width='15%';
 
- 		th23.style.textAlign='center';
 
- 		th23.innerHTML='报告总数';
 
- 		th23.style.fontSize='14px';
 
- 		th23.style.borderLeft ='1px solid #BEBEBE';
 
- 		th23.style.borderTop ='1px solid #BEBEBE';
 
- 		tr20.appendChild(th23);
 
- 		var th24 = document.createElement('th');
 
- 		th24.width='10%';
 
- 		th24.style.textAlign='center';
 
- 		th24.innerHTML='已处理';
 
- 		th24.style.fontSize='14px';
 
- 		th24.style.borderLeft ='1px solid #BEBEBE';
 
- 		th24.style.borderTop ='1px solid #BEBEBE';
 
- 		tr20.appendChild(th24);
 
- 		var th25 = document.createElement('th');
 
- 		th25.width='10%';
 
- 		th25.style.textAlign='center';
 
- 		th25.innerHTML='未处理';
 
- 		th25.style.fontSize='14px';
 
- 		th25.style.borderLeft ='1px solid #BEBEBE';
 
- 		th25.style.borderTop ='1px solid #BEBEBE';
 
- 		tr20.appendChild(th25);
 
- 		var th26 = document.createElement('th');
 
- 		th26.width='10%';
 
- 		th26.style.textAlign='center';
 
- 		th26.innerHTML='处置率';
 
- 		th26.style.fontSize='14px';
 
- 		th26.style.borderLeft ='1px solid #BEBEBE';
 
- 		th26.style.borderTop ='1px solid #BEBEBE';
 
- 		tr20.appendChild(th26);
 
- 		var th27 = document.createElement('th');
 
- 		th27.width='15%';
 
- 		th27.style.textAlign='center';
 
- 		th27.innerHTML='备注';
 
- 		th27.style.fontSize='14px';
 
- 		th27.style.borderLeft ='1px solid #BEBEBE';
 
- 		th27.style.borderTop ='1px solid #BEBEBE';
 
- 		tr20.appendChild(th27);
 
- 		var tr21 = document.createElement('tr');
 
- 		sta3.appendChild(tr21);
 
- 		var td20 = document.createElement('td');
 
- 		td20.width='10%';
 
- 		td20.style.textAlign='center';
 
- 		td20.innerHTML=1;
 
- 		td20.style.fontSize='14px';
 
- 		td20.style.borderLeft ='1px solid #BEBEBE';
 
- 		td20.style.borderTop ='1px solid #BEBEBE';
 
- 		tr21.appendChild(td20);
 
- 		var td21 = document.createElement('td');
 
- 		td21.width='15%';
 
- 		td21.style.textAlign='center';
 
- 		td21.innerHTML='火灾监测';
 
- 		td21.rowSpan='2';
 
- 		td21.style.fontSize='14px';
 
- 		td21.style.borderLeft ='1px solid #BEBEBE';
 
- 		td21.style.borderTop ='1px solid #BEBEBE';
 
- 		tr21.appendChild(td21);
 
- 		var td22 = document.createElement('td');
 
- 		td22.width='15%';
 
- 		td22.style.textAlign='center';
 
- 		td22.innerHTML='报警';
 
- 		td22.style.fontSize='14px';
 
- 		td22.style.borderLeft ='1px solid #BEBEBE';
 
- 		td22.style.borderTop ='1px solid #BEBEBE';
 
- 		tr21.appendChild(td22);
 
- 		var td23 = document.createElement('td');
 
- 		td23.width='15%';
 
- 		td23.style.textAlign='center';
 
- 		td23.innerHTML=hjtotalCount;
 
- 		td23.style.fontSize='14px';
 
- 		td23.style.borderLeft ='1px solid #BEBEBE';
 
- 		td23.style.borderTop ='1px solid #BEBEBE';
 
- 		tr21.appendChild(td23);
 
- 		var td24 = document.createElement('td');
 
- 		td24.width='10%';
 
- 		td24.style.textAlign='center';
 
- 		td24.innerHTML=clhjtotalCount;
 
- 		td24.style.fontSize='14px';
 
- 		td24.style.borderLeft ='1px solid #BEBEBE';
 
- 		td24.style.borderTop ='1px solid #BEBEBE';
 
- 		tr21.appendChild(td24);
 
- 		var td25 = document.createElement('td');
 
- 		td25.width='10%';
 
- 		td25.style.textAlign='center';
 
- 		td25.innerHTML=0;
 
- 		td25.style.fontSize='14px';
 
- 		td25.style.borderLeft ='1px solid #BEBEBE';
 
- 		td25.style.borderTop ='1px solid #BEBEBE';
 
- 		tr21.appendChild(td25);
 
- 		var td26 = document.createElement('td');
 
- 		td26.width='10%';
 
- 		td26.style.textAlign='center';
 
- 		td26.innerHTML=hjbaifenbi+'%';
 
- 		td26.style.fontSize='14px';
 
- 		td26.style.borderLeft ='1px solid #BEBEBE';
 
- 		td26.style.borderTop ='1px solid #BEBEBE';
 
- 		tr21.appendChild(td26);
 
- 		var td27 = document.createElement('td');
 
- 		td27.width='15%';
 
- 		td27.style.textAlign='center';
 
- 		td27.innerHTML='';
 
- 		td27.style.fontSize='14px';
 
- 		td27.style.borderLeft ='1px solid #BEBEBE';
 
- 		td27.style.borderTop ='1px solid #BEBEBE';
 
- 		tr21.appendChild(td27);
 
- 		var tr22 = document.createElement('tr');
 
- 		sta3.appendChild(tr22);
 
- 		var td28 = document.createElement('td');
 
- 		td28.width='10%';
 
- 		td28.style.textAlign='center';
 
- 		td28.innerHTML=2;
 
- 		td28.style.fontSize='14px';
 
- 		td28.style.borderLeft ='1px solid #BEBEBE';
 
- 		td28.style.borderTop ='1px solid #BEBEBE';
 
- 		tr22.appendChild(td28);
 
- 		var td29 = document.createElement('td');
 
- 		td29.width='15%';
 
- 		td29.style.textAlign='center';
 
- 		td29.innerHTML='设备离线';
 
- 		td29.style.fontSize='14px';
 
- 		td29.style.borderLeft ='1px solid #BEBEBE';
 
- 		td29.style.borderTop ='1px solid #BEBEBE';
 
- 		tr22.appendChild(td29);
 
- 		var td30 = document.createElement('td');
 
- 		td30.width='15%';
 
- 		td30.style.textAlign='center';
 
- 		td30.innerHTML=lxhjtotalCount;
 
- 		td30.style.fontSize='14px';
 
- 		td30.style.borderLeft ='1px solid #BEBEBE';
 
- 		td30.style.borderTop ='1px solid #BEBEBE';
 
- 		tr22.appendChild(td30);
 
- 		var td31 = document.createElement('td');
 
- 		td31.width='10%';
 
- 		td31.style.textAlign='center';
 
- 		td31.innerHTML=cllxhjtotalCount;
 
- 		td31.style.fontSize='14px';
 
- 		td31.style.borderLeft ='1px solid #BEBEBE';
 
- 		td31.style.borderTop ='1px solid #BEBEBE';
 
- 		tr22.appendChild(td31);
 
- 		var td32 = document.createElement('td');
 
- 		td32.width='10%';
 
- 		td32.style.textAlign='center';
 
- 		td32.innerHTML=0;
 
- 		td32.style.fontSize='14px';
 
- 		td32.style.borderLeft ='1px solid #BEBEBE';
 
- 		td32.style.borderTop ='1px solid #BEBEBE';
 
- 		tr22.appendChild(td32);
 
- 		var td33 = document.createElement('td');
 
- 		td33.width='10%';
 
- 		td33.style.textAlign='center';
 
- 		td33.innerHTML=lxhjbaifenbi;
 
- 		td33.style.fontSize='14px';
 
- 		td33.style.borderLeft ='1px solid #BEBEBE';
 
- 		td33.style.borderTop ='1px solid #BEBEBE';
 
- 		tr22.appendChild(td33);
 
- 		var td34 = document.createElement('td');
 
- 		td34.width='15%';
 
- 		td34.style.textAlign='center';
 
- 		td34.innerHTML='';
 
- 		td34.style.fontSize='14px';
 
- 		td34.style.borderLeft ='1px solid #BEBEBE';
 
- 		td34.style.borderTop ='1px solid #BEBEBE';
 
- 		tr22.appendChild(td34);
 
- 		var tr23 = document.createElement('tr');
 
- 		sta3.appendChild(tr23);
 
- 		var td35 = document.createElement('td');
 
- 		td35.width='10%';
 
- 		td35.style.textAlign='center';
 
- 		td35.innerHTML=3;
 
- 		td35.style.fontSize='14px';
 
- 		td35.style.borderLeft ='1px solid #BEBEBE';
 
- 		td35.style.borderTop ='1px solid #BEBEBE';
 
- 		tr23.appendChild(td35);
 
- 		var td36 = document.createElement('td');
 
- 		td36.width='15%';
 
- 		td36.style.textAlign='center';
 
- 		td36.innerHTML='消防水系统监测';
 
- 		td36.rowSpan='2';
 
- 		td36.style.fontSize='14px';
 
- 		td36.style.borderLeft ='1px solid #BEBEBE';
 
- 		td36.style.borderTop ='1px solid #BEBEBE';
 
- 		tr23.appendChild(td36);
 
- 		var td37 = document.createElement('td');
 
- 		td37.width='15%';
 
- 		td37.style.textAlign='center';
 
- 		td37.innerHTML='报警';
 
- 		td37.style.fontSize='14px';
 
- 		td37.style.borderLeft ='1px solid #BEBEBE';
 
- 		td37.style.borderTop ='1px solid #BEBEBE';
 
- 		tr23.appendChild(td37);
 
- 		var td38 = document.createElement('td');
 
- 		td38.width='15%';
 
- 		td38.style.textAlign='center';
 
- 		td38.innerHTML=sjtotalCount;
 
- 		td38.style.fontSize='14px';
 
- 		td38.style.borderLeft ='1px solid #BEBEBE';
 
- 		td38.style.borderTop ='1px solid #BEBEBE';
 
- 		tr23.appendChild(td38);
 
- 		var td39 = document.createElement('td');
 
- 		td39.width='10%';
 
- 		td39.style.textAlign='center';
 
- 		td39.innerHTML=clsjtotalCount;
 
- 		td39.style.fontSize='14px';
 
- 		td39.style.borderLeft ='1px solid #BEBEBE';
 
- 		td39.style.borderTop ='1px solid #BEBEBE';
 
- 		tr23.appendChild(td39);
 
- 		var td40 = document.createElement('td');
 
- 		td40.width='10%';
 
- 		td40.style.textAlign='center';
 
- 		td40.innerHTML=0;
 
- 		td40.style.fontSize='14px';
 
- 		td40.style.borderLeft ='1px solid #BEBEBE';
 
- 		td40.style.borderTop ='1px solid #BEBEBE';
 
- 		tr23.appendChild(td40);
 
- 		var td41 = document.createElement('td');
 
- 		td41.width='10%';
 
- 		td41.style.textAlign='center';
 
- 		td41.innerHTML=sjbaifenbi+'%';
 
- 		td41.style.fontSize='14px';
 
- 		td41.style.borderLeft ='1px solid #BEBEBE';
 
- 		td41.style.borderTop ='1px solid #BEBEBE';
 
- 		tr23.appendChild(td41);
 
- 		var td42 = document.createElement('td');
 
- 		td42.width='15%';
 
- 		td42.style.textAlign='center';
 
- 		td42.innerHTML='';
 
- 		td42.style.fontSize='14px';
 
- 		td42.style.borderLeft ='1px solid #BEBEBE';
 
- 		td42.style.borderTop ='1px solid #BEBEBE';
 
- 		tr23.appendChild(td42);
 
- 		var tr24 = document.createElement('tr');
 
- 		sta3.appendChild(tr24);
 
- 		var td43 = document.createElement('td');
 
- 		td43.width='10%';
 
- 		td43.style.textAlign='center';
 
- 		td43.innerHTML=4;
 
- 		td43.style.fontSize='14px';
 
- 		td43.style.borderLeft ='1px solid #BEBEBE';
 
- 		td43.style.borderTop ='1px solid #BEBEBE';
 
- 		tr24.appendChild(td43);
 
- 		var td44 = document.createElement('td');
 
- 		td44.width='15%';
 
- 		td44.style.textAlign='center';
 
- 		td44.innerHTML='设备离线';
 
- 		td44.style.fontSize='14px';
 
- 		td44.style.borderLeft ='1px solid #BEBEBE';
 
- 		td44.style.borderTop ='1px solid #BEBEBE';
 
- 		tr24.appendChild(td44);
 
- 		var td45 = document.createElement('td');
 
- 		td45.width='15%';
 
- 		td45.style.textAlign='center';
 
- 		td45.innerHTML=lxsjtotalCount;
 
- 		td45.style.fontSize='14px';
 
- 		td45.style.borderLeft ='1px solid #BEBEBE';
 
- 		td45.style.borderTop ='1px solid #BEBEBE';
 
- 		tr24.appendChild(td45);
 
- 		var td46 = document.createElement('td');
 
- 		td46.width='10%';
 
- 		td46.style.textAlign='center';
 
- 		td46.innerHTML=cllxsjtotalCount;
 
- 		td46.style.fontSize='14px';
 
- 		td46.style.borderLeft ='1px solid #BEBEBE';
 
- 		td46.style.borderTop ='1px solid #BEBEBE';
 
- 		tr24.appendChild(td46);
 
- 		var td47 = document.createElement('td');
 
- 		td47.width='10%';
 
- 		td47.style.textAlign='center';
 
- 		td47.innerHTML=0;
 
- 		td47.style.fontSize='14px';
 
- 		td47.style.borderLeft ='1px solid #BEBEBE';
 
- 		td47.style.borderTop ='1px solid #BEBEBE';
 
- 		tr24.appendChild(td47);
 
- 		var td48 = document.createElement('td');
 
- 		td48.width='10%';
 
- 		td48.style.textAlign='center';
 
- 		td48.innerHTML=lxsjbaifenbi;
 
- 		td48.style.fontSize='14px';
 
- 		td48.style.borderLeft ='1px solid #BEBEBE';
 
- 		td48.style.borderTop ='1px solid #BEBEBE';
 
- 		tr24.appendChild(td48);
 
- 		var td49= document.createElement('td');
 
- 		td49.width='15%';
 
- 		td49.style.textAlign='center';
 
- 		td49.innerHTML='';
 
- 		td49.style.fontSize='14px';
 
- 		td49.style.borderLeft ='1px solid #BEBEBE';
 
- 		td49.style.borderTop ='1px solid #BEBEBE';
 
- 		tr24.appendChild(td49);
 
- 		var tr25 = document.createElement('tr');
 
- 		sta3.appendChild(tr25);
 
- 		var td50 = document.createElement('td');
 
- 		td50.width='10%';
 
- 		td50.style.textAlign='center';
 
- 		td50.innerHTML=5;
 
- 		td50.style.fontSize='14px';
 
- 		td50.style.borderLeft ='1px solid #BEBEBE';
 
- 		td50.style.borderTop ='1px solid #BEBEBE';
 
- 		tr25.appendChild(td50);
 
- 		var td51 = document.createElement('td');
 
- 		td51.width='15%';
 
- 		td51.style.textAlign='center';
 
- 		td51.innerHTML='RTU监测';
 
- 		td51.rowSpan='2';
 
- 		td51.style.fontSize='14px';
 
- 		td51.style.borderLeft ='1px solid #BEBEBE';
 
- 		td51.style.borderTop ='1px solid #BEBEBE';
 
- 		tr25.appendChild(td51);
 
- 		var td52 = document.createElement('td');
 
- 		td52.width='15%';
 
- 		td52.style.textAlign='center';
 
- 		td52.innerHTML='报警';
 
- 		td52.style.fontSize='14px';
 
- 		td52.style.borderLeft ='1px solid #BEBEBE';
 
- 		td52.style.borderTop ='1px solid #BEBEBE';
 
- 		tr25.appendChild(td52);
 
- 		var td53 = document.createElement('td');
 
- 		td53.width='15%';
 
- 		td53.style.textAlign='center';
 
- 		td53.innerHTML=rtutotalCount;
 
- 		td53.style.fontSize='14px';
 
- 		td53.style.borderLeft ='1px solid #BEBEBE';
 
- 		td53.style.borderTop ='1px solid #BEBEBE';
 
- 		tr25.appendChild(td53);
 
- 		var td54 = document.createElement('td');
 
- 		td54.width='10%';
 
- 		td54.style.textAlign='center';
 
- 		td54.innerHTML=clrtutotalCount;
 
- 		td54.style.fontSize='14px';
 
- 		td54.style.borderLeft ='1px solid #BEBEBE';
 
- 		td54.style.borderTop ='1px solid #BEBEBE';
 
- 		tr25.appendChild(td54);
 
- 		var td55 = document.createElement('td');
 
- 		td55.width='10%';
 
- 		td55.style.textAlign='center';
 
- 		td55.innerHTML=0;
 
- 		td55.style.fontSize='14px';
 
- 		td55.style.borderLeft ='1px solid #BEBEBE';
 
- 		td55.style.borderTop ='1px solid #BEBEBE';
 
- 		tr25.appendChild(td55);
 
- 		var td56 = document.createElement('td');
 
- 		td56.width='10%';
 
- 		td56.style.textAlign='center';
 
- 		td56.innerHTML=rtubaifenbi+'%';
 
- 		td56.style.fontSize='14px';
 
- 		td56.style.borderLeft ='1px solid #BEBEBE';
 
- 		td56.style.borderTop ='1px solid #BEBEBE';
 
- 		tr25.appendChild(td56);
 
- 		var td57 = document.createElement('td');
 
- 		td57.width='15%';
 
- 		td57.style.textAlign='center';
 
- 		td57.innerHTML='';
 
- 		td57.style.fontSize='14px';
 
- 		td57.style.borderLeft ='1px solid #BEBEBE';
 
- 		td57.style.borderTop ='1px solid #BEBEBE';
 
- 		tr25.appendChild(td57);
 
- 		var tr26 = document.createElement('tr');
 
- 		sta3.appendChild(tr26);
 
- 		var td58 = document.createElement('td');
 
- 		td58.width='10%';
 
- 		td58.style.textAlign='center';
 
- 		td58.innerHTML=6;
 
- 		td58.style.fontSize='14px';
 
- 		td58.style.borderLeft ='1px solid #BEBEBE';
 
- 		td58.style.borderTop ='1px solid #BEBEBE';
 
- 		tr26.appendChild(td58);
 
- 		var td59 = document.createElement('td');
 
- 		td59.width='15%';
 
- 		td59.style.textAlign='center';
 
- 		td59.innerHTML='设备离线';
 
- 		td59.style.fontSize='14px';
 
- 		td59.style.borderLeft ='1px solid #BEBEBE';
 
- 		td59.style.borderTop ='1px solid #BEBEBE';
 
- 		tr26.appendChild(td59);
 
- 		var td60 = document.createElement('td');
 
- 		td60.width='15%';
 
- 		td60.style.textAlign='center';
 
- 		td60.innerHTML=lxrtutotalCount;
 
- 		td60.style.fontSize='14px';
 
- 		td60.style.borderLeft ='1px solid #BEBEBE';
 
- 		td60.style.borderTop ='1px solid #BEBEBE';
 
- 		tr26.appendChild(td60);
 
- 		var td61 = document.createElement('td');
 
- 		td61.width='10%';
 
- 		td61.style.textAlign='center';
 
- 		td61.innerHTML=cllxrtutotalCount;
 
- 		td61.style.fontSize='14px';
 
- 		td61.style.borderLeft ='1px solid #BEBEBE';
 
- 		td61.style.borderTop ='1px solid #BEBEBE';
 
- 		tr26.appendChild(td61);
 
- 		var td62 = document.createElement('td');
 
- 		td62.width='10%';
 
- 		td62.style.textAlign='center';
 
- 		td62.innerHTML=0;
 
- 		td62.style.fontSize='14px';
 
- 		td62.style.borderLeft ='1px solid #BEBEBE';
 
- 		td62.style.borderTop ='1px solid #BEBEBE';
 
- 		tr26.appendChild(td62);
 
- 		var td63 = document.createElement('td');
 
- 		td63.width='10%';
 
- 		td63.style.textAlign='center';
 
- 		td63.innerHTML=lxrtubaifenbi;
 
- 		td63.style.fontSize='14px';
 
- 		td63.style.borderLeft ='1px solid #BEBEBE';
 
- 		td63.style.borderTop ='1px solid #BEBEBE';
 
- 		tr26.appendChild(td63);
 
- 		var td64= document.createElement('td');
 
- 		td64.width='15%';
 
- 		td64.style.textAlign='center';
 
- 		td64.innerHTML='';
 
- 		td64.style.fontSize='14px';
 
- 		td64.style.borderLeft ='1px solid #BEBEBE';
 
- 		td64.style.borderTop ='1px solid #BEBEBE';
 
- 		tr26.appendChild(td64);
 
- 		var title17 = document.createElement('div');
 
- 		title17.style.textAlign='center';
 
- 		title17.style.fontSize='14px';
 
- 		title17.style.marginBottom='20px';
 
- 		title17.style.fontWeight='bold';
 
- 		title17.innerHTML='表4 项目阶段数据统计表';
 
- 		div2.appendChild(title17);
 
- 		var title18 = document.createElement('h3');
 
- 		title18.style.textAlign='left';
 
- 		title18.style.fontSize='14px';
 
- 		title18.style.fontWeight='bold';
 
- 		title18.innerHTML='3 阶段数据分析';
 
- 		woker_talk.appendChild(title18);
 
- 		var title18_highcharts = document.createElement('div');
 
- //		title20_highcharts.width='200!important';
 
- //		title20_highcharts.height='200!important';
 
- 		title18_highcharts.style.marginTop='20px';
 
- 		title18_highcharts.style.marginBottom='20px';
 
- 		title18_highcharts.setAttribute('id','container3');
 
- 		title18_highcharts.style.textAlign='center';
 
- 		woker_talk.appendChild(title18_highcharts);
 
- 		var title19 = document.createElement('h4');
 
- 		title19.style.textAlign='left';
 
- 		title19.style.fontSize='14px';
 
- 		title19.style.fontWeight='bold';
 
- 		title19.innerHTML='3.1 火灾监测数据分析';
 
- 		woker_talk.appendChild(title19);
 
- 		var title20_highcharts = document.createElement('div');
 
- //		title20_highcharts.width='200!important';
 
- //		title20_highcharts.height='200!important';
 
- 		title20_highcharts.style.marginTop='20px';
 
- 		title20_highcharts.style.marginBottom='20px';
 
- 		title20_highcharts.setAttribute('id','container');
 
- 		title20_highcharts.style.textAlign='center';
 
- 		woker_talk.appendChild(title20_highcharts);
 
- 		var title20 = document.createElement('div');
 
- //		title20.setAttribute('class','title20_label1');
 
- 		title20.style.border='1px solid #BEBEBE';
 
- 		title20.width='100%';
 
- 		title20.style.background='#AAAAAA';
 
- //		title20.style.minHeight='80px';
 
- 		title20.style.textIndent='2em';
 
- 		title20.style.marginBottom='20px';
 
- 		woker_talk.appendChild(title20);
 
- 		var title20_p1 = document.createElement('p');
 
- 		if(dwhjtotalCount>0){
 
- 			if(Number(hjresult)>0.5&&Number(ConfirmStore4[0].lxhjresult)>0.5){
 
- //				if(typeof(days3)=="undefined"){
 
- 					title20_p1.innerHTML='统计时段内火灾监测报告数量:'+hjtotalCount+'条。'+'报告平均发生:'+hjresult+'条/台/天。报告数量偏高。提示:火灾隐患极高或存在系统故障,需要排查;离线记录中,报告数量:'+lxhjtotalCount+'条。报告平均发生:'+ConfirmStore4[0].lxhjresult+'条/台/天。提示:火灾监测设备通信状态不稳定,需要排查。';
 
- //				}else if(Number(days3)>=1){
 
- //					title20_p1.innerHTML='统计时段内火灾监测报告数量:'+hjtotalCount+'条。'+'报告平均发生:'+hjresult+'条/台/天。报告数量偏高。提示:火灾隐患极高或存在系统故障,需要排查;离线记录中,报告数量:'+lxhjtotalCount+'条。报告平均发生:'+ConfirmStore4[0].lxhjresult+'条/台/天。提示:火灾监测设备通信状态不稳定,需要排查;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率较低或产品使用培训不足,需要增加使用培训和完善管理制度。';
 
- //				}else if(Number(days3)<1){
 
- //					title20_p1.innerHTML='统计时段内火灾监测报告数量:'+hjtotalCount+'条。'+'报告平均发生:'+hjresult+'条/台/天。报告数量偏高。提示:火灾隐患极高或存在系统故障,需要排查;离线记录中,报告数量:'+lxhjtotalCount+'条。报告平均发生:'+ConfirmStore4[0].lxhjresult+'条/台/天。提示:火灾监测设备通信状态不稳定,需要排查;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率正常,继续保持。';
 
- //				}
 
- 			}else if(Number(hjresult)>0.5 && Number(ConfirmStore4[0].lxhjresult)<=0.5){
 
- //				if(typeof(days3)=="undefined"){
 
- 					title20_p1.innerHTML='统计时段内火灾监测报告数量:'+hjtotalCount+'条。'+'报告平均发生:'+hjresult+'条/台/天。报告数量偏高。提示:火灾隐患极高或存在系统故障,需要排查;离线记录中,报告数量:'+lxhjtotalCount+'条。报告平均发生:'+ConfirmStore4[0].lxhjresult+'条/台/天。提示:火灾监测设备通信状态良好,数据接收情况稳定,需要保持。';
 
- //				}else if(Number(days3)>=1){
 
- //					title20_p1.innerHTML='统计时段内火灾监测报告数量:'+hjtotalCount+'条。'+'报告平均发生:'+hjresult+'条/台/天。报告数量偏高。提示:火灾隐患极高或存在系统故障,需要排查;离线记录中,报告数量:'+lxhjtotalCount+'条。报告平均发生:'+ConfirmStore4[0].lxhjresult+'条/台/天。提示:火灾监测设备通信状态良好,数据接收情况稳定,需要保持;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率较低或产品使用培训不足,需要增加使用培训和完善管理制度。';
 
- //				}else if(Number(days3)<1){
 
- //					title20_p1.innerHTML='统计时段内火灾监测报告数量:'+hjtotalCount+'条。'+'报告平均发生:'+hjresult+'条/台/天。报告数量偏高。提示:火灾隐患极高或存在系统故障,需要排查;离线记录中,报告数量:'+lxhjtotalCount+'条。报告平均发生:'+ConfirmStore4[0].lxhjresult+'条/台/天。提示:火灾监测设备通信状态良好,数据接收情况稳定,需要保持;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率正常,继续保持。';
 
- //				}
 
- 			}else if(Number(hjresult)<=0.5&&Number(ConfirmStore4[0].lxhjresult)>0.5){
 
- //				if(typeof(days3)=="undefined"){
 
- 					title20_p1.innerHTML='统计时段内火灾监测报告数量:'+hjtotalCount+'条。'+'报告平均发生:'+hjresult+'条/台/天。报告数量良好。提示:有一定的火灾隐患或存在系统故障,需要排查;离线记录中,报告数量:'+lxhjtotalCount+'条。报告平均发生:'+ConfirmStore4[0].lxhjresult+'条/台/天。提示:火灾监测设备通信状态不稳定,需要排查。';
 
- //				}else if(Number(days3)>=1){
 
- //					title20_p1.innerHTML='统计时段内火灾监测报告数量:'+hjtotalCount+'条。'+'报告平均发生:'+hjresult+'条/台/天。报告数量良好。提示:有一定的火灾隐患或存在系统故障,需要排查;离线记录中,报告数量:'+lxhjtotalCount+'条。报告平均发生:'+ConfirmStore4[0].lxhjresult+'条/台/天。提示:火灾监测设备通信状态不稳定,需要排查;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率较低或产品使用培训不足,需要增加使用培训和完善管理制度。';
 
- //				}else if(Number(days3)<1){
 
- //					title20_p1.innerHTML='统计时段内火灾监测报告数量:'+hjtotalCount+'条。'+'报告平均发生:'+hjresult+'条/台/天。报告数量良好。提示:有一定的火灾隐患或存在系统故障,需要排查;离线记录中,报告数量:'+lxhjtotalCount+'条。报告平均发生:'+ConfirmStore4[0].lxhjresult+'条/台/天。提示:火灾监测设备通信状态不稳定,需要排查;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率正常,继续保持。';
 
- //				}
 
- 			}else if(Number(hjresult)<=0.5&&Number(ConfirmStore4[0].lxhjresult)<=0.5){
 
- //				if(typeof(days3)=="undefined"){
 
- 					title20_p1.innerHTML='统计时段内火灾监测报告数量:'+hjtotalCount+'条。'+'报告平均发生:'+hjresult+'条/台/天。报告数量良好。提示:有一定的火灾隐患或存在系统故障,需要排查;离线记录中,报告数量:'+lxhjtotalCount+'条。报告平均发生:'+ConfirmStore4[0].lxhjresult+'条/台/天。提示:火灾监测设备通信状态良好,数据接收情况稳定,需要保持。';
 
- //				}else if(Number(days3)>=1){
 
- //					title20_p1.innerHTML='统计时段内火灾监测报告数量:'+hjtotalCount+'条。'+'报告平均发生:'+hjresult+'条/台/天。报告数量良好。提示:有一定的火灾隐患或存在系统故障,需要排查;离线记录中,报告数量:'+lxhjtotalCount+'条。报告平均发生:'+ConfirmStore4[0].lxhjresult+'条/台/天。提示:火灾监测设备通信状态良好,数据接收情况稳定,需要保持;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率较低或产品使用培训不足,需要增加使用培训和完善管理制度。';
 
- //				}else if(Number(days3)<1){
 
- //					title20_p1.innerHTML='统计时段内火灾监测报告数量:'+hjtotalCount+'条。'+'报告平均发生:'+hjresult+'条/台/天。报告数量良好。提示:有一定的火灾隐患或存在系统故障,需要排查;离线记录中,报告数量:'+lxhjtotalCount+'条。报告平均发生:'+ConfirmStore4[0].lxhjresult+'条/台/天。提示:火灾监测设备通信状态良好,数据接收情况稳定,需要保持;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率正常,继续保持。';
 
- //				}
 
- 			}
 
- 		    
 
- 		}else{
 
- 			title20_p1.innerHTML='未安装此设备';	
 
- 		}
 
- //		title20_p1.setAttribute('class','title14_label1_p1');
 
- 		title20_p1.style.paddingLeft='36px';
 
- 		title20_p1.style.paddingRight='36px';
 
- 		title20_p1.style.marginBottom='20px';
 
- 		title20_p1.style.marginTop='20px';
 
- 		title20_p1.style.lineHeight='150%';
 
- 		title20_p1.style.fontSize='14px';
 
- 		title20.appendChild(title20_p1);
 
- 		var title21 = document.createElement('h4');
 
- 		title21.style.textAlign='left';
 
- 		title21.style.fontSize='14px';
 
- 		title21.style.fontWeight='bold';
 
- 		title21.innerHTML='3.2 消防水系统监测数据分析';
 
- 		woker_talk.appendChild(title21);
 
- 		var title21_highcharts = document.createElement('div');
 
- //		title20_highcharts.width='200!important';
 
- //		title20_highcharts.height='200!important';
 
- 		title21_highcharts.style.marginTop='20px';
 
- 		title21_highcharts.style.marginBottom='46px';
 
- 		title21_highcharts.setAttribute('id','container1');
 
- 		title21_highcharts.style.textAlign='center';
 
- 		woker_talk.appendChild(title21_highcharts);
 
- 		var title22 = document.createElement('div');
 
- //		title22.setAttribute('class','title20_label1');
 
- 		title22.style.border='1px solid #BEBEBE';
 
- 		title22.width='100%';
 
- 		title22.style.background='#AAAAAA';
 
- //		title22.style.minHeight='80px';
 
- 		title22.style.textIndent='2em';
 
- 		title22.style.marginBottom='20px';
 
- 		woker_talk.appendChild(title22);
 
- 		var title22_p1 = document.createElement('p');
 
- 		if(dwsjtotalCount>0){
 
- 			if(Number(sjresult)>1&&Number(ConfirmStore4[0].lxsjresult)>0.5){
 
- //				if(typeof(days6)=="undefined"){
 
- 					title22_p1.innerHTML='统计时段内消防水系统监测报告数量:'+sjtotalCount+'次。'+'报告平均发生:'+sjresult+'条/台/天。报告数量偏高。提示:现场消防水压或液位存在隐患,需要排查;离线记录中,报告数量:'+lxsjtotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxsjresult+'条/台/天。提示:消防水系统监测设备通信状态不稳定,需要排查。';
 
- //				}else if(Number(days6)>=1){
 
- //					title22_p1.innerHTML='统计时段内消防水系统监测报告数量:'+sjtotalCount+'次。'+'报告平均发生:'+sjresult+'条/台/天。报告数量偏高。提示:现场消防水压或液位存在隐患,需要排查;离线记录中,报告数量:'+lxsjtotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxsjresult+'条/台/天。提示:消防水系统监测设备通信状态不稳定,需要排查;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率较低或产品使用培训不足,需要增加使用培训和完善管理制度。';
 
- //				}else if(Number(days6)<1){
 
- //					title22_p1.innerHTML='统计时段内消防水系统监测报告数量:'+sjtotalCount+'次。'+'报告平均发生:'+sjresult+'条/台/天。报告数量偏高。提示:现场消防水压或液位存在隐患,需要排查;离线记录中,报告数量:'+lxsjtotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxsjresult+'条/台/天。提示:消防水系统监测设备通信状态不稳定,需要排查;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率正常,继续保持。';
 
- //				}
 
- 			}else if(Number(sjresult)>1 && Number(ConfirmStore4[0].lxsjresult)<=0.5){
 
- //				if(typeof(days6)=="undefined"){
 
- 					title22_p1.innerHTML='统计时段内消防水系统监测报告数量:'+sjtotalCount+'次。'+'报告平均发生:'+sjresult+'条/台/天。报告数量偏高。提示:现场消防水压或液位存在隐患,需要排查;离线记录中,报告数量:'+lxsjtotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxsjresult+'条/台/天。提示:消防水系统监测设备通信状态良好,需要保持。';
 
- //				}else if(Number(days6)>=1){
 
- //					title22_p1.innerHTML='统计时段内消防水系统监测报告数量:'+sjtotalCount+'次。'+'报告平均发生:'+sjresult+'条/台/天。报告数量偏高。提示:现场消防水压或液位存在隐患,需要排查;离线记录中,报告数量:'+lxsjtotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxsjresult+'条/台/天。提示:消防水系统监测设备通信状态良好,需要保持;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率较低或产品使用培训不足,需要增加使用培训和完善管理制度。';
 
- //				}else if(Number(days6)<1){
 
- //					title22_p1.innerHTML='统计时段内消防水系统监测报告数量:'+sjtotalCount+'次。'+'报告平均发生:'+sjresult+'条/台/天。报告数量偏高。提示:现场消防水压或液位存在隐患,需要排查;离线记录中,报告数量:'+lxsjtotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxsjresult+'条/台/天。提示:消防水系统监测设备通信状态良好,需要保持;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率正常,继续保持。';
 
- //				}
 
- 			}else if(Number(sjresult)<=1 && Number(ConfirmStore4[0].lxsjresult)>0.5){
 
- //				if(typeof(days6)=="undefined"){
 
- 					title22_p1.innerHTML='统计时段内消防水系统监测报告数量:'+sjtotalCount+'次。'+'报告平均发生:'+sjresult+'条/台/天。报告数量良好。提示:消防水设备状态良好,需要保持;离线记录中,报告数量:'+lxsjtotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxsjresult+'条/台/天。提示:消防水系统监测设备通信状态不稳定,需要排查。';
 
- //				}else if(Number(days6)>=1){
 
- //					title22_p1.innerHTML='统计时段内消防水系统监测报告数量:'+sjtotalCount+'次。'+'报告平均发生:'+sjresult+'条/台/天。报告数量良好。提示:消防水设备状态良好,需要保持;离线记录中,报告数量:'+lxsjtotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxsjresult+'条/台/天。提示:消防水系统监测设备通信状态不稳定,需要排查;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率较低或产品使用培训不足,需要增加使用培训和完善管理制度。';
 
- //				}else if(Number(days6)<1){
 
- //					title22_p1.innerHTML='统计时段内消防水系统监测报告数量:'+sjtotalCount+'次。'+'报告平均发生:'+sjresult+'条/台/天。报告数量良好。提示:消防水设备状态良好,需要保持;离线记录中,报告数量:'+lxsjtotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxsjresult+'条/台/天。提示:消防水系统监测设备通信状态不稳定,需要排查;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率正常,继续保持。';
 
- //				}
 
- 			}else if(Number(sjresult)<=1 && Number(ConfirmStore4[0].lxsjresult)<=0.5){
 
- //				if(typeof(days6)=="undefined"){
 
- 					title22_p1.innerHTML='统计时段内消防水系统监测报告数量:'+sjtotalCount+'次。'+'报告平均发生:'+sjresult+'条/台/天。报告数量良好。提示:消防水设备状态良好,需要保持;离线记录中,报告数量:'+lxsjtotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxsjresult+'条/台/天。提示:消防水系统监测设备通信状态良好,需要保持。';
 
- //				}else if(Number(days6)>=1){
 
- //					title22_p1.innerHTML='统计时段内消防水系统监测报告数量:'+sjtotalCount+'次。'+'报告平均发生:'+sjresult+'条/台/天。报告数量良好。提示:消防水设备状态良好,需要保持;离线记录中,报告数量:'+lxsjtotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxsjresult+'条/台/天。提示:消防水系统监测设备通信状态良好,需要保持;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率较低或产品使用培训不足,需要增加使用培训和完善管理制度。';
 
- //				}else if(Number(days6)<1){
 
- //					title22_p1.innerHTML='统计时段内消防水系统监测报告数量:'+sjtotalCount+'次。'+'报告平均发生:'+sjresult+'条/台/天。报告数量良好。提示:消防水设备状态良好,需要保持;离线记录中,报告数量:'+lxsjtotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxsjresult+'条/台/天。提示:消防水系统监测设备通信状态良好,需要保持;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率正常,继续保持。';
 
- //				}
 
- 			}
 
- 		}else{
 
- 			title22_p1.innerHTML='未安装此设备';	
 
- 		}
 
- //		title22_p1.setAttribute('class','title14_label1_p1');
 
- 		title22_p1.style.fontSize='14px';
 
- 		title22_p1.style.paddingLeft='36px';
 
- 		title22_p1.style.paddingRight='36px';
 
- 		title22_p1.style.marginBottom='20px';
 
- 		title22_p1.style.marginTop='20px';
 
- 		title22_p1.style.lineHeight='150%';
 
- 		title22.appendChild(title22_p1);
 
- 		var title23 = document.createElement('h4');
 
- 		title23.style.textAlign='left';
 
- 		title23.style.fontSize='14px';
 
- 		title23.style.fontWeight='bold';
 
- 		title23.innerHTML='3.3 RTU监测数据分析';
 
- 		woker_talk.appendChild(title23);
 
- 		var title23_highcharts = document.createElement('div');
 
- //		title23_highcharts.style.width='300px';
 
- //		title23_highcharts.style.height='300px';
 
- 		title23_highcharts.style.marginTop='20px';
 
- 		title23_highcharts.style.marginBottom='20px';
 
- 		title23_highcharts.setAttribute('id','container2');
 
- 		title23_highcharts.style.textAlign='center';
 
- 		woker_talk.appendChild(title23_highcharts);
 
- 		var title24 = document.createElement('div');
 
- 		title24.style.border='1px solid #BEBEBE';
 
- 		title24.width='100%';
 
- 		title24.style.background='#AAAAAA';
 
- //		title22.style.minHeight='80px';
 
- 		title24.style.textIndent='2em';
 
- 		title24.style.marginBottom='20px';
 
- 		woker_talk.appendChild(title24);
 
- 		var title24_p1 = document.createElement('p');
 
- 		if(dwrtutotalCount>0){
 
- 			if(Number(rturesult)>0.5&&Number(ConfirmStore4[0].lxrturesult)>0.5){
 
- //				if(typeof(days9)=="undefined"){
 
- 					title24_p1.innerHTML='统计时段内RTU监测报告数量:'+rtutotalCount+'次。'+'报告平均发生:'+rturesult+'条/台/天。'+'提示:控制柜状态切换频率异常;需要排查;离线记录中,报告数量:'+lxrtutotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxrturesult+'条/台/天。提示:RTU监测设备通信状态不稳定,需要排查。';
 
- //				}else if(Number(days9)>=1){
 
- //					title24_p1.innerHTML='统计时段内RTU监测报告数量:'+rtutotalCount+'次。'+'报告平均发生:'+rturesult+'条/台/天。'+'提示:控制柜状态切换频率异常;需要排查;离线记录中,报告数量:'+lxrtutotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxrturesult+'条/台/天。提示:RTU监测设备通信状态不稳定,需要排查;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率较低或产品使用培训不足,需要增加使用培训和完善管理制度。';
 
- //				}else if(Number(days9)<1){
 
- //					title24_p1.innerHTML='统计时段内RTU监测报告数量:'+rtutotalCount+'次。'+'报告平均发生:'+rturesult+'条/台/天。'+'提示:控制柜状态切换频率异常;需要排查;离线记录中,报告数量:'+lxrtutotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxrturesult+'条/台/天。提示:RTU监测设备通信状态不稳定,需要排查;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率正常,继续保持。';
 
- //				}
 
- 				
 
- 			}else if(Number(rturesult)>0.5 && Number(ConfirmStore4[0].lxrturesult)<=0.5){
 
- //				if(typeof(days9)=="undefined"){
 
- 					title24_p1.innerHTML='统计时段内RTU监测报告数量:'+rtutotalCount+'次。'+'报告平均发生:'+rturesult+'条/台/天。'+'提示:控制柜状态切换频率异常;需要排查;离线记录中,报告数量:'+lxrtutotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxrturesult+'条/台/天。提示:RTU监测设备通信状态良好,需要保持。';
 
- //				}else if(Number(days9)>=1){
 
- //					title24_p1.innerHTML='统计时段内RTU监测报告数量:'+rtutotalCount+'次。'+'报告平均发生:'+rturesult+'条/台/天。'+'提示:控制柜状态切换频率异常;需要排查;离线记录中,报告数量:'+lxrtutotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxrturesult+'条/台/天。提示:RTU监测设备通信状态良好,需要保持;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率较低或产品使用培训不足,需要增加使用培训和完善管理制度。';
 
- //				}else if(Number(days9)<1){
 
- //					title24_p1.innerHTML='统计时段内RTU监测报告数量:'+rtutotalCount+'次。'+'报告平均发生:'+rturesult+'条/台/天。'+'提示:控制柜状态切换频率异常;需要排查;离线记录中,报告数量:'+lxrtutotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxrturesult+'条/台/天。提示:RTU监测设备通信状态良好,需要保持;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率正常,继续保持。';
 
- //				}
 
- 			}else if(Number(rturesult)<=0.5 && Number(ConfirmStore4[0].lxrturesult)>0.5){
 
- //				if(typeof(days9)=="undefined"){
 
- 					title24_p1.innerHTML='统计时段内RTU监测报告数量:'+rtutotalCount+'次。'+'报告平均发生:'+rturesult+'条/台/天。'+'提示:控制柜状态切换频率良好;需要保持;离线记录中,报告数量:'+lxrtutotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxrturesult+'条/台/天。提示:RTU监测设备通信状态不稳定,需要排查。';
 
- //				}else if(Number(days9)>=1){
 
- //					title24_p1.innerHTML='统计时段内RTU监测报告数量:'+rtutotalCount+'次。'+'报告平均发生:'+rturesult+'条/台/天。'+'提示:控制柜状态切换频率良好;需要保持;离线记录中,报告数量:'+lxrtutotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxrturesult+'条/台/天。提示:RTU监测设备通信状态不稳定,需要排查;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率较低或产品使用培训不足,需要增加使用培训和完善管理制度。';
 
- //				}else if(Number(days9)<1){
 
- //					title24_p1.innerHTML='统计时段内RTU监测报告数量:'+rtutotalCount+'次。'+'报告平均发生:'+rturesult+'条/台/天。'+'提示:控制柜状态切换频率良好;需要保持;离线记录中,报告数量:'+lxrtutotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxrturesult+'条/台/天。提示:RTU监测设备通信状态不稳定,需要排查;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率正常,继续保持。';
 
- //				}
 
- 			}else if(Number(rturesult)<=0.5 && Number(ConfirmStore4[0].lxrturesult)<=0.5){
 
- //				if(typeof(days9)=="undefined"){
 
- 					title24_p1.innerHTML='统计时段内RTU监测报告数量:'+rtutotalCount+'次。'+'报告平均发生:'+rturesult+'条/台/天。'+'提示:控制柜状态切换频率良好;需要保持;离线记录中,报告数量:'+lxrtutotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxrturesult+'条/台/天。提示:RTU监测设备通信状态良好,需要保持。';
 
- //				}else if(Number(days9)>=1){
 
- //					title24_p1.innerHTML='统计时段内RTU监测报告数量:'+rtutotalCount+'次。'+'报告平均发生:'+rturesult+'条/台/天。'+'提示:控制柜状态切换频率良好;需要保持;离线记录中,报告数量:'+lxrtutotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxrturesult+'条/台/天。提示:RTU监测设备通信状态良好,需要保持;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率较低或产品使用培训不足,需要增加使用培训和完善管理制度。';
 
- //				}else if(Number(days9)<1){
 
- //					title24_p1.innerHTML='统计时段内RTU监测报告数量:'+rtutotalCount+'次。'+'报告平均发生:'+rturesult+'条/台/天。'+'提示:控制柜状态切换频率良好;需要保持;离线记录中,报告数量:'+lxrtutotalCount+'次。报告平均发生:'+ConfirmStore4[0].lxrturesult+'条/台/天。提示:RTU监测设备通信状态良好,需要保持;以上两类的处置情况看,报告确认间隔时长为'+days9+'天,提示:用户使用监测平台(含手机客户端)频率正常,继续保持。';
 
- //				}
 
- 			}
 
- 		}else{
 
- 			title24_p1.innerHTML='未安装此设备';
 
- 		}
 
- //		title24_p1.setAttribute('class','title14_label1_p1');
 
- 		title24_p1.style.fontSize='14px';
 
- 		title24_p1.style.paddingLeft='36px';
 
- 		title24_p1.style.paddingRight='36px';
 
- 		title24_p1.style.marginBottom='20px';
 
- 		title24_p1.style.marginTop='20px';
 
- 		title24_p1.style.lineHeight='150%';
 
- 		title24.appendChild(title24_p1);
 
- 		var title25 = document.createElement('h3');
 
- 		title25.style.textAlign='left';
 
- 		title25.style.fontSize='14px';
 
- 		title25.style.fontWeight='bold';
 
- 		title25.innerHTML='4 分析结论';
 
- 		woker_talk.appendChild(title25);
 
- 		var title26 = document.createElement('h4');
 
- 		title26.style.textAlign='left';
 
- 		title26.style.fontSize='14px';
 
- 		title26.style.fontWeight='bold';
 
- 		title26.innerHTML='4.1 存在问题或需要改进事项';
 
- 		woker_talk.appendChild(title26);
 
- 		var title27 = document.createElement('ol');
 
- //		title27.setAttribute('class','title27_label1');
 
- //		title27.style.textAlign='center';
 
- 		title27.style.border='1px solid #BEBEBE';
 
- 		title27.width='100%';
 
- 		title27.style.textAlign='left';
 
- 		title27.style.background='#AAAAAA';
 
- 		title27.style.minHeight='20px';
 
- 		title27.style.paddingLeft='36px';
 
- 		title27.style.marginBottom='20px';
 
- 	    woker_talk.appendChild(title27);
 
- 	    if(dwhjtotalCount>0){
 
- 		   if(Number(hjresult)>0.5){
 
- 	          var title27_p1 = document.createElement('li');
 
- 	          title27_p1.innerHTML='系统数据分析提示:火灾隐患极高或存在系统故障,建议尽早进行系统排查;';
 
- //	          title27_p1.setAttribute('class','title14_label1_p1');
 
- 	          title27_p1.style.fontSize='14px';
 
- 	          title27.appendChild(title27_p1);
 
- 		   }
 
- 		   if(Number(ConfirmStore4[0].lxhjresult)>0.5){
 
- 			   var title27_p3 = document.createElement('li');
 
- 		          title27_p3.innerHTML='系统数据分析提示:火灾监测设备通信情况不稳定,建议尽早进行系统排查;';
 
- 		          title27_p3.style.fontSize='14px';
 
- 		          title27.appendChild(title27_p3);
 
- 		   }
 
- 		}
 
- 	    if(dwsjtotalCount>0){
 
- 	 	   if(Number(sjresult)>1){
 
- 	           var title27_p2 = document.createElement('li');
 
- 	           title27_p2.innerHTML='系统数据分析提示:消防水系统隐患极高或存在系统故障,建议尽早进行系统排查;';
 
- 	           title27_p2.style.fontSize='14px';
 
- 	           title27.appendChild(title27_p2);
 
- 	 	   }
 
- 	 	   if(Number(ConfirmStore4[0].lxsjresult)>0.5){
 
- 	 		   var title27_p4 = document.createElement('li');
 
- 	 	          title27_p4.innerHTML='系统数据分析提示:消防水系统监测设备通信情况不稳定,建议尽早进行系统排查;';
 
- 	 	          title27_p4.style.fontSize='14px';
 
- 	 	          title27.appendChild(title27_p4);
 
- 	 	   }
 
- 	 	}
 
- 	    if(dwrtutotalCount>0){
 
- 	  	   if(Number(rturesult)>0.5){
 
- 	            var title27_p5 = document.createElement('li');
 
- 	            title27_p5.innerHTML='系统数据分析提示:RTU监测隐患极高或存在系统故障,建议尽早进行系统排查;';
 
- 	            title27_p5.style.fontSize='14px';
 
- 	            title27.appendChild(title27_p5);
 
- 	  	   }
 
- 	  	   if(Number(ConfirmStore4[0].lxrturesult)>0.5){
 
- 	  		   var title27_p6 = document.createElement('li');
 
- 	  	          title27_p6.innerHTML='系统数据分析提示:RTU监测监测设备通信情况不稳定,建议尽早进行系统排查;';
 
- 	  	          title27_p6.style.fontSize='14px';
 
- 	  	          title27.appendChild(title27_p6);
 
- 	  	   }
 
- 	  	}
 
- 	    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){
 
- 	    	var title27_li7 = document.createElement('li');
 
- 			title27_li7.innerHTML='暂无问题及需要改进事项。';
 
- 			title27_li7.style.fontSize='14px';
 
- 			title27.appendChild(title27_li7);
 
- 	    }
 
- 		var title28 = document.createElement('h4');
 
- 		title28.style.textAlign='left';
 
- 		title28.style.fontSize='14px';
 
- 		title28.style.fontWeight='bold';
 
- 		title28.innerHTML='4.2 其他事宜';
 
- 		woker_talk.appendChild(title28);
 
- 		var title29_ol1 = document.createElement('ol');
 
- 		title29_ol1.style.border='1px solid #BEBEBE';
 
- 		title29_ol1.width='100%';
 
- 		title29_ol1.style.textAlign='left';
 
- 		title29_ol1.style.background='#AAAAAA';
 
- 		title29_ol1.style.minHeight='20px';
 
- 		title29_ol1.style.paddingLeft='36px';
 
- 		title29_ol1.style.marginBottom='20px';
 
- 		woker_talk.appendChild(title29_ol1);
 
- 		if(dwhjtotalCount>0){
 
- 			if(Number(hjresult)<=0.5){
 
- 				var title29_li6 = document.createElement('li');
 
- 				title29_li6.innerHTML='目前数据反映:火灾监测运行状态较好,需要保持;';
 
- 				title29_li6.style.fontSize='14px';
 
- 				title29_ol1.appendChild(title29_li6);
 
- 			}
 
- 			if(Number(ConfirmStore4[0].lxhjresult)<=0.5){
 
- 				var title29_li1 = document.createElement('li');
 
- 				title29_li1.innerHTML='目前数据反映:火灾监测设备通信情况较好,需要保持;';
 
- 				title29_li1.style.fontSize='14px';
 
- 				title29_ol1.appendChild(title29_li1);
 
- 			}
 
- 		}
 
- 		if(dwsjtotalCount>0){
 
- 			if(Number(sjresult)<=1){
 
- 				var title29_li2 = document.createElement('li');
 
- 				title29_li2.innerHTML='目前数据反映:消防水系统监测运行状态较好,需要保持;';
 
- 				title29_li2.style.fontSize='14px';
 
- 				title29_ol1.appendChild(title29_li2);
 
- 			}
 
- 			if(Number(ConfirmStore4[0].lxsjresult)<=0.5){
 
- 				var title29_li3 = document.createElement('li');
 
- 				title29_li3.innerHTML='目前数据反映:消防水系统监测设备通信情况较好,需要保持;';
 
- 				title29_li3.style.fontSize='14px';
 
- 				title29_ol1.appendChild(title29_li3);
 
- 			}
 
- 		}
 
- 		if(dwrtutotalCount>0){
 
- 			if(Number(rturesult)<=0.5){
 
- 				var title29_li4 = document.createElement('li');
 
- 				title29_li4.innerHTML='目前数据反映:RTU监测运行状态较好,需要保持;';
 
- 				title29_li4.style.fontSize='14px';
 
- 				title29_ol1.appendChild(title29_li4);
 
- 			}
 
- 			if(Number(ConfirmStore4[0].lxrturesult)<=0.5){
 
- 				var title29_li5 = document.createElement('li');
 
- 				title29_li5.innerHTML='目前数据反映:RTU监测设备通信情况较好,需要保持。';
 
- 				title29_li5.style.fontSize='14px';
 
- 				title29_ol1.appendChild(title29_li5);
 
- 			}
 
- 		}
 
- 	    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){
 
- 	    	var title29_li7 = document.createElement('li');
 
- 			title29_li7.innerHTML='暂无其他事宜。';
 
- 			title29_li7.style.fontSize='14px';
 
- 			title29_ol1.appendChild(title29_li7);
 
- 	    }
 
- 	}
 
- 	var funDownload = function (content, filename) {
 
- 	    var eleLink = document.createElement('a');
 
- 	    eleLink.download = filename;
 
- 	    eleLink.style.display = 'none';
 
- 	    // 字符内容转变成blob地址
 
- 	    var blob = new Blob([content]);
 
- 	    eleLink.href = URL.createObjectURL(blob);
 
- 	    // 触发点击
 
- 	    document.body.appendChild(eleLink);
 
- 	    eleLink.click();
 
- 	    // 然后移除
 
- 	    document.body.removeChild(eleLink);
 
- 	}
 
- 	var highcharts = function () {
 
- 		var clhjbaifenbi = parseFloat(hjbaifenbi);
 
- 		$('#container').highcharts({ 
 
- 	        chart: {
 
- 	    		plotBackgroundColor: null,
 
- 	    		plotBorderWidth: null,
 
- 	    		plotShadow: false,
 
- 	    		type: 'pie'
 
- 	    	},
 
- 	    	credits: {  
 
- 	            enabled: false  
 
- 	        },
 
- 	        exporting: { enabled:false },
 
- 	    	title: {
 
- 	    		text: '火灾告警处理情况饼图'
 
- 	    	},
 
- 	    	tooltip: {
 
- 	    		pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'
 
- 	    	},
 
- 	    	plotOptions: {
 
- 	    		pie: {
 
- 	    			allowPointSelect: true,
 
- 	    			cursor: 'pointer',
 
- 	    			dataLabels: {
 
- 	    				enabled: true,
 
- 	    				format: '<b>{point.name}</b>: {point.percentage:.1f} %',
 
- 	    				style: {
 
- 	    					color: (Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black'
 
- 	    				}
 
- 	    			},
 
- 	    			showInLegend: true
 
- 	    		}
 
- 	    	},
 
- 	    	series: [{
 
- 	    		name: '百分比',
 
- 	    		colorByPoint: true,
 
- 	    		data: [{
 
- 	    			name: '处理率',
 
- 	    			y: clhjbaifenbi,
 
- 	    			sliced: true,
 
- 	    			selected: true
 
- 	    		}, {
 
- 	    			name: '未处理',
 
- 	    			y: 100-clhjbaifenbi
 
- 	    		}]
 
- 	    	}]
 
- 	    });
 
- 	}
 
- 	
 
- 	var highcharts1 = function () {
 
- 		var clsjbaifenbi = parseFloat(sjbaifenbi);
 
- 		$('#container1').highcharts({ 
 
- 	        chart: {
 
- 	    		plotBackgroundColor: null,
 
- 	    		plotBorderWidth: null,
 
- 	    		plotShadow: false,
 
- 	    		type: 'pie'
 
- 	    	},
 
- 	    	credits: {  
 
- 	            enabled: false  
 
- 	        },
 
- 	        exporting: { enabled:false },
 
- 	    	title: {
 
- 	    		text: '水系统告警处理情况饼图'
 
- 	    	},
 
- 	    	tooltip: {
 
- 	    		pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'
 
- 	    	},
 
- 	    	plotOptions: {
 
- 	    		pie: {
 
- 	    			allowPointSelect: true,
 
- 	    			cursor: 'pointer',
 
- 	    			dataLabels: {
 
- 	    				enabled: true,
 
- 	    				format: '<b>{point.name}</b>: {point.percentage:.1f} %',
 
- 	    				style: {
 
- 	    					color: (Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black'
 
- 	    				}
 
- 	    			},
 
- 	    			showInLegend: true
 
- 	    		}
 
- 	    	},
 
- 	    	series: [{
 
- 	    		name: '百分比',
 
- 	    		colorByPoint: true,
 
- 	    		data: [{
 
- 	    			name: '处理率',
 
- 	    			y: clsjbaifenbi,
 
- 	    			sliced: true,
 
- 	    			selected: true
 
- 	    		},{
 
- 	    			name: '未处理',
 
- 	    			y: 100-clsjbaifenbi
 
- 	    		}]
 
- 	    	}]
 
- 	    });
 
- 	}
 
- 	
 
- 	var highcharts2 = function () {
 
- 		var clrtubaifenbi = parseFloat(rtubaifenbi);
 
- 		$('#container2').highcharts({ 
 
- 	        chart: {
 
- 	    		plotBackgroundColor: null,
 
- 	    		plotBorderWidth: null,
 
- 	    		plotShadow: false,
 
- 	    		type: 'pie'
 
- 	    	},
 
- 	    	credits: {  
 
- 	            enabled: false  
 
- 	        },
 
- 	        exporting: { enabled:false },
 
- 	    	title: {
 
- 	    		text: 'RTU系统告警处理情况饼图'
 
- 	    	},
 
- 	    	tooltip: {
 
- 	    		pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'
 
- 	    	},
 
- 	    	plotOptions: {
 
- 	    		pie: {
 
- 	    			allowPointSelect: true,
 
- 	    			cursor: 'pointer',
 
- 	    			dataLabels: {
 
- 	    				enabled: true,
 
- 	    				format: '<b>{point.name}</b>: {point.percentage:.1f} %',
 
- 	    				style: {
 
- 	    					color: (Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black'
 
- 	    				}
 
- 	    			},
 
- 	    			showInLegend: true
 
- 	    		}
 
- 	    	},
 
- 	    	series: [{
 
- 	    		name: '百分比',
 
- 	    		colorByPoint: true,
 
- 	    		data: [{
 
- 	    			name: '处理率',
 
- 	    			y: clrtubaifenbi,
 
- 	    			sliced: true,
 
- 	    			selected: true
 
- 	    		},{
 
- 	    			name: '未处理',
 
- 	    			y: 100-clrtubaifenbi
 
- 	    		}]
 
- 	    	}]
 
- 	    });
 
- 	}
 
- 	
 
- 	var highcharts3 = function () {
 
- 		var hjresult1 = parseFloat(result1);
 
- 		var sjresult2 = parseFloat(result2);
 
- 		var rturesult3 = parseFloat(result3);
 
- 		$('#container3').highcharts({ 
 
- 	        chart: {
 
- 	    		plotBackgroundColor: null,
 
- 	    		plotBorderWidth: null,
 
- 	    		plotShadow: false,
 
- 	    		type: 'pie'
 
- 	    	},
 
- 	    	credits: {  
 
- 	            enabled: false  
 
- 	        },
 
- 	        exporting: { enabled:false },
 
- 	    	title: {
 
- 	    		text: '各类告警总数情况饼图'
 
- 	    	},
 
- 	    	tooltip: {
 
- 	    		pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'
 
- 	    	},
 
- 	    	plotOptions: {
 
- 	    		pie: {
 
- 	    			allowPointSelect: true,
 
- 	    			cursor: 'pointer',
 
- 	    			dataLabels: {
 
- 	    				enabled: true,
 
- 	    				format: '<b>{point.name}</b>: {point.percentage:.1f} %',
 
- 	    				style: {
 
- 	    					color: (Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black'
 
- 	    				}
 
- 	    			},
 
- 	    			showInLegend: true
 
- 	    		}
 
- 	    	},
 
- 	    	series: [{
 
- 	    		name: '百分比',
 
- 	    		colorByPoint: true,
 
- 	    		data: [{
 
- 	    			name: '火系统告警',
 
- 	    			y: hjresult1,
 
- 	    			sliced: true,
 
- 	    			selected: true
 
- 	    		},{
 
- 	    			name: '水系统告警',
 
- 	    			y: sjresult2
 
- 	    		},{
 
- 	    			name: 'RTU系统告警',
 
- 	    			y: rturesult3
 
- 	    		}]
 
- 	    	}]
 
- 	    });
 
- 	}
 
- 	
 
- //	var daochu = function(){
 
- //		var woker_talk = document.getElementById('woker_talk');
 
- //	    var eleTextarea = document.querySelector('#woker_talk');
 
- //	    var aa = '<!DOCTYPE html>'+
 
- //	    '<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">'+
 
- //	    '<head>'+
 
- //	    '<!--[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]-->'+
 
- //	    '<meta charset="UTF-8">'+
 
- //	    '<meta name="viewport" content="width=device-width, initial-scale=1.0">'+
 
- //	    '<meta http-equiv="X-UA-Compatible" content="ie=edge">'+
 
- //	    '<title>Document</title>'+
 
- //	    '</head>'+
 
- //	    '<body>'+
 
- //	    eleTextarea.outerHTML+'</body></html>'
 
- //	    funDownload(aa, 'project.html'); 
 
- //	}
 
- 	var daochu = function(){
 
- 		var woker_talk = document.getElementById('woker_talk');
 
- 		var eleTextarea = document.querySelector('#woker_talk');
 
- 		html2canvas(woker_talk, {
 
- 			  height: $("#woker_talk").outerHeight(),
 
- 			  onrendered:function(canvas) {
 
- 			      var contentWidth = canvas.width;
 
- 			      var contentHeight = canvas.height;
 
- 			      //一页pdf显示html页面生成的canvas高度;
 
- 			      var pageHeight = contentWidth / 592.28 * 841.89;
 
- 			      //未生成pdf的html页面高度
 
- 			      var leftHeight = contentHeight;
 
- 			      //页面偏移
 
- 			      var position = 0;
 
- 			      //a4纸的尺寸[595.28,841.89],html页面生成的canvas在pdf中图片的宽高
 
- 			      var imgWidth = 555.28;
 
- 			      var imgHeight = 555.28/contentWidth * contentHeight;
 
- 			      var pageData = canvas.toDataURL('image/jpeg', 1.0);
 
- 			      var pdf = new jsPDF('', 'pt', 'a4');
 
- 			      //有两个高度需要区分,一个是html页面的实际高度,和生成pdf的页面高度(841.89)
 
- 			      //当内容未超过pdf一页显示的范围,无需分页
 
- 			      if (leftHeight < pageHeight) {
 
- 				  pdf.addImage(pageData, 'JPEG', 20, 0, imgWidth, imgHeight );
 
- 			      } else {
 
- 				      while(leftHeight > 0) {
 
- 				          pdf.addImage(pageData, 'JPEG', 20, position, imgWidth, imgHeight)
 
- 				          leftHeight -= pageHeight;
 
- 				          position -= 841.89;
 
- 				          //避免添加空白页
 
- 				          if(leftHeight > 0) {
 
- 					        pdf.addPage();
 
- 				          }
 
- 				      }
 
- 			      }
 
- 			      pdf.save('content.pdf');
 
- 			  }
 
- 			})
 
- 			
 
- 	}
 
- 	
 
- 	var print_detail = function (){
 
- 		var div1_label1 = document.getElementById('woker_talk').innerHTML;
 
- 		var div2_label1 = document.getElementById('div2_label1').innerHTML;
 
- 		var hkey_key;
 
- 		var hkey_root = 'HKEY_CURRENT_USER';
 
- 		var hkey_path = '\\Software\\Micorsoft\\Internet Explorer\\PageSetup\\';
 
- 		var print_win = window.open('打印窗口','_blank');
 
- 		var div = document.createElement('div');
 
- 		div.setAttribute('width', '100%');
 
- 		div.setAttribute('height', '100%');
 
- 		var div_print = document.createElement('div');
 
- 		div_print.setAttribute('style', 'width:595px;height:842px;padding:20px;margin:0px auto 0px auto');
 
- 		div_print.innerHTML=div1_label1;
 
- 		div.appendChild(div_print);
 
- //		var div_print1 = document.createElement('div');
 
- //		div_print1.setAttribute('style', 'width:595px;height:842px;padding:20px;margin:0px auto 0px auto');
 
- //		div_print1.innerHTML=div2_label1;
 
- //		div.appendChild(div_print1);
 
- 		
 
- 		print_win.document.write(div.innerHTML);
 
- 		print_win.document.close();
 
- 		try{
 
- 			var RegWsh = new ActiveXObject('WScript.Shell');
 
- 			hkey_key='header';
 
- 			RegWsh.RegWrite(hkey_root+hkey_path+hkey_key,'');
 
- 			hkey_key='footer';
 
- 			RegWsh.RegWrite(hkey_root+hkey_path+hkey_key,'');
 
- 		}catch(e){}
 
- 		print_win.print();
 
- 		print_win.close();
 
- 	}
 
- 	
 
- 	var show_detail_data = function(start_data,end_data,build_code,project_date){
 
- 		var start_data = start_data;
 
- 		var end_data = end_data;
 
- 		var build_code = build_code;
 
- 		var project_date = project_date;
 
- 		Ext.create('Ext.window.Window', {
 
- 			id:'project_data_win',
 
- 		    title: '<div id="detail_win_title">电气火灾隐患分析</div>',
 
- 		    height: 841,
 
- 		    width: 650,
 
- 		    maximizable: true,
 
- 		    layout: 'fit',
 
- 		    modal:true,
 
- 		    buttons:[
 
- 		    	{
 
- 		    		text:'导出',
 
- 		    		handler : function () {
 
- 		    			print_detail();
 
- 		    		 }
 
- 		    	},{
 
- 		    		text:'关闭',
 
- 		    		 handler : function() {
 
- 		    			 Ext.getCmp('project_data_win').destroy();
 
- 		    			 location.href=baseUrl+'view/index.jsp?&theme='+theme+'&company_code='+build_code;
 
- 		    		 }
 
- 		    	}
 
- 		    ],
 
- 		    closeAction:'destroy',
 
- 		    html:'<div style="overflow-y:auto;height:800px;width:640px;"><div id="woker_talk"></div></div>'
 
- 		}).show();
 
- 		var query = new Object();
 
- 		query.V_LOGINNAME = $("#V_LOGINNAME").val();
 
- 		query.V_PASSWORD = $("#V_PASSWORD").val();
 
- 		query.start_data = start_data;
 
- 		query.end_data = end_data;
 
- 		query.build_code = build_code;
 
- 		Ext.MessageBox.wait('Loading', '生成中…');
 
- 		$.ajax({
 
- 	        type:'POST',
 
- 	        url: baseUrl+"iot/company/view/getProjectList",
 
- 	        data: {
 
- 	        	queryJson : Ext.JSON.encode(query)
 
- 	    	 },
 
- 	        success: function(result){
 
- 	            var json = eval('(' + result + ')');
 
- 	            if(json.action=='getVProjectNameList'){
 
- 	                ConfirmStore = json.RESULT;
 
- 	                ConfirmStore1 = json.RESULT1;
 
- 	                ConfirmStore2 = json.RESULT2;
 
- 	                ConfirmStore4 = json.RESULT4;
 
- 	                hjtotalCount = json.hjtotalCount;
 
- 	                clhjtotalCount = json.clhjtotalCount;
 
- 	                lxhjtotalCount = json.lxhjtotalCount;
 
- 	                cllxhjtotalCount = json.cllxhjtotalCount;
 
- 	                eftotalCount = json.eftotalCount;
 
- 	                cleftotalCount = json.cleftotalCount;
 
- 	                lxeftotalCount = json.lxeftotalCount;
 
- 	                cllxeftotalCount = json.cllxeftotalCount;
 
- 	                sjtotalCount = json.sjtotalCount;
 
- 	                clsjtotalCount = json.clsjtotalCount;
 
- 	                lxsjtotalCount = json.lxsjtotalCount;
 
- 	                cllxsjtotalCount = json.cllxsjtotalCount;
 
- 	                rtutotalCount = json.rtutotalCount;
 
- 	                clrtutotalCount = json.clrtutotalCount;
 
- 	                lxrtutotalCount = json.lxrtutotalCount;
 
- 	                cllxrtutotalCount = json.cllxrtutotalCount;
 
- 	                hjbaifenbi = json.hjbaifenbi;
 
- 	                lxhjbaifenbi = json.lxhjbaifenbi;
 
- 	                efbaifenbi = json.efbaifenbi;
 
- 	                lxefbaifenbi = json.lxefbaifenbi;
 
- 	                sjbaifenbi = json.sjbaifenbi;
 
- 	                lxsjbaifenbi = json.lxsjbaifenbi;
 
- 	                rtubaifenbi = json.rtubaifenbi;
 
- 	                lxrtubaifenbi = json.lxrtubaifenbi;
 
- 	                dwhjtotalCount = json.dwhjtotalCount;
 
- 	                dwsjtotalCount = json.dwsjtotalCount;
 
- 	                dwrtutotalCount = json.dwrtutotalCount;
 
- 	                days = json.days;
 
- 	                hjresult = json.hjresult;
 
- 	                sjresult = json.sjresult;
 
- 	                rturesult = json.rturesult;
 
- 	                device_num1=json.device_num1;
 
- 	                device_num2=json.device_num2;
 
- 	                clhjbaifenbi = json.clhjbaifenbi;
 
- 	                result1 = json.result1;
 
- 	                result2 = json.result2;
 
- 	                result3 = json.result3;
 
- 	                days3 = json.days3;
 
- 	                days6 = json.days6;
 
- 	                days9 = json.days9;
 
- 	                Ext.MessageBox.hide();
 
- 	                draw_confirm(query.start_data,query.end_data,project_date);
 
- 	                highcharts();
 
- 	                highcharts1();
 
- 	                highcharts2();
 
- 	                highcharts3();
 
- 	            }
 
- 	        } 
 
- 	    });
 
- 	}
 
- 	Ext.define('CompanyComboStore1',{
 
- 		extend:'Ext.data.Model',
 
- 		fields: [
 
- 			{name:'owner_name',  type:'string'},
 
- 			{name:'owner_id',type:'string'}
 
- 		]
 
- 	});
 
- 	CompanyStory = Ext.create('Ext.data.Store',{
 
- 		model: 'CompanyComboStore1',
 
- 	    proxy: {
 
- 	        type: 'ajax',
 
- 	        actionMethods: {
 
-                 create : 'POST',
 
-                 read   : 'POST', // by default GET
 
-                 update : 'POST',
 
-                 destroy: 'POST'
 
- 	        },
 
- 	        url: baseUrl+'iot/company/view/getNameList',
 
- 	        reader: {
 
- 	            type: 'json',
 
- 	            root: 'RESULT',
 
- 	            totalProperty: 'totalCount'
 
- 	        },
 
- 	        extraParams:{
 
- 	        	queryJson:Ext.JSON.encode(queryJson)
 
- 	        }
 
- 	    }
 
- 	});
 
- 	
 
- 	FilterWin = Ext.create('Ext.form.Panel', {
 
- 		id: 'PatrolPlanFilterForm',
 
- 		labelWidth: 55,
 
- 		defaultType: 'textfield',
 
- 		bodyPadding: 15,
 
- 		items: [{
 
- 			xtype:'datefield',
 
- 	        fieldLabel:"开始日期",
 
- 	        minValue:'07/07/2017',
 
- 	        minText:"当前日期选择应大于2017-07-07",
 
- 	        format:"Y-m-d",
 
- 	        value:Ext.util.Format.date(Ext.Date.add(new Date(),Ext.Date.MONTH,-1),"Y-m-01"),
 
- 	        columnWidth:0.5,
 
- 	        id: 'start_date',
 
- 	        name:"start_date",
 
- 	        editable:false,//只读约束
 
- 	        allowBlank:false,
 
- 	        blankText:"不能为空",
 
- 	        anchor:'95%'
 
- 		},{
 
- 	    	xtype:'datefield',
 
- 	        fieldLabel:"结束日期",
 
- 	        minValue:'07/07/2017',
 
- 	        minText:"当前日期选择应大于2017-07-07",
 
- 	        format:"Y-m-d",
 
- 	        value:Ext.util.Format.date(new Date(new Date(new Date().getUTCFullYear(), new Date().getMonth(), 1) - 86400000), "Y-m-d"),
 
- 	        columnWidth:0.5,
 
- 	        id: 'end_date',
 
- 	        name:"end_date",
 
- 	        editable:false,//只读约束
 
- 	        allowBlank:false,
 
- 	        blankText:"不能为空",
 
- 	        anchor:'95%'
 
- 		},
 
- 		{
 
- 			xtype:'combo',
 
- 			fieldLabel:'建筑物名称',
 
- 			id: 'company_code',
 
- 			name:'company_code',
 
- 			displayField : 'owner_name',  
 
- 	        valueField : 'owner_id',
 
- 	        allowBlank:false,
 
- 	        blankText:"不能为空",
 
- 	        editable : false,
 
- 	        anchor:'80%',
 
- 	        store:CompanyStory
 
- 		},
 
- 		{
 
- 			id:'ff_queryJson',
 
- 			name:'queryJson',
 
- 			hidden:true
 
- 		}],
 
- 		buttons: [{
 
- 	        text: '下一步',
 
- 	        iconCls:'ok_btn',
 
- 		    handler: function() {
 
- 		        var form = this.up('form').getForm();
 
- 		        if (form.isValid()) {       	
 
- 	   	            var start_date=Ext.util.Format.date(Ext.getCmp('start_date').getValue(), 'Y-m-d');
 
- 	   	            var end_date=Ext.util.Format.date(Ext.getCmp('end_date').getValue(), 'Y-m-d');
 
- 	   	            var project_date=Ext.util.Format.date(Ext.getCmp('start_date').getValue(), 'Y-m');
 
- 	   	            var build_code = Ext.getCmp('company_code').getValue();
 
- 	   	          //   show_detail_data(start_date,end_date,build_code,project_date);
 
- 		        	// this.up('window').hide();
 
-                     alert("数据量有限,暂无法分析");
 
-                     location.href=baseUrl+'view/index.jsp?&theme='+theme+'&company_code='+Ext.getCmp('company_code').getValue();
 
- 		        }
 
- 		    }
 
- 		},{
 
- 			text: '关闭',
 
- 			iconCls: 'cancel_btn',
 
- 			handler: function() {
 
- 				this.up('window').hide();
 
- 				location.href=baseUrl+'view/index.jsp?&theme='+theme+'&company_code='+Ext.getCmp('company_code').getValue();
 
- 			}
 
- 		}]
 
- 	});
 
- 	var filterwin = function() {
 
- 		Ext.create('Ext.window.Window',{
 
- 			title: '电气火灾隐患分析',
 
- 			height: 300,
 
- 			width: 350,
 
- 			layout: 'fit',
 
- 			items: FilterWin,
 
- 			closeAction: 'hide'
 
- 		}).show();
 
- 	}();
 
- 	
 
- });
 
 
  |