Esempio n. 1
0
 public String edit() {
   checkPassword();
   AdminService adminService = ServiceCacheFactory.getService(AdminService.class);
   adminService.updateTduser(tdId, tdname, tduserid, tduser, tdcall, tdqq);
   super.setErroCodeNum(2001);
   return SUCCESS;
 }
Esempio n. 2
0
 public String transferUser() {
   checkPassword();
   AdminService adminService = ServiceCacheFactory.getService(AdminService.class);
   adminService.transferUserInfo(fromUserName, toUserName);
   super.setErroCodeNum(2002);
   return SUCCESS;
 }
Esempio n. 3
0
  public String execute() {
    UserService userService = ServiceCacheFactory.getServiceCache().getService(UserService.class);

    if (status == 0) {
      Gcuser gcuser = userService.getUserByUserName(super.getUserName());
      super.initPage(
          userService.getTheSameNameUserPageByCondition(
              super.getUserName(), gcuser.getName(), gcuser.getUserid(), super.getToPage(), 10));
    } else {

      if (fromUsers == null || fromUsers.size() == 0) {
        super.setErroCodeNum(6);
        return SUCCESS;
      }
      if (tp == 0) {
        userService.batchTrasferYb(fromUsers, super.getUserName(), pa2j);
      } else {
        userService.batchTrasferScores(fromUsers, super.getUserName(), pa2j);
      }
      super.setErroCodeNum(10);
    }

    return SUCCESS;
  }
Esempio n. 4
0
  public String execute() {

    if (!Strings.isNullOrEmpty(cjpa)) {
      checkPassword();
    }

    if (sst == 0) {
      return SUCCESS;
    }
    AdminService adminService = ServiceCacheFactory.getService(AdminService.class);
    if (!Strings.isNullOrEmpty(suser)) {
      checkPassword();
      super.initPage(adminService.getTduserPageList(super.getToPage(), 20, suser));
    }
    return SUCCESS;
  }