예제 #1
0
  public void CloseActivity(String sCode, String sValue) {
    Bundle bundleDataResult = new Bundle();
    bundleDataResult.putString(sCode, sValue);

    setIntentResult("", RESULT_OK, bundleDataResult);
    finish();
  }
예제 #2
0
  public void CloseActivity(DataTable data) {
    Bundle bundleDataResult = new Bundle();
    bundleDataResult.putString(bundleTableUpdated, data.GetTableName());

    setIntentResult("", RESULT_OK, bundleDataResult);
    finish();
  }
예제 #3
0
  public boolean OpenDataForEdit(DataTable data) {
    long lRowId = RequestedRowId();
    Database.Result result = data.GetRowDataForEdit(lRowId);
    if (result == Database.Result.Success) {
      // save date values for change test
      SaveDateValuesBeforeChange(bundleDateValues);

      return true;
    } else {
      // return fail result for caller
      int iMsgId = Database.GetErrDesc(result);
      Bundle extras = PutBundledMessage(iMsgId);
      setIntentResult("", RESULT_CANCELED, extras);

      return false;
    }
  }