소스 검색

메인 타이틀 구분 수정중... 공급사관리 검색부분 수정

dwkim 2 년 전
부모
커밋
6460180fd2
3개의 변경된 파일12개의 추가작업 그리고 35개의 파일을 삭제
  1. 11 3
      src/main/webapp/js/app/config.js
  2. 0 31
      src/main/webapp/js/app/stinfo/ITP_STINFO03010.js
  3. 1 1
      src/main/webapp/main.html

+ 11 - 3
src/main/webapp/js/app/config.js

@@ -403,11 +403,19 @@ var fn_make_user_info = {
403
 	},
403
 	},
404
 	view: function() {
404
 	view: function() {
405
 		// 사용자명
405
 		// 사용자명
406
+		console.log("====================");
407
+		console.log(this.get('authTpCd'));
406
 		$('#ITP_LOGIN_USER').text(this.get('userNm'));
408
 		$('#ITP_LOGIN_USER').text(this.get('userNm'));
407
 		let authTypeNm = (this.get('authTpNm') === undefined) ? '오더퀸' : this.get('authTpNm');
409
 		let authTypeNm = (this.get('authTpNm') === undefined) ? '오더퀸' : this.get('authTpNm');
408
-		$('#ITP_TXT_MAIN_SHR_AFFL').text(authTypeNm);
409
-		var brandNm = (this.get('brandNm')) ? '(' + this.get('brandNm') + ')' : '';
410
-		$('#ITP_TXT_MAIN_SHR_BRAND').text(brandNm);
410
+		
411
+		if (this.get('authTpCd') == "10" || this.get('authTpCd') == "20" || this.get('authTpCd') == "30") {
412
+			$('#ITP_TXT_MAIN_SHR_AFFL').text(authTypeNm);
413
+			var brandNm = (this.get('brandNm')) ? '(' + this.get('brandNm') + ')' : '';
414
+			$('#ITP_TXT_MAIN_SHR_BRAND').text(brandNm);
415
+		} else {
416
+			$('#ITP_BTN_MAIN_SHR_AFFL').css('display','none');
417
+			$('#ITP_TXT_MAIN_SHR_BRAND').css('display','none');
418
+		}
411
 	},
419
 	},
412
 	button: function() {
420
 	button: function() {
413
 		var _this = this;
421
 		var _this = this;

+ 0 - 31
src/main/webapp/js/app/stinfo/ITP_STINFO03010.js

@@ -191,7 +191,6 @@ let pageObj = {
191
 		},
191
 		},
192
 		grid: function() {
192
 		grid: function() {
193
 			itp_fn_jqgrid_resize(STINFO03010_GRID_ID, STINFO03010_GRID_LIST, 'lg');
193
 			itp_fn_jqgrid_resize(STINFO03010_GRID_ID, STINFO03010_GRID_LIST, 'lg');
194
-			listObj.empty.init();
195
 			itp_fn_fire_window_resize();
194
 			itp_fn_fire_window_resize();
196
 		},
195
 		},
197
 		ready: function() {
196
 		ready: function() {
@@ -334,23 +333,6 @@ let pageObj = {
334
 						STINFO03010_GRID_LAST_ROW_ID = itp_fn_set_data_editable(rowid, cellIdx, STINFO03010_GRID_LAST_ROW_ID, _this.gridId, ['actionId']);
333
 						STINFO03010_GRID_LAST_ROW_ID = itp_fn_set_data_editable(rowid, cellIdx, STINFO03010_GRID_LAST_ROW_ID, _this.gridId, ['actionId']);
335
 					}
334
 					}
336
 				}
335
 				}
337
-				/*,
338
-				afterSaveCell: function(rowid,name,val,iRow,iCol) {
339
-					if(mode !== 'VIEW') {
340
-						console.log(rowid);
341
-						console.log(name);
342
-						console.log(val);
343
-						console.log(iRow);
344
-						console.log(iCol);
345
-					}
346
-				},
347
-				afterEditCell: function (rowid, cellname, val, iRow, iCol){
348
-					if(mode !== 'VIEW') {
349
-						$("#" + rowid + "_" + cellname).blur(function(){
350
-							$("#grid").jqGrid("saveCell",iRow,iCol);
351
-						});
352
-					}
353
-				}*/
354
 			};
336
 			};
355
 			itp_fn_grid_make_local(option);
337
 			itp_fn_grid_make_local(option);
356
 		},
338
 		},
@@ -403,29 +385,16 @@ let listObj = {
403
 	},
385
 	},
404
 	empty: {
386
 	empty: {
405
 		init: function() {
387
 		init: function() {
406
-			var _this = this;
407
-			this.push();
408
-			$(STINFO03010_GRID_EMPTY).on('click', function() {
409
-				_this.back();
410
-				_this.itp_STINFO03010_param.gridSize = $.jgrid.defaults.rowNum;
411
-				$(STINFO03010_GRID_ID).setGridParam({'postData': JSON.stringify(_this.itp_STINFO03010_param)}).trigger('reloadGrid');
412
-			});
413
 		},
388
 		},
414
 		itp_STINFO03010_param: {},
389
 		itp_STINFO03010_param: {},
415
 		push: function() {
390
 		push: function() {
416
-			let param = $('#ITP_FORM_STINFO03010_SEARCH').serializeObject();
417
-			listObj.itp_STINFO03010_param = param;
418
 		},
391
 		},
419
 		back: function() {
392
 		back: function() {
420
-			$('#ITP_FORM_STINFO03010_SERVICE_ST_DT').val(this.itp_STINFO03010_param.serviceStDt);
421
-			$('#ITP_FORM_STINFO03010_SEARCH_BSNS_REG_NO').val(this.itp_STINFO03010_param.sbsnsRegNo);
422
-			$('#ITP_FORM_STINFO03010_SEARCH_SPPLY_NM').val(this.itp_STINFO03010_param.sspplyNm);
423
 		}
393
 		}
424
 	},
394
 	},
425
 	grid: {
395
 	grid: {
426
 		init: function () {
396
 		init: function () {
427
 			// 데이터 없을때
397
 			// 데이터 없을때
428
-			listObj.empty.push();
429
 			this.search();
398
 			this.search();
430
 		},
399
 		},
431
 		colModel: gridColModel.list,
400
 		colModel: gridColModel.list,

+ 1 - 1
src/main/webapp/main.html

@@ -62,7 +62,7 @@
62
 					<!--<span class="itp_logo"><img src="/oqpo-view/images/favicon.ico" alt="로고"></span>-->
62
 					<!--<span class="itp_logo"><img src="/oqpo-view/images/favicon.ico" alt="로고"></span>-->
63
 					<span class="itp_txt_brand" id="ITP_TXT_MAIN_SHR_TIMEOUT"></span>
63
 					<span class="itp_txt_brand" id="ITP_TXT_MAIN_SHR_TIMEOUT"></span>
64
 					<span class="itp_txt_brand" id="ITP_TXT_MAIN_SHR_BRAND"></span>
64
 					<span class="itp_txt_brand" id="ITP_TXT_MAIN_SHR_BRAND"></span>
65
-					<span class="itp_sch_brand"><button type="button" id="ITP_BTN_MAIN_SHR_AFFL" class="btn btn-success btn-sm SEB">브랜드그룹검색</button></span>
65
+					<span class="itp_sch_brand"><button type="button" id="ITP_BTN_MAIN_SHR_AFFL" class="btn btn-success btn-sm SEB">브랜드검색</button></span>
66
 					<span class="itp_out"><a href="javascript:void(0)" class="ITP_BTN_LOGOUT">로그아웃</a></span>
66
 					<span class="itp_out"><a href="javascript:void(0)" class="ITP_BTN_LOGOUT">로그아웃</a></span>
67
 				</div>
67
 				</div>
68
 			</div>
68
 			</div>