Beispiel #1
0
 @Override
 public Staffvo[] searchAllInitRenyuan() throws RemoteException {
   // TODO Auto-generated method stub
   Staff as = new Staff();
   Staffpo[] up;
   try {
     up = as.AllSearchInitAccount();
     if (up == null) return null;
     else {
       Staffvo[] uv = new Staffvo[up.length];
       for (int i = 0; i < up.length; i++) {
         Staffvo s = up[i].getStaff();
         uv[i] = s;
       }
       return uv;
     }
   } catch (Exception e) {
     // TODO Auto-generated catch block
     e.printStackTrace();
   }
   return null;
 }
Beispiel #2
0
  @Override
  public boolean writeInitRenyuan() throws RemoteException {
    // TODO Auto-generated method stub

    try {
      Staff fs = new Staff();
      Staffpo[] ap;
      ap = fs.searchAll();
      if (ap.length == 0) return false;
      else {

        for (int i = 0; i < ap.length; i++) {
          boolean a = fs.addInitRenyuan(ap[i]);
          if (a == false) return false;
        }
        HostLog.addMes("进行期初人员信息设置" + "\n");
        return true;
      }
    } catch (Exception e) {

      e.printStackTrace();
    }
    return false;
  }