asp.net网上书店系统
asp.net网上书店系统 asp.net网上书店系统
代码片段和文件信息
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 2883 2004-11-09 15:30 SHOPCodeResourceBLLAccount.cs
文件 288 2004-11-09 15:30 SHOPCodeResourceBLLAssemblyInfo.cs
文件 5778 2004-11-09 15:15 SHOPCodeResourceBLLBLL.csproj
文件 1805 2004-12-06 20:08 SHOPCodeResourceBLLBLL.csproj.user
文件 3571 2004-11-09 15:30 SHOPCodeResourceBLLCart.cs
文件 1331 2004-11-09 15:30 SHOPCodeResourceBLLInventory.cs
文件 1532 2004-11-09 15:29 SHOPCodeResourceBLLItem.cs
..A..H. 22280 2004-12-06 20:08 SHOPCodeResourceBLLobjDebugBLL.projdata
..A..H. 30088 2004-12-06 20:08 SHOPCodeResourceBLLobjReleaseBLL.projdata
文件 20480 2004-11-23 22:20 SHOPCodeResourceBLLobjReleaseBookShop.BLL.dll
文件 20480 2004-11-09 15:10 SHOPCodeResourceBLLobjReleasePetShop.BLL.dll
文件 2509 2004-11-09 15:29 SHOPCodeResourceBLLOrderInsert.cs
文件 1043 2004-11-09 15:29 SHOPCodeResourceBLLOrderRead.cs
文件 1625 2004-11-09 15:29 SHOPCodeResourceBLLProduct.cs
文件 863 2004-11-09 15:29 SHOPCodeResourceBLLProfile.cs
文件 999936 2004-11-09 20:58 SHOPCodeResourceBookShopdbBookShopOrders
文件 19456 2004-11-09 20:48 SHOPCodeResourceBookShop.ncb
文件 6405 2004-12-06 19:58 SHOPCodeResourceBookShop.sln
文件 596 2002-11-17 18:55 SHOPCodeResourceBookShop.snk
..A..H. 14848 2004-12-06 20:08 SHOPCodeResourceBookShop.suo
文件 340 2004-12-06 20:08 SHOPCodeResourceBookShop_Model.tgs
文件 36 2004-12-06 20:08 SHOPCodeResourceBookShop_Model.tgw
文件 652 2004-11-09 15:30 SHOPCodeResourceDALFactoryAccount.cs
文件 123 2004-11-09 15:29 SHOPCodeResourceDALFactoryAssemblyInfo.cs
文件 16384 2004-11-23 22:20 SHOPCodeResourceDALFactoryinReleaseBookShop.DAL.dll
文件 16384 2004-11-23 22:20 SHOPCodeResourceDALFactoryinReleaseBookShop.IDAL.dll
文件 24576 2004-11-23 22:20 SHOPCodeResourceDALFactoryinReleaseBookShop.Model.dll
文件 16384 2004-11-09 15:10 SHOPCodeResourceDALFactoryinReleasePetShop.DAL.dll
文件 16384 2004-11-09 15:10 SHOPCodeResourceDALFactoryinReleasePetShop.IDAL.dll
文件 5258 2004-11-09 15:15 SHOPCodeResourceDALFactoryDALFactory.csproj
............此处省略378个文件信息
using System;
//References to PetShop specific libraries
//PetShop busines entity library
using BookShop.Model;
//PetShop DAL interfaces
using BookShop.IDAL;
namespace BookShop.BLL {
///
/// A business Component used to manage accounts
/// The BookShop.Model.Account is used in most methods
/// and is used to store serializable information about an account
///
public class Account {
///
/// Method to login into the system. The user must supply a username and password
///
/// Unique identifier for a user
/// Password for a user
/// If the login is successful it returns information abount the account
public AccountInfo SignIn(string userId string password) {
// Validate input
if ((userId.Trim() == string.Empty) || (password.Trim() == string.Empty))
return null;
// Get an instance of the account DAL using the DALFactory
IAccount dal = BookShop.DALFactory.Account.Create();
// Try to sign in with the given credentials
AccountInfo account = dal.SignIn(userId password);
// Return the account
return account;
}
///
/// Returns the address information for a specific user
///
/// Unique identifier for an account/customer
/// Returns the address information for the user
public AddressInfo GetAddress(string userId) {
// Validate input
if (userId.Trim() == string.Empty)
return null;
// Get an instance of the account DAL using the DALFactory
IAccount dal = BookShop.DALFactory.Account.Create();
// Return the address information for the given userId from the DAL
return dal.GetAddress(userId);
}
///
/// A method to insert a new Account
///
/// An account entity with information about the new account
public void Insert(AccountInfo account) {
// Validate input
if (account.UserId.Trim() == string.Empty)
return;
// Get an instance of the account DAL using the DALFactory
IAccount dal = BookShop.DALFactory.Account.Create();
// Call the DAL to insert the account
dal.Insert(account);
}
///
/// A method to update an existing account
///
/// An account entity with information about the account to be updated
public void Update(AccountInfo account) {
// Validate input
if (account.UserId.Trim() == string.Empty)
return;
// Get an instance of the account DAL using the DALFactory
IAccount dal = BookShop.DALFactory.Account.Create();
// Send the udpated account information to the DAL
dal.Update(account);
}
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 2883 2004-11-09 15:30 SHOPCodeResourceBLLAccount.cs
文件 288 2004-11-09 15:30 SHOPCodeResourceBLLAssemblyInfo.cs
文件 5778 2004-11-09 15:15 SHOPCodeResourceBLLBLL.csproj
文件 1805 2004-12-06 20:08 SHOPCodeResourceBLLBLL.csproj.user
文件 3571 2004-11-09 15:30 SHOPCodeResourceBLLCart.cs
文件 1331 2004-11-09 15:30 SHOPCodeResourceBLLInventory.cs
文件 1532 2004-11-09 15:29 SHOPCodeResourceBLLItem.cs
..A..H. 22280 2004-12-06 20:08 SHOPCodeResourceBLLobjDebugBLL.projdata
..A..H. 30088 2004-12-06 20:08 SHOPCodeResourceBLLobjReleaseBLL.projdata
文件 20480 2004-11-23 22:20 SHOPCodeResourceBLLobjReleaseBookShop.BLL.dll
文件 20480 2004-11-09 15:10 SHOPCodeResourceBLLobjReleasePetShop.BLL.dll
文件 2509 2004-11-09 15:29 SHOPCodeResourceBLLOrderInsert.cs
文件 1043 2004-11-09 15:29 SHOPCodeResourceBLLOrderRead.cs
文件 1625 2004-11-09 15:29 SHOPCodeResourceBLLProduct.cs
文件 863 2004-11-09 15:29 SHOPCodeResourceBLLProfile.cs
文件 999936 2004-11-09 20:58 SHOPCodeResourceBookShopdbBookShopOrders
文件 19456 2004-11-09 20:48 SHOPCodeResourceBookShop.ncb
文件 6405 2004-12-06 19:58 SHOPCodeResourceBookShop.sln
文件 596 2002-11-17 18:55 SHOPCodeResourceBookShop.snk
..A..H. 14848 2004-12-06 20:08 SHOPCodeResourceBookShop.suo
文件 340 2004-12-06 20:08 SHOPCodeResourceBookShop_Model.tgs
文件 36 2004-12-06 20:08 SHOPCodeResourceBookShop_Model.tgw
文件 652 2004-11-09 15:30 SHOPCodeResourceDALFactoryAccount.cs
文件 123 2004-11-09 15:29 SHOPCodeResourceDALFactoryAssemblyInfo.cs
文件 16384 2004-11-23 22:20 SHOPCodeResourceDALFactoryinReleaseBookShop.DAL.dll
文件 16384 2004-11-23 22:20 SHOPCodeResourceDALFactoryinReleaseBookShop.IDAL.dll
文件 24576 2004-11-23 22:20 SHOPCodeResourceDALFactoryinReleaseBookShop.Model.dll
文件 16384 2004-11-09 15:10 SHOPCodeResourceDALFactoryinReleasePetShop.DAL.dll
文件 16384 2004-11-09 15:10 SHOPCodeResourceDALFactoryinReleasePetShop.IDAL.dll
文件 5258 2004-11-09 15:15 SHOPCodeResourceDALFactoryDALFactory.csproj
............此处省略378个文件信息
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。
评论列表(条)