| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538 |
- /**
- *
- */
- var baseUrl = '';
- var theme = '';
- var viewAlarmType,pieAlarmType,statusType;
- var filterwin;
- var FilterWin;
- var projectInfoJson;
- var instalDeviceInfoJson;
- var monitorPointInfoJson;
- var countTimeJson;
- var countReportJson;
- var alarmTotalJson;
- var fireDataJson ;
- var waterDataJson;
- var rtuDataJson;
- var efDataJson;
- var videoDataJson;
- var conclusionJson ;
- //获取json长度
- function getJsonLength(jsonData){
- var jsonLength = 0;
- for(var i in jsonData){
- jsonLength++;
- }
- return jsonLength;
- }
- function isEmpty(obj) {
- if (typeof obj === 'undefined' || obj == null || obj === '') {
- return true;
- } else {
- return false;
- }
- }
- 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();
- var time;
- var build_code;
- queryJson.V_LOGINNAME = $("#V_LOGINNAME").val();
- queryJson.V_PASSWORD = $("#V_PASSWORD").val();
- var draw_confirm = function(startData,endData,days,eventTime) {
- var hjresult11 = parseFloat(alarmTotalJson.hjtotalCount);
- var sjresult22 = parseFloat(alarmTotalJson.sjtotalCount);
- var rturesult33 = parseFloat(alarmTotalJson.rtutotalCount);
- var efresult44 = parseFloat(alarmTotalJson.eftotalCount);
- var videoresult55 = parseFloat(alarmTotalJson.videototalCount);
- var start_data = startData;
- var end_data = endData;
- var days = days;
- var project_date = eventTime;
- 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 = companyName + '消防报警系统监测数据';
- 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 = companyName;
- 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 = 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 = 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 = 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 (getJsonLength(instalDeviceInfoJson) > 1) {
- // if(getJsonLength(instalDeviceInfoJson)==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= instalDeviceInfoJson.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 = 1; i < getJsonLength(instalDeviceInfoJson); i++) {
- var a = instalDeviceInfoJson[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;
- 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 = instalDeviceInfoJson[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 = instalDeviceInfoJson[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 = instalDeviceInfoJson[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 b = isEmpty(instalDeviceInfoJson[i].data_info);
- if (b) {
- data_info = "";
- }
- 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 = 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 = instalDeviceInfoJson.total;
- 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 (getJsonLength(monitorPointInfoJson) > 1) {
- // 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 = 1; i < getJsonLength(monitorPointInfoJson); i++) {
- var b2 = isEmpty(monitorPointInfoJson[i].data_info);
- if (b2) {
- data_info = "";
- }
- 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;
- 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 = monitorPointInfoJson[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 = monitorPointInfoJson[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 = monitorPointInfoJson[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 = 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 = monitorPointInfoJson.total;
- 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 = '统计起始日期:' + countTimeJson.startData;
- title14_p1.style.fontSize = '14px';
- title14.appendChild(title14_p1);
- var title14_p2 = document.createElement('p');
- title14_p2.innerHTML = '统计截止日期:' + countTimeJson.endData;
- title14_p2.style.fontSize = '14px';
- title14.appendChild(title14_p2);
- var title14_p3 = document.createElement('p');
- title14_p3.innerHTML = '统计时段时长:' + countTimeJson.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);
- //if(!isEmpty(countReportJson[1])){
- 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';
- var hjtotal;
- if (!isEmpty(countReportJson[1])){
- hjtotal=countReportJson[1].alarm.hjtotal;
- }else {
- hjtotal=0;
- }
- td23.innerHTML = hjtotal;
- 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';
- var hjcltotal;
- if (isEmpty(countReportJson[1] )){
- hjcltotal=0;
- }else {
- hjcltotal= countReportJson[1].alarm.hjcltotal;
- }
- td24.innerHTML = hjcltotal;
- 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';
- var hjwcltotal;
- if (isEmpty(countReportJson[1] )){
- hjwcltotal=0;
- }else {
- hjwcltotal= countReportJson[1].alarm.hjwcltotal;
- }
- td25.innerHTML = hjwcltotal;
- 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';
- var hjbaifenbi;
- if (isEmpty( countReportJson[1] )){
- hjbaifenbi=0;
- }else {
- hjbaifenbi= countReportJson[1].alarm.hjbaifenbi;
- }
- 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';
- var hjlxtotal;
- if (isEmpty( countReportJson[1] )){
- hjlxtotal=0;
- }else{
- hjlxtotal= countReportJson[1].offline.hjlxtotal;
- }
- td30.innerHTML = hjlxtotal;
- 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';
- var hjlxcltotal;
- if (isEmpty( countReportJson[1] )){
- hjlxcltotal=0;
- }else{
- hjlxcltotal= countReportJson[1].offline.hjlxcltotal;
- }
- td31.innerHTML = hjlxcltotal;
- 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';
- var hjlxwcltotal;
- if (isEmpty( countReportJson[1] )){
- hjlxwcltotal=0;
- }else {
- hjlxwcltotal= countReportJson[1].offline.hjlxwcltotal;
- }
- td32.innerHTML = hjlxwcltotal;
- 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';
- var hjlxbaifenbi;
- if (isEmpty( countReportJson[1] )){
- hjlxbaifenbi=0;
- }else{
- hjlxbaifenbi= countReportJson[1].offline.hjlxbaifenbi;
- }
- td33.innerHTML = hjlxbaifenbi + '%';
- 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);
- // }
- // if(!isEmpty(countReportJson[3])){
- 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';
- var sjtotal;
- if (isEmpty( countReportJson[3] )){
- sjtotal=0;
- }else{
- sjtotal= countReportJson[3].alarm.sjtotal;
- }
- td38.innerHTML = sjtotal;
- 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';
- var sjcltotal;
- if (isEmpty( countReportJson[3] )){
- sjcltotal=0;
- }else {
- sjcltotal= countReportJson[3].alarm.sjcltotal;
- }
- td39.innerHTML = sjcltotal;
- 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';
- var sjwcltotal;
- if (isEmpty( countReportJson[3] )){
- sjwcltotal=0;
- }else{
- sjwcltotal= countReportJson[3].alarm.sjwcltotal;
- }
- td40.innerHTML = sjwcltotal;
- 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';
- var sjbaifenbi;
- if (isEmpty( countReportJson[3] )){
- sjbaifenbi=0;
- }else {
- sjbaifenbi= countReportJson[3].alarm.sjbaifenbi;
- }
- 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';
- var sjlxtotal;
- if (isEmpty( countReportJson[3] )){
- sjlxtotal=0;
- }else {
- sjlxtotal= countReportJson[3].offline.sjlxtotal;
- }
- td45.innerHTML = sjlxtotal;
- 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';
- var sjlxcltotal;
- if (isEmpty( countReportJson[3] )){
- sjlxcltotal=0;
- }else{
- sjlxcltotal= countReportJson[3].offline.sjlxcltotal;
- }
- td46.innerHTML = sjlxcltotal;
- 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';
- var sjlxwcltotal;
- if (isEmpty( countReportJson[3] )){
- sjlxwcltotal=0;
- }else {
- sjlxwcltotal= countReportJson[3].offline.sjlxwcltotal;
- }
- td47.innerHTML = sjlxwcltotal;
- 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';
- var sjlxbaifenbi;
- if (isEmpty( countReportJson[3] )){
- sjlxbaifenbi=0;
- }else {
- sjlxbaifenbi= countReportJson[3].offline.sjlxbaifenbi;
- }
- td48.innerHTML = sjlxbaifenbi + '%';
- 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);
- // }
- // if(!isEmpty(countReportJson[4])){
- 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';
- var rtutotal;
- if (isEmpty( countReportJson[4] )){
- rtutotal=0;
- }else {
- rtutotal= countReportJson[4].alarm.rtutotal;
- }
- td53.innerHTML = rtutotal;
- 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';
- var rtucltotal;
- if (isEmpty( countReportJson[4] )){
- rtucltotal=0;
- }else{
- rtucltotal= countReportJson[4].alarm.rtucltotal;
- }
- td54.innerHTML = rtucltotal;
- 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';
- var rtuwcltotal;
- if (isEmpty( countReportJson[4] )){
- rtuwcltotal=0;
- }else{
- rtuwcltotal= countReportJson[4].alarm.rtuwcltotal;
- }
- td55.innerHTML = rtuwcltotal;
- 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';
- var rtubaifenbi;
- if (isEmpty( countReportJson[4] )){
- rtubaifenbi=0;
- }else{
- rtubaifenbi= countReportJson[4].alarm.rtubaifenbi;
- }
- 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';
- var rtulxtotal;
- if (isEmpty( countReportJson[4] )){
- rtulxtotal=0;
- }else {
- rtulxtotal=countReportJson[4].offline.rtulxtotal;
- }
- td60.innerHTML = rtulxtotal;
- 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';
- var rtulxcltotal;
- if (isEmpty( countReportJson[4] )){
- rtulxcltotal=0;
- }else {
- rtulxcltotal= countReportJson[4].offline.rtulxcltotal;
- }
- td61.innerHTML = rtulxcltotal;
- 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';
- var rtulxwcltotal;
- if (isEmpty( countReportJson[4] )){
- rtulxwcltotal=0;
- }else{
- rtulxwcltotal= countReportJson[4].offline.rtulxwcltotal;
- }
- td62.innerHTML = rtulxwcltotal;
- 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';
- var rtulxbaifenbi;
- if (isEmpty( countReportJson[4] )){
- rtulxbaifenbi=0;
- }else {
- rtulxbaifenbi= countReportJson[4].offline.rtulxbaifenbi;
- }
- td63.innerHTML = rtulxbaifenbi + '%';
- 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);
- // }
- //todo 需要修改的
- if(!isEmpty(countReportJson[2])){
- var tr27 = document.createElement('tr');
- sta3.appendChild(tr27);
- var td65 = document.createElement('td');
- td65.width='10%';
- td65.style.textAlign='center';
- td65.innerHTML=7;
- td65.style.fontSize='14px';
- td65.style.borderLeft ='1px solid #BEBEBE';
- td65.style.borderTop ='1px solid #BEBEBE';
- tr27.appendChild(td65);
- var td66 = document.createElement('td');
- td66.width='15%';
- td66.style.textAlign='center';
- td66.innerHTML='电气火灾监测';
- td66.rowSpan='2';
- td66.style.fontSize='14px';
- td66.style.borderLeft ='1px solid #BEBEBE';
- td66.style.borderTop ='1px solid #BEBEBE';
- tr27.appendChild(td66);
- var td67 = document.createElement('td');
- td67.width='15%';
- td67.style.textAlign='center';
- td67.innerHTML='报警';
- td67.style.fontSize='14px';
- td67.style.borderLeft ='1px solid #BEBEBE';
- td67.style.borderTop ='1px solid #BEBEBE';
- tr27.appendChild(td67);
- var td68 = document.createElement('td');
- td68.width='15%';
- td68.style.textAlign='center';
- td68.innerHTML=countReportJson[2].alarm.eftotal;
- td68.style.fontSize='14px';
- td68.style.borderLeft ='1px solid #BEBEBE';
- td68.style.borderTop ='1px solid #BEBEBE';
- tr27.appendChild(td68);
- var td69 = document.createElement('td');
- td69.width='10%';
- td69.style.textAlign='center';
- td69.innerHTML=countReportJson[2].alarm.efcltotal;
- td69.style.fontSize='14px';
- td69.style.borderLeft ='1px solid #BEBEBE';
- td69.style.borderTop ='1px solid #BEBEBE';
- tr27.appendChild(td69);
- var td70 = document.createElement('td');
- td70.width='10%';
- td70.style.textAlign='center';
- td70.innerHTML=countReportJson[2].alarm.efwcltotal;
- td70.style.fontSize='14px';
- td70.style.borderLeft ='1px solid #BEBEBE';
- td70.style.borderTop ='1px solid #BEBEBE';
- tr27.appendChild(td70);
- var td71 = document.createElement('td');
- td71.width='10%';
- td71.style.textAlign='center';
- td71.innerHTML=countReportJson[2].alarm.efbaifenbi+'%';
- td71.style.fontSize='14px';
- td71.style.borderLeft ='1px solid #BEBEBE';
- td71.style.borderTop ='1px solid #BEBEBE';
- tr27.appendChild(td71);
- var td72 = document.createElement('td');
- td72.width='15%';
- td72.style.textAlign='center';
- td72.innerHTML='';
- td72.style.fontSize='14px';
- td72.style.borderLeft ='1px solid #BEBEBE';
- td72.style.borderTop ='1px solid #BEBEBE';
- tr27.appendChild(td72);
- var tr28 = document.createElement('tr');
- sta3.appendChild(tr28);
- var td73 = document.createElement('td');
- td73.width='10%';
- td73.style.textAlign='center';
- td73.innerHTML=8;
- td73.style.fontSize='14px';
- td73.style.borderLeft ='1px solid #BEBEBE';
- td73.style.borderTop ='1px solid #BEBEBE';
- tr28.appendChild(td73);
- var td74 = document.createElement('td');
- td74.width='15%';
- td74.style.textAlign='center';
- td74.innerHTML='设备离线';
- td74.style.fontSize='14px';
- td74.style.borderLeft ='1px solid #BEBEBE';
- td74.style.borderTop ='1px solid #BEBEBE';
- tr28.appendChild(td74);
- var td75 = document.createElement('td');
- td75.width='15%';
- td75.style.textAlign='center';
- td75.innerHTML=countReportJson[2].offline.eflxtotal;
- td75.style.fontSize='14px';
- td75.style.borderLeft ='1px solid #BEBEBE';
- td75.style.borderTop ='1px solid #BEBEBE';
- tr28.appendChild(td75);
- var td76 = document.createElement('td');
- td76.width='10%';
- td76.style.textAlign='center';
- td76.innerHTML=countReportJson[2].offline.eflxcltotal;
- td76.style.fontSize='14px';
- td76.style.borderLeft ='1px solid #BEBEBE';
- td76.style.borderTop ='1px solid #BEBEBE';
- tr28.appendChild(td76);
- var td77 = document.createElement('td');
- td77.width='10%';
- td77.style.textAlign='center';
- td77.innerHTML=countReportJson[2].offline.eflxwcltotal;
- td77.style.fontSize='14px';
- td77.style.borderLeft ='1px solid #BEBEBE';
- td77.style.borderTop ='1px solid #BEBEBE';
- tr28.appendChild(td77);
- var td78 = document.createElement('td');
- td78.width='10%';
- td78.style.textAlign='center';
- td78.innerHTML=countReportJson[2].offline.eflxbaifenbi+"%";
- td78.style.fontSize='14px';
- td78.style.borderLeft ='1px solid #BEBEBE';
- td78.style.borderTop ='1px solid #BEBEBE';
- tr28.appendChild(td78);
- var td79= document.createElement('td');
- td79.width='15%';
- td79.style.textAlign='center';
- td79.innerHTML='';
- td79.style.fontSize='14px';
- td79.style.borderLeft ='1px solid #BEBEBE';
- td79.style.borderTop ='1px solid #BEBEBE';
- tr28.appendChild(td79);
- }
- //todo 需要修改的
- if(!isEmpty(countReportJson[5])){
- var tr29 = document.createElement('tr');
- sta3.appendChild(tr29);
- var td80 = document.createElement('td');
- td80.width='10%';
- td80.style.textAlign='center';
- //todo 需要修改的
- if(!isEmpty(countReportJson[2])){
- td80.innerHTML=9;
- }else{
- td80.innerHTML=7;
- }
- td80.style.fontSize='14px';
- td80.style.borderLeft ='1px solid #BEBEBE';
- td80.style.borderTop ='1px solid #BEBEBE';
- tr29.appendChild(td80);
- var td81 = document.createElement('td');
- td81.width='15%';
- td81.style.textAlign='center';
- td81.innerHTML='视频监测';
- // td81.rowSpan='2';
- td81.style.fontSize='14px';
- td81.style.borderLeft ='1px solid #BEBEBE';
- td81.style.borderTop ='1px solid #BEBEBE';
- tr29.appendChild(td81);
- var td82 = document.createElement('td');
- td82.width='15%';
- td82.style.textAlign='center';
- td82.innerHTML='报警';
- td82.style.fontSize='14px';
- td82.style.borderLeft ='1px solid #BEBEBE';
- td82.style.borderTop ='1px solid #BEBEBE';
- tr29.appendChild(td82);
- var td83 = document.createElement('td');
- td83.width='15%';
- td83.style.textAlign='center';
- td83.innerHTML=countReportJson[5].alarm.videototal;
- td83.style.fontSize='14px';
- td83.style.borderLeft ='1px solid #BEBEBE';
- td83.style.borderTop ='1px solid #BEBEBE';
- tr29.appendChild(td83);
- var td84 = document.createElement('td');
- td84.width='10%';
- td84.style.textAlign='center';
- td84.innerHTML=countReportJson[5].alarm.videocltotal;
- td84.style.fontSize='14px';
- td84.style.borderLeft ='1px solid #BEBEBE';
- td84.style.borderTop ='1px solid #BEBEBE';
- tr29.appendChild(td84);
- var td85 = document.createElement('td');
- td85.width='10%';
- td85.style.textAlign='center';
- td85.innerHTML=countReportJson[5].alarm.videowcltotal;
- td85.style.fontSize='14px';
- td85.style.borderLeft ='1px solid #BEBEBE';
- td85.style.borderTop ='1px solid #BEBEBE';
- tr29.appendChild(td85);
- var td86 = document.createElement('td');
- td86.width='10%';
- td86.style.textAlign='center';
- td86.innerHTML=countReportJson[5].alarm.videobaifenbi+'%';
- td86.style.fontSize='14px';
- td86.style.borderLeft ='1px solid #BEBEBE';
- td86.style.borderTop ='1px solid #BEBEBE';
- tr29.appendChild(td86);
- var td87 = document.createElement('td');
- td87.width='15%';
- td87.style.textAlign='center';
- td87.innerHTML='';
- td87.style.fontSize='14px';
- td87.style.borderLeft ='1px solid #BEBEBE';
- td87.style.borderTop ='1px solid #BEBEBE';
- tr29.appendChild(td87);
- }
- 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';
- // if (hjresult11!=0 && sjresult22!=0 && rturesult33!=0 && efresult44!=0 && videoresult55!=0){
- //
- // title18_highcharts.setAttribute('id','container3');
- // //title18.innerHTML='本月无报警';
- // }
- 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');
- //火警数据信息
- title20_p1.innerHTML=fireDataJson.data;
- // 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');
- //水警分析数据信息
- title22_p1.innerHTML=waterDataJson.data;
- // 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');
- //分析信息
- title24_p1.innerHTML=rtuDataJson.data;
- // 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);
- // if(ConfirmStore4[0].dweftotalCount>0){
- var title30 = document.createElement('h4');
- title30.style.textAlign='left';
- title30.style.fontSize='14px';
- title30.style.fontWeight='bold';
- title30.innerHTML='3.4 电气火灾监测数据分析';
- woker_talk.appendChild(title30);
- var title30_highcharts = document.createElement('div');
- // title23_highcharts.style.width='300px';
- // title23_highcharts.style.height='300px';
- title30_highcharts.style.marginTop='20px';
- title30_highcharts.style.marginBottom='20px';
- title30_highcharts.setAttribute('id','container4');
- title30_highcharts.style.textAlign='center';
- woker_talk.appendChild(title30_highcharts);
- var title31 = document.createElement('div');
- title31.style.border='1px solid #BEBEBE';
- title31.width='100%';
- title31.style.background='#AAAAAA';
- // title22.style.minHeight='80px';
- title31.style.textIndent='2em';
- title31.style.marginBottom='20px';
- woker_talk.appendChild(title31);
- var title31_p1 = document.createElement('p');
- title31_p1.innerHTML=efDataJson.data;
- // title24_p1.setAttribute('class','title14_label1_p1');
- title31_p1.style.fontSize='14px';
- title31_p1.style.paddingLeft='36px';
- title31_p1.style.paddingRight='36px';
- title31_p1.style.marginBottom='20px';
- title31_p1.style.marginTop='20px';
- title31_p1.style.lineHeight='150%';
- title31.appendChild(title31_p1);
- // }
- // if(ConfirmStore4[0].dwvideototalCount>0){
- var title32 = document.createElement('h4');
- title32.style.textAlign='left';
- title32.style.fontSize='14px';
- title32.style.fontWeight='bold';
- // if(ConfirmStore4[0].dweftotalCount>0){
- title32.innerHTML='3.5 视频监测数据分析';
- // }else{
- // title32.innerHTML='3.4 视频监测数据分析';
- // }
- woker_talk.appendChild(title32);
- var title32_highcharts = document.createElement('div');
- // title23_highcharts.style.width='300px';
- // title23_highcharts.style.height='300px';
- title32_highcharts.style.marginTop='20px';
- title32_highcharts.style.marginBottom='20px';
- title32_highcharts.setAttribute('id','container5');
- title32_highcharts.style.textAlign='center';
- woker_talk.appendChild(title32_highcharts);
- var title33 = document.createElement('div');
- title33.style.border='1px solid #BEBEBE';
- title33.width='100%';
- title33.style.background='#AAAAAA';
- // title22.style.minHeight='80px';
- title33.style.textIndent='2em';
- title33.style.marginBottom='20px';
- woker_talk.appendChild(title33);
- var title33_p1 = document.createElement('p');
- title33_p1.innerHTML=videoDataJson.data;
- // title24_p1.setAttribute('class','title14_label1_p1');
- title33_p1.style.fontSize='14px';
- title33_p1.style.paddingLeft='36px';
- title33_p1.style.paddingRight='36px';
- title33_p1.style.marginBottom='20px';
- title33_p1.style.marginTop='20px';
- title33_p1.style.lineHeight='150%';
- title33.appendChild(title33_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);
- var pro= conclusionJson.propose;
- var b3 = isEmpty(pro[1]);
- if(!b3){
- if(!isEmpty(pro[1].data1)){
- var title27_p1 = document.createElement('li');
- title27_p1.innerHTML=pro[1].data1;
- // title27_p1.setAttribute('class','title14_label1_p1');
- title27_p1.style.fontSize='14px';
- title27.appendChild(title27_p1);
- }
- if(!isEmpty(pro[1].data2)){
- var title27_p3 = document.createElement('li');
- title27_p3.innerHTML=pro[1].data2;
- title27_p3.style.fontSize='14px';
- title27.appendChild(title27_p3);
- }
- }
- var b4 = isEmpty(pro[2]);
- if(!b4){
- if(!isEmpty(pro[2].data1)){
- var title27_p2 = document.createElement('li');
- title27_p2.innerHTML=pro[2].data1;
- title27_p2.style.fontSize='14px';
- title27.appendChild(title27_p2);
- }
- if(!isEmpty(pro[2].data2)){
- var title27_p4 = document.createElement('li');
- title27_p4.innerHTML=pro[2].data2;
- title27_p4.style.fontSize='14px';
- title27.appendChild(title27_p4);
- }
- }
- var b5 = isEmpty(pro[3]);
- if(!b5){
- if(!isEmpty(pro[3].data1)){
- var title27_p5 = document.createElement('li');
- title27_p5.innerHTML=pro[3].data1;
- title27_p5.style.fontSize='14px';
- title27.appendChild(title27_p5);
- }
- if(!isEmpty(pro[3].data2)){
- var title27_p6 = document.createElement('li');
- title27_p6.innerHTML=pro[3].data2;
- title27_p6.style.fontSize='14px';
- title27.appendChild(title27_p6);
- }
- }
- var b6 = isEmpty(pro[4]);
- if(!b6){
- if(!isEmpty(pro[4].data1)){
- var title27_p10 = document.createElement('li');
- title27_p10.innerHTML=pro[4].data1;
- title27_p10.style.fontSize='14px';
- title27.appendChild(title27_p10);
- }
- if(!isEmpty(pro[4].data2)){
- var title27_p8 = document.createElement('li');
- title27_p8.innerHTML=!isEmpty(pro[4].data2);
- title27_p8.style.fontSize='14px';
- title27.appendChild(title27_p8);
- }
- }
- var b7 = isEmpty(pro[5]);
- if(!b7){
- if(!isEmpty(pro[5].data1)){
- var title27_p9 = document.createElement('li');
- title27_p9.innerHTML=pro[5].data1;
- title27_p9.style.fontSize='14px';
- title27.appendChild(title27_p9);
- }
- }
- if(!isEmpty(pro[9])){
- var title27_li7 = document.createElement('li');
- title27_li7.innerHTML=pro[9];
- 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);
- var other= conclusionJson.other;
- var o1 = isEmpty(other[1]);
- if(!isEmpty(other[1])){
- if(!isEmpty(other[1].data1)){
- var title29_li6 = document.createElement('li');
- title29_li6.innerHTML=other[1].data1;
- title29_li6.style.fontSize='14px';
- title29_ol1.appendChild(title29_li6);
- }
- if(!isEmpty(other[1].data2)){
- var title29_li1 = document.createElement('li');
- title29_li1.innerHTML=other[1].data2;
- title29_li1.style.fontSize='14px';
- title29_ol1.appendChild(title29_li1);
- }
- }
- if(!isEmpty(other[2])){
- if(!isEmpty(other[2].data1)){
- var title29_li2 = document.createElement('li');
- title29_li2.innerHTML=other[2].data1;
- title29_li2.style.fontSize='14px';
- title29_ol1.appendChild(title29_li2);
- }
- if(!isEmpty(other[2].data2)){
- var title29_li3 = document.createElement('li');
- title29_li3.innerHTML=other[2].data2;
- title29_li3.style.fontSize='14px';
- title29_ol1.appendChild(title29_li3);
- }
- }
- if(!isEmpty(other[3])){
- if(!isEmpty(other[3].data1)){
- var title29_li4 = document.createElement('li');
- title29_li4.innerHTML=other[3].data1;
- title29_li4.style.fontSize='14px';
- title29_ol1.appendChild(title29_li4);
- }
- if(!isEmpty(other[3].data2)){
- var title29_li5 = document.createElement('li');
- title29_li5.innerHTML=other[3].data2;
- title29_li5.style.fontSize='14px';
- title29_ol1.appendChild(title29_li5);
- }
- }
- if(!isEmpty(other[4])){
- if(!isEmpty(other[4].data2)){
- var title29_li8 = document.createElement('li');
- title29_li8.innerHTML=other[4].data2;
- title29_li8.style.fontSize='14px';
- title29_ol1.appendChild(title29_li8);
- }
- if(!isEmpty(other[4].data1)){
- var title29_li9 = document.createElement('li');
- title29_li9.innerHTML=other[4].data1;
- title29_li9.style.fontSize='14px';
- title29_ol1.appendChild(title29_li9);
- }
- }
- if(!isEmpty(other[5])){
- if(other[5].data1){
- var title29_li10 = document.createElement('li');
- title29_li10.innerHTML=other[5].data1;
- title29_li10.style.fontSize='14px';
- title29_ol1.appendChild(title29_li10);
- }
- }
- if(!isEmpty(other[9])){
- var title29_li7 = document.createElement('li');
- title29_li7.innerHTML=other[9];
- 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(fireDataJson.process_rate);
- $('#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(waterDataJson.process_rate);
- $('#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(rtuDataJson.process_rate);
- $('#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(alarmTotalJson.hjtotalCount);
- var sjresult2 = parseFloat(alarmTotalJson.sjtotalCount);
- var rturesult3 = parseFloat(alarmTotalJson.rtutotalCount);
- var efresult4 = parseFloat(alarmTotalJson.eftotalCount);
- var videoresult5 = parseFloat(alarmTotalJson.videototalCount);
- // if (hjresult1==0 && sjresult2==0 && rturesult3==0 && efresult4==0 && videoresult5==0){
- //
- // title20_p1.innerHTML='本月无报警';
- // }
- $('#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
- },{
- name: '电气火灾系统告警',
- y: efresult4
- },{
- name: '视频系统告警',
- y: videoresult5
- }]
- }]
- });
- }
- var highcharts4 = function () {
- var clefbaifenbi = parseFloat(efDataJson.process_rate);
- $('#container4').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: clefbaifenbi,
- sliced: true,
- selected: true
- },{
- name: '未处理',
- y: 100-clefbaifenbi
- }]
- }]
- });
- }
- var highcharts5 = function () {
- var clvideobaifenbi = parseFloat(videoDataJson.process_rate);
- $('#container5').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: clvideobaifenbi,
- sliced: true,
- selected: true
- },{
- name: '未处理',
- y: 100-clvideobaifenbi
- }]
- }]
- });
- }
- // 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 show_detail_data = function(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+'&companyCode='+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.month = project_date;
- query.build_code = build_code;
- Ext.MessageBox.wait('Loading', '查询中…');
- $.ajax({
- type:'POST',
- url: baseUrl+"iot/company/view/getYearReport",
- data: {
- queryJson : Ext.JSON.encode(query)
- },
- success: function(result){
- var json = eval('(' + result + ')');
- // ConfirmStore = json.create_time;
- companyName=json.company_name;
- eventTime=json.event_time;
- project_info=json.project_info;
- projectInfoJson = eval('(' + project_info + ')');
- approach_time=projectInfoJson.approach_time;
- complete_time=projectInfoJson.complete_time;
- check_time=projectInfoJson.check_time;
- instal_device_info=json.instal_device_info;
- // var instalDeviceInfoJson = eval('(' + instal_device_info + ')');
- instalDeviceInfoJson = JSON.parse(instal_device_info);
- monitor_point_info=json.monitor_point_info;
- monitorPointInfoJson = eval('(' + monitor_point_info + ')');
- count_time=json.count_time;
- countTimeJson = eval('(' + count_time + ')');
- count_report=json.count_report;
- countReportJson = eval('(' + count_report + ')');
- alarm_total=json.alarm_total;
- alarmTotalJson = eval('(' + alarm_total + ')');
- fire_data=json.fire_data;
- fireDataJson = eval('(' + fire_data + ')');
- water_data=json.water_data;
- waterDataJson = eval('(' + water_data + ')');
- rtu_data=json.rtu_data;
- rtuDataJson = eval('(' + rtu_data + ')');
- ef_data=json.ef_data;
- efDataJson = eval('(' + ef_data + ')');
- video_data=json.video_data;
- videoDataJson = eval('(' + video_data + ')');
- conclusion=json.conclusion;
- conclusionJson = eval('(' + conclusion + ')');
- Ext.MessageBox.hide();
- draw_confirm(countTimeJson.startData,countTimeJson.endData,countTimeJson.days,eventTime);
- highcharts();
- highcharts1();
- highcharts2();
- highcharts3();
- highcharts4();
- highcharts5();
- }
- });
- }
- 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)
- }
- }
- });
- Ext.define('CompanyComboStore2',{
- extend:'Ext.data.Model',
- fields: [
- {name:'id', type:'string'},
- {name:'event_time',type:'string'}
- ]
- });
- CompanyStory2 = Ext.create('Ext.data.Store',{
- model: 'CompanyComboStore2',
- proxy: {
- type: 'ajax',
- actionMethods: {
- create : 'POST',
- read : 'POST', // by default GET
- update : 'POST',
- destroy: 'POST'
- },
- url: baseUrl+'iot/company/view/getYearTimeList',
- reader: {
- type: 'json',
- root: 'TIMELIST',
- },
- extraParams:{
- build_code: 0
- }
- },
- });
- FilterWin = Ext.create('Ext.form.Panel', {
- id: 'PatrolPlanFilterForm',
- labelWidth: 55,
- defaultType: 'textfield',
- bodyPadding: 15,
- items: [ {
- xtype:'combobox',
- fieldLabel:'建筑物名称',
- id: 'companyCode',
- name:'companyCode',
- itemId:'abc',
- displayField : 'owner_name',
- valueField : 'owner_id',
- allowBlank:false,
- blankText:"不能为空",
- editable : false,
- anchor:'100%',
- store:CompanyStory,
- listeners: { //监听事件
- // select: function () {
- select: function (combo, form, store) {
- CompanyStory2.removeAll(); //将员工的store里边的内容清空
- // items.itemId('aaa').setValue('');
- var form = combo.up();//获取街道下拉框的上层组件
- var townCombo = form.down("#abc");//通过townId加载城镇下拉框组件
- var store = combo.getStore();//获取该下拉框的store
- var proxy = store.getProxy();//准备加载数据
- if (townCombo.value) {//如果城镇下拉框已经选定
- //加载街道的store中城镇名称与城镇下拉框值相等的数据项
- Ext.getCmp('b_month').enable();
- } else {
- Ext.getCmp('b_month').disable();
- }
- },
- change: function (combo) {
- var form = combo.up();//获取街道下拉框的上层组件
- var townCombo = form.down("#mmm");
- townCombo.setValue('');
- }
- }
- }
- ,{
- xtype:'combobox',
- fieldLabel:'查询年份',
- id: 'b_month',
- name:'b_month',
- itemId:'mmm',
- emptyText: '请先选择建筑物名称...',
- displayField : 'event_time',
- valueField : 'event_time',
- allowBlank:false,
- blankText:"不能为空",
- editable : false,
- anchor:'100%',
- store:CompanyStory2,
- listeners: { //监听事件
- // select: function () {
- expand: function (combo, form, store) {
- var form = combo.up();//获取街道下拉框的上层组件
- var townCombo = form.down("#abc");//通过townId加载城镇下拉框组件
- var store = combo.getStore();//获取该下拉框的store
- var proxy = store.getProxy();//准备加载数据
- Ext.getCmp('b_month').disable();
- if (townCombo.value) {//如果城镇下拉框已经选定
- Ext.getCmp('b_month').enable();
- build_code = Ext.getCmp('companyCode').getValue();
- CompanyStory2.getProxy().extraParams.build_code = build_code;
- CompanyStory2.load();
- }
- },
- // beforeload: function () {
- // Ext.getCmp('month').disable();
- // },
- // click: function () {
- // CompanyStory2.load();
- // }
- }
- }
- ,
- {
- 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.getCmp('b_month').getValue();
- build_code = Ext.getCmp('companyCode').getValue();
- // show_detail_data(start_date,end_date,build_code,project_date);
- show_detail_data(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+'&companyCode='+Ext.getCmp('companyCode').getValue();
- }
- }]
- });
- var filterwin = function() {
- Ext.create('Ext.window.Window',{
- title: '工作年报',
- height: 300,
- width: 350,
- layout: 'fit',
- items: FilterWin,
- closeAction: 'hide'
- }).show();
- }();
- });
|