Преглед изворни кода

사용자 조회 ëì시 업체를 벤더로 변경

yujung пре 4 година
родитељ
комит
b738c8b1da

+ 3 - 0
src/main/java/com/style24/persistence/mybatis/shop/TsaSystem.xml

@@ -88,6 +88,9 @@
 		<if test="useYn != null and useYn != ''">
 		AND    A.USE_YN  = #{useYn}
 		</if>
+		<if test="supplyVendorCd != null and supplyVendorCd != ''">
+		AND    A.ROLE_REF_VAL = #{supplyVendorCd}
+		</if>
 		<if test="supplyCompCd != null and supplyCompCd != ''">
 		AND    A.ROLE_REF_VAL = (SELECT SUPPLY_VENDOR_CD
 		                         FROM   TB_SUPPLY_COMPANY

+ 13 - 5
src/main/webapp/WEB-INF/views/system/UserForm.html

@@ -40,16 +40,16 @@
 						<col style="width:10%;"/>
 					</colgroup>
 					<tr>
-						<th>업체</th>
+						<th>입점벤더</th>
 						<td>
 <!-- 							<select name="supplyCompCd"> -->
 <!-- 								<option th:if="${sessionInfo.supplyCompCd == null}" value="">[전체]</option> -->
 <!-- 								<option th:if="${supplyCompList}" th:each="oneData, status : ${supplyCompList}" th:value="${oneData.cd}" th:text="${'[' + oneData.cd + '] ' + oneData.cdNm}"></option> -->
 <!-- 							</select> -->
-							<input type="text" class="w100" name="supplyCompSearchTxt" id="supplyCompSearchTxt" maxlength="20"/>
-							<button type="button" class="btn icn" onclick="cfnOpenCompanyListPopup('fnSetSupplyCompInfo', 'M');"><i class="fa fa-search"></i></button>
-							<span id="supplyCompTxt"></span>
-							<input type="hidden" name="supplyCompList"/>
+							<input type="text" class="w100" name="supplyVendorCd" id="supplyCompSearchTxt" maxlength="20"/>
+							<button type="button" class="btn icn" onclick="fnOpenSupplyVendorPopup('input[name=supplyVendorCd]', 'M');"><i class="fa fa-search"></i></button>
+<!--							<span id="supplyCompTxt"></span>-->
+<!--							<input type="hidden" name="supplyCompList"/>-->
 						</td>
 						<th>권한</th>
 						<td>
@@ -254,6 +254,14 @@
 		var actionUrl = "/system/user/menu/" + userNo;
 		cfnOpenModalPopup(actionUrl, "popupUserMenu");
 	}
+
+	// 공급벤더 팝업
+	var fnOpenSupplyVendorPopup = function(strReturnCode, strReturnName) {
+		var oParam = new Object();
+		oParam.returnCode = strReturnCode;
+		oParam.returnName = strReturnName;
+		cfnOpenSupplyVendorPopup($(strReturnName).val(), oParam);
+	}
 	
 	$(document).ready(function() {
 		// Create a agGrid