ソースを参照

수요예측현황

whakdo963 2 年 前
コミット
1427481da5
共有2 個のファイルを変更した56 個の追加2 個の削除を含む
  1. 2 2
      src/main/webapp/app/stockmng/STOCKMNG07010.html
  2. 54 0
      src/main/webapp/js/app/stockmng/ITP_STOCKMNG07010.js

+ 2 - 2
src/main/webapp/app/stockmng/STOCKMNG07010.html

@@ -66,8 +66,8 @@
66 66
 				                	<label>※ 수요예측은 조회하는 일자의 월 포함 3개월에 대한 조회입니다.</label>
67 67
 				                </div>
68 68
 				                <div id="ITP_CONTAINER_GRAPH_AREA">
69
-									<div id="ITP_PCH_REQ_GRAPH" class="itp_graph_area"></div>
70
-									<div id="ITP_PCH_PODR_GRAPH" class="itp_graph_area"></div>
69
+									<div id="ITP_PCH_STDD" class="itp_graph_area"></div>
70
+									<div id="ITP_PCH_NEW_STDD" class="itp_graph_area"></div>
71 71
 								</div>
72 72
 				            </form>
73 73
 				        </div>

+ 54 - 0
src/main/webapp/js/app/stockmng/ITP_STOCKMNG07010.js

@@ -0,0 +1,54 @@
1
+/********************************************************
2
+ --------------------------------------------------------
3
+ - Object 목록								            -
4
+ --------------------------------------------------------
5
+ * let pageObj = {}			: 화면공통 Object			*
6
+ * let viewObj = {}			: 상세화면 Object			*
7
+ *******************************************************/
8
+ require(['config'], function() {
9
+	require([
10
+		'kakao.map.util'
11
+	], function($) {
12
+		pageObj.init();
13
+	});
14
+});
15
+ google.charts.load('current', {'packages':['corechart']});
16
+ google.charts.setOnLoadCallback(drawChart1);
17
+ google.charts.setOnLoadCallback(drawChart2);
18
+ 
19
+ function drawChart1() {
20
+   var data = google.visualization.arrayToDataTable([
21
+     ['Year', 'Sales', 'Expenses'],
22
+     ['2004',  1000,      400],
23
+     ['2005',  1170,      460],
24
+     ['2006',  660,       1120],
25
+     ['2007',  1030,      540]
26
+   ]);
27
+
28
+   var options = {
29
+     title: '1년전 구매기준',
30
+     legend: { position: 'bottom' }
31
+   };
32
+
33
+   var chart = new google.visualization.LineChart(document.getElementById('ITP_PCH_STDD'));
34
+
35
+   chart.draw(data, options);
36
+ }
37
+ function drawChart2() {
38
+	   var data = google.visualization.arrayToDataTable([
39
+	     ['Year', 'Sales', 'Expenses'],
40
+	     ['2004',  1000,      400],
41
+	     ['2005',  1170,      460],
42
+	     ['2006',  660,       1120],
43
+	     ['2007',  1030,      540]
44
+	   ]);
45
+
46
+	   var options = {
47
+	     title: '1년전 구매기준',
48
+	     legend: { position: 'bottom' }
49
+	   };
50
+
51
+	   var chart = new google.visualization.LineChart(document.getElementById('ITP_PCH_NEW_STDD'));
52
+
53
+	   chart.draw(data, options);
54
+	 }