/**
   * Deletes a S_FrameWork_Query_OperationValueObject through the business facade using information
   * in the HttpServletRequest.
   *
   * @return String as result
   * @exception ProcessingException
   */
  public String deleteS_FrameWork_Query_Operation() throws ProcessingException {
    String sReturnValue = null;

    FrameworkDefaultLogger.debug(
        "Inside S_FrameWork_Query_OperationWorkerBean::deleteS_FrameWork_Query_Operation");
    ApplicationUSOM objectManager = (ApplicationUSOM) getUSOM();

    try {
      // S_FrameWork_Query_OperationPrimaryKey primaryKey    = getPrimaryKeyFromServletRequest();
      S_FrameWork_Query_OperationPrimaryKey primaryKey =
          new S_FrameWork_Query_OperationPrimaryKey(
              this.getServletRequestParameter("queryoperationid"));
      IS_FrameWork_Query_OperationValueObject valueObject =
          S_FrameWork_Query_OperationProxy.getS_FrameWork_Query_Operation(primaryKey);

      // delete the S_FrameWork_Query_OperationValueObject
      if (valueObject != null) {
        new S_FrameWork_Query_OperationProxy(valueObject).delete();
        FrameworkDefaultLogger.debug(
            "S_FrameWork_Query_OperationWorkerBean:deleteS_FrameWork_Query_Operation() - successfully delete S_FrameWork_Query_OperationValueObject with key field(s) - "
                + primaryKey.toString());

        // write the log
        PublicFunction.writeSystemLog(
            this.currentUser, new Long(2), valueObject, this.beforeSaveValueObject);

        // update the cached list
        ValueObjectListProxy voList = objectManager.getS_FrameWork_Query_Operations();
        if (voList != null) {
          Collection coll = voList.getDataValues();
          Iterator tempIterator = coll.iterator();
          ArrayList tmpColl = new ArrayList();
          while (tempIterator.hasNext()) {
            S_FrameWork_Query_OperationValueObject tmpObj =
                (S_FrameWork_Query_OperationValueObject) tempIterator.next();
            if (!(tmpObj.getS_FrameWork_Query_OperationPrimaryKey())
                .equals(valueObject.getS_FrameWork_Query_OperationPrimaryKey())) {
              tmpColl.add(tmpObj);
            }
          }
          objectManager.setS_FrameWork_Query_Operations(tmpColl);
        }
      }
    } catch (Exception exc) {
      String sErrorMsg =
          " S_FrameWork_Query_OperationWorkerBean:deleteS_FrameWork_Query_Operation() - " + exc;
      FrameworkDefaultLogger.error(sErrorMsg);
      PublicFunction.CustomProcessingException(objectManager, "删除记录时出错,请重新操作!", sErrorMsg, exc);
      // throw new
      // ProcessingException("S_FrameWork_Query_OperationWorkerBean:saveS_FrameWork_Query_Operation() - " +
      //    sErrorMsg);
    }

    return (sReturnValue);
  }
  /**
   * Saves a S_FrameWork_Query_OperationValueObject through the business facade using information in
   * the HttpServletRequest.
   *
   * @return String as result
   * @exception ProcessingException
   */
  public String saveS_FrameWork_Query_Operation() throws ProcessingException {
    String sReturnValue = null;

    FrameworkDefaultLogger.debug(
        "Inside S_FrameWork_Query_OperationWorkerBean::saveS_FrameWork_Query_Operation");
    ApplicationUSOM objectManager = (ApplicationUSOM) getUSOM();

    try {
      // save the S_FrameWork_Query_OperationValueObject
      this.m_S_FrameWork_Query_OperationValueObject =
          setDefault(
              (S_FrameWork_Query_OperationValueObject)
                  this.m_S_FrameWork_Query_OperationValueObject,
              "CreateEdit",
              "save_S_FrameWork_Query_Operation"); // added by wzp
      IS_FrameWork_Query_OperationProxy proxy =
          new S_FrameWork_Query_OperationProxy(this.m_S_FrameWork_Query_OperationValueObject);
      IS_FrameWork_Query_OperationValueObject valueObject = proxy.saveS_FrameWork_Query_Operation();

      if (valueObject != null) {
        FrameworkDefaultLogger.debug(
            "S_FrameWork_Query_OperationWorkerBean:save() - successfully saved S_FrameWork_Query_OperationValueObject - "
                + valueObject.toString());

        // assign the S_FrameWork_Query_OperationValueObject to the ApplicationUSOM
        objectManager.setCurrentS_FrameWork_Query_Operation(valueObject);

        // write the sytem log
        PublicFunction.writeSystemLog(
            this.currentUser, new Long(3), valueObject, this.beforeSaveValueObject);

        // update the cached list
        ValueObjectListProxy voList = objectManager.getS_FrameWork_Query_Operations();
        if (voList != null) {
          Collection coll = voList.getDataValues();
          Iterator tempIterator = coll.iterator();
          ArrayList tmpColl = new ArrayList();
          while (tempIterator.hasNext()) {
            S_FrameWork_Query_OperationValueObject tmpObj =
                (S_FrameWork_Query_OperationValueObject) tempIterator.next();
            if ((tmpObj.getS_FrameWork_Query_OperationPrimaryKey())
                .equals(beforeSaveValueObject.getS_FrameWork_Query_OperationPrimaryKey())) {
              tmpColl.add(valueObject);
            } else {
              tmpColl.add(tmpObj);
            }
          }
          objectManager.setS_FrameWork_Query_Operations(tmpColl);
        }
      }
    } catch (Exception exc) {
      String sErrorMsg =
          " S_FrameWork_Query_OperationWorkerBean:saveS_FrameWork_Query_Operation() - " + exc;
      FrameworkDefaultLogger.error(sErrorMsg);
      PublicFunction.CustomProcessingException(objectManager, "保存记录时出错,请重新操作!", sErrorMsg, exc);
      // throw new
      // ProcessingException("S_FrameWork_Query_OperationWorkerBean:saveS_FrameWork_Query_Operation() - " +
      //    sErrorMsg);
    }

    return (sReturnValue);
  }