<오류수정>
1. PMS NO : NULL
2. (주요)작업내용
(1) BO/Views/user/ur.cshtml
- 주민등록번호 저장시 - 문자 제거
(2) Base/Controller/ACommon.cs
BO/Content/file/users.xlsx
- 사용자등록시 소속정보 필수값 처리
This commit is contained in:
parent
32c9e245ee
commit
bed5d09284
Binary file not shown.
|
|
@ -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, "핸드폰 번호를 입력해주세요")) { }
|
||||
|
|
|
|||
|
|
@ -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 = "" });
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue