.
This commit is contained in:
@@ -17,6 +17,7 @@ using BS.Shared.DataContracts;
|
||||
using BS.Shared.Services;
|
||||
using BS.Shared.Extensions;
|
||||
using System.Diagnostics;
|
||||
using Customer = BeWo.Data.Entities.Customer;
|
||||
|
||||
namespace BeWo.Report.ReportObjects
|
||||
{
|
||||
@@ -290,7 +291,7 @@ namespace BeWo.Report.ReportObjects
|
||||
return Create(lCustomer, pSpan, disableEmptySupportConcepts, orgaOid, empOid, searchServiceRecordsByEndDate, serviceCategoryOid, checkQbStatus);
|
||||
}
|
||||
|
||||
public static List<ServicesOverviewRO> CreatePaginated(int firstResult, int maxResults, long[] customerOids, int month, int year, bool disableEmptySupportConcepts, long organizationOid, long employeeOid, int start, int end, out int rowCount, long? serviceCategoryOid = null, bool checkQbStatus = false)
|
||||
public static List<ServicesOverviewRO> CreatePaginated(int firstResult, int maxResults, long[] customerOids, int month, int year, bool disableEmptySupportConcepts, long organizationOid, long employeeOid, int start, int end, out int rowCount, long? serviceCategoryOid = null, bool checkQbStatus = false, long? costbearerOid = null)
|
||||
{
|
||||
var reportObjects = new List<ServicesOverviewRO>();
|
||||
|
||||
@@ -303,7 +304,7 @@ namespace BeWo.Report.ReportObjects
|
||||
dateTimeSpan.StartDateTime = new DateTime(year, month, start);
|
||||
dateTimeSpan.EndDateTime = new DateTime(year, month, end).AddDays(1).AddSeconds(-1);
|
||||
|
||||
var customers = DAOFactory.SearchDAO.FindCustomersForPaginatedQbByOids(firstResult, maxResults, customerOids, dateTimeSpan.StartDate, dateTimeSpan.EndDateTime, out rowCount);
|
||||
var customers = DAOFactory.SearchDAO.FindCustomersForPaginatedQbByOids(firstResult, maxResults, customerOids, dateTimeSpan.StartDate, dateTimeSpan.EndDateTime, out rowCount, serviceCategoryOid, costbearerOid);
|
||||
|
||||
foreach(var customer in customers)
|
||||
{
|
||||
@@ -320,7 +321,7 @@ namespace BeWo.Report.ReportObjects
|
||||
return reportObjects;
|
||||
}
|
||||
|
||||
public static List<ServicesOverviewRO> CreatePaginated(int firstResult, int maxCount, int month, int year, long organizationOid, long employeeOid, int startDay, int endDay, out int rowCount, long? serviceCategoryOid = null, bool disableEmptySupportConcepts = true, bool checkQbStatus = false)
|
||||
public static List<ServicesOverviewRO> CreatePaginated(int firstResult, int maxCount, int month, int year, long organizationOid, long employeeOid, int startDay, int endDay, out int rowCount, long? serviceCategoryOid = null, bool disableEmptySupportConcepts = true, bool checkQbStatus = false, long? costbearerOid = null)
|
||||
{
|
||||
var reportObjects = new List<ServicesOverviewRO>();
|
||||
|
||||
@@ -336,10 +337,8 @@ namespace BeWo.Report.ReportObjects
|
||||
|
||||
dateTimeSpan.EndDateTime = dateTimeSpan.StartDateTime.AddDays(endDay - startDay + 1).AddTicks(-1);
|
||||
|
||||
var customers = DAOFactory.SearchDAO.FindCustomersForPaginatedQb(firstResult, maxCount, false, dateTimeSpan.StartDate, dateTimeSpan.EndDateTime, out rowCount);
|
||||
|
||||
|
||||
foreach (var customer in customers)
|
||||
var paginatedCustomers = DAOFactory.SearchDAO.FindCustomersForPaginatedQb(firstResult, maxCount, false, dateTimeSpan.StartDate, dateTimeSpan.EndDateTime, out rowCount, serviceCategoryOid, costbearerOid);
|
||||
foreach(var customer in paginatedCustomers)
|
||||
{
|
||||
var servicesOverviewRO = Create(customer, dateTimeSpan, disableEmptySupportConcepts, organizationOid, employeeOid, false, serviceCategoryOid, checkQbStatus);
|
||||
if(servicesOverviewRO != null)
|
||||
|
||||
Reference in New Issue
Block a user