Пример #1
0
 public void saveUser(int id) {
   TbUserApplication userapplication = new TbUserApplication();
   TbUser user = new TbUser();
   userapplication = userdao.queryUserApplication(id);
   user.setId(userapplication.getId());
   user.setName(userapplication.getName());
   user.setPassword(userapplication.getPassword());
   user.setGender(userapplication.getGender());
   user.setTbDepartment(userapplication.getTbDepartment());
   user.setPhone(userapplication.getPhone());
   user.setEmail(userapplication.getEmail());
   user.setWorkingState(true);
   user.setIconName("gongfu.jpg");
   userdao.saveUser(user);
 }
Пример #2
0
 public void deletUserApplication(int id) {
   TbUserApplication userapplication = new TbUserApplication();
   userapplication = userdao.queryUserApplication(id);
   userdao.deletUserApplication(userapplication);
 }
Пример #3
0
 public List queryUserApplication() {
   return (List) userdao.queryUserApplication();
 }