public class OpenDb {
static protected String aa="ss";
protected int z=12;
//final int final1=8;
public static String DBDriver="sun.jdbc.odbc.JdbcOdbcDriver";
public static String DSN ="jdbc:odbc:Jworkflow";
public static String DBuser="sa";
public static String DBpasswd="it474150";
public Connection conn=null;
public Statement stmt=null;
public ResultSet rs=null;
public int id;
boolean isCorrect;
}else if(request.getParameter("ryxm")!=null&&request.getParameter("ryxb")!=null){
ryxm=new String(request.getParameter("ryxm").getBytes("ISO-8859-1"));
ryxb=new String(request.getParameter("ryxb").getBytes("ISO-8859-1"));
if(ryxm.length()>=1&&ryxb.equals("所有")){
where+=" and ryxm like '%"+ryxm+"%'";
}else if(ryxm.length()>=1&&!ryxb.equals("所有")){
where+=" and ryxm like '%"+ryxm+"%' and ryxb='"+ryxb+"'";
}else if(ryxm.length()<1&&ryxb.equals("所有")){
}else{
where+=" and ryxb='"+ryxb+"'";
}
}
OpenDb open=new OpenDb();
ResultSet rs=null;
String sql="select count(*) from ryxx where "+where;
rs=open.ExecuteQuery(sql);
int count=0;
if(rs.next()){
allrecord=rs.getInt(1);
}
int allpage=(int)Math.ceil((allrecord+page_record-1)/page_record);
//rs.close();
if(request.getParameter("page")==null){
curpage=1;
}else{
getpage=new Integer(request.getParameter("page")).intValue();
getpage=Integer.parseInt(request.getParameter("page"));
int count;
boolean isCorrect=false;
String sql="select * from depart order by DepartID ASC";
Vector allDepart = new Vector();
DBSQL dbsql = new DBSQL();
ResultSet rs = null;
int count;
boolean isCorrect=false;
String sql="select * from depart where Superior="+Superior;
Vector allDepart = new Vector();
DBSQL dbsql = new DBSQL();
ResultSet rs = null;