Ejemplo n.º 1
0
  /*
   * (non-Javadoc)
   *
   * @see com.cking.phss.page.IPage#getValue()
   */
  @Override
  public boolean getValue() {
    if (!hasInit) {
      return false;
    }
    Sfgljl_lnsf sfgljl = (Sfgljl_lnsf) beanMap.get(Sfgljl_lnsf.class.getName());
    if (sfgljl == null) {
      Log.e(TAG, "mSfgljl is null");
      return false;
    }

    try {
      XmlSerializerUtil.getInstance().getValue(SfglLnsfPage03.this, sfgljl);
    } catch (IllegalArgumentException e) {
      e.printStackTrace();
    } catch (IllegalAccessException e) {
      e.printStackTrace();
    }

    return true;
  }
Ejemplo n.º 2
0
  /*
   * (non-Javadoc)
   *
   * @see com.cking.phss.page.IPage#setValue()
   */
  @Override
  public void setValue() {
    if (!hasInit) {
      return;
    }
    Jmjbxx mJmjbxx = (Jmjbxx) beanMap.get(Jmjbxx.class.getName());
    Sfgljl_lnsf sfgljl = (Sfgljl_lnsf) beanMap.get(Sfgljl_lnsf.class.getName());
    if (mJmjbxx == null || sfgljl == null || mJmjbxx.getResidentName().equals("")) {
      return;
    }

    try {
      XmlSerializerUtil.getInstance().setValue(SfglLnsfPage03.this, sfgljl);
    } catch (IllegalArgumentException e) {
      e.printStackTrace();
    } catch (IllegalAccessException e) {
      e.printStackTrace();
    }

    sfysqmEditText.setText(Global.doctorName);
  }