资源简介
一个优秀的基于C#+ASP.NET多层结构开发的电子商城系统源程序代码。
代码片段和文件信息
//------------------------------------------------------------------------------
// The contents of this file are subject to the nopCommerce Public License Version 1.0 (“License“); you may not use this file except in compliance with the License.
// You may obtain a copy of the License at http://www.nopCommerce.com/License.aspx.
//
// Software distributed under the License is distributed on an “AS IS“ basis WITHOUT WARRANTY OF ANY KIND either express or implied.
// See the License for the specific language governing rights and limitations under the License.
//
// The Original Code is nopCommerce.
// The Initial Developer of the Original Code is NopSolutions.
// All Rights Reserved.
//
// Contributor(s): _______.
//------------------------------------------------------------------------------
using System;
using System.Collections.Generic;
using System.Text;
using System.Web;
using System.Threading;
using NopSolutions.NopCommerce.Common.Caching;
using NopSolutions.NopCommerce.Common.Configuration;
using NopSolutions.NopCommerce.Common.BLL.Entities;
using System.Collections.Specialized;
using NopSolutions.NopCommerce.Common.BLL.Managers;
using NopSolutions.NopCommerce.Common.BLL.EntityCollections;
using NopSolutions.NopCommerce.Common.Utils;
using NopSolutions.NopCommerce.Common.Localization;
using System.Globalization;
namespace NopSolutions.NopCommerce.Common
{
///
/// Represents a NopContext
///
public class NopContext
{
#region Constants
private const string CONST_CUSTOMERSESSION = “Nop.CustomerSession“;
private const string CONST_CUSTOMERSESSIONCOOKIE = “Nop.CustomerSessionGUIDCookie“;
#endregion
#region Fields
private Customer _CurrentCustomer;
private bool _IsAdmin;
private HttpContext context = HttpContext.Current;
#endregion
#region Ctor
///
/// Creates a new instance of the NopContext class
///
private NopContext()
{
}
#endregion
#region Methods
///
/// Save customer session to data source
///
/// Saved customer ssion
private CustomerSession SaveSessionToDatabase()
{
Guid sessionId = Guid.NewGuid();
while (CustomerSessionManager.GetByCustomerSessionGUID(sessionId) != null)
sessionId = Guid.NewGuid();
CustomerSession session = new CustomerSession();
int CustomerID = 0;
if (this.User != null)
{
CustomerID = this.User.CustomerID;
}
session.CustomerSessionGUID = sessionId;
session.CustomerID = CustomerID;
session.LastAccessed = DateTime.Now;
session.IsExpired = false;
session = CustomerSessio
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 1007 2008-09-20 15:40 Nop.Payment.PayPal\app.config
文件 161192 2007-05-11 20:09 Nop.Payment.PayPal\bin\Debug\Microsoft.Practices.EnterpriseLibrary.Common.dll
文件 434498 2007-05-22 08:50 Nop.Payment.PayPal\bin\Debug\Microsoft.Practices.EnterpriseLibrary.Common.xm
文件 91560 2007-05-11 20:08 Nop.Payment.PayPal\bin\Debug\Microsoft.Practices.EnterpriseLibrary.Data.dll
文件 201163 2007-05-22 08:50 Nop.Payment.PayPal\bin\Debug\Microsoft.Practices.EnterpriseLibrary.Data.xm
文件 64352 2007-05-22 08:47 Nop.Payment.PayPal\bin\Debug\Microsoft.Practices.ob
文件 367616 2008-11-24 22:02 Nop.Payment.PayPal\bin\Debug\Nop.Common.dll
文件 1347072 2008-11-24 22:02 Nop.Payment.PayPal\bin\Debug\Nop.Common.pdb
文件 476780 2008-11-24 22:02 Nop.Payment.PayPal\bin\Debug\Nop.Common.xm
文件 294912 2008-11-24 22:02 Nop.Payment.PayPal\bin\Debug\Nop.Payment.PayPal.dll
文件 1007 2008-09-20 15:40 Nop.Payment.PayPal\bin\Debug\Nop.Payment.PayPal.dll.config
文件 796160 2008-11-24 22:02 Nop.Payment.PayPal\bin\Debug\Nop.Payment.PayPal.pdb
文件 418896 2008-11-24 22:02 Nop.Payment.PayPal\bin\Debug\Nop.Payment.PayPal.xm
文件 11176 2008-11-17 15:05 Nop.Payment.PayPal\Nop.Payment.PayPal.csproj
文件 4238 2008-12-26 09:42 Nop.Payment.PayPal\obj\Debug\Nop.Payment.PayPal.csproj.FileListAbsolute.txt
文件 294912 2008-11-24 22:02 Nop.Payment.PayPal\obj\Debug\Nop.Payment.PayPal.dll
文件 796160 2008-11-24 22:02 Nop.Payment.PayPal\obj\Debug\Nop.Payment.PayPal.pdb
文件 189440 2008-11-16 00:46 Nop.Payment.PayPal\obj\Debug\Refactor\Nop.Payment.PayPal.dll
文件 286720 2008-10-01 19:01 Nop.Payment.PayPal\obj\Debug\TempPE\Web References.PayPalSvc.Reference.cs.dll
文件 15827 2008-11-17 15:15 Nop.Payment.PayPal\PayPalDirectPaymentProcessor.cs
文件 15292 2008-11-17 15:16 Nop.Payment.PayPal\PayPalExpressPaymentProcessor.cs
文件 2873 2008-11-17 15:11 Nop.Payment.PayPal\PaypalPayer.cs
文件 9323 2008-11-18 15:49 Nop.Payment.PayPal\PayPalStandardPaymentProcessor.cs
文件 1448 2008-09-20 15:29 Nop.Payment.PayPal\Properties\AssemblyInfo.cs
文件 1739 2008-10-01 19:01 Nop.Payment.PayPal\Properties\Settings.Designer.cs
文件 544 2008-09-20 15:40 Nop.Payment.PayPal\Properties\Settings.settings
文件 1370 2008-11-17 15:07 Nop.Payment.PayPal\TransactMode.cs
文件 695 2008-10-01 19:01 Nop.Payment.PayPal\Web References\PayPalSvc\AddressVerifyResponseType.datasource
文件 685 2008-10-01 19:01 Nop.Payment.PayPal\Web References\PayPalSvc\BAUpdateResponseType.datasource
文件 711 2008-10-01 19:01 Nop.Payment.PayPal\Web References\PayPalSvc\BillOutstandingAmountResponseType.datasource
............此处省略1893个文件信息
- 上一篇:C# 通过 OPC连接plc,读取数据。
- 下一篇:SportsStore.zip
评论
共有 条评论