日期:2014-05-19  浏览次数:20774 次

"Business.UserBusiness"并不包含"RegUser"的定义
代码如下:


UserBusiness.cs

using   System;
using   System.Collections.Generic;
using   System.Text;
using   UserDataAccess;
using   System.Data;

namespace   Business
{
        public   class   UserBusiness
        {
                public   static   bool   Login(string   userName,   string   pwd)
                {
                        UserDataAccess.UserDataAccess   userDA   =   new   UserDataAccess.UserDataAccess();
                        DataTable   userDT   =   userDA.getUser(userName);
                        if   (userDT.Rows.Count   >   0)
                        {
                                if   (userDT.Rows[ "PassWord "]   ==   pwd.Trim())
                                {
                                        return   true;
                                }
                                else
                                {
                                        return   false;
                                }
                        }
                        return   false;
                }
                public   static   bool   RegUser(string   userName,   string   realName,   string   passWord,   string   email)
                {
                       
                        if   (userName   !=   null   &&   passWord   !=   null   &&   email   !=   null)
                        {
                                DateTime   createTime   =   DateTime.Now;
                            &