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

📄 accommodationmanager.java~3~

📁 用j2ee开发的一个旅店管理系统
💻 JAVA~3~
字号:
package com.xc.hotelmanager.hotel.control.proxy;import java.util.*;import com.xc.hotelmanager.hotel.model.*;import com.xc.hotelmanager.hotel.control.session.*;import com.xc.hotelmanager.hotel.exception.HotelManagerException;public class AccommodationManager {  static AccommodationManager instance = null;     private SB_AccommodationManager manager=null;     private AccommodationManager(){         try{             manager = com.xc.hotelmanager.hotel.control.EjbGetter.getSB_AccommodationManager().create();         }         catch(Exception ex){         }     }     public static  AccommodationManager getInstance(){         if (instance == null) {             instance = new AccommodationManager();         }         return instance;     }     public Collection getAccInfo(String cname, String roomid) throws HotelManagerException {        try{          Collection result = manager.getAccInfo(cname,roomid);            return result;            }        catch(Exception ex){          throw new HotelManagerException(ex.getMessage());        }     }  public  String  getleavedate() throws HotelManagerException{     try{      String result=manager.getleavedate();      return  result;     }     catch(Exception ex){     throw  new  HotelManagerException(ex.getMessage());     }   }     public int getlivedays(String id) throws HotelManagerException {       int result= 0;       try{          result=manager.getlivedays(id);        }        catch(Exception ex){          throw new HotelManagerException(ex.getMessage());        }        return result;       }     public float getTotelCost(String id)  throws HotelManagerException{       float result=0;       try{              result =manager.getTotelCost(id);              }              catch(Exception ex){            throw new HotelManagerException(ex.getMessage());          }             return  result;          }      public String saveToAcc(String id, String leavetime,float charge) throws HotelManagerException{        String result=null;        try{         result=manager.saveToAcc(id,leavetime,charge);       }       catch(Exception ex){          return result;         }         return result;          }}

⌨️ 快捷键说明

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