Package org.richfaces

Examples of org.richfaces.DemoInventoryItem


      int arrayCount = count;

      DemoInventoryItem[] demoInventoryItemArrays = new DemoInventoryItem[arrayCount];

      for (int j = 0; j < demoInventoryItemArrays.length; j++){
        DemoInventoryItem ii = new DemoInventoryItem();

        ii.setMake(make);
        ii.setModel(model);
        ii.setStock(randomstring(6,7));
        ii.setVin(randomstring(14,15));
        ii.setMileage(new BigDecimal(rand(5000,80000)).setScale(DECIMALS, ROUNDING_MODE));
        ii.setMileageMarket(new BigDecimal(rand(25000,45000)).setScale(DECIMALS, ROUNDING_MODE));
        ii.setPrice(new Integer(rand(15000,55000)));
        ii.setPriceMarket(new BigDecimal(rand(15000,55000)).setScale(DECIMALS, ROUNDING_MODE));
        ii.setDaysLive(rand(1,90));
        ii.setChangeSearches(new BigDecimal(rand(0,5)).setScale(DECIMALS, ROUNDING_MODE));
        ii.setChangePrice(new BigDecimal(rand(0,5)).setScale(DECIMALS, ROUNDING_MODE));
        ii.setExposure(new BigDecimal(rand(0,5)).setScale(DECIMALS, ROUNDING_MODE));
        ii.setActivity(new BigDecimal(rand(0,5)).setScale(DECIMALS, ROUNDING_MODE));
        ii.setPrinted(new BigDecimal(rand(0,5)).setScale(DECIMALS, ROUNDING_MODE));
        ii.setInquiries(new BigDecimal(rand(0,5)).setScale(DECIMALS, ROUNDING_MODE));
        demoInventoryItemArrays[j] = ii;

      }

      iiList = new ArrayList<DemoInventoryItem>(Arrays.asList(demoInventoryItemArrays));
View Full Code Here

TOP

Related Classes of org.richfaces.DemoInventoryItem

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.