| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400 | 
							- /**
 
-  * 
 
-  */
 
- var baseUrl = '';
 
- var theme = '';
 
- var viewAlarmType,pieAlarmType,statusType;
 
- var filterwin;
 
- var FilterWin;
 
- var mouseon;
 
- var mouseoff;
 
- var menu_click;
 
- 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 maxHeight = 10000;
 
- 	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_talkxj');
 
- 		var div1 = document.createElement('div');
 
- 		div1.style.width=580;
 
- 		div1.style.height=600;
 
- 		div1.setAttribute('id','patrolAnalysis_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='数据统计分析';
 
- 		div1.appendChild(title);
 
- 		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 title3 = document.createElement('div');
 
- 		title3.style.textAlign='left';
 
- 		title3.style.fontSize='14px';
 
- 		title3.style.marginTop='10px';
 
- 		title3.style.marginBottom='10px';
 
- 		title3.style.textIndent='2em';
 
- 		title3.style.fontWeight='bold';
 
- 		title3.innerHTML='人员:'+xjrysl+'个';
 
- 		div1.appendChild(title3);
 
- 		var title32 = document.createElement('div');
 
- 		title32.style.textAlign='left';
 
- 		title32.style.fontSize='14px';
 
- 		title32.style.marginBottom='10px';
 
- 		title32.style.textIndent='2em';
 
- 		title32.style.fontWeight='bold';
 
- 		title32.innerHTML='班组:'+xjbz+'个';
 
- 		div1.appendChild(title32);
 
- 		var title34 = document.createElement('div');
 
- 		title34.style.textAlign='left';
 
- 		title34.style.fontSize='14px';
 
- 		title34.style.marginBottom='10px';
 
- 		title34.style.textIndent='2em';
 
- 		title34.style.fontWeight='bold';
 
- 		title34.innerHTML='负责人:'+zrrnum+'个';
 
- 		div1.appendChild(title34);
 
- 		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 title9 = document.createElement('div');
 
- 		title9.style.textAlign='left';
 
- 		title9.style.fontSize='14px';
 
- 		title9.style.marginTop='10px';
 
- 		title9.style.marginBottom='10px';
 
- 		title9.style.textIndent='2em';
 
- 		title9.style.fontWeight='bold';
 
- 		title9.innerHTML='任务总数:'+xjrwnum+'个';
 
- 		div1.appendChild(title9);
 
- 		var title91 = document.createElement('div');
 
- 		title91.style.textAlign='left';
 
- 		title91.style.fontSize='14px';
 
- 		title91.style.marginBottom='10px';
 
- 		title91.style.textIndent='2em';
 
- 		title91.style.fontWeight='bold';
 
- 		title91.innerHTML='点位:'+xjdwnum+'个';
 
- 		div1.appendChild(title91);
 
- 		var title32 = document.createElement('div');
 
- 		title32.style.textAlign='left';
 
- 		title32.style.fontSize='14px';
 
- 		title32.style.marginBottom='10px';
 
- 		title32.style.textIndent='2em';
 
- 		title32.style.fontWeight='bold';
 
- 		title32.innerHTML='点位应扫码次数:'+xjysmcsnum+'个';
 
- 		div1.appendChild(title32);
 
- 		var title34 = document.createElement('div');
 
- 		title34.style.textAlign='left';
 
- 		title34.style.fontSize='14px';
 
- 		title34.style.marginBottom='10px';
 
- 		title34.style.textIndent='2em';
 
- 		title34.style.fontWeight='bold';
 
- 		title34.innerHTML='报修次数:'+xjbxcsnum+'个';
 
- 		div1.appendChild(title34);
 
- 		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 title21_highcharts = document.createElement('div');
 
- 		title21_highcharts.style.marginTop='20px';
 
- 		title21_highcharts.style.marginBottom='46px';
 
- 		title21_highcharts.setAttribute('id','container1');
 
- 		title21_highcharts.style.textAlign='center';
 
- 		div1.appendChild(title21_highcharts);
 
- 		var title11 = document.createElement('h4');
 
- 		title11.style.textAlign='left';
 
- 		title11.style.fontSize='14px';
 
- 		title11.style.fontWeight='bold';
 
- 		title11.innerHTML='1.4任务回单分析';
 
- 		div1.appendChild(title11);
 
- 		var title11_highcharts = document.createElement('div');
 
- 		title11_highcharts.style.marginTop='20px';
 
- 		title11_highcharts.style.marginBottom='46px';
 
- 		title11_highcharts.setAttribute('id','container2');
 
- 		title11_highcharts.style.textAlign='center';
 
- 		div1.appendChild(title11_highcharts);
 
- 		var div2 = document.createElement('div');
 
- 		div2.style.width=580;
 
- 		div2.style.height=600;
 
- 		div2.setAttribute('id','patrolAnalysis_div2_label1');
 
- 		woker_talk.appendChild(div2);
 
- 		var patrolh41 = document.createElement('h4');
 
- 		patrolh41.style.textAlign='left';
 
- 		patrolh41.style.fontSize='14px';
 
- 		patrolh41.style.fontWeight='bold';
 
- 		patrolh41.innerHTML='1.5出勤率分析';
 
- 		div2.appendChild(patrolh41);
 
- 		var patrolh41_highcharts = document.createElement('div');
 
- 		patrolh41_highcharts.style.marginTop='20px';
 
- 		patrolh41_highcharts.style.marginBottom='46px';
 
- 		patrolh41_highcharts.setAttribute('id','container3');
 
- 		patrolh41_highcharts.style.textAlign='center';
 
- 		div2.appendChild(patrolh41_highcharts);
 
- 		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';
 
- 		div2.appendChild(sta2);
 
- 		var tr14 = document.createElement('tr');
 
- 		sta2.appendChild(tr14);
 
- 		var th5 = document.createElement('th');
 
- 		th5.width='20%';
 
- 		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='20%';
 
- 		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='35%';
 
- 		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);
 
- 		if(ConfirmStore15.length>0){
 
- 			  if(ConfirmStore15.length==1){
 
- 				var tr13 = document.createElement('tr');
 
- 				sta2.appendChild(tr13);
 
- 				var td_details_num = document.createElement('td');
 
- 				td_details_num.width='20%';
 
- 				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=ConfirmStore15[0].bz_name;
 
- 				td_details_num.style.fontSize='14px';
 
- 				tr13.appendChild(td_details_num);
 
- 				var td_details_name= document.createElement('td');
 
- 				td_details_name.width='20%';
 
- 				td_details_name.style.textAlign='center';
 
- 				td_details_name.innerHTML= ConfirmStore15[0].rzr_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=ConfirmStore15[0].ysm_num;
 
- 				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='35%';
 
- 				td_details_device_num.style.textAlign='center';
 
- 				td_details_device_num.innerHTML=ConfirmStore15[0].ysm_num1;
 
- 				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);
 
- 			}else{
 
- 			  for(var i=0;i<ConfirmStore15.length;i++){
 
- 				var tr13 = document.createElement('tr');
 
- 				sta2.appendChild(tr13);
 
- 				var td_details_num = document.createElement('td');
 
- 				td_details_num.width='20%';
 
- 				td_details_num.style.textAlign='center';
 
- 				td_details_num.innerHTML=ConfirmStore15[i].bz_name;
 
- 				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='20%';
 
- 				td_details_name.style.textAlign='center';
 
- 				td_details_name.innerHTML= ConfirmStore15[i].rzr_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=ConfirmStore15[i].ysm_num;
 
- 				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='35%';
 
- 				td_details_device_num.style.textAlign='center';
 
- 				td_details_device_num.innerHTML=ConfirmStore15[i].ysm_num1;
 
- 				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 tr_banzu_saoma_num1 = document.createElement('tr');
 
- 				sta2.appendChild(tr_banzu_saoma_num1);
 
- 			  var td_banzu_saoma_num1 = document.createElement('td');
 
- //			    td_details_device_num1.width='30%';
 
- 			    td_banzu_saoma_num1.style.textAlign='center';
 
- 			    td_banzu_saoma_num1.colSpan='2';
 
- 			    td_banzu_saoma_num1.innerHTML='合计';
 
- 			    td_banzu_saoma_num1.style.fontSize='14px';
 
- 			    td_banzu_saoma_num1.style.borderLeft ='1px solid #BEBEBE';
 
- 			    td_banzu_saoma_num1.style.borderTop ='1px solid #BEBEBE';
 
- 			    tr_banzu_saoma_num1.appendChild(td_banzu_saoma_num1);
 
- 			  var td_banzu_saoma_num2 = document.createElement('td');
 
- 			    td_banzu_saoma_num2.width='25%';
 
- 			    td_banzu_saoma_num2.style.textAlign='center';
 
- 			    td_banzu_saoma_num2.innerHTML=heji1;
 
- 			    td_banzu_saoma_num2.style.fontSize='14px';
 
- 			    td_banzu_saoma_num2.style.borderLeft ='1px solid #BEBEBE';
 
- 			    td_banzu_saoma_num2.style.borderTop ='1px solid #BEBEBE';
 
- 			    tr_banzu_saoma_num1.appendChild(td_banzu_saoma_num2);
 
- 			  var td_banzu_saoma_num3 = document.createElement('td');
 
- 			    td_banzu_saoma_num3.width='35%';
 
- 			    td_banzu_saoma_num3.style.textAlign='center';
 
- 			    td_banzu_saoma_num3.innerHTML=heji2;
 
- 			    td_banzu_saoma_num3.style.fontSize='14px';
 
- 			    td_banzu_saoma_num3.style.borderLeft ='1px solid #BEBEBE';
 
- 			    td_banzu_saoma_num3.style.borderTop ='1px solid #BEBEBE';
 
- 			    tr_banzu_saoma_num1.appendChild(td_banzu_saoma_num3);
 
- 			  }
 
- 			}
 
- 		var patrolh42 = document.createElement('h4');
 
- 		patrolh42.style.textAlign='left';
 
- 		patrolh42.style.fontSize='14px';
 
- 		patrolh42.style.fontWeight='bold';
 
- 		patrolh42.innerHTML='1.6点位扫码完成度';
 
- 		div2.appendChild(patrolh42);
 
- 		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 tr15 = document.createElement('tr');
 
- 		sta3.appendChild(tr15);
 
- 		var thlast = document.createElement('th');
 
- 		thlast.width='20%';
 
- 		thlast.style.textAlign='center';
 
- 		thlast.innerHTML='计划名称';
 
- 		thlast.style.fontSize='14px';
 
- 		thlast.style.borderLeft ='1px solid #BEBEBE';
 
- 		thlast.style.borderTop ='1px solid #BEBEBE';
 
- 		tr15.appendChild(thlast);
 
- 		var th9 = document.createElement('th');
 
- 		th9.width='20%';
 
- 		th9.style.textAlign='center';
 
- 		th9.innerHTML='点位名称';
 
- 		th9.style.fontSize='14px';
 
- 		th9.style.borderLeft ='1px solid #BEBEBE';
 
- 		th9.style.borderTop ='1px solid #BEBEBE';
 
- 		tr15.appendChild(th9);
 
- 		var th10 = document.createElement('th');
 
- 		th10.width='20%';
 
- 		th10.style.textAlign='center';
 
- 		th10.innerHTML='负责班组';
 
- 		th10.style.fontSize='14px';
 
- 		th10.style.borderLeft ='1px solid #BEBEBE';
 
- 		th10.style.borderTop ='1px solid #BEBEBE';
 
- 		tr15.appendChild(th10);
 
- 		var th11 = document.createElement('th');
 
- 		th11.width='10%';
 
- 		th11.style.textAlign='center';
 
- 		th11.innerHTML='负责人';
 
- 		th11.style.fontSize='14px';
 
- 		th11.style.borderLeft ='1px solid #BEBEBE';
 
- 		th11.style.borderTop ='1px solid #BEBEBE';
 
- 		tr15.appendChild(th11);
 
- 		var th12 = document.createElement('th');
 
- 		th12.width='10%';
 
- 		th12.style.textAlign='center';
 
- 		th12.innerHTML='应扫码次数';
 
- 		th12.style.fontSize='14px';
 
- 		th12.style.borderLeft ='1px solid #BEBEBE';
 
- 		th12.style.borderTop ='1px solid #BEBEBE';
 
- 		tr15.appendChild(th12);
 
- 		var th13 = document.createElement('th');
 
- 		th13.width='10%';
 
- 		th13.style.textAlign='center';
 
- 		th13.innerHTML='已扫码次数';
 
- 		th13.style.fontSize='14px';
 
- 		th13.style.borderLeft ='1px solid #BEBEBE';
 
- 		th13.style.borderTop ='1px solid #BEBEBE';
 
- 		tr15.appendChild(th13);
 
- 		var th14 = document.createElement('th');
 
- 		th14.width='10%';
 
- 		th14.style.textAlign='center';
 
- 		th14.innerHTML='完成度';
 
- 		th14.style.fontSize='14px';
 
- 		th14.style.borderLeft ='1px solid #BEBEBE';
 
- 		th14.style.borderTop ='1px solid #BEBEBE';
 
- 		tr15.appendChild(th14);
 
- 		if(ConfirmStore16.length>0){
 
- 			  if(ConfirmStore16.length==1){
 
- 				var tr16 = document.createElement('tr');
 
- 				sta3.appendChild(tr16);
 
- 				var td_details_numlast = document.createElement('td');
 
- 				td_details_numlast.width='20%';
 
- 				td_details_numlast.style.textAlign='center';
 
- 				td_details_numlast.style.borderLeft ='1px solid #BEBEBE';
 
- 				td_details_numlast.style.borderTop ='1px solid #BEBEBE';
 
- 				td_details_numlast.innerHTML=ConfirmStore16[0].plan_name;
 
- 				td_details_numlast.style.fontSize='14px';
 
- 				tr16.appendChild(td_details_numlast);
 
- 				var td_details_num = document.createElement('td');
 
- 				td_details_num.width='20%';
 
- 				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=ConfirmStore16[0].dianwei_name;
 
- 				td_details_num.style.fontSize='14px';
 
- 				tr16.appendChild(td_details_num);
 
- 				var td_details_name= document.createElement('td');
 
- 				td_details_name.width='20%';
 
- 				td_details_name.style.textAlign='center';
 
- 				td_details_name.innerHTML= ConfirmStore16[0].banzu_name;
 
- 				td_details_name.style.borderLeft ='1px solid #BEBEBE';
 
- 				td_details_name.style.borderTop ='1px solid #BEBEBE';
 
- 				td_details_name.style.fontSize='14px';
 
- 				tr16.appendChild(td_details_name);
 
- 				var td_person= document.createElement('td');
 
- 				td_person.width='10%';
 
- 				td_person.style.textAlign='center';
 
- 				td_person.innerHTML= ConfirmStore16[0].renzeren_name;
 
- 				td_person.style.borderLeft ='1px solid #BEBEBE';
 
- 				td_person.style.borderTop ='1px solid #BEBEBE';
 
- 				td_person.style.fontSize='14px';
 
- 				tr16.appendChild(td_person);
 
- 				var td_details_specifications = document.createElement('td');
 
- 				td_details_specifications.width='10%';
 
- 				td_details_specifications.style.textAlign='center';
 
- 				td_details_specifications.innerHTML=ConfirmStore16[0].ywc_num1;
 
- 				td_details_specifications.style.fontSize='14px';
 
- 				td_details_specifications.style.borderLeft ='1px solid #BEBEBE';
 
- 				td_details_specifications.style.borderTop ='1px solid #BEBEBE';
 
- 				tr16.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=ConfirmStore16[0].ywc_num2;
 
- 				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';
 
- 				tr16.appendChild(td_details_device_num);
 
- 				var td_wanchengdu= document.createElement('td');
 
- 				td_wanchengdu.width='10%';
 
- 				td_wanchengdu.style.textAlign='center';
 
- 				td_wanchengdu.innerHTML= ConfirmStore16[0].com_du+'%';
 
- 				td_wanchengdu.style.borderLeft ='1px solid #BEBEBE';
 
- 				td_wanchengdu.style.borderTop ='1px solid #BEBEBE';
 
- 				td_wanchengdu.style.fontSize='14px';
 
- 				tr16.appendChild(td_wanchengdu);
 
- 			}else{
 
- 			  for(var i=0;i<ConfirmStore16.length;i++){
 
- 				  var tr16 = document.createElement('tr');
 
- 					sta3.appendChild(tr16);
 
- 					var td_details_numlast = document.createElement('td');
 
- 					td_details_numlast.width='20%';
 
- 					td_details_numlast.style.textAlign='center';
 
- 					td_details_numlast.style.borderLeft ='1px solid #BEBEBE';
 
- 					td_details_numlast.style.borderTop ='1px solid #BEBEBE';
 
- 					td_details_numlast.innerHTML=ConfirmStore16[i].plan_name;
 
- 					td_details_numlast.style.fontSize='14px';
 
- 					tr16.appendChild(td_details_numlast);
 
- 					var td_details_num = document.createElement('td');
 
- 					td_details_num.width='20%';
 
- 					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=ConfirmStore16[i].dianwei_name;
 
- 					td_details_num.style.fontSize='14px';
 
- 					tr16.appendChild(td_details_num);
 
- 					var td_details_name= document.createElement('td');
 
- 					td_details_name.width='20%';
 
- 					td_details_name.style.textAlign='center';
 
- 					td_details_name.innerHTML= ConfirmStore16[i].banzu_name;
 
- 					td_details_name.style.borderLeft ='1px solid #BEBEBE';
 
- 					td_details_name.style.borderTop ='1px solid #BEBEBE';
 
- 					td_details_name.style.fontSize='14px';
 
- 					tr16.appendChild(td_details_name);
 
- 					var td_person= document.createElement('td');
 
- 					td_person.width='10%';
 
- 					td_person.style.textAlign='center';
 
- 					td_person.innerHTML= ConfirmStore16[i].renzeren_name;
 
- 					td_person.style.borderLeft ='1px solid #BEBEBE';
 
- 					td_person.style.borderTop ='1px solid #BEBEBE';
 
- 					td_person.style.fontSize='14px';
 
- 					tr16.appendChild(td_person);
 
- 					var td_details_specifications = document.createElement('td');
 
- 					td_details_specifications.width='10%';
 
- 					td_details_specifications.style.textAlign='center';
 
- 					td_details_specifications.innerHTML=ConfirmStore16[i].ywc_num1;
 
- 					td_details_specifications.style.fontSize='14px';
 
- 					td_details_specifications.style.borderLeft ='1px solid #BEBEBE';
 
- 					td_details_specifications.style.borderTop ='1px solid #BEBEBE';
 
- 					tr16.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=ConfirmStore16[i].ywc_num2;
 
- 					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';
 
- 					tr16.appendChild(td_details_device_num);
 
- 					var td_wanchengdu= document.createElement('td');
 
- 					td_wanchengdu.width='10%';
 
- 					td_wanchengdu.style.textAlign='center';
 
- 					td_wanchengdu.innerHTML= ConfirmStore16[i].com_du+'%';
 
- 					td_wanchengdu.style.borderLeft ='1px solid #BEBEBE';
 
- 					td_wanchengdu.style.borderTop ='1px solid #BEBEBE';
 
- 					td_wanchengdu.style.fontSize='14px';
 
- 					tr16.appendChild(td_wanchengdu);
 
- 			   }
 
- 			  var tr_dianwei_wanchengdu_num1 = document.createElement('tr');
 
- 				sta3.appendChild(tr_dianwei_wanchengdu_num1);
 
- 			  var td_dianwei_wanchengdu_num1 = document.createElement('td');
 
- //			    td_details_device_num1.width='30%';
 
- 			    td_dianwei_wanchengdu_num1.style.textAlign='center';
 
- 			    td_dianwei_wanchengdu_num1.colSpan='4';
 
- 			    td_dianwei_wanchengdu_num1.innerHTML='合计';
 
- 			    td_dianwei_wanchengdu_num1.style.fontSize='14px';
 
- 			    td_dianwei_wanchengdu_num1.style.borderLeft ='1px solid #BEBEBE';
 
- 			    td_dianwei_wanchengdu_num1.style.borderTop ='1px solid #BEBEBE';
 
- 			    tr_dianwei_wanchengdu_num1.appendChild(td_dianwei_wanchengdu_num1);
 
- 			  var td_dianwei_wanchengdu_num2 = document.createElement('td');
 
- 			    td_dianwei_wanchengdu_num2.width='10%';
 
- 			    td_dianwei_wanchengdu_num2.style.textAlign='center';
 
- 			    td_dianwei_wanchengdu_num2.innerHTML=heji3;
 
- 			    td_dianwei_wanchengdu_num2.style.fontSize='14px';
 
- 			    td_dianwei_wanchengdu_num2.style.borderLeft ='1px solid #BEBEBE';
 
- 			    td_dianwei_wanchengdu_num2.style.borderTop ='1px solid #BEBEBE';
 
- 			    tr_dianwei_wanchengdu_num1.appendChild(td_dianwei_wanchengdu_num2);
 
- 			  var td_dianwei_wanchengdu_num3 = document.createElement('td');
 
- 			    td_dianwei_wanchengdu_num3.width='10%';
 
- 			    td_dianwei_wanchengdu_num3.style.textAlign='center';
 
- 			    td_dianwei_wanchengdu_num3.innerHTML=heji4;
 
- 			    td_dianwei_wanchengdu_num3.style.fontSize='14px';
 
- 			    td_dianwei_wanchengdu_num3.style.borderLeft ='1px solid #BEBEBE';
 
- 			    td_dianwei_wanchengdu_num3.style.borderTop ='1px solid #BEBEBE';
 
- 			    tr_dianwei_wanchengdu_num1.appendChild(td_dianwei_wanchengdu_num3);
 
- 			  var td_dianwei_wanchengdu_num4 = document.createElement('td');
 
- 			    td_dianwei_wanchengdu_num4.width='10%';
 
- 			    td_dianwei_wanchengdu_num4.style.textAlign='center';
 
- 			    td_dianwei_wanchengdu_num4.innerHTML=baifenbiresult16+'%';
 
- 			    td_dianwei_wanchengdu_num4.style.fontSize='14px';
 
- 			    td_dianwei_wanchengdu_num4.style.borderLeft ='1px solid #BEBEBE';
 
- 			    td_dianwei_wanchengdu_num4.style.borderTop ='1px solid #BEBEBE';
 
- 			    tr_dianwei_wanchengdu_num1.appendChild(td_dianwei_wanchengdu_num4);
 
- 			  }
 
- 			}
 
- 		var patrolh43 = document.createElement('h4');
 
- 		patrolh43.style.textAlign='left';
 
- 		patrolh43.style.fontSize='14px';
 
- 		patrolh43.style.fontWeight='bold';
 
- 		patrolh43.innerHTML='1.7报修情况';
 
- 		div2.appendChild(patrolh43);
 
- 		var sta4 = document.createElement('table');
 
- 		sta4.style.marginTop='10px';
 
- 		sta4.width='100%';
 
- 		sta4.style.marginBottom='20px';
 
- 		sta4.style.borderRight ='1px solid #BEBEBE';
 
- 		sta4.style.borderBottom ='1px solid #BEBEBE';
 
- 		div2.appendChild(sta4);
 
- 		var tr17 = document.createElement('tr');
 
- 		sta4.appendChild(tr17);
 
- 		var th15 = document.createElement('th');
 
- 		th15.width='40%';
 
- 		th15.style.textAlign='center';
 
- 		th15.innerHTML='点位名称';
 
- 		th15.style.fontSize='14px';
 
- 		th15.style.borderLeft ='1px solid #BEBEBE';
 
- 		th15.style.borderTop ='1px solid #BEBEBE';
 
- 		tr17.appendChild(th15);
 
- 		var th16 = document.createElement('th');
 
- 		th16.width='20%';
 
- 		th16.style.textAlign='center';
 
- 		th16.innerHTML='扫码次数';
 
- 		th16.style.fontSize='14px';
 
- 		th16.style.borderLeft ='1px solid #BEBEBE';
 
- 		th16.style.borderTop ='1px solid #BEBEBE';
 
- 		tr17.appendChild(th16);
 
- 		var th17 = document.createElement('th');
 
- 		th17.width='20%';
 
- 		th17.style.textAlign='center';
 
- 		th17.innerHTML='报修次数';
 
- 		th17.style.fontSize='14px';
 
- 		th17.style.borderLeft ='1px solid #BEBEBE';
 
- 		th17.style.borderTop ='1px solid #BEBEBE';
 
- 		tr17.appendChild(th17);
 
- 		var th18 = document.createElement('th');
 
- 		th18.width='20%';
 
- 		th18.style.textAlign='center';
 
- 		th18.innerHTML='故障频率';
 
- 		th18.style.fontSize='14px';
 
- 		th18.style.borderLeft ='1px solid #BEBEBE';
 
- 		th18.style.borderTop ='1px solid #BEBEBE';
 
- 		tr17.appendChild(th18);
 
- 		if(ConfirmStore17.length>0){
 
- 			  if(ConfirmStore17.length==1){
 
- 				var tr18 = document.createElement('tr');
 
- 				sta4.appendChild(tr18);
 
- 				var td_dianwei_name2 = document.createElement('td');
 
- 				td_dianwei_name2.width='40%';
 
- 				td_dianwei_name2.style.textAlign='center';
 
- 				td_dianwei_name2.style.borderLeft ='1px solid #BEBEBE';
 
- 				td_dianwei_name2.style.borderTop ='1px solid #BEBEBE';
 
- 				td_dianwei_name2.innerHTML=ConfirmStore17[0].dianwei_name17;
 
- 				td_dianwei_name2.style.fontSize='14px';
 
- 				tr18.appendChild(td_dianwei_name2);
 
- 				var td_saoma_num3= document.createElement('td');
 
- 				td_saoma_num3.width='20%';
 
- 				td_saoma_num3.style.textAlign='center';
 
- 				td_saoma_num3.innerHTML= ConfirmStore17[0].saoma_num17;
 
- 				td_saoma_num3.style.borderLeft ='1px solid #BEBEBE';
 
- 				td_saoma_num3.style.borderTop ='1px solid #BEBEBE';
 
- 				td_saoma_num3.style.fontSize='14px';
 
- 				tr18.appendChild(td_saoma_num3);
 
- 				var td_baoxiucishu= document.createElement('td');
 
- 				td_baoxiucishu.width='20%';
 
- 				td_baoxiucishu.style.textAlign='center';
 
- 				td_baoxiucishu.innerHTML= ConfirmStore17[0].baoxiu_num17;
 
- 				td_baoxiucishu.style.borderLeft ='1px solid #BEBEBE';
 
- 				td_baoxiucishu.style.borderTop ='1px solid #BEBEBE';
 
- 				td_baoxiucishu.style.fontSize='14px';
 
- 				tr18.appendChild(td_baoxiucishu);
 
- 				var td_baoxiupinlv = document.createElement('td');
 
- 				td_baoxiupinlv.width='20%';
 
- 				td_baoxiupinlv.style.textAlign='center';
 
- 				td_baoxiupinlv.innerHTML=ConfirmStore17[0].baoxiu_baifenbi17+'%';
 
- 				td_baoxiupinlv.style.fontSize='14px';
 
- 				td_baoxiupinlv.style.borderLeft ='1px solid #BEBEBE';
 
- 				td_baoxiupinlv.style.borderTop ='1px solid #BEBEBE';
 
- 				tr18.appendChild(td_baoxiupinlv);
 
- 			}else{
 
- 			  for(var i=0;i<ConfirmStore17.length;i++){
 
- 				  var tr18 = document.createElement('tr');
 
- 					sta4.appendChild(tr18);
 
- 					var td_dianwei_name2 = document.createElement('td');
 
- 					td_dianwei_name2.width='40%';
 
- 					td_dianwei_name2.style.textAlign='center';
 
- 					td_dianwei_name2.style.borderLeft ='1px solid #BEBEBE';
 
- 					td_dianwei_name2.style.borderTop ='1px solid #BEBEBE';
 
- 					td_dianwei_name2.innerHTML=ConfirmStore17[i].dianwei_name17;
 
- 					td_dianwei_name2.style.fontSize='14px';
 
- 					tr18.appendChild(td_dianwei_name2);
 
- 					var td_saoma_num3= document.createElement('td');
 
- 					td_saoma_num3.width='20%';
 
- 					td_saoma_num3.style.textAlign='center';
 
- 					td_saoma_num3.innerHTML= ConfirmStore17[i].saoma_num17;
 
- 					td_saoma_num3.style.borderLeft ='1px solid #BEBEBE';
 
- 					td_saoma_num3.style.borderTop ='1px solid #BEBEBE';
 
- 					td_saoma_num3.style.fontSize='14px';
 
- 					tr18.appendChild(td_saoma_num3);
 
- 					var td_baoxiucishu= document.createElement('td');
 
- 					td_baoxiucishu.width='20%';
 
- 					td_baoxiucishu.style.textAlign='center';
 
- 					td_baoxiucishu.innerHTML= ConfirmStore17[i].baoxiu_num17;
 
- 					td_baoxiucishu.style.borderLeft ='1px solid #BEBEBE';
 
- 					td_baoxiucishu.style.borderTop ='1px solid #BEBEBE';
 
- 					td_baoxiucishu.style.fontSize='14px';
 
- 					tr18.appendChild(td_baoxiucishu);
 
- 					var td_baoxiupinlv = document.createElement('td');
 
- 					td_baoxiupinlv.width='20%';
 
- 					td_baoxiupinlv.style.textAlign='center';
 
- 					td_baoxiupinlv.innerHTML=ConfirmStore17[i].baoxiu_baifenbi17+'%';
 
- 					td_baoxiupinlv.style.fontSize='14px';
 
- 					td_baoxiupinlv.style.borderLeft ='1px solid #BEBEBE';
 
- 					td_baoxiupinlv.style.borderTop ='1px solid #BEBEBE';
 
- 					tr18.appendChild(td_baoxiupinlv);
 
- 			   }
 
- 			  var tr19 = document.createElement('tr');
 
- 				sta4.appendChild(tr19);
 
- 				var td_dianwei_name17 = document.createElement('td');
 
- 				td_dianwei_name17.width='40%';
 
- 				td_dianwei_name17.style.textAlign='center';
 
- 				td_dianwei_name17.style.borderLeft ='1px solid #BEBEBE';
 
- 				td_dianwei_name17.style.borderTop ='1px solid #BEBEBE';
 
- 				td_dianwei_name17.innerHTML='合计';
 
- 				td_dianwei_name17.style.fontSize='14px';
 
- 				tr19.appendChild(td_dianwei_name17);
 
- 				var td_saoma_num17= document.createElement('td');
 
- 				td_saoma_num17.width='20%';
 
- 				td_saoma_num17.style.textAlign='center';
 
- 				td_saoma_num17.innerHTML= heji5;
 
- 				td_saoma_num17.style.borderLeft ='1px solid #BEBEBE';
 
- 				td_saoma_num17.style.borderTop ='1px solid #BEBEBE';
 
- 				td_saoma_num17.style.fontSize='14px';
 
- 				tr19.appendChild(td_saoma_num17);
 
- 				var td_baoxiucishu17= document.createElement('td');
 
- 				td_baoxiucishu17.width='20%';
 
- 				td_baoxiucishu17.style.textAlign='center';
 
- 				td_baoxiucishu17.innerHTML= heji6;
 
- 				td_baoxiucishu17.style.borderLeft ='1px solid #BEBEBE';
 
- 				td_baoxiucishu17.style.borderTop ='1px solid #BEBEBE';
 
- 				td_baoxiucishu17.style.fontSize='14px';
 
- 				tr19.appendChild(td_baoxiucishu17);
 
- 				var td_baoxiupinlv17 = document.createElement('td');
 
- 				td_baoxiupinlv17.width='20%';
 
- 				td_baoxiupinlv17.style.textAlign='center';
 
- 				td_baoxiupinlv17.innerHTML=baifenbiresult17+'%';
 
- 				td_baoxiupinlv17.style.fontSize='14px';
 
- 				td_baoxiupinlv17.style.borderLeft ='1px solid #BEBEBE';
 
- 				td_baoxiupinlv17.style.borderTop ='1px solid #BEBEBE';
 
- 				tr19.appendChild(td_baoxiupinlv17);
 
- 			  }
 
- 			}		
 
- 		var div3 = document.createElement('div');
 
- 		div3.width=400;
 
- 		div3.height=600;
 
- 		div3.setAttribute('id','patrolAnalysis_div3_label1');
 
- 		woker_talk.appendChild(div3);
 
- 		var title12 = document.createElement('h3');
 
- 		title12.style.textAlign='left';
 
- 		title12.style.fontSize='14px';
 
- 		title12.style.fontWeight='bold';
 
- 		title12.innerHTML='2分析意见';
 
- 		div3.appendChild(title12);
 
- 		var title26 = document.createElement('h4');
 
- 		title26.style.textAlign='left';
 
- 		title26.style.fontSize='14px';
 
- 		title26.style.fontWeight='bold';
 
- 		title26.innerHTML='2.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(Number(baifenbiresult15)<60){
 
- 	          var title27_p1 = document.createElement('li');
 
- 	          title27_p1.innerHTML='60%以下 差,建议加强人员考核,定期举办工作流程培训。';
 
- //	          title27_p1.setAttribute('class','title14_label1_p1');
 
- 	          title27_p1.style.fontSize='14px';
 
- 	          title27.appendChild(title27_p1);
 
- 		   }
 
- 		   if(Number(baifenbiresult15)>=60 && Number(baifenbiresult15)<80 ){
 
- 			   var title27_p3 = document.createElement('li');
 
- 		          title27_p3.innerHTML='61~80%以下 一般,建议未完成任务的班组负责人优化班组的工作流程。';
 
- 		          title27_p3.style.fontSize='14px';
 
- 		          title27.appendChild(title27_p3);
 
- 		   }
 
- 		   if(Number(baifenbiresult15)>=80 && Number(baifenbiresult15)<=95 ){
 
- 			   var title27_p3 = document.createElement('li');
 
- 		          title27_p3.innerHTML='81~95% 良好,建议各班组负责人在任务期末查缺补漏。';
 
- 		          title27_p3.style.fontSize='14px';
 
- 		          title27.appendChild(title27_p3);
 
- 		   }
 
- 		   if(Number(baifenbiresult15)>95){
 
- 			   var title27_p3 = document.createElement('li');
 
- 		          title27_p3.innerHTML='96~100% 优秀,请继续保持。';
 
- 		          title27_p3.style.fontSize='14px';
 
- 		          title27.appendChild(title27_p3);
 
- 		   }
 
- 		   if(ConfirmStore15.length>0){
 
- 			   for(var i=0;i<ConfirmStore15.length;i++){
 
- 				   if(Number(ConfirmStore15[i].wcd_baifenbi)==100){
 
- 					   var title27_p4 = document.createElement('li');
 
- 				          title27_p4.innerHTML='完成所有任务的班组:'+ConfirmStore15[i].bz_name+',请继续保持。';
 
- 				          title27_p4.style.fontSize='14px';
 
- 				          title27.appendChild(title27_p4);
 
- 				   }
 
- 			   }
 
- 		   }
 
- 		   var title28 = document.createElement('h4');
 
- 		    title28.style.textAlign='left';
 
- 		    title28.style.fontSize='14px';
 
- 		    title28.style.fontWeight='bold';
 
- 		    title28.innerHTML='2.2点位扫码完成度';
 
- 			woker_talk.appendChild(title28);
 
- 			var title29 = document.createElement('ol');
 
- //			title27.setAttribute('class','title27_label1');
 
- //			title27.style.textAlign='center';
 
- 			title29.style.border='1px solid #BEBEBE';
 
- 			title29.width='100%';
 
- 			title29.style.textAlign='left';
 
- 			title29.style.background='#AAAAAA';
 
- 			title29.style.minHeight='20px';
 
- 			title29.style.paddingLeft='36px';
 
- 			title29.style.marginBottom='20px';
 
- 		    woker_talk.appendChild(title29);
 
- 			   if(Number(baifenbiresult16)<80){
 
- 		          var title29_p1 = document.createElement('li');
 
- 		          title29_p1.innerHTML='80%以下 差,建议对班组人员重新讲解工作的扫码流程。';
 
- //		          title27_p1.setAttribute('class','title14_label1_p1');
 
- 		          title29_p1.style.fontSize='14px';
 
- 		          title29.appendChild(title29_p1);
 
- 			   }
 
- 			   if(Number(baifenbiresult16)>=80 && Number(baifenbiresult16)<95 ){
 
- 				   var title29_p3 = document.createElement('li');
 
- 			          title29_p3.innerHTML='81~95% 一般,建议在发布任务后,负责人持续跟进班组任务的扫码情况。';
 
- 			          title29_p3.style.fontSize='14px';
 
- 			          title29.appendChild(title29_p3);
 
- 			   }
 
- 			   if(Number(baifenbiresult16)>=95 && Number(baifenbiresult16)<=99 ){
 
- 				   var title29_p3 = document.createElement('li');
 
- 			          title29_p3.innerHTML='96~99% 良好,建议各班组负责人在任务期末查缺补漏。';
 
- 			          title29_p3.style.fontSize='14px';
 
- 			          title29.appendChild(title29_p3);
 
- 			   }
 
- 			   if(Number(baifenbiresult16)==100){
 
- 				   var title29_p3 = document.createElement('li');
 
- 			          title29_p3.innerHTML='100% 优秀,请继续保持。';
 
- 			          title29_p3.style.fontSize='14px';
 
- 			          title29.appendChild(title29_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 highcharts1 = function () {
 
- 		var ywcbaifenbi = parseFloat(xjywcbaifenbi);
 
- 		var csbaifenbi = parseFloat(xjcsbaifenbi);
 
- 		var jxzbaifenbi = parseFloat(xjjxzbaifenbi);
 
- 		$('#container1').highcharts({ 
 
- 	        chart: {
 
- 	    		plotBackgroundColor: null,
 
- 	    		plotBorderWidth: null,
 
- 	    		plotShadow: false,
 
- 	    		type: 'pie'
 
- 	    	},
 
- 	    	credits: {  
 
- 	            enabled: false  
 
- 	        },
 
- 	        exporting: { enabled:false },
 
- 	    	title: {
 
- 	    		text: '任务总数:'+xjrwnum
 
- 	    	},
 
- 	    	tooltip: {
 
- 	    		formatter: function() {
 
- 	    		      return '<b>'+ this.series.name +'</b>: '+ Highcharts.numberFormat(this.percentage, 1) +'%'
 
- 	    		     }
 
- 	    	},
 
- 	    	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: ywcbaifenbi,
 
- 	    			sliced: true,
 
- 	    			selected: true
 
- 	    		},{
 
- 	    			name: '超时',
 
- 	    			y: csbaifenbi
 
- 	    		},{
 
- 	    			name: '进行中',
 
- 	    			y: jxzbaifenbi
 
- 	    		},{
 
- 	    			name: '未开始',
 
- 	    			y: 100-ywcbaifenbi-csbaifenbi-jxzbaifenbi
 
- 	    		}]
 
- 	    	}]
 
- 	    });
 
- 	}
 
- 	
 
- 	var highcharts2 = function () {
 
- 		var huidan15 = parseFloat(baifenbihuidan15);
 
- 		$('#container2').highcharts({ 
 
- 	        chart: {
 
- 	    		plotBackgroundColor: null,
 
- 	    		plotBorderWidth: null,
 
- 	    		plotShadow: false,
 
- 	    		type: 'pie'
 
- 	    	},
 
- 	    	credits: {  
 
- 	            enabled: false  
 
- 	        },
 
- 	        exporting: { enabled:false },
 
- 	    	title: {
 
- 	    		text: '已扫码次数:'+heji2
 
- 	    	},
 
- 	    	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: huidan15,
 
- 	    			sliced: true,
 
- 	    			selected: true
 
- 	    		},{
 
- 	    			name: '未填写回单',
 
- 	    			y: 100-huidan15
 
- 	    		}]
 
- 	    	}]
 
- 	    });
 
- 	}
 
- 	
 
- 	var highcharts3 = function () {
 
- 		var ysmbaifenbi = parseFloat(xjysmbaifenbi);
 
- 		var wsmbaifenbi = parseFloat(xjwsmbaifenbi);
 
- 		$('#container3').highcharts({ 
 
- 	        chart: {
 
- 	    		plotBackgroundColor: null,
 
- 	    		plotBorderWidth: null,
 
- 	    		plotShadow: false,
 
- 	    		type: 'pie'
 
- 	    	},
 
- 	    	credits: {  
 
- 	            enabled: false  
 
- 	        },
 
- 	        exporting: { enabled:false },
 
- 	    	title: {
 
- 	    		text: '应扫码次数'+xjysmcsnum+'个'
 
- 	    	},
 
- 	    	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: ysmbaifenbi,
 
- 	    			sliced: true,
 
- 	    			selected: true
 
- 	    		},{
 
- 	    			name: '未扫码次数',
 
- 	    			y: wsmbaifenbi
 
- 	    		}]
 
- 	    	}]
 
- 	    });
 
- 	}
 
- 	
 
- //	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_talkxj');
 
- 		var eleTextarea = document.querySelector('#woker_talkxj');
 
- 		html2canvas(woker_talk, {
 
- 			  height: $("#woker_talkxj").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_talkxj').innerHTML;
 
- //		var div2_label1 = document.getElementById('patrolAnalysis_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',
 
- 			plain: true,
 
- 		    border: false,
 
- 		    closable: false,
 
- 		    draggable: false,
 
- 			frame:false,
 
- 			shadow : false,
 
- 		    height:maxHeight-88,
 
- 		    width: 650,
 
- 		    layout: 'fit',
 
- 		    closeAction:'destroy',
 
- 		    html:'<div style="overflow-y:auto;height:580px;width:640px;"><div id="woker_talkxj"></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.type = 'xunjian';
 
- 		Ext.MessageBox.wait('Loading', '生成中…');
 
- 		$.ajax({
 
- 	        type:'POST',
 
- 	        url: baseUrl+"iot/spotoperationrecord/getxjfenxi",
 
- 	        data: {
 
- 	        	queryJson : Ext.JSON.encode(query)
 
- 	    	 },
 
- 	        success: function(result){
 
- 	            var json = eval('(' + result + ')');
 
- 	            if(json.action=='getxjfenxi'){
 
- 	                ConfirmStore15 = json.RESULT15;
 
- 	                ConfirmStore16 = json.RESULT16;
 
- 	                ConfirmStore17 = json.RESULT17;
 
- //	                ConfirmStore4 = json.RESULT4;
 
- 	            	xjrysl = json.xjrysl;
 
- 	                xjbz = json.xjbz;
 
- 	                zrrnum = json.zrrnum;
 
- 	                xjrwnum = json.xjrwnum;
 
- 	                xjdwnum = json.xjdwnum;
 
- 	                xjysmcsnum = json.xjysmcsnum;
 
- 	                xjbxcsnum = json.xjbxcsnum;
 
- 	                xjwksbaifenbi = json.xjwksbaifenbi;
 
- 	                xjjxzbaifenbi = json.xjjxzbaifenbi;
 
- 	                xjcsbaifenbi = json.xjcsbaifenbi;
 
- 	                xjywcbaifenbi = json.xjywcbaifenbi;
 
- 	                xjwksnum = json.xjwksnum;
 
- 	                xjjxznum = json.xjjxznum;
 
- 	                xjcsnum = json.xjcsnum;
 
- 	                xjywcnum = json.xjywcnum;
 
- 	                xjysmbaifenbi = json.xjysmbaifenbi;
 
- 	                xjwsmbaifenbi = json.xjwsmbaifenbi;
 
- 	                heji1 = json.heji1;
 
- 	                heji2 = json.heji2;
 
- 	                heji3 = json.heji3;
 
- 	                heji4 = json.heji4;
 
- 	                baifenbiresult16 = json.baifenbiresult16;
 
- 	                heji5 = json.heji5;
 
- 	                heji6 = json.heji6;
 
- 	                baifenbiresult17 = json.baifenbiresult17;
 
- 	                baifenbiresult15 = json.baifenbiresult15;
 
- 	                baifenbihuidan15 = json.baifenbihuidan15;
 
- 	                Ext.MessageBox.hide();
 
- 	                draw_confirm(query.start_data,query.end_data,project_date);
 
- //	                highcharts();
 
- 	                highcharts1();
 
- 	                highcharts2();
 
- 	                highcharts3();
 
- //	                highcharts4();
 
- 	            }
 
- 	        } 
 
- 	    });
 
- 	}
 
- 	
 
- 	mouseon = function(obj){
 
- 		var id = obj.id;
 
- 		$("#"+id).removeClass(id);
 
- 		$("#"+id).addClass(id+'_on');
 
- 	}
 
- 	
 
- 	 mouseoff = function(obj){
 
- 		var mid = "PatrolAnalysisCheck_";
 
- 		for(var i=1;i<2;i++){
 
- 			var id = "PatrolAnalysisCheck_title"+i+"_div";
 
- 			$("#"+id).removeClass(id+'_on');
 
- 			$("#"+id).addClass(id);
 
- 		}
 
- 		if(menuidx=='m1'){
 
- 			mid += 'title1_div';
 
- 		$("#"+mid).removeClass(mid);
 
- 		$("#"+mid).addClass(mid+'_on');
 
- 		}
 
- 	}
 
- 	
 
- 	 menu_click = function(obj){
 
- 		var id = obj.id;
 
- 		if(id=='PatrolAnalysisCheck_title1_div'){
 
- 			menuidx = 'm1';
 
- 			print_detail();
 
- 		}
 
- 	}
 
- 	
 
- 	var piedarHtml2 = function() {
 
- 		var maintenanceCheckHtml = document.getElementById('PatrolAnalysisCheckHtml');
 
- 		var title = document.createElement('div');
 
-  		title.setAttribute('class','MaintenancePersonTitle');
 
-  		title.innerHTML='巡检工作分析';
 
-  		maintenanceCheckHtml.appendChild(title);
 
-  		var title6 = document.createElement('div');
 
-  		title6.setAttribute('class','PatrolAnalysisCheck_title1_div');
 
-  		title6.setAttribute('id','PatrolAnalysisCheck_title1_div');
 
-  		title6.setAttribute('onmouseover',"mouseon(this)");
 
-  		title6.setAttribute('onmouseout',"mouseoff(this)");
 
-  		title6.setAttribute('onclick',"menu_click(this)");
 
-  		maintenanceCheckHtml.appendChild(title6);
 
- 	}
 
- 	
 
- 	new Ext.create('Ext.panel.Panel',{
 
- 		width:'100%',
 
- 		height:88,
 
- 		id: 'PatrolAnalysisCheckHtml',
 
- 		layout:'form',
 
- 		defaults:{  
 
-             border:false
 
-         },
 
- 	    renderTo: Ext.getBody()
 
- 	    
 
- 	});
 
- 	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();
 
- 		        }
 
- 		    }
 
- 		}]
 
- 	});
 
- 	var filterwin = function() {
 
- 		Ext.create('Ext.window.Window',{
 
- 			title: '工作分析',
 
- 			height: 300,
 
- 			width: 350,
 
- 			layout: 'fit',
 
- 			modal:true,
 
- 			items: FilterWin,
 
- 			closeAction: 'hide'
 
- 		}).show();
 
- 	}();
 
- 	piedarHtml2();
 
- 	maxHeight =  document.documentElement.clientHeight;
 
- //	Ext.getCmp('InspectorsCheckPiebar').setHeight(maxHeight);
 
- });
 
 
  |