管廊代码.txt 215 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544
  1. package com.upbest.web;
  2. import javax.servlet.http.HttpSession;
  3. import org.slf4j.Logger;
  4. import org.slf4j.LoggerFactory;
  5. import org.springframework.stereotype.Controller;
  6. import org.springframework.ui.Model;
  7. import org.springframework.web.bind.annotation.RequestMapping;
  8. @Controller
  9. @RequestMapping(value="/")
  10. public class HomeController {
  11. private static final Logger logger = LoggerFactory.getLogger(HomeController.class);
  12. @RequestMapping(value = "/")
  13. public String toSystemFirstPage(HttpSession session, Model model) {
  14. logger.debug("ok");
  15. return "3d/3d";
  16. }
  17. @RequestMapping(value = "/thermalChamber")
  18. public String thermalChamber(HttpSession session, Model model) {
  19. logger.debug("ok");
  20. return "thermalChamber";
  21. }
  22. @RequestMapping(value = "/powerChamber")
  23. public String powerChamber(HttpSession session, Model model) {
  24. logger.debug("ok");
  25. return "powerChamber";
  26. }
  27. @RequestMapping(value = "/synthesizeChamber")
  28. public String synthesizeChamber(HttpSession session, Model model) {
  29. logger.debug("ok");
  30. return "synthesizeChamber";
  31. }
  32. @RequestMapping(value = "/2d")
  33. public String d2(HttpSession session, Model model) {
  34. logger.debug("ok");
  35. return "2d";
  36. }
  37. @RequestMapping(value = "/3d")
  38. public String d3(HttpSession session, Model model) {
  39. logger.debug("ok");
  40. return "3d/3d";
  41. }
  42. }
  43. <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  44. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
  45. <c:set var="basePath" value="${pageContext.request.contextPath}" />
  46. <!DOCTYPE html>
  47. <html lang="en">
  48. <head>
  49. <meta charset="UTF-8">
  50. <title>徐圩新区智慧管廊</title>
  51. <link rel="stylesheet" href="/resources/css/normalize.css">
  52. <link rel="stylesheet" href="/resources/css/base.css">
  53. <link rel="stylesheet" href="/resources/css/style1.css">
  54. <style type="text/css">
  55. .container .content_modular .chart1 .modular1{
  56. height: 135px;
  57. }
  58. .container .content_modular .chart1 .modular2{
  59. height: 135px;
  60. }
  61. .container .content_modular .chart1 .modular3{
  62. height: 135px;
  63. }
  64. .container .content_modular .chart1 .modular4{
  65. height: 135px;
  66. }
  67. .container .content_modular .chart1 .modular1 img{
  68. width: 48px;
  69. height: 68px;
  70. }
  71. .container .content_modular .chart1 .modular2 img{
  72. width:37px;
  73. height: 76px;
  74. }
  75. .container .content_modular .chart1 .modular3 img{
  76. width:89px;
  77. height: 53px;
  78. }
  79. .container .content_modular .chart1 .modular4 img{
  80. width:41px;
  81. height: 77px;
  82. }
  83. .container .content_modular .chart1 .modular h1{
  84. font-size: 12px;
  85. }
  86. .container .content_modular .chart1 .modular{
  87. margin:0;
  88. }
  89. .container .content_modular .chart1{
  90. padding: 0 6%;
  91. }
  92. .container .left_modular .pipeline .text div span,
  93. .container .content_modular .pipeline .text div span,
  94. .container .right_modular .pipeline .text div span{
  95. font-size: 12px;
  96. }
  97. .container .content_modular .env{
  98. height: 125px;
  99. }
  100. .container .right_modular .pipeline {
  101. height: 175px;
  102. }
  103. .container .left_modular .pipeline {
  104. height: 175px;
  105. }
  106. .container .left_modular .equip .text div span,
  107. .container .content_modular .equip .text div span,
  108. .container .right_modular .equip .text div span{
  109. font-size:12px;
  110. }
  111. .container .left_modular .equip .chart .main .main_img,
  112. .container .content_modular .equip .chart .main .main_img,
  113. .container .right_modular .equip .chart .main .main_img{
  114. width: 61px;
  115. height: 61px;
  116. }
  117. .container .left_modular .equip .chart .main .left,
  118. .container .left_modular .equip .chart .main .right,
  119. .container .content_modular .equip .chart .main .left,
  120. .container .content_modular .equip .chart .main .right,
  121. .container .right_modular .equip .chart .main .left,
  122. .container .right_modular .equip .chart .main .right{
  123. width: 60px;
  124. }
  125. .container .left_modular .equip .text,
  126. .container .content_modular .equip .text,
  127. .container .right_modular .equip .text{
  128. width: 31%;
  129. }
  130. .container .left_modular .equip .chart,
  131. .container .content_modular .equip .chart,
  132. .container .right_modular .equip .chart{
  133. height: 193px;
  134. }
  135. </style>
  136. </head>
  137. <body style="">
  138. <header>
  139. <div class="title">智慧管廊</div>
  140. <nav>
  141. <ul>
  142. <li><a href="">
  143. <img src="/resources/images/bq1.png" alt="">
  144. <div>资产管理</div>
  145. </a></li>
  146. <li><a href="">
  147. <img src="/resources/images/bq2.png" alt="">
  148. <div>运维检修</div>
  149. </a></li>
  150. <li><a href="/3d">
  151. <img src="/resources/images/bq3.png" alt="">
  152. <div>3D</div>
  153. </a></li>
  154. <li class="on"><a href="/2d">
  155. <img src="/resources/images/bq4.png" alt="">
  156. <div>2D</div>
  157. </a></li>
  158. </ul>
  159. </nav>
  160. </header>
  161. <div class="container">
  162. <nav id="nav">
  163. <div class="close "></div>
  164. <div class="show none">
  165. <div class="title">徐圩新区</div>
  166. <ul class="navgation">
  167. <li>
  168. <div class="modular">
  169. <span class="symbol"> + </span>
  170. <span>方洋路</span>
  171. <img src="/resources/images/bottom.png" alt="">
  172. </div>
  173. <ul class="none">
  174. <li>01#防火分区</li>
  175. <li>02#防火分区</li>
  176. <li>03#防火分区</li>
  177. <li>04#防火分区</li>
  178. </ul>
  179. </li>
  180. <li>
  181. <div class="modular">
  182. <span class="symbol"> + </span>
  183. <span>西安路</span>
  184. <img src="/resources/images/bottom.png" alt="">
  185. </div>
  186. <ul class="none">
  187. <li>01#防火分区</li>
  188. <li>02#防火分区</li>
  189. <li>03#防火分区</li>
  190. <li>04#防火分区</li>
  191. </ul>
  192. </li>
  193. </ul>
  194. <div class="fold"></div>
  195. </div>
  196. </nav>
  197. <div class="container_main">
  198. <div class="mbx">方洋路 09#防火分区</div>
  199. <div class="content">
  200. <div class="modular left_modular">
  201. <!--<img src="./images/modular1.png" alt="">-->
  202. <div class="title">
  203. <div class="icon">
  204. <img src="/resources/images/bt_1relic.png" alt="">
  205. </div>
  206. <div class="text">热力舱</div>
  207. </div>
  208. <hr>
  209. <div class="env">
  210. <div class="icon">
  211. <div class="icon">
  212. <img src="/resources/images/env_icon.png" alt="">
  213. <span>环境</span>
  214. </div>
  215. </div>
  216. <div class="chart">
  217. <div id="environment" style="width:600px;height: 12em;position: absolute;left: -25%;top: 8%;"></div>
  218. </div>
  219. </div>
  220. <hr>
  221. <div class="pipeline">
  222. <div class="icon">
  223. <div class="icon">
  224. <img src="/resources/images/pipeline_icon.png" alt="">
  225. <span>管线</span>
  226. </div>
  227. </div>
  228. <div class="text">
  229. <div>xx热力管线</div>
  230. <div>
  231. <span>运营单位</span>
  232. <span>XX运营单位</span>
  233. </div>
  234. <div>
  235. <span>入廊时间</span>
  236. <span>2017-02-08</span>
  237. </div>
  238. </div>
  239. <div class="chart">
  240. <img src="/resources/images/pipeline_chart.png" alt="" style="width: 24rem;">
  241. </div>
  242. </div>
  243. <hr>
  244. <div class="equip">
  245. <div class="icon">
  246. <div class="icon">
  247. <img src="/resources/images/equip_icon.png" alt="">
  248. <span>设备</span>
  249. </div>
  250. </div>
  251. <div class="text">
  252. <div>
  253. <span>厂家</span>
  254. <span>XX运营单位</span>
  255. </div>
  256. <div>
  257. <span>入廊时间</span>
  258. <span>2017-02-08</span>
  259. </div>
  260. <div>
  261. <span>舱室</span>
  262. <span>XX舱室</span>
  263. </div>
  264. <div>
  265. <span>设备类型</span>
  266. <span>XX设备</span>
  267. </div>
  268. <div>
  269. <span>设备名称</span>
  270. <span>XX名称</span>
  271. </div>
  272. </div>
  273. <div class="chart">
  274. <div class="title">开关状态</div>
  275. <div class="main">
  276. <div class="left state_ck1">
  277. <img class="main_img" src="/resources/images/equip_1.1.png" alt="">
  278. <div class="state">
  279. <img class="ck_img" src="/resources/images/ck1.png" alt="">
  280. <span>照明</span>
  281. </div>
  282. </div>
  283. <div class="right state_ck2">
  284. <img class="main_img" src="/resources/images/equip_2.2.png" alt="">
  285. <div class="state">
  286. <img class="ck_img" src="/resources/images/ck2.png" alt="">
  287. <span>风机</span>
  288. </div>
  289. </div>
  290. </div>
  291. </div>
  292. </div>
  293. </div>
  294. <div class="modular content_modular">
  295. <!--<img src="./images/modular2.png" alt="">-->
  296. <div class="title">
  297. <div class="icon">
  298. <img src="/resources/images/bt_2dianlic.png" alt="">
  299. </div>
  300. <div class="text">电力舱</div>
  301. </div>
  302. <hr>
  303. <div class="env">
  304. <div class="icon">
  305. <div class="icon">
  306. <img src="/resources/images/env_icon.png" alt="">
  307. <span>环境</span>
  308. </div>
  309. </div>
  310. <div class="chart chart1">
  311. <div class="modular modular1">
  312. <h1>温度</h1>
  313. <img src="/resources/images/1shidu.png" alt="" style="">
  314. <div>1.91</div>
  315. </div>
  316. <div class="modular modular2">
  317. <h1>温度</h1>
  318. <img src="/resources/images/2wendu.png" alt="">
  319. <div>23.17</div>
  320. </div>
  321. <div class="modular modular3">
  322. <h1>有害气体</h1>
  323. <img src="/resources/images/3youhaiqiti.png" alt="">
  324. <div>11.21</div>
  325. </div>
  326. <div class="modular modular4">
  327. <h1>积水位</h1>
  328. <img src="/resources/images/4jishuiwei.png" alt="">
  329. <div>5.33</div>
  330. </div>
  331. </div>
  332. </div>
  333. <hr>
  334. <div class="pipeline">
  335. <div class="icon">
  336. <div class="icon">
  337. <img src="/resources/images/pipeline_icon.png" alt="">
  338. <span>管线</span>
  339. </div>
  340. </div>
  341. <div class="text">
  342. <div>xx热力管线</div>
  343. <div>
  344. <span>运营单位</span>
  345. <span>XX运营单位</span>
  346. </div>
  347. <div>
  348. <span>入廊时间</span>
  349. <span>2017-02-08</span>
  350. </div>
  351. </div>
  352. <div class="chart">
  353. <div id="chartObj_pipeline" style="width: 278px;height: 168px;position:absolute;left: 34%;top: 0;"></div>
  354. </div>
  355. </div>
  356. <hr>
  357. <div class="equip">
  358. <div class="icon">
  359. <div class="icon">
  360. <img src="/resources/images/equip_icon.png" alt="">
  361. <span>设备</span>
  362. </div>
  363. </div>
  364. <div class="text">
  365. <div>
  366. <span>厂家</span>
  367. <span>XX运营单位</span>
  368. </div>
  369. <div>
  370. <span>入廊时间</span>
  371. <span>2017-02-08</span>
  372. </div>
  373. <div>
  374. <span>舱室</span>
  375. <span>XX舱室</span>
  376. </div>
  377. <div>
  378. <span>设备类型</span>
  379. <span>XX设备</span>
  380. </div>
  381. <div>
  382. <span>设备名称</span>
  383. <span>XX名称</span>
  384. </div>
  385. </div>
  386. <div class="chart">
  387. <div class="title">开关状态</div>
  388. <div class="main">
  389. <div class="left state_ck1">
  390. <img class="main_img" src="/resources/images/equip_1.1.png" alt="">
  391. <div class="state">
  392. <img class="ck_img" src="/resources/images/ck1.png" alt="">
  393. <span>照明</span>
  394. </div>
  395. </div>
  396. <div class="right state_ck2">
  397. <img class="main_img" src="/resources/images/equip_2.2.png" alt="">
  398. <div class="state">
  399. <img class="ck_img" src="/resources/images/ck2.png" alt="">
  400. <span>风机</span>
  401. </div>
  402. </div>
  403. </div>
  404. </div>
  405. </div>
  406. </div>
  407. <div class="modular right_modular">
  408. <!--<img src="./images/modular3.png" alt="">-->
  409. <div class="title">
  410. <div class="icon">
  411. <img src="/resources/images/bt_3zonghec.png" alt="">
  412. </div>
  413. <div class="text">综合舱</div>
  414. </div>
  415. <hr>
  416. <div class="env">
  417. <div class="icon">
  418. <div class="icon">
  419. <img src="/resources/images/env_icon.png" alt="">
  420. <span>环境</span>
  421. </div>
  422. </div>
  423. <div class="chart chart1">
  424. <div id="chartObj_environment" style="width:30em;height: 12em;"></div>
  425. </div>
  426. </div>
  427. <hr>
  428. <div class="pipeline">
  429. <div class="icon">
  430. <div class="icon">
  431. <img src="/resources/images/pipeline_icon.png" alt="">
  432. <span>管线</span>
  433. </div>
  434. </div>
  435. <div class="text">
  436. <div>xx热力管线</div>
  437. <div>
  438. <span>运营单位</span>
  439. <span>XX运营单位</span>
  440. </div>
  441. <div>
  442. <span>入廊时间</span>
  443. <span>2017-02-08</span>
  444. </div>
  445. </div>
  446. <div class="chart">
  447. <img src="/resources/images/right_2.png" alt="" style="width: 60%;">
  448. </div>
  449. </div>
  450. <hr>
  451. <div class="equip">
  452. <div class="icon">
  453. <div class="icon">
  454. <img src="/resources/images/equip_icon.png" alt="">
  455. <span>设备</span>
  456. </div>
  457. </div>
  458. <div class="text">
  459. <div>
  460. <span>厂家</span>
  461. <span>XX运营单位</span>
  462. </div>
  463. <div>
  464. <span>入廊时间</span>
  465. <span>2017-02-08</span>
  466. </div>
  467. <div>
  468. <span>舱室</span>
  469. <span>XX舱室</span>
  470. </div>
  471. <div>
  472. <span>设备类型</span>
  473. <span>XX设备</span>
  474. </div>
  475. <div>
  476. <span>设备名称</span>
  477. <span>XX名称</span>
  478. </div>
  479. </div>
  480. <div class="chart">
  481. <div class="title">开关状态</div>
  482. <div class="main">
  483. <div class="left state_ck1">
  484. <img class="main_img" src="/resources/images/equip_1.1.png" alt="">
  485. <div class="state">
  486. <img class="ck_img" src="/resources/images/ck1.png" alt="">
  487. <span>照明</span>
  488. </div>
  489. </div>
  490. <div class="right state_ck2">
  491. <img class="main_img" src="/resources/images/equip_2.2.png" alt="">
  492. <div class="state">
  493. <img class="ck_img" src="/resources/images/ck2.png" alt="">
  494. <span>风机</span>
  495. </div>
  496. </div>
  497. </div>
  498. </div>
  499. </div>
  500. </div>
  501. </div>
  502. </div>
  503. </div>
  504. <script src="/resources/js/jquery-3.1.0.min.js"></script>
  505. <script src="/resources/js/base.js"></script>
  506. <script src="/resources/js/echarts/js/echarts-all.js"></script>
  507. <script src="/resources/echarts/build/dist/echarts.js"></script>
  508. <script src="/resources/js/2d.js"></script>
  509. </body>
  510. </html>
  511. <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  512. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
  513. <c:set var="basePath" value="${pageContext.request.contextPath}" />
  514. <!DOCTYPE html>
  515. <html lang="en">
  516. <head>
  517. <meta charset="UTF-8">
  518. <title>徐圩新区智慧管廊</title>
  519. <link rel="stylesheet" href="/resources/css/normalize.css">
  520. <link rel="stylesheet" href="/resources/css/base.css">
  521. <link rel="stylesheet" href="/resources/css/style1.css">
  522. <script src="/resources/js/jquery-1.11.3.min.js"></script>
  523. <style type="text/css">
  524. .container .content_modular .env{
  525. height: 150px;
  526. }
  527. .container .content_modular .chart1{
  528. position: absolute;
  529. top: -13%;
  530. padding:0 17%;
  531. width:100%;
  532. left:0;
  533. }
  534. .container .content_modular .chart1 .modular{
  535. margin-right: 5%;
  536. }
  537. .container .content_modular .chart1 .modular1{
  538. width: 80px;
  539. }
  540. .container .content_modular .chart1 .modular2 {
  541. width: 65px;
  542. }
  543. .container .content_modular .chart1 .modular3 {
  544. width: 120px;
  545. }
  546. </style>
  547. </head>
  548. <body style="width:680px;">
  549. <div class="container" style="height:706px;">
  550. <div class="modular content_modular left_modular2">
  551. <div class="title">
  552. <div class="icon">
  553. <img src="/resources/images/bt_2dianlic.png" alt="">
  554. </div>
  555. <div class="text">09#防火分区-电力舱</div>
  556. <!-- <div class="close-btn"></div>
  557. <div class="tuchu"></div> -->
  558. </div>
  559. <hr>
  560. <div class="env">
  561. <div class="icon">
  562. <div class="icon">
  563. <img src="/resources/images/env_icon.png" alt="">
  564. <span>环境</span>
  565. </div>
  566. </div>
  567. <div class="chart chart1">
  568. <div class="modular modular1">
  569. <h1>温度</h1>
  570. <img src="/resources/images/1shidu.png" alt="">
  571. <div>1.91</div>
  572. </div>
  573. <div class="modular modular2">
  574. <h1>温度</h1>
  575. <img src="/resources/images/2wendu.png" alt="">
  576. <div>23.17</div>
  577. </div>
  578. <div class="modular modular3">
  579. <h1>有害气体</h1>
  580. <img src="/resources/images/3youhaiqiti.png" alt="">
  581. <div>11.21</div>
  582. </div>
  583. <div class="modular modular4">
  584. <h1>积水位</h1>
  585. <img src="/resources/images/4jishuiwei.png" alt="">
  586. <div>5.33</div>
  587. </div>
  588. </div>
  589. </div>
  590. <hr>
  591. <div class="pipeline">
  592. <div class="icon">
  593. <div class="icon">
  594. <img src="/resources/images/pipeline_icon.png" alt="">
  595. <span>管线</span>
  596. </div>
  597. </div>
  598. <div class="text">
  599. <div>xx热力管线</div>
  600. <div>
  601. <span>运营单位</span>
  602. <span>XX运营单位</span>
  603. </div>
  604. <div>
  605. <span>入廊时间</span>
  606. <span>2017-02-08</span>
  607. </div>
  608. </div>
  609. <div class="chart">
  610. <div id="chartObj_pipeline" style="width: 278px;height: 168px;position:absolute;left: 50%;top: 0;"></div>
  611. </div>
  612. </div>
  613. <hr>
  614. <div class="equip">
  615. <div class="icon">
  616. <div class="icon">
  617. <img src="/resources/images/equip_icon.png" alt="">
  618. <span>设备</span>
  619. </div>
  620. </div>
  621. <div class="text">
  622. <div>
  623. <span>厂家</span>
  624. <span>XX运营单位</span>
  625. </div>
  626. <div>
  627. <span>入廊时间</span>
  628. <span>2017-02-08</span>
  629. </div>
  630. <div>
  631. <span>舱室</span>
  632. <span>XX舱室</span>
  633. </div>
  634. <div>
  635. <span>设备类型</span>
  636. <span>XX设备</span>
  637. </div>
  638. <div>
  639. <span>设备名称</span>
  640. <span>XX名称</span>
  641. </div>
  642. </div>
  643. <div class="chart">
  644. <div class="title">开关状态</div>
  645. <div class="main">
  646. <div class="left state_ck1">
  647. <img class="main_img" src="/resources/images/equip_1.1.png" alt="">
  648. <div class="state">
  649. <img class="ck_img" src="/resources/images/ck1.png" alt="">
  650. <span>照明</span>
  651. </div>
  652. </div>
  653. <div class="right state_ck2">
  654. <img class="main_img" src="/resources/images/equip_2.2.png" alt="">
  655. <div class="state">
  656. <img class="ck_img" src="/resources/images/ck2.png" alt="">
  657. <span>风机</span>
  658. </div>
  659. </div>
  660. </div>
  661. </div>
  662. </div>
  663. </div>
  664. </div>
  665. <script src="/resources/js/base.js"></script>
  666. <script src="/resources/js/echarts/js/echarts-all.js"></script>
  667. <script src="/resources/echarts/build/dist/echarts.js"></script>
  668. <script src="/resources/js/powerChamber.js"></script>
  669. </body>
  670. </html>
  671. <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  672. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
  673. <c:set var="basePath" value="${pageContext.request.contextPath}" />
  674. <!DOCTYPE html>
  675. <html lang="en">
  676. <head>
  677. <meta charset="UTF-8">
  678. <title>徐圩新区智慧管廊</title>
  679. <link rel="stylesheet" href="/resources/css/normalize.css">
  680. <link rel="stylesheet" href="/resources/css/base.css">
  681. <link rel="stylesheet" href="/resources/css/style1.css">
  682. <style type="text/css">
  683. .container .right_modular .env{
  684. height: 125px;
  685. }
  686. </style>
  687. </head>
  688. <body style="width:680px;">
  689. <div class="container" style="height:706px;">
  690. <div class="modular right_modular left_modular2">
  691. <!--<img src="./images/modular3.png" alt="">-->
  692. <div class="title">
  693. <div class="icon">
  694. <img src="/resources/images/bt_3zonghec.png" alt="">
  695. </div>
  696. <div class="text">综合舱</div>
  697. </div>
  698. <hr>
  699. <div class="env">
  700. <div class="icon">
  701. <div class="icon">
  702. <img src="/resources/images/env_icon.png" alt="">
  703. <span>环境</span>
  704. </div>
  705. </div>
  706. <div class="chart chart1">
  707. <!-- <img src="/resources/images/right1.png" alt=""> -->
  708. <div id="chartObj_environment" style="width:40em;height: 12em;"></div>
  709. </div>
  710. </div>
  711. <hr>
  712. <div class="pipeline">
  713. <div class="icon">
  714. <div class="icon">
  715. <img src="/resources/images/pipeline_icon.png" alt="">
  716. <span>管线</span>
  717. </div>
  718. </div>
  719. <div class="text">
  720. <div>xx热力管线</div>
  721. <div>
  722. <span>运营单位</span>
  723. <span>XX运营单位</span>
  724. </div>
  725. <div>
  726. <span>入廊时间</span>
  727. <span>2017-02-08</span>
  728. </div>
  729. </div>
  730. <div class="chart">
  731. <img src="/resources/images/right_2.png" alt="">
  732. </div>
  733. </div>
  734. <hr>
  735. <div class="equip">
  736. <div class="icon">
  737. <div class="icon">
  738. <img src="/resources/images/equip_icon.png" alt="">
  739. <span>设备</span>
  740. </div>
  741. </div>
  742. <div class="text">
  743. <div>
  744. <span>厂家</span>
  745. <span>XX运营单位</span>
  746. </div>
  747. <div>
  748. <span>入廊时间</span>
  749. <span>2017-02-08</span>
  750. </div>
  751. <div>
  752. <span>舱室</span>
  753. <span>XX舱室</span>
  754. </div>
  755. <div>
  756. <span>设备类型</span>
  757. <span>XX设备</span>
  758. </div>
  759. <div>
  760. <span>设备名称</span>
  761. <span>XX名称</span>
  762. </div>
  763. </div>
  764. <div class="chart">
  765. <div class="title">开关状态</div>
  766. <div class="main">
  767. <div class="left state_ck1">
  768. <img class="main_img" src="/resources/images/equip_1.1.png" alt="">
  769. <div class="state">
  770. <img class="ck_img" src="/resources/images/ck1.png" alt="">
  771. <span>照明</span>
  772. </div>
  773. </div>
  774. <div class="right state_ck2">
  775. <img class="main_img" src="/resources/images/equip_2.2.png" alt="">
  776. <div class="state">
  777. <img class="ck_img" src="/resources/images/ck2.png" alt="">
  778. <span>风机</span>
  779. </div>
  780. </div>
  781. </div>
  782. </div>
  783. </div>
  784. </div>
  785. </div>
  786. <script src="/resources/js/jquery-3.1.0.min.js"></script>
  787. <script src="/resources/js/base.js"></script>
  788. <script src="/resources/js/echarts/js/echarts-all.js"></script>
  789. <script src="/resources/echarts/build/dist/echarts.js"></script>
  790. <script src="/resources/js/synthesizeChamber.js"></script>
  791. </body>
  792. </html>
  793. <%@ page language="java" contentType="text/html; charset=UTF-8"
  794. pageEncoding="UTF-8"%>
  795. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
  796. <!DOCTYPE html>
  797. <html lang="en">
  798. <head>
  799. <meta charset="UTF-8">
  800. <title>徐圩新区智慧管廊</title>
  801. <link rel="stylesheet" href="/resources/css/normalize.css">
  802. <link rel="stylesheet" href="/resources/css/base.css">
  803. <link rel="stylesheet" href="/resources/css/style1.css">
  804. <script src="/resources/js/jquery-1.11.3.min.js"></script>
  805. </head>
  806. <body style="width:680px;">
  807. <div class="container" style="height:706px;">
  808. <div class="modular left_modular left_modular2">
  809. <div class="title2">
  810. <div class="icon">
  811. <img src="/resources/images/bt_1relic.png" alt="">
  812. </div>
  813. <div class="text">09#防火分区-热力舱</div>
  814. </div>
  815. <hr>
  816. <div class="env">
  817. <div class="icon">
  818. <div class="icon">
  819. <img src="/resources/images/env_icon.png" alt="">
  820. <span>环境</span>
  821. </div>
  822. </div>
  823. <div class="chart">
  824. <!-- <img src="/resources/images/env_chart.png" alt=""> -->
  825. <div id="environment" style="width:50em;height: 12em;position: absolute;left: 5%;top: -3%;"></div>
  826. </div>
  827. </div>
  828. <hr>
  829. <div class="pipeline">
  830. <div class="icon">
  831. <div class="icon">
  832. <img src="/resources/images/pipeline_icon.png" alt="">
  833. <span>管线</span>
  834. </div>
  835. </div>
  836. <div class="text">
  837. <div>xx热力管线</div>
  838. <div>
  839. <span>运营单位</span>
  840. <span>XX运营单位</span>
  841. </div>
  842. <div>
  843. <span>入廊时间</span>
  844. <span>2017-02-08</span>
  845. </div>
  846. </div>
  847. <div class="chart">
  848. <img src="/resources/images/pipeline_chart.png" alt="">
  849. <!-- <div id="chartObj_pipeline" style="width: 30em;height: 10em;"></div> -->
  850. </div>
  851. </div>
  852. <hr>
  853. <div class="equip">
  854. <div class="icon">
  855. <div class="icon">
  856. <img src="/resources/images/equip_icon.png" alt="">
  857. <span>设备</span>
  858. </div>
  859. </div>
  860. <div class="text">
  861. <div>
  862. <span>厂家</span>
  863. <span>XX运营单位</span>
  864. </div>
  865. <div>
  866. <span>入廊时间</span>
  867. <span>2017-02-08</span>
  868. </div>
  869. <div>
  870. <span>舱室</span>
  871. <span>XX舱室</span>
  872. </div>
  873. <div>
  874. <span>设备类型</span>
  875. <span>XX设备</span>
  876. </div>
  877. <div>
  878. <span>设备名称</span>
  879. <span>XX名称</span>
  880. </div>
  881. </div>
  882. <div class="chart">
  883. <div class="title">开关状态</div>
  884. <div class="main">
  885. <div class="left state_ck1">
  886. <img class="main_img" src="/resources/images/equip_1.1.png" alt="">
  887. <div class="state">
  888. <img class="ck_img" src="/resources/images/ck1.png" alt="">
  889. <span>照明</span>
  890. </div>
  891. </div>
  892. <div class="right state_ck2">
  893. <img class="main_img" src="/resources/images/equip_2.2.png" alt="">
  894. <div class="state">
  895. <img class="ck_img" src="/resources/images/ck2.png" alt="">
  896. <span>风机</span>
  897. </div>
  898. </div>
  899. </div>
  900. </div>
  901. </div>
  902. </div>
  903. </div>
  904. <script src="/resources/js/base.js"></script>
  905. <script src="/resources/js/echarts/js/echarts-all.js"></script>
  906. <script src="/resources/echarts/build/dist/echarts.js"></script>
  907. <script src="/resources/js/thermalChamber.js"></script>
  908. </body>
  909. </html>
  910. <!DOCTYPE html>
  911. <html xmlns="http://www.w3.org/1999/xhtml">
  912. <head>
  913. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  914. <title></title>
  915. <script src="../js/Config.js"></script>
  916. <script src="js/Presentation.js"></script>
  917. <script src="js/NavigateTool.js"></script>
  918. <style type="text/css">
  919. * {
  920. padding: 0;
  921. margin: 0;
  922. }
  923. </style>
  924. <script type="text/javascript">
  925. function InitMap() {
  926. sgworld.Open(Map3D_Config.FlyUrl);
  927. sgworld.attachEvent("OnFrame", OnFrame);
  928. sgworld.attachEvent("OnLoadFinished", OnLoadFinished);
  929. }
  930. function OnFrame() {
  931. var selectObject = null;
  932. var MouseInfo = sgworld.Window.GetMouseInfo();
  933. var CursorCoord = sgworld.Window.PixelToWorld(MouseInfo.X, MouseInfo.Y);
  934. if (CursorCoord.ObjectID == "") {
  935. if (Map3D_Config.GlObjectId != '') {
  936. Map3D_Config.GlObjectId.Terrain.Tint.SetAlpha(0);
  937. }
  938. return false;
  939. }
  940. selectObject = sgworld.Creator.GetObject(CursorCoord.ObjectID);
  941. if (Map3D_Config.GlObjectId != '') {
  942. Map3D_Config.GlObjectId.Terrain.Tint.SetAlpha(0);
  943. }
  944. if (selectObject != null && selectObject.ObjectType == 17) {
  945. var ItemName = sgworld.ProjectTree.GetItemName(selectObject.ID);
  946. //if (ItemName != "New 3D Model ##457" && ItemName != "New 3D Model ##493" && ItemName != "New 3D Model ##479" && ItemName != "New 3D Model ##499" && ItemName != "New 3D Model ##459" && ItemName != "New 3D Model ##467" && ItemName != "New 3D Model ##503" && ItemName != "New 3D Model ##483" && ItemName != "New 3D Model ##463") {
  947. SetObjectAlpha(selectObject);
  948. //}
  949. }
  950. }
  951. function SetObjectAlpha(selectObject) {
  952. if (Map3D_Config.GlObjectId != null && Map3D_Config.GlObjectId != '') {
  953. Map3D_Config.GlObjectId.Terrain.Tint.SetAlpha(0);
  954. }
  955. selectObject.Terrain.Tint.abgrColor = 0xFFFF00;
  956. selectObject.Terrain.Tint.SetAlpha(1);
  957. Map3D_Config.GlObjectId = selectObject;
  958. }
  959. function OnLoadFinished(bSuccess) {
  960. Presentation("管线演示");
  961. BindUrl();
  962. }
  963. //绑定Url信息显示界面
  964. function BindUrl() {
  965. //热力仓
  966. var ReLiObj = sgworld.ProjectTree.FindItem("管线信息查看\\Default\\模型\\New 3D Model ##459");
  967. var GetObj = sgworld.ProjectTree.GetObject(ReLiObj);
  968. var ReLiPopup = sgworld.Creator.CreatePopupMessage("热力舱实时信息", Map3D_Config.thermalChamberUrl, 0, 0, 690, 770);
  969. GetObj.Message.MessageID = ReLiPopup.ID;
  970. ReLiPopup.AllowResize = true;
  971. ////电力仓
  972. var DianLiObjId1 = sgworld.ProjectTree.FindItem("管线信息查看\\Default\\模型\\New 3D Model ##499");
  973. var DianLiObjId2 = sgworld.ProjectTree.FindItem("管线信息查看\\Default\\模型\\New 3D Model ##479");
  974. var GetDianLiObj1 = sgworld.ProjectTree.GetObject(DianLiObjId1);
  975. var GetDianLiObj2 = sgworld.ProjectTree.GetObject(DianLiObjId2);
  976. var DianLiPopup = sgworld.Creator.CreatePopupMessage("电力舱实时信息", Map3D_Config.powerChamberUrl, 0, 0, 690, 770);
  977. GetDianLiObj1.Message.MessageID = DianLiPopup.ID;
  978. GetDianLiObj2.Message.MessageID = DianLiPopup.ID;
  979. DianLiPopup.AllowResize = true;
  980. ////综合仓
  981. var ZongHeObjId1 = sgworld.ProjectTree.FindItem("管线信息查看\\Default\\模型\\New 3D Model ##503");
  982. var ZongHeObjId2 = sgworld.ProjectTree.FindItem("管线信息查看\\Default\\模型\\New 3D Model ##483");
  983. var ZongHeObjId3 = sgworld.ProjectTree.FindItem("管线信息查看\\Default\\模型\\New 3D Model ##463");
  984. var ZongHeObjId4 = sgworld.ProjectTree.FindItem("管线信息查看\\Default\\模型\\New 3D Model ##467");
  985. var ZongHeObj1 = sgworld.ProjectTree.GetObject(ZongHeObjId1);
  986. var ZongHeObj2 = sgworld.ProjectTree.GetObject(ZongHeObjId2);
  987. var ZongHeObj3 = sgworld.ProjectTree.GetObject(ZongHeObjId3);
  988. var ZongHeObj4 = sgworld.ProjectTree.GetObject(ZongHeObjId4);
  989. var ZongHePopup = sgworld.Creator.CreatePopupMessage("综合舱信息", Map3D_Config.synthesizeChamberUrl, 0, 0, 690, 770);
  990. ZongHeObj1.Message.MessageID = ZongHePopup.ID;
  991. ZongHeObj2.Message.MessageID = ZongHePopup.ID;
  992. ZongHeObj3.Message.MessageID = ZongHePopup.ID;
  993. ZongHeObj4.Message.MessageID = ZongHePopup.ID;
  994. ZongHePopup.AllowResize = true;
  995. //摄像头
  996. }
  997. //获取页面所在Iframe的高度
  998. function GetIframeId() {
  999. var ifrs = parent.document.getElementsByTagName('iframe');
  1000. for (var i = 0, j = ifrs.length; i < j; i++)
  1001. if (ifrs[i].contentWindow == window) {
  1002. document.getElementById("sgworld").style.height = document.getElementById(ifrs[i].id).style.height;
  1003. }
  1004. }
  1005. </script>
  1006. </head>
  1007. <body onload="InitMap()">
  1008. <div id="Map3d">
  1009. <!-- <div><input type="button" value="presentation" onclick="Presentation('管线演示');"</div>-->
  1010. <div>
  1011. <object id="TerraExplorerX" classid="CLSID:3a4f9192-65a8-11d5-85c1-0001023952c1"
  1012. width="100%" height="925px">
  1013. </object>
  1014. </div>
  1015. <div style="display: none;">
  1016. <object id="sgworld" classid="CLSID:3a4f9197-65a8-11d5-85c1-0001023952c1">
  1017. </object>
  1018. </div>
  1019. </div>
  1020. </body>
  1021. </html>
  1022. <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  1023. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
  1024. <c:set var="basePath" value="${pageContext.request.contextPath}" />
  1025. <!DOCTYPE html>
  1026. <html lang="en">
  1027. <head>
  1028. <meta charset="UTF-8">
  1029. <title>徐圩新区智慧管廊</title>
  1030. <link rel="stylesheet" href="/resources/css/normalize.css">
  1031. <link rel="stylesheet" href="/resources/css/base.css">
  1032. <link rel="stylesheet" href="/resources/css/style1.css">
  1033. <style type="text/css">
  1034. .container .content_modular .chart1 .modular1{
  1035. height: 135px;
  1036. }
  1037. .container .content_modular .chart1 .modular2{
  1038. height: 135px;
  1039. }
  1040. .container .content_modular .chart1 .modular3{
  1041. height: 135px;
  1042. }
  1043. .container .content_modular .chart1 .modular4{
  1044. height: 135px;
  1045. }
  1046. .container .content_modular .chart1 .modular1 img{
  1047. width: 48px;
  1048. height: 68px;
  1049. }
  1050. .container .content_modular .chart1 .modular2 img{
  1051. width:37px;
  1052. height: 76px;
  1053. }
  1054. .container .content_modular .chart1 .modular3 img{
  1055. width:89px;
  1056. height: 53px;
  1057. }
  1058. .container .content_modular .chart1 .modular4 img{
  1059. width:41px;
  1060. height: 77px;
  1061. }
  1062. .container .content_modular .chart1 .modular h1{
  1063. font-size: 12px;
  1064. }
  1065. .container .content_modular .chart1 .modular{
  1066. margin:0;
  1067. }
  1068. .container .content_modular .chart1{
  1069. padding: 0 6%;
  1070. }
  1071. .container .left_modular .pipeline .text div span,
  1072. .container .content_modular .pipeline .text div span,
  1073. .container .right_modular .pipeline .text div span{
  1074. font-size: 12px;
  1075. }
  1076. .container .content_modular .env{
  1077. height: 170px;
  1078. }
  1079. .container .right_modular .pipeline {
  1080. height: 175px;
  1081. }
  1082. .container .left_modular .pipeline {
  1083. height: 175px;
  1084. }
  1085. .container .left_modular .equip .text div span,
  1086. .container .content_modular .equip .text div span,
  1087. .container .right_modular .equip .text div span{
  1088. font-size:12px;
  1089. }
  1090. .container .left_modular .equip .chart .main .main_img,
  1091. .container .content_modular .equip .chart .main .main_img,
  1092. .container .right_modular .equip .chart .main .main_img{
  1093. width: 61px;
  1094. height: 61px;
  1095. }
  1096. .container .left_modular .equip .chart .main .left,
  1097. .container .left_modular .equip .chart .main .right,
  1098. .container .content_modular .equip .chart .main .left,
  1099. .container .content_modular .equip .chart .main .right,
  1100. .container .right_modular .equip .chart .main .left,
  1101. .container .right_modular .equip .chart .main .right{
  1102. width: 60px;
  1103. }
  1104. .container .left_modular .equip .text,
  1105. .container .content_modular .equip .text,
  1106. .container .right_modular .equip .text{
  1107. width: 31%;
  1108. }
  1109. .container .left_modular .equip .chart,
  1110. .container .content_modular .equip .chart,
  1111. .container .right_modular .equip .chart{
  1112. height: 193px;
  1113. }
  1114. </style>
  1115. </head>
  1116. <body style="" onload="InitMap()">
  1117. <header>
  1118. <div class="title">智慧管廊</div>
  1119. <nav>
  1120. <ul>
  1121. <li><a href="">
  1122. <img src="/resources/images/bq1.png" alt="">
  1123. <div>资产管理</div>
  1124. </a></li>
  1125. <li><a href="">
  1126. <img src="/resources/images/bq2.png" alt="">
  1127. <div>运维检修</div>
  1128. </a></li>
  1129. <li class="on"><a href="/3d">
  1130. <img src="/resources/images/bq3.png" alt="">
  1131. <div>3D</div>
  1132. </a></li>
  1133. <li><a href="/2d">
  1134. <img src="/resources/images/bq4.png" alt="">
  1135. <div>2D</div>
  1136. </a></li>
  1137. </ul>
  1138. </nav>
  1139. </header>
  1140. <div class="container">
  1141. <nav id="nav">
  1142. <!-- <div class="close " style="height: 500px;"></div> -->
  1143. <div class="show none">
  1144. <div class="title">徐圩新区</div>
  1145. <ul class="navgation">
  1146. <li>
  1147. <div class="modular">
  1148. <span class="symbol"> + </span>
  1149. <span>方洋路</span>
  1150. <img src="/resources/images/bottom.png" alt="">
  1151. </div>
  1152. <ul class="none">
  1153. <li>01#防火分区</li>
  1154. <li>02#防火分区</li>
  1155. <li>03#防火分区</li>
  1156. <li>04#防火分区</li>
  1157. </ul>
  1158. </li>
  1159. <li>
  1160. <div class="modular">
  1161. <span class="symbol"> + </span>
  1162. <span>西安路</span>
  1163. <img src="/resources/images/bottom.png" alt="">
  1164. </div>
  1165. <ul class="none">
  1166. <li>01#防火分区</li>
  1167. <li>02#防火分区</li>
  1168. <li>03#防火分区</li>
  1169. <li>04#防火分区</li>
  1170. </ul>
  1171. </li>
  1172. </ul>
  1173. <div class="fold"></div>
  1174. </div>
  1175. </nav>
  1176. <div>
  1177. <div>
  1178. <object id="TerraExplorerX" classid="CLSID:3a4f9192-65a8-11d5-85c1-0001023952c1"
  1179. width="100%" height="500px">
  1180. </object>
  1181. </div>
  1182. <div style="display: none;">
  1183. <object id="sgworld" classid="CLSID:3a4f9197-65a8-11d5-85c1-0001023952c1">
  1184. </object>
  1185. </div>
  1186. </div>
  1187. </div>
  1188. <script type="text/javascript">
  1189. function InitMap() {
  1190. sgworld.Open(Map3D_Config.FlyUrl);
  1191. sgworld.attachEvent("OnFrame", OnFrame);
  1192. sgworld.attachEvent("OnLoadFinished", OnLoadFinished);
  1193. }
  1194. function OnFrame() {
  1195. var selectObject = null;
  1196. var MouseInfo = sgworld.Window.GetMouseInfo();
  1197. var CursorCoord = sgworld.Window.PixelToWorld(MouseInfo.X, MouseInfo.Y);
  1198. if (CursorCoord.ObjectID == "") {
  1199. if (Map3D_Config.GlObjectId != '') {
  1200. Map3D_Config.GlObjectId.Terrain.Tint.SetAlpha(0);
  1201. }
  1202. return false;
  1203. }
  1204. selectObject = sgworld.Creator.GetObject(CursorCoord.ObjectID);
  1205. if (Map3D_Config.GlObjectId != '') {
  1206. Map3D_Config.GlObjectId.Terrain.Tint.SetAlpha(0);
  1207. }
  1208. if (selectObject != null && selectObject.ObjectType == 17) {
  1209. var ItemName = sgworld.ProjectTree.GetItemName(selectObject.ID);
  1210. //if (ItemName != "New 3D Model ##457" && ItemName != "New 3D Model ##493" && ItemName != "New 3D Model ##479" && ItemName != "New 3D Model ##499" && ItemName != "New 3D Model ##459" && ItemName != "New 3D Model ##467" && ItemName != "New 3D Model ##503" && ItemName != "New 3D Model ##483" && ItemName != "New 3D Model ##463") {
  1211. SetObjectAlpha(selectObject);
  1212. //}
  1213. }
  1214. }
  1215. function SetObjectAlpha(selectObject) {
  1216. if (Map3D_Config.GlObjectId != null && Map3D_Config.GlObjectId != '') {
  1217. Map3D_Config.GlObjectId.Terrain.Tint.SetAlpha(0);
  1218. }
  1219. selectObject.Terrain.Tint.abgrColor = 0xFFFF00;
  1220. selectObject.Terrain.Tint.SetAlpha(1);
  1221. Map3D_Config.GlObjectId = selectObject;
  1222. }
  1223. function OnLoadFinished(bSuccess) {
  1224. Presentation("管线演示");
  1225. BindUrl();
  1226. }
  1227. //绑定Url信息显示界面
  1228. function BindUrl() {
  1229. //热力仓
  1230. var ReLiObj = sgworld.ProjectTree.FindItem("管线信息查看\\Default\\模型\\New 3D Model ##459");
  1231. var GetObj = sgworld.ProjectTree.GetObject(ReLiObj);
  1232. var ReLiPopup = sgworld.Creator.CreatePopupMessage("热力舱实时信息", Map3D_Config.thermalChamberUrl, 0, 0, 690, 726);
  1233. GetObj.Message.MessageID = ReLiPopup.ID;
  1234. ReLiPopup.AllowResize = true;
  1235. ////电力仓
  1236. var DianLiObjId1 = sgworld.ProjectTree.FindItem("管线信息查看\\Default\\模型\\New 3D Model ##499");
  1237. var DianLiObjId2 = sgworld.ProjectTree.FindItem("管线信息查看\\Default\\模型\\New 3D Model ##479");
  1238. var GetDianLiObj1 = sgworld.ProjectTree.GetObject(DianLiObjId1);
  1239. var GetDianLiObj2 = sgworld.ProjectTree.GetObject(DianLiObjId2);
  1240. var DianLiPopup = sgworld.Creator.CreatePopupMessage("电力舱实时信息", Map3D_Config.powerChamberUrl, 0, 0, 690, 726);
  1241. GetDianLiObj1.Message.MessageID = DianLiPopup.ID;
  1242. GetDianLiObj2.Message.MessageID = DianLiPopup.ID;
  1243. DianLiPopup.AllowResize = true;
  1244. ////综合仓
  1245. var ZongHeObjId1 = sgworld.ProjectTree.FindItem("管线信息查看\\Default\\模型\\New 3D Model ##503");
  1246. var ZongHeObjId2 = sgworld.ProjectTree.FindItem("管线信息查看\\Default\\模型\\New 3D Model ##483");
  1247. var ZongHeObjId3 = sgworld.ProjectTree.FindItem("管线信息查看\\Default\\模型\\New 3D Model ##463");
  1248. var ZongHeObjId4 = sgworld.ProjectTree.FindItem("管线信息查看\\Default\\模型\\New 3D Model ##467");
  1249. var ZongHeObj1 = sgworld.ProjectTree.GetObject(ZongHeObjId1);
  1250. var ZongHeObj2 = sgworld.ProjectTree.GetObject(ZongHeObjId2);
  1251. var ZongHeObj3 = sgworld.ProjectTree.GetObject(ZongHeObjId3);
  1252. var ZongHeObj4 = sgworld.ProjectTree.GetObject(ZongHeObjId4);
  1253. var ZongHePopup = sgworld.Creator.CreatePopupMessage("综合舱信息", Map3D_Config.synthesizeChamberUrl, 0, 0, 690, 726);
  1254. ZongHeObj1.Message.MessageID = ZongHePopup.ID;
  1255. ZongHeObj2.Message.MessageID = ZongHePopup.ID;
  1256. ZongHeObj3.Message.MessageID = ZongHePopup.ID;
  1257. ZongHeObj4.Message.MessageID = ZongHePopup.ID;
  1258. ZongHePopup.AllowResize = true;
  1259. //摄像头
  1260. }
  1261. //获取页面所在Iframe的高度
  1262. function GetIframeId() {
  1263. var ifrs = parent.document.getElementsByTagName('iframe');
  1264. for (var i = 0, j = ifrs.length; i < j; i++)
  1265. if (ifrs[i].contentWindow == window) {
  1266. document.getElementById("sgworld").style.height = document.getElementById(ifrs[i].id).style.height;
  1267. }
  1268. }
  1269. </script>
  1270. <script src="/resources/js/Config.js"></script>
  1271. <script src="/resources/js/Presentation.js"></script>
  1272. <script src="/resources/js/NavigateTool.js"></script>
  1273. <script src="/resources/js/jquery-3.1.0.min.js"></script>
  1274. <script src="/resources/js/base.js"></script>
  1275. <script src="/resources/js/echarts/js/echarts-all.js"></script>
  1276. <script src="/resources/echarts/build/dist/echarts.js"></script>
  1277. <script src="/resources/js/2d.js"></script>
  1278. </body>
  1279. </html>
  1280. var environment = null;//热力舱环境
  1281. var chartObj_pipeline = null;//电力舱管线
  1282. var chartObj_environment = null;//综合舱环境
  1283. //配置路径
  1284. require.config({
  1285. paths:{
  1286. echarts:'/resources/echarts/build/dist',
  1287. }
  1288. });
  1289. $(function(){
  1290. initChartObjs();
  1291. });
  1292. function initChartObjs(){
  1293. objEnvironment();//环境
  1294. objPipeline();//管线
  1295. chartObjEnvironment();//综合舱环境
  1296. }
  1297. function objEnvironment(){
  1298. option = {
  1299. tooltip : {
  1300. formatter: "{a} <br/>{c} {b}"
  1301. },
  1302. toolbox: {
  1303. show: false,
  1304. feature: {
  1305. restore: {show: true},
  1306. saveAsImage: {show: true}
  1307. }
  1308. },
  1309. series : [
  1310. {
  1311. name: '温度',
  1312. type: 'gauge',
  1313. z: 3,
  1314. min: 0,
  1315. max: 10,
  1316. splitNumber: 10,
  1317. radius: '100%',
  1318. axisLine: { // 坐标轴线
  1319. lineStyle: { // 属性lineStyle控制线条样式
  1320. width: 4
  1321. }
  1322. },
  1323. axisTick: { // 坐标轴小标记
  1324. length: 15, // 属性length控制线长
  1325. lineStyle: { // 属性lineStyle控制线条样式
  1326. color: 'auto'
  1327. }
  1328. },
  1329. splitLine: { // 分隔线
  1330. length: 20, // 属性length控制线长
  1331. lineStyle: { // 属性lineStyle(详见lineStyle)控制线条样式
  1332. color: 'auto'
  1333. }
  1334. },
  1335. title : {
  1336. offsetCenter: [0, 25], // x, y,单位px
  1337. textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE
  1338. color:'#F3F3F3',
  1339. fontWeight: 'bolder',
  1340. fontSize: 18,
  1341. }
  1342. },
  1343. detail : {
  1344. textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE
  1345. fontWeight: 'bolder'
  1346. }
  1347. },
  1348. data:[{value: 4, name: '温度'}]
  1349. },
  1350. {
  1351. name: '湿度',
  1352. type: 'gauge',
  1353. center: ['30%', '55%'], // 默认全局居中
  1354. radius: '75%',
  1355. min:0,
  1356. max:10,
  1357. endAngle:45,
  1358. splitNumber:10,
  1359. axisLine: { // 坐标轴线
  1360. lineStyle: { // 属性lineStyle控制线条样式
  1361. width: 3
  1362. }
  1363. },
  1364. axisTick: { // 坐标轴小标记
  1365. length:12, // 属性length控制线长
  1366. lineStyle: { // 属性lineStyle控制线条样式
  1367. color: 'auto',
  1368. width:1
  1369. }
  1370. },
  1371. splitLine: { // 分隔线
  1372. length:20, // 属性length控制线长
  1373. lineStyle: { // 属性lineStyle(详见lineStyle)控制线条样式
  1374. color: 'auto',
  1375. width:1
  1376. }
  1377. },
  1378. pointer: {
  1379. width:5
  1380. },
  1381. title: {
  1382. offsetCenter: [0, '-30%'], // x, y,单位px
  1383. textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE
  1384. color:'#F3F3F3',
  1385. fontWeight: 'bolder',
  1386. fontSize: 15,
  1387. }
  1388. },
  1389. detail: {
  1390. textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE
  1391. fontWeight: 'bolder'
  1392. }
  1393. },
  1394. data:[
  1395. {
  1396. value: 1.5,
  1397. name: '湿度',
  1398. // label:{
  1399. // normal:{
  1400. // show: true,
  1401. // textStyle:{
  1402. // color: '#F3F3F3',
  1403. // fontSize:2
  1404. // }
  1405. // }
  1406. // }
  1407. }]
  1408. },
  1409. {
  1410. name: '有害气体',
  1411. type: 'gauge',
  1412. center: ['72%', '50%'], // 默认全局居中
  1413. radius: '75%',
  1414. min: 0,
  1415. max: 100,
  1416. startAngle: 155,
  1417. endAngle: 25,
  1418. splitNumber: 10,
  1419. axisLine: { // 坐标轴线
  1420. lineStyle: { // 属性lineStyle控制线条样式
  1421. width: 3
  1422. }
  1423. },
  1424. axisTick: { // 坐标轴小标记
  1425. splitNumber: 5,
  1426. length: 10, // 属性length控制线长
  1427. lineStyle: { // 属性lineStyle控制线条样式
  1428. color: 'auto',
  1429. width:1
  1430. }
  1431. },
  1432. axisLabel: {
  1433. formatter:function(v){
  1434. switch (v + '') {
  1435. case '0' : return '0';
  1436. case '50' : return '';
  1437. case '100' : return '100';
  1438. }
  1439. }
  1440. },
  1441. splitLine: { // 分隔线
  1442. length: 15, // 属性length控制线长
  1443. lineStyle: { // 属性lineStyle(详见lineStyle)控制线条样式
  1444. color: 'auto',
  1445. width:1
  1446. }
  1447. },
  1448. pointer: {
  1449. width:2
  1450. },
  1451. title : {
  1452. offsetCenter: [0, '-40%'], // x, y,单位px
  1453. textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE
  1454. color:'#F3F3F3',
  1455. fontWeight: 'bolder',
  1456. fontSize: 10,
  1457. }
  1458. },
  1459. detail : {
  1460. show: false
  1461. },
  1462. data:[{value: 50, name: '有害气体'}]
  1463. },
  1464. {
  1465. name: '积水位',
  1466. type: 'gauge',
  1467. center : ['72%', '50%'], // 默认全局居中
  1468. radius : '75%',
  1469. min: 0,
  1470. max: 100,
  1471. startAngle: 335,
  1472. endAngle: 205,
  1473. splitNumber: 10,
  1474. axisLine: { // 坐标轴线
  1475. lineStyle: { // 属性lineStyle控制线条样式
  1476. width: 3
  1477. }
  1478. },
  1479. axisTick: { // 坐标轴小标记
  1480. splitNumber: 5,
  1481. length: 5, // 属性length控制线长
  1482. lineStyle: { // 属性lineStyle控制线条样式
  1483. color: 'auto',
  1484. width: 1
  1485. }
  1486. },
  1487. axisLabel: {
  1488. formatter:function(v){
  1489. switch (v + '') {
  1490. case '0' : return '0';
  1491. case '50' : return '';
  1492. case '100' : return '100';
  1493. }
  1494. }
  1495. },
  1496. splitLine: { // 分隔线
  1497. length: 15, // 属性length控制线长
  1498. lineStyle: { // 属性lineStyle(详见lineStyle)控制线条样式
  1499. color: 'auto',
  1500. width:1
  1501. }
  1502. },
  1503. pointer: {
  1504. width:2
  1505. },
  1506. title: {
  1507. offsetCenter: [0, 25], // x, y,单位px
  1508. textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE
  1509. color:'#F3F3F3',
  1510. fontWeight: 'bolder',
  1511. fontSize: 10,
  1512. }
  1513. },
  1514. detail: {
  1515. show: false
  1516. },
  1517. data:[{value: 50, name: '积水位'}]
  1518. }
  1519. ]
  1520. };
  1521. environment = echarts.init(document.getElementById("environment"),'');
  1522. environment.setOption(option,true);
  1523. // setInterval(function (){
  1524. // option.series[0].data[0].value = (Math.random()*10).toFixed(2) - 0;
  1525. // option.series[1].data[0].value = (Math.random()*10).toFixed(2) - 0;
  1526. // option.series[2].data[0].value = (Math.random()*100).toFixed(2) - 0;
  1527. // option.series[3].data[0].value = (Math.random()*100).toFixed(2) - 0;
  1528. // },1000);
  1529. }
  1530. function objPipeline(){
  1531. option = {
  1532. grid: {x:40,y:10,x2:35,y2:0,borderWidth:0},//改变图形控件的大小,数据越大图形越小
  1533. tooltip: {
  1534. trigger: 'axis',
  1535. borderWidth: 2,
  1536. borderColor: '#165484',
  1537. backgroundColor: '#092651',
  1538. textStyle: {
  1539. color : '#DEDEDE',
  1540. fontSize: 15,
  1541. },
  1542. formatter:'{b1}: {c1}'
  1543. },
  1544. noDataLoadingOption : {
  1545. text : "No data to display.",
  1546. effect : 'bubble',
  1547. effectOption : {
  1548. backgroundColor : 'rgba(255,255,255,0)',
  1549. effect : {
  1550. n : 0
  1551. }
  1552. }
  1553. },
  1554. xAxis: [
  1555. {
  1556. type: 'value',
  1557. axisLabel: {
  1558. show: false,
  1559. },
  1560. splitLine: {
  1561. show: false
  1562. },
  1563. axisLine: {
  1564. show: false,
  1565. },
  1566. axisTick: {
  1567. show:false,
  1568. alignWithLabel:false,
  1569. },
  1570. data: ['水温','压力','流量']
  1571. }
  1572. ],
  1573. yAxis: [
  1574. {
  1575. type: 'category',
  1576. axisLabel: {
  1577. show: true,
  1578. margin: 10,
  1579. textStyle: {
  1580. color: '#D0D0D1',
  1581. fontSize: 15,
  1582. fontFamily : '微软雅黑',
  1583. fontWeight : 'normal'
  1584. }
  1585. },
  1586. splitLine: {
  1587. show: false
  1588. },
  1589. axisLine: {
  1590. show: true,
  1591. lineStyle: {
  1592. color: '#C0C0C1',
  1593. width: 1,
  1594. }
  1595. },
  1596. axisTick: {
  1597. show:true,
  1598. alignWithLabel:true,
  1599. //interval: 50,
  1600. length: 10,
  1601. lineStyle: {
  1602. color: '#C0C0C1',
  1603. width: 0,
  1604. }
  1605. },
  1606. data: ['流量','压力','水温']
  1607. }
  1608. ],
  1609. series: [
  1610. {
  1611. name : '管线',
  1612. type:'bar',
  1613. stack : '总量',
  1614. itemStyle: {
  1615. normal: {
  1616. color: '#353536',
  1617. lineStyle: {
  1618. width: 6,
  1619. //color: '#2A2A2C'
  1620. },
  1621. label: {
  1622. show: false,
  1623. },
  1624. barBorderRadius: 15, // 统一设置四个角的圆角大小
  1625. },
  1626. },
  1627. data:[1,1,1]
  1628. },
  1629. {
  1630. name : '管线',
  1631. type:'bar',
  1632. stack : '总量',
  1633. barWidth: 30,
  1634. itemStyle: {
  1635. normal: {
  1636. color: '#3AFF55',
  1637. lineStyle: {
  1638. width: 6,
  1639. color: '#3AFF55'
  1640. },
  1641. label: {
  1642. show: true,
  1643. position: 'right',
  1644. formatter: '{c}',
  1645. textStyle: {
  1646. //color: '#CB2D2E',
  1647. fontSize: 15,
  1648. },
  1649. },
  1650. barBorderRadius: 15, // 统一设置四个角的圆角大小
  1651. },
  1652. },
  1653. data:[{value:22.14,
  1654. itemStyle: {
  1655. normal:{
  1656. color : '#3D80CC'
  1657. }
  1658. }
  1659. },
  1660. {value:32.56,
  1661. itemStyle: {
  1662. normal:{
  1663. color : '#D76F33'
  1664. }
  1665. }
  1666. },
  1667. {value:12.31,
  1668. itemStyle: {
  1669. normal:{
  1670. color : '#84BC99'
  1671. }
  1672. }
  1673. }]
  1674. },
  1675. ]
  1676. };
  1677. chartObj_pipeline = echarts.init(document.getElementById("chartObj_pipeline"),'');
  1678. chartObj_pipeline.setOption(option,true);
  1679. }
  1680. function chartObjEnvironment(){
  1681. option = {
  1682. grid: {x:140,y:0,x2:35,y2:0,borderWidth:0},//改变图形控件的大小,数据越大图形越小
  1683. tooltip: {
  1684. trigger: 'axis',
  1685. borderWidth: 2,
  1686. borderColor: '#165484',
  1687. backgroundColor: '#092651',
  1688. textStyle: {
  1689. color : '#DEDEDE',
  1690. fontSize: 15,
  1691. },
  1692. formatter:'{b1}: {c1}'
  1693. },
  1694. noDataLoadingOption : {
  1695. text : "No data to display.",
  1696. effect : 'bubble',
  1697. effectOption : {
  1698. backgroundColor : 'rgba(255,255,255,0)',
  1699. effect : {
  1700. n : 0
  1701. }
  1702. }
  1703. },
  1704. xAxis: [
  1705. {
  1706. type: 'value',
  1707. axisLabel: {
  1708. show: false,
  1709. },
  1710. splitLine: {
  1711. show: false
  1712. },
  1713. axisLine: {
  1714. show: false,
  1715. },
  1716. axisTick: {
  1717. show:false,
  1718. alignWithLabel:false,
  1719. },
  1720. data: ['水温','压力','流量']
  1721. }
  1722. ],
  1723. yAxis: [
  1724. {
  1725. type: 'category',
  1726. axisLabel: {
  1727. show: true,
  1728. margin: 10,
  1729. textStyle: {
  1730. color: '#D0D0D1',
  1731. fontSize: 15,
  1732. fontFamily : '微软雅黑',
  1733. fontWeight : 'normal'
  1734. }
  1735. },
  1736. splitLine: {
  1737. show: false
  1738. },
  1739. axisLine: {
  1740. show: true,
  1741. lineStyle: {
  1742. color: '#C0C0C1',
  1743. width: 1,
  1744. }
  1745. },
  1746. axisTick: {
  1747. show:true,
  1748. alignWithLabel:true,
  1749. //interval: 50,
  1750. length: 10,
  1751. lineStyle: {
  1752. color: '#C0C0C1',
  1753. width: 0,
  1754. }
  1755. },
  1756. data: ['积水位','有害气体','温度','湿度']
  1757. }
  1758. ],
  1759. series: [
  1760. {
  1761. name : '管线',
  1762. type:'bar',
  1763. stack : '总量',
  1764. itemStyle: {
  1765. normal: {
  1766. color: '#353536',
  1767. lineStyle: {
  1768. width: 6,
  1769. color: '#353536'
  1770. },
  1771. label: {
  1772. show: false,
  1773. },
  1774. barBorderRadius: 15, // 统一设置四个角的圆角大小
  1775. },
  1776. },
  1777. data:[1,1,1,1]
  1778. },
  1779. {
  1780. name : '管线',
  1781. type:'bar',
  1782. stack : '总量',
  1783. barWidth: 15,
  1784. itemStyle: {
  1785. normal: {
  1786. color: '#353536',
  1787. lineStyle: {
  1788. width: 6,
  1789. color: '#353536'
  1790. },
  1791. label: {
  1792. show: true,
  1793. position: 'right',
  1794. formatter: '{c}',
  1795. textStyle: {
  1796. //color: '#CB2D2E',
  1797. fontSize: 15,
  1798. },
  1799. },
  1800. barBorderRadius: 15, // 统一设置四个角的圆角大小
  1801. },
  1802. },
  1803. data:[{value:5.33,
  1804. itemStyle: {
  1805. normal:{
  1806. color : '#9ABB4E'
  1807. }
  1808. }
  1809. },
  1810. {value:11.21,
  1811. itemStyle: {
  1812. normal:{
  1813. color : '#912ECD'
  1814. }
  1815. }
  1816. },
  1817. {value:23.17,
  1818. itemStyle: {
  1819. normal:{
  1820. color : '#FDAA00'
  1821. }
  1822. }
  1823. },
  1824. {value:1.91,
  1825. itemStyle: {
  1826. normal:{
  1827. color : '#00BCFF'
  1828. }
  1829. }
  1830. }]
  1831. },
  1832. ]
  1833. };
  1834. chartObj_environment = echarts.init(document.getElementById("chartObj_environment"),'');
  1835. chartObj_environment.setOption(option,true);
  1836. }
  1837. /*基础的js*/
  1838. /*container-nav*/
  1839. $("#nav .fold").on('click',function(){
  1840. $(this).parent('.show').addClass('none');
  1841. $(this).parent('.show').siblings('.close').removeClass('none');
  1842. });
  1843. $("#nav .close").on('click',function(){
  1844. $(this).addClass('none');
  1845. $(this).siblings('.show').removeClass('none');
  1846. });
  1847. $("#nav .navgation>li .modular").hover(function(){
  1848. $(this).css('background-color','#323437');
  1849. },function(){
  1850. $(this).css('background-color','transparent');
  1851. });
  1852. $("#nav .navgation>li").on('click',function(){
  1853. if($(this).find('ul').is('.none')){
  1854. $(this).find('ul').removeClass('none');
  1855. $(this).find(".symbol").html('-');
  1856. $(this).find('img').attr('src','/resources/images/top.png')
  1857. }else{
  1858. $(this).find('ul').addClass('none');
  1859. $(this).find(".symbol").html('+');
  1860. $(this).find('img').attr('src','/resources/images/bottom.png')
  1861. }
  1862. });
  1863. /*equip*/
  1864. $(".state_ck1").on('click',function(){
  1865. $(this).find('.main_img').attr('src','/resources/images/equip_1.2.png');
  1866. $(this).find('.ck_img').attr('src','/resources/images/ck2.png');
  1867. $(this).siblings('div').find('.main_img').attr('src','/resources/images/equip_2.1.png');
  1868. $(this).siblings('div').find('.ck_img').attr('src','/resources/images/ck1.png');
  1869. });
  1870. $(".state_ck2").on('click',function(){
  1871. $(this).find('.main_img').attr('src','/resources/images/equip_2.2.png');
  1872. $(this).find('.ck_img').attr('src','/resources/images/ck2.png');
  1873. $(this).siblings('div').find('.main_img').attr('src','/resources/images/equip_1.1.png');
  1874. $(this).siblings('div').find('.ck_img').attr('src','/resources/images/ck1.png');
  1875. });
  1876. /*路径配置*/
  1877. var Map3D_Config = {
  1878. FlyUrl: "D:\\3d\\SmartEarth智慧城市开发框架\\De.fly",//Fly文件路径
  1879. GlObjectId: '',//存储高亮对象Id
  1880. thermalChamberUrl: 'http://localhost:8080/thermalChamber',//热力仓Url
  1881. powerChamberUrl: 'http://localhost:8080/powerChamber',//电力仓Url
  1882. synthesizeChamberUrl: 'http://localhost:8080/synthesizeChamber',//综合仓Url
  1883. }
  1884. var tempTerrainId = 0;
  1885. var clickCreatorTerra = 0;
  1886. var tempName = "";
  1887. var gPolyObj = null;
  1888. var Polygon = null;
  1889. var sidePolygon = null;
  1890. var htmlurl = window.location.href;
  1891. var allurl = htmlurl.substring(0, htmlurl.lastIndexOf("/") + 1);
  1892. function lookCreatorExcavate() {
  1893. try {
  1894. allClean();
  1895. AllInitialise();
  1896. } catch (e) {
  1897. }
  1898. //sgworld.Navigate.UndergroundMode = false;
  1899. var GroupId = sgworld.ProjectTree.FindItem(allPosition + "深圳\\深圳\\深圳地下管线");
  1900. if (GroupId != 0) {
  1901. sgworld.ProjectTree.SetVisibility(GroupId, true);
  1902. try { showGroupId.push(GroupId); } catch (e) {
  1903. }
  1904. }
  1905. var tempTerraId = sgworld.ProjectTree.FindItem(allPosition + "深圳\\深圳\\临时地形");
  1906. if (tempTerraId != 0) {
  1907. sgworld.ProjectTree.SetVisibility(tempTerraId, true);
  1908. try { showGroupId.push(tempTerraId); } catch (e) {
  1909. }
  1910. }
  1911. var itemId = sgworld.ProjectTree.FindItem(allPosition + "定位点\\开挖浏览");
  1912. if (itemId != 0) {
  1913. var obj = sgworld.ProjectTree.GetObject(itemId);
  1914. sgworld.Navigate.FlyTo(obj, 0);
  1915. }
  1916. }
  1917. function creatorExcavate() {
  1918. if (clickCreatorTerra == 0) {
  1919. try {
  1920. allClean();
  1921. AllInitialise();
  1922. } catch (e) {
  1923. }
  1924. tempTerrainId = sgworld.ProjectTree.FindItem("临时地形");
  1925. if (tempTerrainId == 0) {
  1926. tempTerrainId = sgworld.ProjectTree.CreateGroup("临时地形");
  1927. }
  1928. for (var i = 0; ; i++) {
  1929. var tempId = sgworld.ProjectTree.FindItem("临时地形\\" + "temp" + i);
  1930. if (tempId == 0) {
  1931. tempName = "temp" + i;
  1932. break;
  1933. }
  1934. }
  1935. clickCreatorTerra = 1;
  1936. sgworld.AttachEvent("OnLButtonDown", polygon_OnLButtonDown);
  1937. sgworld.AttachEvent("OnRButtonUp", polygon_OnRButtonUp);
  1938. sgworld.AttachEvent("OnFrame", polygon_OnFrame);
  1939. sgworld.Window.SetInputMode(1);
  1940. }
  1941. else {
  1942. try {
  1943. var mytempTerrainId = sgworld.ProjectTree.FindItem("临时地形");
  1944. if (mytempTerrainId != "") {
  1945. sgworld.ProjectTree.DeleteItem(mytempTerrainId);
  1946. }
  1947. } catch (e) { }
  1948. allClean();
  1949. clickCreatorTerra = 0;
  1950. }
  1951. }
  1952. function polygon_OnLButtonDown(Flags, X, Y) {
  1953. var CursorCoord = sgworld.Window.PixelToWorld(X, Y);
  1954. if (gPolyObj == null) {
  1955. var myLine = sgworld.Creator.GeometryCreator.CreateLineStringGeometry([CursorCoord.Position.x, CursorCoord.Position.y, 0, CursorCoord.Position.x, CursorCoord.Position.y, 0]);
  1956. gPolyObj = sgworld.Creator.CreatePolyline(myLine, sgworld.Creator.CreateColor(255, 0, 0, 255), 2, tempTerrainId, tempName);
  1957. gPolyObj.LineStyle.Width = -1;
  1958. gPolyObj.Geometry.StartEdit();
  1959. }
  1960. else {
  1961. if (gPolyObj.ObjectType == 1) {
  1962. // Deleting the temporary line
  1963. var x = gPolyObj.Geometry.Points.Item(0).X;
  1964. var y = gPolyObj.Geometry.Points.Item(0).Y;
  1965. sgworld.Creator.DeleteObject(gPolyObj.ID);
  1966. // Creating the polygon
  1967. var myGeometry = sgworld.Creator.GeometryCreator.CreateLinearRingGeometry([x, y, 0, CursorCoord.Position.x, CursorCoord.Position.y, 0, CursorCoord.Position.x, CursorCoord.Position.y, 0])
  1968. gPolyObj = sgworld.Creator.createPolygon(myGeometry, sgworld.Creator.CreateColor(255, 0, 0, 1), sgworld.Creator.CreateColor(0, 255, 0, 0.5), 2, tempTerrainId, tempName);
  1969. gPolyObj.LineStyle.Width = -2;
  1970. gPolyObj.Terrain.GroundObject = true;
  1971. gPolyObj.Geometry.StartEdit();
  1972. }
  1973. else {
  1974. gPolyObj.Geometry.Rings(0).Points.Item(gPolyObj.Geometry.Rings(0).Points.count - 1).X = CursorCoord.Position.x;
  1975. gPolyObj.Geometry.Rings(0).Points.Item(gPolyObj.Geometry.Rings(0).Points.count - 1).Y = CursorCoord.Position.y;
  1976. gPolyObj.Geometry.Rings(0).Points.Item(gPolyObj.Geometry.Rings(0).Points.count - 1).Z = 0;
  1977. gPolyObj.Geometry.Rings(0).Points.AddPoint(CursorCoord.Position.x, CursorCoord.Position.y, 0);
  1978. }
  1979. }
  1980. return true;
  1981. }
  1982. function polygon_OnFrame()
  1983. {
  1984. if (gPolyObj != null) {
  1985. try {
  1986. var mouseInfo = sgworld.Window.GetMouseInfo()
  1987. var CursorCoord = sgworld.Window.pixelToWorld(mouseInfo.X, mouseInfo.Y);
  1988. if (CursorCoord == null)
  1989. return false;
  1990. if (gPolyObj.ObjectType == 2) {
  1991. gPolyObj.Geometry.Rings(0).Points.Item(gPolyObj.Geometry.Rings(0).Points.count - 1).X = CursorCoord.Position.x;
  1992. gPolyObj.Geometry.Rings(0).Points.Item(gPolyObj.Geometry.Rings(0).Points.count - 1).Y = CursorCoord.Position.y;
  1993. gPolyObj.Geometry.Rings(0).Points.Item(gPolyObj.Geometry.Rings(0).Points.count - 1).Z = 0;
  1994. }
  1995. else {
  1996. gPolyObj.Geometry.Points.Item(gPolyObj.Geometry.Points.count - 1).X = CursorCoord.Position.x;
  1997. gPolyObj.Geometry.Points.Item(gPolyObj.Geometry.Points.count - 1).Y = CursorCoord.Position.y;
  1998. gPolyObj.Geometry.Points.Item(gPolyObj.Geometry.Points.count - 1).Z = 0;
  1999. }
  2000. }
  2001. catch (e) { }
  2002. }
  2003. }
  2004. // private static ITerrainHole61 tempModifier = null;
  2005. function polygon_OnRButtonUp(Flags, X, Y) {
  2006. if (gPolyObj != null) {
  2007. if (gPolyObj.ObjectType == 1) {
  2008. sgworld.Creator.DeleteObject(gPolyObj.ID);
  2009. }
  2010. else {
  2011. gPolyObj.Geometry.Rings(0).Points.DeletePoint(gPolyObj.Geometry.Rings(0).Points.count - 1);
  2012. if (gPolyObj.Geometry.Rings(0).Points.count > 2) {
  2013. for (var i = 0; i < gPolyObj.Geometry.Rings(0).Points.count; i++) {
  2014. if (i < gPolyObj.Geometry.Rings(0).Points.count - 1) {
  2015. var point1 = gPolyObj.Geometry.Rings(0).Points.Item(i);
  2016. var point2 = gPolyObj.Geometry.Rings(0).Points.Item(i + 1);
  2017. // var point3 = sgworld.Terrain.GetGroundHeightInfo(point2.X, point2.Y, 1, false);
  2018. // var point4 = sgworld.Terrain.GetGroundHeightInfo(point1.X, point1.Y, 1, false);
  2019. var myLine = sgworld.Creator.GeometryCreator.CreateLineStringGeometry([point1.X, point1.Y, -20, point2.X, point2.Y, -20]);
  2020. sidePolygon = sgworld.Creator.CreatePolyline(myLine, sgworld.Creator.CreateColor(155, 155, 155, 255), 3, tempTerrainId, tempName);
  2021. sidePolygon.FillStyle.Texture.FileName = allurl + "images\\dijian.jpg";
  2022. sidePolygon.FillStyle.Texture.TilingMethod = 1;
  2023. sidePolygon.ExtendToGround = true;
  2024. sidePolygon.FillStyle.Texture.ScaleX = 50;
  2025. sidePolygon.FillStyle.Texture.ScaleY = 50;
  2026. sidePolygon.LineStyle.Width = -1;
  2027. sidePolygon.Terrain.GroundObject = false;
  2028. }
  2029. else {
  2030. if (i == gPolyObj.Geometry.Rings(0).Points.count - 1) {
  2031. var point1 = gPolyObj.Geometry.Rings(0).Points.Item(i);
  2032. var point2 = gPolyObj.Geometry.Rings(0).Points.Item(0);
  2033. // var point3 = sgworld.Terrain.GetGroundHeightInfo(point2.X, point2.Y, 1, false);
  2034. // var point4 = sgworld.Terrain.GetGroundHeightInfo(point1.X, point1.Y, 1, false);
  2035. // var myLine = sgworld.Creator.GeometryCreator.CreateLinearRingGeometry([point1.X, point1.Y, -20, point2.X, point2.Y, -20, point3.Position.X, point3.Position.Y, point3.Position.Altitude, point4.Position.X, point4.Position.Y, point4.Position.Altitude, point4.Position.X, point4.Position.Y, point4.Position.Altitude]);
  2036. // sidePolygon = sgworld.Creator.CreatePolygon(myLine, sgworld.Creator.CreateColor(150, 150, 150, 255), sgworld.Creator.CreateColor(150, 150, 150, 255), 3, tempTerrainId, tempName+i);
  2037. var myLine = sgworld.Creator.GeometryCreator.CreateLineStringGeometry([point1.X, point1.Y, -20, point2.X, point2.Y, -20]);
  2038. sidePolygon = sgworld.Creator.CreatePolyline(myLine, sgworld.Creator.CreateColor(155, 155, 155, 255), 3, tempTerrainId, tempName);
  2039. sidePolygon.FillStyle.Texture.FileName = allurl + "images/dijian.jpg";
  2040. sidePolygon.FillStyle.Texture.TilingMethod = 1;
  2041. sidePolygon.ExtendToGround = true;
  2042. sidePolygon.FillStyle.Texture.ScaleX = 50;
  2043. sidePolygon.FillStyle.Texture.ScaleY = 50;
  2044. sidePolygon.LineStyle.Width = -1;
  2045. sidePolygon.Terrain.GroundObject = false;
  2046. }
  2047. }
  2048. }
  2049. gPolyObj.Geometry.EndEdit();
  2050. var tempModifier = sgworld.Creator.CreateHoleOnTerrain(gPolyObj.Geometry, tempTerrainId, tempName);
  2051. Polygon = sgworld.Creator.CreatePolygon(gPolyObj.Geometry, sgworld.Creator.CreateColor(150, 150, 150, 255), sgworld.Creator.CreateColor(150, 150, 150, 255), 3, tempTerrainId, tempName);
  2052. Polygon.FillStyle.Texture.FileName = allurl + "images/dimian.jpg";
  2053. Polygon.FillStyle.Texture.TilingMethod = 1;
  2054. Polygon.FillStyle.Texture.ScaleX = 100;
  2055. Polygon.FillStyle.Texture.ScaleY = 100;
  2056. Polygon.Terrain.GroundObject = false;
  2057. Polygon.Position.Altitude = -20;
  2058. //tempModifier.Position.Altitude = -40;
  2059. }
  2060. if (gPolyObj != null) {
  2061. sgworld.Creator.DeleteObject(gPolyObj.ID);
  2062. //sgworld.ProjectTree.DeleteItem(gPolyObj.TreeItem.ItemID);
  2063. }
  2064. }
  2065. }
  2066. polygon_Clean();
  2067. return true;
  2068. }
  2069. /// <summary>
  2070. /// 初始化绘制多边形
  2071. /// </summary>
  2072. function polygon_Clean()
  2073. {
  2074. try
  2075. {
  2076. tempTerrainId = 0;
  2077. tempName = "";
  2078. gPolyObj = null;
  2079. Polygon = null;
  2080. sidePolygon = null;
  2081. sgworld.DetachEvent("OnLButtonDown", polygon_OnLButtonDown);
  2082. sgworld.DetachEvent("OnRButtonUp", polygon_OnRButtonUp);
  2083. sgworld.DetachEvent("OnFrame", polygon_OnFrame);
  2084. sgworld.Window.SetInputMode(0);
  2085. }
  2086. catch(e)
  2087. {
  2088. }
  2089. }
  2090. //点击
  2091. function select_OnLButtonUp(Flags, X, Y) {
  2092. var selectFeature = null;
  2093. var CursorCoord = sgworld.Window.PixelToWorld(X, Y);
  2094. var clickPopup;
  2095. if (CursorCoord.Type == 8192) {
  2096. selectFeature = sgworld.Creator.GetObject(CursorCoord.ObjectID);
  2097. sgworld.Window.RemovePopupByCaption("属性");
  2098. try {
  2099. var type = selectFeature.FeatureAttributes.GetFeatureAttribute("DataType").Value;
  2100. try {
  2101. if (type == "polyline") {
  2102. var selectType = "attributePolyline";
  2103. var Id = selectFeature.FeatureAttributes.GetFeatureAttribute("Id").Value;
  2104. var Type = selectFeature.FeatureAttributes.GetFeatureAttribute("Type").Value;
  2105. var Size = selectFeature.FeatureAttributes.GetFeatureAttribute("Size").Value;
  2106. var StartId = selectFeature.FeatureAttributes.GetFeatureAttribute("StartId").Value;
  2107. var EndId = selectFeature.FeatureAttributes.GetFeatureAttribute("EndId").Value;
  2108. var Yaw = selectFeature.FeatureAttributes.GetFeatureAttribute("Yaw").Value;
  2109. var Pitch = selectFeature.FeatureAttributes.GetFeatureAttribute("Pitch").Value;
  2110. var scaleY = selectFeature.FeatureAttributes.GetFeatureAttribute("scaleY").Value;
  2111. clickPopup = sgworld.Creator.CreatePopupMessage("属性", allurl + "clickSelect.html?type=1" + "&Id=" + Id + "&Type=" + Type + "&Size=" + Size + "&StartId=" + StartId + "&EndId=" + EndId + "&Yaw=" + Yaw + "&Pitch=" + Pitch + "&scaleY=" + scaleY, 235, 100, 220, 220);
  2112. //clickPopup.InnerText = htmlStr;
  2113. clickPopup.Flags = 512;
  2114. clickPopup.AllowResize = true;
  2115. clickPopup.AllowDrag = true;
  2116. sgworld.Window.ShowPopup(clickPopup);
  2117. }
  2118. if (type == "point") {
  2119. var selectType = "attributePoint";
  2120. var Id = selectFeature.FeatureAttributes.GetFeatureAttribute("Id").Value;
  2121. var Type = selectFeature.FeatureAttributes.GetFeatureAttribute("Type").Value;
  2122. var NodeId = selectFeature.FeatureAttributes.GetFeatureAttribute("NodeId").Value;
  2123. var JoinType = selectFeature.FeatureAttributes.GetFeatureAttribute("JoinType").Value;
  2124. var TerraDepth = selectFeature.FeatureAttributes.GetFeatureAttribute("TerraDepth").Value;
  2125. var WellType = selectFeature.FeatureAttributes.GetFeatureAttribute("WellType").Value;
  2126. clickPopup = sgworld.Creator.CreatePopupMessage("属性", allurl + "clickSelect.html?type=2" + "&Id=" + Id + "&Type=" + Type + "&NodeId=" + NodeId + "&JoinType=" + JoinType + "&TerraDepth=" + TerraDepth + "&WellType=" + WellType, 235, 100, 220, 220);
  2127. //clickPopup.InnerText = htmlStr;
  2128. clickPopup.Flags = 512;
  2129. clickPopup.AllowResize = true;
  2130. clickPopup.AllowDrag = true;
  2131. sgworld.Window.ShowPopup(clickPopup);
  2132. }
  2133. }
  2134. catch (e)
  2135. { }
  2136. } catch (e) {
  2137. }
  2138. //document.getElementById("TerraExplorerInformationWindow").style.display = "none";
  2139. }
  2140. return true;
  2141. }
  2142. function select_OnRButtonUp(Flags, X, Y) {
  2143. sgworld.DetachEvent("OnLButtonUp", select_OnLButtonUp);
  2144. sgworld.DetachEvent("OnRButtonUp", select_OnRButtonUp);
  2145. sgworld.Window.SetInputMode(0);
  2146. return true;
  2147. }
  2148. var selectPolygonId = 0;
  2149. var selectPolygonName = "area";
  2150. var selectgPolyObj = null;
  2151. function selectPolygon() {
  2152. AllEventClean();
  2153. CleanTint();
  2154. variableClean();
  2155. selectPolygonId = sgworld.ProjectTree.FindItem("临时区域");
  2156. if (selectPolygonId == 0) {
  2157. selectPolygonId = sgworld.ProjectTree.CreateGroup("临时区域");
  2158. }
  2159. sgworld.AttachEvent("OnLButtonDown", selectPolygon_OnLButtonDown);
  2160. sgworld.AttachEvent("OnRButtonUp", selectPolygon_OnRButtonUp);
  2161. sgworld.AttachEvent("OnFrame", selectPolygon_OnFrame);
  2162. sgworld.Window.SetInputMode(1);
  2163. }
  2164. function selectPolygon_OnLButtonDown(Flags, X, Y) {
  2165. var CursorCoord = sgworld.Window.PixelToWorld(X, Y);
  2166. if (selectgPolyObj == null) {
  2167. var myLine = sgworld.Creator.GeometryCreator.CreateLineStringGeometry([CursorCoord.Position.x, CursorCoord.Position.y, 0, CursorCoord.Position.x, CursorCoord.Position.y, 0]);
  2168. selectgPolyObj = sgworld.Creator.CreatePolyline(myLine, sgworld.Creator.CreateColor(255, 0, 0, 255), 0, selectPolygonId, tempName);
  2169. selectgPolyObj.LineStyle.Width = -1;
  2170. selectgPolyObj.Geometry.StartEdit();
  2171. }
  2172. else {
  2173. if (selectgPolyObj.ObjectType == 1) {
  2174. // Deleting the temporary line
  2175. var x = selectgPolyObj.Geometry.Points.Item(0).X;
  2176. var y = selectgPolyObj.Geometry.Points.Item(0).Y;
  2177. sgworld.Creator.DeleteObject(selectgPolyObj.ID);
  2178. // Creating the polygon
  2179. var myGeometry = sgworld.Creator.GeometryCreator.CreateLinearRingGeometry([x, y, 0, CursorCoord.Position.x, CursorCoord.Position.y, 0, CursorCoord.Position.x, CursorCoord.Position.y, 0])
  2180. selectgPolyObj = sgworld.Creator.createPolygon(myGeometry, sgworld.Creator.CreateColor(255, 0, 0, 255), sgworld.Creator.CreateColor(0, 255, 0, 26), 0, selectPolygonId, tempName);
  2181. selectgPolyObj.LineStyle.Width = -2;
  2182. selectgPolyObj.Terrain.GroundObject = true;
  2183. selectgPolyObj.Geometry.StartEdit();
  2184. }
  2185. else {
  2186. selectgPolyObj.Geometry.Rings(0).Points.Item(selectgPolyObj.Geometry.Rings(0).Points.count - 1).X = CursorCoord.Position.x;
  2187. selectgPolyObj.Geometry.Rings(0).Points.Item(selectgPolyObj.Geometry.Rings(0).Points.count - 1).Y = CursorCoord.Position.y;
  2188. selectgPolyObj.Geometry.Rings(0).Points.Item(selectgPolyObj.Geometry.Rings(0).Points.count - 1).Z = 0;
  2189. selectgPolyObj.Geometry.Rings(0).Points.AddPoint(CursorCoord.Position.x, CursorCoord.Position.y, 0);
  2190. }
  2191. }
  2192. return true;
  2193. }
  2194. function selectPolygon_OnFrame()
  2195. {
  2196. if (selectgPolyObj != null) {
  2197. try {
  2198. var mouseInfo = sgworld.Window.GetMouseInfo()
  2199. var CursorCoord = sgworld.Window.pixelToWorld(mouseInfo.X, mouseInfo.Y);
  2200. if (CursorCoord == null)
  2201. return false;
  2202. if (selectgPolyObj.ObjectType == 2) {
  2203. selectgPolyObj.Geometry.Rings(0).Points.Item(selectgPolyObj.Geometry.Rings(0).Points.count - 1).X = CursorCoord.Position.x;
  2204. selectgPolyObj.Geometry.Rings(0).Points.Item(selectgPolyObj.Geometry.Rings(0).Points.count - 1).Y = CursorCoord.Position.y;
  2205. selectgPolyObj.Geometry.Rings(0).Points.Item(selectgPolyObj.Geometry.Rings(0).Points.count - 1).Z = 0;
  2206. }
  2207. else {
  2208. selectgPolyObj.Geometry.Points.Item(selectgPolyObj.Geometry.Points.count - 1).X = CursorCoord.Position.x;
  2209. selectgPolyObj.Geometry.Points.Item(selectgPolyObj.Geometry.Points.count - 1).Y = CursorCoord.Position.y;
  2210. selectgPolyObj.Geometry.Points.Item(selectgPolyObj.Geometry.Points.count - 1).Z = 0;
  2211. }
  2212. }
  2213. catch (e) { }
  2214. }
  2215. }
  2216. // private static ITerrainHole61 tempModifier = null;
  2217. function selectPolygon_OnRButtonUp(Flags, X, Y) {
  2218. var htmlStr = "";
  2219. selectPolygonId = 0;
  2220. selectPolygonName = "area";
  2221. sgworld.DetachEvent("OnLButtonDown", selectPolygon_OnLButtonDown);
  2222. sgworld.DetachEvent("OnRButtonUp", selectPolygon_OnRButtonUp);
  2223. sgworld.DetachEvent("OnFrame", selectPolygon_OnFrame);
  2224. sgworld.Window.SetInputMode(0);
  2225. try
  2226. {if(selectgPolyObj!=null)
  2227. {
  2228. if (selectgPolyObj.ObjectType == 1) {
  2229. sgworld.Creator.DeleteObject(selectgPolyObj.ID);
  2230. }
  2231. else {
  2232. selectgPolyObj.Geometry.Rings(0).Points.DeletePoint(selectgPolyObj.Geometry.Rings(0).Points.count - 1);
  2233. if (selectgPolyObj.Geometry.Rings(0).Points.count > 2) {
  2234. selectgPolyObj.Geometry.EndEdit();
  2235. // var AllPath = new Array();
  2236. // AllPath.push();
  2237. var layerItemId = sgworld.ProjectTree.FindItem(allPosition + "管道\\guandao1\\规划中压燃气Line1"); //管道\\
  2238. if (layerItemId != 0) {
  2239. var pipeLayer = sgworld.ProjectTree.GetObject(layerItemId);
  2240. if (pipeLayer.ObjectType == 39) {
  2241. try {
  2242. var selectedLayer = pipeLayer.ExecuteSpatialQuery(selectgPolyObj.Geometry, 1);
  2243. if (selectedLayer.Count > 0) {
  2244. htmlStr = "<html><head><title></title>";
  2245. htmlStr += "<style>table{border-right:1px solid #ED7D31;border-bottom:1px solid #ED7D31}table td{border-left:1px solid #ED7D31;border-top:1px solid #ED7D31}</style>";
  2246. htmlStr += "</head><body style='width:100%;height:100%; margin:2px; padding:2px;'><table style='width:100%; text-align:center;font-size:12px;' border='0' cellspacing='0' cellpadding='0'><tr style='background-color:#ED7D31'>";
  2247. var firstFeature = selectedLayer(0);
  2248. htmlStr += "<td>";
  2249. htmlStr += "编号";
  2250. htmlStr += "</td>";
  2251. htmlStr += "<td>";
  2252. htmlStr += "类型";
  2253. htmlStr += "</td>";
  2254. htmlStr += "<td>";
  2255. htmlStr += "坡度";
  2256. htmlStr += "</td>";
  2257. htmlStr += "<td>";
  2258. htmlStr += "管径";
  2259. htmlStr += "</td>";
  2260. htmlStr += "<td>";
  2261. htmlStr += "起始设备编号";
  2262. htmlStr += "</td>";
  2263. htmlStr += "<td>";
  2264. htmlStr += "结束设备编号";
  2265. htmlStr += "</td>";
  2266. htmlStr += "</tr>";
  2267. for (var m = 0; m < selectedLayer.Count; m++) {
  2268. var iAttribute = null;
  2269. try {
  2270. iAttribute = selectedLayer(m);
  2271. } catch (e) {
  2272. iAttribute = null;
  2273. }
  2274. if (iAttribute != null) {
  2275. if (m % 2 == 0) {
  2276. htmlStr += "<tr style='background-color:#FBE4D5'>";
  2277. }
  2278. else {
  2279. htmlStr += "<tr>";
  2280. }
  2281. htmlStr += "<td>";
  2282. try {
  2283. htmlStr += iAttribute.FeatureAttributes.GetFeatureAttribute("Id").Value;
  2284. } catch (e)
  2285. { }
  2286. htmlStr += "</td>";
  2287. htmlStr += "<td>";
  2288. try {
  2289. htmlStr += iAttribute.FeatureAttributes.GetFeatureAttribute("Type").Value;
  2290. } catch (e)
  2291. { }
  2292. htmlStr += "</td>";
  2293. htmlStr += "<td>";
  2294. try {
  2295. htmlStr += iAttribute.FeatureAttributes.GetFeatureAttribute("Pitch").Value;
  2296. } catch (e)
  2297. { }
  2298. htmlStr += "</td>";
  2299. htmlStr += "<td>";
  2300. try {
  2301. htmlStr += iAttribute.FeatureAttributes.GetFeatureAttribute("Size").Value;
  2302. } catch (e)
  2303. { }
  2304. htmlStr += "</td>";
  2305. htmlStr += "<td>";
  2306. try {
  2307. htmlStr += iAttribute.FeatureAttributes.GetFeatureAttribute("StartId").Value;
  2308. } catch (e)
  2309. { }
  2310. htmlStr += "</td>";
  2311. htmlStr += "<td>";
  2312. try {
  2313. htmlStr += iAttribute.FeatureAttributes.GetFeatureAttribute("EndId").Value;
  2314. } catch (e)
  2315. { }
  2316. htmlStr += "</td>";
  2317. htmlStr += "</tr>";
  2318. }
  2319. }
  2320. htmlStr += "</table></body></html>";
  2321. if (htmlStr != "") {
  2322. var ScreenRectHeight = sgworld.Window.Rect.Height;
  2323. var ScreenRectWidth = sgworld.Window.Rect.Width;
  2324. var areaPopup = sgworld.Creator.CreatePopupMessage("区域查询", "", 231, (ScreenRectHeight-170), (ScreenRectWidth - 231), 170);
  2325. areaPopup.InnerText = htmlStr;
  2326. areaPopup.Flags = 512;
  2327. areaPopup.AllowResize = true;
  2328. areaPopup.AllowDrag = true;
  2329. sgworld.Window.ShowPopup(areaPopup);
  2330. }
  2331. }
  2332. else {
  2333. alert("没有查询到数据!");
  2334. }
  2335. } catch (e)
  2336. { }
  2337. }
  2338. }
  2339. }
  2340. }
  2341. }
  2342. }catch(e)
  2343. {}
  2344. if (selectgPolyObj != null) {
  2345. sgworld.Creator.DeleteObject(selectgPolyObj.ID);
  2346. }
  2347. selectgPolyObj = null;
  2348. return true;
  2349. }
  2350. var judge = -1;
  2351. //爆管分析
  2352. function pipeAnalyse(type) {
  2353. CleanTint();
  2354. AllEventClean();
  2355. judge = type;
  2356. if (judge != -1) {
  2357. sgworld.AttachEvent("OnLButtonUp", pipeAnalyse_OnLButtonUp);
  2358. sgworld.AttachEvent("OnRButtonUp", pipeAnalyse_OnRButtonUp);
  2359. sgworld.Window.SetInputMode(1);
  2360. }
  2361. }
  2362. var listLayer = [];
  2363. //连通
  2364. function pipeAnalyse_OnLButtonUp(Flags, X, Y) {
  2365. CleanTint();
  2366. var selectFeature = null;
  2367. var CursorCoord = sgworld.Window.PixelToWorld(X, Y);
  2368. if (CursorCoord.Type == 8192) {
  2369. selectFeature = sgworld.Creator.GetObject(CursorCoord.ObjectID);
  2370. try {
  2371. var startId = selectFeature.FeatureAttributes.GetFeatureAttribute("StartId").Value;
  2372. var endId = selectFeature.FeatureAttributes.GetFeatureAttribute("EndId").Value;
  2373. var tintGroup = sgworld.ProjectTree.FindItem("高亮");
  2374. if (tintGroup != 0) {
  2375. sgworld.ProjectTree.DeleteItem(tintGroup);
  2376. }
  2377. tintGroup = sgworld.ProjectTree.CreateGroup("高亮");
  2378. var tempLayer = sgworld.ProjectTree.GetObject(selectFeature.ParentGroupID);
  2379. if (tempLayer.ObjectType == 39) {
  2380. var myGeometry = sgworld.Creator.GeometryCreator.CreateLinearRingGeometry([114.048011, 22.531832, 0, 114.046471, 22.525349, 0, 114.056247, 22.524880, 0, 114.055244, 22.531647, 0]);
  2381. var allFeature = tempLayer.ExecuteSpatialQuery(myGeometry, 1);
  2382. for (var j = 0; j < allFeature.Count; j++) {
  2383. var feature = allFeature.Item(j);
  2384. if (feature.Geometry.GeometryType == 3) {
  2385. var tempStartId = feature.FeatureAttributes.GetFeatureAttribute("StartId").Value;
  2386. var tempEndId = feature.FeatureAttributes.GetFeatureAttribute("EndId").Value;
  2387. if (tempStartId == startId || tempStartId == endId || tempEndId == startId || tempEndId == endId) {
  2388. var featureX = feature.FeatureAttributes.GetFeatureAttribute("StartX").Value;
  2389. var featureY = feature.FeatureAttributes.GetFeatureAttribute("StartY").Value;
  2390. var featureZ = feature.FeatureAttributes.GetFeatureAttribute("Altitude").Value;
  2391. var featureYaw = feature.FeatureAttributes.GetFeatureAttribute("Yaw").Value;
  2392. var featurePitch = feature.FeatureAttributes.GetFeatureAttribute("Pitch").Value;
  2393. var featureRoll = feature.FeatureAttributes.GetFeatureAttribute("Roll").Value;
  2394. var featureScaleX = feature.FeatureAttributes.GetFeatureAttribute("scaleX").Value;
  2395. var featureScaleY = feature.FeatureAttributes.GetFeatureAttribute("scaleY").Value;
  2396. var featurePosition = sgworld.Creator.CreatePosition(featureX, featureY, featureZ, 3, featureYaw, (featurePitch - 90), featureRoll);
  2397. var Polygon = null;
  2398. if (judge == 1) {
  2399. Polygon = sgworld.Creator.CreateCylinder(featurePosition, (featureScaleX / 1.95), featureScaleY, sgworld.Creator.CreateColor(255, 0, 0, 255), sgworld.Creator.CreateColor(255, 0, 0, 255), 36, tintGroup, "temp");
  2400. }
  2401. else {
  2402. Polygon = sgworld.Creator.CreateCylinder(featurePosition, (featureScaleX / 1.95), featureScaleY, sgworld.Creator.CreateColor(0, 255, 0, 255), sgworld.Creator.CreateColor(0, 255, 0, 255), 36, tintGroup, "temp");
  2403. }
  2404. //var lineColor = sgworld.Creator.CreateColor(255, 0, 0, 255);
  2405. //feature.Tint = lineColor;
  2406. }
  2407. }
  2408. }
  2409. if (judge == 1) {
  2410. var burststyle = sgworld.Creator.CreateLabelStyle(); //allurl + "images/1.gif"
  2411. //var burstImg = sgworld.Creator.CreateImageLabel(CursorCoord.Position, "E:\\PipeWeb\\images\\1.gif", burststyle, analygroupId, "temp");
  2412. var LabelText = "$$PARTICLE$$UserDefine:";
  2413. LabelText += "<Particle ID='SmokePoof'>";
  2414. LabelText += "<ParticleEmitter ID='ring' NumParticles='286' Texture='smoke.png'>";
  2415. LabelText += "<Emitter Rate='223' Shape='Cone' Scale='1,1,1' Speed='1,1,1' />";
  2416. LabelText += "<Cycle Value='1' />";
  2417. LabelText += "<Sort Value='1' />";
  2418. LabelText += "<Gravity Value='0, -4, 0' />";
  2419. LabelText += "<Position Value='0, 0, 0' />";
  2420. LabelText += "<Life Value='1' />";
  2421. LabelText += "<Speed Value='2' />";
  2422. LabelText += "<Color Value='20,0,150,190' />";
  2423. LabelText += "<Size Value='0.1' />";
  2424. LabelText += "<Drag Value='0' />";
  2425. LabelText += "<Rotation Speed='0' Time='1.7' />";
  2426. LabelText += "<Fade FadeIn='.1' FadeOut='.6' MaxFade='0.5' />";
  2427. LabelText += "</ParticleEmitter>";
  2428. LabelText += "</Particle>";
  2429. var burstLabel = sgworld.Creator.CreateLabel(CursorCoord.Position, LabelText, "", burststyle, tintGroup, "temp");
  2430. burstLabel.Style.Scale = 0.1;
  2431. burstLabel.Style.LockMode = 1;
  2432. burstLabel.Position.Altitude = burstLabel.Position.Altitude + 5;
  2433. }
  2434. }
  2435. }
  2436. catch (e) {
  2437. }
  2438. }
  2439. return true;
  2440. }
  2441. function pipeAnalyse_OnRButtonUp(Flags, X, Y) {
  2442. sgworld.DetachEvent("OnLButtonUp", pipeAnalyse_OnLButtonUp);
  2443. sgworld.DetachEvent("OnRButtonUp", pipeAnalyse_OnRButtonUp);
  2444. sgworld.Window.SetInputMode(0);
  2445. CleanTint();
  2446. // AllEventClean();
  2447. variableClean();
  2448. return true;
  2449. }
  2450. var pipeConnectedId = new Array();
  2451. var pipeConnectedJoinId = new Array();
  2452. var pipeCount = 0;
  2453. var myGeometry;
  2454. var allFeature;
  2455. //连通分析
  2456. function pipeConnected() {
  2457. CleanTint();
  2458. AllEventClean();
  2459. variableClean();
  2460. sgworld.AttachEvent("OnLButtonUp", pipeConnected_OnLButtonUp);
  2461. sgworld.AttachEvent("OnRButtonUp", pipeConnected_OnRButtonUp);
  2462. sgworld.Window.SetInputMode(1);
  2463. }
  2464. //var listLayer = [];
  2465. //连通
  2466. function pipeConnected_OnLButtonUp(Flags, X, Y) {
  2467. var selectFeature = null;
  2468. var Polygon = null;
  2469. var CursorCoord = sgworld.Window.PixelToWorld(X, Y);
  2470. var tintGroup = sgworld.ProjectTree.FindItem("高亮");
  2471. if (tintGroup == "") {
  2472. tintGroup = sgworld.ProjectTree.CreateGroup("高亮");
  2473. }
  2474. if (pipeCount == 0) {
  2475. if (CursorCoord.Type == 8192) {
  2476. try {
  2477. selectFeature = sgworld.Creator.GetObject(CursorCoord.ObjectID);
  2478. var tempLayer = sgworld.ProjectTree.GetObject(selectFeature.ParentGroupID);
  2479. if (tempLayer.ObjectType == 39) {
  2480. myGeometry = sgworld.Creator.GeometryCreator.CreateLinearRingGeometry([114.048011, 22.531832, 0, 114.046471, 22.525349, 0, 114.056247, 22.524880, 0, 114.055244, 22.531647, 0]);
  2481. allFeature = tempLayer.ExecuteSpatialQuery(myGeometry, 1);
  2482. }
  2483. var startId = selectFeature.FeatureAttributes.GetFeatureAttribute("StartId").Value;
  2484. var endId = selectFeature.FeatureAttributes.GetFeatureAttribute("EndId").Value;
  2485. var pipeId = selectFeature.FeatureAttributes.GetFeatureAttribute("Id").Value;
  2486. var featureX = selectFeature.FeatureAttributes.GetFeatureAttribute("StartX").Value;
  2487. var featureY = selectFeature.FeatureAttributes.GetFeatureAttribute("StartY").Value;
  2488. var featureZ = selectFeature.FeatureAttributes.GetFeatureAttribute("Altitude").Value;
  2489. var featureYaw = selectFeature.FeatureAttributes.GetFeatureAttribute("Yaw").Value;
  2490. var featurePitch = selectFeature.FeatureAttributes.GetFeatureAttribute("Pitch").Value;
  2491. var featureRoll = selectFeature.FeatureAttributes.GetFeatureAttribute("Roll").Value;
  2492. var featureScaleX = selectFeature.FeatureAttributes.GetFeatureAttribute("scaleX").Value;
  2493. var featureScaleY = selectFeature.FeatureAttributes.GetFeatureAttribute("scaleY").Value;
  2494. var featurePosition = sgworld.Creator.CreatePosition(featureX, featureY, featureZ, 3, featureYaw, (featurePitch - 90), featureRoll);
  2495. Polygon = sgworld.Creator.CreateCylinder(featurePosition, (featureScaleX / 1.95), featureScaleY, sgworld.Creator.CreateColor(0, 255, 0, 255), sgworld.Creator.CreateColor(0, 255, 0, 255), 36, tintGroup, "temp");
  2496. pipeConnectedId.push(pipeId);
  2497. pipeConnectedJoinId.push(startId);
  2498. pipeConnectedJoinId.push(endId);
  2499. pipeCount++;
  2500. } catch (e)
  2501. { }
  2502. }
  2503. } else {
  2504. try {
  2505. for (var j = 0; j < allFeature.Count; j++) {
  2506. var feature = allFeature.Item(j);
  2507. if (feature.Geometry.GeometryType == 3) {
  2508. var tempStartId = feature.FeatureAttributes.GetFeatureAttribute("StartId").Value;
  2509. var tempEndId = feature.FeatureAttributes.GetFeatureAttribute("EndId").Value;
  2510. var pipeId = feature.FeatureAttributes.GetFeatureAttribute("Id").Value;
  2511. if (!pipeConnectedIdExist(pipeId)) {
  2512. if (!(pipeConnectedJoinIdExist(tempEndId) && pipeConnectedJoinIdExist(tempStartId))) {
  2513. if (pipeConnectedJoinIdExist(tempEndId)) {
  2514. pipeConnectedId.push(pipeId);
  2515. pipeConnectedJoinId.push(tempStartId);
  2516. var featureX = feature.FeatureAttributes.GetFeatureAttribute("StartX").Value;
  2517. var featureY = feature.FeatureAttributes.GetFeatureAttribute("StartY").Value;
  2518. var featureZ = feature.FeatureAttributes.GetFeatureAttribute("Altitude").Value;
  2519. var featureYaw = feature.FeatureAttributes.GetFeatureAttribute("Yaw").Value;
  2520. var featurePitch = feature.FeatureAttributes.GetFeatureAttribute("Pitch").Value;
  2521. var featureRoll = feature.FeatureAttributes.GetFeatureAttribute("Roll").Value;
  2522. var featureScaleX = feature.FeatureAttributes.GetFeatureAttribute("scaleX").Value;
  2523. var featureScaleY = feature.FeatureAttributes.GetFeatureAttribute("scaleY").Value;
  2524. var featurePosition = sgworld.Creator.CreatePosition(featureX, featureY, featureZ, 3, featureYaw, (featurePitch - 90), featureRoll);
  2525. var Polygon = null;
  2526. Polygon = sgworld.Creator.CreateCylinder(featurePosition, (featureScaleX / 1.95), featureScaleY, sgworld.Creator.CreateColor(0, 255, 0, 255), sgworld.Creator.CreateColor(0, 255, 0, 255), 36, tintGroup, "temp");
  2527. //var lineColor = sgworld.Creator.CreateColor(255, 0, 0, 255);
  2528. //feature.Tint = lineColor;
  2529. }
  2530. if (pipeConnectedJoinIdExist(tempStartId)) {
  2531. pipeConnectedId.push(pipeId);
  2532. pipeConnectedJoinId.push(tempEndId);
  2533. var featureX = feature.FeatureAttributes.GetFeatureAttribute("StartX").Value;
  2534. var featureY = feature.FeatureAttributes.GetFeatureAttribute("StartY").Value;
  2535. var featureZ = feature.FeatureAttributes.GetFeatureAttribute("Altitude").Value;
  2536. var featureYaw = feature.FeatureAttributes.GetFeatureAttribute("Yaw").Value;
  2537. var featurePitch = feature.FeatureAttributes.GetFeatureAttribute("Pitch").Value;
  2538. var featureRoll = feature.FeatureAttributes.GetFeatureAttribute("Roll").Value;
  2539. var featureScaleX = feature.FeatureAttributes.GetFeatureAttribute("scaleX").Value;
  2540. var featureScaleY = feature.FeatureAttributes.GetFeatureAttribute("scaleY").Value;
  2541. var featurePosition = sgworld.Creator.CreatePosition(featureX, featureY, featureZ, 3, featureYaw, (featurePitch - 90), featureRoll);
  2542. var Polygon = null;
  2543. Polygon = sgworld.Creator.CreateCylinder(featurePosition, (featureScaleX / 1.95), featureScaleY, sgworld.Creator.CreateColor(0, 255, 0, 255), sgworld.Creator.CreateColor(0, 255, 0, 255), 36, tintGroup, "temp");
  2544. }
  2545. }
  2546. }
  2547. }
  2548. }
  2549. }
  2550. catch (e) {
  2551. }
  2552. }
  2553. return true;
  2554. }
  2555. function pipeConnected_OnRButtonUp(Flags, X, Y) {
  2556. CleanTint();
  2557. try {
  2558. sgworld.DetachEvent("OnLButtonUp", pipeConnected_OnLButtonUp);
  2559. sgworld.DetachEvent("OnRButtonUp", pipeConnected_OnRButtonUp);
  2560. } catch (e)
  2561. { }
  2562. sgworld.Window.SetInputMode(0);
  2563. variableClean();
  2564. return true;
  2565. }
  2566. function pipeConnectedIdExist(pipeItemId) {
  2567. for (var i = 0; i < pipeConnectedId.length; i++) {
  2568. if (pipeConnectedId[i] == pipeItemId) {
  2569. return true;
  2570. }
  2571. }
  2572. return false;
  2573. }
  2574. function pipeConnectedJoinIdExist(pipeItemJoinId) {
  2575. for (var i = 0; i < pipeConnectedJoinId.length; i++) {
  2576. if (pipeConnectedJoinId[i] == pipeItemJoinId) {
  2577. return true;
  2578. }
  2579. }
  2580. return false;
  2581. }
  2582. function allClean() {
  2583. sgworld.Navigate.UndergroundMode = false;
  2584. CleanTint();
  2585. AllEventClean();
  2586. variableClean();
  2587. //AllInitialise();
  2588. }
  2589. function variableClean() {
  2590. tempTerrainId = 0;
  2591. tempName = "";
  2592. pipeConnectedId = [];
  2593. pipeConnectedJoinId = [];
  2594. pipeCount = 0;
  2595. if (flightgPolyObj != null) {
  2596. sgworld.Creator.DeleteObject(flightgPolyObj.ID);
  2597. flightgPolyObj = null;
  2598. }
  2599. try {
  2600. clearInterval(time);
  2601. } catch (e) {
  2602. }
  2603. try {
  2604. stopMovement();
  2605. //clearInterval(status);
  2606. } catch (e) {
  2607. }
  2608. fId = sgworld.ProjectTree.FindItem("管道流动");
  2609. if (fId != 0) {
  2610. try {
  2611. sgworld.ProjectTree.DeleteItem(fId);
  2612. } catch (e) {
  2613. }
  2614. }
  2615. try {
  2616. flightGroupId = sgworld.ProjectTree.FindItem("飞行路线");
  2617. if (flightGroupId != 0 && flightGroupId != "") {
  2618. sgworld.ProjectTree.DeleteItem(flightGroupId);
  2619. }
  2620. } catch (e) {
  2621. }
  2622. try {
  2623. var tempPositionGroupId = sgworld.ProjectTree.FindItem("选择");
  2624. if (tempPositionGroupId != "") {
  2625. sgworld.ProjectTree.DeleteItem(tempPositionGroupId);
  2626. }
  2627. } catch (e)
  2628. { }
  2629. try {
  2630. var addSellGroupId = sgworld.ProjectTree.FindItem("新应急方案");
  2631. if (addSellGroupId == "") {
  2632. sgworld.Creator.DeleteObject(addSellGroupId);
  2633. }
  2634. } catch (e)
  2635. { }
  2636. try {
  2637. var statisticsPolygonId = sgworld.ProjectTree.FindItem("临时区域");
  2638. if (statisticsPolygonId != "") {
  2639. sgworld.ProjectTree.DeleteItem(statisticsPolygonId);
  2640. }
  2641. } catch (e)
  2642. { }
  2643. try {
  2644. var mytempTerrainId = sgworld.ProjectTree.FindItem("临时地形");
  2645. if (mytempTerrainId != "") {
  2646. sgworld.ProjectTree.DeleteItem(mytempTerrainId);
  2647. }
  2648. } catch (e) {
  2649. }
  2650. try {
  2651. var clickGroupId = sgworld.ProjectTree.FindItem("选中网格");
  2652. if (clickGroupId != "") {
  2653. sgworld.ProjectTree.DeleteItem(clickGroupId);
  2654. }
  2655. } catch (e)
  2656. { }
  2657. try {
  2658. var arrId = sgworld.ProjectTree.FindItem("分析工具");
  2659. if (arrId != 0) {
  2660. sgworld.ProjectTree.DeleteItem(arrId);
  2661. }
  2662. } catch (e)
  2663. { }
  2664. if (gPolyObj != null) {
  2665. try {
  2666. sgworld.Creator.DeleteObject(gPolyObj.ID);
  2667. } catch (e)
  2668. { }
  2669. gPolyObj = null;
  2670. }
  2671. if (Polygon != null) {
  2672. try {
  2673. sgworld.Creator.DeleteObject(Polygon.ID);
  2674. } catch (e)
  2675. { }
  2676. Polygon = null;
  2677. }
  2678. if (sidePolygon != null) {
  2679. try {
  2680. sgworld.Creator.DeleteObject(sidePolygon.ID);
  2681. } catch (e)
  2682. { }
  2683. sidePolygon = null;
  2684. }
  2685. selectPolygonId = 0;
  2686. selectPolygonName = "area";
  2687. if (selectgPolyObj != null) {
  2688. try {
  2689. sgworld.Creator.DeleteObject(selectgPolyObj.ID);
  2690. } catch (e)
  2691. { }
  2692. selectgPolyObj = null;
  2693. }
  2694. judge = -1;
  2695. earthId = 0;
  2696. earthName = "";
  2697. if (earthPolyObj != null) {
  2698. try {
  2699. sgworld.Creator.DeleteObject(earthPolyObj.ID);
  2700. } catch (e)
  2701. { }
  2702. earthPolyObj = null;
  2703. }
  2704. }
  2705. function CleanTint() {
  2706. try {
  2707. var tintGroup = sgworld.ProjectTree.FindItem("高亮");
  2708. if (tintGroup != 0) {
  2709. sgworld.ProjectTree.DeleteItem(tintGroup);
  2710. }
  2711. } catch (e)
  2712. { }
  2713. // tintGroup = sgworld.ProjectTree.CreateGroup("高亮");
  2714. // var analygroupId = sgworld.ProjectTree.FindItem("temp");
  2715. // if (analygroupId != 0) {
  2716. // sgworld.ProjectTree.DeleteItem(analygroupId);
  2717. // }
  2718. // if (listLayer.length > 0) {
  2719. // for (var i = 0; i < listLayer.length; i++) {
  2720. // try {
  2721. // var tintFeature = sgworld.Creator.GetObject(listLayer[i]);
  2722. // tintFeature.Tint.SetAlpha(0);
  2723. // } catch (e) { }
  2724. // }
  2725. // listLayer = [];
  2726. // }
  2727. }
  2728. function AllEventClean() {
  2729. var inputM = sgworld.Window.GetInputMode();
  2730. if (inputM != 0) {
  2731. try {
  2732. sgworld.DetachEvent("OnLButtonDown", move_OnLButtonDown);
  2733. } catch (e) { }
  2734. try {
  2735. sgworld.DetachEvent("OnLButtonUp", move_OnLButtonUp);
  2736. } catch (e) { }
  2737. try {
  2738. sgworld.DetachEvent("OnRButtonUp", move_OnRButtonUp);
  2739. } catch (e) { }
  2740. try {
  2741. sgworld.DetachEvent("OnFrame", move_OnFrame);
  2742. } catch (e) { }
  2743. try {
  2744. sgworld.DetachEvent("OnLButtonUp", pipeAnalyse_OnLButtonUp);
  2745. } catch (e) { }
  2746. try {
  2747. sgworld.DetachEvent("OnRButtonUp", pipeAnalyse_OnRButtonUp);
  2748. } catch (e) { }
  2749. try {
  2750. sgworld.DetachEvent("OnLButtonUp", pipeConnected_OnLButtonUp);
  2751. sgworld.DetachEvent("OnRButtonUp", pipeConnected_OnRButtonUp);
  2752. } catch (e) { }
  2753. try {
  2754. sgworld.DetachEvent("OnLButtonUp", select_OnLButtonUp);
  2755. } catch (e) { }
  2756. try {
  2757. sgworld.DetachEvent("OnRButtonUp", select_OnRButtonUp);
  2758. } catch (e) { }
  2759. try {
  2760. sgworld.DetachEvent("OnLButtonDown", selectPolygon_OnLButtonDown);
  2761. } catch (e) { }
  2762. try {
  2763. sgworld.DetachEvent("OnRButtonUp", selectPolygon_OnRButtonUp);
  2764. } catch (e) { }
  2765. try {
  2766. sgworld.DetachEvent("OnFrame", selectPolygon_OnFrame);
  2767. } catch (e) { }
  2768. try {
  2769. sgworld.DetachEvent("OnLButtonDown", polygon_OnLButtonDown);
  2770. } catch (e) { }
  2771. try {
  2772. sgworld.DetachEvent("OnRButtonUp", polygon_OnRButtonUp);
  2773. } catch (e) { }
  2774. try {
  2775. sgworld.DetachEvent("OnFrame", polygon_OnFrame);
  2776. } catch (e) { }
  2777. try {
  2778. sgworld.DetachEvent("OnLButtonUp", high_OnLButtonUp);
  2779. } catch (e) { }
  2780. try {
  2781. sgworld.DetachEvent("OnRButtonUp", high_OnRButtonUp);
  2782. } catch (e) { }
  2783. try {
  2784. sgworld.DetachEvent("OnLButtonDown", earth_OnLButtonDown);
  2785. } catch (e) { }
  2786. try {
  2787. sgworld.DetachEvent("OnRButtonUp", earth_OnRButtonUp);
  2788. } catch (e) { }
  2789. try {
  2790. sgworld.DetachEvent("OnFrame", earth_OnFrame);
  2791. } catch (e) { }
  2792. try {
  2793. sgworld.DetachEvent("OnLButtonUp", clickCheck_OnLButtonUp);
  2794. } catch (e) { }
  2795. try {
  2796. sgworld.DetachEvent("OnRButtonUp", clickCheck_OnRButtonUp);
  2797. } catch (e) { }
  2798. try {
  2799. sgworld.DetachEvent("OnLButtonDown", DrawPath_LButtonDown);
  2800. sgworld.DetachEvent("OnRButtonUp", DrawPath_RButtonUp);
  2801. sgworld.DetachEvent("OnFrame", DrawPath_OnFrame);
  2802. } catch (e) { }
  2803. sgworld.Window.SetInputMode(0);
  2804. }
  2805. }
  2806. function AllInitialise() {
  2807. try {
  2808. for (var i = 0; i < showGroupId.length; i++) {
  2809. if (showGroupId[i] != 0) {
  2810. try {
  2811. sgworld.ProjectTree.SetVisibility(showGroupId[i], false);
  2812. } catch (e)
  2813. { }
  2814. }
  2815. }
  2816. showGroupId = [];
  2817. } catch (e) {
  2818. }
  2819. }
  2820. var earthId = 0;
  2821. var earthName = "";
  2822. var earthPolyObj = null;
  2823. function creatorEarth() {
  2824. polygon_Clean();
  2825. earthId = sgworld.ProjectTree.FindItem("分析工具");
  2826. if (earthId == 0) {
  2827. earthId = sgworld.ProjectTree.CreateGroup("分析工具");
  2828. }
  2829. earthName = "temp";
  2830. sgworld.AttachEvent("OnLButtonDown", earth_OnLButtonDown);
  2831. sgworld.AttachEvent("OnRButtonUp", earth_OnRButtonUp);
  2832. sgworld.AttachEvent("OnFrame", earth_OnFrame);
  2833. sgworld.Window.SetInputMode(1);
  2834. }
  2835. function earth_OnLButtonDown(Flags, X, Y) {
  2836. var CursorCoord = sgworld.Window.PixelToWorld(X, Y);
  2837. if (earthPolyObj == null) {
  2838. var myLine = sgworld.Creator.GeometryCreator.CreateLineStringGeometry([CursorCoord.Position.x, CursorCoord.Position.y, 0, CursorCoord.Position.x, CursorCoord.Position.y, 0]);
  2839. earthPolyObj = sgworld.Creator.CreatePolyline(myLine, sgworld.Creator.CreateColor(255, 0, 0, 255), 2, earthId, earthName);
  2840. earthPolyObj.LineStyle.Width = -1;
  2841. earthPolyObj.Geometry.StartEdit();
  2842. }
  2843. else {
  2844. if (earthPolyObj.ObjectType == 1) {
  2845. // Deleting the temporary line
  2846. var x = earthPolyObj.Geometry.Points.Item(0).X;
  2847. var y = earthPolyObj.Geometry.Points.Item(0).Y;
  2848. sgworld.Creator.DeleteObject(earthPolyObj.ID);
  2849. // Creating the polygon
  2850. var myGeometry = sgworld.Creator.GeometryCreator.CreateLinearRingGeometry([x, y, 0, CursorCoord.Position.x, CursorCoord.Position.y, 0, CursorCoord.Position.x, CursorCoord.Position.y, 0])
  2851. earthPolyObj = sgworld.Creator.createPolygon(myGeometry, sgworld.Creator.CreateColor(255, 0, 0, 1), sgworld.Creator.CreateColor(0, 255, 0, 0.5), 2, earthId, earthName);
  2852. earthPolyObj.LineStyle.Width = -2;
  2853. earthPolyObj.Terrain.GroundObject = true;
  2854. earthPolyObj.Geometry.StartEdit();
  2855. }
  2856. else {
  2857. earthPolyObj.Geometry.Rings(0).Points.Item(earthPolyObj.Geometry.Rings(0).Points.count - 1).X = CursorCoord.Position.x;
  2858. earthPolyObj.Geometry.Rings(0).Points.Item(earthPolyObj.Geometry.Rings(0).Points.count - 1).Y = CursorCoord.Position.y;
  2859. earthPolyObj.Geometry.Rings(0).Points.Item(earthPolyObj.Geometry.Rings(0).Points.count - 1).Z = 0;
  2860. earthPolyObj.Geometry.Rings(0).Points.AddPoint(CursorCoord.Position.x, CursorCoord.Position.y, 0);
  2861. }
  2862. }
  2863. return true;
  2864. }
  2865. function earth_OnFrame() {
  2866. if (earthPolyObj != null) {
  2867. try {
  2868. var mouseInfo = sgworld.Window.GetMouseInfo()
  2869. var CursorCoord = sgworld.Window.pixelToWorld(mouseInfo.X, mouseInfo.Y);
  2870. if (CursorCoord == null)
  2871. return false;
  2872. if (earthPolyObj.ObjectType == 2) {
  2873. earthPolyObj.Geometry.Rings(0).Points.Item(earthPolyObj.Geometry.Rings(0).Points.count - 1).X = CursorCoord.Position.x;
  2874. earthPolyObj.Geometry.Rings(0).Points.Item(earthPolyObj.Geometry.Rings(0).Points.count - 1).Y = CursorCoord.Position.y;
  2875. earthPolyObj.Geometry.Rings(0).Points.Item(earthPolyObj.Geometry.Rings(0).Points.count - 1).Z = 0;
  2876. }
  2877. else {
  2878. earthPolyObj.Geometry.Points.Item(earthPolyObj.Geometry.Points.count - 1).X = CursorCoord.Position.x;
  2879. earthPolyObj.Geometry.Points.Item(earthPolyObj.Geometry.Points.count - 1).Y = CursorCoord.Position.y;
  2880. earthPolyObj.Geometry.Points.Item(earthPolyObj.Geometry.Points.count - 1).Z = 0;
  2881. }
  2882. }
  2883. catch (e) { }
  2884. }
  2885. }
  2886. // private static ITerrainHole61 tempModifier = null;
  2887. function earth_OnRButtonUp(Flags, X, Y) {
  2888. if (earthPolyObj.ObjectType == 1) {
  2889. sgworld.Creator.DeleteObject(earthPolyObj.ID);
  2890. }
  2891. else {
  2892. earthPolyObj.Geometry.Rings(0).Points.DeletePoint(earthPolyObj.Geometry.Rings(0).Points.count - 1);
  2893. if (earthPolyObj.Geometry.Rings(0).Points.count > 2) {
  2894. earthPolyObj.Geometry.EndEdit();
  2895. var tempModifier = sgworld.Creator.CreateTerrainModifier(earthPolyObj.Geometry, 0, true, 0, earthId, earthName);
  2896. try {
  2897. var arrModifierID = [];
  2898. arrModifierID.push(tempModifier.ID);
  2899. var tempVolumeAnalysisInfo = sgworld.Analysis.CalculateVolume(arrModifierID, 0.5);
  2900. tempModifier.Tooltip.Text = "填土方:" + tempVolumeAnalysisInfo.AddedCubicMeters + "挖土方:" + tempVolumeAnalysisInfo.RemovedCubicMeters;
  2901. } catch (e) {
  2902. alert(e);
  2903. }
  2904. }
  2905. if (earthPolyObj != null) {
  2906. sgworld.Creator.DeleteObject(earthPolyObj.ID);
  2907. //sgworld.ProjectTree.DeleteItem(earthPolyObj.TreeItem.ItemID);
  2908. }
  2909. }
  2910. earth_Clean();
  2911. return true;
  2912. }
  2913. /// <summary>
  2914. /// 初始化绘制多边形
  2915. /// </summary>
  2916. function earth_Clean() {
  2917. try {
  2918. earthId = 0;
  2919. earthName = "";
  2920. earthPolyObj = null;
  2921. sgworld.DetachEvent("OnLButtonDown", earth_OnLButtonDown);
  2922. sgworld.DetachEvent("OnRButtonUp", earth_OnRButtonUp);
  2923. sgworld.DetachEvent("OnFrame", earth_OnFrame);
  2924. sgworld.Window.SetInputMode(0);
  2925. }
  2926. catch (e) {
  2927. }
  2928. }
  2929. var moveSelectLabel = null;
  2930. //移动
  2931. function move_OnLButtonDown(Flags, X, Y) {
  2932. var CursorCoord = sgworld.Window.PixelToWorld(X, Y);
  2933. if (CursorCoord.Type == 1) {
  2934. moveSelectLabel = sgworld.Creator.GetObject(CursorCoord.ObjectID);
  2935. var parentId = sgworld.ProjectTree.GetNextItem(moveSelectLabel.ID, 15);
  2936. var parentName = sgworld.ProjectTree.GetItemName(parentId);
  2937. if (parentName == "二三维联动") {
  2938. sgworld.AttachEvent("OnFrame", move_OnFrame);
  2939. }
  2940. }
  2941. return true;
  2942. }
  2943. function move_OnLButtonUp(Flags, X, Y) {
  2944. try {
  2945. sgworld.DetachEvent("OnFrame", move_OnFrame);
  2946. } catch (e) {
  2947. }
  2948. return true;
  2949. }
  2950. function move_OnFrame() {
  2951. var mouseInfo = sgworld.Window.GetMouseInfo()
  2952. var CursorCoord = sgworld.Window.pixelToWorld(mouseInfo.X, mouseInfo.Y);
  2953. if (moveSelectLabel != null) {
  2954. moveSelectLabel.Position.X = CursorCoord.Position.X;
  2955. moveSelectLabel.Position.Y = CursorCoord.Position.Y;
  2956. var tdobj = window.frames["2d"];
  2957. tdobj.moveGraphic(CursorCoord.Position.X, CursorCoord.Position.Y);
  2958. }
  2959. }
  2960. function move_OnRButtonUp(Flags, X, Y) {
  2961. sgworld.DetachEvent("OnLButtonDown", move_OnLButtonDown);
  2962. sgworld.DetachEvent("OnLButtonUp", move_OnLButtonUp);
  2963. sgworld.DetachEvent("OnRButtonUp", move_OnRButtonUp);
  2964. try {
  2965. sgworld.DetachEvent("OnFrame", move_OnFrame);
  2966. } catch (e) {
  2967. }
  2968. sgworld.Window.SetInputMode(0);
  2969. return true;
  2970. }
  2971. var flightgPolyObj = null;
  2972. var flightGroupId = 0;
  2973. //飞行路径
  2974. function flightPath() {
  2975. try {
  2976. flightgPolyObj = null;
  2977. flightGroupId = sgworld.ProjectTree.FindItem("飞行路线");
  2978. if (flightGroupId != 0 && flightGroupId != "") {
  2979. sgworld.ProjectTree.DeleteItem(flightGroupId);
  2980. }
  2981. flightGroupId = sgworld.ProjectTree.CreateGroup("飞行路线");
  2982. sgworld.AttachEvent("OnLButtonDown", DrawPath_LButtonDown);
  2983. sgworld.AttachEvent("OnRButtonUp", DrawPath_RButtonUp);
  2984. sgworld.AttachEvent("OnFrame", DrawPath_OnFrame);
  2985. sgworld.Window.SetInputMode(1);
  2986. } catch (e) {
  2987. }
  2988. }
  2989. //----------
  2990. function DrawPath_LButtonDown(Flags, X, Y) {
  2991. var CursorCoord = sgworld.Window.pixelToWorld(X, Y);
  2992. if (CursorCoord == null)
  2993. return false;
  2994. if (flightgPolyObj == null) {
  2995. var myGeometry = sgworld.Creator.GeometryCreator.CreateLineStringGeometry([CursorCoord.Position.x, CursorCoord.Position.y, 0, CursorCoord.Position.x, CursorCoord.Position.y, 0])
  2996. flightgPolyObj = sgworld.Creator.CreatePolyline(myGeometry, sgworld.Creator.CreateColor(0, 255, 0, 1), 2, flightGroupId, "test");
  2997. flightgPolyObj.LineStyle.Width = -2;
  2998. flightgPolyObj.Geometry.StartEdit();
  2999. }
  3000. else {
  3001. if (flightgPolyObj != null) {
  3002. flightgPolyObj.Geometry.Points.Item(flightgPolyObj.Geometry.Points.count - 1).X = CursorCoord.Position.x;
  3003. flightgPolyObj.Geometry.Points.Item(flightgPolyObj.Geometry.Points.count - 1).Y = CursorCoord.Position.y;
  3004. flightgPolyObj.Geometry.Points.Item(flightgPolyObj.Geometry.Points.count - 1).Z = 0;
  3005. flightgPolyObj.Geometry.Points.AddPoint(CursorCoord.Position.x, CursorCoord.Position.y, 0);
  3006. }
  3007. }
  3008. return true;
  3009. }
  3010. //-----------
  3011. // onFrame
  3012. //-----------
  3013. function DrawPath_OnFrame() {
  3014. if (flightgPolyObj != null) {
  3015. try {
  3016. var mouseInfo = sgworld.Window.GetMouseInfo()
  3017. var CursorCoord = sgworld.Window.pixelToWorld(mouseInfo.X, mouseInfo.Y);
  3018. if (CursorCoord == null)
  3019. return false;
  3020. flightgPolyObj.Geometry.Points.Item(flightgPolyObj.Geometry.Points.count - 1).X = CursorCoord.Position.x;
  3021. flightgPolyObj.Geometry.Points.Item(flightgPolyObj.Geometry.Points.count - 1).Y = CursorCoord.Position.y;
  3022. flightgPolyObj.Geometry.Points.Item(flightgPolyObj.Geometry.Points.count - 1).Z = 0;
  3023. }
  3024. catch (e) { }
  3025. }
  3026. }
  3027. //-------------
  3028. // DrawPolyRButtonUp
  3029. //-------------
  3030. function DrawPath_RButtonUp(Flags, X, Y) {
  3031. if (flightgPolyObj == null || flightgPolyObj.Geometry.Points.count <= 2) {
  3032. Reset();
  3033. return false;
  3034. }
  3035. flightgPolyObj.Geometry.Points.DeletePoint(flightgPolyObj.Geometry.Points.count - 1);
  3036. flightgPolyObj.Geometry.EndEdit();
  3037. CreateFlyPath();
  3038. Reset();
  3039. return true;
  3040. }
  3041. function Reset() {
  3042. try {
  3043. sgworld.DetachEvent("OnLButtonDown", DrawPath_LButtonDown);
  3044. sgworld.DetachEvent("OnRButtonUp", DrawPath_RButtonUp);
  3045. sgworld.DetachEvent("OnFrame", DrawPath_OnFrame);
  3046. if (flightgPolyObj != null) {
  3047. sgworld.Creator.DeleteObject(flightgPolyObj.ID);
  3048. flightgPolyObj = null;
  3049. }
  3050. }
  3051. catch (e) {
  3052. }
  3053. sgworld.Window.SetInputMode(0);
  3054. }
  3055. function CreateFlyPath() {
  3056. if (flightgPolyObj != null && flightGroupId != 0) {
  3057. try {
  3058. var waypointDirection = 0;
  3059. var firstPosition = sgworld.Creator.CreatePosition(flightgPolyObj.Geometry.Points.Item(0).X, flightgPolyObj.Geometry.Points.Item(0).Y, 0);
  3060. var secondPosition = sgworld.Creator.CreatePosition(flightgPolyObj.Geometry.Points.Item(1).X, flightgPolyObj.Geometry.Points.Item(1).Y, 0);
  3061. firstPosition = firstPosition.AimTo(secondPosition);
  3062. var flightObject = sgworld.Creator.CreateDynamicObject(null, 1, 3, "", 1, 0, flightGroupId, "沿路径观察");
  3063. for (var k = 0; k < flightgPolyObj.Geometry.Points.count; k++) {
  3064. if (k == 0) {
  3065. waypointDirection = firstPosition.Yaw;
  3066. }
  3067. else {
  3068. waypointDirection = 0;
  3069. }
  3070. var a = sgworld.Creator.CreateRouteWaypoint(flightgPolyObj.Geometry.Points.Item(k).X, flightgPolyObj.Geometry.Points.Item(k).Y, 10, 200, waypointDirection, 0, 0, 0, 0, "");
  3071. flightObject.Waypoints.AddWaypoint(a);
  3072. }
  3073. flightObject.Action.Code = 5;
  3074. flightObject.CircularRoute = false;
  3075. var flightHtmlStr = "<html><head><title></title>";
  3076. flightHtmlStr += "<script type='text/javascript'>function flightPlay() { var dynamic = sgworld.Creator.GetObject('";
  3077. flightHtmlStr += flightObject.ID;
  3078. flightHtmlStr += "'); if (dynamic.ObjectType == 23) { dynamic.RestartRoute(0); sgworld.Navigate.FlyTo(dynamic, 5); } } <";
  3079. flightHtmlStr += "\/script>";
  3080. flightHtmlStr += "</head><body><a href='#' onclick='flightPlay();'>";
  3081. flightHtmlStr += "沿路径观察";
  3082. flightHtmlStr += "</a><object id='sgworld' classid='CLSID:3a4f9197-65a8-11d5-85c1-0001023952c1'></object></body></html>";
  3083. var flightPopup = sgworld.Creator.CreatePopupMessage("飞行路线", "", 233, 0, 150, 70);
  3084. flightPopup.InnerText = flightHtmlStr;
  3085. flightPopup.AllowResize = true;
  3086. flightPopup.AllowDrag = true;
  3087. sgworld.Window.ShowPopup(flightPopup);
  3088. } catch (e)
  3089. { }
  3090. }
  3091. }
  3092. var gulp = require('gulp'),
  3093. scss = require("gulp-scss"),
  3094. uglify = require('gulp-uglify');
  3095. //scss编译
  3096. gulp.task('scss', function () {
  3097. gulp.src('css/*.scss') //该任务针对的文件
  3098. .pipe(scss()) //该任务调用的模块
  3099. .pipe(gulp.dest('css'));
  3100. });
  3101. //js压缩
  3102. gulp.task('compass', function () {
  3103. gulp.src(['js/*.js','!js/*.min.js']) //获取文件,同时过滤掉.min.js文件
  3104. .pipe(uglify())
  3105. .pipe(gulp.dest('js/')); //输出文件
  3106. });
  3107. gulp.task('default',['scss','compass']); //定义默认任务 elseTask为其他任务,该示例没有定义elseTask任务
  3108. //监听-自动化
  3109. gulp.task('auto', function () {
  3110. gulp.watch('css/*.scss', ['scss']); //当所有scss文件发生改变时,调用testLess任务
  3111. });
  3112. var chartObj_pipeline = null;//管线
  3113. //配置路径
  3114. require.config({
  3115. paths:{
  3116. echarts:'/resources/echarts/build/dist',
  3117. }
  3118. });
  3119. $(function(){
  3120. initChartObjs();
  3121. });
  3122. function initChartObjs(){
  3123. objPipeline();//管线
  3124. }
  3125. function objPipeline(){
  3126. option = {
  3127. grid: {x:40,y:10,x2:35,y2:0,borderWidth:0},//改变图形控件的大小,数据越大图形越小
  3128. tooltip: {
  3129. trigger: 'axis',
  3130. borderWidth: 2,
  3131. borderColor: '#165484',
  3132. backgroundColor: '#092651',
  3133. textStyle: {
  3134. color : '#DEDEDE',
  3135. fontSize: 15,
  3136. },
  3137. formatter:'{b1}: {c1}'
  3138. },
  3139. noDataLoadingOption : {
  3140. text : "No data to display.",
  3141. effect : 'bubble',
  3142. effectOption : {
  3143. backgroundColor : 'rgba(255,255,255,0)',
  3144. effect : {
  3145. n : 0
  3146. }
  3147. }
  3148. },
  3149. xAxis: [
  3150. {
  3151. type: 'value',
  3152. axisLabel: {
  3153. show: false,
  3154. },
  3155. splitLine: {
  3156. show: false
  3157. },
  3158. axisLine: {
  3159. show: false,
  3160. },
  3161. axisTick: {
  3162. show:false,
  3163. alignWithLabel:false,
  3164. },
  3165. data: ['水温','压力','流量']
  3166. }
  3167. ],
  3168. yAxis: [
  3169. {
  3170. type: 'category',
  3171. axisLabel: {
  3172. show: true,
  3173. margin: 10,
  3174. textStyle: {
  3175. color: '#D0D0D1',
  3176. fontSize: 15,
  3177. fontFamily : '微软雅黑',
  3178. fontWeight : 'normal'
  3179. }
  3180. },
  3181. splitLine: {
  3182. show: false
  3183. },
  3184. axisLine: {
  3185. show: true,
  3186. lineStyle: {
  3187. color: '#C0C0C1',
  3188. width: 1,
  3189. }
  3190. },
  3191. axisTick: {
  3192. show:true,
  3193. alignWithLabel:true,
  3194. //interval: 50,
  3195. length: 10,
  3196. lineStyle: {
  3197. color: '#C0C0C1',
  3198. width: 0,
  3199. }
  3200. },
  3201. data: ['流量','压力','水温']
  3202. }
  3203. ],
  3204. series: [
  3205. {
  3206. name : '管线',
  3207. type:'bar',
  3208. stack : '总量',
  3209. itemStyle: {
  3210. normal: {
  3211. color: '#353536',
  3212. lineStyle: {
  3213. width: 6,
  3214. //color: '#2A2A2C'
  3215. },
  3216. label: {
  3217. show: false,
  3218. },
  3219. barBorderRadius: 15, // 统一设置四个角的圆角大小
  3220. },
  3221. },
  3222. data:[1,1,1]
  3223. },
  3224. {
  3225. name : '管线',
  3226. type:'bar',
  3227. stack : '总量',
  3228. barWidth: 30,
  3229. itemStyle: {
  3230. normal: {
  3231. color: '#3AFF55',
  3232. lineStyle: {
  3233. width: 6,
  3234. color: '#3AFF55'
  3235. },
  3236. label: {
  3237. show: true,
  3238. position: 'right',
  3239. formatter: '{c}',
  3240. textStyle: {
  3241. //color: '#CB2D2E',
  3242. fontSize: 15,
  3243. },
  3244. },
  3245. barBorderRadius: 15, // 统一设置四个角的圆角大小
  3246. },
  3247. },
  3248. data:[{value:22.14,
  3249. itemStyle: {
  3250. normal:{
  3251. color : '#3D80CC'
  3252. }
  3253. }
  3254. },
  3255. {value:32.56,
  3256. itemStyle: {
  3257. normal:{
  3258. color : '#D76F33'
  3259. }
  3260. }
  3261. },
  3262. {value:12.31,
  3263. itemStyle: {
  3264. normal:{
  3265. color : '#84BC99'
  3266. }
  3267. }
  3268. }]
  3269. },
  3270. ]
  3271. };
  3272. chartObj_pipeline = echarts.init(document.getElementById("chartObj_pipeline"),'');
  3273. chartObj_pipeline.setOption(option,true);
  3274. }
  3275. function Presentation(PathName) {
  3276. var ItemId = sgworld.ProjectTree.FindItem(PathName);
  3277. if (ItemId != 0 && ItemId != "") {
  3278. var Obj = sgworld.ProjectTree.GetObject(ItemId);
  3279. Obj.Play(0);
  3280. }
  3281. }
  3282. var chartObj_environment = null;//管线
  3283. //配置路径
  3284. require.config({
  3285. paths:{
  3286. echarts:'/resources/echarts/build/dist',
  3287. }
  3288. });
  3289. $(function(){
  3290. initChartObjs();
  3291. });
  3292. function initChartObjs(){
  3293. chartObjEnvironment();//综合舱环境
  3294. }
  3295. function chartObjEnvironment(){
  3296. option = {
  3297. grid: {x:140,y:0,x2:35,y2:0,borderWidth:0},//改变图形控件的大小,数据越大图形越小
  3298. tooltip: {
  3299. trigger: 'axis',
  3300. borderWidth: 2,
  3301. borderColor: '#165484',
  3302. backgroundColor: '#092651',
  3303. textStyle: {
  3304. color : '#DEDEDE',
  3305. fontSize: 15,
  3306. },
  3307. formatter:'{b1}: {c1}'
  3308. },
  3309. noDataLoadingOption : {
  3310. text : "No data to display.",
  3311. effect : 'bubble',
  3312. effectOption : {
  3313. backgroundColor : 'rgba(255,255,255,0)',
  3314. effect : {
  3315. n : 0
  3316. }
  3317. }
  3318. },
  3319. xAxis: [
  3320. {
  3321. type: 'value',
  3322. axisLabel: {
  3323. show: false,
  3324. },
  3325. splitLine: {
  3326. show: false
  3327. },
  3328. axisLine: {
  3329. show: false,
  3330. },
  3331. axisTick: {
  3332. show:false,
  3333. alignWithLabel:false,
  3334. },
  3335. data: ['水温','压力','流量']
  3336. }
  3337. ],
  3338. yAxis: [
  3339. {
  3340. type: 'category',
  3341. axisLabel: {
  3342. show: true,
  3343. margin: 10,
  3344. textStyle: {
  3345. color: '#D0D0D1',
  3346. fontSize: 15,
  3347. fontFamily : '微软雅黑',
  3348. fontWeight : 'normal'
  3349. }
  3350. },
  3351. splitLine: {
  3352. show: false
  3353. },
  3354. axisLine: {
  3355. show: true,
  3356. lineStyle: {
  3357. color: '#C0C0C1',
  3358. width: 1,
  3359. }
  3360. },
  3361. axisTick: {
  3362. show:true,
  3363. alignWithLabel:true,
  3364. //interval: 50,
  3365. length: 10,
  3366. lineStyle: {
  3367. color: '#C0C0C1',
  3368. width: 0,
  3369. }
  3370. },
  3371. data: ['积水位','有害气体','温度','湿度']
  3372. }
  3373. ],
  3374. series: [
  3375. {
  3376. name : '管线',
  3377. type:'bar',
  3378. stack : '总量',
  3379. itemStyle: {
  3380. normal: {
  3381. color: '#353536',
  3382. lineStyle: {
  3383. width: 6,
  3384. color: '#353536'
  3385. },
  3386. label: {
  3387. show: false,
  3388. },
  3389. barBorderRadius: 15, // 统一设置四个角的圆角大小
  3390. },
  3391. },
  3392. data:[1,1,1,1]
  3393. },
  3394. {
  3395. name : '管线',
  3396. type:'bar',
  3397. stack : '总量',
  3398. barWidth: 15,
  3399. itemStyle: {
  3400. normal: {
  3401. color: '#353536',
  3402. lineStyle: {
  3403. width: 6,
  3404. color: '#353536'
  3405. },
  3406. label: {
  3407. show: true,
  3408. position: 'right',
  3409. formatter: '{c}',
  3410. textStyle: {
  3411. //color: '#CB2D2E',
  3412. fontSize: 15,
  3413. },
  3414. },
  3415. barBorderRadius: 15, // 统一设置四个角的圆角大小
  3416. },
  3417. },
  3418. data:[{value:5.33,
  3419. itemStyle: {
  3420. normal:{
  3421. color : '#9ABB4E'
  3422. }
  3423. }
  3424. },
  3425. {value:11.21,
  3426. itemStyle: {
  3427. normal:{
  3428. color : '#912ECD'
  3429. }
  3430. }
  3431. },
  3432. {value:23.17,
  3433. itemStyle: {
  3434. normal:{
  3435. color : '#FDAA00'
  3436. }
  3437. }
  3438. },
  3439. {value:1.91,
  3440. itemStyle: {
  3441. normal:{
  3442. color : '#00BCFF'
  3443. }
  3444. }
  3445. }]
  3446. },
  3447. ]
  3448. };
  3449. chartObj_environment = echarts.init(document.getElementById("chartObj_environment"),'');
  3450. chartObj_environment.setOption(option,true);
  3451. }
  3452. var chartObj_environment = null;//环境
  3453. var chartObj_pipeline = null;//管线
  3454. //配置路径
  3455. require.config({
  3456. paths:{
  3457. echarts:'/resources/echarts/build/dist',
  3458. }
  3459. });
  3460. $(function(){
  3461. initChartObjs();
  3462. });
  3463. function initChartObjs(){
  3464. //objPipeline();//管线
  3465. objEnvironment();//环境
  3466. }
  3467. function objEnvironment(){
  3468. option = {
  3469. tooltip : {
  3470. formatter: "{a} <br/>{c} {b}"
  3471. },
  3472. toolbox: {
  3473. show: false,
  3474. feature: {
  3475. restore: {show: true},
  3476. saveAsImage: {show: true}
  3477. }
  3478. },
  3479. series : [
  3480. {
  3481. name: '温度',
  3482. type: 'gauge',
  3483. z: 3,
  3484. min: 0,
  3485. max: 10,
  3486. splitNumber: 10,
  3487. radius: '100%',
  3488. axisLine: { // 坐标轴线
  3489. lineStyle: { // 属性lineStyle控制线条样式
  3490. width: 4
  3491. }
  3492. },
  3493. axisTick: { // 坐标轴小标记
  3494. length: 15, // 属性length控制线长
  3495. lineStyle: { // 属性lineStyle控制线条样式
  3496. color: 'auto'
  3497. }
  3498. },
  3499. splitLine: { // 分隔线
  3500. length: 20, // 属性length控制线长
  3501. lineStyle: { // 属性lineStyle(详见lineStyle)控制线条样式
  3502. color: 'auto'
  3503. }
  3504. },
  3505. title : {
  3506. offsetCenter: [0, 25], // x, y,单位px
  3507. textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE
  3508. color:'#F3F3F3',
  3509. fontWeight: 'bolder',
  3510. fontSize: 18,
  3511. }
  3512. },
  3513. detail : {
  3514. textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE
  3515. fontWeight: 'bolder'
  3516. }
  3517. },
  3518. data:[{value: 4, name: '温度'}]
  3519. },
  3520. {
  3521. name: '湿度',
  3522. type: 'gauge',
  3523. center: ['30%', '55%'], // 默认全局居中
  3524. radius: '75%',
  3525. min:0,
  3526. max:10,
  3527. endAngle:45,
  3528. splitNumber:10,
  3529. axisLine: { // 坐标轴线
  3530. lineStyle: { // 属性lineStyle控制线条样式
  3531. width: 3
  3532. }
  3533. },
  3534. axisTick: { // 坐标轴小标记
  3535. length:12, // 属性length控制线长
  3536. lineStyle: { // 属性lineStyle控制线条样式
  3537. color: 'auto',
  3538. width:1
  3539. }
  3540. },
  3541. splitLine: { // 分隔线
  3542. length:20, // 属性length控制线长
  3543. lineStyle: { // 属性lineStyle(详见lineStyle)控制线条样式
  3544. color: 'auto',
  3545. width:1
  3546. }
  3547. },
  3548. pointer: {
  3549. width:5
  3550. },
  3551. title: {
  3552. offsetCenter: [0, '-30%'], // x, y,单位px
  3553. textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE
  3554. color:'#F3F3F3',
  3555. fontWeight: 'bolder',
  3556. fontSize: 15,
  3557. }
  3558. },
  3559. detail: {
  3560. textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE
  3561. fontWeight: 'bolder'
  3562. }
  3563. },
  3564. data:[
  3565. {
  3566. value: 1.5,
  3567. name: '湿度',
  3568. // label:{
  3569. // normal:{
  3570. // show: true,
  3571. // textStyle:{
  3572. // color: '#F3F3F3',
  3573. // fontSize:2
  3574. // }
  3575. // }
  3576. // }
  3577. }]
  3578. },
  3579. {
  3580. name: '有害气体',
  3581. type: 'gauge',
  3582. center: ['72%', '50%'], // 默认全局居中
  3583. radius: '75%',
  3584. min: 0,
  3585. max: 100,
  3586. startAngle: 155,
  3587. endAngle: 25,
  3588. splitNumber: 10,
  3589. axisLine: { // 坐标轴线
  3590. lineStyle: { // 属性lineStyle控制线条样式
  3591. width: 3
  3592. }
  3593. },
  3594. axisTick: { // 坐标轴小标记
  3595. splitNumber: 5,
  3596. length: 10, // 属性length控制线长
  3597. lineStyle: { // 属性lineStyle控制线条样式
  3598. color: 'auto',
  3599. width:1
  3600. }
  3601. },
  3602. axisLabel: {
  3603. formatter:function(v){
  3604. switch (v + '') {
  3605. case '0' : return '0';
  3606. case '50' : return '';
  3607. case '100' : return '100';
  3608. }
  3609. }
  3610. },
  3611. splitLine: { // 分隔线
  3612. length: 15, // 属性length控制线长
  3613. lineStyle: { // 属性lineStyle(详见lineStyle)控制线条样式
  3614. color: 'auto',
  3615. width:1
  3616. }
  3617. },
  3618. pointer: {
  3619. width:2
  3620. },
  3621. title : {
  3622. offsetCenter: [0, '-40%'], // x, y,单位px
  3623. textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE
  3624. color:'#F3F3F3',
  3625. fontWeight: 'bolder',
  3626. fontSize: 10,
  3627. }
  3628. },
  3629. detail : {
  3630. show: false
  3631. },
  3632. data:[{value: 50, name: '有害气体'}]
  3633. },
  3634. {
  3635. name: '积水位',
  3636. type: 'gauge',
  3637. center : ['72%', '50%'], // 默认全局居中
  3638. radius : '75%',
  3639. min: 0,
  3640. max: 100,
  3641. startAngle: 335,
  3642. endAngle: 205,
  3643. splitNumber: 10,
  3644. axisLine: { // 坐标轴线
  3645. lineStyle: { // 属性lineStyle控制线条样式
  3646. width: 3
  3647. }
  3648. },
  3649. axisTick: { // 坐标轴小标记
  3650. splitNumber: 5,
  3651. length: 5, // 属性length控制线长
  3652. lineStyle: { // 属性lineStyle控制线条样式
  3653. color: 'auto',
  3654. width: 1
  3655. }
  3656. },
  3657. axisLabel: {
  3658. formatter:function(v){
  3659. switch (v + '') {
  3660. case '0' : return '0';
  3661. case '50' : return '';
  3662. case '100' : return '100';
  3663. }
  3664. }
  3665. },
  3666. splitLine: { // 分隔线
  3667. length: 15, // 属性length控制线长
  3668. lineStyle: { // 属性lineStyle(详见lineStyle)控制线条样式
  3669. color: 'auto',
  3670. width:1
  3671. }
  3672. },
  3673. pointer: {
  3674. width:2
  3675. },
  3676. title: {
  3677. offsetCenter: [0, 25], // x, y,单位px
  3678. textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE
  3679. color:'#F3F3F3',
  3680. fontWeight: 'bolder',
  3681. fontSize: 10,
  3682. }
  3683. },
  3684. detail: {
  3685. show: false
  3686. },
  3687. data:[{value: 50, name: '积水位'}]
  3688. }
  3689. ]
  3690. };
  3691. chartObj_environment = echarts.init(document.getElementById("environment"),'');
  3692. setInterval(function (){
  3693. option.series[0].data[0].value = (Math.random()*10).toFixed(2) - 0;
  3694. option.series[1].data[0].value = (Math.random()*10).toFixed(2) - 0;
  3695. option.series[2].data[0].value = (Math.random()*100).toFixed(2) - 0;
  3696. option.series[3].data[0].value = (Math.random()*100).toFixed(2) - 0;
  3697. chartObj_environment.setOption(option,true);
  3698. },1000);
  3699. }
  3700. @charset "UTF-8";
  3701. /*常规设置*/
  3702. * {
  3703. font-family: 微软雅黑;
  3704. font-size: 12px; }
  3705. li {
  3706. list-style-type: none; }
  3707. a {
  3708. text-decoration: none;
  3709. color: #fff;
  3710. cursor: pointer; }
  3711. .none {
  3712. display: none; }
  3713. /*mixin*/
  3714. body {
  3715. /*background: url("../images/bc.jpg")no-repeat;*/
  3716. border-radius: 15px;
  3717. border: #535353 10px solid; }
  3718. header {
  3719. position: relative;
  3720. background-color: #535353;
  3721. padding: 30px 0 10px 0; }
  3722. header .title {
  3723. position: absolute;
  3724. font-size: 14px;
  3725. color: #fff;
  3726. top: 0;
  3727. left: 2%;
  3728. letter-spacing: 10px; }
  3729. header nav {
  3730. padding: 10px 20px;
  3731. background-color: #404040; }
  3732. header nav ul {
  3733. overflow: auto;
  3734. margin: 0; }
  3735. header nav li {
  3736. float: left;
  3737. width: 90px;
  3738. height: 70px;
  3739. text-align: center;
  3740. margin-right: 50px;
  3741. cursor: pointer;
  3742. background: -moz-radial-gradient(#43484a, #383737, #313030);
  3743. background: -webkit-radial-gradient(#43484a, #383737, #313030);
  3744. }
  3745. header nav li:hover {
  3746. background: -moz-radial-gradient(#5878bf, #5270b7, #425992);
  3747. background: -webkit-radial-gradient(#5878bf, #5270b7, #425992);
  3748. background: linear-gradient(#5878bf 0%,#5270b7 100%,#425992 100%); }
  3749. header nav li a {
  3750. font-size: 14px; }
  3751. header nav .on {
  3752. background: -moz-radial-gradient(#5878bf, #5270b7, #425992);
  3753. background: -webkit-radial-gradient(#5878bf, #5270b7, #425992);
  3754. background: linear-gradient(#5878bf 0%,#5270b7 100%,#425992 100%);}
  3755. .container {
  3756. background-color: #4b4a4a;
  3757. /* height: 940px; */
  3758. overflow: hidden;
  3759. }
  3760. .container nav {
  3761. position: absolute; }
  3762. .container nav .close {
  3763. width: 18px;
  3764. height: 730px;
  3765. background-color:#363a3e;
  3766. cursor:pointer;
  3767. }
  3768. .container nav .close:after{
  3769. content: '';
  3770. position: absolute;
  3771. width: 26px;
  3772. height: 58px;
  3773. background: url(/resources/images/nav_flod.png) no-repeat;
  3774. right: -50%;
  3775. bottom: 50%;
  3776. cursor: pointer;
  3777. margin-top: -58px;
  3778. }
  3779. .container nav .show {
  3780. position: relative;
  3781. width: 225px;
  3782. height: 670px;
  3783. background-color: #34393d;
  3784. padding: 30px 0;
  3785. z-index: 999;
  3786. opacity: 0.9;
  3787. filter: alpha(opacity=90);
  3788. -moz-opacity: 0.9;
  3789. -khtml-opacity: 0.9;
  3790. }
  3791. .container nav .show .title {
  3792. width: 80px;
  3793. height: 20px;
  3794. line-height: 20px;
  3795. margin: 0 auto;
  3796. background: url("/resources/images/nav_title.png") no-repeat;
  3797. font-size: 20px;
  3798. color: #fff;
  3799. padding: 0 0 0 30px; }
  3800. .container nav .show .fold {
  3801. position: absolute;
  3802. width: 27px;
  3803. height: 58px;
  3804. background: url("/resources/images/nav_flod.png") no-repeat;
  3805. right: -4%;
  3806. top: 50%;
  3807. bottom: 50%;
  3808. cursor: pointer;
  3809. margin-top: -58px; }
  3810. .container .navgation {
  3811. padding: 0;
  3812. margin-top: 30px; }
  3813. .container .navgation li {
  3814. cursor: pointer; }
  3815. .container .navgation li .modular {
  3816. position: relative;
  3817. width: 145px;
  3818. line-height: 35px;
  3819. margin: 0 auto;
  3820. color: #bdc6cb;
  3821. padding: 0 15px; }
  3822. .container .navgation li .modular span {
  3823. font-size: 16px; }
  3824. .container .navgation li .modular span:first-child {
  3825. float: left;
  3826. margin-right: 15px;
  3827. font-size: 20px; }
  3828. .container .navgation li .modular img {
  3829. position: absolute;
  3830. right: 15px;
  3831. top: 50%;
  3832. bottom: 50%;
  3833. margin-top: -3.5px; }
  3834. .container .navgation li ul li {
  3835. width: 90px;
  3836. line-height: 35px;
  3837. margin: 0 auto;
  3838. color: #bdc6cb;
  3839. padding: 0 15px; }
  3840. .container .navgation li ul li:hover {
  3841. background-color: #323437; }
  3842. .container .container_main {
  3843. padding: 0 30px;
  3844. margin: 0 0 30px 30px;
  3845. overflow: hidden;
  3846. /* height: 940px; */
  3847. background: -moz-radial-gradient(#383839, #2b2b2d, #262628);
  3848. background: -webkit-radial-gradient(#383839, #2b2b2d, #262628);
  3849. }
  3850. .container .container_main .content {
  3851. /* margin-top: 50px; */
  3852. }
  3853. .container .container_main .content .modular {
  3854. float: left;
  3855. margin-right: 40px;
  3856. width: 31%;
  3857. /* height: 840px; */
  3858. }
  3859. .container .container_main .content .modular:last-child {
  3860. margin: 0; }
  3861. .container .left_modular .title {
  3862. width: 100%;
  3863. height: 50px;
  3864. line-height: 50px; }
  3865. .container .left_modular .title .icon {
  3866. background-color: #817b2f;
  3867. float: left;
  3868. width: 11%;
  3869. height: 100%;
  3870. text-align: center;
  3871. }
  3872. .container .left_modular .title .icon img {
  3873. vertical-align: middle; }
  3874. .container .left_modular .title .text {
  3875. background: -moz-linear-gradient(left, #7a8b9b, #35373b);
  3876. background: -webkit-linear-gradient(left, #7a8b9b, #35373b);
  3877. background: -o-linear-gradient(left, #7a8b9b, #35373b);
  3878. background: linear-gradient(to right, #7a8b9b 0%,#35373b 100%);
  3879. color: #fff;
  3880. font-size: 20px;
  3881. text-align: right;
  3882. float: left;
  3883. width: 85%;
  3884. height: 100%;
  3885. padding-right: 15px;
  3886. }
  3887. .container .left_modular hr {
  3888. margin: 15px 0; }
  3889. .container .left_modular .env {
  3890. position: relative;
  3891. height: 125px;
  3892. }
  3893. .container .left_modular .env .icon {
  3894. position: relative; }
  3895. .container .left_modular .env .icon span {
  3896. color: #fff;
  3897. font-size: 18px;
  3898. position: absolute;
  3899. left: 36px; }
  3900. .container .left_modular .env .chart img {
  3901. position: absolute;
  3902. left: 20%;
  3903. top: 5%;
  3904. }
  3905. .container .left_modular .pipeline {
  3906. position: relative;
  3907. height: 205px;
  3908. }
  3909. .container .left_modular .pipeline .icon {
  3910. position: relative; }
  3911. .container .left_modular .pipeline .icon span {
  3912. color: #fff;
  3913. font-size: 18px;
  3914. position: absolute;
  3915. left: 36px; }
  3916. .container .left_modular .pipeline .text {
  3917. color: #8f8f90;
  3918. width: 30%;
  3919. margin-top: 5%;
  3920. }
  3921. .container .left_modular .pipeline .text div {
  3922. text-align: center;
  3923. font-size: 14px;
  3924. border-bottom: #403834 1px solid;
  3925. padding: 10px 0;
  3926. overflow: hidden; }
  3927. .container .left_modular .pipeline .text div span {
  3928. display: inline-block;
  3929. font-size: 14px; }
  3930. .container .left_modular .pipeline .text div span:first-child {
  3931. float: left; }
  3932. .container .left_modular .pipeline .text div span:last-child {
  3933. float: right; }
  3934. .container .left_modular .pipeline .text div:nth-child(1) {
  3935. color: #cdcdcd; }
  3936. .container .left_modular .pipeline .chart img {
  3937. position: absolute;
  3938. left: 32%;
  3939. top: 0; }
  3940. .container .left_modular .equip {
  3941. position: relative;
  3942. height: 210px; }
  3943. .container .left_modular .equip .icon {
  3944. position: relative; }
  3945. .container .left_modular .equip .icon span {
  3946. color: #fff;
  3947. font-size: 18px;
  3948. position: absolute;
  3949. left: 36px; }
  3950. .container .left_modular .equip .text {
  3951. color: #8f8f90;
  3952. width: 29%;
  3953. margin-top: 5%;
  3954. }
  3955. .container .left_modular .equip .text div {
  3956. text-align: center;
  3957. font-size: 14px;
  3958. border-bottom: #403834 1px solid;
  3959. padding: 6px 0;
  3960. overflow: hidden;
  3961. }
  3962. .container .left_modular .equip .text div span {
  3963. display: inline-block;
  3964. font-size: 14px; }
  3965. .container .left_modular .equip .text div span:first-child {
  3966. float: left; }
  3967. .container .left_modular .equip .text div span:last-child {
  3968. float: right; }
  3969. .container .left_modular .equip .text div:nth-child(1) {
  3970. border-top: #403834 1px solid; }
  3971. .container .left_modular .equip .chart {
  3972. background-color: #2f3033;
  3973. width: 54%;
  3974. height: 215px;
  3975. position: absolute;
  3976. top: 0;
  3977. right: 30px;
  3978. }
  3979. .container .left_modular .equip .chart .title {
  3980. font-size: 16px;
  3981. color: #fff;
  3982. text-align: center; }
  3983. .container .left_modular .equip .chart .main {
  3984. overflow: hidden;
  3985. padding: 0 30px;
  3986. margin-top: 15px;
  3987. cursor: pointer; }
  3988. .container .left_modular .equip .chart .main .left {
  3989. float: left;
  3990. width: 99px;
  3991. text-align: center; }
  3992. .container .left_modular .equip .chart .main .right {
  3993. float: right;
  3994. width: 99px;
  3995. text-align: center; }
  3996. .container .left_modular .equip .chart .main .main_img {
  3997. width: 91px;
  3998. height: 91px;
  3999. background-size: 100%;
  4000. margin-bottom: 10px; }
  4001. .container .left_modular .equip .chart .state {
  4002. color: #535353; }
  4003. .container .content_modular .title {
  4004. width: 100%;
  4005. height: 50px;
  4006. line-height: 50px; }
  4007. .container .content_modular .title .icon {
  4008. background-color: #2875b6;
  4009. float: left;
  4010. width: 11%;
  4011. height: 100%;
  4012. text-align: center;
  4013. }
  4014. .container .content_modular .title .icon img {
  4015. vertical-align: middle; }
  4016. .container .content_modular .title .text {
  4017. background: -moz-linear-gradient(left, #7a8b9b, #35373b);
  4018. background: -webkit-linear-gradient(left, #7a8b9b, #35373b);
  4019. background: -o-linear-gradient(left, #7a8b9b, #35373b);
  4020. background: linear-gradient(to right, #7a8b9b 0%,#35373b 100%);
  4021. color: #fff;
  4022. font-size: 20px;
  4023. text-align: right;
  4024. float: left;
  4025. width: 85%;
  4026. height: 100%;
  4027. padding-right: 15px;
  4028. }
  4029. .container .content_modular hr {
  4030. margin: 15px 0; }
  4031. .container .content_modular .env {
  4032. position: relative;
  4033. height: 200px; }
  4034. .container .content_modular .env .icon {
  4035. position: relative; }
  4036. .container .content_modular .env .icon span {
  4037. color: #fff;
  4038. font-size: 18px;
  4039. position: absolute;
  4040. left: 36px; }
  4041. .container .content_modular .pipeline {
  4042. position: relative;
  4043. height: 175px;
  4044. }
  4045. .container .content_modular .pipeline .icon {
  4046. position: relative; }
  4047. .container .content_modular .pipeline .icon span {
  4048. color: #fff;
  4049. font-size: 18px;
  4050. position: absolute;
  4051. left: 36px; }
  4052. .container .content_modular .pipeline .text {
  4053. color: #8f8f90;
  4054. width: 30%;
  4055. margin-top: 5%;
  4056. }
  4057. .container .content_modular .pipeline .text div {
  4058. text-align: center;
  4059. font-size: 14px;
  4060. border-bottom: #403834 1px solid;
  4061. padding: 10px 0;
  4062. overflow: hidden; }
  4063. .container .content_modular .pipeline .text div span {
  4064. display: inline-block;
  4065. font-size: 14px; }
  4066. .container .content_modular .pipeline .text div span:first-child {
  4067. float: left; }
  4068. .container .content_modular .pipeline .text div span:last-child {
  4069. float: right; }
  4070. .container .content_modular .pipeline .text div:nth-child(1) {
  4071. color: #cdcdcd; }
  4072. .container .content_modular .pipeline .chart img {
  4073. position: absolute;
  4074. left: 50%;
  4075. top: 0;
  4076. }
  4077. .container .content_modular .equip {
  4078. position: relative;
  4079. height: 210px; }
  4080. .container .content_modular .equip .icon {
  4081. position: relative; }
  4082. .container .content_modular .equip .icon span {
  4083. color: #fff;
  4084. font-size: 18px;
  4085. position: absolute;
  4086. left: 36px; }
  4087. .container .content_modular .equip .text {
  4088. color: #8f8f90;
  4089. width: 29%;
  4090. margin-top: 5%;
  4091. }
  4092. .container .content_modular .equip .text div {
  4093. text-align: center;
  4094. font-size: 14px;
  4095. border-bottom: #403834 1px solid;
  4096. padding: 6px 0;
  4097. overflow: hidden;
  4098. }
  4099. .container .content_modular .equip .text div span {
  4100. display: inline-block;
  4101. font-size: 14px; }
  4102. .container .content_modular .equip .text div span:first-child {
  4103. float: left; }
  4104. .container .content_modular .equip .text div span:last-child {
  4105. float: right; }
  4106. .container .content_modular .equip .text div:nth-child(1) {
  4107. border-top: #403834 1px solid; }
  4108. .container .content_modular .equip .chart {
  4109. background-color: #2f3033;
  4110. width: 54%;
  4111. height: 215px;
  4112. position: absolute;
  4113. top: 0;
  4114. right: 30px;
  4115. }
  4116. .container .content_modular .equip .chart .title {
  4117. font-size: 16px;
  4118. color: #fff;
  4119. text-align: center; }
  4120. .container .content_modular .equip .chart .main {
  4121. overflow: hidden;
  4122. padding: 0 30px;
  4123. margin-top: 15px;
  4124. cursor: pointer; }
  4125. .container .content_modular .equip .chart .main .left {
  4126. float: left;
  4127. width: 99px;
  4128. text-align: center; }
  4129. .container .content_modular .equip .chart .main .right {
  4130. float: right;
  4131. width: 99px;
  4132. text-align: center; }
  4133. .container .content_modular .equip .chart .main .main_img {
  4134. width: 91px;
  4135. height: 91px;
  4136. background-size: 100%;
  4137. margin-bottom: 10px; }
  4138. .container .content_modular .equip .chart .state {
  4139. color: #535353; }
  4140. .container .content_modular .chart1 {
  4141. overflow: hidden;
  4142. padding: 0 10%;
  4143. position: absolute;
  4144. top: -3%;
  4145. left: 18%;
  4146. }
  4147. .container .content_modular .chart1 .modular {
  4148. float: left;
  4149. text-align: center;
  4150. height: 175px;
  4151. position: relative; }
  4152. .container .content_modular .chart1 .modular h1 {
  4153. color: #fff;
  4154. font-size: 16px; }
  4155. .container .content_modular .chart1 .modular div {
  4156. color: #0093ff;
  4157. font-size: 16px;
  4158. position: absolute;
  4159. left: 0;
  4160. right: 0;
  4161. bottom: 0; }
  4162. .container .content_modular .chart1 .modular1 {
  4163. width: 55px;
  4164. }
  4165. .container .content_modular .chart1 .modular2 {
  4166. width: 55px;
  4167. }
  4168. .container .content_modular .chart1 .modular3 {
  4169. width: 85px;
  4170. }
  4171. .container .content_modular .chart1 .modular3 img {
  4172. margin-top: 10%; }
  4173. .container .content_modular .chart1 .modular4 {
  4174. width: 71px; }
  4175. .container .right_modular .title {
  4176. width: 100%;
  4177. height: 50px;
  4178. line-height: 50px; }
  4179. .container .right_modular .title .icon {
  4180. background-color: #2875b6;
  4181. float: left;
  4182. width: 11%;
  4183. height: 100%;
  4184. text-align: center;
  4185. }
  4186. .container .right_modular .title .icon img {
  4187. vertical-align: middle; }
  4188. .container .right_modular .title .text {
  4189. background: -moz-linear-gradient(left, #7a8b9b, #35373b);
  4190. background: -webkit-linear-gradient(left, #7a8b9b, #35373b);
  4191. background: -o-linear-gradient(left, #7a8b9b, #35373b);
  4192. background: linear-gradient(to right, #7a8b9b 0%,#35373b 100%);
  4193. color: #fff;
  4194. font-size: 20px;
  4195. text-align: right;
  4196. float: left;
  4197. width: 85%;
  4198. height: 100%;
  4199. padding-right: 15px;
  4200. }
  4201. .container .right_modular hr {
  4202. margin: 15px 0; }
  4203. .container .right_modular .env {
  4204. position: relative;
  4205. height: 125px;
  4206. }
  4207. .container .right_modular .env .icon {
  4208. position: relative; }
  4209. .container .right_modular .env .icon span {
  4210. color: #fff;
  4211. font-size: 18px;
  4212. position: absolute;
  4213. left: 36px; }
  4214. .container .right_modular .pipeline {
  4215. position: relative;
  4216. height: 195px;
  4217. }
  4218. .container .right_modular .pipeline .icon {
  4219. position: relative; }
  4220. .container .right_modular .pipeline .icon span {
  4221. color: #fff;
  4222. font-size: 18px;
  4223. position: absolute;
  4224. left: 36px; }
  4225. .container .right_modular .pipeline .text {
  4226. color: #8f8f90;
  4227. width: 30%;
  4228. margin-top: 5%;
  4229. }
  4230. .container .right_modular .pipeline .text div {
  4231. text-align: center;
  4232. font-size: 14px;
  4233. border-bottom: #403834 1px solid;
  4234. padding: 10px 0;
  4235. overflow: hidden; }
  4236. .container .right_modular .pipeline .text div span {
  4237. display: inline-block;
  4238. font-size: 14px; }
  4239. .container .right_modular .pipeline .text div span:first-child {
  4240. float: left; }
  4241. .container .right_modular .pipeline .text div span:last-child {
  4242. float: right; }
  4243. .container .right_modular .pipeline .text div:nth-child(1) {
  4244. color: #cdcdcd; }
  4245. .container .right_modular .pipeline .chart img {
  4246. position: absolute;
  4247. left: 40%;
  4248. top: 6%;
  4249. }
  4250. .container .right_modular .equip {
  4251. position: relative;
  4252. height: 210px; }
  4253. .container .right_modular .equip .icon {
  4254. position: relative; }
  4255. .container .right_modular .equip .icon span {
  4256. color: #fff;
  4257. font-size: 18px;
  4258. position: absolute;
  4259. left: 36px; }
  4260. .container .right_modular .equip .text {
  4261. color: #8f8f90;
  4262. width: 29%;
  4263. margin-top: 5%;
  4264. }
  4265. .container .right_modular .equip .text div {
  4266. text-align: center;
  4267. font-size: 14px;
  4268. border-bottom: #403834 1px solid;
  4269. padding: 6px 0;
  4270. overflow: hidden;
  4271. }
  4272. .container .right_modular .equip .text div span {
  4273. display: inline-block;
  4274. font-size: 14px; }
  4275. .container .right_modular .equip .text div span:first-child {
  4276. float: left; }
  4277. .container .right_modular .equip .text div span:last-child {
  4278. float: right; }
  4279. .container .right_modular .equip .text div:nth-child(1) {
  4280. border-top: #403834 1px solid; }
  4281. .container .right_modular .equip .chart {
  4282. background-color: #2f3033;
  4283. width: 54%;
  4284. height: 215px;
  4285. position: absolute;
  4286. top: 0;
  4287. right: 30px;
  4288. }
  4289. .container .right_modular .equip .chart .title {
  4290. font-size: 16px;
  4291. color: #fff;
  4292. text-align: center; }
  4293. .container .right_modular .equip .chart .main {
  4294. overflow: hidden;
  4295. padding: 0 30px;
  4296. margin-top: 15px;
  4297. cursor: pointer; }
  4298. .container .right_modular .equip .chart .main .left {
  4299. float: left;
  4300. width: 99px;
  4301. text-align: center; }
  4302. .container .right_modular .equip .chart .main .right {
  4303. float: right;
  4304. width: 99px;
  4305. text-align: center; }
  4306. .container .right_modular .equip .chart .main .main_img {
  4307. width: 91px;
  4308. height: 91px;
  4309. background-size: 100%;
  4310. margin-bottom: 10px; }
  4311. .container .right_modular .equip .chart .state {
  4312. color: #535353; }
  4313. .container .right_modular .chart1 {
  4314. overflow: hidden;
  4315. padding: 0 10%;
  4316. position: absolute;
  4317. top: -3%;
  4318. }
  4319. .container .right_modular .chart1 img {
  4320. position: absolute;
  4321. top: -7%;
  4322. right: 10%;
  4323. }
  4324. .container .right_modular .chart1 .modular1 {
  4325. width: 78px; }
  4326. .container .right_modular .chart1 .modular2 {
  4327. width: 67px; }
  4328. .container .right_modular .chart1 .modular3 {
  4329. width: 119px; }
  4330. .container .right_modular .chart1 .modular3 img {
  4331. margin-top: 10%; }
  4332. .container .right_modular .chart1 .modular4 {
  4333. width: 71px; }
  4334. .mbx{
  4335. width: 334px;
  4336. height: 59px;
  4337. background: url(../images/mbx.png);
  4338. margin-bottom: 15px;
  4339. color: #fff;
  4340. font-size: 20px;
  4341. text-align: center;
  4342. line-height: 59px;
  4343. cursor:pointer;
  4344. }
  4345. .container_main2 {
  4346. background: url("/resources/images/212.png") no-repeat !important; }
  4347. .left_modular2 {
  4348. background: -moz-radial-gradient(#383839, #2b2b2d, #262628);
  4349. background: -webkit-radial-gradient(#383839, #2b2b2d, #262628);
  4350. position: absolute;
  4351. right: 10%;
  4352. top: 16%;
  4353. width: 600px !important;
  4354. padding: 10px 40px; }
  4355. .left_modular2 .title2 {
  4356. width: 100%;
  4357. height: 50px;
  4358. line-height: 50px; }
  4359. .left_modular2 .title2 .icon {
  4360. float: left;
  4361. width: 65px;
  4362. height: 100%;
  4363. text-align: center; }
  4364. .left_modular2 .title2 .icon img {
  4365. vertical-align: middle; }
  4366. .left_modular2 .title2 .text {
  4367. color: #fff;
  4368. font-size: 20px;
  4369. float: left;
  4370. width: 495px;
  4371. height: 100%; }
  4372. .container_main2 {
  4373. background: url("/resources/images/212.png") no-repeat !important; }
  4374. .left_modular2 {
  4375. background: -moz-radial-gradient(#383839, #2b2b2d, #262628);
  4376. background: -webkit-radial-gradient(#383839, #2b2b2d, #262628);
  4377. width: 600px !important;
  4378. padding: 10px 40px; }
  4379. .left_modular2 .title2 {
  4380. width: 100%;
  4381. height: 50px;
  4382. line-height: 50px; }
  4383. .left_modular2 .title2 .icon {
  4384. float: left;
  4385. width: 65px;
  4386. height: 100%;
  4387. text-align: center; }
  4388. .left_modular2 .title2 .icon img {
  4389. vertical-align: middle; }
  4390. .left_modular2 .title2 .text {
  4391. color: #fff;
  4392. font-size: 20px;
  4393. float: left;
  4394. width: 495px;
  4395. height: 100%; }
  4396. .close-btn {
  4397. width: 18px;
  4398. height: 18px;
  4399. position: absolute;
  4400. background: url(/resources/images/close.png) no-repeat;
  4401. right: 2%;
  4402. top: 2%;
  4403. cursor: pointer; }
  4404. .tuchu {
  4405. width: 18px;
  4406. height: 27px;
  4407. position: absolute;
  4408. background: url(/resources/images/tuchu.png) no-repeat;
  4409. left: -2%;
  4410. top: 7%; }
  4411. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4412. <modelVersion>4.0.0</modelVersion>
  4413. <groupId>com.upbest</groupId>
  4414. <artifactId>pipeGallery</artifactId>
  4415. <version>0.0.1</version>
  4416. <packaging>war</packaging>
  4417. <build>
  4418. <finalName>pipeGallery</finalName>
  4419. <plugins>
  4420. <plugin>
  4421. <artifactId>maven-compiler-plugin</artifactId>
  4422. <configuration>
  4423. <source>1.7</source>
  4424. <target>1.7</target>
  4425. <encoding>utf-8</encoding>
  4426. </configuration>
  4427. </plugin>
  4428. <plugin>
  4429. <groupId>org.mortbay.jetty</groupId>
  4430. <artifactId>maven-jetty-plugin</artifactId>
  4431. <version>6.1.6</version>
  4432. <configuration>
  4433. <scanIntervalSeconds>3</scanIntervalSeconds>
  4434. <!-- <connectors> <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
  4435. <port>8087</port> <maxIdleTime>60000</maxIdleTime> </connector> </connectors> -->
  4436. <contextPath>/</contextPath>
  4437. <webDefaultXml>webdefault.xml</webDefaultXml>
  4438. </configuration>
  4439. </plugin>
  4440. </plugins>
  4441. </build>
  4442. <properties>
  4443. <java-version>1.7</java-version>
  4444. <org.springframework-version>3.2.2.RELEASE</org.springframework-version>
  4445. <org.aspectj-version>1.7.2</org.aspectj-version>
  4446. <org.slf4j-version>1.7.5</org.slf4j-version>
  4447. </properties>
  4448. <repositories>
  4449. <repository>
  4450. <id>nexus-public</id>
  4451. <name>Public Repository</name>
  4452. <url>http://local.upbest-china.com:8081/nexus/content/repositories/public</url>
  4453. </repository>
  4454. <repository>
  4455. <id>nexus-thirdparty</id>
  4456. <name>3rd Party Repository</name>
  4457. <url>http://local.upbest-china.com:8081/nexus/content/repositories/thirdparty</url>
  4458. </repository>
  4459. <repository>
  4460. <id>nexus-releases</id>
  4461. <name>Release Repository</name>
  4462. <url>http://local.upbest-china.com:8081/nexus/content/repositories/releases</url>
  4463. </repository>
  4464. <repository>
  4465. <id>nexus-snapshots</id>
  4466. <name>Snapshot Repository</name>
  4467. <url>http://local.upbest-china.com:8081/nexus/content/repositories/snapshots</url>
  4468. <snapshots>
  4469. <enabled>true</enabled>
  4470. </snapshots>
  4471. </repository>
  4472. <repository>
  4473. <id>amateras</id>
  4474. <name>Project Amateras Maven2 Repository</name>
  4475. <url>http://amateras.sourceforge.jp/mvn/</url>
  4476. </repository>
  4477. <repository>
  4478. <id>spring-milestone</id>
  4479. <name>Spring Maven MILESTONE Repository</name>
  4480. <url>http://maven.springframework.org/milestone</url>
  4481. </repository>
  4482. </repositories>
  4483. <dependencies>
  4484. <!-- Spring -->
  4485. <dependency>
  4486. <groupId>org.springframework</groupId>
  4487. <artifactId>spring-context</artifactId>
  4488. <version>${org.springframework-version}</version>
  4489. <exclusions>
  4490. <!-- Exclude Commons Logging in favor of SLF4j -->
  4491. <exclusion>
  4492. <groupId>commons-logging</groupId>
  4493. <artifactId>commons-logging</artifactId>
  4494. </exclusion>
  4495. </exclusions>
  4496. </dependency>
  4497. <dependency>
  4498. <groupId>org.springframework</groupId>
  4499. <artifactId>spring-webmvc</artifactId>
  4500. <version>${org.springframework-version}</version>
  4501. </dependency>
  4502. <dependency>
  4503. <groupId>org.springframework</groupId>
  4504. <artifactId>spring-tx</artifactId>
  4505. <version>${org.springframework-version}</version>
  4506. </dependency>
  4507. <dependency>
  4508. <groupId>org.springframework</groupId>
  4509. <artifactId>spring-jdbc</artifactId>
  4510. <version>${org.springframework-version}</version>
  4511. </dependency>
  4512. <dependency>
  4513. <groupId>org.springframework</groupId>
  4514. <artifactId>spring-test</artifactId>
  4515. <version>${org.springframework-version}</version>
  4516. </dependency>
  4517. <dependency>
  4518. <groupId>commons-codec</groupId>
  4519. <artifactId>commons-codec</artifactId>
  4520. <version>1.9</version>
  4521. </dependency>
  4522. <dependency>
  4523. <groupId>commons-lang</groupId>
  4524. <artifactId>commons-lang</artifactId>
  4525. <version>2.6</version>
  4526. </dependency>
  4527. <dependency>
  4528. <groupId>commons-pool</groupId>
  4529. <artifactId>commons-pool</artifactId>
  4530. <version>1.5.5</version>
  4531. </dependency>
  4532. <!-- AspectJ -->
  4533. <dependency>
  4534. <groupId>org.aspectj</groupId>
  4535. <artifactId>aspectjrt</artifactId>
  4536. <version>${org.aspectj-version}</version>
  4537. </dependency>
  4538. <dependency>
  4539. <groupId>com.upbest</groupId>
  4540. <artifactId>fastdfs-client</artifactId>
  4541. <version>1.24</version>
  4542. </dependency>
  4543. <dependency>
  4544. <groupId>org.aspectj</groupId>
  4545. <artifactId>aspectjweaver</artifactId>
  4546. <version>1.7.2</version>
  4547. </dependency>
  4548. <!-- Logging -->
  4549. <!-- -->
  4550. <dependency>
  4551. <groupId>org.slf4j</groupId>
  4552. <artifactId>slf4j-api</artifactId>
  4553. <version>${org.slf4j-version}</version>
  4554. </dependency>
  4555. <dependency>
  4556. <groupId>org.slf4j</groupId>
  4557. <artifactId>jcl-over-slf4j</artifactId>
  4558. <version>${org.slf4j-version}</version>
  4559. <scope>runtime</scope>
  4560. </dependency>
  4561. <dependency>
  4562. <groupId>org.slf4j</groupId>
  4563. <artifactId>slf4j-log4j12</artifactId>
  4564. <version>${org.slf4j-version}</version>
  4565. <scope>runtime</scope>
  4566. </dependency>
  4567. <dependency>
  4568. <groupId>log4j</groupId>
  4569. <artifactId>log4j</artifactId>
  4570. <version>1.2.17</version>
  4571. <exclusions>
  4572. <exclusion>
  4573. <groupId>javax.mail</groupId>
  4574. <artifactId>mail</artifactId>
  4575. </exclusion>
  4576. <exclusion>
  4577. <groupId>javax.jms</groupId>
  4578. <artifactId>jms</artifactId>
  4579. </exclusion>
  4580. <exclusion>
  4581. <groupId>com.sun.jdmk</groupId>
  4582. <artifactId>jmxtools</artifactId>
  4583. </exclusion>
  4584. <exclusion>
  4585. <groupId>com.sun.jmx</groupId>
  4586. <artifactId>jmxri</artifactId>
  4587. </exclusion>
  4588. </exclusions>
  4589. <scope>runtime</scope>
  4590. </dependency>
  4591. <!-- @Inject -->
  4592. <dependency>
  4593. <groupId>javax.inject</groupId>
  4594. <artifactId>javax.inject</artifactId>
  4595. <version>1</version>
  4596. </dependency>
  4597. <dependency>
  4598. <groupId>opensymphony</groupId>
  4599. <artifactId>sitemesh</artifactId>
  4600. <version>2.4.2</version>
  4601. </dependency>
  4602. <!-- Servlet -->
  4603. <dependency>
  4604. <groupId>javax.servlet</groupId>
  4605. <artifactId>servlet-api</artifactId>
  4606. <version>2.5</version>
  4607. <scope>provided</scope>
  4608. </dependency>
  4609. <dependency>
  4610. <groupId>javax.servlet.jsp</groupId>
  4611. <artifactId>jsp-api</artifactId>
  4612. <version>2.1</version>
  4613. <scope>provided</scope>
  4614. </dependency>
  4615. <dependency>
  4616. <groupId>javax.servlet</groupId>
  4617. <artifactId>jstl</artifactId>
  4618. <version>1.2</version>
  4619. </dependency>
  4620. <dependency>
  4621. <groupId>mysql</groupId>
  4622. <artifactId>mysql-connector-java</artifactId>
  4623. <version>5.1.24</version>
  4624. </dependency>
  4625. <dependency>
  4626. <groupId>com.alibaba</groupId>
  4627. <artifactId>druid</artifactId>
  4628. <version>0.2.15</version>
  4629. </dependency>
  4630. <dependency>
  4631. <groupId>org.mybatis</groupId>
  4632. <artifactId>mybatis</artifactId>
  4633. <version>3.2.1</version>
  4634. </dependency>
  4635. <dependency>
  4636. <groupId>org.mybatis</groupId>
  4637. <artifactId>mybatis-spring</artifactId>
  4638. <version>1.2.0</version>
  4639. </dependency>
  4640. <!-- Test -->
  4641. <dependency>
  4642. <groupId>junit</groupId>
  4643. <artifactId>junit</artifactId>
  4644. <version>4.11</version>
  4645. <scope>test</scope>
  4646. </dependency>
  4647. <dependency>
  4648. <groupId>commons-fileupload</groupId>
  4649. <artifactId>commons-fileupload</artifactId>
  4650. <version>1.3</version>
  4651. </dependency>
  4652. <dependency>
  4653. <groupId>com.googlecode.xmemcached</groupId>
  4654. <artifactId>xmemcached</artifactId>
  4655. <version>2.0.0</version>
  4656. </dependency>
  4657. <dependency>
  4658. <groupId>com.alibaba</groupId>
  4659. <artifactId>fastjson</artifactId>
  4660. <version>1.1.38</version>
  4661. </dependency>
  4662. <!-- jackson -->
  4663. <dependency>
  4664. <groupId>org.codehaus.jackson</groupId>
  4665. <artifactId>jackson-core-asl</artifactId>
  4666. <version>1.8.4</version>
  4667. </dependency>
  4668. <dependency>
  4669. <groupId>org.codehaus.jackson</groupId>
  4670. <artifactId>jackson-mapper-asl</artifactId>
  4671. <version>1.8.4</version>
  4672. </dependency>
  4673. <!-- end -->
  4674. <dependency>
  4675. <groupId>commons-httpclient</groupId>
  4676. <artifactId>commons-httpclient</artifactId>
  4677. <version>3.1</version>
  4678. </dependency>
  4679. <dependency>
  4680. <groupId>org.apache.httpcomponents</groupId>
  4681. <artifactId>httpclient</artifactId>
  4682. <version>4.3.2</version>
  4683. </dependency>
  4684. <dependency>
  4685. <groupId>org.apache.httpcomponents</groupId>
  4686. <artifactId>httpmime</artifactId>
  4687. <version>4.3.1</version>
  4688. </dependency>
  4689. <dependency>
  4690. <groupId>org.codehaus.jettison</groupId>
  4691. <artifactId>jettison</artifactId>
  4692. <version>1.1</version>
  4693. </dependency>
  4694. <dependency>
  4695. <groupId>redis.clients</groupId>
  4696. <artifactId>jedis</artifactId>
  4697. <version>2.1.0</version>
  4698. </dependency>
  4699. <dependency>
  4700. <groupId>org.springframework.data</groupId>
  4701. <artifactId>spring-data-redis</artifactId>
  4702. <version>1.1.1.RELEASE</version>
  4703. </dependency>
  4704. <dependency>
  4705. <groupId>org.apache.httpcomponents</groupId>
  4706. <artifactId>httpclient</artifactId>
  4707. <version>4.3.5</version>
  4708. </dependency>
  4709. <!-- <dependency>
  4710. <groupId>com.upbest</groupId>
  4711. <artifactId>jpush-client</artifactId>
  4712. <version>3.2.3</version>
  4713. </dependency> -->
  4714. <dependency>
  4715. <groupId>com.upbest</groupId>
  4716. <artifactId>jpush-java-library</artifactId>
  4717. <version>2.0</version>
  4718. </dependency>
  4719. <dependency>
  4720. <groupId>com.upbest</groupId>
  4721. <artifactId>gson</artifactId>
  4722. <version>2.2.2</version>
  4723. </dependency>
  4724. <dependency>
  4725. <groupId>net.sourceforge.jexcelapi</groupId>
  4726. <artifactId>jxl</artifactId>
  4727. <version>2.6.12</version>
  4728. </dependency>
  4729. <dependency>
  4730. <groupId>org.apache.poi</groupId>
  4731. <artifactId>poi</artifactId>
  4732. <version>3.14</version>
  4733. </dependency>
  4734. <dependency>
  4735. <groupId>org.apache.poi</groupId>
  4736. <artifactId>poi-ooxml</artifactId>
  4737. <version>3.14</version>
  4738. </dependency>
  4739. <dependency>
  4740. <groupId>org.apache.poi</groupId>
  4741. <artifactId>poi-ooxml-schemas</artifactId>
  4742. <version>3.14</version>
  4743. </dependency>
  4744. <!-- joda -->
  4745. <dependency>
  4746. <groupId>joda-time</groupId>
  4747. <artifactId>joda-time</artifactId>
  4748. <version>2.5</version>
  4749. </dependency>
  4750. <dependency>
  4751. <groupId>com.upbest</groupId>
  4752. <artifactId>ojdbc</artifactId>
  4753. <version>14_g</version>
  4754. </dependency>
  4755. <!-- freemarker -->
  4756. <dependency>
  4757. <groupId>org.freemarker</groupId>
  4758. <artifactId>freemarker</artifactId>
  4759. <version>2.3.23</version>
  4760. </dependency>
  4761. <dependency>
  4762. <groupId>xerces</groupId>
  4763. <artifactId>xercesImpl</artifactId>
  4764. <version>2.11.0</version>
  4765. </dependency>
  4766. <dependency>
  4767. <groupId>org.apache.xmlbeans</groupId>
  4768. <artifactId>xmlbeans</artifactId>
  4769. <version>2.6.0</version>
  4770. </dependency>
  4771. <dependency>
  4772. <groupId>xml-apis</groupId>
  4773. <artifactId>xml-apis</artifactId>
  4774. <version>1.4.01</version>
  4775. </dependency>
  4776. </dependencies>
  4777. </project>
  4778. <?xml version="1.0" encoding="ISO-8859-1"?>
  4779. <!-- ===================================================================== -->
  4780. <!-- This file contains the default descriptor for web applications. -->
  4781. <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  4782. <!-- The intent of this descriptor is to include jetty specific or common -->
  4783. <!-- configuration for all webapps. If a context has a webdefault.xml -->
  4784. <!-- descriptor, it is applied before the contexts own web.xml file -->
  4785. <!-- -->
  4786. <!-- A context may be assigned a default descriptor by: -->
  4787. <!-- + Calling WebApplicationContext.setDefaultsDescriptor -->
  4788. <!-- + Passed an arg to addWebApplications -->
  4789. <!-- -->
  4790. <!-- This file is used both as the resource within the jetty.jar (which is -->
  4791. <!-- used as the default if no explicit defaults descriptor is set) and it -->
  4792. <!-- is copied to the etc directory of the Jetty distro and explicitly -->
  4793. <!-- by the jetty.xml file. -->
  4794. <!-- -->
  4795. <!-- ===================================================================== -->
  4796. <web-app
  4797. xmlns="http://java.sun.com/xml/ns/javaee"
  4798. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4799. xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
  4800. metadata-complete="true"
  4801. version="2.5">
  4802. <description>
  4803. Default web.xml file.
  4804. This file is applied to a Web application before it's own WEB_INF/web.xml file
  4805. </description>
  4806. <!-- ==================================================================== -->
  4807. <!-- Context params to control Session Cookies -->
  4808. <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  4809. <!-- UNCOMMENT TO ACTIVATE
  4810. <context-param>
  4811. <param-name>org.mortbay.jetty.servlet.SessionDomain</param-name>
  4812. <param-value>127.0.0.1</param-value>
  4813. </context-param>
  4814. <context-param>
  4815. <param-name>org.mortbay.jetty.servlet.SessionPath</param-name>
  4816. <param-value>/</param-value>
  4817. </context-param>
  4818. <context-param>
  4819. <param-name>org.mortbay.jetty.servlet.MaxAge</param-name>
  4820. <param-value>-1</param-value>
  4821. </context-param>
  4822. -->
  4823. <context-param>
  4824. <param-name>org.mortbay.jetty.webapp.NoTLDJarPattern</param-name>
  4825. <param-value>start.jar|ant-.*\.jar|dojo-.*\.jar|jetty-.*\.jar|jsp-api-.*\.jar|junit-.*\.jar|servlet-api-.*\.jar|dnsns\.jar|rt\.jar|jsse\.jar|tools\.jar|sunpkcs11\.jar|sunjce_provider\.jar|xerces.*\.jar</param-value>
  4826. </context-param>
  4827. <!-- ==================================================================== -->
  4828. <!-- The default servlet. -->
  4829. <!-- This servlet, normally mapped to /, provides the handling for static -->
  4830. <!-- content, OPTIONS and TRACE methods for the context. -->
  4831. <!-- The following initParameters are supported: -->
  4832. <!-- -->
  4833. <!-- acceptRanges If true, range requests and responses are -->
  4834. <!-- supported -->
  4835. <!-- -->
  4836. <!-- dirAllowed If true, directory listings are returned if no -->
  4837. <!-- welcome file is found. Else 403 Forbidden. -->
  4838. <!-- -->
  4839. <!-- redirectWelcome If true, redirect welcome file requests -->
  4840. <!-- else use request dispatcher forwards -->
  4841. <!-- -->
  4842. <!-- gzip If set to true, then static content will be served-->
  4843. <!-- as gzip content encoded if a matching resource is -->
  4844. <!-- found ending with ".gz" -->
  4845. <!-- -->
  4846. <!-- resoureBase Can be set to replace the context resource base -->
  4847. <!-- -->
  4848. <!-- relativeResourceBase -->
  4849. <!-- Set with a pathname relative to the base of the -->
  4850. <!-- servlet context root. Useful for only serving -->
  4851. <!-- static content from only specific subdirectories. -->
  4852. <!-- -->
  4853. <!-- useFileMappedBuffer -->
  4854. <!-- If set to true (the default), a memory mapped -->
  4855. <!-- file buffer will be used to serve static content -->
  4856. <!-- when using an NIO connector. Setting this value -->
  4857. <!-- to false means that a direct buffer will be used -->
  4858. <!-- instead. If you are having trouble with Windows -->
  4859. <!-- file locking, set this to false. -->
  4860. <!-- -->
  4861. <!-- cacheControl If set, all static content will have this value -->
  4862. <!-- set as the cache-control header. -->
  4863. <!-- -->
  4864. <!-- maxCacheSize Maximum size of the static resource cache -->
  4865. <!-- -->
  4866. <!-- maxCachedFileSize Maximum size of any single file in the cache -->
  4867. <!-- -->
  4868. <!-- maxCachedFiles Maximum number of files in the cache -->
  4869. <!-- -->
  4870. <!-- cacheType "nio", "bio" or "both" to determine the type(s) -->
  4871. <!-- of resource cache. A bio cached buffer may be used-->
  4872. <!-- by nio but is not as efficient as a nio buffer. -->
  4873. <!-- An nio cached buffer may not be used by bio. -->
  4874. <!-- -->
  4875. <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  4876. <servlet>
  4877. <servlet-name>default</servlet-name>
  4878. <servlet-class>org.mortbay.jetty.servlet.DefaultServlet</servlet-class>
  4879. <init-param>
  4880. <param-name>acceptRanges</param-name>
  4881. <param-value>true</param-value>
  4882. </init-param>
  4883. <init-param>
  4884. <param-name>dirAllowed</param-name>
  4885. <param-value>true</param-value>
  4886. </init-param>
  4887. <init-param>
  4888. <param-name>redirectWelcome</param-name>
  4889. <param-value>false</param-value>
  4890. </init-param>
  4891. <init-param>
  4892. <param-name>maxCacheSize</param-name>
  4893. <param-value>256000000</param-value>
  4894. </init-param>
  4895. <init-param>
  4896. <param-name>maxCachedFileSize</param-name>
  4897. <param-value>10000000</param-value>
  4898. </init-param>
  4899. <init-param>
  4900. <param-name>maxCachedFiles</param-name>
  4901. <param-value>1000</param-value>
  4902. </init-param>
  4903. <init-param>
  4904. <param-name>cacheType</param-name>
  4905. <param-value>both</param-value>
  4906. </init-param>
  4907. <init-param>
  4908. <param-name>gzip</param-name>
  4909. <param-value>true</param-value>
  4910. </init-param>
  4911. <init-param>
  4912. <param-name>useFileMappedBuffer</param-name>
  4913. <param-value>false</param-value>
  4914. </init-param>
  4915. <!--
  4916. <init-param>
  4917. <param-name>cacheControl</param-name>
  4918. <param-value>max-age=3600,public</param-value>
  4919. </init-param>
  4920. -->
  4921. <load-on-startup>0</load-on-startup>
  4922. </servlet>
  4923. <servlet-mapping> <servlet-name>default</servlet-name> <url-pattern>/</url-pattern> </servlet-mapping>
  4924. <!-- ==================================================================== -->
  4925. <!-- JSP Servlet -->
  4926. <!-- This is the jasper JSP servlet from the jakarta project -->
  4927. <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  4928. <!-- The JSP page compiler and execution servlet, which is the mechanism -->
  4929. <!-- used by Glassfish to support JSP pages. Traditionally, this servlet -->
  4930. <!-- is mapped to URL patterh "*.jsp". This servlet supports the -->
  4931. <!-- following initialization parameters (default values are in square -->
  4932. <!-- brackets): -->
  4933. <!-- -->
  4934. <!-- checkInterval If development is false and reloading is true, -->
  4935. <!-- background compiles are enabled. checkInterval -->
  4936. <!-- is the time in seconds between checks to see -->
  4937. <!-- if a JSP page needs to be recompiled. [300] -->
  4938. <!-- -->
  4939. <!-- compiler Which compiler Ant should use to compile JSP -->
  4940. <!-- pages. See the Ant documenation for more -->
  4941. <!-- information. [javac] -->
  4942. <!-- -->
  4943. <!-- classdebuginfo Should the class file be compiled with -->
  4944. <!-- debugging information? [true] -->
  4945. <!-- -->
  4946. <!-- classpath What class path should I use while compiling -->
  4947. <!-- generated servlets? [Created dynamically -->
  4948. <!-- based on the current web application] -->
  4949. <!-- Set to ? to make the container explicitly set -->
  4950. <!-- this parameter. -->
  4951. <!-- -->
  4952. <!-- development Is Jasper used in development mode (will check -->
  4953. <!-- for JSP modification on every access)? [true] -->
  4954. <!-- -->
  4955. <!-- enablePooling Determines whether tag handler pooling is -->
  4956. <!-- enabled [true] -->
  4957. <!-- -->
  4958. <!-- fork Tell Ant to fork compiles of JSP pages so that -->
  4959. <!-- a separate JVM is used for JSP page compiles -->
  4960. <!-- from the one Tomcat is running in. [true] -->
  4961. <!-- -->
  4962. <!-- ieClassId The class-id value to be sent to Internet -->
  4963. <!-- Explorer when using <jsp:plugin> tags. -->
  4964. <!-- [clsid:8AD9C840-044E-11D1-B3E9-00805F499D93] -->
  4965. <!-- -->
  4966. <!-- javaEncoding Java file encoding to use for generating java -->
  4967. <!-- source files. [UTF-8] -->
  4968. <!-- -->
  4969. <!-- keepgenerated Should we keep the generated Java source code -->
  4970. <!-- for each page instead of deleting it? [true] -->
  4971. <!-- -->
  4972. <!-- logVerbosityLevel The level of detailed messages to be produced -->
  4973. <!-- by this servlet. Increasing levels cause the -->
  4974. <!-- generation of more messages. Valid values are -->
  4975. <!-- FATAL, ERROR, WARNING, INFORMATION, and DEBUG. -->
  4976. <!-- [WARNING] -->
  4977. <!-- -->
  4978. <!-- mappedfile Should we generate static content with one -->
  4979. <!-- print statement per input line, to ease -->
  4980. <!-- debugging? [false] -->
  4981. <!-- -->
  4982. <!-- -->
  4983. <!-- reloading Should Jasper check for modified JSPs? [true] -->
  4984. <!-- -->
  4985. <!-- suppressSmap Should the generation of SMAP info for JSR45 -->
  4986. <!-- debugging be suppressed? [false] -->
  4987. <!-- -->
  4988. <!-- dumpSmap Should the SMAP info for JSR45 debugging be -->
  4989. <!-- dumped to a file? [false] -->
  4990. <!-- False if suppressSmap is true -->
  4991. <!-- -->
  4992. <!-- scratchdir What scratch directory should we use when -->
  4993. <!-- compiling JSP pages? [default work directory -->
  4994. <!-- for the current web application] -->
  4995. <!-- -->
  4996. <!-- tagpoolMaxSize The maximum tag handler pool size [5] -->
  4997. <!-- -->
  4998. <!-- xpoweredBy Determines whether X-Powered-By response -->
  4999. <!-- header is added by generated servlet [false] -->
  5000. <!-- -->
  5001. <!-- If you wish to use Jikes to compile JSP pages: -->
  5002. <!-- Set the init parameter "compiler" to "jikes". Define -->
  5003. <!-- the property "-Dbuild.compiler.emacs=true" when starting Jetty -->
  5004. <!-- to cause Jikes to emit error messages in a format compatible with -->
  5005. <!-- Jasper. -->
  5006. <!-- If you get an error reporting that jikes can't use UTF-8 encoding, -->
  5007. <!-- try setting the init parameter "javaEncoding" to "ISO-8859-1". -->
  5008. <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  5009. <servlet id="jsp">
  5010. <servlet-name>jsp</servlet-name>
  5011. <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
  5012. <init-param>
  5013. <param-name>logVerbosityLevel</param-name>
  5014. <param-value>DEBUG</param-value>
  5015. </init-param>
  5016. <init-param>
  5017. <param-name>fork</param-name>
  5018. <param-value>false</param-value>
  5019. </init-param>
  5020. <init-param>
  5021. <param-name>xpoweredBy</param-name>
  5022. <param-value>false</param-value>
  5023. </init-param>
  5024. <!--
  5025. <init-param>
  5026. <param-name>classpath</param-name>
  5027. <param-value>?</param-value>
  5028. </init-param>
  5029. -->
  5030. <load-on-startup>0</load-on-startup>
  5031. </servlet>
  5032. <servlet-mapping>
  5033. <servlet-name>jsp</servlet-name>
  5034. <url-pattern>*.jsp</url-pattern>
  5035. <url-pattern>*.jspf</url-pattern>
  5036. <url-pattern>*.jspx</url-pattern>
  5037. <url-pattern>*.xsp</url-pattern>
  5038. <url-pattern>*.JSP</url-pattern>
  5039. <url-pattern>*.JSPF</url-pattern>
  5040. <url-pattern>*.JSPX</url-pattern>
  5041. <url-pattern>*.XSP</url-pattern>
  5042. </servlet-mapping>
  5043. <!-- ==================================================================== -->
  5044. <!-- Dynamic Servlet Invoker. -->
  5045. <!-- This servlet invokes anonymous servlets that have not been defined -->
  5046. <!-- in the web.xml or by other means. The first element of the pathInfo -->
  5047. <!-- of a request passed to the envoker is treated as a servlet name for -->
  5048. <!-- an existing servlet, or as a class name of a new servlet. -->
  5049. <!-- This servlet is normally mapped to /servlet/* -->
  5050. <!-- This servlet support the following initParams: -->
  5051. <!-- -->
  5052. <!-- nonContextServlets If false, the invoker can only load -->
  5053. <!-- servlets from the contexts classloader. -->
  5054. <!-- This is false by default and setting this -->
  5055. <!-- to true may have security implications. -->
  5056. <!-- -->
  5057. <!-- verbose If true, log dynamic loads -->
  5058. <!-- -->
  5059. <!-- * All other parameters are copied to the -->
  5060. <!-- each dynamic servlet as init parameters -->
  5061. <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  5062. <!-- Uncomment for dynamic invocation
  5063. <servlet>
  5064. <servlet-name>invoker</servlet-name>
  5065. <servlet-class>org.mortbay.jetty.servlet.Invoker</servlet-class>
  5066. <init-param>
  5067. <param-name>verbose</param-name>
  5068. <param-value>false</param-value>
  5069. </init-param>
  5070. <init-param>
  5071. <param-name>nonContextServlets</param-name>
  5072. <param-value>false</param-value>
  5073. </init-param>
  5074. <init-param>
  5075. <param-name>dynamicParam</param-name>
  5076. <param-value>anyValue</param-value>
  5077. </init-param>
  5078. <load-on-startup>0</load-on-startup>
  5079. </servlet>
  5080. <servlet-mapping> <servlet-name>invoker</servlet-name> <url-pattern>/servlet/*</url-pattern> </servlet-mapping>
  5081. -->
  5082. <!-- ==================================================================== -->
  5083. <session-config>
  5084. <session-timeout>30</session-timeout>
  5085. </session-config>
  5086. <!-- ==================================================================== -->
  5087. <!-- Default MIME mappings -->
  5088. <!-- The default MIME mappings are provided by the mime.properties -->
  5089. <!-- resource in the org.mortbay.jetty.jar file. Additional or modified -->
  5090. <!-- mappings may be specified here -->
  5091. <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  5092. <!-- UNCOMMENT TO ACTIVATE
  5093. <mime-mapping>
  5094. <extension>mysuffix</extension>
  5095. <mime-type>mymime/type</mime-type>
  5096. </mime-mapping>
  5097. -->
  5098. <!-- ==================================================================== -->
  5099. <welcome-file-list>
  5100. <welcome-file>index.jsp</welcome-file>
  5101. </welcome-file-list>
  5102. <!-- ==================================================================== -->
  5103. <locale-encoding-mapping-list>
  5104. <locale-encoding-mapping><locale>ar</locale><encoding>ISO-8859-6</encoding></locale-encoding-mapping>
  5105. <locale-encoding-mapping><locale>be</locale><encoding>ISO-8859-5</encoding></locale-encoding-mapping>
  5106. <locale-encoding-mapping><locale>bg</locale><encoding>ISO-8859-5</encoding></locale-encoding-mapping>
  5107. <locale-encoding-mapping><locale>ca</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
  5108. <locale-encoding-mapping><locale>cs</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping>
  5109. <locale-encoding-mapping><locale>da</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
  5110. <locale-encoding-mapping><locale>de</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
  5111. <locale-encoding-mapping><locale>el</locale><encoding>ISO-8859-7</encoding></locale-encoding-mapping>
  5112. <locale-encoding-mapping><locale>en</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
  5113. <locale-encoding-mapping><locale>es</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
  5114. <locale-encoding-mapping><locale>et</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
  5115. <locale-encoding-mapping><locale>fi</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
  5116. <locale-encoding-mapping><locale>fr</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
  5117. <locale-encoding-mapping><locale>hr</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping>
  5118. <locale-encoding-mapping><locale>hu</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping>
  5119. <locale-encoding-mapping><locale>is</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
  5120. <locale-encoding-mapping><locale>it</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
  5121. <locale-encoding-mapping><locale>iw</locale><encoding>ISO-8859-8</encoding></locale-encoding-mapping>
  5122. <locale-encoding-mapping><locale>ja</locale><encoding>Shift_JIS</encoding></locale-encoding-mapping>
  5123. <locale-encoding-mapping><locale>ko</locale><encoding>EUC-KR</encoding></locale-encoding-mapping>
  5124. <locale-encoding-mapping><locale>lt</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping>
  5125. <locale-encoding-mapping><locale>lv</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping>
  5126. <locale-encoding-mapping><locale>mk</locale><encoding>ISO-8859-5</encoding></locale-encoding-mapping>
  5127. <locale-encoding-mapping><locale>nl</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
  5128. <locale-encoding-mapping><locale>no</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
  5129. <locale-encoding-mapping><locale>pl</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping>
  5130. <locale-encoding-mapping><locale>pt</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
  5131. <locale-encoding-mapping><locale>ro</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping>
  5132. <locale-encoding-mapping><locale>ru</locale><encoding>ISO-8859-5</encoding></locale-encoding-mapping>
  5133. <locale-encoding-mapping><locale>sh</locale><encoding>ISO-8859-5</encoding></locale-encoding-mapping>
  5134. <locale-encoding-mapping><locale>sk</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping>
  5135. <locale-encoding-mapping><locale>sl</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping>
  5136. <locale-encoding-mapping><locale>sq</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping>
  5137. <locale-encoding-mapping><locale>sr</locale><encoding>ISO-8859-5</encoding></locale-encoding-mapping>
  5138. <locale-encoding-mapping><locale>sv</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
  5139. <locale-encoding-mapping><locale>tr</locale><encoding>ISO-8859-9</encoding></locale-encoding-mapping>
  5140. <locale-encoding-mapping><locale>uk</locale><encoding>ISO-8859-5</encoding></locale-encoding-mapping>
  5141. <locale-encoding-mapping><locale>zh</locale><encoding>utf-8</encoding></locale-encoding-mapping>
  5142. <locale-encoding-mapping><locale>zh_TW</locale><encoding>Big5</encoding></locale-encoding-mapping>
  5143. </locale-encoding-mapping-list>
  5144. <security-constraint>
  5145. <web-resource-collection>
  5146. <web-resource-name>Disable TRACE</web-resource-name>
  5147. <url-pattern>/</url-pattern>
  5148. <http-method>TRACE</http-method>
  5149. </web-resource-collection>
  5150. <auth-constraint/>
  5151. </security-constraint>
  5152. </web-app>
  5153. <?xml version="1.0" encoding="UTF-8"?>
  5154. <beans xmlns="http://www.springframework.org/schema/beans"
  5155. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"
  5156. xmlns:aop="http://www.springframework.org/schema/aop" xmlns:tx="http://www.springframework.org/schema/tx"
  5157. xmlns:context="http://www.springframework.org/schema/context"
  5158. xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
  5159. http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd
  5160. http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
  5161. http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd">
  5162. <aop:aspectj-autoproxy />
  5163. <context:component-scan base-package="com.upbest.web"></context:component-scan>
  5164. <bean id="propertyConfigurer"
  5165. class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"
  5166. p:location="classpath:conf/application.properties" />
  5167. <bean id="dataSource" class="com.alibaba.druid.pool.DruidDataSource"
  5168. destroy-method="close">
  5169. <property name="driverClassName" value="${jdbc.driverClassName}" />
  5170. <property name="url" value="${jdbc.url}" />
  5171. <property name="username" value="${jdbc.username}" />
  5172. <property name="password" value="${jdbc.password}" />
  5173. <!-- 配置初始化大小、最小、最大 -->
  5174. <property name="initialSize" value="10" />
  5175. <property name="minIdle" value="10" />
  5176. <property name="maxActive" value="100" />
  5177. <!-- 配置获取连接等待超时的时间 -->
  5178. <property name="maxWait" value="60000" />
  5179. <!-- 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒 -->
  5180. <property name="timeBetweenEvictionRunsMillis" value="60000" />
  5181. <!-- 配置一个连接在池中最小生存的时间,单位是毫秒 -->
  5182. <property name="minEvictableIdleTimeMillis" value="300000" />
  5183. <property name="validationQuery" value="SELECT 'x'" />
  5184. <property name="testWhileIdle" value="true" />
  5185. <property name="testOnBorrow" value="false" />
  5186. <property name="testOnReturn" value="false" />
  5187. <!-- 配置监控统计拦截的filters -->
  5188. <property name="filters" value="stat" />
  5189. </bean>
  5190. <bean id="sessionFactory"
  5191. class="org.mybatis.spring.SqlSessionFactoryBean"
  5192. p:dataSource-ref="dataSource"
  5193. p:typeAliasesPackage="com.upbest.agc.model"
  5194. p:mapperLocations="classpath:mybatis/com/upbest/persistence/*.xml"/>
  5195. <bean class="org.mybatis.spring.mapper.MapperScannerConfigurer">
  5196. <property name="basePackage" value="com.upbest.persistence" />
  5197. </bean>
  5198. <bean id="transactionManager"
  5199. class="org.springframework.jdbc.datasource.DataSourceTransactionManager"
  5200. p:dataSource-ref="dataSource" />
  5201. <!-- <tx:annotation-driven transaction-manager="transactionManager" /> -->
  5202. <tx:advice id="txAdvice" transaction-manager="transactionManager">
  5203. <tx:attributes>
  5204. <tx:method name="add*" propagation="REQUIRED" />
  5205. <tx:method name="save*" propagation="REQUIRED" />
  5206. <tx:method name="insert*" propagation="REQUIRED" />
  5207. <tx:method name="del*" propagation="REQUIRED" />
  5208. <tx:method name="update*" propagation="REQUIRED" />
  5209. <tx:method name="modify*" propagation="REQUIRED" />
  5210. <tx:method name="main*" propagation="REQUIRED" />
  5211. <!-- <tx:method name="*" read-only="true" /> -->
  5212. </tx:attributes>
  5213. </tx:advice>
  5214. <aop:config>
  5215. <aop:pointcut id="myPoint"
  5216. expression=" execution(* com.upbest.service.*.*(..)) " />
  5217. <aop:advisor advice-ref="txAdvice" pointcut-ref="myPoint"/>
  5218. </aop:config>
  5219. </beans>
  5220. <?xml version="1.0" encoding="UTF-8"?>
  5221. <beans:beans xmlns="http://www.springframework.org/schema/mvc"
  5222. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:beans="http://www.springframework.org/schema/beans"
  5223. xmlns:context="http://www.springframework.org/schema/context" xmlns:p="http://www.springframework.org/schema/p"
  5224. xmlns:mvc="http://www.springframework.org/schema/mvc"
  5225. xsi:schemaLocation="http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd
  5226. http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
  5227. http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">
  5228. <!-- DispatcherServlet Context: defines this servlet's request-processing
  5229. infrastructure -->
  5230. <!-- Enables the Spring MVC @Controller programming model-->
  5231. <annotation-driven />
  5232. <!-- Handles HTTP GET requests for /resources/** by efficiently serving
  5233. up static resources in the ${webappRoot}/resources directory -->
  5234. <resources mapping="/css/**" location="/css/" />
  5235. <resources mapping="/images/**" location="/images/" />
  5236. <resources mapping="/js/**" location="/js/" />
  5237. <!-- Resolves views selected for rendering by @Controllers to .jsp resources
  5238. in the /WEB-INF/views directory -->
  5239. <beans:bean
  5240. class="org.springframework.web.servlet.view.InternalResourceViewResolver">
  5241. <beans:property name="prefix" value="/WEB-INF/views/" />
  5242. <beans:property name="suffix" value=".jsp" />
  5243. </beans:bean>
  5244. <context:component-scan base-package="com.upbest.agc" />
  5245. <beans:bean id="multipartResolver"
  5246. class="org.springframework.web.multipart.commons.CommonsMultipartResolver"
  5247. p:defaultEncoding="utf-8" p:maxUploadSize="1000000" />
  5248. <!-- 拦截器 -->
  5249. <mvc:interceptors>
  5250. <mvc:interceptor>
  5251. <mvc:mapping path="/**" />
  5252. <beans:bean class="com.upbest.intercepter.SecurityInterceptor">
  5253. <!-- 不需要权限验证的地址 -->
  5254. <beans:property name="excludeUrls">
  5255. <beans:list>
  5256. <beans:value>/login</beans:value>
  5257. <beans:value>/</beans:value><!-- 初始化数据库 -->
  5258. </beans:list>
  5259. </beans:property>
  5260. </beans:bean>
  5261. </mvc:interceptor>
  5262. </mvc:interceptors>
  5263. </beans:beans>
  5264. <?xml version="1.0" encoding="UTF-8"?>
  5265. <!DOCTYPE log4j:configuration PUBLIC "-//APACHE//DTD LOG4J 1.2//EN" "log4j.dtd">
  5266. <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
  5267. <!-- Appenders -->
  5268. <appender name="console" class="org.apache.log4j.ConsoleAppender">
  5269. <param name="Target" value="System.out" />
  5270. <layout class="org.apache.log4j.PatternLayout">
  5271. <param name="ConversionPattern" value="%-5p: %c - %m%n" />
  5272. </layout>
  5273. </appender>
  5274. <appender name="file" class="org.apache.log4j.DailyRollingFileAppender">
  5275. <param name="File" value="../logs/lygmonitor.log" />
  5276. <param name="DatePattern" value="'.'yyyy-MM-dd'.log'" />
  5277. <param name="Append" value="true" />
  5278. <layout class="org.apache.log4j.PatternLayout">
  5279. <param name="ConversionPattern"
  5280. value="[%d{MMdd HH:mm:ss SSS\} %-5p] [%t] %c{3\} - %m%n" />
  5281. </layout>
  5282. </appender>
  5283. <!-- Application Loggers -->
  5284. <logger name="com.upbest.intercepter">
  5285. <level value="error" />
  5286. </logger>
  5287. <logger name="com.upbest.persistence.UploadOperateRecordMapper">
  5288. <level value="error" />
  5289. </logger>
  5290. <logger name="com.upbest.persistence">
  5291. <level value="debug" />
  5292. </logger>
  5293. <!-- 3rdparty Loggers -->
  5294. <logger name="org.springframework">
  5295. <level value="error" />
  5296. </logger>
  5297. <logger name="org.mybatis">
  5298. <level value="error" />
  5299. </logger>
  5300. <logger name="org.apache.ibatis">
  5301. <level value="error" />
  5302. </logger>
  5303. <logger name="com.google.code.yanf4j">
  5304. <level value="error" />
  5305. </logger>
  5306. <logger name="net.rubyeye.xmemcached">
  5307. <level value="error" />
  5308. </logger>
  5309. <!-- Root Logger -->
  5310. <root>
  5311. <priority value="error" />
  5312. <appender-ref ref="console" />
  5313. <appender-ref ref="file" />
  5314. </root>
  5315. </log4j:configuration>