瀏覽代碼

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

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 404
 	view: function() {
405 405
 		// 사용자명
406
+		console.log("====================");
407
+		console.log(this.get('authTpCd'));
406 408
 		$('#ITP_LOGIN_USER').text(this.get('userNm'));
407 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 420
 	button: function() {
413 421
 		var _this = this;

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

@@ -191,7 +191,6 @@ let pageObj = {
191 191
 		},
192 192
 		grid: function() {
193 193
 			itp_fn_jqgrid_resize(STINFO03010_GRID_ID, STINFO03010_GRID_LIST, 'lg');
194
-			listObj.empty.init();
195 194
 			itp_fn_fire_window_resize();
196 195
 		},
197 196
 		ready: function() {
@@ -334,23 +333,6 @@ let pageObj = {
334 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 337
 			itp_fn_grid_make_local(option);
356 338
 		},
@@ -403,29 +385,16 @@ let listObj = {
403 385
 	},
404 386
 	empty: {
405 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 389
 		itp_STINFO03010_param: {},
415 390
 		push: function() {
416
-			let param = $('#ITP_FORM_STINFO03010_SEARCH').serializeObject();
417
-			listObj.itp_STINFO03010_param = param;
418 391
 		},
419 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 395
 	grid: {
426 396
 		init: function () {
427 397
 			// 데이터 없을때
428
-			listObj.empty.push();
429 398
 			this.search();
430 399
 		},
431 400
 		colModel: gridColModel.list,

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

@@ -62,7 +62,7 @@
62 62
 					<!--<span class="itp_logo"><img src="/oqpo-view/images/favicon.ico" alt="로고"></span>-->
63 63
 					<span class="itp_txt_brand" id="ITP_TXT_MAIN_SHR_TIMEOUT"></span>
64 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 66
 					<span class="itp_out"><a href="javascript:void(0)" class="ITP_BTN_LOGOUT">로그아웃</a></span>
67 67
 				</div>
68 68
 			</div>