Subversion Repositories SmartDukaan

Rev

Rev 35044 | Rev 35454 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 35044 Rev 35453
Line 443... Line 443...
443
        Session session = sessionFactory.getCurrentSession();
443
        Session session = sessionFactory.getCurrentSession();
444
        final TypedQuery<RbmBilledFofoIdsModel> typedQuerySimilar = session.createNamedQuery("RBM.RbmBilledFofoId", RbmBilledFofoIdsModel.class);
444
        final TypedQuery<RbmBilledFofoIdsModel> typedQuerySimilar = session.createNamedQuery("RBM.RbmBilledFofoId", RbmBilledFofoIdsModel.class);
445
        typedQuerySimilar.setParameter("startDate", startDate);
445
        typedQuerySimilar.setParameter("startDate", startDate);
446
        typedQuerySimilar.setParameter("endDate", endDate);
446
        typedQuerySimilar.setParameter("endDate", endDate);
447
        return typedQuerySimilar.getResultList();
447
        return typedQuerySimilar.getResultList();
-
 
448
    }
448
 
449
 
-
 
450
    @Override
-
 
451
    public List<RbmWeeklyBillingModel> getWeeklyBillingDataForMonth(LocalDate monthStart, LocalDate monthEnd) {
-
 
452
        Session session = sessionFactory.getCurrentSession();
-
 
453
        final TypedQuery<RbmWeeklyBillingModel> typedQuery = session.createNamedQuery("RBM.WeeklyBilling", RbmWeeklyBillingModel.class);
-
 
454
        typedQuery.setParameter("startDate", monthStart);
-
 
455
        typedQuery.setParameter("endDate", monthEnd);
-
 
456
        return typedQuery.getResultList();
449
    }
457
    }
450
 
458
 
451
    public List<Our15DaysOldAgingStock> our15DaysAgingStock() {
459
    public List<Our15DaysOldAgingStock> our15DaysAgingStock() {
452
        Session session = sessionFactory.getCurrentSession();
460
        Session session = sessionFactory.getCurrentSession();
453
        final TypedQuery<Our15DaysOldAgingStock> typedQuerySimilar = session.createNamedQuery("Aging.15DaysOurStock", Our15DaysOldAgingStock.class);
461
        final TypedQuery<Our15DaysOldAgingStock> typedQuerySimilar = session.createNamedQuery("Aging.15DaysOurStock", Our15DaysOldAgingStock.class);