Package es.ipsa.atril.doc.user

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


    IllegalStateException, DmsException  {
    Log.out.debug("Begin "+getClass().getName()+".delete("+id()+")");
    Document p = oDms.getDocument(id());
    for (Document c : p.children()) {
      Document d = oDms.getDocument(c.id());
      Class t = Class.forName("com.zesped.model."+d.type().name());
      BaseModelObject o = (BaseModelObject) t.newInstance();
      o.setDocument(d);
      o.delete(oSes,oDms);
    }
    if (attributes()!=null) {
View Full Code Here


    IllegalAccessException, ClassCastException, IllegalStateException {
    Dms oDms = oSes.getDms();
    Document d = oDms.getDocument(sDocId);
    Log.out.debug("BaseModelObject.delete(AtrilSession, "+sDocId+")");
    if (null==d) throw new ElementNotFoundException("Document "+sDocId+" not found");
    Class t = Class.forName("com.zesped.model."+d.type().name());
    BaseModelObject o = (BaseModelObject) t.newInstance();
    o.setDocument(d);
    o.delete(oSes, oDms);
  }
View Full Code Here

      Log.out.debug("Begin attaching sides");
     
      Dms oDms = getSession().getDms();
      Document rcpt = oDms.getDocument(sRecipient);
      String sTaxPayerId = rcpt.type().name().equals("TaxPayer") ? sRecipient : getSessionAttribute("taxpayer_docid");
      if (sService.equals("INVOICES")) {
        disconnect();
        DepositToZespedBridge oDzb = new DepositToZespedBridge(CaptureService.INVOICES, lDepositId, getSessionAttribute("user_uuid"), sFlavor, sTaxPayerId, sBiller, sRecipient);
        oDzb.start();
        Log.out.debug("Done attaching sides");
View Full Code Here

    BaseCompanyObject oObj;
    if (isNull("biller_taxpayer")) {
      oObj=null;
    } else {
      Document d = oSes.getDms().getDocument(getString("biller_taxpayer"));
      if (d.type().name().equals("TaxPayer"))
        oObj=new TaxPayer(d);
      else if (d.type().name().equals("Client"))
        oObj=new Client(d);
      else
        oObj=null;
View Full Code Here

      oObj=null;
    } else {
      Document d = oSes.getDms().getDocument(getString("biller_taxpayer"));
      if (d.type().name().equals("TaxPayer"))
        oObj=new TaxPayer(d);
      else if (d.type().name().equals("Client"))
        oObj=new Client(d);
      else
        oObj=null;
    }
    return oObj;
View Full Code Here

        Document r,b;
        try {
          r = oDms.getDocument(getRecipientTaxPayer());
          try {
          b = oDms.getDocument(getBillerTaxPayer());
          if (r.type().name().equals(b.type().name()))
            errors.add("items", new LocalizableError("com.zesped.action.InvoceUpload.incompatibleClientAndSupplier"));
          } catch (NumberFormatException nfe) {
          Log.out.error("NumberFormatException getting biller "+getBillerTaxPayer(), nfe);
          errors.add("items", new LocalizableError("com.zesped.action.InvoceUpload.incompatibleClientAndSupplier"));
            }
View Full Code Here

      try {
        connect(getSessionAttribute("nickname"), getSessionAttribute("password"));

        Dms oDms = getSession().getDms();
        Document rcpt = oDms.getDocument(getRecipientTaxPayer());
        String sTaxPayerId = rcpt.type().name().equals("TaxPayer") ? getRecipientTaxPayer() : getSessionAttribute("taxpayer_docid");
        TaxPayer txpy = new TaxPayer(getSession().getDms(), sTaxPayerId);

        Invoices invs = txpy.invoices(getSession());
       
        invc = invs.create(getSession(), getSessionAttribute("user_uuid"), getServiceFlavor(),
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.