资源简介
共享些东东,北大青鸟第三波书店MyBookShop
代码片段和文件信息
using System;
using System.Collections.Generic;
using System.Text;
using DAL;
using Models;
namespace BLL
{
public static partial class BookManager
{
#region 查
///
/// 查询图书列表
/// 包含了分类的查询
/// 和有无排序的条件
///
/// 查询条件:分类。小于1时代表不分类
/// 排序条件,为空则不排序
///
public static IList GetOrderedSmallBooksByCategoryId(int categoryId string order)
{
return BookService.GetPartialBooksBySql(categoryId order);
}
///
/// 搜索图书
///
///
///
public static IList SearchBooks(string keyword string order)
{
return BookService.SearchBooks(keyword order);
}
///
/// 返回Rss所用的图书列表
///
///
public static IList GetNewBooks()
{
return BookService.GetNewBooks();
}
#endregion
#region 改
///
/// 更新图书分类
///
///
///
///
public static void ModifyCatagory(string ids string catagory)
{
BookService.ModifyCatagory(ids catagory);
}
///
/// 专为图书修改页提供的图书更新
///
/// tle“>
///
///
/// ription“>
///
///
///
///
/// ription“>
///
///
public static void ModifyBook(string title int Publisherid int WordsCount string AurhorDescription decimal UnitPrice string author string TOC DateTime PublishDate string ContentDescription string editorComment int id)
{
//防止传入null,导致连锁反应,引发sql语句异常
if (AurhorDescription == null)
AurhorDescription = ““;
if (ContentDescription == null)
ContentDescription = ““;
if (ContentDescription == null)
ContentDescription = ““;
if (editorComment == null)
editorComment = ““;
if (ContentDescription == null)
ContentDescription = ““;
if (editorComment == null)
editorComment = ““;
if (TOC == null)
TOC = ““;
B
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 753664 2006-07-18 20:21 MyBookShop\Bin\FreeTextBox.dll
文件 32768 2006-02-09 09:58 MyBookShop\Bin\WebValidates.dll
文件 781 2009-06-14 15:34 MyBookShop\BLL\Auto Generated Code\BookManager.cs
文件 1023 2009-06-14 15:35 MyBookShop\BLL\Auto Generated Code\CategoryManager.cs
文件 928 2009-06-14 15:35 MyBookShop\BLL\Auto Generated Code\OrderManager.cs
文件 1054 2009-06-14 15:35 MyBookShop\BLL\Auto Generated Code\PublisherManager.cs
文件 1176 2009-06-14 15:36 MyBookShop\BLL\Auto Generated Code\SearchKeywordManager.cs
文件 1189 2009-06-14 15:36 MyBookShop\BLL\Auto Generated Code\UserManager.cs
文件 1138 2009-06-14 15:37 MyBookShop\BLL\Auto Generated Code\UserRoleManager.cs
文件 1172 2009-06-14 15:37 MyBookShop\BLL\Auto Generated Code\UserStateManager.cs
文件 24576 2009-07-03 18:30 MyBookShop\BLL\bin\Debug\BLL.dll
文件 60928 2009-07-03 18:30 MyBookShop\BLL\bin\Debug\BLL.pdb
文件 49152 2009-07-03 18:30 MyBookShop\BLL\bin\Debug\DAL.dll
文件 110080 2009-07-03 18:30 MyBookShop\BLL\bin\Debug\DAL.pdb
文件 24576 2009-07-03 17:48 MyBookShop\BLL\bin\Debug\Models.dll
文件 56832 2009-07-03 17:48 MyBookShop\BLL\bin\Debug\Models.pdb
文件 20480 2009-07-03 18:30 MyBookShop\BLL\bin\Release\BLL.dll
文件 46592 2009-07-03 18:30 MyBookShop\BLL\bin\Release\BLL.pdb
文件 49152 2009-07-03 18:30 MyBookShop\BLL\bin\Release\DAL.dll
文件 89600 2009-07-03 18:30 MyBookShop\BLL\bin\Release\DAL.pdb
文件 20480 2009-07-03 18:30 MyBookShop\BLL\bin\Release\Models.dll
文件 50688 2009-07-03 18:30 MyBookShop\BLL\bin\Release\Models.pdb
文件 3030 2009-06-14 15:38 MyBookShop\BLL\BLL.csproj
文件 5677 2009-07-01 14:34 MyBookShop\BLL\BookManager.cs
文件 669 2009-06-14 15:29 MyBookShop\BLL\CategoryManager.cs
文件 418 2009-07-03 18:30 MyBookShop\BLL\obj\BLL.csproj.FileList.txt
文件 24576 2009-07-03 18:30 MyBookShop\BLL\obj\Debug\BLL.dll
文件 60928 2009-07-03 18:30 MyBookShop\BLL\obj\Debug\BLL.pdb
文件 5607 2009-07-03 18:30 MyBookShop\BLL\obj\Debug\ResolveAssemblyReference.cache
文件 20480 2009-07-03 18:30 MyBookShop\BLL\obj\Release\BLL.dll
............此处省略1202个文件信息
评论
共有 条评论