diff --git a/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc04010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc04010-main.jsp
index 197d260a..9ffc9507 100644
--- a/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc04010-main.jsp
+++ b/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc04010-main.jsp
@@ -140,7 +140,7 @@
+ class="form-control" type="text" maxlength="6" data-maxlengthb="6" data-fmt-type="zeroLpadNumber" />
diff --git a/src/main/webapp/resources/js/fims/framework/cmm/cmmUtil.js b/src/main/webapp/resources/js/fims/framework/cmm/cmmUtil.js
index 8b68f242..a0ff2c9c 100644
--- a/src/main/webapp/resources/js/fims/framework/cmm/cmmUtil.js
+++ b/src/main/webapp/resources/js/fims/framework/cmm/cmmUtil.js
@@ -37,6 +37,13 @@ function customValidate(targetArr) {
return false;
}
}
+
+ if(input.dataset.fmtType == "zeroLpadNumber"){
+ if(!isDigitString(input.value)){
+ handler.typeMismatch(input);
+ return false;
+ }
+ }
}
}
@@ -52,6 +59,15 @@ function isNumber(str, exceptChar) {
return (/^-?(?:\d+|\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/).test(str.replaceAll(exceptChar,"")) ? true : false;
};
+/**
+ * 문자열이 숫자형문자 인지의 여부를 반환한다.(0~9만 허용)
+ * @param
+ * @return 숫자형문자 여부
+ */
+function isDigitString(str) {
+ return (/^[0-9]+$/).test(str) ? true : false;
+};
+
// 시간체크
function isTime(str) {