public bool ConfirmPass(int rid, string password, int type)
        {
            string empty = string.Empty;

            empty = ((type != 0) ? string.Format("WHERE RecordID={0} AND ReInsurePasswd='{1}'", rid, password) : string.Format("WHERE RecordID={0} AND ReLogonPasswd='{1}'", rid, password));
            int recordsCount = aideRecordPasswdExpendProvider.GetRecordsCount(empty);

            if (recordsCount > 0)
            {
                return(true);
            }
            return(false);
        }
Пример #2
0
        /// <summary>
        /// 确认密码
        /// </summary>
        /// <param name="rid">记录ID</param>
        /// <param name="password">需要确认的密码(密文)</param>
        /// <param name="type">密码类型,0为登录密码,1为银行密码</param>
        /// <returns></returns>
        public bool ConfirmPass(int rid, string password, int type)
        {
            string sqlWhere = string.Empty;

            if (type == 0)
            {
                sqlWhere = string.Format("WHERE RecordID={0} AND ReLogonPasswd='{1}'", rid, password);
            }
            else
            {
                sqlWhere = string.Format("WHERE RecordID={0} AND ReInsurePasswd='{1}'", rid, password);
            }
            int count = aideRecordPasswdExpendProvider.GetRecordsCount(sqlWhere);

            if (count > 0)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }