⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 transactioncontroller.java

📁 java酒店管理系统
💻 JAVA
字号:
package myprojects.transactionController; 

import myprojects.reserve.*;
import myprojects.checkin.*;
import myprojects.returnroom.*;
import myprojects.Account.*;
import myprojects.search.*;
import myprojects.guestroom.*;
import myprojects.reckoning.*;
/**
 * @(#)TransactionController.java
 *
 * TranctionController,控制器
 * 各项事务跟主界面的接口
 *
 * @author 
 * @version 1.00 05/12/25
 */
 
public class TransactionController{
	Account usingSystemAccount = new Account();
	//construction 
	public TransactionController(Account user){
		usingSystemAccount = user;
		System.out.println("控制器");
	}	
	//预订接口 处理主界面&事务模块间的接口
	public void reserveInterface(){
		System.out.println("处理预订事务接口");
		ReserveRoomFrame reserveframe = new ReserveRoomFrame();
		
	}
	//取消预订接口
	public void undoReserveInterface(){
		System.out.println("处理取消预订事务接口");
		UndoReserveFrame undoReserveframe = new UndoReserveFrame();
	}
	//处理登记接口
	public void checkInInterface(){
		System.out.println("处理登记接口");
		CheckInFrame frame = new CheckInFrame();
	}		
	public void returnRoomInterface(){
		System.out.println("处理退房接口");
		//将当前用户信息传给退房,保存操作人员的信息到历史记录中
		ReturnRoomFrame frame = new ReturnRoomFrame(usingSystemAccount);
	}	
	public void newAccountInterface(){
		System.out.println("管理员新建帐户接口");
		
		NewAccountFrame frame = new NewAccountFrame();
	}	
	public void deleteAccountInterface(){
		System.out.println("管理员删除帐户接口");
		
		DeleteAccountFrame frame = new DeleteAccountFrame();
	}	
	public void modifyAccountInterface(){
		ModifyAccountFrame frame = new ModifyAccountFrame();
	}
	
	public void personalSettingInterface(){
		PersonalSettingFrame frame = new PersonalSettingFrame(usingSystemAccount);
	}
	public void searchCheckedInGuestInfoInterface(){
		SearchCheckGuestFrame frame = new SearchCheckGuestFrame();
	}
	public void newRoomInterface(){
		NewRoomFrame frame = new NewRoomFrame();
	}
	public void deleteRoomInterface(){
		DeleteRoomFrame frame = new DeleteRoomFrame();
	}
	public void searchHistoryGuestInfoInterface(){
		SearchHistoryGuestFrame frame = new SearchHistoryGuestFrame();
	}
	
	public void searchFinancingInfoInterface(){
		SearchReckoningInfoFrame frame = new SearchReckoningInfoFrame();
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -