资源简介

这个项目是一个完整的项目,项目是采用三层架构,实现了窗体间数据的动态同步。项目中实现了电影录入,场次发布,放映厅布置,电影售票等综合功能。

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Text;
using System.Configuration;
using System.Windows.Forms;
using DAL;

namespace DBCenter
{
    #region 

    

    public class DBCenter
    {
        private static volatile DBCenter _dbCenter = null;
        

        private DBCenter()
        {
            
        }

        #region 管理
        public MovieManager MovieManager
        {
            get
            {
                return MovieManager.moviemanager;
            }
        }

        public HallManager HallManager
        {
            get
            {
                return HallManager.hallmanager;
            }
        }

        public UserManager UserManager
        {
            get
            {
                return UserManager.usermanger;
            }
        }


        private static object obj = new object();

        public static DBCenter dbCenter
        {
            get
            {
                if (_dbCenter == null)
                {
                    lock (obj)
                    {
                        if (_dbCenter == null)
                        {
                            _dbCenter = new DBCenter();
                            _dbCenter.CreateDAL();
                        }
                    }
                }
                return _dbCenter;
            }
        }

        public FieldManager FieldManager
        {
            get
            {
                return FieldManager.fieldmanager;
            }
            set
            {
            }
        }

        public TicketManager TicketManager
        {
            get
            {
                return TicketManager.ticketmanager;
            }
            set
            {
            }
        }
        #endregion


        public void CreateDAL()
        {
            //通过配置文件获得数据库的类型
            string strDbType = System.Configuration.ConfigurationSettings.AppSettings[“DbType“].ToString();
            switch (strDbType)
            {
                case “SqlServer“:
                    _Idal = SqlServerDAL.sqlserverDAL;
                    break;
                case “Oracle“:
                    _Idal = new OracleDAL();
                    break;
                //case “Teradata“:
                //    _dbType = DBType.Teradata;
                //    break;
                //case “Access“:
                //    _dbType = DBType.Access;
                //    break;
                //case “DB2“:
                //    _dbType = DBType.DB2;
                //    break;
                //case “Foxbase“:
                //    _dbType = DBType.Foxbase;
                //    break;
                //case “MaxDB“:
                //    _dbType = DBType.MaxDB;
                //    break;
                //case “Mysql“:
                //    _dbType = DBType.Mysql;
                //    brea

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

     文件      11776  2008-10-07 10:46  SaleTicket\DBCenter\bin\Debug\DAL.dll

     文件      34304  2008-10-07 10:46  SaleTicket\DBCenter\bin\Debug\DAL.pdb

     文件      19968  2008-10-08 20:12  SaleTicket\DBCenter\bin\Debug\DBCenter.dll

     文件      91648  2008-10-08 20:12  SaleTicket\DBCenter\bin\Debug\DBCenter.pdb

     文件       4031  2008-09-19 10:57  SaleTicket\DBCenter\DBCenter.cd

     文件       3445  2008-10-05 12:50  SaleTicket\DBCenter\DBCenter.cs

     文件       3373  2008-09-21 22:01  SaleTicket\DBCenter\DBCenter.csproj

     文件        276  2008-09-15 19:04  SaleTicket\DBCenter\DBType.cs

     文件       2306  2008-09-28 00:50  SaleTicket\DBCenter\Field.cs

     文件       2335  2008-09-26 23:19  SaleTicket\DBCenter\Hall.cs

     文件       3359  2008-10-08 11:35  SaleTicket\DBCenter\Manager\FieldManager.cs

     文件       3844  2008-10-08 20:12  SaleTicket\DBCenter\Manager\HallManager.cs

     文件       3487  2008-10-07 10:50  SaleTicket\DBCenter\Manager\MovieManager.cs

     文件       2737  2008-10-07 11:36  SaleTicket\DBCenter\Manager\TicketManager.cs

     文件       1365  2008-09-29 03:37  SaleTicket\DBCenter\Manager\UserManager.cs

     文件       3550  2008-09-25 21:47  SaleTicket\DBCenter\Movie.cs

     文件        982  2008-10-08 19:31  SaleTicket\DBCenter\obj\Debug\DBCenter.csproj.FileListAbsolute.txt

     文件      19968  2008-10-08 20:12  SaleTicket\DBCenter\obj\Debug\DBCenter.dll

     文件      91648  2008-10-08 20:12  SaleTicket\DBCenter\obj\Debug\DBCenter.pdb

     文件       4380  2008-10-07 10:46  SaleTicket\DBCenter\obj\Debug\ResolveAssemblyReference.cache

     文件       1388  2008-09-14 17:55  SaleTicket\DBCenter\Properties\AssemblyInfo.cs

     文件       2170  2008-09-29 01:18  SaleTicket\DBCenter\Ticket.cs

     文件       1107  2008-09-20 21:17  SaleTicket\DBCenter\User.cs

     文件      11776  2008-10-07 10:46  SaleTicket\IDAL\bin\Debug\DAL.dll

     文件      34304  2008-10-07 10:46  SaleTicket\IDAL\bin\Debug\DAL.pdb

     文件       1212  2008-10-08 10:43  SaleTicket\IDAL\DAL.cd

     文件       2990  2008-10-05 12:55  SaleTicket\IDAL\DAL.csproj

     文件       2660  2008-09-26 20:56  SaleTicket\IDAL\IDAL.cs

     文件        646  2008-10-08 19:16  SaleTicket\IDAL\obj\Debug\DAL.csproj.FileListAbsolute.txt

     文件      11776  2008-10-07 10:46  SaleTicket\IDAL\obj\Debug\DAL.dll

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

评论

共有 条评论