Package com.ipc.oce.objects

Examples of com.ipc.oce.objects.OCDocumentManager.createDocument()


  }
 
  @Test
  public void createAndDelete() throws JIException {
    OCDocumentManager manager = app.getDocumentManager("СчетНаОплатуПокупателю");
    OCDocumentObject doc = manager.createDocument();
    System.out.println("isNew1: " + doc.isNew() + " [before write]");
    doc.setNumber("XXX-000-002");
    doc.setDate(new Date());
    doc.write();
    System.out.println("isNew2: " + doc.isNew() + " [after write]");
View Full Code Here


  }
 
  @Test
  public void showNewObjectsXML() throws JIException {
    OCDocumentManager manager = app.getDocumentManager("ПриемНаРаботуВОрганизацию");
    OCDocumentObject doc = manager.createDocument();
    OCXDTOSerializer serializer = app.getXDTOSerializer();
    OCXMLWriter writer = app.newXMLWriter();
    writer.setString();
    serializer.writeXML(writer, doc);
    System.out.println(writer.close());
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.