| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196 | 
							- $(function() {
 
-     BWA.ChartOptions = BWA.ChartOptions || {};
 
-     BWA.ChartOptions.FacilityRuntime = BWA.ChartOptions.FacilityRuntime || {};
 
-     BWA.ChartOptions.FacilityRuntime.getChartDayOptions = function (codeTimeType) {
 
-         return {
 
-             palette: "Bright",
 
-             legend: {
 
-                 visible: true,
 
-                 verticalAlignment: 'top',
 
-                 horizontalAlignment: 'center'
 
-             },
 
-             //argumentAxis: BWA.Chart.getTimeLineArgumentAxis(null, codeTimeType),
 
-             commonSeriesSettings: {
 
-                 argumentField: "DateTime",
 
-                 selectionStyle: {
 
-                     hatching: {
 
-                         direction: "left"
 
-                     }
 
-                 }
 
-             },
 
-             valueAxis: [
 
-             {
 
-                 name: 'runtime', // 
 
-                 //position: 'right',
 
-                 label: {
 
-                     //font: { color: '#c96374' },
 
-                     visible: true,
 
-                 },
 
-                 title: {
 
-                     
 
-                     text: '가동시간   (분)'
 
-                 }
 
-             },
 
-             {
 
-                 name: 'cost', // 
 
-                 position: 'right',
 
-                 label: {
 
-                     //font: { color: '#c96374' },
 
-                     visible: true,
 
-                 },
 
-                 title: {
 
-                     text: '비용 (원)'
 
-                 }
 
-             }
 
-             ],
 
-             series: [
 
-             {
 
-                 axis: 'runtime',
 
-                 type: 'bar',
 
-                 name: '가동시간',
 
-                 argumentField: "DateTime",
 
-                 valueField: 'rt', // 
 
-                 label: {
 
-                     visible: false,
 
-                 },
 
-                 point: { size: 8  },
 
-             },
 
-             {
 
-                 axis: 'cost',
 
-                 type: 'spline',
 
-                 name: '비용',
 
-                 argumentField: "DateTime",
 
-                 valueField: 'cost', // 
 
-                 label: {
 
-                     visible: false,
 
-                 },
 
-                 point: { size: 8 },
 
-             },
 
-             ],
 
-             tooltip: {
 
-                 enabled: true,
 
-             },
 
-         };
 
-     };
 
-     BWA.ChartOptions.FacilityRuntime.getChartMonthOptions = function (codeTimeType, handlePointClick) {
 
- /*        var argumentAxis;
 
-         switch (codeTimeType) {
 
-             case $Code.TimeType.DAY:
 
-                 argumentAxis = {
 
-                     label: {
 
-                         customizeText: function () {
 
-                             return this.value + '일';
 
-                         }
 
-                     },
 
-                     //min: moment().startOf('month').date(),
 
-                     //max: moment().endOf('month').date(),
 
-                     //valueMarginsEnabled: false,
 
-                     tickInterval: 5,
 
-                     //minValueMargin: 0.0,
 
-                     //maxValueMargin: 0.02,
 
-                 };
 
-                 break;
 
-             case $Code.TimeType.MONTH:
 
-                 argumentAxis = {
 
-                     label: {
 
-                         customizeText: function () {
 
-                             return this.value + '월';
 
-                         }
 
-                     },
 
-                     //min: 1,
 
-                     //max: 12,
 
-                     //valueMarginsEnabled: false,
 
-                     //tickInterval: 1,
 
-                     //minValueMargin: 0.0,
 
-                     //maxValueMargin: 0.02,
 
-                 };
 
-                 break;
 
-         }
 
-         argumentAxis.argumentType = 'string';*/
 
-         return {
 
-             palette: "Palette",
 
-             pointClick: handlePointClick,
 
-             legend: {
 
-                 visible: true,
 
-                 verticalAlignment: 'top',
 
-                 horizontalAlignment: 'center'
 
-             },
 
-             //argumentAxis: BWA.Chart.getTimeLineArgumentAxis(null, codeTimeType),
 
-             //argumentAxis: argumentAxis,
 
-             commonSeriesSettings: {
 
-                 argumentField: "DateTime",
 
-                 selectionStyle: {
 
-                     hatching: {
 
-                         direction: "left"
 
-                     }
 
-                 }
 
-             },
 
-             valueAxis: [
 
-             {
 
-                 name: 'runtime', // 
 
-                 //position: 'right',
 
-                 label: {
 
-                     //font: { color: '#c96374' },
 
-                     visible: true,
 
-                 },
 
-                 title: {
 
-                     text: '가동시간   (분)'
 
-                 }
 
-             },
 
-             {
 
-                 name: 'cost', // 
 
-                 position: 'right',
 
-                 label: {
 
-                     //font: { color: '#c96374' },
 
-                     visible: true,
 
-                 },
 
-                 title: {
 
-                     text: '비용 (원)'
 
-                 }
 
-             }
 
-             ],
 
-             series: [
 
-             {
 
-                 axis: 'runtime',
 
-                 type: 'bar',
 
-                 name: '가동시간',
 
-                 argumentField: "DateTime",
 
-                 valueField: 'rt', // 
 
-                 label: {
 
-                     visible: false,
 
-                 },
 
-                 point: { size: 8 },
 
-             },
 
-             {
 
-                 axis: 'cost',
 
-                 type: 'spline',
 
-                 name: '비용',
 
-                 argumentField: "DateTime",
 
-                 valueField: 'cost', // 
 
-                 label: {
 
-                     visible: false,
 
-                 },
 
-                 point: { size: 8 },
 
-             },
 
-             ],
 
-             tooltip: {
 
-                 enabled: true,
 
-             },
 
-         };
 
-     };
 
- });
 
 
  |