//验证用户名唯一 public Common.ClientResult.Result CheckCertificateNumber(string CertificateNumber, string types) { IBLL.IEmployeeBLL m_BLL = new EmployeeBLL(); Common.ClientResult.Result result = new Common.ClientResult.Result(); int count = m_BLL.CheckCertificateNumber(CertificateNumber); if (count == 0) { if (types == "1") { if (Common.CardCommon.CheckCardID18(CertificateNumber) == false) { result.Code = Common.ClientCode.Fail; result.Message = "证件号不正确请重新输入"; } else { result.Code = Common.ClientCode.FindNull; result.Message = "该用户可以使用!"; } } else { result.Code = Common.ClientCode.FindNull; result.Message = "该用户可以使用!"; } } else { result.Code = Common.ClientCode.Succeed; result.Message = "该用户已存在!"; } return(result); }