Package es.ipsa.atril.doc.user

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


      PreparedStatement oStm = null;
      try {
        oCon = DAO.getConnection("DepositToZespedBridge");
        oCon.setAutoCommit(false);
        oStm = oCon.prepareStatement("UPDATE Documento SET fkIdDocPadre=? WHERE IdDoc=?");
        Dms oDms = oSes.getDms();
        TaxPayer txpy = new TaxPayer(oDms, sTaxPayerId);
        Invoices invs = txpy.invoices(oSes);
        Document oDepo = oDms.getDocument(String.valueOf(lDepositId));
        for (Document oDdoc : oDepo.children()) {
          Log.out.debug("getting sides for document "+oDdoc.id());
          NodeList<Document> oChlds = oDdoc.children();
          Invoice[] aInvs = invs.create(oSes, sUid, sFlavor, sTaxPayerId, sBiller, sRecipient, oChlds.size());
          int i = 0;
View Full Code Here


          oUsr.canSettleBillNotes(getParam("settle","").length()>0);
          oUsr.canUsePremiumCaptureServiceFlavor(getParam("premium","").length()>0);
          oUsr.setRole(getSession(), oAcc, Role.valueOf(sRole));
        }
        if (sTxpr.length()>0) {
          Dms oDms = getSession().getDms();
            TaxPayer oTxp = new TaxPayer(oDms, sTxpr);
          Employees oEms = oTxp.employees(getSession());
          Employee oEmp = new Employee();
          Document e = oEmp.exists(getSession(), "employee_uuid", oUsr.getNickName());
            if (e!=null) {
            Log.out.debug("Employee already exists");
              oEmp.load(getSession(), e.id());
              if (!oEmp.parentId().equals(oEms.id()))
                oEmp.getDocument().parents().replace(oDms.getDocument(oEmp.parentId()), oDms.getDocument(oEms.id()));
            } else {
            Log.out.debug("Employee does not exist");
              oEmp = new Employee(getSession(), oEms);
              oEmp.setUuid(oUsr.getNickName());
            }
View Full Code Here

    oCtts.save(oSes);
    return oStte;
  }
 
  public Collection<State> list(AtrilSession oSes) {
    Dms oDms = oSes.getDms();
    Country oCntr = getCountry(oSes);
    if (oCache.containsKey(oCntr.getIsoCode())) {
      return oCache.get(oCntr.getIsoCode());
    } else {
      ArrayList<State> aStates = new ArrayList<State>();
      for (Document d : getDocument().children()) {
        aStates.add(new State(oDms.getDocument(d.id())));
      }
      Collections.sort(aStates, oSttCmp);
      oCache.put(oCntr.getIsoCode(), aStates);
      return aStates;     
    }
View Full Code Here

 
  public static void reindexAll() throws AuthenticationException, SecuritySystemException, SQLException {
    if (!bInitOK) throw new IllegalStateException("DAO was not properly initialized");
   
    AtrilSession oSess = getSession("reindexAll", oAtrilProperties.getProperty("atril.user"), oAtrilProperties.getProperty("atril.password"));
    Dms oDms = oSess.getDms();
    Document oRoot = oDms.getRootDocument();
    NodeList<Document> oChilds = oRoot.children();
    for (Document c : oChilds) {
      if (c.type().name().equals("Zesped")) {
        reindexDocument(oSess, c);
        break;
View Full Code Here

TOP

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

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.