📄 queryget.java
字号:
package yd.pethospital.chargeqerybusiness;
import java.sql.*;
import java.util.*;
import yd.pethospital.chargequery.view.ChargeQueryCondition;
import yd.pethospital.share.SystemShare;
public class QueryGet {
public static Vector RowData;
public QueryGet(){
QueryGets();
}
public void QueryGets(){
try {
SystemShare.SQL="select petcode,chargedate,totalmoney,diagnosedate,inoculatedate,chargeman from ChargeInfo "+ChargeQueryCondition.saveSQL();
SystemShare.getConnection();
SystemShare.rs=SystemShare.pst.executeQuery();
RowData=new Vector();
while(SystemShare.rs.next()){
Vector vc=new Vector();
vc.addElement(SystemShare.rs.getString("petcode"));
vc.addElement(SystemShare.rs.getString("chargedate"));
vc.addElement(SystemShare.rs.getString("totalmoney"));
vc.addElement(SystemShare.rs.getString("diagnosedate"));
vc.addElement(SystemShare.rs.getString("inoculatedate"));
vc.addElement(SystemShare.rs.getString("chargeman"));
RowData.add(vc);
}
} catch (SQLException e) {
e.printStackTrace();
}
SystemShare.close();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -