/// <summary> /// 登录方法 /// </summary> /// <param name="UserName">登录名称</param> /// <param name="pwd">登录密码</param> /// <returns></returns> public static int SelectLogin(string UserName, string pwd) { SqlParameter[] p1 = { new SqlParameter("@UserName", UserName), new SqlParameter("@pwd", pwd) }; string sql = "select count(*) from Customer where State=0 and LoginName = @UserName and Password =@pwd "; return(DBHelper.ExcuteReadCount(sql, p1)); }