Package es.ipsa.atril.doc.user

Examples of es.ipsa.atril.doc.user.DocumentType


    Log.out.debug("PROFILING: List Default AccountingAccounts "+String.valueOf((lEnd=new Date().getTime())-lStart)+" ms");
    lStart = lEnd;
   
    int nAacs = aDefs.size();
    if (nAacs>0) {
      DocumentType oDtp = oDms.getDocumentType("AccountingAccount");
      Document p = oAccountingAccounts.getDocument();
      for (AccountingAccountDefault d : aDefs) {
        try {
          oAccountingAccounts.seek(oSes, d.getString("account_code"));
        } catch (ElementNotFoundException enfe) {
View Full Code Here


    return oDoc;
  }

  protected void newDocument(AtrilSession oSes, Document oParent) {
    Dms oDms = oSes.getDms();
    DocumentType oDoct = oDms.getDocumentType(getTypeName());
    oDoc = oDms.newDocument(oDoct, oParent);
    setTypeName(oDoc.type().name());
    sId = oDoc.id();
    clear();
  } // newDocument
View Full Code Here

  }

  // ---------------------------------------------------------------------------

  private void createTypeHierarchy(Dms oDms, DocumentType oParentType, String[] aTypesHierarchy) {
    DocumentType oChildType;
    for (int t=0; t<aTypesHierarchy.length; t++) {
      try {
        oChildType = oDms.getDocumentType(aTypesHierarchy[t]);
      } catch (ElementNotFoundException enf) {
        oChildType = oDms.newDocumentType(aTypesHierarchy[t], oParentType);
        try {
      Class oCls = Class.forName("com.zesped.model."+aTypesHierarchy[t]);
          BaseModelObject oObj = (BaseModelObject) oCls.newInstance();
        oChildType.setItem(oObj.isItem());
        if (oObj.isItem()) oChildType.expectedSize(102400);
        } catch (ClassNotFoundException e) {
        oChildType.setItem(false);
        } catch (InstantiationException e) {
        oChildType.setItem(false);
      } catch (IllegalAccessException e) {
        oChildType.setItem(false);
      }
        oChildType.save();
      }
      oParentType = oChildType;
    }
  }
View Full Code Here

    oInm.setCaptionFormat(oDms.getDocumentType("CaptureType"), oES, "{name}");

    oInm.setCaptionFormat(oDms.getDocumentType("DeviceInformationType"), Locale.ENGLISH, "{brand} {model}");
    oInm.setCaptionFormat(oDms.getDocumentType("DeviceInformationType"), oES, "{brand} {model}");
   
    DocumentType oDepT = oDms.getDocumentType("Deposit");
    DocumentType oSidT = oDms.getDocumentType("Side");
    DocumentType oInvT = oDms.getDocumentType("Invoice");
    DocumentType oTckT = oDms.getDocumentType("Ticket");
    DocumentType oIncT = oDms.getDocumentType("IncomingDeposits");
    try {
      oSidT.addParent(oInvT);
        oSidT.save();
    } catch (IllegalArgumentException yaespadre) { }
    try {
View Full Code Here

TOP

Related Classes of es.ipsa.atril.doc.user.DocumentType

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.