| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399 | 
							- /**
 
-  * 
 
-  */
 
- 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_talkwb');
 
- 		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_talkwb');
 
- 		var eleTextarea = document.querySelector('#woker_talkwb');
 
- 		html2canvas(woker_talk, {
 
- 			  height: $("#woker_talkwb").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_talkwb').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_winweibao',
 
- 		    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_talkwb"></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 = 'weibao';
 
- 		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 = "PatrolAnalysis2Check_";
 
- 		for(var i=1;i<2;i++){
 
- 			var id = "PatrolAnalysis2Check_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=='PatrolAnalysis2Check_title1_div'){
 
- 			menuidx = 'm1';
 
- 			print_detail();
 
- 		}
 
- 	}
 
- 	
 
- 	var piedarHtml2 = function() {
 
- 		var maintenanceCheckHtml = document.getElementById('PatrolAnalysis2CheckHtml');
 
- 		var title = document.createElement('div');
 
-  		title.setAttribute('class','MaintenancePersonTitle');
 
-  		title.innerHTML='维保工作分析';
 
-  		maintenanceCheckHtml.appendChild(title);
 
-  		var title6 = document.createElement('div');
 
-  		title6.setAttribute('class','PatrolAnalysis2Check_title1_div');
 
-  		title6.setAttribute('id','PatrolAnalysis2Check_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: 'PatrolAnalysis2CheckHtml',
 
- 		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',
 
- 			items: FilterWin,
 
- 			closeAction: 'hide'
 
- 		}).show();
 
- 	}();
 
- 	piedarHtml2();
 
- 	maxHeight =  document.documentElement.clientHeight;
 
- });
 
 
  |