@SuppressWarnings("unchecked")
  @Override
  protected void onPostExecute(String result) {
    // TODO Auto-generated method stub
    super.onPostExecute(result);
    RepairUtils.myRemoveDialog(pd);
    if ("".equals(result)) {
      /** 返回结果是空字符串标示获取数据成功,就把农机类别数据保存到数据库中 */
      database.InsertToDb(Optdb_interfce.TABLE_NJLEIBIE, agriculturalBCategoryList);
      database.InsertToDb(Optdb_interfce.TABLE_NJLEIBIE, agriculturalSCategoryList);
      database.InsertToDb(Optdb_interfce.TABLE_NJLEIBIE, agriculturalPCategoryList);

      /** 取出第一个农机大类对应的农机小类 在取出第一个农机小类对应的农机品目 */
      if (agriculturalBCategoryList.size() != 0) {
        agriculturalSCategoryList =
            database.getSmallKindsOfCarBeanInfo(
                MyState.CAR_SMALL_TYPE_MARK + "",
                agriculturalBCategoryList.get(0).getBigClassName());
        if (agriculturalSCategoryList.size() != 0) {
          agriculturalPCategoryList =
              database.getSmallKindsOfCarBeanPMInfo(
                  MyState.CAR_TYPE_MARK + "", agriculturalSCategoryList.get(0).getSmallClassName());
        }
      }
      /** 将农机类别数据返回 */
      allTaskInterface.taskFinishReturn(
          agriculturalBCategoryList, agriculturalSCategoryList, agriculturalPCategoryList);
    } else {
      UIUtil.showMsg(context, result);
      allTaskInterface.taskFinishReturn(null);
    }
    database.close_SqlDb();
  }
 @Override
 protected void onPreExecute() {
   // TODO Auto-generated method stub
   database = new Optdb_interfce(context);
   database.createNJTable(); // 创建数据库表(表存在时不执行)
   pd = RepairUtils.myShowDialog(context, 5);
   super.onPreExecute();
 }
 @Override
 protected void onPostExecute(Boolean result) {
   // TODO Auto-generated method stub
   super.onPostExecute(result);
   RepairUtils.myRemoveDialog(dialog);
   //		if(result){
   //			alertMessage = "定位成功";
   //		}else{
   //			alertMessage = "定位失败,请稍后重试";
   //		}
   //		UIUtil.showMsg(context, alertMessage);
 }
 @Override
 protected void onPreExecute() {
   // TODO Auto-generated method stub
   dialog = RepairUtils.myShowDialog(context, 1);
   super.onPreExecute();
 }