電影院管理系統(tǒng)_第1頁
電影院管理系統(tǒng)_第2頁
電影院管理系統(tǒng)_第3頁
電影院管理系統(tǒng)_第4頁
電影院管理系統(tǒng)_第5頁
已閱讀5頁,還剩15頁未讀 繼續(xù)免費閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領

文檔簡介

1、 課 程 設 計課程名稱: 數(shù)據(jù)庫、軟件工程課程設計 設計題目: 電影院管理系統(tǒng) 學 院: 信息工程與自動化 專 業(yè): 計算機科學與技術 年 級: 2009級 學生姓名: 指導教師: 王清心 日 期: 2012-07-01 一、 緒論 國內(nèi)電影院的售票系統(tǒng)不完善,有很多問題存在 ,售票效率低下 ,管理混亂 ?,F(xiàn)今社會是個講究效率的社會,時間就是金錢。開發(fā)簡單,便于操作的的軟件不僅可以節(jié)省時間,還可以節(jié)省人力,物理,財力等 建立的影院售票系統(tǒng),要把影院的售票管理、訂票管理,財務管理等日常管理工作實行計算機統(tǒng)一管理,以提高工作效率和管理水平。 通過本系統(tǒng)軟件,能幫助售票人員利用計算機,快速方便地對

2、影院售票情況,訂票情況,剩余座位查詢等進行高效的管理。本軟件適用于電影界,它是比較完善的系統(tǒng)管理軟件,對影院售票情況,訂票情況,剩余座位查詢等可以進行方便的管理 本軟件的使用對象有影院負責人或管理人員(更新維護系統(tǒng)),影院售票人員(辦理售票,訂票,退票)和買票人(購買影票人員)。該系統(tǒng)主要完成實現(xiàn)的目的有:1.高效管理 數(shù)據(jù)處理速度快,通過對某一時間段的經(jīng)營數(shù)據(jù)進行統(tǒng)計分析,供經(jīng)營者分析經(jīng)營狀況, 以便采取相應的經(jīng)營、促銷策略。 2.客戶資源充分利用通過分析顧客的消費信息,制定出有針對性的促銷措施,為顧客提供更為得體的服務。與顧客形成互動,加深印象,促進消費。 3.效益最大化通過票房分析和排片

3、情況,院線經(jīng)理可對影院票房收益有一個直觀的了解,通過最優(yōu)的影片安排和促銷活動來最大限度的增加院線收益。二、電影院票務管理系統(tǒng)需求分析(一)電影院線電子年票管理系統(tǒng)需求說明1.定義:基于公網(wǎng)及影院局域網(wǎng)絡建立的以IC卡為載體,且能夠?qū)崿F(xiàn)準實時數(shù)據(jù)交互及統(tǒng)計管理的電子年票管理軟件。2.產(chǎn)品描述(1)系統(tǒng)屬性是一個在Windows98以上的操作系統(tǒng)平臺下運行的院線電子年票管理系統(tǒng)。(2)開發(fā)背景解決各院線電子售票管理工作,方便各電影院線對電子售票票進行快速有效的操作,院線經(jīng)理對排片和票房統(tǒng)計工作。(3)軟件特點系統(tǒng)操作人員要求具備普通Windows系統(tǒng)操作水平即可。系統(tǒng)維護人員必須具有數(shù)據(jù)庫管理知識

4、。3.具體用途1、解決電影院線電子售票票管理上的工作。方便電影院線對電子售票票進行快速有效的操作。2、通過插入員工卡或管理卡并輸入用戶名和相應密碼才能進入系統(tǒng)進行管理。3、影院管理者可對人員信息、排片等進行設置。(二)用例模型售票會員會員充值票房管理排片用戶管理報表生成 校驗密碼包含包含 影院職員 客戶 院線經(jīng)理統(tǒng)管理人員 電影院管理系統(tǒng)電影名字票價上映時間選擇座位選擇電影場次查看電影信息購票包含包含包含包含包含全局ER圖對應電影票11 院線經(jīng)理管理N1有電影院電影廳有N1座位1N售票員出售1N辦理會員卡11消費者辦理11辦理N1電影電影編號名稱上映時間主演影片格式導演職工密碼職工信息職工編號

5、職工類型電影票 電影名 驗證碼 票價電影票號上映時間 座位號座位座位編號 票價是否售出流程圖 增加 售票會員注冊會員查詢 刪除會員 查看 查看影片 修改刪除影片登陸售票員管理員該系統(tǒng)的數(shù)據(jù)庫使用Office的Access數(shù)據(jù)庫部分數(shù)據(jù)庫表如下會員信息表:主鍵為vip_number ,數(shù)據(jù)類型為String。職工信息表:主鍵為Username,數(shù)據(jù)類型為String。電影信息表:主鍵為name,數(shù)據(jù)類型為String。三、系統(tǒng)設計(領域類)該系統(tǒng)的框架由一個窗口類實現(xiàn),我定義了一個名為Cinema的類,該類繼承了JFrame,可是實現(xiàn)ActionListener接口。還有一些實現(xiàn)特定功能的類例如

6、:(1) class VipJDialog extends JDialog:該類繼承了JDilog,能在錄入信息時彈出一個確認用戶信息的對話框(2) class InsertVip:該類實現(xiàn)與數(shù)據(jù)庫的連接,我在這個類中定義了一個能接受一個數(shù)組,并把該數(shù)組寫入相應數(shù)據(jù)庫的方法,能達到保存用戶信息和電影排片管理的功能。(3) class serchVip:該類同樣是實現(xiàn)與數(shù)據(jù)庫的連接,我在這個類中定義了一個查詢的方法,方便用戶對影院職員和電影信息的查看。(4) class jpanel extends JPanel:該類繼承了JPanel,可以在用戶觸發(fā)特定事件時移除之前面板的組件并添加新的組件,

7、實現(xiàn)用戶界面的切換。 由于該系統(tǒng)的很多功能還為實現(xiàn),其他的類只能在以后的開發(fā)中再添加。四、編碼實現(xiàn)(截圖 關鍵代碼)用戶主界面public class Cinema extends JFrame implements ActionListener public Cinema()super(電影院管理系統(tǒng));Dimension dim=getToolkit().getScreenSize();this.setBounds(dim.width/6,dim.height/6,dim.width*2/3,dim.height*2/3);this.setBackground(java.awt.Color

8、.blue);this.setResizable(true);this.setDefaultCloseOperation(EXIT_ON_CLOSE);String menustr=用戶登錄,售票,會員,用戶管理,影片管理,票房查詢,幫助;menu=new JMenumenustr.length;menubar=new JMenuBar();for(int i=0;imenustr.length;i+)menui=new JMenu(menustri);menubar.add(menui);menuitem_user=new JMenuItem(普通用戶); /在用戶登錄菜單添加普通用戶登錄項

9、 menu0.add(menuitem_user); menuitem_user.addActionListener(this); menu0.add(new JMenuItem(院線經(jīng)理); menu0.add(new JMenuItem(系統(tǒng)管理員); menuitem_vip=new JMenuItem(會員辦理); /在會員菜單添加會員辦理菜單項menu2.add(menuitem_vip);menuitem_vip.addActionListener(this);menuitem_vip_inpour=new JMenuItem(會員充值);menuitem_vip_inpour.a

10、ddActionListener(this);menu2.add(menuitem_vip_inpour);menu2.add(new JMenuItem(會員管理);menuitem_maneger=new JMenuItem(排片);/在影片管理菜單添加排片菜單項menu4.add(menuitem_maneger);menuitem_maneger.addActionListener(this);menu4.add(new JMenuItem(增加影片);this.setJMenuBar(menubar);panel_2=new JPanel();panel_2.setLayout(ne

11、w FlowLayout(0);text=new JTextArea(影院介紹:+昆明百老匯影城為目前昆明頂尖的國際化影城,+是廣大影迷朋友觀影的最佳選擇 );panel_2.add(text);jdialog=new VipJDialog(this);this.getContentPane().add(panel_2,Center);this.setVisible(true);用戶登錄界面public void addpanel_1()/用戶登錄面板組件JPanel panel_u1,panel_u2,panel_u3,panel_u4,panel_hold;panel_u1=new JPa

12、nel();panel_u1.setLayout(new FlowLayout(0);panel_u1.add(new JLabel(會員類型);JTextField text=new JTextField(普通用戶,8);text.setHorizontalAlignment(JTextField.CENTER);text.setEditable(false);panel_u1.add(text);panel_u2=new JPanel();panel_u2.setLayout(new FlowLayout(0);panel_u2.add(new JLabel(用戶名);text_user=

13、new JTextField(,10);panel_u2.add(text_user);panel_u3=new JPanel();panel_u3.setLayout(new FlowLayout(0);panel_u3.add(new JLabel(密 碼);JPasswordField pass_user=new JPasswordField(,10);panel_u3.add(pass_user);panel_u4=new JPanel();panel_u4.setLayout(new FlowLayout(0);button_U=new JButton(登錄);button_U.ad

14、dActionListener(this);button_P=new JButton(取消);panel_u4=new JPanel();panel_u4.setLayout(new FlowLayout(0);button_U=new JButton(登錄);button_U.addActionListener(this);button_P=new JButton(取消);panel_u4.add(button_U);panel_u4.add(button_P);panel_hold=new JPanel();panel_hold.setLayout(new GridLayout(4,1);

15、panel_hold.add(panel_u1);panel_hold.add(panel_u2);panel_hold.add(panel_u3);panel_hold.add(panel_u4);panel_2.add(panel_hold);會員辦理界面public void addpanel_3()/會員辦理面板組件JPanel panel_word,panel_count,panel_hold,panel_1,panel_sex,panel_3,panel_4,panel_5;JLabel label;String VIP=會員卡號,真實姓名,激活時間,年齡,性別,電話號碼,充值金額

16、,會員卡余額,會員卡類型;label=new JLabelVIP.length;text_count=new JTextFieldVIP.length;panel_word=new JPanel();panel_count=new JPanel();panel_word.setLayout(new GridLayout(3,1,0,10);panel_count.setLayout(new GridLayout(3,1,0,10);for(int i=0;i9;i+)text_counti=new JTextField(,8);labeli=new JLabel(VIPi);text_coun

17、t2.setText(2013-08-30);text_count2.setEditable(false);for(int i=0;i3;i+)panel_word.add(labeli);panel_count.add(text_counti);panel_sex=new JPanel();panel_sex.add(new JLabel(年齡);Object age=18,19,20,21,22,23,24;combox_age=new JComboBox(age);panel_sex.add(combox_age);panel_sex.add(new JLabel(性別);Object

18、sex=男,女;combox_sex=new JComboBox(sex);panel_sex.add(combox_sex);panel_1=new JPanel();panel_1.setLayout(new BorderLayout();panel_1.add(panel_word,West);panel_1.add(panel_count,East);panel_1.add(panel_sex,South);panel_4=new JPanel();panel_4.add(new JLabel(會員類型);Object vip=普通會員,充值會員;combox_vip=new JCom

19、boBox(vip);panel_4.add(combox_vip);panel_3=new JPanel();panel_3.setLayout(new BorderLayout();panel_3.add(new JLabel(電話號碼),West);text_vip_pho=new JTextField(,9);panel_3.add(text_vip_pho,East);panel_3.add(panel_4,South);panel_5=new JPanel();button_vip_formal=new JButton(提交);button_vip_formal.addAction

20、Listener(this);panel_5.add(button_vip_formal);panel_5.add(new JButton(修改);panel_hold=new JPanel();panel_hold.setLayout(new BorderLayout();panel_hold.add(panel_1,North);panel_hold.add(panel_3,Center);panel_hold.add(panel_5,South);panel_2.add(panel_hold);會員信息錄入界面class VipJDialog extends JDialog /會員信息錄

21、入JTextField jtext;JFrame jframe;VipJDialog(JFrame jframe)super(jframe,會員信息錄入,true);this.jframe=jframe;this.setSize(400, 280);this.setLayout(new FlowLayout(0,10,10);this.setDefaultCloseOperation(HIDE_ON_CLOSE);jtext=new JTextField7;this.getContentPane().add(new JLabel(會員卡號);jtext0=new JTextField(,10)

22、;this.getContentPane().add(jtext0);this.getContentPane().add(new JLabel(真實姓名);jtext1=new JTextField(,8);this.getContentPane().add(jtext1);this.getContentPane().add(new JLabel(年齡);jtext2=new JTextField(,3);this.getContentPane().add(jtext2);this.getContentPane().add(new JLabel(性別);jtext3=new JTextFiel

23、d(,3);this.getContentPane().add(jtext3);this.getContentPane().add(new JLabel(電話號碼);jtext4=new JTextField(,10);this.getContentPane().add(jtext4);this.getContentPane().add(new JLabel(會員類型);jtext5=new JTextField(,6);this.getContentPane().add(jtext5);this.getContentPane().add(new JLabel(激活時間);jtext6=new

24、 JTextField(,10);this.getContentPane().add(jtext6);for(int i=0;i7;i+)jtexti.setEditable(false);會員信息搜索class serchVip String serch(String a) throws ExceptionString VIPnum=a;String vipcount=new String6;Class.forName();Connection conn=DriverManager.getConnection(jdbc:odbc:Cinema);Statement stat=conn.cre

25、ateStatement();String sql=SELECT vip_name,vip_age,vip_sex,vip_pho,vip_type,vip_date FROM VIP WHERE vip_number=+VIPnum+;ResultSet rs=stat.executeQuery(sql);while(rs.next()vipcount0=rs.getString(vip_name);vipcount1=rs.getString(vip_age);vipcount2=rs.getString(vip_sex);vipcount3=rs.getString(vip_pho);vipcount4=rs.getString(vip_date);vipcount5=rs.getString(vip_type)

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
  • 6. 下載文件中如有侵權(quán)或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論