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

📄 inittypes.java

📁 改代码是采用JSP实现的在线办公自动化管理系统
💻 JAVA
字号:
package swing;

import com.bwm.string.Str;
import com.zh.conpool.*;
import java.sql.Connection;

public class Inittypes{
	
	private String name="";
	private String sql="";
	private int aa=0;
	
	Str str=new Str();
	Condata con=new Condata();
	Connection conn=null;
	
	public void setName(String newnames){
		this.name=newnames;
	}
	
	public int toRs(){
		sql="insert into tb_th_types(Types) values('"+name+"')";
		try{
			con.getConnection();
			aa=con.executeUpdate(sql);
		}catch(Exception eee){
			aa=0;
		}
		return aa;
	}
	public int toRsa(){
		sql="insert into tb_th_unit(Units) values('"+name+"')";
		try{
			con.getConnection();
			aa=con.executeUpdate(sql);
		}catch(Exception eee){
			aa=0;
		}
		return aa;
	}
	public void close(){
		try{
			conn=null;
		}catch(Exception e){
			System.out.print("f1");
		}
		try{
			con.close();
			con=null;
		}catch(Exception ee){
			System.out.print("f");
		}
	}
}

⌨️ 快捷键说明

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