资源简介

游戏点卡销售管理系统源码 一个游戏点卡销售管理系统,用户可以在前台注册并经过管理员审核后在线购买游戏点卡,采用面向对象模式开发 后台超级管理员登录后可以进行用户管理、点卡管理、投诉处理等

资源截图

代码片段和文件信息

/*创建时间: 2007-6-1
 * 
 * 中文名称: 卡片管理类 
 * 
 * 类名: CardManage
 * 
 * 创建人:jiyaoqin
 * -------------------------------------
 * 补充说明:  
 * 
 * --------------------------------------
*/

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using DataAccess;
using DataAccess.CardManage;


namespace Business.CardManage
{
   public class CardManage
    {
        CardManageDataAccess gmda = new CardManageDataAccess();//实例化卡片管理数据库访问类

        private string errMessage;//定义要返回的错误信息

        public string ErrMessage
        {
            get { return (this.errMessage); }
            set { this.errMessage = value; }
        }

        /// 
        /// 自定义-添加卡片类型
        /// 

        /// 类型名称
        public bool AddCardType(string cardTypeNamestring cardPricestring cardImage)
        {
            bool result = gmda.InsertCardType(cardTypeName cardPrice cardImage);
            if (result)
            {
                return result;
            }
            else
            {
                this.errMessage = “添加卡片类型时发生错误,请检查合法性!“;
                return result;
            }
        }

        /// 
        /// 自定义-删除卡片类型
        /// 

        ///  卡片类型id
       public bool DeleteCardType(string cardTypeId)
        {
            bool result = gmda.DeleteCardTypeById(cardTypeId);
            if (result)
            {
                return result;
            }
            else
            {
                this.errMessage = “删除卡片类型时发生异常错误,可能该卡片类型禁止删除!“;
                return result;
            }
        }      
   
        /// 
        /// 自定义-获得卡片类型信息表
        /// 
   
       public DataTable GetCardTypeDataTable()
        {
            DataTable cardTypeDataTable = gmda.GetCardTypeInfoDataTable();
            if (cardTypeDataTable == null)
            {
                this.errMessage = “还没有可用的卡片类型,请联系管理员!!“;
                return cardTypeDataTable;
            }
            else
            {
                return cardTypeDataTable;
            }
        }

        /// 
        /// 自定义-获得卡片最大编号
        /// 
   
       public int GetMaxCardId()
       {
           int cardId = gmda.GetMaxCardNo();
           return cardId;
       }

       /// 
       /// 自定义-添加卡片
       /// 

       /// 卡片价格
       ///  添加卡片时间
       ///  卡片种类
       public bool AddCard(string cardNostring cardPasswordstring cardDescDateTime  cardTimestring cardType)
       {
           bool result = gmda.AddNewCard(cardNo cardPassword cardDesc cardTime cardType);
           if (result)
           {
               return result;
           }
           else
           {
              

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件   20971520  2009-07-20 08:57  qnGameCard\DB\GameCardSale_Data.MDF

     文件    1048576  2009-07-20 08:57  qnGameCard\DB\GameCardSale_Log.LDF

     文件      28672  2007-10-09 16:00  qnGameCard\GameCS\Business\bin\Debug\Business.dll

     文件      50688  2007-10-09 16:00  qnGameCard\GameCS\Business\bin\Debug\Business.pdb

     文件      45056  2007-10-09 16:00  qnGameCard\GameCS\Business\bin\Debug\DataAccess.dll

     文件      60928  2007-10-09 16:00  qnGameCard\GameCS\Business\bin\Debug\DataAccess.pdb

     文件       2403  2007-07-06 13:58  qnGameCard\GameCS\Business\Business.csproj

     文件       6580  2007-07-09 14:25  qnGameCard\GameCS\Business\CardManage\CardManage.cs

     文件      10239  2009-07-20 08:59  qnGameCard\GameCS\Business\MemberManage\MemberManage.cs

     文件       4783  2007-07-09 13:13  qnGameCard\GameCS\Business\NewsManage\NewsManage.cs

     文件        190  2008-01-17 15:44  qnGameCard\GameCS\Business\obj\Business.csproj.FileList.txt

     文件      28672  2007-10-09 16:00  qnGameCard\GameCS\Business\obj\Debug\Business.dll

     文件      50688  2007-10-09 16:00  qnGameCard\GameCS\Business\obj\Debug\Business.pdb

     文件      20480  2007-07-09 14:24  qnGameCard\GameCS\Business\obj\Debug\Refactor\Business.dll

     文件      10621  2008-01-17 15:37  qnGameCard\GameCS\Business\obj\Debug\ResolveAssemblyReference.cache

     文件       1325  2007-05-29 13:40  qnGameCard\GameCS\Business\Properties\AssemblyInfo.cs

     文件       2565  2007-07-13 09:35  qnGameCard\GameCS\Business\SystemManage\LoginManage.cs

     文件      15675  2007-07-09 16:27  qnGameCard\GameCS\Business\SystemManage\UserManage.cs

     文件      45056  2007-10-09 16:00  qnGameCard\GameCS\DataAccess\bin\Debug\DataAccess.dll

     文件      60928  2007-10-09 16:00  qnGameCard\GameCS\DataAccess\bin\Debug\DataAccess.pdb

     文件       6589  2007-07-09 14:30  qnGameCard\GameCS\DataAccess\CardManage\CardManageDataAccess.cs

     文件       2327  2007-07-09 09:15  qnGameCard\GameCS\DataAccess\DataAccess.csproj

     文件       4771  2009-07-20 08:59  qnGameCard\GameCS\DataAccess\DatabaseOperate.cs

     文件      18631  2007-07-12 11:41  qnGameCard\GameCS\DataAccess\MemberManage\MemberManageDataAccess.cs

     文件       3840  2007-07-09 14:28  qnGameCard\GameCS\DataAccess\NewsManage\NewsManageDataAccess.cs

     文件        146  2008-01-17 15:44  qnGameCard\GameCS\DataAccess\obj\DataAccess.csproj.FileList.txt

     文件      45056  2007-10-09 16:00  qnGameCard\GameCS\DataAccess\obj\Debug\DataAccess.dll

     文件      60928  2007-10-09 16:00  qnGameCard\GameCS\DataAccess\obj\Debug\DataAccess.pdb

     文件      20480  2007-07-09 14:24  qnGameCard\GameCS\DataAccess\obj\Debug\Refactor\DataAccess.dll

     文件       1329  2007-05-29 13:40  qnGameCard\GameCS\DataAccess\Properties\AssemblyInfo.cs

............此处省略266个文件信息

评论

共有 条评论