@Override
    protected String doInBackground(String... params) {
      String msg = "";
      ClientContext context = application.getClientContext();
      try {
        if (null == context) {
          context =
              ClientContext.getClientContext(
                  Constants.SERVER_URL, Constants.ANONYMOUS, Constants.ANONYMOUS);
          application.setClientContext(context);
        }
        ICarModelManager manager = context.getManager(ICarModelManager.class);
        carTypeLists = manager.findCar(params[0]);

      } catch (Exception e) {
        pd.dismiss();
        if (e instanceof UndeclaredThrowableException) {
          msg = e.getCause().getMessage();
          e.printStackTrace();
        } else {
          msg = "失败";
          e.printStackTrace();
        }
      }
      return msg;
    }
 @Override
 protected CollectionBean doInBackground(Void... params) {
   try {
     ClientContext context = app.getClientContext();
     if (null == context) {
       context =
           ClientContext.getClientContext(
               Constants.SERVER_URL, Constants.ANONYMOUS, Constants.ANONYMOUS);
       app.setClientContext(context);
     }
     ICollectionManager manager = context.getManager(ICollectionManager.class);
     collectionBean = manager.findByCollectionGuid(collectionGuid, addPersonGuid);
   } catch (Exception e) {
   }
   return collectionBean;
 }
  @Override
  protected String doInBackground(Void... params) {
    // TODO Auto-generated method stub
    ClientContext context;
    String result = "";
    try {
      context = application.getClientContext();
      if (null == context) {
        context =
            ClientContext.getClientContext(
                Constants.SERVER_URL, Constants.ANONYMOUS, Constants.ANONYMOUS);
        application.setClientContext(context);
      }
      IKindsOfCarManager manager = context.getManager(IKindsOfCarManager.class);
      KindsOfCarBean[] kindsOfCarBeanArray = manager.getChildren(0L); // 获取到农机大类
      if (null != kindsOfCarBeanArray && kindsOfCarBeanArray.length > 0) {
        for (int j = 0; j < kindsOfCarBeanArray.length; j++) {
          agriculturalBCategoryList.add(kindsOfCarBeanArray[j]); // 将所有农机大类转存到List中
          KindsOfCarBean[] mapsNJ_XL = manager.getChildren(kindsOfCarBeanArray[j].getCode());
          for (int i = 0; i < mapsNJ_XL.length; i++) {
            if (null != mapsNJ_XL[i]) {
              agriculturalSCategoryList.add(mapsNJ_XL[i]); // 将所有农机小类转存到List中
              KindsOfCarBean[] mapsNJ_PM = manager.getChildren(mapsNJ_XL[i].getCode());
              for (int k = 0; k < mapsNJ_PM.length; k++) {
                if (null != mapsNJ_PM[k]) {
                  agriculturalPCategoryList.add(mapsNJ_PM[k]); // 将所有农机品目转存到List中
                }
              }
            }
          }
        }
      }

    } catch (LoginException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
      result = e.getMessage();
    } catch (Exception e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
      result = "服务端异常,请稍后重试";
    }
    return result;
  }
  @SuppressWarnings("unchecked")
  @Override
  protected ArrayList<ServiceCollectBean> doInBackground(Void... params) {
    ArrayList<ServiceCollectBean> seviceCollectList = new ArrayList<ServiceCollectBean>();
    LoadOnGetList<? extends ServiceCollectBean> jobnewslist =
        new LoadOnGetList<ServiceCollectBean>();
    try {
      ClientContext context = application.getClientContext();
      if (!application.getIsLogin()) {
        context = null;
      }
      if (null == context) {
        context =
            ClientContext.getClientContext(
                Constants.SERVER_URL, Constants.ANONYMOUS, Constants.ANONYMOUS);
        application.setClientContext(context);
      }

      long code = 0;
      if (null != xzqh) {
        code = xzqh.getCode();
      } else {
        code = 0;
      }
      key.setAdminAreaCode(code);
      IServiceCollectManager manager = context.getManager(IServiceCollectManager.class);
      if (clz[idxInfoType] == DrivingSchoolServiceBean.class) {
        key.setRoleCode(15);
      }
      jobnewslist = manager.getLoad(clz[idxInfoType], key);
      seviceCollectList = (ArrayList<ServiceCollectBean>) jobnewslist.getList();

    } catch (Exception e) {
      if (null != pd) {
        pd.dismiss();
      }

      e.printStackTrace();
    }

    return seviceCollectList;
  }