8f9865a924167892fa2c51715ca012e6bc7fdebe.svn-base 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957
  1. $(function() {
  2. BWA.ChartOptions = BWA.ChartOptions || {};
  3. BWA.ChartOptions.IceStoreAirAnalysis = BWA.ChartOptions.IceStoreAirAnalysis || {};
  4. BWA.ChartOptions.IceStoreAirAnalysis.getChartCOPOptions = function (codeTimeType) {
  5. return {
  6. palette: "Ocean",
  7. legend: {
  8. visible: true,
  9. verticalAlignment: 'top',
  10. horizontalAlignment: 'center'
  11. },
  12. //argumentAxis: BWA.Chart.getTimeLineArgumentAxis(null, codeTimeType),
  13. commonSeriesSettings: {
  14. argumentField: "DateTime",
  15. selectionStyle: {
  16. hatching: {
  17. direction: "left"
  18. }
  19. }
  20. },
  21. valueAxis: [{
  22. label: {
  23. visible: true,
  24. },
  25. title: {
  26. text: '냉열원 시스템 COP'
  27. }
  28. },
  29. {
  30. name: 'elec', //
  31. position: 'right',
  32. label: {
  33. visible: true,
  34. },
  35. title: {
  36. text: '소비전력량 (kwh)'
  37. }
  38. },
  39. /* {
  40. name: 'cold_av', //
  41. position: 'right',
  42. label: {
  43. visible: true,
  44. },
  45. title: {
  46. text: '냉동능력 kcal/h'
  47. }
  48. }*/ // 2016 02 29 대구은행버젼에서 제외
  49. ],
  50. series: [{
  51. type: 'bar',
  52. name: '냉열원 시스템 COP',
  53. argumentField: "DateTime",
  54. valueField: 'cop', //
  55. label: {
  56. visible: false,
  57. },
  58. point: { size: 8 }
  59. }, {
  60. axis: 'elec',
  61. type: 'spline',
  62. name: '소비 전력',
  63. argumentField: "DateTime",
  64. valueField: 'elec', //
  65. label: {
  66. visible: false,
  67. },
  68. point: { size: 8 },
  69. },
  70. /* {
  71. axis: 'cold_av',
  72. name: '냉동능력',
  73. type: 'scatter',
  74. valueField: 'cold_av',
  75. point: { size: 8, symbol: 'triangle' },
  76. label: {
  77. visible: false,
  78. }
  79. }*/ // 2016 02 29
  80. ],
  81. tooltip: {
  82. enabled: true,
  83. },
  84. crosshair: {
  85. enabled: true,
  86. width: 2,
  87. horizontalLine: {
  88. color: 'black',
  89. dashStyle: 'dash',
  90. visible: false
  91. },
  92. verticalLine: {
  93. color: 'black',
  94. dashStyle: 'dash',
  95. visible: true
  96. },
  97. label: {
  98. visible: true,
  99. backgroundColor: "#949494",
  100. font: {
  101. color: "#fff",
  102. size: 12,
  103. }
  104. }
  105. }
  106. };
  107. };
  108. BWA.ChartOptions.IceStoreAirAnalysis.getChartCOPOptions2 = function (codeTimeType) {
  109. return {
  110. palette: "Dafult",
  111. legend: {
  112. visible: true,
  113. verticalAlignment: 'top',
  114. horizontalAlignment: 'center'
  115. },
  116. //argumentAxis: BWA.Chart.getTimeLineArgumentAxis(null, codeTimeType),
  117. commonSeriesSettings: {
  118. argumentField: "DateTime",
  119. selectionStyle: {
  120. hatching: {
  121. direction: "left"
  122. }
  123. }
  124. },
  125. valueAxis: [{
  126. label: {
  127. visible: true,
  128. },
  129. title: {
  130. text: '냉동기 COP'
  131. }
  132. },
  133. {
  134. name: 'kcal', //
  135. position: 'right',
  136. label: {
  137. visible: true,
  138. },
  139. title: {
  140. text: '축열량 (%)'
  141. }
  142. },
  143. ],
  144. series: [
  145. {
  146. axis: 'kcal',
  147. type: 'bar',
  148. name: '축열량',
  149. argumentField: "DateTime",
  150. valueField: 'kcal', //
  151. label: {
  152. visible: false,
  153. },
  154. point: { size: 8 },
  155. },
  156. {
  157. name: '냉동기1',
  158. type:'spline',
  159. argumentField: "DateTime",
  160. valueField: 'cop1', //
  161. label: {
  162. visible: false,
  163. },
  164. point: { size: 8 }
  165. },
  166. {
  167. name: '냉동기2',
  168. argumentField: "DateTime",
  169. valueField: 'cop2', //
  170. label: {
  171. visible: false,
  172. },
  173. point: { size: 8 }
  174. },
  175. ],
  176. tooltip: {
  177. enabled: true,
  178. },
  179. crosshair: {
  180. enabled: true,
  181. width: 2,
  182. horizontalLine: {
  183. color: 'black',
  184. dashStyle: 'dash',
  185. visible: false
  186. },
  187. verticalLine: {
  188. color: 'black',
  189. dashStyle: 'dash',
  190. visible: true
  191. },
  192. label: {
  193. visible: true,
  194. backgroundColor: "#949494",
  195. font: {
  196. color: "#fff",
  197. size: 12,
  198. }
  199. }
  200. }
  201. };
  202. };
  203. BWA.ChartOptions.IceStoreAirAnalysis.getChartKCALoutOptions = function (codeTimeType) {
  204. return {
  205. palette: "Default",
  206. legend: {
  207. visible: true,
  208. verticalAlignment: 'top',
  209. horizontalAlignment: 'center'
  210. },
  211. //argumentAxis: BWA.Chart.getTimeLineArgumentAxis(null, codeTimeType),
  212. commonSeriesSettings: {
  213. argumentField: "DateTime",
  214. selectionStyle: {
  215. hatching: {
  216. direction: "left"
  217. }
  218. }
  219. },
  220. valueAxis: {
  221. label: {
  222. visible: true,
  223. },
  224. title: {
  225. //text: 'COP'
  226. text: '축열량 (%)'
  227. }
  228. },
  229. series: {
  230. type: 'bar',
  231. name: '축열량',
  232. type:'bar',
  233. argumentField: "DateTime",
  234. valueField: 'kcal', //
  235. label: {
  236. visible: false,
  237. },
  238. point: { size: 8 }
  239. },
  240. tooltip: {
  241. enabled: true,
  242. },
  243. crosshair: {
  244. enabled: true,
  245. width: 2,
  246. horizontalLine: {
  247. color: 'black',
  248. dashStyle: 'dash',
  249. visible: true
  250. },
  251. verticalLine: {
  252. color: 'black',
  253. dashStyle: 'dash',
  254. visible: true
  255. },
  256. label: {
  257. visible: true,
  258. backgroundColor: "#949494",
  259. font: {
  260. color: "#fff",
  261. size: 12,
  262. }
  263. }
  264. }
  265. };
  266. };
  267. BWA.ChartOptions.IceStoreAirAnalysis.getChartCOPoutOptions = function (codeTimeType) {
  268. return {
  269. palette: "Default",
  270. legend: {
  271. visible: true,
  272. verticalAlignment: 'top',
  273. horizontalAlignment: 'center'
  274. },
  275. //argumentAxis: BWA.Chart.getTimeLineArgumentAxis(null, codeTimeType),
  276. commonSeriesSettings: {
  277. argumentField: "DateTime",
  278. selectionStyle: {
  279. hatching: {
  280. direction: "left"
  281. }
  282. }
  283. },
  284. valueAxis: {
  285. label: {
  286. visible: true,
  287. },
  288. title: {
  289. //text: 'COP'
  290. text: '축열량'
  291. }
  292. },
  293. series: {
  294. name: 'COP',
  295. argumentField: "DateTime",
  296. valueField: 'cop', //
  297. label: {
  298. visible: false,
  299. },
  300. point: { size: 8 }
  301. },
  302. tooltip: {
  303. enabled: true,
  304. },
  305. crosshair: {
  306. enabled: true,
  307. width: 2,
  308. horizontalLine: {
  309. color: 'black',
  310. dashStyle: 'dash',
  311. visible: false
  312. },
  313. verticalLine: {
  314. color: 'black',
  315. dashStyle: 'dash',
  316. visible: true
  317. },
  318. label: {
  319. visible: true,
  320. backgroundColor: "#949494",
  321. font: {
  322. color: "#fff",
  323. size: 12,
  324. }
  325. }
  326. }
  327. };
  328. };
  329. BWA.ChartOptions.IceStoreAirAnalysis.getChartStoreLoadOptions = function (codeTimeType) {
  330. return {
  331. palette: "Dafult",
  332. legend: {
  333. visible: true,
  334. verticalAlignment: 'top',
  335. horizontalAlignment: 'center'
  336. },
  337. argumentAxis: {
  338. //max: 100,
  339. //min: 0,
  340. title: {
  341. text: '축열량 (%)'
  342. }
  343. },
  344. valueAxis: {
  345. title: {
  346. text: '부하율 (%)'
  347. }
  348. },
  349. series: [{
  350. name: '냉동기1',
  351. type: 'scatter',
  352. valueField: 'load1', // 부하율
  353. argumentField: 'kcal', // 축열량
  354. label: {
  355. visible: false,
  356. //customizeText: function() {
  357. // return this.argumentField + this.valueText;
  358. //}
  359. },
  360. point: { size: 8 }
  361. },
  362. {
  363. name: '냉동기2',
  364. type: 'scatter',
  365. valueField: 'load2', // 부하율
  366. argumentField: 'kcal', // 축열량
  367. label: {
  368. visible: false,
  369. //customizeText: function() {
  370. // return this.argumentField + this.valueText;
  371. //}
  372. },
  373. point: { size: 8 }
  374. },
  375. ],
  376. tooltip: {
  377. enabled: true,
  378. },
  379. crosshair: {
  380. enabled: true,
  381. width: 2,
  382. horizontalLine: {
  383. color: 'black',
  384. dashStyle: 'dash',
  385. visible: false
  386. },
  387. verticalLine: {
  388. color: 'black',
  389. dashStyle: 'dash',
  390. visible: true
  391. },
  392. label: {
  393. visible: true,
  394. backgroundColor: "#949494",
  395. font: {
  396. color: "#fff",
  397. size: 12,
  398. }
  399. }
  400. }
  401. };
  402. };
  403. BWA.ChartOptions.IceStoreAirAnalysis.getChartCOPLoadOptions = function (codeTimeType) {
  404. return {
  405. palette: "Bright",
  406. legend: {
  407. visible: false,
  408. verticalAlignment: 'top',
  409. horizontalAlignment: 'center'
  410. },
  411. argumentAxis: {
  412. //max: 100,
  413. //min: 0,
  414. title: {
  415. text: 'COP'
  416. }
  417. },
  418. valueAxis: {
  419. title: {
  420. text: '부하율 (%)'
  421. }
  422. },
  423. series: {
  424. type: 'scatter',
  425. valueField: 'load', // 부하율
  426. argumentField: 'cop', // COP
  427. label: {
  428. visible: false,
  429. //customizeText: function() {
  430. // return this.argumentField + this.valueText;
  431. //}
  432. },
  433. point: { size: 8 }
  434. },
  435. tooltip: {
  436. enabled: true,
  437. },
  438. crosshair: {
  439. enabled: true,
  440. width: 2,
  441. horizontalLine: {
  442. color: 'black',
  443. dashStyle: 'dash',
  444. visible: false
  445. },
  446. verticalLine: {
  447. color: 'black',
  448. dashStyle: 'dash',
  449. visible: true
  450. },
  451. label: {
  452. visible: true,
  453. backgroundColor: "#949494",
  454. font: {
  455. color: "#fff",
  456. size: 12,
  457. }
  458. }
  459. }
  460. };
  461. };
  462. BWA.ChartOptions.IceStoreAirAnalysis.getChartColdCOPOptions = function (codeTimeType) {
  463. return {
  464. palette: "Ocean",
  465. legend: {
  466. visible: true,
  467. verticalAlignment: 'top',
  468. horizontalAlignment: 'center'
  469. },
  470. //argumentAxis: BWA.Chart.getTimeLineArgumentAxis(null, codeTimeType),
  471. commonSeriesSettings: {
  472. argumentField: "DateTime",
  473. selectionStyle: {
  474. hatching: {
  475. direction: "left"
  476. }
  477. }
  478. },
  479. valueAxis: [{
  480. label: {
  481. visible: true,
  482. },
  483. title: {
  484. text: '냉각수 입구온도 (°C)'
  485. }
  486. },
  487. {
  488. name: 'COP', //
  489. position: 'right',
  490. label: {
  491. visible: true,
  492. },
  493. title: {
  494. text: 'COP'
  495. }
  496. },
  497. {
  498. name: 'load', //
  499. position: 'right',
  500. label: {
  501. visible: true,
  502. },
  503. title: {
  504. text: '부하율 (%)'
  505. }
  506. }
  507. ],
  508. series: [{
  509. name: '냉각수 입구온도',
  510. argumentField: "DateTime",
  511. valueField: 'temp', //
  512. label: {
  513. visible: false,
  514. },
  515. point: { size: 8 }
  516. }, {
  517. axis: 'COP',
  518. type: 'scatter',
  519. name: 'COP',
  520. argumentField: "DateTime",
  521. valueField: 'cop', //
  522. label: {
  523. visible: false,
  524. },
  525. point: { size: 8 },
  526. },
  527. {
  528. axis: 'load',
  529. name: '부하율',
  530. type: 'scatter',
  531. valueField: 'load',
  532. point: { size: 8, symbol: 'triangle' },
  533. label: {
  534. visible: false,
  535. }
  536. }],
  537. tooltip: {
  538. enabled: true,
  539. },
  540. crosshair: {
  541. enabled: true,
  542. width: 2,
  543. horizontalLine: {
  544. color: 'black',
  545. dashStyle: 'dash',
  546. visible: false
  547. },
  548. verticalLine: {
  549. color: 'black',
  550. dashStyle: 'dash',
  551. visible: true
  552. },
  553. label: {
  554. visible: true,
  555. backgroundColor: "#949494",
  556. font: {
  557. color: "#fff",
  558. size: 12,
  559. }
  560. }
  561. }
  562. };
  563. };
  564. BWA.ChartOptions.IceStoreAirAnalysis.getChartKCALOptions = function (codeTimeType) {
  565. return {
  566. palette: "S",
  567. legend: {
  568. visible: true,
  569. verticalAlignment: 'top',
  570. horizontalAlignment: 'center'
  571. },
  572. //argumentAxis: BWA.Chart.getTimeLineArgumentAxis(null, codeTimeType),
  573. commonSeriesSettings: {
  574. argumentField: "DateTime",
  575. selectionStyle: {
  576. hatching: {
  577. direction: "left"
  578. }
  579. }
  580. },
  581. valueAxis: [
  582. {
  583. name: 'cold_kcal', //
  584. position: 'left',
  585. label: {
  586. visible: true,
  587. },
  588. title: {
  589. text: '냉수열량 (kcal)'
  590. }
  591. },
  592. {
  593. name: 'vline_kcal', //
  594. position: 'right',
  595. label: {
  596. visible: true,
  597. },
  598. title: {
  599. text: '브라인열량 (kcal)'
  600. }
  601. }
  602. ],
  603. series: [
  604. {
  605. axis: 'cold_kcal',
  606. type: 'line',
  607. name: '냉수열량',
  608. argumentField: "DateTime",
  609. valueField: 'cold_kcal', //
  610. label: {
  611. visible: false,
  612. },
  613. point: { size: 8 },
  614. },
  615. {
  616. axis: 'vline_kcal',
  617. name: '브라인열량',
  618. type: 'line',
  619. valueField: 'vline_kcal',
  620. point: { size: 8, },
  621. label: {
  622. visible: false,
  623. }
  624. }],
  625. tooltip: {
  626. enabled: true,
  627. },
  628. crosshair: {
  629. enabled: true,
  630. width: 2,
  631. horizontalLine: {
  632. color: 'black',
  633. dashStyle: 'dash',
  634. visible: false
  635. },
  636. verticalLine: {
  637. color: 'black',
  638. dashStyle: 'dash',
  639. visible: true
  640. },
  641. label: {
  642. visible: true,
  643. backgroundColor: "#949494",
  644. font: {
  645. color: "#fff",
  646. size: 12,
  647. }
  648. }
  649. }
  650. };
  651. };
  652. BWA.ChartOptions.IceStoreAirAnalysis.getChartEffiOptions = function (codeTimeType) {
  653. return {
  654. palette: "Bright",
  655. legend: {
  656. visible: true,
  657. verticalAlignment: 'top',
  658. horizontalAlignment: 'center'
  659. },
  660. //argumentAxis: BWA.Chart.getTimeLineArgumentAxis(null, codeTimeType),
  661. commonSeriesSettings: {
  662. argumentField: "DateTime",
  663. selectionStyle: {
  664. hatching: {
  665. direction: "left"
  666. }
  667. }
  668. },
  669. valueAxis: [
  670. {
  671. name: 'effi', //
  672. position: 'left',
  673. label: {
  674. //font: { color: '#c96374' },
  675. visible: true,
  676. },
  677. title: {
  678. text: '효율 (%)'
  679. }
  680. },
  681. {
  682. name: 'sw', //
  683. position: 'right',
  684. label: {
  685. visible: true,
  686. },
  687. title: {
  688. text: '보급수 유량 (m3/h)'
  689. }
  690. }
  691. ],
  692. series: [{
  693. name: '효율',
  694. axis: 'effi',
  695. argumentField: "DateTime",
  696. valueField: 'effi', //
  697. label: {
  698. visible: false,
  699. },
  700. //point: { size: 8 }
  701. }, {
  702. axis: 'sw',
  703. type: 'bar',
  704. name: '보급수 유량',
  705. argumentField: "DateTime",
  706. valueField: 'sw', //
  707. label: {
  708. visible: false,
  709. },
  710. //point: { size: 4 },
  711. },
  712. ],
  713. tooltip: {
  714. enabled: true,
  715. },
  716. crosshair: {
  717. enabled: true,
  718. width: 2,
  719. horizontalLine: {
  720. color: 'black',
  721. dashStyle: 'dash',
  722. visible: false
  723. },
  724. verticalLine: {
  725. color: 'black',
  726. dashStyle: 'dash',
  727. visible: true
  728. },
  729. label: {
  730. visible: true,
  731. backgroundColor: "#949494",
  732. font: {
  733. color: "#fff",
  734. size: 12,
  735. }
  736. }
  737. }
  738. };
  739. };
  740. BWA.ChartOptions.IceStoreAirAnalysis.getChartApprochOptions = function (codeTimeType) {
  741. return {
  742. palette: "Default",
  743. legend: {
  744. visible: true,
  745. verticalAlignment: 'top',
  746. horizontalAlignment: 'center'
  747. },
  748. //argumentAxis: BWA.Chart.getTimeLineArgumentAxis(null, codeTimeType),
  749. commonSeriesSettings: {
  750. argumentField: "DateTime",
  751. selectionStyle: {
  752. hatching: {
  753. direction: "left"
  754. }
  755. }
  756. },
  757. valueAxis: [
  758. {
  759. name: 'approch', //
  760. position: 'left',
  761. label: {
  762. //font: { color: '#c96374' },
  763. visible: true,
  764. },
  765. title: {
  766. text: '어프로치'
  767. }
  768. },
  769. {
  770. name: 'h_temp', //
  771. position: 'left',
  772. label: {
  773. //font: { color: '#c96374' },
  774. visible: true,
  775. },
  776. title: {
  777. text: '습구 온도 (°C)'
  778. }
  779. },
  780. {
  781. name: 'in_temp', //
  782. position: 'right',
  783. label: {
  784. visible: true,
  785. },
  786. title: {
  787. text: '냉각수 입구온도 (°C)'
  788. }
  789. },
  790. {
  791. name: 'out_temp', //
  792. position: 'right',
  793. label: {
  794. //font: { color: '#c96374' },
  795. visible: true,
  796. },
  797. title: {
  798. text: '냉각수 출구온도 (°C)'
  799. }
  800. },
  801. ],
  802. series: [
  803. {
  804. axis: 'h_temp',
  805. type: 'scatter',
  806. name: '습구온도',
  807. argumentField: "DateTime",
  808. valueField: 'h_temp', //
  809. label: {
  810. visible: false,
  811. },
  812. point: { size: 8 },
  813. },
  814. {
  815. axis: 'in_temp',
  816. name: '냉각수 입구온도',
  817. type: 'scatter',
  818. valueField: 'in_temp',
  819. point: { size: 8, symbol: 'square' },
  820. //name: '외기 온도',
  821. label: {
  822. //font: { color: '#c96374', },
  823. visible: false,
  824. }
  825. },
  826. {
  827. axis: 'out_temp',
  828. name: '냉각수 출구온도',
  829. type: 'scatter',
  830. valueField: 'out_temp',
  831. point: { size: 8, symbol: 'triangle' },
  832. //name: '외기 온도',
  833. label: {
  834. //font: { color: '#c96374', },
  835. visible: false,
  836. }
  837. },
  838. {
  839. axis: 'approch',
  840. type: 'line',
  841. name: '어프로치',
  842. argumentField: "DateTime",
  843. valueField: 'approch', //
  844. label: {
  845. visible: false,
  846. },
  847. point: { size: 8 },
  848. }
  849. ],
  850. tooltip: {
  851. enabled: true,
  852. },
  853. crosshair: {
  854. enabled: true,
  855. width: 2,
  856. horizontalLine: {
  857. color: 'black',
  858. dashStyle: 'dash',
  859. visible: false
  860. },
  861. verticalLine: {
  862. color: 'black',
  863. dashStyle: 'dash',
  864. visible: true
  865. },
  866. label: {
  867. visible: true,
  868. backgroundColor: "#949494",
  869. font: {
  870. color: "#fff",
  871. size: 12,
  872. }
  873. }
  874. }
  875. };
  876. };
  877. });