コード例 #1
0
 /*
  * (non-Javadoc)
  *
  * @see
  * bl.blService.accountblService.AccountBLManageService#modifyAccount(po.
  * accountdata.AccountPO)
  */
 public OperationMessage modifyAccount(AccountVO vo) {
   AccountPO po = (AccountPO) vopoFactory.transVOtoPO(vo);
   AccountDataService accountDataService = CacheHelper.getAccountDataService();
   try {
     return accountDataService.update(po);
   } catch (RemoteException e) {
     Reconnect.ReConnectFactory();
     return new OperationMessage(false, "net error");
   }
 }
コード例 #2
0
 /*
  * (non-Javadoc)
  *
  * @see bl.blService.accountblService.AccountBLManageService#addAccount(po.
  * accountdata.AccountPO)
  */
 public OperationMessage addAccount(AccountVO vo) {
   try {
     AccountDataService accountDataService = CacheHelper.getAccountDataService();
     MemberDataService<StaffPO> staffDataService = CacheHelper.getMemberDataService_staff();
     if (staffDataService.getPerson(vo.getID()) != null || vo.getID().equals("admin")) {
       AccountPO po = (AccountPO) vopoFactory.transVOtoPO(vo);
       return accountDataService.insert(po);
     } else {
       return new OperationMessage(false, "系统中没有该员工信息");
     }
   } catch (RemoteException e) {
     Reconnect.ReConnectFactory();
     return new OperationMessage(false, "net error");
   }
 }