Examples of OCInformationRegisterCollection


Examples of com.ipc.oce.objects.OCInformationRegisterCollection

   * Используется для доступа к определенным в конфигурации регистрам сведений.
   * @return OCInformationRegisterCollection
   * @throws JIException
   */
  public OCInformationRegisterCollection getInformationRegisterCollection() throws JIException {
    return new OCInformationRegisterCollection(get("InformationRegisters"));
  }
View Full Code Here

Examples of com.ipc.oce.objects.OCInformationRegisterCollection

   * @param managerName для регистра сведений
   * @return OCInformationRegisterManager
   * @throws JIException
   */
  public OCInformationRegisterManager getInformationRegisterManager(String managerName) throws JIException {
    OCInformationRegisterCollection collection = getInformationRegisterCollection();
    try {
      return collection.getInformationRegister(managerName);
    } catch (JIException e) {
      getErrorListener().onError(this, e);
      throw e;
    }
  }
View Full Code Here

Examples of com.ipc.oce.objects.OCInformationRegisterCollection

public class JUInfoReg extends BasicTest {

  @Test
  public void iterateRegister() throws JIException {
   
    OCInformationRegisterCollection collection = app.getInformationRegisterCollection();
    for (OCInformationRegisterManager manager : collection) {
      System.out.println(manager.getManagerName());
    }
    System.out.println("===============================================\n");
  }
View Full Code Here

Examples of com.ipc.oce.objects.OCInformationRegisterCollection

    System.out.println("===============================================\n");
  }
 
  @Test
  public void showMetadataViaManager() throws JIException {
    OCInformationRegisterCollection collection = app.getInformationRegisterCollection();
    OCInformationRegisterManager manager = collection.getInformationRegister("АдресныйКлассификатор");
   
    OCInformationRegisterMetadataObject metadata = manager.getMetadata();
    System.out.println("getFullName: " + metadata.getFullName());
   
    OCMetadataResourceCollection resourceCollection = metadata.getResources();
View Full Code Here

Examples of com.ipc.oce.objects.OCInformationRegisterCollection

    System.out.println("===============================================\n");
  }
 
  @Test
  public void getSelectionWithNullParams() throws JIException {
    OCInformationRegisterCollection collection = app.getInformationRegisterCollection();
    OCInformationRegisterManager manager = collection.getInformationRegister("АдресныйКлассификатор");
    OCInformationRegisterSelection selection = manager.select(null, null, null, null);
    int stopFactor = 2;
    while ((stopFactor--) != 0 && selection.next()) {
      System.out.println("stop factor: " + stopFactor);
      System.out.println("\tLineNumber: " + selection.getLineNumber());
View Full Code Here

Examples of com.ipc.oce.objects.OCInformationRegisterCollection

  }
 
  @Test
  public void getLast() throws JIException {
    System.out.println("==== GET LAST ====");
    OCInformationRegisterCollection collection = app.getInformationRegisterCollection();
    OCInformationRegisterManager manager = collection.getInformationRegister("ВстречныйВыпускПродукцииУслуг");
    OCStructure struct = manager.getLast(null, null);
    for (OCKeyAndValue kav : struct) {
      System.out.println(kav.getKey() + " = " + kav.getValue());
    }
   
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.