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

📄 restaurantmenu12.java

📁 酒店管理asp的源代码和各种文档说明,很齐全的,只要你解压后就能运行程序.
💻 JAVA
字号:
package restaurant;
import java.io.*;
import java.sql.*;
import javax.swing.JOptionPane;
import java.util.Vector;

public class RestaurantMenu12{

	private DBCon con;
	private Read read;
	private Write write;
	private Exit exit;
	private Common common;
    ResultSet rs=null;
    
	public void selectLogInfo(){
	     String sql="select * from system";
         
         con = new DBCon();
	     read = new Read(con.getConnection());    
         rs=read.executeQuery(sql);       
    }
      
    public Vector getLogInfo(){
    	Vector vec = new Vector();
    	try{
    		while(rs.next()){
    			vec.addElement(rs.getString("information"));
    		}
        }catch(SQLException e){
		   System.err.println(e.getMessage());
		}
		exit = new Exit(con.getConnection());
        exit.Close();
        
		return vec;
    }

    public void clearLog(String operator){
    	
    	   common = new Common();
    	   operator=common.toChinese(operator);
    	   
    	   String sql="delete from system";
   
           con = new DBCon();
	       write = new Write(con.getConnection());    
           write.executeUpdate(sql); 
           exit = new Exit(con.getConnection());
           exit.Close();
           
           common.WriteSystemLog("酒店经理:"+operator+"清空了日志"); 
            
    }
}

⌨️ 快捷键说明

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