Переглянути джерело

시스템관리-앱버전관리 -1

yhl88 2 роки тому
батько
коміт
ec90865939

+ 7 - 30
src/main/webapp/app/system/SYSTEM07010.html

@@ -11,39 +11,16 @@
11 11
 				<div class="itp_tab_wrap" id="ITP_SRH_SYSTEM07010_TAB_WRAP">
12 12
 					<ul class="itp_srh_tabs" style="width:20%;">
13 13
 						<li id="ITP_SRH_SYSTEM07010_TAB_AOS" class="active"><a href="javascript:void(0);">AOS</a></li>
14
-						<li id="ITP_SRH_SYSTEM07010_TAB_IOS"><a href="javascript:void(0);">IOS</a></li>
15 14
 					</ul>
16 15
 				</div>
17 16
 				<div id="ITP_AJAX_SYSTEM07010_LIST_CONTAINER">
18
-					<div class="itp_boardData type1" style="padding: 0 15px 0 15px">
19
-						<table id="ITP_SYSTEM07010_jqGrid_wait_list" class="table table-striped table-bordered">
20
-							<colgroup>
21
-								<col style="width: 5%">
22
-								<col style="width: 9%">
23
-								<col style="width: *">
24
-								<col style="width: 12%">
25
-								<col style="width: 8%">
26
-							</colgroup>
27
-							<thead>
28
-								<tr>
29
-					                <th>NO</th>
30
-					                <th>버전</th>
31
-					                <th>버전 설명</th>
32
-					                <th>등록 일시</th>
33
-					                <th>삭제</th>
34
-					            </tr>
35
-							</thead>
36
-							<tbody id="ITP_SYSTEM07010_jqGrid_tbody">
37
-								<tr data-app-no="AN20070008">
38
-						            <td class="ac">1</td>
39
-						            <td class="ac"><span class="itp_link">1.0.0</span></td>
40
-						            <td class="al">AOS</td>
41
-						            <td class="ac">2020.04.08 00:00:00</td>
42
-						            <td class="ac"><span class="itp_del">삭제</span></td>
43
-					        	</tr>
44
-							</tbody>
45
-						</table>
46
-					</div>	
17
+					<div class="itp_table fix">
18
+						<div id="ITP_SYSTEM07010_jqGrid_list" class="itp_tb_list">
19
+							<table id="ITP_SYSTEM07010_jqGrid"></table>
20
+							<div id="ITP_SYSTEM07010_jqGridPager"></div>
21
+							<div id="ITP_SYSTEM07010_jqGridEmpty" class="itp_no_data"></div>
22
+						</div>
23
+					</div>
47 24
 				</div>
48 25
 			</div>
49 26
 		</div>

+ 5 - 12
src/main/webapp/js/app/oper/ITP_OPER07010.js

@@ -36,12 +36,13 @@ let API_BRAND_STORE_ING_INFO = '/api/brand/store-ing-list';
36 36
 let API_BRAND_CHANGE_BRAND_SHCO = '/api/brand/change-brand-shco';
37 37
 let API_STORE_CHANGE_STORE_LOAN = '/api/store/change-store-loan';
38 38
 
39
+
39 40
 /*변수*/
40 41
 let ITP_COMMON_LOAN_DVSN = fn_make_common_cd_list(CODE_LIST, 'LOAN_DVSN', true, '여신구분');
41 42
 let OPER07010_STORE_GRID_LAST_ROW_ID;
42
-
43 43
 let editStoreNum = 0;
44 44
 
45
+/*매장그리드 변경가능여부 버튼 변환*/
45 46
 function editBButton (cellvalue, options, rowObject) {
46 47
 	editStoreNum ++;
47 48
 	if (cellvalue == 'N') {
@@ -53,6 +54,7 @@ function editBButton (cellvalue, options, rowObject) {
53 54
 	}
54 55
 };
55 56
 
57
+/*매장그리드 변경버튼 함수*/
56 58
 function test(num) {
57 59
 	let ids = $(OPER07010_STORE_GRID_ID).jqGrid('getDataIDs');
58 60
 	for (var i = 0; i < ids.length; i++) {
@@ -69,15 +71,6 @@ function test(num) {
69 71
 				return false;
70 72
 			}
71 73
 			
72
-			/*
73
-			let loanDvsnId = '#' + num + '_loanDvsn';
74
-			let creditId = '#' + num + '_credtLimtAmt';
75
-			if ($(loanDvsnId).val() != 'LD02') {				
76
-				$(creditId).attr("readonly",true);
77
-			} else {
78
-				$(creditId).removeAttr("readonly"); 
79
-			}*/
80
-			
81 74
 			var searchFn = function() {
82 75
 				let param = $('#ITP_FORM_OPER07010_SEARCH').serializeObject();
83 76
 	        	param.gridSize = $.jgrid.defaults.rowNum;
@@ -382,7 +375,7 @@ let listObj = {
382 375
 	callback: function(result) {
383 376
 		listObj.grid_brand.init(result);
384 377
 	},
385
-	grid_brand: {
378
+	grid_brand: {		// 브랜드 그리드
386 379
 		init: function (gridData) {
387 380
 			let gridDataArr = [];
388 381
 			gridDataArr.push(gridData);
@@ -426,7 +419,7 @@ let listObj = {
426 419
         	$.jgrid.gridUnload(this.gridId);
427 420
         }
428 421
     },
429
-    grid_store: {
422
+    grid_store: {		// 매장 그리드
430 423
         init: function () {
431 424
         	this.search();
432 425
         },

+ 127 - 0
src/main/webapp/js/app/system/ITP_SYSTEM07010.js

@@ -0,0 +1,127 @@
1
+require(['config'], function() {
2
+    require([
3
+    ], function($) {
4
+        pageObj.init();
5
+    });
6
+});
7
+
8
+console.log(CONN_KEY);
9
+/********************************************************
10
+ --------------------------------------------------------
11
+ - Object 목록								            -
12
+ --------------------------------------------------------
13
+ * const gridColModel = {}	: 화면 Grid Object			*
14
+ * let pageObj = {}			: 화면공통 Object			*
15
+ * let listObj = {}			: 목록화면 Object			*
16
+ * let viewObj = {}			: 상세화면 Object			*
17
+ * let modifyObj = {}		: 수정화면 Object			*
18
+ * let createObj = {}		: 신규화면 Object			*
19
+ *******************************************************/
20
+
21
+
22
+/*화면 변수*/
23
+const SYSTEM07010_GRID_ID = '#ITP_SYSTEM07010_jqGrid';
24
+const SYSTEM07010_GRID_LIST = '#ITP_SYSTEM07010_jqGrid_list';
25
+const SYSTEM07010_GRID_PAGER = '#ITP_SYSTEM07010_jqGridPager';
26
+const SYSTEM07010_GRID_EMPTY = '#ITP_SYSTEM07010_jqGridEmpty';
27
+
28
+
29
+/*API URL*/
30
+
31
+let API_VERINFO_DETAIL_GRID_LIST = '/api/verinfo/detail-grid-list';
32
+let API_VERINFO_INFO_LASTVER = '/api/verinfo/info-lastver';
33
+let API_VERINFO_INFO_VERINFO = '/api/verinfo/info-verinfo';
34
+let API_VERINFO_SAVE_LASTVER = '/api/verinfo/save-verinfo';
35
+let API_VERINFO_DEL_LASTVER = '/api/verinfo/del-verinfo';
36
+
37
+/*화면 Grid Object*/
38
+const gridColModel = {
39
+    list: [],
40
+    view: [],
41
+    detail: []
42
+};
43
+
44
+
45
+/*화면공통 Object*/
46
+let pageObj = {
47
+    init: function () {
48
+        this.ui.init();
49
+        this.event.init();
50
+    },
51
+    ui: {
52
+        init: function () {
53
+        }
54
+    },
55
+    event: {
56
+        init: function () {
57
+            this.button();
58
+        },
59
+        button: function () {
60
+            // 버튼 클릭 이벤트
61
+        }
62
+    },
63
+    switchScreen: function(mode) {
64
+        if (mode == 'LIST') { // 목록
65
+        } else if(mode == 'ADD') { // 등록
66
+        } else if(mode == 'MODIFY') { // 수정
67
+        } else if(mode == 'VIEW') { // 보기
68
+        }
69
+    }
70
+};
71
+
72
+/*목록화면 Object*/
73
+let listObj = {
74
+    init: function () {
75
+        this.grid.init();
76
+    },
77
+    empty: {
78
+    },
79
+    grid: {
80
+        init: function () {
81
+        },
82
+        colModel: gridColModel.list,
83
+        search: function() {
84
+        },
85
+        load: function() {
86
+        },
87
+        reload : function() {
88
+        },
89
+        clearData : function() {
90
+        },
91
+        unload : function() {
92
+        }
93
+    }
94
+};
95
+
96
+/*상세화면 Object*/
97
+let viewObj = {
98
+    init: function (param) {
99
+        this.load(param);
100
+    },
101
+    load: function() {
102
+    },
103
+    callback: function (result) {
104
+        // console.log(result);
105
+    }
106
+};
107
+
108
+/*수정화면 Object*/
109
+let modifyObj = {
110
+    init: function (param) {
111
+        this.load(param);
112
+    },
113
+    load: function() {
114
+    },
115
+    callback: function (result) {
116
+        // console.log(result);
117
+    }
118
+};
119
+
120
+/*신규화면 Object*/
121
+let createObj = {
122
+    init: function () {
123
+        this.load();
124
+    },
125
+    load: function () {
126
+    }
127
+};