| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911 | 
							- /**
 
-  * company.js
 
-  */
 
- var basePath;
 
- var company_code;
 
- var V_LOGINNAME;
 
- var V_PASSWORD;
 
- var storeTime = 60000;
 
- var buildingStore = null,
 
-     companyStore = null,
 
-     devicesStore = null;
 
- var building_name;
 
- var max_level = 0;
 
- var min_level = 0;
 
- var top_level = 0;
 
- var default_check = 65535;
 
- var myMask;
 
- var show_project_info = true;
 
- var start = 0;
 
- var end = 360;
 
- var theme;
 
- var vAlarmInfoWin;
 
- var online_video = false;
 
- var onair_video = false;
 
- var ConfirmStore;
 
- var modifywin;
 
- var had_play = false;
 
- var fillvalue = false;
 
- Ext.Loader.setConfig({
 
-     enabled: true
 
- });
 
- Ext.Loader.setPath('Ext.ux', '../../res/extjs/examples/ux');
 
- Ext.require([
 
-     'Ext.grid.*',
 
-     'Ext.data.*',
 
-     'Ext.ux.RowExpander',
 
-     'Ext.selection.CheckboxModel'
 
- ]);
 
- var bak_to_front = function() {
 
-     location.href = basePath + 'view/frontpage/map.jsp?company_code=' + company_code;
 
- }
 
- var staSortBypoint = function(a, b) {
 
-     return a.point_code - b.point_code;;
 
- }
 
- var body_resize = function() {
 
-     $("#company_bg_mm").css('display', 'none');
 
-     if ($(document).innerWidth() >= 1820) {
 
-         $("#company_bg_tm").css('display', 'block');
 
-         $("#company_bg_tm").css('width', ($(document).innerWidth() - 1820) + 'px');
 
-         $("#company_bg_bm").css('display', 'block');
 
-         $("#company_bg_bm").css('width', ($(document).innerWidth() - 1820) + 'px');
 
-     } else {
 
-         $("#company_bg_tm").css('display', 'none');
 
-         $("#company_bg_bm").css('display', 'none');
 
-     }
 
-     if ($(document).innerHeight() >= 932) {
 
-         $("#company_bg_ml").css('display', 'block');
 
-         $("#company_bg_mr").css('display', 'block');
 
-         $("#company_bg_ml").css('height', ($(document).innerHeight() - 932) + 'px');
 
-         $("#company_bg_mr").css('height', ($(document).innerHeight() - 932) + 'px');
 
-         if ($(document).innerWidth() >= 1820) {
 
-             $("#company_bg_mm").css('display', 'block');
 
-             $("#company_bg_mm").css('height', ($(document).innerHeight() - 932) + 'px');
 
-             $("#company_bg_mm").css('width', ($(document).innerWidth() - 1820) + 'px');
 
-         }
 
-     } else {
 
-         $("#company_bg_ml").css('display', 'none');
 
-         $("#company_bg_mr").css('display', 'none');
 
-     }
 
-     $("#company_building").css('height', ($(document).innerHeight() - 328) + 'px');
 
-     $("#history_alarm_list").css('width', ($(document).innerWidth() - 975) + 'px');
 
-     $("#history_alarm_list").css('height', ($(document).innerHeight() - 616) + 'px');
 
-     $("#project_info_bar").css('width', ($(document).innerWidth() - 975) + 'px');
 
- }
 
- var chk_click_big = function(obj) {
 
-     location.href = basePath + 'view/3dBig/index.jsp?theme=' + theme + '&company_code=' + ($("#company_code").val());
 
- }
 
- var chk_click = function(obj) {
 
-     if ((obj.id == 'dev_all_checkbox') || (obj.id == 'dev_all_checklabel')) {
 
-         if (default_check != 65535)
 
-             default_check = 65535;
 
-         else
 
-             default_check = 0;
 
-     } else if ((obj.id == 'dev_ui_checkbox') || (obj.id == 'dev_ui_checklabel')) {
 
-         if ((default_check & 1) == 1)
 
-             default_check = (default_check & 65534);
 
-         else
 
-             default_check = (default_check | 1);
 
-     } else if ((obj.id == 'dev_fc_checkbox') || (obj.id == 'dev_fc_checklabel')) {
 
-         if ((default_check & 2) == 2)
 
-             default_check = (default_check & 65533);
 
-         else
 
-             default_check = (default_check | 2);
 
-     } else if ((obj.id == 'dev_ef_checkbox') || (obj.id == 'dev_ef_checklabel')) {
 
-         if ((default_check & 4) == 4)
 
-             default_check = (default_check & 65531);
 
-         else
 
-             default_check = (default_check | 4);
 
-     } else if ((obj.id == 'dev_wp_checkbox') || (obj.id == 'dev_wp_checklabel')) {
 
-         if ((default_check & 8) == 8)
 
-             default_check = (default_check & 65527);
 
-         else
 
-             default_check = (default_check | 8);
 
-     } else if ((obj.id == 'dev_ll_checkbox') || (obj.id == 'dev_ll_checklabel')) {
 
-         if ((default_check & 16) == 16)
 
-             default_check = (default_check & 65519);
 
-         else
 
-             default_check = (default_check | 16);
 
-     } else if ((obj.id == 'dev_ci_checkbox') || (obj.id == 'dev_ci_checklabel')) {
 
-         if ((default_check & 32) == 32)
 
-             default_check = (default_check & 65503);
 
-         else
 
-             default_check = (default_check | 32);
 
-     } else if ((obj.id == 'dev_va_checkbox') || (obj.id == 'dev_va_checklabel')) {
 
-         if ((default_check & 64) == 64)
 
-             default_check = (default_check & 65471);
 
-         else
 
-             default_check = (default_check | 64);
 
-     } else if ((obj.id == 'dev_ot_checkbox') || (obj.id == 'dev_ot_checklabel')) {
 
-         if ((default_check & 128) == 128)
 
-             default_check = (default_check & 65407);
 
-         else
 
-             default_check = (default_check | 128);
 
-     } else if ((obj.id == 'dev_sm_checkbox') || (obj.id == 'dev_sm_checklabel')) {
 
-         if ((default_check & 256) == 256)
 
-             default_check = (default_check & 65279);
 
-         else
 
-             default_check = (default_check | 256);
 
-     }
 
-     if (default_check == 0) {
 
-         $("#dev_all_checkbox").removeClass('dev_checkbox');
 
-         $("#dev_all_checkbox").removeClass('dev_few_checkbox');
 
-         $("#dev_all_checkbox").addClass('dev_uncheckbox');
 
-     } else if (default_check == 65535) {
 
-         $("#dev_all_checkbox").removeClass('dev_uncheckbox');
 
-         $("#dev_all_checkbox").removeClass('dev_few_checkbox');
 
-         $("#dev_all_checkbox").addClass('dev_checkbox');
 
-     } else {
 
-         $("#dev_all_checkbox").removeClass('dev_uncheckbox');
 
-         $("#dev_all_checkbox").removeClass('dev_checkbox');
 
-         $("#dev_all_checkbox").addClass('dev_few_checkbox');
 
-     }
 
-     if ((default_check & 1) == 1) {
 
-         $("#dev_ui_checkbox").removeClass('dev_uncheckbox');
 
-         $("#dev_ui_checkbox").addClass('dev_checkbox');
 
-     } else {
 
-         $("#dev_ui_checkbox").removeClass('dev_checkbox');
 
-         $("#dev_ui_checkbox").addClass('dev_uncheckbox');
 
-     }
 
-     if ((default_check & 2) == 2) {
 
-         $("#dev_fc_checkbox").removeClass('dev_uncheckbox');
 
-         $("#dev_fc_checkbox").addClass('dev_checkbox');
 
-     } else {
 
-         $("#dev_fc_checkbox").removeClass('dev_checkbox');
 
-         $("#dev_fc_checkbox").addClass('dev_uncheckbox');
 
-     }
 
-     if ((default_check & 4) == 4) {
 
-         $("#dev_ef_checkbox").removeClass('dev_uncheckbox');
 
-         $("#dev_ef_checkbox").addClass('dev_checkbox');
 
-     } else {
 
-         $("#dev_ef_checkbox").removeClass('dev_checkbox');
 
-         $("#dev_ef_checkbox").addClass('dev_uncheckbox');
 
-     }
 
-     if ((default_check & 8) == 8) {
 
-         $("#dev_wp_checkbox").removeClass('dev_uncheckbox');
 
-         $("#dev_wp_checkbox").addClass('dev_checkbox');
 
-     } else {
 
-         $("#dev_wp_checkbox").removeClass('dev_checkbox');
 
-         $("#dev_wp_checkbox").addClass('dev_uncheckbox');
 
-     }
 
-     if ((default_check & 16) == 16) {
 
-         $("#dev_ll_checkbox").removeClass('dev_uncheckbox');
 
-         $("#dev_ll_checkbox").addClass('dev_checkbox');
 
-     } else {
 
-         $("#dev_ll_checkbox").removeClass('dev_checkbox');
 
-         $("#dev_ll_checkbox").addClass('dev_uncheckbox');
 
-     }
 
-     if ((default_check & 32) == 32) {
 
-         $("#dev_ci_checkbox").removeClass('dev_uncheckbox');
 
-         $("#dev_ci_checkbox").addClass('dev_checkbox');
 
-     } else {
 
-         $("#dev_ci_checkbox").removeClass('dev_checkbox');
 
-         $("#dev_ci_checkbox").addClass('dev_uncheckbox');
 
-     }
 
-     if ((default_check & 64) == 64) {
 
-         $("#dev_va_checkbox").removeClass('dev_uncheckbox');
 
-         $("#dev_va_checkbox").addClass('dev_checkbox');
 
-     } else {
 
-         $("#dev_va_checkbox").removeClass('dev_checkbox');
 
-         $("#dev_va_checkbox").addClass('dev_uncheckbox');
 
-     }
 
-     if ((default_check & 128) == 128) {
 
-         $("#dev_ot_checkbox").removeClass('dev_uncheckbox');
 
-         $("#dev_ot_checkbox").addClass('dev_checkbox');
 
-     } else {
 
-         $("#dev_ot_checkbox").removeClass('dev_checkbox');
 
-         $("#dev_ot_checkbox").addClass('dev_uncheckbox');
 
-     }
 
-     if ((default_check & 256) == 256) {
 
-         $("#dev_sm_checkbox").removeClass('dev_uncheckbox');
 
-         $("#dev_sm_checkbox").addClass('dev_checkbox');
 
-     } else {
 
-         $("#dev_sm_checkbox").removeClass('dev_checkbox');
 
-         $("#dev_sm_checkbox").addClass('dev_uncheckbox');
 
-     }
 
-     bak_reset();
 
- }
 
- var clear_append_form = function() {
 
-     Ext.getCmp('fa_company_code').setValue("");
 
-     Ext.getCmp('fa_userfile').setValue("");
 
-     Ext.getCmp('FactoryListPageToolbar').moveFirst();
 
- }
 
- var sc = function() {
 
-     modifywin();
 
- }
 
- var chk_empty_level = function(level) {
 
-     for (var i = 0; i < buildingStore.length; i++) {
 
-         if (buildingStore[i].min_level == level) {
 
-             if (((default_check & 1) == 1) && (buildingStore[i].dwtype == 'YTUI'))
 
-                 return false;
 
-             else if (((default_check & 2) == 2) && (buildingStore[i].dwtype == 'YTFC'))
 
-                 return false;
 
-             else if (((default_check & 4) == 4) && (buildingStore[i].dwtype == 'YTEF'))
 
-                 return false;
 
-             else if (((default_check & 8) == 8) && (buildingStore[i].dwtype == 'YTWP'))
 
-                 return false;
 
-             else if (((default_check & 16) == 16) && (buildingStore[i].dwtype == 'YTLL'))
 
-                 return false;
 
-             else if (((default_check & 32) == 32) && (buildingStore[i].dwtype == 'YTCI'))
 
-                 return false;
 
-             else if (((default_check & 64) == 64) && (buildingStore[i].dwtype == 'YTVA'))
 
-                 return false;
 
-             else if (((default_check & 128) == 128) && (buildingStore[i].dwtype == 'YTWC'))
 
-                 return false;
 
-             else if (((default_check & 256) == 256) && (buildingStore[i].dwtype == 'YTSM'))
 
-                 return false;
 
-         }
 
-     }
 
-     return true;
 
- }
 
- var draw_buinding = function() {
 
-     var building_icon_height = 0;
 
-     $("#building_level_count").html(max_level);
 
-     let array = ["10309", "10308", "10307", "10306", "10305", "10304", "10303", "10302", "10301", "10300", "10299", "10298", "10297", "10296", "10295", "10294", "10293", "10292", "10291", "10290", "10289", "10288", "10287", "10286", "10285", "10284", "10283", "10282", "10281", "10280", "10279", "10278", "10277", "10276", "10275", "10274", "10273", "10272", "10271", "10270", "10269", "10268", "10267", "10266", "10265", "10264", "10263", "10262", "10261", "10260", "10259", "10258", "10257", "10256", "10255", "10254", "10253", "10252", "10251", "10250", "10249", "10248", "10246", "10245", "10244", "10243", "10242", "10241", "10240", "10239", "10238", "10237", "10236", "10234"]
 
-     //  10244,10243,10242,10238 16层
 
-     //  if (company_code == '10182') {
 
-     if (array.includes(company_code)) {
 
-         //    $("#dev_big_checklabel").addClass('dev_big_checklabel');
 
-         //   var dev_big_checklabel = document.getElementById('dev_big_checklabel');
 
-         //     dev_big_checklabel.innerHTML = '最大化';
 
-         $("#company_bg_tl").removeClass('company_bg_tl');
 
-         $("#company_bg_tl").addClass('company_bg_YP');
 
-         $("#dev_all_checkbox").hide();
 
-         $("#dev_all_checklabel").hide();
 
-         $("#dev_ui_checkbox").hide();
 
-         $("#dev_ui_checklabel").hide();
 
-         $("#dev_sm_checkbox").hide();
 
-         $("#dev_sm_checklabel").hide();
 
-         $("#dev_fc_checkbox").hide();
 
-         $("#dev_fc_checklabel").hide();
 
-         $("#dev_ef_checkbox").hide();
 
-         $("#dev_ef_checklabel").hide();
 
-         $("#dev_wp_checkbox").hide();
 
-         $("#dev_wp_checklabel").hide();
 
-         $("#dev_ll_checkbox").hide();
 
-         $("#dev_ll_checklabel").hide();
 
-         $("#dev_ci_checkbox").hide();
 
-         $("#dev_ci_checklabel").hide();
 
-         $("#dev_va_checkbox").hide();
 
-         $("#dev_va_checklabel").hide();
 
-         $("#dev_ot_checkbox").hide();
 
-         $("#dev_ot_checklabel").hide();
 
-         $("#company_building").removeClass('company_building');
 
-         $("#company_building").addClass('company_building_on');
 
-         var company_building = document.getElementById('company_building');
 
-         company_building.innerHTML = '<iframe id="myIframe" name="thingjs" src="https://www.thingjs.com/s/b11227d4fd5505106989737c?params=105b0f77fd24654d4eebc434e9" style="width:146%;height:123%;border:1px solid #0082ff;"></iframe>';
 
-         var t1 = window.setTimeout(function() {
 
-             //     console.log(buildingStore);
 
-             //    debugger;
 
-             callFuncInThingJS("userListener", buildingStore, top_level,company_code);
 
-             window.clearTimeout(t1);
 
-         }, 10000)
 
-     } else {
 
-         var company_building = document.getElementById('company_building');
 
-         company_building.innerHTML = '';
 
-         var currett_build = document.createElement('div');
 
-         company_building.appendChild(currett_build)
 
-         var building_top = document.createElement('div');
 
-         building_top.setAttribute('class', 'building_top');
 
-         building_top.style.top = '0px';
 
-         currett_build.appendChild(building_top);
 
-         building_icon_height += 120;
 
-         var top_info = document.createElement('div');
 
-         top_info.id = "building_top_info";
 
-         top_info.setAttribute('class', 'building_top_label');
 
-         top_info.innerHTML = 'RF';
 
-         building_top.appendChild(top_info);
 
-         var top_icon = document.createElement('div');
 
-         top_icon.setAttribute('class', 'building_top_icon');
 
-         building_top.appendChild(top_icon);
 
-         if (max_level > 0) {
 
-             var last_empty = max_level + 2;
 
-             var first_empty = max_level + 2;
 
-             for (var i = max_level; i > 0; i--) {
 
-                 if (chk_empty_level(i)) {
 
-                     if (last_empty != (i + 1)) {
 
-                         first_empty = i;
 
-                         last_empty = i;
 
-                         var build_level = document.createElement('div');
 
-                         build_level.setAttribute('class', 'building_level');
 
-                         build_level.style.top = (building_icon_height - 60) + 'px';
 
-                         currett_build.appendChild(build_level);
 
-                         building_icon_height += 48;
 
-                         var level_info = document.createElement('div');
 
-                         level_info.id = "building_empty_level_info_" + i;
 
-                         level_info.setAttribute('class', 'building_level_info')
 
-                         level_info.innerHTML = i + 'F';
 
-                         build_level.appendChild(level_info);
 
-                         var level_icon = document.createElement('div');
 
-                         level_icon.setAttribute('class', 'building_empty_level_icon');
 
-                         build_level.appendChild(level_icon);
 
-                     } else {
 
-                         var level_info = document.getElementById('building_empty_level_info_' + first_empty);
 
-                         if (level_info != undefined)
 
-                             level_info.innerHTML = i + 'F~' + first_empty + 'F';
 
-                         last_empty = i;
 
-                     }
 
-                 } else {
 
-                     var build_level = document.createElement('div');
 
-                     build_level.setAttribute('class', 'building_level');
 
-                     build_level.style.top = (building_icon_height - 60) + 'px';
 
-                     currett_build.appendChild(build_level);
 
-                     building_icon_height += 48;
 
-                     var level_info = document.createElement('div');
 
-                     level_info.id = "building_level_info_" + i;
 
-                     level_info.setAttribute('class', 'building_level_info')
 
-                     level_info.innerHTML = i + 'F';
 
-                     build_level.appendChild(level_info);
 
-                     var level_icon = document.createElement('div');
 
-                     level_icon.setAttribute('class', 'building_level_icon');
 
-                     build_level.appendChild(level_icon);
 
-                 }
 
-             }
 
-         }
 
-         if (min_level < 0) {
 
-             for (var i = -1; i >= min_level; i--) {
 
-                 var base_level = document.createElement('div');
 
-                 base_level.setAttribute('class', 'building_base');
 
-                 base_level.style.top = (building_icon_height - 60) + 'px';
 
-                 currett_build.appendChild(base_level);
 
-                 building_icon_height += 48;
 
-                 var base_info = document.createElement('div');
 
-                 base_info.id = 'building_base_info_' + (0 - i);
 
-                 base_info.setAttribute('class', 'building_base_info');
 
-                 base_info.innerHTML = 'B' + (0 - i) + 'F';
 
-                 base_level.appendChild(base_info);
 
-                 var base_icon = document.createElement('div');
 
-                 base_icon.setAttribute('class', 'building_base_icon');
 
-                 base_level.appendChild(base_icon);
 
-             }
 
-         }
 
-         $("#company_building").css('height', ($(document).innerHeight() - 402) + 'px');
 
-         building_icon_height += 60;
 
-         currett_build.style.marginLeft = '59px';
 
-         currett_build.style.marginRight = '59px';
 
-         currett_build.style.width = '536px';
 
-         if ((buildingStore != null) && (buildingStore.length > 0)) {
 
-             for (var i = 0; i < buildingStore.length; i++) {
 
-                 var iconid = buildingStore[i].dwtype + '_' + buildingStore[i].min_level;
 
-                 var icon = document.getElementById(iconid);
 
-                 if (icon == undefined) {
 
-                     icon = document.createElement('div');
 
-                     icon.id = buildingStore[i].dwtype + '_' + buildingStore[i].min_level;
 
-                     icon.dwtype = buildingStore[i].dwtype;
 
-                     icon.level = buildingStore[i].min_level;
 
-                     icon.owner_code = buildingStore[i].owner_code;
 
-                     icon.style.position = 'absolute';
 
-                     icon.style.width = '62px';
 
-                     icon.style.height = '62px';
 
-                     icon.style.cursor = 'pointer';
 
-                     icon.setAttribute('onclick', 'icon_click(this)');
 
-                     currett_build.appendChild(icon);
 
-                     var this_min_level = buildingStore[i].min_level;
 
-                     var level_label = document.getElementById("building_level_info_" + this_min_level);
 
-                     if (this_min_level == top_level) {
 
-                         level_label = document.getElementById('building_top_info');
 
-                     } else if (this_min_level < 0) {
 
-                         level_label = document.getElementById('building_base_info_' + (0 - this_min_level));
 
-                     }
 
-                     if (level_label != null) {
 
-                         if (buildingStore[i].dwtype == 'YTUI') {
 
-                             if ((default_check & 1) == 1) {
 
-                                 icon.title = '用户传输装置';
 
-                                 icon.style.top = (level_label.offsetParent.offsetTop + 1) + 'px'
 
-                                 icon.style.left = (level_label.offsetParent.offsetLeft + 28) + 'px';
 
-                                 icon.style.backgroundImage = 'url(../../res/img/icons/ui_icon.png)';
 
-                             }
 
-                         } else if (buildingStore[i].dwtype == 'YTFC') {
 
-                             if ((default_check & 2) == 2) {
 
-                                 icon.title = '消防控制柜';
 
-                                 icon.style.top = (level_label.offsetParent.offsetTop + 15) + 'px'
 
-                                 icon.style.left = (level_label.offsetParent.offsetLeft + 68) + 'px';
 
-                                 icon.style.backgroundImage = 'url(../../res/img/icons/fc_icon.png)';
 
-                             }
 
-                         } else if (buildingStore[i].dwtype == 'YTEF') {
 
-                             if ((default_check & 4) == 4) {
 
-                                 icon.title = '电气火灾';
 
-                                 icon.style.top = (level_label.offsetParent.offsetTop + 29) + 'px'
 
-                                 icon.style.left = (level_label.offsetParent.offsetLeft + 108) + 'px';
 
-                                 icon.style.backgroundImage = 'url(../../res/img/icons/ef_icon.png)';
 
-                             }
 
-                         } else if (buildingStore[i].dwtype == 'YTWP') {
 
-                             if ((default_check & 8) == 8) {
 
-                                 icon.title = '水压';
 
-                                 icon.style.top = (level_label.offsetParent.offsetTop + 43) + 'px'
 
-                                 icon.style.left = (level_label.offsetParent.offsetLeft + 148) + 'px';
 
-                                 icon.style.backgroundImage = 'url(../../res/img/icons/wp0_icon.png)';
 
-                             }
 
-                         } else if (buildingStore[i].dwtype == 'YTLL') {
 
-                             if ((default_check & 16) == 16) {
 
-                                 icon.title = '液位';
 
-                                 icon.style.top = (level_label.offsetParent.offsetTop + 48) + 'px'
 
-                                 icon.style.left = (level_label.offsetParent.offsetLeft + 188) + 'px';
 
-                                 icon.style.backgroundImage = 'url(../../res/img/icons/ll_icon.png)';
 
-                             }
 
-                         } else if (buildingStore[i].dwtype == 'YTCI') {
 
-                             if ((default_check & 32) == 32) {
 
-                                 icon.title = '环境监测';
 
-                                 icon.style.top = (level_label.offsetParent.offsetTop + 43) + 'px'
 
-                                 icon.style.left = (level_label.offsetParent.offsetLeft + 228) + 'px';
 
-                                 icon.style.backgroundImage = 'url(../../res/img/icons/ci_icon.png)';
 
-                             }
 
-                         } else if (buildingStore[i].dwtype == 'YTVA') {
 
-                             if ((default_check & 64) == 64) {
 
-                                 icon.title = '视频监控';
 
-                                 icon.style.top = (level_label.offsetParent.offsetTop + 29) + 'px'
 
-                                 icon.style.left = (level_label.offsetParent.offsetLeft + 268) + 'px';
 
-                                 icon.style.backgroundImage = 'url(../../res/img/icons/va_icon.png)';
 
-                             }
 
-                         } else if (buildingStore[i].dwtype == 'YTWC') {
 
-                             if ((default_check & 128) == 128) {
 
-                                 icon.title = '风机控制柜';
 
-                                 icon.style.top = (level_label.offsetParent.offsetTop + 15) + 'px'
 
-                                 icon.style.left = (level_label.offsetParent.offsetLeft + 308) + 'px';
 
-                                 icon.style.backgroundImage = 'url(../../res/img/icons/wc_icon.png)';
 
-                             }
 
-                         } else if (buildingStore[i].dwtype == 'YTSM') {
 
-                             if ((default_check & 256) == 256) {
 
-                                 icon.title = '烟感';
 
-                                 icon.style.top = (level_label.offsetParent.offsetTop + 1) + 'px';
 
-                                 icon.style.left = (level_label.offsetParent.offsetLeft + 348) + 'px';
 
-                                 icon.style.backgroundImage = 'url(../../res/img/icons/sm_icon.png)';
 
-                             }
 
-                         }
 
-                     }
 
-                 } else
 
-                     icon.owner_code = "";
 
-             }
 
-         }
 
-     }
 
-     if (show_project_info) {
 
-         var project_info_bar = document.getElementById('project_info_bar');
 
-         project_info_bar.innerHTML = '';
 
-         var project_label = document.createElement('div');
 
-         project_label.setAttribute('class', 'project_label');
 
-         project_label.style.position = 'absolute';
 
-         project_label.style.top = '30px';
 
-         project_label.style.left = '50px';
 
-         project_label.innerHTML = '项目名称';
 
-         project_info_bar.appendChild(project_label);
 
-         var project_info = document.createElement('div');
 
-         //  ;
 
-         project_info.setAttribute('class', 'project_info');
 
-         project_info.style.position = 'absolute';
 
-         project_info.style.top = '60px';
 
-         project_info.style.left = '50px';
 
-         project_info.innerHTML = companyStore.company_name;
 
-         project_info_bar.appendChild(project_info);
 
-         project_label = document.createElement('div');
 
-         project_label.setAttribute('class', 'project_label');
 
-         project_label.style.position = 'absolute';
 
-         project_label.style.top = '110px';
 
-         project_label.style.left = '50px';
 
-         project_label.innerHTML = '项目地址';
 
-         project_info_bar.appendChild(project_label);
 
-         project_info = document.createElement('div');;
 
-         project_info.setAttribute('class', 'project_info');
 
-         project_info.style.position = 'absolute';
 
-         project_info.style.top = '140px';
 
-         project_info.style.left = '50px';
 
-         project_info.innerHTML = companyStore.address;
 
-         project_info_bar.appendChild(project_info);
 
-         project_label = document.createElement('div');
 
-         project_label.setAttribute('class', 'project_label');
 
-         project_label.style.position = 'absolute';
 
-         project_label.style.top = '190px';
 
-         project_label.style.left = '50px';
 
-         project_label.innerHTML = '项目坐标';
 
-         project_info_bar.appendChild(project_label);
 
-         project_info = document.createElement('div');;
 
-         project_info.setAttribute('class', 'project_info');
 
-         project_info.style.position = 'absolute';
 
-         project_info.style.top = '220px';
 
-         project_info.style.left = '50px';
 
-         project_info.innerHTML = companyStore.lng + ',' + companyStore.lat;
 
-         project_info_bar.appendChild(project_info);
 
-         project_label = document.createElement('div');
 
-         project_label.setAttribute('class', 'project_label');
 
-         project_label.style.position = 'absolute';
 
-         project_label.style.top = '30px';
 
-         project_label.style.left = '480px';
 
-         project_label.innerHTML = '联系人';
 
-         project_info_bar.appendChild(project_label);
 
-         project_info = document.createElement('div');;
 
-         project_info.setAttribute('class', 'project_info');
 
-         project_info.style.position = 'absolute';
 
-         project_info.style.top = '60px';
 
-         project_info.style.left = '480px';
 
-         project_info.innerHTML = companyStore.username;
 
-         project_info_bar.appendChild(project_info);
 
-         project_label = document.createElement('div');
 
-         project_label.setAttribute('class', 'project_label');
 
-         project_label.style.position = 'absolute';
 
-         project_label.style.top = '110px';
 
-         project_label.style.left = '480px';
 
-         project_label.innerHTML = '联系电话';
 
-         project_info_bar.appendChild(project_label);
 
-         project_info = document.createElement('div');;
 
-         project_info.setAttribute('class', 'project_info');
 
-         project_info.style.position = 'absolute';
 
-         project_info.style.top = '140px';
 
-         project_info.style.left = '480px';
 
-         project_info.innerHTML = companyStore.phone;
 
-         project_info_bar.appendChild(project_info);
 
-         var history_alarm_list = document.getElementById('history_alarm_list');
 
-         history_alarm_list.innerHTML = '';
 
-         var table = document.createElement('table');
 
-         table.width = '100%';
 
-         history_alarm_list.appendChild(table);
 
-         var tr = document.createElement('tr');
 
-         table.appendChild(tr);
 
-         var dwtypelist = [1, 7, 2, 6, 16, 17];
 
-         for (var i = 0; i < 6; i++) {
 
-             var td = document.createElement('td');
 
-             td.setAttribute('colspan', '2');
 
-             td.setAttribute('style', 'width:128px;');
 
-             td.setAttribute('class', 'data_bar_title');
 
-             td.style.textAlign = 'center';
 
-             td.style.paddingTop = '15px';
 
-             td.setAttribute('onclick', 'show_alarm_list("' + company_code + '","' + dwtypelist[i] + '")');
 
-             if (i == 0)
 
-                 td.innerHTML = '火灾监控';
 
-             else if (i == 1)
 
-                 td.innerHTML = '电气火灾监控';
 
-             else if (i == 2)
 
-                 td.innerHTML = '水系统监控';
 
-             else if (i == 3)
 
-                 td.innerHTML = 'RTU监控';
 
-             else if (i == 4)
 
-                 td.innerHTML = '视频告警监控'
 
-             else
 
-                 td.innerHTML = '电梯告警监控'
 
-             tr.appendChild(td);
 
-         }
 
-         tr = document.createElement('tr');
 
-         table.appendChild(tr);
 
-         for (var i = 0; i < 6; i++) {
 
-             var td = document.createElement('td');
 
-             td.setAttribute('class', 'data_bar_total_label');
 
-             td.style.textAlign = 'right';
 
-             td.width = '10%';
 
-             td.innerHTML = '设备总数';
 
-             td.setAttribute('onclick', 'show_alarm_list("' + company_code + '","' + dwtypelist[i] + '")');
 
-             tr.appendChild(td);
 
-             td = document.createElement('td');
 
-             td.setAttribute('class', 'data_bar_total_number');
 
-             td.style.textAlign = 'left';
 
-             td.style.paddingLeft = '10px';
 
-             td.setAttribute('onclick', 'show_alarm_list("' + company_code + '","' + dwtypelist[i] + '")');
 
-             if (i == 0)
 
-                 td.innerHTML = companyStore.d1;
 
-             else if (i == 1)
 
-                 td.innerHTML = companyStore.d7;
 
-             else if (i == 2)
 
-                 td.innerHTML = companyStore.d2;
 
-             else if (i == 3)
 
-                 td.innerHTML = companyStore.d6;
 
-             else if (i == 4)
 
-                 td.innerHTML = companyStore.d16;
 
-             else
 
-                 //td.innerHTML=companyStore.d17;
 
-                 td.innerHTML = 0;
 
-             tr.appendChild(td);
 
-         }
 
-         tr = document.createElement('tr');
 
-         table.appendChild(tr);
 
-         for (var i = 0; i < 6; i++) {
 
-             var td = document.createElement('td');
 
-             td.setAttribute('class', 'data_bar_total_label');
 
-             td.style.textAlign = 'right';
 
-             td.width = '10%';
 
-             td.innerHTML = '已处理';
 
-             td.setAttribute('onclick', 'show_alarm_list("' + company_code + '","' + dwtypelist[i] + '")');
 
-             tr.appendChild(td);
 
-             td = document.createElement('td');
 
-             td.setAttribute('class', 'device_confirm_num1');
 
-             td.style.textAlign = 'left';
 
-             td.style.paddingLeft = '10px';
 
-             td.setAttribute('onclick', 'show_alarm_list("' + company_code + '","' + dwtypelist[i] + '")');
 
-             if (i == 0)
 
-                 td.innerHTML = companyStore.d1ac;
 
-             else if (i == 1)
 
-                 td.innerHTML = companyStore.d7ac;
 
-             else if (i == 2)
 
-                 td.innerHTML = companyStore.d2ac;
 
-             else if (i == 3)
 
-                 td.innerHTML = companyStore.d6ac;
 
-             else if (i == 4)
 
-                 td.innerHTML = companyStore.d16ac;
 
-             else
 
-                 //td.innerHTML=companyStore.d17ac;
 
-                 td.innerHTML = 0;
 
-             tr.appendChild(td);
 
-         }
 
-         tr = document.createElement('tr');
 
-         table.appendChild(tr);
 
-         for (var i = 0; i < 6; i++) {
 
-             var td = document.createElement('td');
 
-             td.setAttribute('class', 'data_bar_total_label');
 
-             td.style.textAlign = 'right';
 
-             td.width = '10%';
 
-             td.innerHTML = '待处理';
 
-             td.setAttribute('onclick', 'show_alarm_list("' + company_code + '","' + dwtypelist[i] + '")');
 
-             tr.appendChild(td);
 
-             td = document.createElement('td');
 
-             td.setAttribute('class', 'device_confirm_num2');
 
-             td.style.textAlign = 'left';
 
-             td.style.paddingLeft = '10px';
 
-             td.setAttribute('onclick', 'show_alarm_list("' + company_code + '","' + dwtypelist[i] + '")');
 
-             if (i == 0)
 
-                 td.innerHTML = companyStore.d1a - companyStore.d1ac;
 
-             else if (i == 1)
 
-                 td.innerHTML = companyStore.d7a - companyStore.d7ac;
 
-             else if (i == 2)
 
-                 td.innerHTML = companyStore.d2a - companyStore.d2ac;
 
-             else if (i == 3)
 
-                 td.innerHTML = companyStore.d6a - companyStore.d6ac;
 
-             else if (i == 4)
 
-                 td.innerHTML = companyStore.d16a - companyStore.d16ac;
 
-             else
 
-                 //td.innerHTML=companyStore.d17a-companyStore.d17ac;
 
-                 td.innerHTML = 0;
 
-             tr.appendChild(td);
 
-         }
 
-         tr = document.createElement('tr');
 
-         table.appendChild(tr);
 
-         for (var i = 0; i < 6; i++) {
 
-             var td = document.createElement('td');
 
-             td.setAttribute('colspan', '2');
 
-             tr.appendChild(td);
 
-             var div = document.createElement('div');
 
-             div.id = 'alarm_pie_' + i;
 
-             div.style.margin = '10px auto 10px auto';
 
-             div.style.width = '110px';
 
-             td.setAttribute('onclick', 'show_alarm_list("' + company_code + '","' + dwtypelist[i] + '")');
 
-             td.appendChild(div);
 
-         }
 
-         draw_pie('alarm_pie_0', companyStore.d1a, companyStore.d1ac);
 
-         draw_pie('alarm_pie_1', companyStore.d7a, companyStore.d7ac);
 
-         draw_pie('alarm_pie_2', companyStore.d2a, companyStore.d2ac);
 
-         draw_pie('alarm_pie_3', companyStore.d6a, companyStore.d6ac);
 
-         draw_pie('alarm_pie_4', companyStore.d16a, companyStore.d16ac);
 
-         //draw_pie('alarm_pie_5',companyStore.d17a,companyStore.d17ac);
 
-         draw_pie('alarm_pie_5', 0);
 
-     } else {
 
-         var project_info_bar = document.getElementById('project_info_bar');
 
-         project_info_bar.innerHTML = '';
 
-         var history_alarm_list = document.getElementById('history_alarm_list');
 
-         history_alarm_list.innerHTML = '';
 
-     }
 
- }
 
- function callFuncInThingJS(funcName, data, top_level,company_code) {
 
-     var iframe = $('#myIframe')[0];
 
-     var msg = { data, top_level,company_code }
 
-     var message = {
 
-         'funcName': funcName,
 
-         'param': msg
 
-     }
 
-     iframe.contentWindow.postMessage(message, '*');
 
- }
 
- function myaleart() {
 
-     alert("wwwwwwwwwwwwwwwwwww");
 
- }
 
- window.addEventListener('message', function(e) {
 
-     var data = e.data;
 
-     var funcName = data.funcName;
 
-     var param = data.param;
 
-     if (window[funcName]) window[funcName](param);
 
- });
 
- var show_alarm_list = function(company_code, dwtype) {
 
-     $("#company_detail_title").removeClass('device_status_title_icon');
 
-     $("#company_detail_title").addClass('history_alarm_title_icon');
 
-     $("#bak_reset2").removeClass('hiden');
 
-     $("#bak_reset2").addClass('shown');
 
-     var history_alarm_list = document.getElementById('history_alarm_list');
 
-     history_alarm_list.innerHTML = '<iframe name="queryPage" src="' + basePath + 'view/frontpage/query.jsp?theme=' + theme + '&dwtype=' + dwtype + '&company_code=' + company_code + '" style="width:100%;height:100%;" frameborder="0"></iframe>';
 
-     //	alert(company_code+','+dwtype);
 
- }
 
- var bak_reset = function() {
 
-     $("#company_detail_title").removeClass('history_alarm_title_icon');
 
-     $("#company_detail_title").addClass('device_status_title_icon');
 
-     $("#company_page_title").removeClass('realtime_title_icon');
 
-     $("#company_page_title").addClass('project_title_icon');
 
-     $("#bak_reset").removeClass('shown');
 
-     $("#bak_reset").addClass('hiden');
 
-     $("#bak_reset2").removeClass('shown');
 
-     $("#bak_reset2").addClass('hiden');
 
-     //	$("#history_alarm_list").css('overflow-y','auto');
 
-     var v_reset = document.getElementById('v_reset');
 
-     if (v_reset != undefined) {
 
-         document.body.removeChild(v_reset);
 
-     }
 
-     var big_view = document.getElementById('big_view');
 
-     if (big_view != undefined) {
 
-         document.body.removeChild(big_view);
 
-     }
 
-     show_project_info = true;
 
-     draw_buinding();
 
- }
 
- var dev_click = function(obj) {
 
-     var dwtype = obj.dwtype;
 
-     var level = obj.level;
 
-     var id = obj.owner_code;
 
-     var idx = obj.idx;
 
-     show_project_info = false;
 
-     //	var history_alarm_list = document.getElementById('history_alarm_list');
 
-     //	history_alarm_list.innerHTML='<iframe name="queryPage" src="'+basePath+'view/frontpage/query.jsp?theme='+theme+'&dwtype='+dwtype+'&level='+level+'&objid='+id+'" style="width:100%;height:100%;" frameborder="0"></iframe>';
 
-     show_realtime_status(idx);
 
-     if (dwtype == 'YTVA') {
 
-         onair_video = false;
 
-         chk_cideo();
 
-     }
 
- }
 
- var icon_click = function(obj) {
 
-     debugger;
 
-     var dwtype = obj.dwtype;
 
-     var level = obj.level;
 
-     var id = obj.owner_code;
 
-     show_project_info = false;
 
-     //	$("#company_detail_title").removeClass('device_status_title_icon');
 
-     //	$("#company_detail_title").addClass('history_alarm_title_icon');
 
-     $("#company_page_title").removeClass('project_title_icon');
 
-     $("#company_page_title").addClass('realtime_title_icon');
 
-     $("#bak_reset").removeClass('hiden');
 
-     $("#bak_reset").addClass('shown');
 
-     var project_info_bar = document.getElementById('project_info_bar');
 
-     project_info_bar.innerHTML = '';
 
-     var query = new Object();
 
-     query.dwtype = dwtype;
 
-     query.level = level;
 
-     query.V_LOGINNAME = V_LOGINNAME;
 
-     query.COMPANY_CODE = company_code;
 
-     $.ajax({
 
-         type: 'POST',
 
-         url: basePath + "iot/frontpage/getCurrentStatus",
 
-         data: {
 
-             queryJson: Ext.JSON.encode(query)
 
-         },
 
-         success: function(result) {
 
-             var json = eval('(' + result + ')');
 
-             if (json.action == 'getCurrentStatus') {
 
-                 if (json.check == true) {
 
-                     if (json.devices != undefined) {
 
-                         devicesStore = json.devices;
 
-                         drawCurrentStatus();
 
-                     }
 
-                 } else {
 
-                     Ext.Msg.alert('错误信息', '访问权限错误,请重新登录', function() {
 
-                         window.parent.document.location = basePath;
 
-                     });
 
-                 }
 
-             }
 
-             myMask.hide();
 
-         }
 
-     });
 
-     //	var history_alarm_list = document.getElementById('history_alarm_list');
 
-     //	history_alarm_list.style.overflowY='hidden';
 
-     //	history_alarm_list.innerHTML='<iframe name="queryPage" src="'+basePath+'view/frontpage/query.jsp?theme='+theme+'&dwtype='+dwtype+'&level='+level+'&objid='+id+'&company_code='+company_code+'" style="width:100%;height:100%;" frameborder="0"></iframe>';
 
-     if (dwtype == 'YTVA') {
 
-         onair_video = false;
 
-         chk_cideo();
 
-     }
 
- }
 
- var draw_pie = function(id, total, num) {
 
-     var mColor = '#34abf5';
 
-     var percent = 100;
 
-     if (total > 0)
 
-         percent = Number(((num * 100) / total).toString().match(/^\d+(?:\.\d{0,2})?/));
 
-     if (percent < 60)
 
-         mColor = '#f66167';
 
-     else if (percent < 80)
 
-         mColor = '#DDDF0D';
 
-     Highcharts.getOptions().colors = Highcharts.map(['#f66167', '#34abf5', '#DDDF0D', '#ff2e95', '#39b54a', '#ffb163', '#c233ac', '#9dffad', '#c77051'], function(color) {
 
-         return {
 
-             radialGradient: { cx: 0.5, cy: 0.3, r: 0.7 },
 
-             stops: [
 
-                 [0, color],
 
-                 [1, Highcharts.Color(color).brighten(-0.3).get('rgb')] // darken
 
-             ]
 
-         };
 
-     });
 
-     Highcharts.chart(id, {
 
-         chart: {
 
-             type: 'pie',
 
-             backgroundColor: 'rgba(0,0,0,0)',
 
-             height: '100%',
 
-             options3d: {
 
-                 enabled: true,
 
-                 alpha: 45,
 
-                 beta: 0
 
-             }
 
-         },
 
-         title: {
 
-             text: '处置率:' + percent + '%',
 
-             floating: true,
 
-             y: 95,
 
-             style: { fontSize: '12px', color: '#ffffff' }
 
-         },
 
-         exporting: {
 
-             enabled: false
 
-         },
 
-         credits: {
 
-             enabled: false
 
-         },
 
-         tooltip: {
 
-             //	      enabled: false
 
-             pointFormat: '{point.percentage:.2f}%'
 
-         },
 
-         plotOptions: {
 
-             pie: {
 
-                 allowPointSelect: true,
 
-                 cursor: 'pointer',
 
-                 depth: 15,
 
-                 dataLabels: {
 
-                     enabled: false,
 
-                     format: '{point.name}'
 
-                 }
 
-             }
 
-         },
 
-         series: [{
 
-             type: 'pie',
 
-             name: '处置率',
 
-             startAngle: 90,
 
-             data: [{
 
-                 name: '待处理',
 
-                 y: 100 - percent,
 
-                 sliced: true,
 
-                 selected: true
 
-             },
 
-                 ['已处理', percent]
 
-             ]
 
-         }]
 
-     });
 
- }
 
- var drawCurrentStatus = function() {
 
-     if ((devicesStore != null) && (devicesStore.length > 0)) {
 
-         if (onair_video) {
 
-             onair_video = false;
 
-             chk_cideo();
 
-         }
 
-         var project_info_bar = document.getElementById('project_info_bar');
 
-         var device_icon = document.createElement('img');
 
-         if (devicesStore[0].dwtype == 'YTUI') {
 
-             device_icon.setAttribute('class', 'device_large_icon');
 
-             device_icon.src = basePath + 'res/img/icons/ui_large_icon.gif';
 
-         } else if (devicesStore[0].dwtype == 'YTFC') {
 
-             device_icon.setAttribute('class', 'device_large_icon');
 
-             device_icon.src = basePath + 'res/img/icons/fc_large_icon.gif';
 
-         } else if (devicesStore[0].dwtype == 'YTCI') {
 
-             device_icon.setAttribute('class', 'device_large_icon');
 
-             device_icon.src = basePath + 'res/img/icons/ci_large_icon.gif';
 
-         } else if (devicesStore[0].dwtype == 'YTWP') {
 
-             device_icon.setAttribute('class', 'device_large_icon');
 
-             device_icon.src = basePath + 'res/img/icons/wp1_large_icon.gif';
 
-         } else if (devicesStore[0].dwtype == 'YTLL') {
 
-             device_icon.setAttribute('class', 'device_large_icon');
 
-             device_icon.src = basePath + 'res/img/icons/ll_large_icon.gif';
 
-         } else if (devicesStore[0].dwtype == 'YTVA') {
 
-             device_icon.setAttribute('class', 'device_large_icon');
 
-             device_icon.src = basePath + 'res/img/icons/va_large_icon.gif';
 
-         } else if (devicesStore[0].dwtype == 'YTEF') {
 
-             device_icon.setAttribute('class', 'device_large_icon');
 
-             device_icon.src = basePath + 'res/img/icons/ef_large_icon.gif';
 
-         } else if (devicesStore[0].dwtype == 'YTWC') {
 
-             device_icon.setAttribute('class', 'device_large_icon');
 
-             device_icon.src = basePath + 'res/img/icons/wc_large_icon.gif';
 
-         } else if (devicesStore[0].dwtype == 'YTSM') {
 
-             device_icon.setAttribute('class', 'device_large_icon');
 
-             device_icon.src = basePath + 'res/img/icons/sm_large_icon.gif';
 
-         }
 
-         //		var device_icon = document.createElement('div');
 
-         //		if(devicesStore[0].dwtype=='YTUI'){
 
-         //			device_icon.setAttribute('class','device_large_icon ui_large_icon');
 
-         //		}else if(devicesStore[0].dwtype=='YTFC'){
 
-         //			device_icon.setAttribute('class','device_large_icon fc_large_icon');
 
-         //		}else if(devicesStore[0].dwtype=='YTCI'){
 
-         //			device_icon.setAttribute('class','device_large_icon ci_large_icon');
 
-         //		}else if(devicesStore[0].dwtype=='YTWP'){
 
-         //			device_icon.setAttribute('class','device_large_icon wp1_large_icon');
 
-         //		}else if(devicesStore[0].dwtype=='YTLL'){
 
-         //			device_icon.setAttribute('class','device_large_icon ll_large_icon');
 
-         //		}else if(devicesStore[0].dwtype=='YTVA'){
 
-         //			device_icon.setAttribute('class','device_large_icon va_large_icon');
 
-         //		}else if(devicesStore[0].dwtype=='YTEF'){
 
-         //			device_icon.setAttribute('class','device_large_icon ef_large_icon');
 
-         //		}
 
-         project_info_bar.appendChild(device_icon);
 
-         var device_count_label = document.createElement('div');
 
-         device_count_label.id = 'device_count_label';
 
-         device_count_label.setAttribute('class', 'device_count_label');
 
-         project_info_bar.appendChild(device_count_label);
 
-         var device_list_bar = document.createElement('div');
 
-         device_list_bar.setAttribute('class', 'device_list_bar');
 
-         project_info_bar.appendChild(device_list_bar);
 
-         var status_list_bar = document.createElement('div');
 
-         status_list_bar.id = 'status_list_bar';
 
-         status_list_bar.setAttribute('status', '');
 
-         status_list_bar.setAttribute('class', 'status_list_bar');
 
-         status_list_bar.style.width = ($(document).innerWidth() - 1528) + 'px';
 
-         project_info_bar.appendChild(status_list_bar);
 
-         for (var i = 0; i < devicesStore.length; i++) {
 
-             var dev = document.createElement('div');
 
-             dev.owner_code = devicesStore[i].owner_code;
 
-             dev.id = "device_list_bar_sub_" + i;
 
-             dev.dwtype = devicesStore[i].dwtype;
 
-             dev.level = devicesStore[i].level;
 
-             dev.style.margin = '10px';
 
-             dev.style.padding = '10px';
 
-             dev.style.width = '300px';
 
-             dev.style.cursor = 'pointer';
 
-             dev.idx = i;
 
-             dev.setAttribute('onclick', 'dev_click(this)');
 
-             device_list_bar.appendChild(dev);
 
-             $("#device_list_bar_sub_" + i).mouseover(function() {
 
-                 $(this).css('background', 'rgba(64,85,98,0.7)');
 
-             });
 
-             $("#device_list_bar_sub_" + i).mouseout(function() {
 
-                 $(this).css('background', 'rgba(0,0,0,0)');
 
-             });
 
-             var dev_name_label = document.createElement('div');
 
-             dev_name_label.setAttribute('class', 'project_label');
 
-             dev_name_label.style.marginTop = '6px';
 
-             dev_name_label.innerHTML = '设备名称';
 
-             dev.appendChild(dev_name_label);
 
-             var dev_name_info = document.createElement('div');
 
-             dev_name_info.setAttribute('class', 'project_info');
 
-             dev_name_info.style.marginTop = '12px';
 
-             dev_name_info.innerHTML = devicesStore[i].device_name;
 
-             dev.appendChild(dev_name_info);
 
-             var dev_code_label = document.createElement('div');
 
-             dev_code_label.setAttribute('class', 'project_label');
 
-             dev_code_label.style.marginTop = '14px';
 
-             dev_code_label.innerHTML = '设备编号';
 
-             dev.appendChild(dev_code_label);
 
-             var dev_code_info = document.createElement('div');
 
-             dev_code_info.setAttribute('class', 'project_info');
 
-             dev_code_info.style.marginTop = '12px';
 
-             dev_code_info.innerHTML = devicesStore[i].owner_code;
 
-             dev.appendChild(dev_code_info);
 
-             var dev_OBJ_label = document.createElement('div');
 
-             dev_OBJ_label.setAttribute('class', 'project_label');
 
-             dev_OBJ_label.style.marginTop = '14px';
 
-             dev_OBJ_label.innerHTML = '监测对象';
 
-             dev.appendChild(dev_OBJ_label);
 
-             var dev_OBJ_info = document.createElement('div');
 
-             dev_OBJ_info.setAttribute('class', 'project_info');
 
-             dev_OBJ_info.style.marginTop = '12px';
 
-             dev_OBJ_info.innerHTML = devicesStore[i].object_name;
 
-             dev.appendChild(dev_OBJ_info);
 
-             var dev_time_label = document.createElement('div');
 
-             dev_time_label.setAttribute('class', 'project_label');
 
-             dev_time_label.style.marginTop = '14px';
 
-             dev_time_label.innerHTML = '数据更新时间';
 
-             dev.appendChild(dev_time_label);
 
-             var dev_time_info = document.createElement('div');
 
-             dev_time_info.setAttribute('class', 'project_info');
 
-             dev_time_info.style.marginTop = '12px';
 
-             dev_time_info.style.marginBottom = '12px';
 
-             dev_time_info.innerHTML = (devicesStore[i].status_time == '1970-01-01 08:00:00') ? '-' : devicesStore[i].status_time;
 
-             dev.appendChild(dev_time_info);
 
-         }
 
-     }
 
-     show_realtime_status(0);
 
- }
 
- var big_view_win = function(obj) {
 
-     Ext.create('Ext.window.Window', {
 
-         id: 'big_view_win',
 
-         title: '监控视频',
 
-         height: 680,
 
-         width: 800,
 
-         layout: 'fit',
 
-         modal: true,
 
-         maximizable: true,
 
-         buttons: [{
 
-             text: '关闭',
 
-             handler: function() {
 
-                 Ext.getCmp('big_view_win').destroy();
 
-             }
 
-         }],
 
-         closeAction: 'destroy',
 
-         html: '<iframe width="99%" height="99%" frameborder=0 allowtransparency="true" scrolling=auto src="' + basePath + 'view/frontpage/video.jsp?videoId=' + obj.owner_code + '"></iframe>'
 
-     }).show();
 
- }
 
- var reset_video = function(obj) {
 
-     var query = {
 
-         CMD: 3,
 
-         BODY: {
 
-             DEVICE: obj.owner_code,
 
-             ACTION: 0,
 
-             IDX: 0
 
-         }
 
-     }
 
-     var status_list_bar = document.getElementById('status_list_bar');
 
-     status_list_bar.setAttribute('status', 'connecting');
 
-     status_list_bar.innerHTML = '<div style="margin-top:120px;">连接中,请稍候...</div>';
 
-     $.ajax({
 
-         type: 'POST',
 
-         url: 'https://fire.usky.cn:8443/YtIoT/cgi-bin/demo2.cgi',
 
-         data: 'queryJson:' + JSON.stringify(query),
 
-         success: function(result) {}
 
-     });
 
-     onair_video = false;
 
-     setTimeout(chk_cideo, 5000);
 
- }
 
- var open_video = function(obj) {
 
-     var query = {
 
-         CMD: 3,
 
-         BODY: {
 
-             DEVICE: obj.getAttribute('owner_code'),
 
-             ACTION: 1,
 
-             IDX: 7
 
-         }
 
-     }
 
-     var status_list_bar = document.getElementById('status_list_bar');
 
-     status_list_bar.setAttribute('status', 'connecting');
 
-     status_list_bar.innerHTML = '<div style="margin-top:120px;">连接中,请稍候...</div>';
 
-     $.ajax({
 
-         type: 'POST',
 
-         url: 'https://fire.usky.cn:8443/YtIoT/cgi-bin/demo2.cgi',
 
-         data: 'queryJson:' + JSON.stringify(query),
 
-         success: function(result) {}
 
-     });
 
-     onair_video = false;
 
-     //	setTimeout(chk_cideo,5000);
 
- }
 
- var chk_cideo = function() {
 
-     if (onair_video)
 
-         return;
 
-     var query = {
 
-         CMD: 1
 
-     }
 
-     $.ajax({
 
-         type: 'POST',
 
-         url: 'https://fire.usky.cn:8443/YtIoT/cgi-bin/demo2.cgi',
 
-         data: 'queryJson:' + JSON.stringify(query),
 
-         success: function(result) {
 
-             var json = eval('(' + result + ')');
 
-             var v_reset = document.getElementById('v_reset');
 
-             if (v_reset != undefined) {
 
-                 var found = false;
 
-                 if (json.RESULT.LIST != undefined) {
 
-                     if (json.RESULT.LIST.length > 0) {
 
-                         for (var i = 0; i < json.RESULT.LIST.length; i++) {
 
-                             if (json.RESULT.LIST[i].DEVICE == v_reset.owner_code) {
 
-                                 found = true;
 
-                                 online_video = json.RESULT.LIST[i].LIVEONLINE;
 
-                                 if ((json.RESULT.LIST[i].ONAIR) && (!onair_video)) {
 
-                                     $("#v_reset").css('display', 'block');
 
-                                     $("#big_view").css('display', 'block');
 
-                                     onair_video = true;
 
-                                     var status_list_bar = document.getElementById('status_list_bar');
 
-                                     status_list_bar.setAttribute('status', '');
 
-                                     status_list_bar.innerHTML = '<iframe width="99%" height="99%" frameborder=0 allowtransparency="true" scrolling=auto src="' + basePath + 'view/frontpage/video.jsp?videoId=' + json.RESULT.LIST[i].DEVICE + '"></iframe>';
 
-                                 } else if (!json.RESULT.LIST[i].ONAIR) {
 
-                                     if (json.RESULT.LIST[i].ALIVEVALUE == 3) {
 
-                                         onair_video = false;
 
-                                         var status_list_bar = document.getElementById('status_list_bar');
 
-                                         if (status_list_bar.getAttribute('status') == '')
 
-                                             status_list_bar.innerHTML = '<div style="margin-top:120px;cursor:pointer;" owner_code="' + json.RESULT.LIST[i].DEVICE + '" onclick="open_video(this)">设备在线,点击加载视频</div>';
 
-                                     } else if (json.RESULT.LIST[i].ALIVEVALUE == 2) {
 
-                                         onair_video = false;
 
-                                         var status_list_bar = document.getElementById('status_list_bar');
 
-                                         status_list_bar.setAttribute('status', '');
 
-                                         status_list_bar.innerHTML = '<div style="margin-top:120px;">设备重连中,请稍候...</div>';
 
-                                     } else {
 
-                                         onair_video = false;
 
-                                         var status_list_bar = document.getElementById('status_list_bar');
 
-                                         status_list_bar.setAttribute('status', '');
 
-                                         status_list_bar.innerHTML = '<div style="margin-top:120px;">设备未连线,尝试连接。请稍候...</div>';
 
-                                     }
 
-                                 }
 
-                             }
 
-                         }
 
-                     }
 
-                 }
 
-             }
 
-         }
 
-     });
 
-     setTimeout(chk_cideo, 5000);
 
- }
 
- var show_realtime_status = function(idx) {
 
-     $("#device_count_label").html('');
 
-     if ((devicesStore != null) && (devicesStore.length > idx)) {
 
-         $("#device_count_label").html('[ ' + devicesStore.length + '-' + (idx + 1) + ' ]');
 
-         var status_list_bar = document.getElementById('status_list_bar');
 
-         status_list_bar.setAttribute('status', '');
 
-         status_list_bar.innerHTML = '';
 
-         var title = document.createElement('div');
 
-         title.id = 'device_list_status_title';
 
-         title.style.textAlign = 'center';
 
-         title.style.fontSize = '16px';
 
-         title.style.fontWeight = 'bold';
 
-         title.innerHTML = devicesStore[idx].device_name;
 
-         status_list_bar.appendChild(title);
 
-         var sta = document.createElement('table');
 
-         sta.style.marginTop = '10px';
 
-         sta.width = '100%';
 
-         sta.idx = i;
 
-         status_list_bar.appendChild(sta);
 
-         var v_reset = document.getElementById('v_reset');
 
-         if (v_reset != undefined) {
 
-             document.body.removeChild(v_reset);
 
-         }
 
-         var big_view = document.getElementById('big_view');
 
-         if (big_view != undefined) {
 
-             document.body.removeChild(big_view);
 
-         }
 
-         $("#status_list_bar").removeClass('status_list_bar_video');
 
-         if (devicesStore[idx].dwtype == 'YTVA') {
 
-             online_video = false;
 
-             if (onair_video) {
 
-                 onair_video = false;
 
-                 chk_cideo();
 
-             }
 
-             v_reset = document.createElement('div');
 
-             v_reset.id = 'v_reset';
 
-             v_reset.owner_code = devicesStore[idx].owner_code;
 
-             v_reset.setAttribute('class', 'v_reset');
 
-             v_reset.setAttribute('onclick', 'reset_video(this)');
 
-             v_reset.title = '视频重载';
 
-             document.body.appendChild(v_reset);
 
-             $("#v_reset").css('display', 'none');
 
-             big_view = document.createElement('div');
 
-             big_view.id = 'big_view';
 
-             big_view.owner_code = devicesStore[idx].owner_code;
 
-             big_view.setAttribute('class', 'big_view');
 
-             big_view.setAttribute('onclick', 'big_view_win(this)');
 
-             big_view.title = '视频放大';
 
-             document.body.appendChild(big_view);
 
-             $("#big_view").css('display', 'none');
 
-             $("#status_list_bar").addClass('status_list_bar_video');
 
-             $("#status_list_bar").html('<div style="margin-top:120px;">连接中,请稍候...</div>');
 
-         } else if (devicesStore[idx].dwtype == 'YTFC') {
 
-             var tr = document.createElement('tr');
 
-             sta.appendChild(tr);
 
-             var td = document.createElement('td');
 
-             td.width = '30%';
 
-             td.setAttribute('class', 'point_label project_label');
 
-             td.style.paddingTop = '14px';
 
-             td.id = 'PowerAlarmLabel';
 
-             td.innerHTML = '电源故障状态';
 
-             tr.appendChild(td);
 
-             td = document.createElement('td');
 
-             td.id = 'PowerAlarm';
 
-             td.width = '20%';
 
-             td.setAttribute('class', 'project_info');
 
-             td.style.paddingTop = '12px';
 
-             tr.appendChild(td);
 
-             var td = document.createElement('td');
 
-             td.setAttribute('class', 'point_label project_label');
 
-             td.style.paddingTop = '14px';
 
-             td.width = '30%';
 
-             td.id = 'ManualActLabel';
 
-             td.innerHTML = '手自动状态';
 
-             tr.appendChild(td);
 
-             td = document.createElement('td');
 
-             td.width = '20%';
 
-             td.id = 'ManualAct';
 
-             td.setAttribute('class', 'project_info');
 
-             td.style.paddingTop = '12px';
 
-             tr.appendChild(td);
 
-             tr = document.createElement('tr');
 
-             sta.appendChild(tr);
 
-             var td = document.createElement('td');
 
-             td.setAttribute('class', 'point_label project_label');
 
-             td.style.paddingTop = '14px';
 
-             td.id = 'DevWorking01Label';
 
-             td.innerHTML = '1#设备运行状态';
 
-             tr.appendChild(td);
 
-             td = document.createElement('td');
 
-             td.id = 'DevWorking01';
 
-             td.setAttribute('class', 'project_info');
 
-             td.style.paddingTop = '12px';
 
-             tr.appendChild(td);
 
-             var td = document.createElement('td');
 
-             td.setAttribute('class', 'point_label project_label');
 
-             td.style.paddingTop = '14px';
 
-             td.id = 'DevWorking02Label';
 
-             td.innerHTML = '2#设备运行状态';
 
-             tr.appendChild(td);
 
-             td = document.createElement('td');
 
-             td.id = 'DevWorking02';
 
-             td.setAttribute('class', 'project_info');
 
-             td.style.paddingTop = '12px';
 
-             tr.appendChild(td);
 
-             tr = document.createElement('tr');
 
-             sta.appendChild(tr);
 
-             var td = document.createElement('td');
 
-             td.setAttribute('class', 'point_label project_label');
 
-             td.style.paddingTop = '14px';
 
-             td.id = 'DevAlarm01Label';
 
-             td.innerHTML = '1#设备故障状态';
 
-             tr.appendChild(td);
 
-             td = document.createElement('td');
 
-             td.id = 'DevAlarm01';
 
-             td.setAttribute('class', 'project_info');
 
-             td.style.paddingTop = '12px';
 
-             tr.appendChild(td);
 
-             var td = document.createElement('td');
 
-             td.setAttribute('class', 'point_label project_label');
 
-             td.style.paddingTop = '14px';
 
-             td.id = 'DevAlarm02Label';
 
-             td.innerHTML = '2#设备故障状态';
 
-             tr.appendChild(td);
 
-             td = document.createElement('td');
 
-             td.id = 'DevAlarm02';
 
-             td.setAttribute('class', 'project_info');
 
-             td.style.paddingTop = '12px';
 
-             tr.appendChild(td);
 
-             tr = document.createElement('tr');
 
-             sta.appendChild(tr);
 
-             var td = document.createElement('td');
 
-             td.setAttribute('class', 'point_label project_label');
 
-             td.style.paddingTop = '14px';
 
-             td.id = 'FireAutoActLabel';
 
-             td.innerHTML = '消防联动状态';
 
-             tr.appendChild(td);
 
-             td = document.createElement('td');
 
-             td.id = 'FireAutoAct';
 
-             td.setAttribute('class', 'project_info');
 
-             td.style.paddingTop = '12px';
 
-             tr.appendChild(td);
 
-             var status_list = devicesStore[idx].status_list;
 
-             status_list.sort(staSortBypoint);
 
-             for (var i = 0; i < status_list.length; i++) {
 
-                 var words = status_list[i].content.split(" ");
 
-                 if (words.length > 0) {
 
-                     if (status_list[i].point_code == 1) {
 
-                         $("#PowerAlarmLabel").html(status_list[i].point_name);
 
-                         $("#PowerAlarm").html(words[0]);
 
-                     } else if (status_list[i].point_code == 2) {
 
-                         $("#ManualActLabel").html(status_list[i].point_name);
 
-                         $("#ManualAct").html(words[0]);
 
-                     } else if (status_list[i].point_code == 3) {
 
-                         $("#DevWorking01Label").html(status_list[i].point_name);
 
-                         $("#DevWorking01").html(words[0]);
 
-                     } else if (status_list[i].point_code == 4) {
 
-                         $("#DevWorking02Label").html(status_list[i].point_name);
 
-                         $("#DevWorking02").html(words[0]);
 
-                     } else if (status_list[i].point_code == 5) {
 
-                         $("#DevAlarm01Label").html(status_list[i].point_name);
 
-                         $("#DevAlarm01").html(words[0]);
 
-                     } else if (status_list[i].point_code == 6) {
 
-                         $("#DevAlarm02Label").html(status_list[i].point_name);
 
-                         $("#DevAlarm02").html(words[0]);
 
-                     } else if (status_list[i].point_code == 7) {
 
-                         $("#FireAutoActLabel").html(status_list[i].point_name);
 
-                         $("#FireAutoAct").html(words[0]);
 
-                     }
 
-                 }
 
-             }
 
-         } else if (devicesStore[idx].dwtype == 'YTWC') {
 
-             var status_list = devicesStore[idx].status_list;
 
-             status_list.sort(staSortBypoint);
 
-             for (var i = 0; i < status_list.length; i++) {
 
-                 var tr = document.createElement('tr');
 
-                 sta.appendChild(tr);
 
-                 var td = document.createElement('td');
 
-                 td.width = '30%';
 
-                 td.setAttribute('class', 'point_label project_label');
 
-                 td.style.paddingTop = '14px';
 
-                 td.innerHTML = status_list[i].point_name;
 
-                 tr.appendChild(td);
 
-                 td = document.createElement('td');
 
-                 td.innerHTML = (status_list[i].content).substring(0, 2);
 
-                 td.width = '20%';
 
-                 td.setAttribute('class', 'project_info');
 
-                 td.style.paddingTop = '12px';
 
-                 tr.appendChild(td);
 
-             }
 
-         } else if (devicesStore[idx].dwtype == 'YTEF') {
 
-             var tr = document.createElement('tr');
 
-             sta.appendChild(tr);
 
-             var td = document.createElement('td');
 
-             td.setAttribute('class', 'project_label');
 
-             td.innerHTML = '供电过压状态';
 
-             tr.appendChild(td);
 
-             td = document.createElement('td');
 
-             td.setAttribute('class', 'project_label');
 
-             td.innerHTML = '供电低压状态';
 
-             tr.appendChild(td);
 
-             td = document.createElement('td');
 
-             td.setAttribute('class', 'project_label');
 
-             td.innerHTML = '供电过流状态';
 
-             tr.appendChild(td);
 
-             tr = document.createElement('tr');
 
-             sta.appendChild(tr);
 
-             td = document.createElement('td');
 
-             td.id = 'HighVoltageAlarm'
 
-             td.setAttribute('class', 'project_info');
 
-             tr.appendChild(td);
 
-             td = document.createElement('td');
 
-             td.id = 'LowVoltageAlarm'
 
-             td.setAttribute('class', 'project_info');
 
-             tr.appendChild(td);
 
-             td = document.createElement('td');
 
-             td.id = 'HighCurrentAlarm'
 
-             td.setAttribute('class', 'project_info');
 
-             tr.appendChild(td);
 
-             tr = document.createElement('tr');
 
-             sta.appendChild(tr);
 
-             td = document.createElement('td');
 
-             td.setAttribute('class', 'project_label');
 
-             td.innerHTML = '漏电报警状态';
 
-             tr.appendChild(td);
 
-             tr = document.createElement('tr');
 
-             sta.appendChild(tr);
 
-             td = document.createElement('td');
 
-             td.id = 'ElectricityLeakage'
 
-             td.setAttribute('class', 'project_info');
 
-             tr.appendChild(td);
 
-             tr = document.createElement('tr');
 
-             sta.appendChild(tr);
 
-             td = document.createElement('td');
 
-             td.setAttribute('class', 'project_label');
 
-             td.innerHTML = 'A相线缆高温状态';
 
-             tr.appendChild(td);
 
-             td = document.createElement('td');
 
-             td.setAttribute('class', 'project_label');
 
-             td.innerHTML = 'B相线缆高温状态';
 
-             tr.appendChild(td);
 
-             td = document.createElement('td');
 
-             td.setAttribute('class', 'project_label');
 
-             td.innerHTML = 'C相线缆高温状态';
 
-             tr.appendChild(td);
 
-             tr = document.createElement('tr');
 
-             sta.appendChild(tr);
 
-             td = document.createElement('td');
 
-             td.setAttribute('class', 'project_info');
 
-             td.id = 'HighTemperatureA';
 
-             tr.appendChild(td);
 
-             td = document.createElement('td');
 
-             td.setAttribute('class', 'project_info');
 
-             td.id = 'HighTemperatureB';
 
-             tr.appendChild(td);
 
-             td = document.createElement('td');
 
-             td.setAttribute('class', 'project_info');
 
-             td.id = 'HighTemperatureC';
 
-             tr.appendChild(td);
 
-             tr = document.createElement('tr');
 
-             sta.appendChild(tr);
 
-             td = document.createElement('td');
 
-             td.setAttribute('class', 'project_label');
 
-             td.innerHTML = 'A相电压';
 
-             tr.appendChild(td);
 
-             td = document.createElement('td');
 
-             td.setAttribute('class', 'project_label');
 
-             td.innerHTML = 'B相电压';
 
-             tr.appendChild(td);
 
-             td = document.createElement('td');
 
-             td.setAttribute('class', 'project_label');
 
-             td.innerHTML = 'C相电压';
 
-             tr.appendChild(td);
 
-             tr = document.createElement('tr');
 
-             sta.appendChild(tr);
 
-             td = document.createElement('td');
 
-             td.setAttribute('class', 'project_info');
 
-             td.id = 'VoltageA';
 
-             tr.appendChild(td);
 
-             td = document.createElement('td');
 
-             td.setAttribute('class', 'project_info');
 
-             td.id = 'VoltageB';
 
-             tr.appendChild(td);
 
-             td = document.createElement('td');
 
-             td.setAttribute('class', 'project_info');
 
-             td.id = 'VoltageC';
 
-             tr.appendChild(td);
 
-             tr = document.createElement('tr');
 
-             sta.appendChild(tr);
 
-             td = document.createElement('td');
 
-             td.setAttribute('class', 'project_label');
 
-             td.innerHTML = 'A相电流';
 
-             tr.appendChild(td);
 
-             td = document.createElement('td');
 
-             td.setAttribute('class', 'project_label');
 
-             td.innerHTML = 'B相电流';
 
-             tr.appendChild(td);
 
-             td = document.createElement('td');
 
-             td.setAttribute('class', 'project_label');
 
-             td.innerHTML = 'C相电流';
 
-             tr.appendChild(td);
 
-             tr = document.createElement('tr');
 
-             sta.appendChild(tr);
 
-             td = document.createElement('td');
 
-             td.setAttribute('class', 'project_info');
 
-             td.id = 'CurrentA';
 
-             tr.appendChild(td);
 
-             td = document.createElement('td');
 
-             td.setAttribute('class', 'project_info');
 
-             td.id = 'CurrentB';
 
-             tr.appendChild(td);
 
-             td = document.createElement('td');
 
-             td.setAttribute('class', 'project_info');
 
-             td.id = 'CurrentC';
 
-             tr.appendChild(td);
 
-             tr = document.createElement('tr');
 
-             sta.appendChild(tr);
 
-             td = document.createElement('td');
 
-             td.setAttribute('class', 'project_label');
 
-             td.innerHTML = 'A相温度';
 
-             tr.appendChild(td);
 
-             td = document.createElement('td');
 
-             td.setAttribute('class', 'project_label');
 
-             td.innerHTML = 'B相温度';
 
-             tr.appendChild(td);
 
-             td = document.createElement('td');
 
-             td.setAttribute('class', 'project_label');
 
-             td.innerHTML = 'C相温度';
 
-             tr.appendChild(td);
 
-             tr = document.createElement('tr');
 
-             sta.appendChild(tr);
 
-             td = document.createElement('td');
 
-             td.setAttribute('class', 'project_info');
 
-             td.id = 'TemperatureA';
 
-             tr.appendChild(td);
 
-             td = document.createElement('td');
 
-             td.setAttribute('class', 'project_info');
 
-             td.id = 'TemperatureB';
 
-             tr.appendChild(td);
 
-             td = document.createElement('td');
 
-             td.setAttribute('class', 'project_info');
 
-             td.id = 'TemperatureC';
 
-             tr.appendChild(td);
 
-             var status_list = devicesStore[idx].status_list;
 
-             status_list.sort(staSortBypoint);
 
-             for (var i = 0; i < status_list.length; i++) {
 
-                 if (status_list[i].point_code == 1) {
 
-                     $("#HighVoltageAlarm").html((status_list[i].point_data == '0') ? '正常' : '告警');
 
-                 } else if (status_list[i].point_code == 2) {
 
-                     $("#LowVoltageAlarm").html((status_list[i].point_data == '0') ? '正常' : '告警');
 
-                 } else if (status_list[i].point_code == 3) {
 
-                     $("#HighCurrentAlarm").html((status_list[i].point_data == '0') ? '正常' : '告警');
 
-                 } else if (status_list[i].point_code == 4) {
 
-                     $("#ElectricityLeakage").html((status_list[i].point_data == '0') ? '正常' : '告警');
 
-                 } else if (status_list[i].point_code == 5) {
 
-                     $("#HighTemperatureA").html((status_list[i].point_data == '0') ? '正常' : '告警');
 
-                 } else if (status_list[i].point_code == 6) {
 
-                     $("#HighTemperatureB").html((status_list[i].point_data == '0') ? '正常' : '告警');
 
-                 } else if (status_list[i].point_code == 7) {
 
-                     $("#HighTemperatureC").html((status_list[i].point_data == '0') ? '正常' : '告警');
 
-                 } else if (status_list[i].point_code == 65) {
 
-                     if (status_list[i].point_data.length > 0)
 
-                         $("#VoltageA").html(status_list[i].point_data + '<img class="detail_data_btn" src="' + basePath + 'res/img/common/famicons/chart_curve.png" onclick="show_detail_data(' + devicesStore[idx].owner_code + ',' + status_list[i].point_code + ',\'' + status_list[i].point_name + '\')"/>');
 
-                 } else if (status_list[i].point_code == 66) {
 
-                     if (status_list[i].point_data.length > 0)
 
-                         $("#VoltageB").html(status_list[i].point_data + '<img class="detail_data_btn" src="' + basePath + 'res/img/common/famicons/chart_curve.png" onclick="show_detail_data(' + devicesStore[idx].owner_code + ',' + status_list[i].point_code + ',\'' + status_list[i].point_name + '\')"/>');
 
-                 } else if (status_list[i].point_code == 67) {
 
-                     if (status_list[i].point_data.length > 0)
 
-                         $("#VoltageC").html(status_list[i].point_data + '<img class="detail_data_btn" src="' + basePath + 'res/img/common/famicons/chart_curve.png" onclick="show_detail_data(' + devicesStore[idx].owner_code + ',' + status_list[i].point_code + ',\'' + status_list[i].point_name + '\')"/>');
 
-                 } else if (status_list[i].point_code == 68) {
 
-                     if (status_list[i].point_data.length > 0)
 
-                         $("#CurrentA").html(status_list[i].point_data + '<img class="detail_data_btn" src="' + basePath + 'res/img/common/famicons/chart_curve.png" onclick="show_detail_data(' + devicesStore[idx].owner_code + ',' + status_list[i].point_code + ',\'' + status_list[i].point_name + '\')"/>');
 
-                 } else if (status_list[i].point_code == 69) {
 
-                     if (status_list[i].point_data.length > 0)
 
-                         $("#CurrentB").html(status_list[i].point_data + '<img class="detail_data_btn" src="' + basePath + 'res/img/common/famicons/chart_curve.png" onclick="show_detail_data(' + devicesStore[idx].owner_code + ',' + status_list[i].point_code + ',\'' + status_list[i].point_name + '\')"/>');
 
-                 } else if (status_list[i].point_code == 70) {
 
-                     if (status_list[i].point_data.length > 0)
 
-                         $("#CurrentC").html(status_list[i].point_data + '<img class="detail_data_btn" src="' + basePath + 'res/img/common/famicons/chart_curve.png" onclick="show_detail_data(' + devicesStore[idx].owner_code + ',' + status_list[i].point_code + ',\'' + status_list[i].point_name + '\')"/>');
 
-                 } else if (status_list[i].point_code == 71) {
 
-                     if (status_list[i].point_data.length > 0)
 
-                         $("#TemperatureA").html(status_list[i].point_data + '<img class="detail_data_btn" src="' + basePath + 'res/img/common/famicons/chart_curve.png" onclick="show_detail_data(' + devicesStore[idx].owner_code + ',' + status_list[i].point_code + ',\'' + status_list[i].point_name + '\')"/>');
 
-                 } else if (status_list[i].point_code == 72) {
 
-                     if (status_list[i].point_data.length > 0)
 
-                         $("#TemperatureB").html(status_list[i].point_data + '<img class="detail_data_btn" src="' + basePath + 'res/img/common/famicons/chart_curve.png" onclick="show_detail_data(' + devicesStore[idx].owner_code + ',' + status_list[i].point_code + ',\'' + status_list[i].point_name + '\')"/>');
 
-                 } else if (status_list[i].point_code == 73) {
 
-                     if (status_list[i].point_data.length > 0)
 
-                         $("#TemperatureC").html(status_list[i].point_data + '<img class="detail_data_btn" src="' + basePath + 'res/img/common/famicons/chart_curve.png" onclick="show_detail_data(' + devicesStore[idx].owner_code + ',' + status_list[i].point_code + ',\'' + status_list[i].point_name + '\')"/>');
 
-                 }
 
-             }
 
-         } else if (devicesStore[idx].dwtype == 'YTSM') {
 
-             var status_list = devicesStore[idx].status_list;
 
-             status_list.sort(staSortBypoint);
 
-             for (var i = 0; i < status_list.length; i++) {
 
-                 if (((status_list[i].point_code > 0) && (status_list[i].point_code < 5) && (status_list[i].point_name != '') && (status_list[i].point_code != 3)) ||
 
-                     ((status_list[i].point_code == 3) && (status_list[i].point_data != 0))) {
 
-                     var tr = document.createElement('tr');
 
-                     sta.appendChild(tr);
 
-                     var sta_name = document.createElement('td');
 
-                     sta_name.width = "40%";
 
-                     sta_name.setAttribute('class', 'point_label project_label');
 
-                     sta_name.style.paddingTop = '14px';
 
-                     sta_name.innerHTML = status_list[i].point_name;
 
-                     tr.appendChild(sta_name);
 
-                     var sta_value = document.createElement('td');
 
-                     sta_value.setAttribute('class', 'project_info');
 
-                     sta_value.style.paddingTop = '12px';
 
-                     if (status_list[i].point_code == 1)
 
-                         sta_value.innerHTML = status_list[i].content;
 
-                     else
 
-                         sta_value.innerHTML = status_list[i].point_data + '<img class="detail_data_btn" src="' + basePath + 'res/img/common/famicons/chart_curve.png" onclick="show_detail_data(' + devicesStore[idx].owner_code + ',' + (status_list[i].point_code + ((devicesStore[idx].start_port > 0) ? (devicesStore[idx].start_port + 63) : 0)) + ',\'' + status_list[i].point_name + '\')"/>';
 
-                     tr.appendChild(sta_value);
 
-                 }
 
-             }
 
-         } else {
 
-             var status_list = devicesStore[idx].status_list;
 
-             status_list.sort(staSortBypoint);
 
-             for (var i = 0; i < status_list.length; i++) {
 
-                 if (status_list[i].point_code > 0) {
 
-                     var tr = document.createElement('tr');
 
-                     sta.appendChild(tr);
 
-                     var sta_name = document.createElement('td');
 
-                     sta_name.width = "40%";
 
-                     sta_name.setAttribute('class', 'point_label project_label');
 
-                     sta_name.style.paddingTop = '14px';
 
-                     sta_name.innerHTML = status_list[i].point_name;
 
-                     tr.appendChild(sta_name);
 
-                     var sta_value = document.createElement('td');
 
-                     sta_value.setAttribute('class', 'project_info');
 
-                     sta_value.style.paddingTop = '12px';
 
-                     //					sta_value.style.paddingBottom='12px';
 
-                     if (devicesStore[idx].dwtype == 'YTUI') {
 
-                         if (V_LOGINNAME == 'admin')
 
-                             sta_value.innerHTML = status_list[i].content + '<img class="detail_data_btn" src="' + basePath + 'res/img/common/famicons/chart_curve.png" onclick="show_userinfo_detail(' + devicesStore[idx].owner_code + ')"/>';
 
-                         else
 
-                             sta_value.innerHTML = status_list[i].content;
 
-                     } else if ((devicesStore[idx].dwtype == 'YTWP') || (devicesStore[idx].dwtype == 'YTLL')) {
 
-                         if (status_list[i].point_name.indexOf('状态') >= 0) {
 
-                             if ((status_list[i].point_data == 0) || (status_list[i].point_data == '00'))
 
-                                 sta_value.innerHTML = '正常';
 
-                             else
 
-                                 sta_value.innerHTML = '--';
 
-                         } else if (status_list[i].point_data.length > 0)
 
-                             sta_value.innerHTML = status_list[i].point_data + '<img class="detail_data_btn" src="' + basePath + 'res/img/common/famicons/chart_curve.png" onclick="show_detail_data(' + devicesStore[idx].owner_code + ',' + (status_list[i].point_code + ((devicesStore[idx].start_port > 0) ? (devicesStore[idx].start_port + 63) : 0)) + ',\'' + status_list[i].point_name + '\')"/>';
 
-                     } else if (status_list[i].point_data.length > 0)
 
-                         sta_value.innerHTML = status_list[i].point_data + '<img class="detail_data_btn" src="' + basePath + 'res/img/common/famicons/chart_curve.png" onclick="show_detail_data(' + devicesStore[idx].owner_code + ',' + (status_list[i].point_code + ((devicesStore[idx].start_port > 0) ? (devicesStore[idx].start_port + 63) : 0)) + ',\'' + status_list[i].point_name + '\')"/>';
 
-                     tr.appendChild(sta_value);
 
-                 }
 
-             }
 
-         }
 
-     }
 
- }
 
- var fill_uiwin = function(json) {
 
-     fillvalue = true;
 
-     Ext.getCmp('userinfo_pushalarm').setValue(json.PUSH_WX == 1);
 
-     Ext.getCmp('userinfo_pushtts').setValue(json.PUSH_TTS == 1);
 
-     fillvalue = false;
 
-     var data = new Array();
 
-     for (var i = 0; i < json.LIST.length; i++) {
 
-         var obj = new Array();
 
-         if (json.LIST[i].id == 1)
 
-             obj.push('故障');
 
-         else if (json.LIST[i].id == 2)
 
-             obj.push('告警');
 
-         else if (json.LIST[i].id == 3)
 
-             obj.push('反馈');
 
-         else if (json.LIST[i].id == 4)
 
-             obj.push('监管');
 
-         else if (json.LIST[i].id == 5)
 
-             obj.push('启动');
 
-         else if (json.LIST[i].id == 6)
 
-             obj.push('自检');
 
-         else if (json.LIST[i].id == 7)
 
-             obj.push('屏蔽');
 
-         else if (json.LIST[i].id == 8)
 
-             obj.push('复位');
 
-         else if (json.LIST[i].id == 9)
 
-             obj.push('消音');
 
-         obj.push(json.LIST[i].count);
 
-         data.push(obj);
 
-     }
 
-     var themecolor = ((theme == '') || (theme == 'access')) ? '#ffffff' : '#000000';
 
-     Highcharts.chart('detail_area', {
 
-         chart: {
 
-             type: 'column',
 
-             backgroundColor: 'rgba(0,0,0,0)'
 
-         },
 
-         title: {
 
-             text: '用户传输装置报告类型统计',
 
-             style: { fontSize: '14px', color: themecolor, fontWeight: 'bold' },
 
-         },
 
-         xAxis: {
 
-             type: 'category',
 
-             labels: {
 
-                 style: { fontSize: '12px', color: themecolor, fontWeight: 'bold' }
 
-             }
 
-         },
 
-         yAxis: {
 
-             title: {
 
-                 text: '报告计次',
 
-                 style: { fontSize: '14px', color: themecolor, fontWeight: 'bold' }
 
-             },
 
-             labels: {
 
-                 style: { fontSize: '12px', color: themecolor, fontWeight: 'bold' }
 
-             }
 
-         },
 
-         legend: {
 
-             enabled: false
 
-         },
 
-         exporting: {
 
-             enabled: false
 
-         },
 
-         credits: {
 
-             enabled: false
 
-         },
 
-         series: [{
 
-             name: '报告计次',
 
-             data: data,
 
-             dataLabels: {
 
-                 enabled: true,
 
-                 rotation: -90,
 
-                 align: 'right',
 
-                 format: '{point.y}',
 
-                 style: { fontSize: '14px', color: themecolor, fontWeight: 'bold' },
 
-                 y: 10
 
-             },
 
-             colorByPoint: true
 
-         }]
 
-     });
 
- }
 
- var show_userinfo_detail = function(devId) {
 
-     var device_id = devId;
 
-     Ext.create('Ext.window.Window', {
 
-         id: 'detail_userinfo_win',
 
-         title: '<div id="detail_userinfo_title">用户传输装置信息</div>',
 
-         bodyStyle: 'background-color:rgba(0,0,0,0.0);',
 
-         height: 400,
 
-         width: 1110,
 
-         modal: true,
 
-         layout: {
 
-             type: 'table',
 
-             columns: 6,
 
-             tableAttrs: {
 
-                 style: {
 
-                     width: '100%'
 
-                 }
 
-             }
 
-         },
 
-         buttons: [{
 
-             text: '查岗',
 
-             handler: function() {
 
-                 var query = new Object();
 
-                 query.V_LOGINNAME = V_LOGINNAME;
 
-                 query.V_PASSWORD = V_PASSWORD;
 
-                 query.DEVICE_ID = devId;
 
-                 query.CMD = 91;
 
-                 query.LIMIT = 10;
 
-                 var qjson = Ext.JSON.encode(query);
 
-                 var url = ((company_code == "10012") ? "http://47.103.74.123:8080/YtIoT/cgi-bin/DPAction2.cgi?t=" : "http://47.103.74.123:8080/YtIoT/cgi-bin/DPAction.cgi?t=") + (new Date().getTime());
 
-                 $.ajax({
 
-                     type: 'POST',
 
-                     url: url,
 
-                     data: qjson,
 
-                     success: function(result) {
 
-                         var json = eval('(' + result + ')');
 
-                         if (json.RESULT == '1') {
 
-                             Ext.Msg.alert('操作信息', '命令已下发');
 
-                         }
 
-                     }
 
-                 });
 
-             }
 
-         }, {
 
-             text: '清空',
 
-             handler: function() {
 
-                 var query = new Object();
 
-                 query.V_LOGINNAME = V_LOGINNAME;
 
-                 query.V_PASSWORD = V_PASSWORD;
 
-                 query.DEVICE_ID = devId;
 
-                 query.CMD = 92;
 
-                 query.LIMIT = 0;
 
-                 var qjson = Ext.JSON.encode(query);
 
-                 var url = ((company_code == "10012") ? "http://47.103.74.123:8080/YtIoT/cgi-bin/DPAction2.cgi?t=" : "http://47.103.74.123:8080/YtIoT/cgi-bin/DPAction.cgi?t=") + (new Date().getTime());
 
-                 $.ajax({
 
-                     type: 'POST',
 
-                     url: url,
 
-                     data: qjson,
 
-                     success: function(result) {
 
-                         var json = eval('(' + result + ')');
 
-                         if (json.RESULT == '1') {
 
-                             Ext.Msg.alert('操作信息', '命令已下发');
 
-                             fill_uiwin(json);
 
-                         }
 
-                     }
 
-                 });
 
-             }
 
-         }, {
 
-             text: '查询',
 
-             handler: function() {
 
-                 var query = new Object();
 
-                 query.V_LOGINNAME = V_LOGINNAME;
 
-                 query.V_PASSWORD = V_PASSWORD;
 
-                 query.DEVICE_ID = devId;
 
-                 query.CMD = 93;
 
-                 query.PARAM = 0;
 
-                 var qjson = Ext.JSON.encode(query);
 
-                 var url = ((company_code == "10012") ? "http://47.103.74.123:8080/YtIoT/cgi-bin/DPAction2.cgi?t=" : "http://47.103.74.123:8080/YtIoT/cgi-bin/DPAction.cgi?t=") + (new Date().getTime());
 
-                 $.ajax({
 
-                     type: 'POST',
 
-                     url: url,
 
-                     data: qjson,
 
-                     success: function(result) {
 
-                         var json = eval('(' + result + ')');
 
-                         if (json.RESULT == '1') {
 
-                             fill_uiwin(json);
 
-                         }
 
-                     }
 
-                 });
 
-             }
 
-         }, {
 
-             text: '关闭',
 
-             handler: function() {
 
-                 Ext.getCmp('detail_userinfo_win').destroy();
 
-             }
 
-         }],
 
-         tbar: ['->', {
 
-             xtype: 'checkbox',
 
-             boxLabel: '语音推送',
 
-             id: 'userinfo_pushtts',
 
-             checked: true,
 
-             hidden: true,
 
-             handler: function() {
 
-                 if (!fillvalue) {
 
-                     var pushtts = Ext.getCmp('userinfo_pushtts').getValue();
 
-                     Ext.create('Ext.window.Window', {
 
-                         id: 'detail_userinfo_pushset_win',
 
-                         title: '请验证身份',
 
-                         width: 320,
 
-                         height: 240,
 
-                         modal: true,
 
-                         closable: false,
 
-                         items: [{
 
-                             xtype: 'textfield',
 
-                             name: 'v_loginname',
 
-                             fieldLabel: '登录名',
 
-                             id: 'v_loginname',
 
-                             allowBlank: false
 
-                         }, {
 
-                             xtype: 'textfield',
 
-                             name: 'v_password',
 
-                             fieldLabel: '密  码',
 
-                             id: 'v_password',
 
-                             inputType: 'password',
 
-                             allowBlank: false
 
-                         }],
 
-                         bbar: ['->', {
 
-                             xtype: 'button',
 
-                             text: '提交',
 
-                             handler: function() {
 
-                                 var query = new Object();
 
-                                 query.V_LOGINNAME = V_LOGINNAME;
 
-                                 query.V_PASSWORD = V_PASSWORD;
 
-                                 query.DEVICE_ID = devId;
 
-                                 query.CMD = 95;
 
-                                 query.PARAM = pushtts ? 1 : 0;
 
-                                 var qjson = Ext.JSON.encode(query);
 
-                                 var url = ((company_code == "10012") ? "http://47.103.74.123:8080/YtIoT/cgi-bin/DPAction2.cgi?t=" : "http://47.103.74.123:8080/YtIoT/cgi-bin/DPAction.cgi?t=") + (new Date().getTime());
 
-                                 $.ajax({
 
-                                     type: 'POST',
 
-                                     url: url,
 
-                                     data: qjson,
 
-                                     success: function(result) {
 
-                                         var json = eval('(' + result + ')');
 
-                                         if (json.RESULT == '1') {
 
-                                             Ext.Msg.alert('操作信息', '命令已下发');
 
-                                         }
 
-                                     }
 
-                                 });
 
-                                 this.up("window").close();
 
-                             }
 
-                         }, {
 
-                             xtype: 'button',
 
-                             text: '关闭',
 
-                             handler: function() {
 
-                                 this.up("window").close();
 
-                             }
 
-                         }],
 
-                         closeAction: 'destroy',
 
-                         listeners: {
 
-                             close: function() {
 
-                                 var query = new Object();
 
-                                 query.V_LOGINNAME = V_LOGINNAME;
 
-                                 query.V_PASSWORD = V_PASSWORD;
 
-                                 query.DEVICE_ID = devId;
 
-                                 query.CMD = 93;
 
-                                 query.PARAM = 0;
 
-                                 var qjson = Ext.JSON.encode(query);
 
-                                 var url = ((company_code == "10012") ? "http://47.103.74.123:8080/YtIoT/cgi-bin/DPAction2.cgi?t=" : "http://47.103.74.123:8080/YtIoT/cgi-bin/DPAction.cgi?t=") + (new Date().getTime());
 
-                                 $.ajax({
 
-                                     type: 'POST',
 
-                                     url: url,
 
-                                     data: qjson,
 
-                                     success: function(result) {
 
-                                         var json = eval('(' + result + ')');
 
-                                         if (json.RESULT == '1') {
 
-                                             fill_uiwin(json);
 
-                                         }
 
-                                     }
 
-                                 });
 
-                             }
 
-                         }
 
-                     }).show();
 
-                 }
 
-             }
 
-         }, '-', {
 
-             xtype: 'checkbox',
 
-             boxLabel: '微信推送',
 
-             id: 'userinfo_pushalarm',
 
-             checked: true,
 
-             handler: function() {
 
-                 if (!fillvalue) {
 
-                     var pushalarm = Ext.getCmp('userinfo_pushalarm').getValue();
 
-                     Ext.create('Ext.window.Window', {
 
-                         id: 'detail_userinfo_pushset_win',
 
-                         title: '请验证身份',
 
-                         width: 320,
 
-                         height: 240,
 
-                         modal: true,
 
-                         closable: false,
 
-                         items: [{
 
-                             xtype: 'textfield',
 
-                             name: 'v_loginname',
 
-                             fieldLabel: '登录名',
 
-                             id: 'v_loginname',
 
-                             allowBlank: false
 
-                         }, {
 
-                             xtype: 'textfield',
 
-                             name: 'v_password',
 
-                             fieldLabel: '密  码',
 
-                             id: 'v_password',
 
-                             inputType: 'password',
 
-                             allowBlank: false
 
-                         }],
 
-                         bbar: ['->', {
 
-                             xtype: 'button',
 
-                             text: '提交',
 
-                             handler: function() {
 
-                                 var query = new Object();
 
-                                 query.V_LOGINNAME = V_LOGINNAME;
 
-                                 query.V_PASSWORD = V_PASSWORD;
 
-                                 query.DEVICE_ID = devId;
 
 
  |