Esempio n. 1
0
        public string sfzhIsHave(string sfzh)
        {
            String re = string.Empty;

            using (StudentsUserBLL bll = new StudentsUserBLL())
            {
                re = bll.isHaveBySfzh(sfzh) == false ? "true" : "该身份证号已经注册,请使用找回用户名或密码";
            }
            if (re == "true")
            {
                IDCardValidation idval = new IDCardValidation();
                re = idval.CheckIDCard18(sfzh) == false ? "身份证号码格式不正确,请检查":re;
            }
            return(re);
        }
Esempio n. 2
0
        public string isHavaBySfzh(string sfzh)
        {
            string re = string.Empty;

            using (StudentsUserBLL bll = new StudentsUserBLL())
            {
                re = bll.isHaveBySfzh(sfzh) == false ? "true" : "改身份证号已经注册,请使用找回用户名或密码";
            }
            if (re == "true")
            {
                IDCardValidation idval = new IDCardValidation();
                //if (idval.CheckIDCard18(sfzh) == false)
                //{
                //    re = "身份证号格式不正确,请检查!";
                //}
                re = idval.CheckIDCard18(sfzh) == false ? "身份证号格式不正确,请检查!" : re;
            }
            return(re);
        }