Package com.ipc.oce

Examples of com.ipc.oce.OCVariant


   * @param имя реквизита
   * @return OCVariant
   * @throws JIException
   */
  public OCVariant getAttributeValue(String attributeName) throws JIException{
    return new OCVariant(get(attributeName));
  }
View Full Code Here


    OCApp inst = OCApp.getInstance(getAssociatedSessionID());
    OCArray subkontoArray = null;
    OCArray korSubkontoArray = null;
    if (subkonto != null) {
      subkontoArray = inst.newArray();
      subkontoArray.add(new OCVariant(subkonto));
    }
    if (korSubkonto != null) {
      korSubkontoArray = inst.newArray();
      korSubkontoArray.add(new OCVariant(korSubkonto));
    }
    return getTurnovers(startDate, endDate, subkontoArray, korSubkontoArray, structure, dimension, resouces);
  }
View Full Code Here

    OCApp inst = OCApp.getInstance(getAssociatedSessionID());
    OCArray subkontoDrArray = null;
    OCArray subkontoCrArray = null;
    if (subkontoDr != null) {
      subkontoDrArray = inst.newArray();
      subkontoDrArray.add(new OCVariant(subkontoDr));
    }
    if (subkontoCr != null) {
      subkontoCrArray = inst.newArray();
      subkontoCrArray.add(new OCVariant(subkontoCr));
    }
    return getDrCrTurnovers(startDate, endDate, subkontoDrArray, subkontoCrArray, structure, dimension, resouces);
  }
View Full Code Here

  public OCValueTable getBalance(Date date, OCChartOfCharacteristicTypesRef ref, OCStructure structure, String dimensions, String resources) throws JIException {
    OCApp inst = OCApp.getInstance(getAssociatedSessionID());
    OCArray refsArray = null;
    if (ref != null) {
      refsArray = inst.newArray();
      refsArray.add(new OCVariant(ref));
    }
    return getBalance(date, refsArray, structure, dimensions, resources);
  }
View Full Code Here

   * @param attributeName
   * @return
   * @throws JIException
   */
  public OCVariant getAttributeValue(String attributeName) throws JIException{
    return new OCVariant(get(attributeName));
  }
View Full Code Here

   * @param resourceName
   * @return
   * @throws JIException
   */
  public Number getResource(String resourceName) throws JIException{
    OCVariant v = new OCVariant(get(resourceName));
    return (Number) v.value();
  }
View Full Code Here

   * @param dimensionName
   * @return
   * @throws JIException
   */
  public OCVariant getDimension(String dimensionName) throws JIException{
    return new OCVariant(get(dimensionName));
  }
View Full Code Here

   * @param attributeName имя реквизита (атрибута)
   * @return
   * @throws JIException
   */
  public OCVariant getAttributeValue(String attributeName) throws JIException{
    return new OCVariant(get(attributeName));
  }
View Full Code Here

   * Получает значение константы. Примечание: При каждом использовании метода происходит считывание значения из базы данных.
   * @return OCVariant
   * @throws JIException
   */
  public OCVariant getValue() throws JIException{
    return new OCVariant(callMethodA("Get")) ;
  }
View Full Code Here

    String res = null;
    try {
      res = selection.getString(paramInt);
    } catch (java.lang.IllegalStateException e) {
      try {
        OCVariant variant = selection.getValue(paramInt);
        Object o = variant.value();
        if (o != null) {
          if (o instanceof _OCCommonRef) {
            Ref ref = new OCERef((_OCCommonRef) o);
            res = ref.toString();
          } else {
View Full Code Here

TOP

Related Classes of com.ipc.oce.OCVariant

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.