package cn.run.Service; |
import java.sql.SQLException; |
import cn.run.dao.RunDao; |
import cn.run.form.RunForm; |
import cn.run.form.UserForm; |
public class RunService { |
RunDao ud= new RunDao(); |
public RunForm findRunMan(String xh) { |
// TODO Auto-generated method stub |
try { |
return ud.findRunMan(xh); |
} catch (SQLException e) { |
// TODO Auto-generated catch block |
System.out.println( "判定Run中是否有,出错!" ); |
} |
return null ; |
} |
|
|
public int WRunMan(UserForm uf, int rp) { |
// TODO Auto-generated method stub |
return ud.WRunMan(uf,rp); |
} |
|
|
public RunForm RfindRunMan(String rp) { |
|
return ud.RfindRunMan(rp); |
|
} |
public int updateRMan(RunForm rf, String id) { |
// TODO Auto-generated method stub |
return ud.updateRMan(rf,id); |
} |
public int updateUser(RunForm rf) { |
// TODO Auto-generated method stub |
try { |
return ud.updateUser(rf); |
} catch (SQLException e) { |
// TODO Auto-generated catch block |
System.out.println( "最终出错!" ); |
} |
return 0 ; |
} |
public int deleteRMan(RunForm rf) { |
return ud.deleteRMan(rf); |
} |
} |