diff --git a/BO/Content/file/users.xlsx b/BO/Content/file/users.xlsx index e12db9c..1637234 100644 Binary files a/BO/Content/file/users.xlsx and b/BO/Content/file/users.xlsx differ diff --git a/BO/Views/user/ur.cshtml b/BO/Views/user/ur.cshtml index 7bf95bb..09506c3 100644 --- a/BO/Views/user/ur.cshtml +++ b/BO/Views/user/ur.cshtml @@ -451,14 +451,15 @@ }); function save() { - setv("User_userpno", val("userpno1")+"-"+ val("userpno2")); + setv("User_userpno", val("userpno1")+val("userpno2")); setv("User_mobile", formatmobile(val("User_mobile"))); setv("User_telno", formatphone(val("User_telno"))); if (val("User_usertype") == "0" || val("User_usertype") == "") { focus("User_usertype");msg("권한을 선택해주세요."); } else if (check("User_userid", null, "ID를 입력해주세요.")) { } else if (val("User_userid").length < 6) {focus("User_userid"); msg("ID를 6글자 이상으로 입력해주세요.");} else if (val("User_userno") == '0' && !ispassword(val("User_userpass"))) { focus("User_userpass"); msg("6글자이상의 비밀번호를 입력해주세요."); } - else if (val("userpno1") != null && val("userpno2") == null) {focus("userpno2");msg("주민등록번호를 제대로 입력해주세요.");} + else if (val("userpno1") != null && val("userpno2") == null) { focus("userpno2"); msg("주민등록번호를 제대로 입력해주세요."); } + else if ((val("userpno1") != null && val("userpno2") != null) && $("#User_userpno").val().length < 13) { focus("userpno2"); msg("주민등록번호를 제대로 입력해주세요."); } else if (check("User_username", null, "이름을 입력해주세요.")) { } else if (('@Model.viewname' == 'professor' || '@Model.viewname' == 'user') && check("User_email",null,"이메일을 입력해주세요")) { } else if (('@Model.viewname' == 'professor' || '@Model.viewname' == 'user') && check("User_mobile", null, "핸드폰 번호를 입력해주세요")) { } diff --git a/Base/Controller/ACommon.cs b/Base/Controller/ACommon.cs index 60b5b0d..9fbbf94 100644 --- a/Base/Controller/ACommon.cs +++ b/Base/Controller/ACommon.cs @@ -1052,7 +1052,7 @@ namespace NP.Base.Controllers //{ // return JsonBack(new JsonRtn() { code = 1, msg = "1000개 이하의 데이터만 업로드해주세요.", obj = "" }); //} - if (data.Where(w => string.IsNullOrEmpty(w.username) || string.IsNullOrEmpty(w.userid) || string.IsNullOrEmpty(w.email) || string.IsNullOrEmpty(w.mobile)).Count() > 0) + if (data.Where(w => string.IsNullOrEmpty(w.username) || string.IsNullOrEmpty(w.userid) || string.IsNullOrEmpty(w.email) || string.IsNullOrEmpty(w.mobile) || string.IsNullOrEmpty(w.asno2)).Count() > 0) { return JsonBack(new JsonRtn() { code = 1, msg = "이름/ID/이메일/핸드폰은 필수입력입니다. 확인 후 다시 업로드해주세요. ", obj = "" }); }