Package com.finiac.model

Examples of com.finiac.model.StockAlertSettings


    }
    else
    {
      product.setQtyAvail(temp-qtySold);
      productDAO.updateProduct(product);
      StockAlertSettings stockAlertLimit;
      String stockAlertString="";
      try{
         stockAlertLimit = stockAlertSettingsDAO.getSettings();
      }catch (NullPointerException e) {
        StockAlertSettings settings= new StockAlertSettings();
        settings.setVariable("min_qty");
        settings.setValue("10");
        stockAlertLimit = stockAlertSettingsDAO.getSettings();
      }
        if(product.getQtyAvail()< Float.parseFloat(stockAlertLimit.getValue()))
          stockAlertString="stockAlert="+temp;   
      billId= Long.parseLong(request.getSession().getAttribute("billId").toString());
View Full Code Here


    return new ModelAndView("newBill",modelMap);
  }
 
  public ModelAndView stockAlertPage(HttpServletRequest request, HttpServletResponse response)throws Exception
  {
    StockAlertSettings stockAlert = new StockAlertSettings();
    stockAlert = stockAlertSettingsDAO.getSettings();
    return new ModelAndView("stockAlertSettings", "settings", stockAlert);
  }
View Full Code Here

  @SuppressWarnings("unchecked")
  @Override
  public StockAlertSettings getSettings() {
    List<StockAlertSettings> settingsList=hibernateTemplate.find("from StockAlertSettings where variable='min_qty'");
    StockAlertSettings stockAlertSettings = new StockAlertSettings();
    for(int i=0;i<settingsList.size();i++)
    {
      stockAlertSettings = settingsList.get(i);
    }
    return stockAlertSettings;
View Full Code Here

TOP

Related Classes of com.finiac.model.StockAlertSettings

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.