【正文】
ublic int addFenLei String fenlei String sql insert into classname flmc,addtime values 39。,39。 。 。 if i 1 return 。 catch Exception e 。 finally 。+fenlei+39。+id+39。 。 if i 1 return 。 catch Exception e 。 finally 。+id+39。 。 if i 1 return 。 catch Exception e 。 finally 。 DBO dbo new DBO 。 。 while List list2 new ArrayList 。 2 。 list2 。 catch Exception e 。 finally 。+fenlei+39。+xingzhi+39。+shuoming+39。+shuliang+39。+remark+39。+date+39。 DBO dbo new DBO 。 try int i sql 。 else return 。 return 。 // 修改財(cái)務(wù) 輸入 public int upCaiWu int id,String fenlei,String xingzhi,String shuoming,String shuliang,String remark String sql update inmoney set fenlei 39。,xingzhi 39。,shuoming 39。,shuliang 39。,remark 39。 where id 39。 DBO dbo new DBO 。 try int i sql 。 else return 。 return 。 // 刪除財(cái)務(wù) 輸入 public int delCaiWu int id String sql delete from inmoney where id 39。 DBO dbo new DBO 。 try int i sql 。 else return 。 return 。 // 所有財(cái)務(wù) 輸入 public List getAllCaiWu String sql select * from inmoney order by id desc 。 list new ArrayList 。 try rs sql 。 1 。 3 。 5 。 7 。 return list。 return null。 // 單個(gè)財(cái)務(wù) 輸入 public List getOneCaiWu int id String sql select * from inmoney where id 39。 。 list new ArrayList 。 try rs sql 。 2 。 4 。 6 。 catch Exception e 。 finally 。 String sql2 delete from classname。 DBO dbo new DBO 。 try sql 。 sql3 。 catch Exception e 。 finally 。+xingzhi+39。 DBO dbo new DBO 。 。 while List list2 new ArrayList 。 2 。 4 。 6 。 list2 。 catch Exception e 。 finally 。+ks+ 00:00:0139。+js+ 23:59:5939。 DBO dbo new DBO 。 。 while List list2 new ArrayList 。 2 。 4 。 6 。 list2 。 catch Exception e 。 finally 。+js+ 23:59:5939。 DBO dbo new DBO 。 。 while List list2 new ArrayList 。 2 。 4 。 6 。 list2 。 catch Exception e 。 finally 。+ks+ 00:00:0139。 DBO dbo new DBO 。 。 while List list2 new ArrayList 。 2 。 4 。 6 。 list2 。 catch Exception e 。 finally 。+ks+ 00:00:0139。+js+ 23:59:5939。+xingzhi+39。 DBO dbo new DBO 。 。 while List list2 new ArrayList 。 2 。 4 。 6 。 list2 。 catch Exception e 。 finally 。+js+ 23:59:5939。+xingzhi+39。 DBO dbo new DBO 。 。 while List list2 new ArrayList 。 2 。 4 。 6 。 list2 。 catch Exception e 。 finally 。+ks+ 23:59:5939。+xingzhi+39。 DBO dbo new DBO 。 。 while List list2 new ArrayList 。 2 。 4 。 6 。 list2 。 catch Exception e 。 finally 。+xingzhi+39。 DBO dbo new DBO 。 。 while List list2 new ArrayList 。 2 。 4 。 6 。 list2 。 catch Exception e 。 finally 。 /** * * 管理員登陸 修改密碼 登陸記錄查詢(xún) 通用類(lèi)文件 * */ import 。 import 。 import 。 import 。 public class AdminBean private List list。 private int EVERYPAGENUM 2。 private int 0。 private String sql2 select * from adminlog order by id desc 。 //分頁(yè)查詢(xún)登陸日志 public void setEVERYPAGENUM int EVERYPAGENUM EVERYPAGENUM。 。 。 return count。 return 1。 public int getPageCount //得到共多少頁(yè)(根據(jù)每頁(yè)要顯示幾條信息) if count % EVERYPAGENUM 0 return count / EVERYPAGENUM。 public List getMessage int page //得到每頁(yè)要顯示的信息 DBO dbo new DBO 。 List list new ArrayList 。 for int i 0。 i++ 。 t EVERYPAGENUM。 List list2 new ArrayList 。 username 。 logintime 。 useros 。 list2 。 //減少空循環(huán)的時(shí)間 return list。 return null。 //管理員登錄 更新登錄次數(shù) 寫(xiě)登錄日志 public int adminLogin String username,String md5password,String password,String loginip,String useros String sql select * from admin where username 39。 and isuse 39。 String sql2 insert into adminlog username,password,logintime,loginip,useros,ok values 39。,39。,39。,39。,39。,39。 。+username+39。+password+39。+date+39。+loginip+39。+useros+39。false39。 String sql4 update admin set logintimes logintimes+1 where username 39。 。 String pwd。 try rs sql 。 if .equals md5password sql2 。 return 。 return 。 return 。 return 。 //查詢(xún)管理員信息 public List getAdminInfo String username String sql select * from admin where username 39。 。 。 try rs sql 。 username 。 logintimes 。 quanxian 。 catch Exception e 。 finally 。+username+39。+oldpwd+39。+newpwd+39。+username+39。 。 if int i sql2 。 else return 。 catch Exception e 。 finally 。+username+39。+password+39。+date+39。+type+39。+isuse+39。039。11139。 String sql2 select * from admin where username 39。 DBO dbo new D