資源簡介
共享些東東,北大青鳥第三波書店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個文件信息
評論
共有 條評論