|
|
@@ -207,6 +207,58 @@ var cfnCreateMultiCombo = function(actionUrl, oTarget, defaultTxt, chooseValArr,
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+/**
|
|
|
+ * @type : function
|
|
|
+ * @access : public
|
|
|
+ * @desc : Combobox 구성
|
|
|
+ * <pre>
|
|
|
+ * cfnCreateDelvPolicyCombo("3", oTarget, "[선택]");
|
|
|
+ * </pre>
|
|
|
+ * @param : supplyCompCd - 업체코드. 필수
|
|
|
+ * oTarget - target 오브젝트. 필수
|
|
|
+ * defaultTxt - default 텍스트([선택]/[전체]). option
|
|
|
+ * chooseCd - 선택된 코드 값. option
|
|
|
+ * isCodeDisp - 코드표시(true/false). option
|
|
|
+ * @return : None
|
|
|
+ * @since : 2021/07/19
|
|
|
+ * @author : eskim
|
|
|
+ */
|
|
|
+var cfnCreateDelvPolicyCombo = function(supplyCompCd, oTarget, defaultTxt, chooseCd, isCodeDisp) {
|
|
|
+ if (gagajf.isNull(isCodeDisp)) isCodeDisp = true;
|
|
|
+
|
|
|
+ var actionUrl = '/renderer/delvPolicy/list/' + supplyCompCd;
|
|
|
+ $.getJSON(actionUrl
|
|
|
+ , function(result, status) {
|
|
|
+ if (status == 'success') {
|
|
|
+ $('option', oTarget).remove();
|
|
|
+
|
|
|
+ if (!gagajf.isNull(defaultTxt)) {
|
|
|
+ $(oTarget).append('<option value="">' + defaultTxt + '</option>');
|
|
|
+ }
|
|
|
+
|
|
|
+ $.each(result, function(idx, data) {
|
|
|
+ var tag = '<option value="' + data.delvFeeCd + '"';
|
|
|
+
|
|
|
+ if (!gagajf.isNull(chooseCd) && chooseCd == data.delvFeeCd) {
|
|
|
+ tag += ' selected';
|
|
|
+ }
|
|
|
+
|
|
|
+ tag += ' minOrdAmt="' + data.minOrdAmt+ '"' ;
|
|
|
+ tag += ' delvFee="' + data.delvFee+ '"' ;
|
|
|
+
|
|
|
+ if (isCodeDisp) {
|
|
|
+ tag += '>[' + data.delvFeeCd + '] ' + data.delvFeeNm + '</option>';
|
|
|
+ } else {
|
|
|
+ tag += '>' + data.delvFeeNm + '</option>';
|
|
|
+ }
|
|
|
+
|
|
|
+ $(oTarget).append(tag);
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
/**
|
|
|
* @type : function
|
|
|
* @access : public
|