Bläddra i källkod

Merge branch 'master' of http://106.246.249.162:13000/orderqueen/oqpo-view

juney 2 år sedan
förälder
incheckning
7e98f552cf

+ 126 - 0
src/main/webapp/app/loanmng/LOANMNG04010.html

@@ -0,0 +1,126 @@
1
+<section id="ITP_TAB_LOANMNG04010" class="tab-pane active itp_sec">
2
+	<div class="itp_cont">
3
+		<article class="itp_detail">
4
+			<div class="itp_det_head fix">
5
+				<h2 class="pull-left itp_det_tit"><i class="glyphicon glyphicon-chevron-right"></i><strong>여신현황</strong></h2>
6
+				<div class="pull-right itp_cicon">
7
+					<button type="button" id="ITP_BTN_LOANMNG04010_SRH" class="btn btn-success btn-sm SEB" style="display: inline-block;"><i class="glyphicon"></i>&nbsp;&nbsp;조회&nbsp;&nbsp;</button>
8
+					<button type="button" id="ITP_BTN_LOANMNG04010_SAVE" class="btn btn-success btn-sm SAB"><i class="glyphicon"></i>&nbsp;&nbsp;저장&nbsp;&nbsp;</button>
9
+					<button type="button" id="ITP_BTN_LOANMNG04010_CANCELLIST" class="btn btn-warning btn-sm PRB"><i class="glyphicon"></i>&nbsp;&nbsp;목록&nbsp;&nbsp;</button>
10
+				</div>				
11
+			</div>
12
+			<div class="itp_det_in">
13
+				<div id="ITP_AJAX_LOANMNG04010_VIEW_CONTAINER">
14
+					<div class="itp_form itp_type1 fix">
15
+						<div class="col-xs-12">
16
+							<form id="ITP_FORM_LOANMNG04010_VIEW" class="form-horizontal">
17
+								<input type="hidden" id="ITP_FORM_LOANMNG04010_VIEW_VIEW_CD" name="viewCd" value="R">
18
+								<input type="hidden" id="ITP_FORM_LOANMNG04010_VIEW_BRAND_ID" name="brandId" value="">
19
+								<input type="hidden" id="ITP_FORM_LOANMNG04010_VIEW_STORE_ID" name="storeId" value="">
20
+								<input type="hidden" id="ITP_FORM_LOANMNG04010_VIEW_LOAN_MGNT_UNQ_NO" name="loanMgntUnqNo" value="">
21
+					
22
+								<section class="itp_form_sec">
23
+									<h4 class="itp_form_tit">여신정보</h4>
24
+									<div class="itp_form_in">
25
+										<div class="form-group">
26
+											<label class="col-xs-2 itp_lb">브랜드 *</label>
27
+												<div class="col-xs-4 itp_ip">
28
+													<div class="col-xs-9 itp_in fnBrandNm"></div>												
29
+												</div>
30
+											<label class="col-xs-2 itp_lb">매장*</label>
31
+											<div class="col-xs-4 itp_ip">
32
+												<div class="col-xs-10 itp_in fnStoreNm"></div>
33
+											</div>
34
+										</div>
35
+										<div class="form-group">
36
+											<label class="col-xs-2 itp_lb">정산타입</label>
37
+											<div class="col-xs-4 itp_ip">
38
+												<div class="col-xs-10 itp_in fnLoanDvsn"></div>
39
+											</div>
40
+											<label class="col-xs-2 itp_lb">한도금액</label>
41
+											<div class="col-xs-4 itp_ip">
42
+												<div class="col-xs-8 itp_in fnCredtLimitAmt"></div>
43
+											</div>
44
+										</div>
45
+										<div class="form-group">
46
+											<label class="col-xs-2 itp_lb">계약기간</label>
47
+											<div class="col-xs-4 itp_ip">
48
+												<div class="col-xs-8 itp_in fnContDt"></div>
49
+											</div>
50
+											<label class="col-xs-2 itp_lb">사용여부</label>
51
+											<div class="col-xs-4 itp_ip">
52
+												<div class="col-xs-8 itp_in fnUseYn"></div>
53
+											</div>
54
+										</div>
55
+										<div class="form-group">
56
+											<label class="col-xs-2 itp_lb">가용한도금액</label>
57
+											<div class="col-xs-4 itp_ip">
58
+												<div class="col-xs-10 itp_in fnPosbLimitAmt"></div>
59
+											</div>
60
+											<label class="col-xs-2 itp_lb">가수금</label>
61
+											<div class="col-xs-4 itp_ip">
62
+												<div class="col-xs-8 itp_in fnTmpRcvAcctTotal"></div>
63
+											</div>
64
+										</div>
65
+										<div class="form-group border">
66
+											<label class="col-xs-2 itp_lb">사용금액</label>
67
+											<div class="col-xs-4 itp_ip">
68
+												<div class="col-xs-10 itp_in fnUseAmtTotal"></div>
69
+											</div>
70
+											<label class="col-xs-2 itp_lb">최종 수정자/일시</label>
71
+											<div class="col-xs-4 itp_ip">
72
+												<div class="col-xs-10 itp_in fnLastModify"></div>
73
+											</div>
74
+										</div>
75
+									</div>
76
+								</section>								
77
+							</form>
78
+							<div class="itp_det_head fix" style="background:#fff; margin-top: 12px;">
79
+								<h2 class="pull-left itp_det_tit"><i class="glyphicon glyphicon-chevron-right"></i><strong>여신이력</strong></h2>
80
+							</div>
81
+							<div id="ITP_AJAX_LOANMNG04010_VIEW_LIST_CONTAINER">
82
+								<div class="itp_lg_form itp_type1 fix" style="padding-left: 0px; padding-right: 0px; margin-top: -11px;">
83
+									<div class="itp_srh_border fix">
84
+										<div class="col-xs-12">
85
+											<form id="ITP_FORM_LOANMNG04010_VIEW_SEARCH" class="form-horizontal">
86
+												<input type="hidden" id="ITP_FORM_LOANMNG04010_VIEW_SEARCH_LOAN_MGNT_UNQ_NO" name="sloanMgntUnqNo" value="">
87
+											
88
+												<div class="col-xs-1 itp_ip itp_noMar" style="top:2px">
89
+													<label class="itp_in">거래일자</label>
90
+												</div>
91
+												<div class="col-xs-2 itp_ip itp_noMar">
92
+													<div class="input-daterange input-group date">
93
+														<input type="text" id="ITP_FORM_LOANMNG04010_SEARCH_FROM" class="form-control itp_input" name="fromDt" value="">
94
+														<span class="input-group-addon itp_date_to">~</span>
95
+														<input type="text" id="ITP_FORM_LOANMNG04010_SEARCH_TO" class="form-control itp_input" name="toDt" value="">
96
+													</div>
97
+												</div>
98
+												<div class="col-xs-2 itp_in itp_noMar">
99
+													<select id="ITP_FORM_LOANMNG04010_SEARCH_DPST_PAY_DVSN" data-select-code="DPST_PAY_DVSN" class="form-control itp_input" name="sdpstPayDvsn">
100
+														<option value="">입금/지급</option>
101
+													</select>
102
+												</div>
103
+												<div class="col-xs-2 itp_ip itp_noMar">
104
+													<button type="button" id="ITP_BTN_LOANMNG04010_VIEW_SEARCH_SRH" class="btn btn-primary btn-sm HIST" style="display: inline-block;"><i class="glyphicon"></i>&nbsp;&nbsp;이력조회&nbsp;&nbsp;</button>
105
+												</div>
106
+											</form>
107
+										</div>
108
+									</div>
109
+								</div>
110
+								<div class="itp_table fix" style="padding-left: 0px; padding-right: 0px;">
111
+									<div id="ITP_LOANMNG04010_VIEW_jqGrid_list" class="itp_tb_list">
112
+								        <div id="ITP_LOANMNG04010_VIEW_jqGridView" class="itp_views fix"></div>
113
+								        <table id="ITP_LOANMNG04010_VIEW_jqGrid"></table>
114
+								        <div id="ITP_LOANMNG04010_VIEW_jqGridPager"></div>
115
+								        <div id="ITP_LOANMNG04010_VIEW_jqGridEmpty" class="itp_no_data"></div>
116
+								    </div>
117
+								</div>
118
+							</div>
119
+						</div>
120
+					</div>
121
+				</div>
122
+			</div>
123
+		</article>
124
+	</div>
125
+	<div id="ITP_TAP_JS"></div>	
126
+</section>

+ 0 - 77
src/main/webapp/app/stockmng/STOCKMNG06010.html

@@ -1,77 +0,0 @@
1
-<section id="ITP_TAB_STOCKMNG06010" class="tab-pane active itp_sec">
2
-	<div class="itp_cont">
3
-		<article class="itp_detail">
4
-			<div class="itp_det_head fix">
5
-				<h2 class="pull-left itp_det_tit"><i class="glyphicon glyphicon-chevron-right"></i> <strong>수요에측현황</strong></h2>
6
-				<div class="pull-right itp_cicon">
7
-				    <button type="button" id="ITP_BTN_STOCKMNG06010_SAVE" class="btn btn-success btn-sm SAB"><i class="glyphicon "></i>&nbsp;&nbsp;저장&nbsp;&nbsp;</button>
8
-				    <button type="button" id="ITP_BTN_STOCKMNG06010_SRH" class="btn btn-success btn-sm SEB" style="display: inline-block;"><i class="glyphicon "></i>&nbsp;&nbsp;조회&nbsp;&nbsp;</button>
9
-				</div>				
10
-			</div>
11
-			<div class="itp_det_in">
12
-				<div id="ITP_AJAX_STOCKMNG06010_DETAIL_CONTAINER">
13
-				    <div class="itp_form itp_type1 fix">
14
-				        <div class="col-xs-12">
15
-				            <form id="ITP_FORM_STOCKMNG06010_DETAIL" class="form-horizontal">
16
-				                <input type="hidden" id="ITP_FORM_STOCKMNG06010_DETAIL_VIEW_CD" name="viewCd" value="C">
17
-				                <input type="hidden" id="ITP_FORM_STOCKMNG06010_DETAIL_BRAND_ID" name="brandId" value="">
18
-				                <input type="hidden" id="ITP_FORM_STOCKMNG06010_DETAIL_STORE_ID" name="storeId" value="">
19
-				                <input type="hidden" id="ITP_FORM_STOCKMNG06010_DETAIL_WHS_ID" name="whsId" value="">
20
-				    
21
-				                <section class="itp_form_sec">
22
-				                    <h4 class="itp_form_tit">수요예측 조건 정보</h4>
23
-			                         <div class="itp_form_in">
24
-				                        <div class="form-group">
25
-				                            <label class="col-xs-2 itp_lb">브랜드</label>
26
-			                                <div class="col-xs-4 itp_ip">
27
-												<div class="col-xs-8 itp_in">
28
-													<select id="ITP_FORM_STOCKMNG06010_DETAIL_BRAND_NM" data-select-code="BRAND_NM" class="form-control itp_input" name="brandNm">
29
-														<option>브랜드</option>
30
-													</select>												
31
-												</div>
32
-											</div>
33
-											<label class="col-xs-2 itp_lb">기간선택</label>
34
-			                                <div class="col-xs-4 itp_ip">
35
-												<div class="col-xs-8 itp_in">
36
-													<select id="ITP_FORM_STOCKMNG06010_DETAIL_" data-select-code="" class="form-control itp_input" name="">
37
-														<option>기간선택</option>
38
-													</select>												
39
-												</div>
40
-											</div>
41
-				                        </div>
42
-			                        </div>	
43
-				                    <div class="itp_form_in">
44
-				                        <div class="form-group border">
45
-				                            <label class="col-xs-2 itp_lb">수요예측 품목명</label>
46
-												<div class="col-xs-10 itp_ip">
47
-													<div class="col-xs-3 itp_in">
48
-														<input type="text" id="ITP_FORM_STOCKMNG06010_DETAIL_SCH_ITEM_ID" class="form-control itp_input" value="" maxlength="100" readonly>
49
-									                </div>
50
-									                <div class="col-xs-3 itp_in">
51
-														<div class="input-group">
52
-															<input type="text" id="ITP_FORM_STOCKMNG06010_DETAIL_SCH_ITEM_NM" class="form-control itp_input" value="" maxlength="100" readonly>
53
-															<span class="input-group-btn">
54
-																<button id="ITP_BTN_STOCKMNG06010_DETAIL_ITEM_DELETE" class="btn btn-default btn-sm itp_btn UPB" type="button"><i class="glyphicon glyphicon-erase"></i></button>
55
-															</span>
56
-														</div>
57
-													</div>
58
-													<div class="col-xs-2 itp_in" style="padding-left: 5px;">
59
-														<button type="button" id="ITP_BTN_STOCKMNG06010_DETAIL_ITEM_SRH_" class="btn btn-success btn-sm SEB" style="display: inline-block;"><i class="glyphicon glyphicon-search"></i></button>
60
-									                </div>
61
-												</div>
62
-				                        </div>
63
-			                         </div>	
64
-				                </section>	
65
-				                <div class="itp_caption">
66
-				                	<label>※ 수요예측은 조회하는 일자의 월 포함 3개월에 대한 조회입니다.</label>
67
-				                </div>
68
-				            </form>
69
-				        </div>
70
-				    </div>
71
-				</div>
72
-								
73
-			</div>
74
-		</article>
75
-	</div>
76
-	<div id="ITP_TAP_JS"></div>	
77
-</section>

+ 81 - 0
src/main/webapp/app/stockmng/STOCKMNG07010.html

@@ -0,0 +1,81 @@
1
+<section id="ITP_TAB_STOCKMNG07010" class="tab-pane active itp_sec">
2
+	<div class="itp_cont">
3
+		<article class="itp_detail">
4
+			<div class="itp_det_head fix">
5
+				<h2 class="pull-left itp_det_tit"><i class="glyphicon glyphicon-chevron-right"></i> <strong>수요에측현황</strong></h2>
6
+				<div class="pull-right itp_cicon">
7
+				    <button type="button" id="ITP_BTN_STOCKMNG07010_SAVE" class="btn btn-success btn-sm SAB"><i class="glyphicon "></i>&nbsp;&nbsp;저장&nbsp;&nbsp;</button>
8
+				    <button type="button" id="ITP_BTN_STOCKMNG07010_SRH" class="btn btn-success btn-sm SEB" style="display: inline-block;"><i class="glyphicon "></i>&nbsp;&nbsp;조회&nbsp;&nbsp;</button>
9
+				</div>				
10
+			</div>
11
+			<div class="itp_det_in">
12
+				<div id="ITP_AJAX_STOCKMNG07010_DETAIL_CONTAINER">
13
+				    <div class="itp_form itp_type1 fix">
14
+				        <div class="col-xs-12">
15
+				            <form id="ITP_FORM_STOCKMNG07010_DETAIL" class="form-horizontal">
16
+				                <input type="hidden" id="ITP_FORM_STOCKMNG07010_DETAIL_VIEW_CD" name="viewCd" value="C">
17
+				                <input type="hidden" id="ITP_FORM_STOCKMNG07010_DETAIL_BRAND_ID" name="brandId" value="">
18
+				                <input type="hidden" id="ITP_FORM_STOCKMNG07010_DETAIL_STORE_ID" name="storeId" value="">
19
+				                <input type="hidden" id="ITP_FORM_STOCKMNG07010_DETAIL_WHS_ID" name="whsId" value="">
20
+				    
21
+				                <section class="itp_form_sec">
22
+				                    <h4 class="itp_form_tit">수요예측 조건 정보</h4>
23
+			                         <div class="itp_form_in">
24
+				                        <div class="form-group">
25
+				                            <label class="col-xs-2 itp_lb">브랜드</label>
26
+			                                <div class="col-xs-4 itp_ip">
27
+												<div class="col-xs-8 itp_in">
28
+													<select id="ITP_FORM_STOCKMNG07010_DETAIL_BRAND_NM" data-select-code="BRAND_NM" class="form-control itp_input" name="brandNm">
29
+														<option>브랜드</option>
30
+													</select>												
31
+												</div>
32
+											</div>
33
+											<label class="col-xs-2 itp_lb">기간선택</label>
34
+			                                <div class="col-xs-4 itp_ip">
35
+												<div class="col-xs-8 itp_in">
36
+													<select id="ITP_FORM_STOCKMNG07010_DETAIL_" data-select-code="" class="form-control itp_input" name="">
37
+														<option>기간선택</option>
38
+													</select>												
39
+												</div>
40
+											</div>
41
+				                        </div>
42
+			                        </div>	
43
+				                    <div class="itp_form_in">
44
+				                        <div class="form-group border">
45
+				                            <label class="col-xs-2 itp_lb">수요예측 품목명</label>
46
+												<div class="col-xs-10 itp_ip">
47
+													<div class="col-xs-3 itp_in">
48
+														<input type="text" id="ITP_FORM_STOCKMNG07010_DETAIL_SCH_ITEM_ID" class="form-control itp_input" value="" maxlength="100" readonly>
49
+									                </div>
50
+									                <div class="col-xs-3 itp_in">
51
+														<div class="input-group">
52
+															<input type="text" id="ITP_FORM_STOCKMNG07010_DETAIL_SCH_ITEM_NM" class="form-control itp_input" value="" maxlength="100" readonly>
53
+															<span class="input-group-btn">
54
+																<button id="ITP_BTN_STOCKMNG07010_DETAIL_ITEM_DELETE" class="btn btn-default btn-sm itp_btn UPB" type="button"><i class="glyphicon glyphicon-erase"></i></button>
55
+															</span>
56
+														</div>
57
+													</div>
58
+													<div class="col-xs-2 itp_in" style="padding-left: 5px;">
59
+														<button type="button" id="ITP_BTN_STOCKMNG07010_DETAIL_ITEM_SRH_" class="btn btn-success btn-sm SEB" style="display: inline-block;"><i class="glyphicon glyphicon-search"></i></button>
60
+									                </div>
61
+												</div>
62
+				                        </div>
63
+			                         </div>	
64
+				                </section>	
65
+				                <div class="itp_caption">
66
+				                	<label>※ 수요예측은 조회하는 일자의 월 포함 3개월에 대한 조회입니다.</label>
67
+				                </div>
68
+				                <div id="ITP_CONTAINER_GRAPH_AREA">
69
+									<div id="ITP_PCH_STDD" class="itp_graph_area"></div>
70
+									<div id="ITP_PCH_NEW_STDD" class="itp_graph_area"></div>
71
+								</div>
72
+				            </form>
73
+				        </div>
74
+				    </div>
75
+				</div>
76
+								
77
+			</div>
78
+		</article>
79
+	</div>
80
+	<div id="ITP_TAP_JS"></div>	
81
+</section>

+ 2 - 0
src/main/webapp/css/style.css

@@ -197,6 +197,8 @@ a, button {outline:none !important; text-decoration:none !important;}
197 197
 #ITP_SIDEBAR .itp_nav .itp_svgs li a .itp_tt {float:left;}
198 198
 
199 199
 /* ITP_CONTAINER */
200
+#ITP_CONTAINER_GRAPH_AREA {width:100%; height:450px;}
201
+#ITP_CONTAINER_GRAPH_AREA .itp_graph_area {border:1px solid #000; width:49.8%; height:450px; display:inline-block;}
200 202
 #ITP_CONTAINER {height:calc(100vh - 100px); padding:5px 8px; transition:all .25s ease; float:left; width:calc(100% - 240px);background:#fff;}
201 203
 #ITP_CONTAINER.itp_open_conts {padding-left:8px; width:99.9%;}
202 204
 #ITP_CONTAINER .itp_contents {background:#fff; height:100%;}

+ 41 - 12
src/main/webapp/js/app/config.js

@@ -1802,8 +1802,7 @@ function itp_fn_grid_load_complete(data, gridId, paging, rn, menuId, isSrh, empt
1802 1802
 			$('#ITP_' + menuId + '_jqGridEmpty').addClass('itp_noSrh');
1803 1803
 		} else {
1804 1804
 			$('#ITP_' + menuId + '_jqGridEmpty').removeClass('itp_noSrh');
1805
-		}
1806
-
1805
+		} 
1807 1806
 		if (rowCnt == 0) {
1808 1807
 			$(gridId + '_list').find('.ui-jqgrid-bdiv').css('min-height', '100px');
1809 1808
 			$('#ITP_' + menuId + '_jqGridEmpty').html(emptyMsg);
@@ -1818,8 +1817,7 @@ function itp_fn_grid_load_complete(data, gridId, paging, rn, menuId, isSrh, empt
1818 1817
 			$(gridId + '_list').find('.ui-jqgrid .ui-jqgrid-bdiv').css('overflow-x', 'auto');
1819 1818
 		} else {
1820 1819
 			$(gridId + '_list').find('.ui-jqgrid .ui-jqgrid-bdiv').css('overflow-x', 'auto');
1821
-		}
1822
-
1820
+		} 
1823 1821
 		if (paging) {
1824 1822
 			$(gridId + 'Pager_center').show();
1825 1823
 			if (!totPage) {
@@ -2118,19 +2116,50 @@ function itp_fn_check_grid_is_writing(gridId) {
2118 2116
 	return isWriting;
2119 2117
 };
2120 2118
 
2121
-function itp_fn_jqgrid_resize(grid_id, parent_id, size) {
2119
+function itp_fn_jqgrid_resize(grid_id, parent_id, size) { 
2120
+	var leftDist=0, prevWidth=0;
2121
+	const setGridCellWidth=function(cellIndex, cellWidth) {
2122
+		var idx=0;
2123
+		$(parent_id+' table').each(function() {
2124
+			if(idx++==0)
2125
+				$(this).find('th:eq('+cellIndex+')').each(function(){$(this).css('width',cellWidth);});
2126
+			else
2127
+				$(this).find('td:eq('+cellIndex+')').each(function(){$(this).css('width',cellWidth);});
2128
+		}); 
2129
+	}
2130
+	
2122 2131
 	$(window).on('resize', function(e) {
2123
-		//window.resizeEvt;
2124
-		//clearTimeout(window.resizeEvt);
2125
-		window.resizeEvt = setTimeout(function() {
2126
-			$(grid_id).setGridWidth(782);
2132
+		/*na 그리드 수평스크롤 체크 */ 
2133
+		setTimeout(function() {
2127 2134
 			var outerwidth = $(parent_id).width();
2128 2135
 			if ($(window).width() < 1301 && size == 'sm') {
2129 2136
 				outerwidth = 782;
2130 2137
 			}
2131
-			$(grid_id).setGridWidth(outerwidth);
2132
-		}, 250);
2133
-	});
2138
+			if(outerwidth==100) return;
2139
+			if(leftDist==0) {
2140
+				leftDist= $(window).width() - outerwidth;
2141
+			}
2142
+			if( leftDist>0 && outerwidth>($(window).width()- leftDist) ) {
2143
+				outerwidth=$(window).width() - leftDist;
2144
+			}
2145
+			if(size && outerwidth < 780 ) outerwidth=782;
2146
+			$(grid_id).setGridWidth(outerwidth, true); 
2147
+			var cols = $(grid_id).getGridParam('colModel');
2148
+
2149
+			if( Array.isArray(cols) && cols.length>1 ) {
2150
+				var idx=0, last=cols.length-1;
2151
+				for(var idx=0;idx<cols.length; idx++  ) {
2152
+					var c=cols[idx];
2153
+					if(c.hidden) continue;
2154
+					if(c.minwidth && c.minwidth>c.width ) {
2155
+						setGridCellWidth(idx, c.minwidth);
2156
+					} else if(last==idx) {
2157
+						setGridCellWidth(idx, c.width-2);
2158
+					}
2159
+				}
2160
+			}
2161
+		}, 250); 
2162
+	}); 
2134 2163
 };
2135 2164
 
2136 2165
 function itp_fn_make_set_combine(gridId, label, width, cols, hideCols) {

+ 3 - 2
src/main/webapp/js/app/main.js

@@ -18,10 +18,9 @@ require(['config'], function() {
18 18
 			//$('#ITP_FORM_MAIN_NOTICE_SEARCH_USER_ID').val(fn_make_user_info.get('userId'));
19 19
 			
20 20
 			// 그리드
21
-			itp_fn_jqgrid_resize(MAIN_NOTICE_GRID_ID, MAIN_NOTICE_GRID_LIST, 'lg');
22 21
 			itp_fn_MAIN_NOTICE_grid.init();
23 22
 	    	itp_fn_fire_window_resize();
24
-	
23
+			
25 24
 			// 조회
26 25
 	    	itp_fn_MAIN_NOTICE_search();
27 26
 
@@ -125,6 +124,8 @@ var itp_fn_MAIN_NOTICE_grid = {
125 124
 			itp_MAIN_NOTICE_param.gridSize = $.jgrid.defaults.rowNum;
126 125
 			$(MAIN_NOTICE_GRID_ID).setGridParam({'postData': JSON.stringify(itp_MAIN_NOTICE_param)}).trigger('reloadGrid');
127 126
 		});
127
+		console.log("grid init", MAIN_NOTICE_GRID_LIST);
128
+		itp_fn_jqgrid_resize(MAIN_NOTICE_GRID_ID, MAIN_NOTICE_GRID_LIST, 'lg');
128 129
 	},
129 130
 	callBack: function() {
130 131
 		let param = $('#ITP_FORM_MAIN_NOTICE_SEARCH').serializeObject();

+ 1 - 2
src/main/webapp/js/app/pomng/ITP_POMNG03010.js

@@ -333,9 +333,8 @@ let pageObj = {
333 333
 			
334 334
 		},
335 335
 		grid: function() {
336
-			itp_fn_jqgrid_resize(POMNG03010_GRID_ID, POMNG03010_GRID_LIST, 'lg');
337 336
 			listObj.empty.init();
338
-			itp_fn_fire_window_resize();
337
+			itp_fn_jqgrid_resize(POMNG03010_GRID_ID, POMNG03010_GRID_LIST, 'lg');
339 338
 		},
340 339
 		ready: function() {
341 340
 			listObj.init();

+ 0 - 4
src/main/webapp/js/app/rtnmng/ITP_RTNMNG06010.js

@@ -205,7 +205,6 @@ let listObj = {
205 205
 			let param = $('#ITP_FORM_RTNMNG06010_SEARCH').serializeObject();
206 206
 			param.gridSize = $.jgrid.defaults.rowNum;
207 207
             param.gridPage = $.jgrid.defaults.page;
208
-            console.log(JSON.stringify(param));
209 208
             $(RTNMNG06010_GRID_ID).setGridParam({'postData': JSON.stringify(param)}).trigger('reloadGrid');
210 209
         }
211 210
 	},
@@ -234,7 +233,6 @@ let listObj = {
234 233
 		load: function() {
235 234
             let param = $('#ITP_FORM_RTNMNG06010_SEARCH').serializeObject();
236 235
             param.gridSize = $.jgrid.defaults.rowNum;
237
-            console.log(JSON.stringify(param));
238 236
             var option = {
239 237
             	gridId: RTNMNG06010_GRID_ID,
240 238
             	colModel: gridColModel.list,
@@ -243,7 +241,6 @@ let listObj = {
243 241
             	pager: RTNMNG06010_GRID_PAGER,
244 242
             	rownumbers: false,
245 243
 				loadComplete: function(data) {
246
-					console.log(data);
247 244
                     itp_fn_grid_load_complete(data, RTNMNG06010_GRID_ID, true, 'number', 'RTNMNG06010', listObj.itp_RTNMNG06010_search, listObj.empty, true, data.gridRecords, true);
248 245
                     var ids = $(RTNMNG06010_GRID_ID).getDataIDs();
249 246
                     $.each(ids, function(idx, rowId) {
@@ -328,4 +325,3 @@ let listObj = {
328 325
 		}
329 326
 	}
330 327
 }
331
-console.log(CONN_KEY);

+ 2 - 0
src/main/webapp/js/app/stinfo/ITP_STINFO02010.js

@@ -49,12 +49,14 @@ const gridColModel = {
49 49
 			index: 'STORE_ID', name: 'storeId',
50 50
 			label: ITP_MSG_LOCALE.label.storeId, //매장번호
51 51
 			width: '10', fixed: false, align: 'center',
52
+			minwidth: 400, maxwidth: 500,
52 53
 			sortable: false, hidden: false
53 54
 		},
54 55
 		{
55 56
 			index: 'STORE_NM', name: 'storeNm',
56 57
 			label: ITP_MSG_LOCALE.label.storeNm, //매장명
57 58
 			width: '13', fixed: false, align: 'center',
59
+			minwidth: 400, maxwidth: 500,
58 60
 			sortable: false, hidden: false
59 61
 		},
60 62
 		{

+ 89 - 24
src/main/webapp/js/app/stinfo/ITP_STINFO06010.js

@@ -41,9 +41,6 @@ let API_DETAIL_INFO 		= '/api/itemunit/info-storeitemunit';		// 상세
41 41
 let API_DETAIL_NEW	 		= '/api/itemunit/new-info-storeitemunit';	// 신규
42 42
 let API_DETAIL_SAVE 		= '/api/itemunit/save-store-itemunit';		// 저장
43 43
 
44
-
45
-let ITP_FORM_STINFO06010_DETAIL_IS_VIEW = false;
46
-
47 44
 /*화면 Grid ColModel*/
48 45
 const gridColModel = {
49 46
 	list: [
@@ -180,7 +177,7 @@ const gridColModel = {
180 177
 			index: 'SPPLY_UNIT_AMT', name: 'spplyUnitAmt',
181 178
 			label: ITP_MSG_LOCALE.label.spplyUnitAmt, //공급단가
182 179
 			width: '6', fixed: false, align: 'center',
183
-			sortable: false,
180
+			sortable: false, hidden: false,
184 181
 			formatter: 'integer', formatoptions: { defaultValue: '', thousandsSeparator: ',' }
185 182
 			
186 183
 		},
@@ -188,7 +185,7 @@ const gridColModel = {
188 185
 			index: 'SPPLY_NM', name: 'spplyNm',
189 186
 			label: ITP_MSG_LOCALE.label.spplyNm, //공급단가
190 187
 			width: '6', fixed: false, align: 'left',
191
-			sortable: false
188
+			sortable: false, hidden: false
192 189
 		},
193 190
 		{
194 191
 			index: 'SPPLY_ID', name: 'spplyId',
@@ -196,6 +193,90 @@ const gridColModel = {
196 193
 			width: '6', fixed: false, align: 'center',
197 194
 			sortable: false, hidden: true
198 195
 		}
196
+	],
197
+	sdetail: [
198
+		{
199
+			index: 'VIEW_CD', name: 'viewCd',
200
+			label: ITP_MSG_LOCALE.label.viewCd, //공급단가
201
+			width: '6', fixed: false, align: 'center',
202
+			sortable: false, hidden: true
203
+		},
204
+		{
205
+			index: 'VIEW_NM', name: 'viewNm',
206
+			label: ITP_MSG_LOCALE.label.viewNm, //공급단가
207
+			width: '6', fixed: false, align: 'center',
208
+			sortable: false, hidden: false
209
+		},
210
+		{
211
+			index: 'BRAND_ID', name: 'brandId',
212
+			label: ITP_MSG_LOCALE.label.brandId, //브랜드ID
213
+			width: '10', fixed: false, align: 'center',
214
+			sortable: false, hidden: true
215
+		},
216
+		{
217
+			index: 'BRAND_UNIT_UNQ_NO', name: 'brandUnitUnqNo',
218
+			label: ITP_MSG_LOCALE.label.brandId, //브랜드ID
219
+			width: '10', fixed: false, align: 'center',
220
+			sortable: false, hidden: true
221
+		},
222
+		{
223
+			index: 'STORE_UNIT_UNQ_NO', name: 'storeUnitUnqNo',
224
+			label: ITP_MSG_LOCALE.label.storeId, //브랜드ID
225
+			width: '10', fixed: false, align: 'center',
226
+			sortable: false, hidden: true
227
+		},
228
+		{
229
+			index: 'ITEM_ID', name: 'itemId',
230
+			label: ITP_MSG_LOCALE.label.itemId, //품목번호
231
+			width: '10', fixed: false, align: 'center',
232
+			sortable: false, hidden: false
233
+		},
234
+		{
235
+			index: 'ITEM_NM', name: 'itemNm',
236
+			label: ITP_MSG_LOCALE.label.itemNm, //품목명
237
+			width: '13', fixed: false, align: 'center',
238
+			sortable: false, hidden: false
239
+		},
240
+		{
241
+			index: 'CONT_STT_DT', name: 'contSttDt',
242
+			label: ITP_MSG_LOCALE.label.contSttDt, //계약시작일
243
+			width: '10', fixed: false, align: 'center',
244
+			sortable: false, hidden: false
245
+		},
246
+		{
247
+			index: 'CONT_END_DT', name: 'contEndDt',
248
+			label: ITP_MSG_LOCALE.label.contEndDt, //계약종료일
249
+			width: '10', fixed: false, align: 'center',
250
+			sortable: false, hidden: false
251
+		},
252
+		{
253
+			index: 'UNIT', name: 'unit',
254
+			label: ITP_MSG_LOCALE.label.unit, //기본단위
255
+			width: '9', fixed: false, align: 'center',
256
+			sortable: false, editable: false, formatter: 'select', edittype: 'select',
257
+			editoptions: {value: ITP_COMMON_CD_DSTRBT_COST_UNIT}
258
+		},
259
+		{
260
+			index: 'CURR', name: 'curr',
261
+			label: ITP_MSG_LOCALE.label.curr, //통화
262
+			width: '9', fixed: false, align: 'center',
263
+			sortable: false, editable: false, formatter: 'select', edittype: 'select',
264
+			editoptions: {value: ITP_COMMON_CD_CURR}
265
+		},
266
+		{
267
+			index: 'UNIT_AMT', name: 'unitAmt',
268
+			label: ITP_MSG_LOCALE.label.unitAmt, //단가
269
+			width: '10', fixed: false, align: 'center',
270
+			sortable: true, editable: false, edittype: 'text',
271
+			formatter: 'integer', formatoptions: { defaultValue: '', thousandsSeparator: ',' }
272
+		},
273
+		{
274
+			index: 'UNIT_TARGET_CD', name: 'unitTargetCd',
275
+			label: ITP_MSG_LOCALE.label.unitTargetCd, //대상여부
276
+			width: '10', fixed: false, align: 'center',
277
+			sortable: false, editable: false, formatter: 'select', edittype: 'select',
278
+			editoptions: {value: ITP_COMMON_CD_UNIT_TARGET_CD}
279
+		}
199 280
 	]
200 281
 };
201 282
 
@@ -381,25 +462,8 @@ let pageObj = {
381 462
 		} else if(mode == 'MODIFY') { // 수정
382 463
 			$('#ITP_AJAX_STINFO06010_DETAIL_CONTAINER').show();
383 464
 			if(fn_make_user_info.get('authTpCd') === '50') {
384
-				//console.log("1111111111111111111111111111");
385 465
 				fn_show_btn_auth_array(['#ITP_BTN_STINFO06010_CANCELLIST']);
386
-				//$('#ITP_STINFO06010_DETAIL_jqGrid_list').jqGrid('hideCol',["spplyNm","spplyUnitAmt"]);
387
-				
388
-				//$('#ITP_STINFO06010_DETAIL_jqGrid_list').jqGrid('showCol',["spplyNm","spplyUnitAmt"])
389
-				
390
-				//$('#ITP_STINFO06010_DETAIL_jqGrid').jqGrid('hideCol',["spplyNm","spplyUnitAmt"]);
391
-				//$('#ITP_STINFO06010_DETAIL_jqGridView').jqGrid('hideCol',["spplyNm","spplyUnitAmt"]);
392
-				
393
-				
394
-				
395 466
 			} else {
396
-				//console.log("22222222222222222222222");
397
-				//$('#ITP_STINFO06010_DETAIL_jqGrid_list').jqGrid('showCol',["spplyNm","spplyUnitAmt"]);
398
-				//$('#ITP_STINFO06010_DETAIL_jqGrid').jqGrid('showCol',["spplyNm","spplyUnitAmt"]);
399
-				//$('#ITP_STINFO06010_DETAIL_jqGridView').jqGrid('showCol',["spplyNm","spplyUnitAmt"]);
400
-				
401
-				
402
-				
403 467
 				fn_show_btn_auth_array(['#ITP_BTN_STINFO06010_CANCELLIST', '#ITP_BTN_STINFO06010_SAVE']);
404 468
 			}
405 469
 			$('#ITP_BTN_STINFO06010_DETAIL_SEARCH_STORE').attr('disabled', true);
@@ -459,6 +523,7 @@ let listObj = {
459 523
 			let param = $('#ITP_FORM_STINFO06010_SEARCH').serializeObject();
460 524
 			param.gridSize = $.jgrid.defaults.rowNum;
461 525
 			param.sbrandId = fn_make_user_info.get('brandId');
526
+			param.sstoreId = fn_make_user_info.get('storeId');
462 527
 
463 528
 			var option = {
464 529
 				gridId: STINFO06010_GRID_ID,
@@ -557,7 +622,7 @@ let modifyObj = {
557 622
 			
558 623
 			var option = {
559 624
 				gridId: STINFO06010_DETAIL_GRID_ID,
560
-				colModel: gridColModel.detail,
625
+				colModel: fn_make_user_info.get('authTpCd') === '50' ?  gridColModel.sdetail : gridColModel.detail,
561 626
 				param: param,
562 627
 				url: DOMAIN + API_DETAIL_INFO,
563 628
 				loadComplete: function(data) {
@@ -687,7 +752,7 @@ let createObj = {
687 752
 			console.log(param);
688 753
 			var option = {
689 754
 				gridId: STINFO06010_DETAIL_GRID_ID,
690
-				colModel: gridColModel.detail,
755
+				colModel: fn_make_user_info.get('authTpCd') === '50' ?  gridColModel.sdetail : gridColModel.detail,
691 756
 				mtype: 'POST',
692 757
 				param: param,
693 758
 				url: DOMAIN + API_DETAIL_NEW,

+ 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
+	 }

+ 4 - 12
src/main/webapp/main.html

@@ -232,18 +232,10 @@
232 232
 									</div>
233 233
 								</div>
234 234
 								<div id="ITP_MAIN_GRAPH_AREA">
235
-									<div id="ITP_PCH_REQ_GRAPH" class="itp_graph_area">
236
-									
237
-									</div>
238
-									<div id="ITP_PCH_PODR_GRAPH" class="itp_graph_area">
239
-									
240
-									</div>
241
-									<div id="ITP_PCH_REQ_UP_ITEM_GRAPH" class="itp_graph_area">
242
-									
243
-									</div>
244
-									<div id="ITP_STTL_GRAPH" class="itp_graph_area">
245
-									
246
-									</div>
235
+									<div id="ITP_PCH_REQ_GRAPH" class="itp_graph_area"></div>
236
+									<div id="ITP_PCH_PODR_GRAPH" class="itp_graph_area"></div>
237
+									<div id="ITP_PCH_REQ_UP_ITEM_GRAPH" class="itp_graph_area"></div>
238
+									<div id="ITP_STTL_GRAPH" class="itp_graph_area"></div>
247 239
 								</div>
248 240
 							</div>
249 241
 						</article>