Examples of ProductInfo


Examples of com.openbravo.pos.ticket.ProductInfo

    public ProductInfo findProductById(String productId) {

        Connection con = null;
        PreparedStatement ps = null;
        ResultSet rs = null;
        ProductInfo vos = null;
        String sqlStr = "SELECT * FROM PRODUCTS WHERE ID=?";

        try {
            //get connection
            con = getConnection();
View Full Code Here

Examples of com.openbravo.pos.ticket.ProductInfo

        return vos;
    }

    @Override
    protected ProductInfo map2VO(ResultSet rs) throws SQLException {
        ProductInfo product = new ProductInfo();
        product.setId(rs.getString("id"));
        product.setRef(rs.getString("reference"));
        product.setCode(rs.getString("code"));
        product.setName(rs.getString("name"));
        product.setPriceBuy(rs.getDouble("pricebuy"));
        product.setPriceSell(rs.getDouble("pricesell"));
        product.setCategoryId(rs.getString("category"));
        product.setTaxcat(rs.getString("taxcat"));
        product.setCom(rs.getBoolean("iscom"));
        product.setScale(rs.getBoolean("isscale"));

        return product;
    }
View Full Code Here

Examples of com.openbravo.pos.ticket.ProductInfo

        category = new CategoryDAO();
        tax = new TaxDAO();
        taxesLogic = new TaxesLogic(tax.getTaxList());

        TicketInfo obj = ticket.getTicket(ticketId);
        ProductInfo productObj = product.findProductById(productId);
        TicketLineInfo line = new TicketLineInfo(productObj, productObj.getPriceSell(), taxesLogic.getTaxInfo(productObj.getTaxcat()));
        obj.addLine(line);
        ticket.updateTicket(ticketId, obj);
        refreshTax(obj);
    }
View Full Code Here

Examples of com.openbravo.pos.ticket.ProductInfo

    public ProductInfo findProductById(String productId) {

        Connection con = null;
        PreparedStatement ps = null;
        ResultSet rs = null;
        ProductInfo vos = null;
        String sqlStr = "SELECT * FROM PRODUCTS WHERE ID=?";

        try {
            //get connection
            con = getConnection();
View Full Code Here

Examples of com.openbravo.pos.ticket.ProductInfo

        return vos;
    }

    @Override
    protected ProductInfo map2VO(ResultSet rs) throws SQLException {
        ProductInfo product = new ProductInfo();
        product.setId(rs.getString("id"));
        product.setRef(rs.getString("reference"));
        product.setCode(rs.getString("code"));
        product.setName(rs.getString("name"));
        product.setPriceBuy(rs.getDouble("pricebuy"));
        product.setPriceSell(rs.getDouble("pricesell"));
        product.setCategoryId(rs.getString("category"));
        product.setTaxcat(rs.getString("taxcat"));
        product.setCom(rs.getBoolean("iscom"));
        product.setScale(rs.getBoolean("isscale"));

        return product;
    }
View Full Code Here

Examples of com.vmware.vim.binding.vim.vApp.ProductInfo

      // If CMS VM version is not the same as the parent vApp version,
      // update the parent vApp version
      if (!cmsVersion.equals(vAppVersion) || !cmsFullVersion.equals(vAppFullVersion)) {
         //not found, should add this property
         prodSpec = new ProductSpecImpl();
         ProductInfo prod = new ProductInfoImpl();
         prod.setKey(0);
         prod.setVersion(cmsVersion);
         prod.setFullVersion(cmsFullVersion);
         prodSpec.setInfo(prod);
         prodSpec.setOperation(Operation.edit);
      }

      if (prodSpec != null) {
View Full Code Here

Examples of flash.swf.tags.ProductInfo

        byte majorVersion = Byte.parseByte(getAttribute(attributes, "majorVersion"));
        byte minorVersion = Byte.parseByte(getAttribute(attributes, "majorVersion"));
        long build = Long.parseLong(getAttribute(attributes, "build"));
        long compileDate = Long.parseLong(getAttribute(attributes, "compileDate"));

        stack.push(new ProductInfo(product, edition, majorVersion, minorVersion, build, compileDate));
    }
View Full Code Here

Examples of flash.swf.tags.ProductInfo

        byte majorVersion = Byte.parseByte(getAttribute(attributes, "majorVersion"));
        byte minorVersion = Byte.parseByte(getAttribute(attributes, "majorVersion"));
        long build = Long.parseLong(getAttribute(attributes, "build"));
        long compileDate = Long.parseLong(getAttribute(attributes, "compileDate"));

        stack.push(new ProductInfo(product, edition, majorVersion, minorVersion, build, compileDate));
    }
View Full Code Here

Examples of org.rhq.core.domain.common.ProductInfo

        ServerDetails details = systemManager.getServerDetails(caller);
        Map<ServerDetails.Detail,String> detailsMap = details.getDetails();
        for (Map.Entry<ServerDetails.Detail,String> detail : detailsMap.entrySet()) {
                result.put(detail.getKey().toString(),detail.getValue());
        }
        ProductInfo productInfo = details.getProductInfo();
        result.put("BuildNumber", productInfo.getBuildNumber());
        result.put("FullName", productInfo.getFullName());
        result.put("Name", productInfo.getName());
        result.put("Version", productInfo.getVersion());

        ModelControllerClient mcc = null;
        try {
            mcc = MCCHelper.createModelControllerClient();
            CoreJBossASClient coreClient = new CoreJBossASClient(mcc);
View Full Code Here

Examples of org.rhq.core.domain.common.ProductInfo

    }

    @Override
    public ProductInfo getProductInfo(Subject subject) {
        CoreServerMBean coreServer = LookupUtil.getCoreServer();
        ProductInfo productInfo = coreServer.getProductInfo();
        return productInfo;
    }
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.