51 lines
1.6 KiB
C#
51 lines
1.6 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.Linq;
|
|
using System.Net;
|
|
using System.Net.Mail;
|
|
using BeWo.Data;
|
|
using BeWo.Data.Access;
|
|
using BeWo.Data.Entities;
|
|
using BeWo.Report;
|
|
using BeWo.Report.ReportObjects;
|
|
using BeWo.Service.Core;
|
|
using BeWo.Service.DCEntityMapper;
|
|
using BeWo.Service.MessageContracts;
|
|
using BeWo.Service.Plugins;
|
|
using BS.Shared;
|
|
using BS.Shared.Core;
|
|
using BS.Shared.DataContracts;
|
|
using BS.Shared.DataContracts.Compact;
|
|
using BS.Shared.Extensions;
|
|
using BS.Shared.Services;
|
|
using DevExpress.XtraReports.UI;
|
|
using ReportingService.Plugins;
|
|
using Utils = BS.Shared.Core.Utils;
|
|
|
|
namespace VkmAachenSbd.Service
|
|
{
|
|
public class CustomTimeSheetReportService : TimeSheetReportService
|
|
{
|
|
public override Dictionary<string, XtraReport> CreateAdditionalReports(IList<CompactCustomerDC> cc, DefaultReportCreator reportCreator,
|
|
TimeSheetStatusItemDC item)
|
|
{
|
|
Dictionary<string, XtraReport> reportDict = new Dictionary<string, XtraReport>();
|
|
|
|
var ro = SbdStundenaufstellungRO.Create(cc[0].CustomerOid, item.Monat.Value.Month, item.Monat.Value.Year, 0, item.Employee.EmployeeOid, 0, 1, DateTime.DaysInMonth(item.Monat.Value.Year, item.Monat.Value.Month), false, "nrw");
|
|
|
|
if (ro != null && ro.Count > 0)
|
|
{
|
|
var vertretungszettel = new VertretungszettelSbd();
|
|
vertretungszettel.SetReportDataSource(ro[0]);
|
|
|
|
|
|
reportDict.Add(String.Format("Vertretungszettel {0:MMMM yyyy}.pdf", item.Monat), vertretungszettel);
|
|
}
|
|
|
|
return reportDict;
|
|
}
|
|
|
|
}
|
|
}
|