Package es.ipsa.atril.doc.user

Examples of es.ipsa.atril.doc.user.Document.save()


    for (Document d : getDocument().children())
      if (d.type().name().equals("IncomingDeposits"))
        return d.id();
    Dms oDms = oSes.getDms();
    Document oDoc = oDms.newDocument(oDms.getDocumentType("IncomingDeposits"), getDocument());
    oDoc.save("");
    oSes.commit();
    return oDoc.id();
  }
 
  public BillNotes billnotes(AtrilSession oSes) {
View Full Code Here


        }
    } // next
   
    if (null==oAccountingAccounts) {
      Document n = oSes.getDms().newDocument(oSes.getDms().getDocumentType("AccountingAccounts"), getDocument());
      n.save("");
      DocumentIndexer oIdx = oSes.getDocumentIndexer();
      oIdx.indexDocument(n);
      oAccountingAccounts = new AccountingAccounts(n);
      populateAccountingAccountsWithDefaultValues(oSes, oSes.getDms(), oIdx, customerAccount(oSes.getDms()));
    }
View Full Code Here

          Document a = oDms.newDocument(oDtp, p);
          a.attribute("account_code").set(d.getString("account_code"));
          a.attribute("account_desc").set(d.getString("account_desc"));
          a.attribute("account_uuid").set(Gadgets.generateUUID());
          a.attribute("is_active").set("1");
          a.save("");
          oIdx.indexDocument(a);         
        }
      }   

      Log.out.debug("PROFILING: Copy Default AccountingAccounts to Customer AccountingAccounts "+String.valueOf((lEnd=new Date().getTime())-lStart)+" ms");
View Full Code Here

    Log.out.debug("PROFILING: Save TaxPayer "+String.valueOf((lEnd=new Date().getTime())-lStart)+" ms");
    lStart = lEnd;
   
    Document oInvoices = oDms.newDocument(oDms.getDocumentType("Invoices"), oPayer.getDocument());
    oInvoices.save("");
    oIdx.indexDocument(oInvoices);

    Document oBillNotes = oDms.newDocument(oDms.getDocumentType("BillNotes"), oPayer.getDocument());
    oBillNotes.save("");
    oIdx.indexDocument(oBillNotes);
View Full Code Here

    Document oInvoices = oDms.newDocument(oDms.getDocumentType("Invoices"), oPayer.getDocument());
    oInvoices.save("");
    oIdx.indexDocument(oInvoices);

    Document oBillNotes = oDms.newDocument(oDms.getDocumentType("BillNotes"), oPayer.getDocument());
    oBillNotes.save("");
    oIdx.indexDocument(oBillNotes);

    Document oEmployees = oDms.newDocument(oDms.getDocumentType("Employees"), oPayer.getDocument());
    oEmployees.save("");
    oIdx.indexDocument(oEmployees);
View Full Code Here

    Document oBillNotes = oDms.newDocument(oDms.getDocumentType("BillNotes"), oPayer.getDocument());
    oBillNotes.save("");
    oIdx.indexDocument(oBillNotes);

    Document oEmployees = oDms.newDocument(oDms.getDocumentType("Employees"), oPayer.getDocument());
    oEmployees.save("");
    oIdx.indexDocument(oEmployees);

    Log.out.debug("PROFILING: Create TaxPayer child documents "+String.valueOf((lEnd=new Date().getTime())-lStart)+" ms");
    lStart = lEnd;
   
View Full Code Here

    oDoc.attribute("SignInClient").set(bSign ? 1 : 0);
    oDoc.attribute("SignInServer").set(bServerSign ? 1 : 0);
    oDoc.attribute("IsPDFA").set(0);
    oDoc.attribute("XMPMetadataStructure").set("");
    oDoc.attribute("bitsDepth").set(0);
    oDoc.save("");
    oCpt.setDocument(oDoc);
    oDoc = oDms.newDocument(oDms.getDocumentType("Fields"), oCpt.getDocument());
    oDoc.save("");
    return oCpt;
  }
View Full Code Here

    oDoc.attribute("XMPMetadataStructure").set("");
    oDoc.attribute("bitsDepth").set(0);
    oDoc.save("");
    oCpt.setDocument(oDoc);
    oDoc = oDms.newDocument(oDms.getDocumentType("Fields"), oCpt.getDocument());
    oDoc.save("");
    return oCpt;
  }
 
  public static CaptureTypes top(AtrilSession oSes) throws ElementNotFoundException {
    Document r = oSes.getDms().getRootDocument();
View Full Code Here

            oAacc.setActive(getParam("accountingAccount.active","1").equals("1"));
        } else {
            Dms oDms = getSession().getDms();
            TaxPayer oTxpr = new TaxPayer(getSession().getDms(), getParam("taxPayer"));
            Document oDoca = oDms.newDocument(oDms.getDocumentType("AccountingAccount"), oTxpr.accounts(getSession()).getDocument());
            oDoca.save("");           
            oAacc = new AccountingAccount(oDoca);
            oAacc.setCode(getParam("accountingAccount.code"));
            oAacc.setDescription(getParam("accountingAccount.description"));
            oAacc.setActive(getParam("accountingAccount.active","1").equals("1"));
        }
View Full Code Here

        SortableList<Document> oThd = oDms.query("Message$thread_id='"+getString("thread_id")+"'");
        if (!oThd.isEmpty()) {
          for (Document m : oThd) {
            Document oMsg = oDms.getDocument(m.id());
            oMsg.attribute("is_archived").set("1");
            oMsg.save("archive");
          }         
        }
      }
    }
  }
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.