?? businessaction.java~26~
字號(hào):
package com.jbaptech.accp.netbar.client;
import java.util.*;
import java.sql.*;
import java.util.ArrayList;
/**
* <p>Title: </p>
*
* <p>Description: </p>
*
* <p>Copyright: Copyright (c) 2005</p>
*
* <p>Company: 北京阿博泰克北大青鳥信息技術(shù)有限公司</p>
*
* @author Michael Luo
* @version 1.0
*/
public class BusinessAction {
public BusinessAction() {
}
//獲取未使用的機(jī)號(hào)
public void getNotUsedComputeList(){
Connection con = null;
try{
con=ConnectionManager.getConnection();
Statement s = con.createStatement();
String strSql =
"select id from Computer where OnUse =\'0\'; ";
ResultSet rs = s.executeQuery(strSql);
while (rs.next()){
CheckInPanel.computerIdCombox.addItem(rs.getString("id"));
}
}catch(SQLException sqlE){
sqlE.printStackTrace();
}
}
//獲取已上機(jī)的機(jī)號(hào)
public void getUsedComputeList(){
Connection con = null;
try{
con=ConnectionManager.getConnection();
Statement s = con.createStatement();
String strSql =
"select ComputerId from Record";
ResultSet rs = s.executeQuery(strSql);
while (rs.next()){
CheckOutDialog.computerIdCombox.addItem(rs.getString("ComputerId"));
}
}catch(SQLException sqlE){
sqlE.printStackTrace();
}
}
}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -