Examples of DMS


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

    return Gadgets.HTMLEncode(getString("es"));
  }
 
  public States states(AtrilSession oSes) throws IllegalStateException {
    States s = null;
    Dms oDms = oSes.getDms();
    if (null==sStates) {
      for (Document d : oDms.getDocument(id()).children()) {
        if (d.type().name().equals("States")) {
          s = new States(oDms.getDocument(d.id()));
          sStates = s.id();
          break;
        }
      }
    } else {
      s = new States(oDms.getDocument(sStates));   
    }
    return s;
  }
View Full Code Here

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

            oAacc.load(getSession(), sFormerId);
            oAacc.setCode(getParam("accountingAccount.code"));
            oAacc.setDescription(getParam("accountingAccount.description"));
            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

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

        return new ForwardResolution(FORM);
    }
   
    public Collection<Order> getOrders() throws StorageException, InstantiationException, IllegalStateException, IllegalStateException, IllegalAccessException  {
            connect(getSessionAttribute("nickname"), getSessionAttribute("password"));
            Dms oDms = getSession().getDms();
            CustomerAccount oCacc = new CustomerAccount(oDms, getSessionAttribute("customer_account_docid"));
            return (Collection<Order>) oCacc.orders(getSession()).list(getSession());

    }
View Full Code Here

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

    public Resolution deleteOrder(){
       try {
      String order_id = getContext().getRequest().getParameter("order_id");
      connect();
      AtrilSession oSes = getSession();
      Dms oDms = oSes.getDms();
      Order oOrder = new Order(oDms, order_id);
      BigDecimal oStatus = oOrder.getBigDecimal("status_number");
      if (oStatus != null && (oStatus.compareTo(Tpv.PAGADO) != 0 && oStatus.compareTo(Tpv.PENDIENTE_CONFIRMACION) != 0)) {
        oOrder.getDocument().deleteWithChildren();
        oSes.commit();
View Full Code Here

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

      connect();

      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();
View Full Code Here

Examples of jsky.coords.DMS

                if (c == Double.class)
                    return hms.getVal();
                else
                    return new Float(hms.getVal());
            } else if (fieldDesc.isDec()) {
                DMS dms = new DMS(s);
                if (c == Double.class)
                    return dms.getVal();
                else
                    return new Float(dms.getVal());
            }
        }

        try {
            if (c == Double.class) {
View Full Code Here

Examples of jsky.coords.DMS

        }
        double latArr[] = new double[latLevels.size()];
        String latLabels[] = new String[latLevels.size()];
        for (int i = 0; i < latArr.length; i++) {
            latArr[i] = latLevels.get(i);
            latLabels[i] = (new DMS(latArr[i])).toString();
        }

        if (polar) {
            drawRadial(g);
        } else {
View Full Code Here

Examples of jsky.coords.DMS

        if (!Double.isNaN(val)) {
            if (_isRA) {
                HMS hms = new HMS(val/15.);
                ((JLabel) component).setText(hms.toString(_showSeconds));
            } else {
                DMS dms = new DMS(val);
                ((JLabel) component).setText(dms.toString(_showSeconds));
            }
        }

        return component;
    }
View Full Code Here

Examples of jsky.coords.DMS

        }
        if (!Double.isNaN(val)) {
            if (hoursFlag) {
                ((JTextField) component).setText(new HMS(val / 15.).toString());
            } else {
                ((JTextField) component).setText(new DMS(val).toString());
            }
        }

        return component;
    }
View Full Code Here

Examples of jsky.coords.DMS

                } catch (Exception e) {
                    DialogUtil.error("Invalid value: '" + o + "', expected decimal degrees or h:m:s");
                }
            } else {
                try {
                    DMS dms = new DMS((String) o);
                    return dms.getVal();
                } catch (Exception e) {
                    DialogUtil.error("Invalid value: '" + o + "', expected decimal degrees or d:m:s");
                }
            }
        }
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.