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

📄 queryget.java

📁 宠物医院管理系统 包含宠物的注册 管理 收费 诊断等一系列过程控制 还包含配应的数据库 Jar包
💻 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 + -