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