AKGGMid Invoicing und Export

This commit is contained in:
2023-09-18 16:01:13 +02:00
parent 8aeb76b9a1
commit ddaeb3967f
7 changed files with 316 additions and 38039 deletions

View File

@@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Akgg;
using AkggMid;
using BeWo.Data.Access;
using BeWo.Data.Entities;
using BeWo.Report;
@@ -136,7 +136,7 @@ namespace AkggMid
}
}
if (ro.Costbearer == "SEK -Jugend und Familie-")
if (ro.Costbearer == "SEK -Jugend und Familie-") // nach Aussage vom 18.09.2023 nicht mehr relevant - mal löschen irgendwann
{
return new LeistungsnachweisJugendamt();
}
@@ -347,6 +347,34 @@ namespace AkggMid
return report as XtraReport;
}
public override XtraReport CreateServiceInvoiceReport(string dcIds, long? invoiceBaseOid)
{
if (String.IsNullOrEmpty(dcIds) && invoiceBaseOid.HasValue)
{
var serviceInvoice = DAOFactory.SearchDAO.GetServiceInvoiceByInvoiceBaseOid(invoiceBaseOid.Value);
dcIds = String.Format("{0}", serviceInvoice.Oid);
}
if (!string.IsNullOrEmpty(dcIds))
{
var dcList = new List<ServiceInvoiceDC>();
var dcidStrs = dcIds.Split(';');
foreach (var oidStr in dcidStrs)
{
var oid = long.Parse(oidStr);
var invoice = DAOFactory.GenericDAO.LoadByID<ServiceInvoice>(oid);
var dc = MapperFactory.ServiceInvoiceDC_ServiceInvoice.MapToNewDC(invoice);
dcList.Add(dc);
}
return CreateInvoiceReport(dcList);
}
return new XtraReport();
}
private XtraReport CreateInvoiceReport(List<ServiceInvoiceDC> invoices)
{
XtraReport allReports = null;
@@ -376,15 +404,12 @@ namespace AkggMid
qb.CreateDocument();
masterReport.Pages.AddRange(seite1.Pages);
masterReport.Pages.AddRange(qb.Pages);
invoiceReport = masterReport;
}
else
{
IBeWoReport<ServiceInvoiceRO> singleReport = FindReportImp<ServiceInvoiceRO>(iDC.InvoiceBase.InvoiceId);
var ro = ServiceInvoiceRO.Create(iDC);
singleReport.SetReportDataSource(ro);
((XtraReport)singleReport).CreateDocument();

View File

@@ -47,19 +47,18 @@ namespace AkggMid.Export
var sql = GetMonatlicheRechnungenSql(date);
/*
sip.Claim,
Round(sip.Claim, 2),
c.DebitorNumber,
CONCAT( p.`LastName`, '; ' p.`FirstName`, ' SA :PeriodeSlash') as 'Verwendung',
ib.InvoiceDate,
ib.invoicenumber,
ib.Oid AS InvoiceBaseOid,
sip.Oid AS sipOID,
c.CostCenter,
c2s.Oid,
ib.InvoiceId,
org.DebitorNumber
org.DebitorNumber - 10
*/
// 0, 111, 281001, , , , , , , , , , , , , , EUR, 1, , , , , , 130.00, , , , 20220531, , , , Hans Werner 05 / 15, , , , , , , , , , , , , , , , ,
// 1, 111, 281001, , , , , , , , , , , , , , EUR, 1, , , , , , +76.00, , , , 20220531, , , , Hans Werner 05 / 15, , , , , , , , , , , , , , , , ,
//"Datum;Konto;Gegenkonto;Buchungstext;Belegfeld1;Umsatz Soll;Kostenstelle"
var dt = ExecuteQuery(sql, date, null);
@@ -71,21 +70,21 @@ namespace AkggMid.Export
//sb.Append(String.Format("{0:ddMM}", lastDate));
sb.Append("0,V,111,");
sb.Append(String.Format("{0}", row[1])); //Debitornr.
sb.Append(", , , , , , , , , , , , , , EUR, 1, , , , , , ");
sb.Append(String.Format("{0:0.00}", row[0].ToString().Replace(",", ".")));
sb.Append(", , , ,");
sb.Append(String.Format("{0:yyyyMMdd}", lastDate));
sb.Append(", , , ,");
sb.Append(String.Format("{0} {1} {2:MM} / {2:yyyy}", row[2], row[3], lastDate));
sb.Append(", , , , , , , , , , , , , , , , ,");
if (sb.Length > 0)
sb.Append(String.Format("{0}, ", lastDate.Month.ToString())); //Period
sb.Append(String.Format("{0:yyyy}, , ", lastDate)); //Financial year
sb.Append(String.Format("{0}, ", row[2])); //Description
sb.Append(String.Format("{0:ddMMyyyy}, , ", row[3]));
sb.Append(String.Format("{0}, , , ", row[10])); //Debtor
sb.Append(String.Format("{0:0.00}, ,", row[0].ToString().Replace(",", "."))); //amount
sb.Append("EUR, 1,B ,0.00,");
sb.Append(String.Format("{0:ddMMyyyy},", row[3]));
sb.Append(" , , , ,sa ,I , , , , , , ,N , , , , , , , , ,");
{
sb.AppendLine();
}
string ibOid = String.Format("{0}", row[6]);
string sipOid = String.Format("{0}", row[7]);
string ibOid = String.Format("{0}", row[5]);
string sipOid = String.Format("{0}", row[6]);
if (!String.IsNullOrWhiteSpace(ibOid))
{
@@ -100,18 +99,25 @@ namespace AkggMid.Export
if (!srow[0].ToString().StartsWith("0,00"))
{
sb.Append(i + 1);
sb.Append(",111,");
sb.Append(String.Format("{0}", row[1])); //Debitornr.
sb.Append(", , , , , , , , , , , , , , EUR, 1, , , , , ,");
sb.Append(String.Format("{0:0.00}", srow[2].ToString().Replace(",", ".")));
sb.Append(", , , ,");
sb.Append(String.Format("{0:yyyyMMdd}", lastDate));
sb.Append(", , , ,");
sb.Append(String.Format("{0} {1} {2:MM} / {2:yyyy},", row[2], row[3], lastDate));
sb.Append(String.Format("{0:0.00}", srow[0].ToString().Replace(",", ".")));
sb.Append(", , , ,");
sb.Append(String.Format("{0:0.00}", srow[1].ToString().Replace(",", ".")));
sb.Append(", , , , , , , , , , , ,");
sb.Append(",V,111,");
sb.Append(String.Format("{0}, ", lastDate.Month.ToString())); //Period
sb.Append(String.Format("{0:yyyy}, , ", lastDate)); //Financial year
sb.Append(String.Format("{0}, ", row[2])); //Description
sb.Append(String.Format("{0:ddMMyyyy},", row[3]));
if (srow[4] != null && srow[4].ToString() == "Klassenfahrt")
{
sb.Append("8145,");
}
else
{
sb.Append("8140,");
}
sb.Append(String.Format("{0}, , ,", row[10])); //Debtor
sb.Append(String.Format("{0:0.00}, ,", srow[2].ToString().Replace(",", "."))); //amount
sb.Append("EUR, 1, , , ,");
sb.Append(" ,0 ,0.00 , , , , ,6100 , ,");
sb.Append(String.Format("{0:0.00} ,", srow[0].ToString().Replace(",", ".")));
sb.Append(" , , K, , , , , , , , ,");
if (sb.Length > 0)
{
sb.AppendLine();
@@ -133,18 +139,25 @@ namespace AkggMid.Export
if (!srow[0].ToString().StartsWith("0,00"))
{
sb.Append(i + 1);
sb.Append(",111,");
sb.Append(String.Format("{0}", row[1])); //Debitornr.
sb.Append(", , , , , , , , , , , , , , EUR, 1, , , , , ,");
sb.Append(String.Format("+{0:0.00}", srow[2].ToString().Replace(",", ".")));
sb.Append(", , , ,");
sb.Append(String.Format("{0:yyyyMMdd}", lastDate));
sb.Append(", , , ,");
sb.Append(String.Format("{0} {1} {2:MM} / {2:yyyy},", row[2], row[3], lastDate));
sb.Append(String.Format("{0:0.00}", srow[0].ToString().Replace(",", ".")));
sb.Append(", , , ,");
sb.Append(String.Format("{0:0.00}", srow[1].ToString().Replace(",", ".")));
sb.Append(", , , , , , , , , , , ,");
sb.Append(",V,111,");
sb.Append(String.Format("{0}, ", lastDate.Month.ToString())); //Period
sb.Append(String.Format("{0:yyyy}, , ", lastDate)); //Financial year
sb.Append(String.Format("{0}, ", row[2])); //Description
sb.Append(String.Format("{0:ddMMyyyy},", row[3]));
if (srow[3] != null && srow[3].ToString() == "Klassenfahrt")
{
sb.Append("8145,");
}
else
{
sb.Append("8140,");
}
sb.Append(String.Format("{0}, , ,", row[10])); //Debtor
sb.Append(String.Format("{0:0.00}, ,", srow[2].ToString().Replace(",", "."))); //amount
sb.Append("EUR, 1, , , ,");
sb.Append(" ,0 ,0.00 , , , , ,6100 , ,");
sb.Append(String.Format("{0:0.00} ,", srow[0].ToString().Replace(",", ".")));
sb.Append(" , , K, , , , , , , , ,");
if (sb.Length > 0)
{
sb.AppendLine();
@@ -184,8 +197,7 @@ namespace AkggMid.Export
select
Round(sip.Claim, 2),
c.DebitorNumber,
p.FirstName,
p.LastName,
CONCAT( p.`LastName`, '; ', p.`FirstName`, ' SA :PeriodeSlash') as 'Verwendung',
ib.InvoiceDate,
ib.invoicenumber,
ib.Oid AS InvoiceBaseOid,
@@ -217,7 +229,8 @@ namespace AkggMid.Export
SELECT
Round(UnitCount, 2),
Round(AmountPerUnit, 2),
Round(AmountTotal, 2)
Round(AmountTotal, 2),
ItemDescription
FROM
invoiceitem
WHERE invoicebaseoid = ':ibOid'
@@ -232,7 +245,8 @@ namespace AkggMid.Export
SELECT
Round(UnitCount, 2),
Round(AmountPerUnit, 2),
Round(AmountTotal, 2)
Round(AmountTotal, 2),
ItemDescription
FROM
invoiceitem
WHERE serviceinvoiceperiodoid = ':ibOid'
@@ -245,6 +259,7 @@ namespace AkggMid.Export
{
var newsql = sql;
newsql = newsql.Replace(":Abrechnungsmonat", String.Format("{0:dd.MM.yyyy}", dt));
newsql = newsql.Replace(":PeriodeSlash", String.Format("{0:MM}/{0:yyyy}", dt));
newsql = newsql.Replace(":Belegnr", String.Format("{0:yyMM}", dt));
newsql = newsql.Replace(":Monat_MM", String.Format("{0:MM}", dt));
newsql = newsql.Replace(":Monat_Start", String.Format("{0:yyyy-MM}-01", dt));

View File

@@ -13,13 +13,17 @@ namespace AkggMid.Invoicing
{
public class CustomInvoiceCreation : SbdDefaultInvoiceCreation
{
public override void SetInvoiceId(ServiceInvoice invoice)
{
//invoice.InvoiceBase.InvoiceId = "SBD";
invoice.InvoiceBase.InvoiceTypeText = "Abrechnung Schulbegleitender Dienst";
}
public override IList<InvoiceItem> CreateSbdInvoiceItems(Customer customer, List<ServiceRecordDC> serviceRecordsInPeriod, DateTimeSpan invoicePeriod, SupportConceptApprovalPeriod scap, Calculations calc)
{
//Klassisch nur ohne StundenplanItems
IList<InvoiceItem> result = new List<InvoiceItem>();
//var stundenplanItems = ErstelleStundenplanItems(customer, invoicePeriod.StartDate, invoicePeriod.EndDate);
IList<InvoiceItem> srList = new List<InvoiceItem>();
foreach (ServiceRecordDC iServiceRecord in serviceRecordsInPeriod)
@@ -29,7 +33,6 @@ namespace AkggMid.Invoicing
if (!iServiceRecord.AlreadyAccounted)
{
var invoiceItem = CreateInvoiceItem(iServiceRecord, scap, calc);
invoiceItem.ItemDescription = String.Format("{0} {1}", iServiceRecord.Employee.FirstName, iServiceRecord.Employee.LastName);
srList.Add(invoiceItem);
iServiceRecord.AlreadyAccounted = true;
@@ -50,23 +53,65 @@ namespace AkggMid.Invoicing
result.Add(item);
}
//foreach (var ii in stundenplanItems)
//{
// String key = String.Format("{0:dd.MM.yyyy}", ii.ItemPeriodStart);
// if (!dayDict.ContainsKey(key))
// {
// ii.ItemDescription = GetHauptbetreuer(customer);
// result.Add(ii);
// }
//}
var newList = result.Where(i => i.UnitCount.HasValue && i.UnitCount.Value > 0).OrderBy(i => i.ItemPeriodStart).ToList();
return CreateSummaryInvoiceItems(newList, invoicePeriod, scap, calc);
}
public override IList<InvoiceItem> CreateAllInvoiceItems(CostBearer2SupportConcept c2s, List<ServiceRecordDC> serviceRecordsInPeriod, DateTimeSpan invoicePeriod, SupportConceptApprovalPeriod scap, Calculations calc)
{
var items = CreateSbdInvoiceItems(c2s.SupportConcept.Customer, serviceRecordsInPeriod, invoicePeriod, scap, calc);
decimal hours = 0;
decimal hourlyRate = 0;
decimal ratefactor = 0;
var crList = MapperFactory.CostRatePeriodDC_CostRatePeriod.MapToNewDCs(c2s.CostBearer.CostRatePeriods);
foreach (var item in items)
{
if (!item.AmountPerUnit.HasValue)
{
item.AmountPerUnit = GetCostRateValue(crList, CostRatePeriodType.HourlyRate, item.ItemPeriodStart.Value);
}
if (!item.RateFactor.HasValue)
{
item.RateFactor = GetCostRateValue(crList, CostRatePeriodType.RateFactor, item.ItemPeriodStart.Value);
}
item.UnitCount = Math.Round(item.UnitCount ?? 0, 2, MidpointRounding.AwayFromZero);
hours += item.UnitCount ?? 0;
hourlyRate = item.AmountPerUnit ?? 0;
ratefactor = item.RateFactor ?? 0;
item.AmountTotal = Math.Round(hourlyRate * hours, 2, MidpointRounding.AwayFromZero);
item.GrossAmountTotal = item.AmountTotal;
}
var basisList = CreateSummaryInvoiceItems(items, invoicePeriod, scap, calc);
return basisList;
}
public override IList<InvoiceItem> CreateSummaryInvoiceItems(IList<InvoiceItem> itemList, DateTimeSpan invoicePeriod, SupportConceptApprovalPeriod scap, Calculations calc)
{
return CreateSummaryInvoiceItems(itemList, invoicePeriod, scap, calc, true);
}
public override IList<InvoiceItem> CreateSummaryInvoiceItems(IList<InvoiceItem> itemList,
DateTimeSpan invoicePeriod, SupportConceptApprovalPeriod scap, Calculations calc, bool summaryPerMonth)
{
return CreateSummaryInvoiceItems(itemList, invoicePeriod, scap, calc, summaryPerMonth, true);
}
public override string GetSummaryItemKey(SupportConceptApprovalPeriod scap, InvoiceItem iitem, bool summaryPerMonth)
{
String key = String.Format("{0}_{1}", iitem.AmountPerUnit, iitem.ItemDescription);
if (summaryPerMonth)
{
key = String.Format("{0}_{1}_{2:yyyyMM}", iitem.AmountPerUnit, iitem.ItemDescription, iitem.ItemPeriodStart);
}
return key;
}
public override InvoiceItem CreateInvoiceItem(ServiceRecordDC iServiceRecord, SupportConceptApprovalPeriod scap, Calculations calc)
{
var ii = base.CreateInvoiceItem(iServiceRecord, scap, calc);

View File

@@ -13,6 +13,7 @@ using BeWo.Data.Entities;
namespace AkggMid
{
// nach Aussage vom 18.09.2023 nicht mehr relevant - mal löschen irgendwann
public partial class LeistungsnachweisJugendamt : DevExpress.XtraReports.UI.XtraReport, IBeWoReport<ServicesOverviewRO>
{
Dictionary<int, ServicesOverviewRO.ServiceDetail> day2Detail = new Dictionary<int, ServicesOverviewRO.ServiceDetail>();

View File

@@ -1,5 +1,5 @@
using BeWo.Report.ReportObjects;
namespace Akgg
namespace AkggMid
{
partial class ServiceInvoiceReport
{
@@ -31,6 +31,7 @@ namespace Akgg
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ServiceInvoiceReport));
this.Detail = new DevExpress.XtraReports.UI.DetailBand();
this.xrLabel11 = new DevExpress.XtraReports.UI.XRLabel();
this.xrLabel22 = new DevExpress.XtraReports.UI.XRLabel();
this.xrLabel3 = new DevExpress.XtraReports.UI.XRLabel();
this.lblKategorie = new DevExpress.XtraReports.UI.XRLabel();
@@ -46,6 +47,14 @@ namespace Akgg
this.xrLabel6 = new DevExpress.XtraReports.UI.XRLabel();
this.xrPictureBox1 = new DevExpress.XtraReports.UI.XRPictureBox();
this.bottomMarginBand1 = new DevExpress.XtraReports.UI.BottomMarginBand();
this.xrLabel15 = new DevExpress.XtraReports.UI.XRLabel();
this.xrLabel1 = new DevExpress.XtraReports.UI.XRLabel();
this.xrLabel9 = new DevExpress.XtraReports.UI.XRLabel();
this.xrLabel14 = new DevExpress.XtraReports.UI.XRLabel();
this.xrPageInfo2 = new DevExpress.XtraReports.UI.XRPageInfo();
this.xrPictureBox3 = new DevExpress.XtraReports.UI.XRPictureBox();
this.xrPictureBox2 = new DevExpress.XtraReports.UI.XRPictureBox();
this.xrLabel12 = new DevExpress.XtraReports.UI.XRLabel();
this.xrLabel33 = new DevExpress.XtraReports.UI.XRLabel();
this.xrLabel31 = new DevExpress.XtraReports.UI.XRLabel();
this.xrLabel32 = new DevExpress.XtraReports.UI.XRLabel();
@@ -55,6 +64,9 @@ namespace Akgg
this.xrLabel27 = new DevExpress.XtraReports.UI.XRLabel();
this.xrLabel25 = new DevExpress.XtraReports.UI.XRLabel();
this.Page1 = new DevExpress.XtraReports.UI.GroupHeaderBand();
this.xrLabel7 = new DevExpress.XtraReports.UI.XRLabel();
this.xrLabel4 = new DevExpress.XtraReports.UI.XRLabel();
this.xrLabel2 = new DevExpress.XtraReports.UI.XRLabel();
this.xrLabel19 = new DevExpress.XtraReports.UI.XRLabel();
this.xrLabel21 = new DevExpress.XtraReports.UI.XRLabel();
this.xrLabel17 = new DevExpress.XtraReports.UI.XRLabel();
@@ -77,18 +89,6 @@ namespace Akgg
this.xrTableCell45 = new DevExpress.XtraReports.UI.XRTableCell();
this.xrTableCell47 = new DevExpress.XtraReports.UI.XRTableCell();
this.bindingSource1 = new System.Windows.Forms.BindingSource(this.components);
this.xrLabel1 = new DevExpress.XtraReports.UI.XRLabel();
this.xrLabel15 = new DevExpress.XtraReports.UI.XRLabel();
this.xrLabel2 = new DevExpress.XtraReports.UI.XRLabel();
this.xrLabel4 = new DevExpress.XtraReports.UI.XRLabel();
this.xrLabel7 = new DevExpress.XtraReports.UI.XRLabel();
this.xrLabel11 = new DevExpress.XtraReports.UI.XRLabel();
this.xrLabel12 = new DevExpress.XtraReports.UI.XRLabel();
this.xrPictureBox2 = new DevExpress.XtraReports.UI.XRPictureBox();
this.xrPictureBox3 = new DevExpress.XtraReports.UI.XRPictureBox();
this.xrLabel9 = new DevExpress.XtraReports.UI.XRLabel();
this.xrLabel14 = new DevExpress.XtraReports.UI.XRLabel();
this.xrPageInfo2 = new DevExpress.XtraReports.UI.XRPageInfo();
((System.ComponentModel.ISupportInitialize)(this.xrTable5)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.xrTable6)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).BeginInit();
@@ -107,6 +107,17 @@ namespace Akgg
this.Detail.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 100F);
this.Detail.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft;
//
// xrLabel11
//
this.xrLabel11.Font = new System.Drawing.Font("Lato", 9F);
this.xrLabel11.LocationFloat = new DevExpress.Utils.PointFloat(0F, 107.8749F);
this.xrLabel11.Multiline = true;
this.xrLabel11.Name = "xrLabel11";
this.xrLabel11.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.xrLabel11.SizeF = new System.Drawing.SizeF(300.33F, 20F);
this.xrLabel11.StylePriority.UseFont = false;
this.xrLabel11.Text = "[CustomerReferenceNumber]";
//
// xrLabel22
//
this.xrLabel22.Font = new System.Drawing.Font("Lato", 9F);
@@ -295,6 +306,99 @@ namespace Akgg
this.bottomMarginBand1.HeightF = 227F;
this.bottomMarginBand1.Name = "bottomMarginBand1";
//
// xrLabel15
//
this.xrLabel15.BorderDashStyle = DevExpress.XtraPrinting.BorderDashStyle.Dash;
this.xrLabel15.Borders = DevExpress.XtraPrinting.BorderSide.Top;
this.xrLabel15.Font = new System.Drawing.Font("Verdana", 10F);
this.xrLabel15.LocationFloat = new DevExpress.Utils.PointFloat(612.375F, 29.25014F);
this.xrLabel15.Name = "xrLabel15";
this.xrLabel15.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.xrLabel15.SizeF = new System.Drawing.SizeF(90.62494F, 9.708344F);
this.xrLabel15.StylePriority.UseBorderDashStyle = false;
this.xrLabel15.StylePriority.UseBorders = false;
this.xrLabel15.StylePriority.UseFont = false;
//
// xrLabel1
//
this.xrLabel1.BorderDashStyle = DevExpress.XtraPrinting.BorderDashStyle.Dash;
this.xrLabel1.Borders = ((DevExpress.XtraPrinting.BorderSide)((DevExpress.XtraPrinting.BorderSide.Top | DevExpress.XtraPrinting.BorderSide.Bottom)));
this.xrLabel1.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
new DevExpress.XtraReports.UI.XRBinding("Text", null, "GrossClaim")});
this.xrLabel1.Font = new System.Drawing.Font("Lato", 9F, System.Drawing.FontStyle.Bold);
this.xrLabel1.LocationFloat = new DevExpress.Utils.PointFloat(612.375F, 0F);
this.xrLabel1.Name = "xrLabel1";
this.xrLabel1.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 5, 0, 0, 100F);
this.xrLabel1.SizeF = new System.Drawing.SizeF(92.625F, 25F);
this.xrLabel1.StylePriority.UseBorderDashStyle = false;
this.xrLabel1.StylePriority.UseBorders = false;
this.xrLabel1.StylePriority.UseFont = false;
this.xrLabel1.StylePriority.UsePadding = false;
this.xrLabel1.StylePriority.UseTextAlignment = false;
this.xrLabel1.Text = "xrLabel1";
this.xrLabel1.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight;
//
// xrLabel9
//
this.xrLabel9.Font = new System.Drawing.Font("Lato", 7.5F, System.Drawing.FontStyle.Bold);
this.xrLabel9.LocationFloat = new DevExpress.Utils.PointFloat(0F, 9.999974F);
this.xrLabel9.Multiline = true;
this.xrLabel9.Name = "xrLabel9";
this.xrLabel9.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.xrLabel9.SizeF = new System.Drawing.SizeF(511.7883F, 20F);
this.xrLabel9.StylePriority.UseFont = false;
this.xrLabel9.Text = "Zahlung innerhalb von 14 Tagen ab Rechnungseingang ohne Abzüge";
//
// xrLabel14
//
this.xrLabel14.Font = new System.Drawing.Font("Lato", 7.5F);
this.xrLabel14.LocationFloat = new DevExpress.Utils.PointFloat(0F, 81.24981F);
this.xrLabel14.Multiline = true;
this.xrLabel14.Name = "xrLabel14";
this.xrLabel14.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.xrLabel14.SizeF = new System.Drawing.SizeF(317F, 20.00002F);
this.xrLabel14.StylePriority.UseFont = false;
this.xrLabel14.Text = "Steuernummer 02625071135; Finanzamt Kassel I";
//
// xrPageInfo2
//
this.xrPageInfo2.Font = new System.Drawing.Font("Lato", 10F);
this.xrPageInfo2.Format = "Seite {0}";
this.xrPageInfo2.LocationFloat = new DevExpress.Utils.PointFloat(631.9585F, 81.24981F);
this.xrPageInfo2.Name = "xrPageInfo2";
this.xrPageInfo2.SizeF = new System.Drawing.SizeF(85.04144F, 20.00002F);
this.xrPageInfo2.StylePriority.UseFont = false;
this.xrPageInfo2.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopRight;
//
// xrPictureBox3
//
this.xrPictureBox3.Image = ((System.Drawing.Image)(resources.GetObject("xrPictureBox3.Image")));
this.xrPictureBox3.LocationFloat = new DevExpress.Utils.PointFloat(670.67F, 115.08F);
this.xrPictureBox3.Name = "xrPictureBox3";
this.xrPictureBox3.SizeF = new System.Drawing.SizeF(56.33051F, 45.58335F);
this.xrPictureBox3.Sizing = DevExpress.XtraPrinting.ImageSizeMode.ZoomImage;
//
// xrPictureBox2
//
this.xrPictureBox2.Image = ((System.Drawing.Image)(resources.GetObject("xrPictureBox2.Image")));
this.xrPictureBox2.LocationFloat = new DevExpress.Utils.PointFloat(605F, 116.08F);
this.xrPictureBox2.Name = "xrPictureBox2";
this.xrPictureBox2.SizeF = new System.Drawing.SizeF(48F, 48F);
this.xrPictureBox2.Sizing = DevExpress.XtraPrinting.ImageSizeMode.ZoomImage;
//
// xrLabel12
//
this.xrLabel12.Font = new System.Drawing.Font("Lato", 7F);
this.xrLabel12.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(127)))), ((int)(((byte)(127)))), ((int)(((byte)(127)))));
this.xrLabel12.LocationFloat = new DevExpress.Utils.PointFloat(387.8563F, 127.0834F);
this.xrLabel12.Multiline = true;
this.xrLabel12.Name = "xrLabel12";
this.xrLabel12.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.xrLabel12.SizeF = new System.Drawing.SizeF(174.3961F, 15.00001F);
this.xrLabel12.StylePriority.UseFont = false;
this.xrLabel12.StylePriority.UseForeColor = false;
this.xrLabel12.Text = "Kontoverbindung";
//
// xrLabel33
//
this.xrLabel33.Font = new System.Drawing.Font("Lato", 7F);
@@ -422,6 +526,50 @@ namespace Akgg
this.Page1.Name = "Page1";
this.Page1.StylePriority.UseFont = false;
//
// xrLabel7
//
this.xrLabel7.Font = new System.Drawing.Font("Lato", 11.5F, System.Drawing.FontStyle.Bold);
this.xrLabel7.LocationFloat = new DevExpress.Utils.PointFloat(0F, 180.04F);
this.xrLabel7.Name = "xrLabel7";
this.xrLabel7.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.xrLabel7.SizeF = new System.Drawing.SizeF(317F, 17F);
this.xrLabel7.StylePriority.UseFont = false;
this.xrLabel7.Text = "Rechnung Nr. \t[InvoiceNumber]";
//
// xrLabel4
//
this.xrLabel4.Borders = DevExpress.XtraPrinting.BorderSide.None;
this.xrLabel4.Font = new System.Drawing.Font("Lato", 8.5F, System.Drawing.FontStyle.Italic);
this.xrLabel4.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(72)))), ((int)(((byte)(73)))));
this.xrLabel4.LocationFloat = new DevExpress.Utils.PointFloat(489.0831F, 64.68754F);
this.xrLabel4.Multiline = true;
this.xrLabel4.Name = "xrLabel4";
this.xrLabel4.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.xrLabel4.SizeF = new System.Drawing.SizeF(213.9184F, 20.83334F);
this.xrLabel4.StylePriority.UseBorders = false;
this.xrLabel4.StylePriority.UseFont = false;
this.xrLabel4.StylePriority.UseForeColor = false;
this.xrLabel4.StylePriority.UseTextAlignment = false;
this.xrLabel4.Text = "Ansprechpartner: Malte Zimmermann";
this.xrLabel4.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft;
//
// xrLabel2
//
this.xrLabel2.Borders = DevExpress.XtraPrinting.BorderSide.None;
this.xrLabel2.Font = new System.Drawing.Font("Lato", 7.5F, System.Drawing.FontStyle.Italic);
this.xrLabel2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(225)))), ((int)(((byte)(0)))), ((int)(((byte)(121)))));
this.xrLabel2.LocationFloat = new DevExpress.Utils.PointFloat(489.0831F, 36.45833F);
this.xrLabel2.Multiline = true;
this.xrLabel2.Name = "xrLabel2";
this.xrLabel2.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.xrLabel2.SizeF = new System.Drawing.SizeF(190.2913F, 16.66667F);
this.xrLabel2.StylePriority.UseBorders = false;
this.xrLabel2.StylePriority.UseFont = false;
this.xrLabel2.StylePriority.UseForeColor = false;
this.xrLabel2.StylePriority.UseTextAlignment = false;
this.xrLabel2.Text = "info@viva-stiftung.de";
this.xrLabel2.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft;
//
// xrLabel19
//
this.xrLabel19.Font = new System.Drawing.Font("Lato", 10F, System.Drawing.FontStyle.Italic);
@@ -694,154 +842,6 @@ namespace Akgg
//
this.bindingSource1.DataSource = typeof(BeWo.Report.ReportObjects.ServiceInvoiceRO);
//
// xrLabel1
//
this.xrLabel1.BorderDashStyle = DevExpress.XtraPrinting.BorderDashStyle.Dash;
this.xrLabel1.Borders = ((DevExpress.XtraPrinting.BorderSide)((DevExpress.XtraPrinting.BorderSide.Top | DevExpress.XtraPrinting.BorderSide.Bottom)));
this.xrLabel1.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
new DevExpress.XtraReports.UI.XRBinding("Text", null, "GrossClaim")});
this.xrLabel1.Font = new System.Drawing.Font("Lato", 9F, System.Drawing.FontStyle.Bold);
this.xrLabel1.LocationFloat = new DevExpress.Utils.PointFloat(612.375F, 0F);
this.xrLabel1.Name = "xrLabel1";
this.xrLabel1.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 5, 0, 0, 100F);
this.xrLabel1.SizeF = new System.Drawing.SizeF(92.625F, 25F);
this.xrLabel1.StylePriority.UseBorderDashStyle = false;
this.xrLabel1.StylePriority.UseBorders = false;
this.xrLabel1.StylePriority.UseFont = false;
this.xrLabel1.StylePriority.UsePadding = false;
this.xrLabel1.StylePriority.UseTextAlignment = false;
this.xrLabel1.Text = "xrLabel1";
this.xrLabel1.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight;
//
// xrLabel15
//
this.xrLabel15.BorderDashStyle = DevExpress.XtraPrinting.BorderDashStyle.Dash;
this.xrLabel15.Borders = DevExpress.XtraPrinting.BorderSide.Top;
this.xrLabel15.Font = new System.Drawing.Font("Verdana", 10F);
this.xrLabel15.LocationFloat = new DevExpress.Utils.PointFloat(612.375F, 29.25014F);
this.xrLabel15.Name = "xrLabel15";
this.xrLabel15.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.xrLabel15.SizeF = new System.Drawing.SizeF(90.62494F, 9.708344F);
this.xrLabel15.StylePriority.UseBorderDashStyle = false;
this.xrLabel15.StylePriority.UseBorders = false;
this.xrLabel15.StylePriority.UseFont = false;
//
// xrLabel2
//
this.xrLabel2.Borders = DevExpress.XtraPrinting.BorderSide.None;
this.xrLabel2.Font = new System.Drawing.Font("Lato", 7.5F, System.Drawing.FontStyle.Italic);
this.xrLabel2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(225)))), ((int)(((byte)(0)))), ((int)(((byte)(121)))));
this.xrLabel2.LocationFloat = new DevExpress.Utils.PointFloat(489.0831F, 36.45833F);
this.xrLabel2.Multiline = true;
this.xrLabel2.Name = "xrLabel2";
this.xrLabel2.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.xrLabel2.SizeF = new System.Drawing.SizeF(190.2913F, 16.66667F);
this.xrLabel2.StylePriority.UseBorders = false;
this.xrLabel2.StylePriority.UseFont = false;
this.xrLabel2.StylePriority.UseForeColor = false;
this.xrLabel2.StylePriority.UseTextAlignment = false;
this.xrLabel2.Text = "info@viva-stiftung.de";
this.xrLabel2.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft;
//
// xrLabel4
//
this.xrLabel4.Borders = DevExpress.XtraPrinting.BorderSide.None;
this.xrLabel4.Font = new System.Drawing.Font("Lato", 8.5F, System.Drawing.FontStyle.Italic);
this.xrLabel4.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(72)))), ((int)(((byte)(73)))));
this.xrLabel4.LocationFloat = new DevExpress.Utils.PointFloat(489.0831F, 64.68754F);
this.xrLabel4.Multiline = true;
this.xrLabel4.Name = "xrLabel4";
this.xrLabel4.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.xrLabel4.SizeF = new System.Drawing.SizeF(213.9184F, 20.83334F);
this.xrLabel4.StylePriority.UseBorders = false;
this.xrLabel4.StylePriority.UseFont = false;
this.xrLabel4.StylePriority.UseForeColor = false;
this.xrLabel4.StylePriority.UseTextAlignment = false;
this.xrLabel4.Text = "Ansprechpartner: Malte Zimmermann";
this.xrLabel4.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft;
//
// xrLabel7
//
this.xrLabel7.Font = new System.Drawing.Font("Lato", 11.5F, System.Drawing.FontStyle.Bold);
this.xrLabel7.LocationFloat = new DevExpress.Utils.PointFloat(0F, 180.04F);
this.xrLabel7.Name = "xrLabel7";
this.xrLabel7.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.xrLabel7.SizeF = new System.Drawing.SizeF(317F, 17F);
this.xrLabel7.StylePriority.UseFont = false;
this.xrLabel7.Text = "Rechnung Nr. \t[InvoiceNumber]";
//
// xrLabel11
//
this.xrLabel11.Font = new System.Drawing.Font("Lato", 9F);
this.xrLabel11.LocationFloat = new DevExpress.Utils.PointFloat(0F, 107.8749F);
this.xrLabel11.Multiline = true;
this.xrLabel11.Name = "xrLabel11";
this.xrLabel11.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.xrLabel11.SizeF = new System.Drawing.SizeF(300.33F, 20F);
this.xrLabel11.StylePriority.UseFont = false;
this.xrLabel11.Text = "[CustomerReferenceNumber]";
//
// xrLabel12
//
this.xrLabel12.Font = new System.Drawing.Font("Lato", 7F);
this.xrLabel12.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(127)))), ((int)(((byte)(127)))), ((int)(((byte)(127)))));
this.xrLabel12.LocationFloat = new DevExpress.Utils.PointFloat(387.8563F, 127.0834F);
this.xrLabel12.Multiline = true;
this.xrLabel12.Name = "xrLabel12";
this.xrLabel12.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.xrLabel12.SizeF = new System.Drawing.SizeF(174.3961F, 15.00001F);
this.xrLabel12.StylePriority.UseFont = false;
this.xrLabel12.StylePriority.UseForeColor = false;
this.xrLabel12.Text = "Kontoverbindung";
//
// xrPictureBox2
//
this.xrPictureBox2.Image = ((System.Drawing.Image)(resources.GetObject("xrPictureBox2.Image")));
this.xrPictureBox2.LocationFloat = new DevExpress.Utils.PointFloat(605F, 116.08F);
this.xrPictureBox2.Name = "xrPictureBox2";
this.xrPictureBox2.SizeF = new System.Drawing.SizeF(48F, 48F);
this.xrPictureBox2.Sizing = DevExpress.XtraPrinting.ImageSizeMode.ZoomImage;
//
// xrPictureBox3
//
this.xrPictureBox3.Image = ((System.Drawing.Image)(resources.GetObject("xrPictureBox3.Image")));
this.xrPictureBox3.LocationFloat = new DevExpress.Utils.PointFloat(670.67F, 115.08F);
this.xrPictureBox3.Name = "xrPictureBox3";
this.xrPictureBox3.SizeF = new System.Drawing.SizeF(56.33051F, 45.58335F);
this.xrPictureBox3.Sizing = DevExpress.XtraPrinting.ImageSizeMode.ZoomImage;
//
// xrLabel9
//
this.xrLabel9.Font = new System.Drawing.Font("Lato", 7.5F, System.Drawing.FontStyle.Bold);
this.xrLabel9.LocationFloat = new DevExpress.Utils.PointFloat(0F, 9.999974F);
this.xrLabel9.Multiline = true;
this.xrLabel9.Name = "xrLabel9";
this.xrLabel9.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.xrLabel9.SizeF = new System.Drawing.SizeF(511.7883F, 20F);
this.xrLabel9.StylePriority.UseFont = false;
this.xrLabel9.Text = "Zahlung innerhalb von 14 Tagen ab Rechnungseingang ohne Abzüge";
//
// xrLabel14
//
this.xrLabel14.Font = new System.Drawing.Font("Lato", 7.5F);
this.xrLabel14.LocationFloat = new DevExpress.Utils.PointFloat(0F, 81.24981F);
this.xrLabel14.Multiline = true;
this.xrLabel14.Name = "xrLabel14";
this.xrLabel14.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.xrLabel14.SizeF = new System.Drawing.SizeF(317F, 20.00002F);
this.xrLabel14.StylePriority.UseFont = false;
this.xrLabel14.Text = "Steuernummer 02625071135; Finanzamt Kassel I";
//
// xrPageInfo2
//
this.xrPageInfo2.Font = new System.Drawing.Font("Lato", 10F);
this.xrPageInfo2.Format = "Seite {0}";
this.xrPageInfo2.LocationFloat = new DevExpress.Utils.PointFloat(631.9585F, 81.24981F);
this.xrPageInfo2.Name = "xrPageInfo2";
this.xrPageInfo2.SizeF = new System.Drawing.SizeF(85.04144F, 20.00002F);
this.xrPageInfo2.StylePriority.UseFont = false;
this.xrPageInfo2.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopRight;
//
// ServiceInvoiceReport
//
this.Bands.AddRange(new DevExpress.XtraReports.UI.Band[] {
@@ -861,9 +861,6 @@ namespace Akgg
this.PageWidth = 827;
this.PaperKind = System.Drawing.Printing.PaperKind.A4;
this.Version = "17.1";
this.Watermark.Image = ((System.Drawing.Image)(resources.GetObject("ServiceInvoiceReport.Watermark.Image")));
this.Watermark.ImageTransparency = 117;
this.Watermark.ShowBehind = false;
((System.ComponentModel.ISupportInitialize)(this.xrTable5)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.xrTable6)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).EndInit();

View File

@@ -1,12 +1,15 @@
using System;
using System.Collections.Generic;
using System.Text;
using BeWo.Data.Access;
using BeWo.Data.Entities;
using BeWo.Report;
using BeWo.Report.ReportObjects;
using BS.Shared.Core;
using DevExpress.XtraReports.UI;
namespace Akgg
namespace AkggMid
{
//[IDSpecificClass(Identifier = "SBD")]
public partial class ServiceInvoiceReport : XtraReport, IBeWoReport<ServiceInvoiceRO>
{
public ServiceInvoiceReport()

File diff suppressed because it is too large Load Diff