91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 42.75MB
    文件類型: .rar
    金幣: 1
    下載: 0 次
    發(fā)布日期: 2023-06-17
  • 語言: C#
  • 標(biāo)簽: C#??

資源簡介

這個(gè)代碼包括了圖書銷售系統(tǒng)的全部功能:登陸,前后臺管理,圖書信息的增刪改查,第三方支付,購物車等,讓你學(xué)會asp.net的三層架構(gòu)b/s開發(fā)等等技術(shù)點(diǎn)

資源截圖

代碼片段和文件信息

using?System;
using?System.Data;
using?System.Collections.Generic;
using?Maticsoft.Common;
using?Maticsoft.Model;
namespace?Maticsoft.BLL
{
///?
///?Books
///?

public?class?Books
{
private?readonly?Maticsoft.DAL.Books?dal=new?Maticsoft.DAL.Books();
public?Books()
{}
#region??Method

///?
///?得到最大ID
///?

public?int?GetMaxId()
{
return?dal.GetMaxId();
}

///?
///?是否存在該記錄
///?

public?bool?Exists(int?Id)
{
return?dal.Exists(Id);
}

///?
///?增加一條數(shù)據(jù)
///?

public?int??Add(Maticsoft.Model.Books?model)
{
return?dal.Add(model);
}

///?
///?更新一條數(shù)據(jù)
///?

public?bool?Update(Maticsoft.Model.Books?model)
{
return?dal.Update(model);
}

///?
///?刪除一條數(shù)據(jù)
///?

public?bool?Delete(int?Id)
{

return?dal.Delete(Id);
}
///?
///?刪除一條數(shù)據(jù)
///?

public?bool?DeleteList(string?Idlist?)
{
return?dal.DeleteList(Idlist?);
}

///?
///?得到一個(gè)對象實(shí)體
///?

public?Maticsoft.Model.Books?GetModel(int?Id)
{

return?dal.GetModel(Id);
}

///?
///?得到一個(gè)對象實(shí)體,從緩存中
///?

public?Maticsoft.Model.Books?GetModelByCache(int?Id)
{

string?CacheKey?=?“BooksModel-“?+?Id;
object?objModel?=?Maticsoft.Common.DataCache.GetCache(CacheKey);
if?(objModel?==?null)
{
try
{
objModel?=?dal.GetModel(Id);
if?(objModel?!=?null)
{
int?ModelCache?=?Maticsoft.Common.ConfigHelper.GetConfigInt(“ModelCache“);
Maticsoft.Common.DataCache.SetCache(CacheKey?objModel?DateTime.Now.AddMinutes(ModelCache)?TimeSpan.Zero);
}
}
catch{}
}
return?(Maticsoft.Model.Books)objModel;
}

///?
///?獲得數(shù)據(jù)列表
///?

public?DataSet?GetList(string?strWhere)
{
return?dal.GetList(strWhere);
}
///?
///?獲得前幾行數(shù)據(jù)
///?

public?DataSet?GetList(int?Topstring?strWherestring?filedOrder)
{
return?dal.GetList(TopstrWherefiledOrder);
}
///?
///?獲得數(shù)據(jù)列表
///?

public?List?GetModelList(string?strWhere)
{
DataSet?ds?=?dal.GetList(strWhere);
return?DataTableToList(ds.Tables[0]);
}
????????????///?
????????????///?搜索進(jìn)行
????????????///?

????????????///?
????????????///?

????????????????public?List?GetModellistbysearch(string?key)
????????????????{
????????????????????DataSet?ds?=?dal.GetListbyearch(key);
????????????????????return?DataTableToList(ds.Tables[0]);
????????????????}

????????????///?
????????????///?分頁
????????????///?

????????????///?
????????????///?
????????????????public?

?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----

?????文件????1048576??2013-01-08?23:47??bookshop_log.ldf

?????文件??????40960??2011-03-11?17:44??bookshop\bin\LTP.Accounts.dll

?????文件??????24576??2011-03-11?17:44??bookshop\bin\LtpPageControl.dll

?????文件??????36864??2012-12-02?10:39??bookshop\bin\Maticsoft.BLL.dll

?????文件??????97792??2012-12-02?10:39??bookshop\bin\Maticsoft.BLL.pdb

?????文件??????96256??2011-03-11?17:44??bookshop\bin\Maticsoft.Common.dll

?????文件??????57344??2012-12-02?10:39??bookshop\bin\Maticsoft.DAL.dll

?????文件??????97792??2012-12-02?10:39??bookshop\bin\Maticsoft.DAL.pdb

?????文件??????61440??2012-12-02?10:39??bookshop\bin\Maticsoft.DBUtility.dll

?????文件?????165376??2012-12-02?10:39??bookshop\bin\Maticsoft.DBUtility.pdb

?????文件??????24576??2012-12-02?10:39??bookshop\bin\Maticsoft.Model.dll

?????文件??????75264??2012-12-02?10:39??bookshop\bin\Maticsoft.Model.pdb

?????文件??????28672??2012-12-02?10:39??bookshop\bin\Maticsoft.Web.dll

?????文件??????97792??2012-12-02?10:39??bookshop\bin\Maticsoft.Web.pdb

?????文件?????186688??2011-03-11?17:44??bookshop\bin\Microsoft.Web.UI.WebControls.dll

?????文件?????274432??2011-03-11?17:44??bookshop\bin\MySql.Data.dll

?????文件??????36864??2013-01-19?20:22??bookshop\BLL\bin\Debug\Maticsoft.BLL.dll

?????文件??????91648??2013-01-19?20:22??bookshop\BLL\bin\Debug\Maticsoft.BLL.pdb

?????文件??????96256??2011-03-11?17:44??bookshop\BLL\bin\Debug\Maticsoft.Common.dll

?????文件??????57344??2013-01-19?20:22??bookshop\BLL\bin\Debug\Maticsoft.DAL.dll

?????文件??????89600??2013-01-19?20:22??bookshop\BLL\bin\Debug\Maticsoft.DAL.pdb

?????文件??????61440??2013-01-19?20:22??bookshop\BLL\bin\Debug\Maticsoft.DBUtility.dll

?????文件?????159232??2013-01-19?20:22??bookshop\BLL\bin\Debug\Maticsoft.DBUtility.pdb

?????文件??????24576??2013-01-19?20:22??bookshop\BLL\bin\Debug\Maticsoft.Model.dll

?????文件??????67072??2013-01-19?20:22??bookshop\BLL\bin\Debug\Maticsoft.Model.pdb

?????文件?????274432??2011-03-11?17:44??bookshop\BLL\bin\Debug\MySql.Data.dll

?????文件???????6738??2013-01-18?14:40??bookshop\BLL\BLL.csproj

?????文件???????2504??2013-01-18?14:40??bookshop\BLL\BLL.csproj.user

?????文件???????6198??2013-01-22?11:10??bookshop\BLL\Books.cs

?????文件???????5369??2013-01-25?15:14??bookshop\BLL\Cart.cs

............此處省略3766個(gè)文件信息

評論

共有 條評論