Christopherus Haus SBD Poolabrechnung korrigiert, neuen Briefkopf hinterlegt und Export Flag nach Buchhaltungsexport gesetzt

This commit is contained in:
2025-12-10 14:43:35 +01:00
parent 9f0faa5242
commit 9391cc61b0
6 changed files with 211 additions and 56 deletions

View File

@@ -2,6 +2,7 @@
using System.Collections.Generic;
using System.Data;
using System.IO;
using System.Linq;
using System.Text;
using BeWo.Data.Access;
using BeWo.Data.Entities;
@@ -26,9 +27,35 @@ namespace ChristopherusHausMID.Export
query.FileName = String.Format("BUCH_BO_{0:yyyyMM}.scs", dt);
query.QueryResult = GetAbrechnungenString(dt, table);
query.Attachments = CreateInvoiceFiles(table);
var oidList = GetInvoiceBaseOids(table);
SetInvoiceBaseIsExported(oidList);
return query;
}
private static void SetInvoiceBaseIsExported(List<long> oidList)
{
if (oidList.Count > 0)
{
DAOFactory.AdoDAO.ExecuteQuery(String.Format("update invoicebase set isexported = 1 where oid in ({0})", string.Join(",", oidList)));
}
}
private static List<long> GetInvoiceBaseOids(DataTable dt)
{
List<long> liste = new List<long>();
foreach (DataRow row in dt.Rows)
{
if (row[10] != null && long.TryParse(row[10].ToString(), out var oid))
{
liste.Add(oid);
}
}
return liste;
}
public static String GetAbrechnungenString(DateTime dt, DataTable table)
{
StringBuilder sb = new StringBuilder();

View File

@@ -90,9 +90,14 @@ namespace ChristopherusHausMID.Invoicing
InvoiceItem ii = CreateInvoiceItem(s, scap, calc);
if (ii != null && ii.UnitCount.HasValue && ii.UnitCount > 0)
{
maxBetreuteTage++;
items.Add(ii);
}
//Wenn es einen Stundenplan an diesem Tag gibt, dann erhöhe die max Anzahl der betreuten Tage
if (!String.IsNullOrEmpty(s.StundenplanUhrzeiten1))
{
maxBetreuteTage++;
}
}
}
decimal betreuteTage = maxBetreuteTage - fehltage;
@@ -155,7 +160,8 @@ namespace ChristopherusHausMID.Invoicing
if (rechnungsanteil < 1)
{
item.GrossAmountTotal = Math.Round((item.GrossAmountTotal ?? 0) * rechnungsanteil, 2, MidpointRounding.AwayFromZero);
//item.GrossAmountTotal = Math.Round((item.GrossAmountTotal ?? 0) * rechnungsanteil, 2, MidpointRounding.AwayFromZero);
item.GrossAmountTotal = (item.GrossAmountTotal ?? 0) * rechnungsanteil;
}
}
return summaryItems;

View File

@@ -142,7 +142,17 @@ namespace ChristopherusHausMID.Invoicing
public static void BerechnePoolFaktorenFuerQuittierungsbeleg(SbdStundenaufstellungRO pRO)
{
decimal defaultPoolFaktor = 1; // Faktor bei 1:1 Betreuung
var customerOid2Beleg = new Dictionary<long, SbdStundenaufstellungRO>();
var tag2ServiceRecord = new Dictionary<int, SbdStundenaufstellungRO.SbdServiceDetail>();
foreach (var item in pRO.Services)
{
if (!tag2ServiceRecord.ContainsKey(item.StartDate.Day))
{
tag2ServiceRecord.Add(item.StartDate.Day, item);
}
}
Customer mainCustomer = DAOFactory.GenericDAO.LoadByID<Customer>(pRO.CustomerOid);
Organisation schulEntity = null;
if (pRO.Schule != null)
@@ -200,6 +210,50 @@ namespace ChristopherusHausMID.Invoicing
//Bei Poolbetreuung muss die Abwesenheit der anderen Kinder auch noch geprüft werden
foreach (var c in weiterePoolKinder)
{
SbdStundenaufstellungRO belegFuerPoolKindRO = null;
if (customerOid2Beleg.ContainsKey(c.Oid.Value))
{
belegFuerPoolKindRO = customerOid2Beleg[c.Oid.Value];
}
else
{
belegFuerPoolKindRO = SbdStundenaufstellungRO.Create(c, new DateTimeSpan { StartDateTime = pRO.StartDate, EndDateTime = pRO.EndDate.AddDays(1).AddTicks(-1) }, 0, 0, 0, false, true, "NRW", false).FirstOrDefault();
if (belegFuerPoolKindRO != null)
{
customerOid2Beleg.Add(c.Oid.Value, belegFuerPoolKindRO);
//Prüfe, ob bei den Poolkindern gearbeitet wurde und beim Hauptkind nicht. Bei Poolkindern wird die Zeit auch beim jeweils anderen Beleg aufgelistet
foreach (var srPool in belegFuerPoolKindRO.Services)
{
if (tag2ServiceRecord.ContainsKey(srPool.StartDate.Day))
{
var srMain = tag2ServiceRecord[srPool.StartDate.Day];
if (String.IsNullOrEmpty(srMain.IstUhrzeiten1) && String.IsNullOrEmpty(srMain.IstUhrzeiten2) && srMain.Minutes == 0 && srPool.Minutes > 0)
{
srMain.Minutes = srPool.Minutes;
srMain.IstUhrzeiten1 = String.Format("{0:HH:mm}", srPool.StartDate);
srMain.IstUhrzeiten2 = String.Format("{0:HH:mm}", srPool.EndDate);
if (String.IsNullOrEmpty(srMain.ServiceCategory))
{
srMain.ServiceCategory = srPool.ServiceCategory;
}
if (String.IsNullOrEmpty(srMain.ServiceDescription))
{
srMain.ServiceDescription = srPool.ServiceDescription;
}
}
}
}
}
}
var at2 = PoolHelper.GetAbsenceTime(c, item.StartDate);
if (at2 != null && at != null)

View File

@@ -31,8 +31,8 @@ namespace ChristopherusHausMID
this.components = new System.ComponentModel.Container();
DevExpress.XtraReports.UI.XRSummary xrSummary1 = new DevExpress.XtraReports.UI.XRSummary();
DevExpress.XtraReports.UI.XRSummary xrSummary2 = new DevExpress.XtraReports.UI.XRSummary();
DevExpress.XtraReports.UI.XRWatermark xrWatermark1 = new DevExpress.XtraReports.UI.XRWatermark();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Rechnung));
DevExpress.XtraPrinting.Drawing.Watermark watermark1 = new DevExpress.XtraPrinting.Drawing.Watermark();
this.Detail = new DevExpress.XtraReports.UI.DetailBand();
this.ReportHeader = new DevExpress.XtraReports.UI.ReportHeaderBand();
this.ruleRateFactorNull = new DevExpress.XtraReports.UI.FormattingRule();
@@ -109,6 +109,9 @@ namespace ChristopherusHausMID
this.fieldSummeStunden = new DevExpress.XtraReports.UI.CalculatedField();
this.fieldBetragAllerStunden = new DevExpress.XtraReports.UI.CalculatedField();
this.ReportFooter = new DevExpress.XtraReports.UI.ReportFooterBand();
this.xrCheckBox1 = new DevExpress.XtraReports.UI.XRCheckBox();
this.xrCheckBox2 = new DevExpress.XtraReports.UI.XRCheckBox();
this.xrLabel4 = new DevExpress.XtraReports.UI.XRLabel();
this.xrLabel9 = new DevExpress.XtraReports.UI.XRLabel();
this.xrLabel7 = new DevExpress.XtraReports.UI.XRLabel();
this.lblAbrechenbareStunden = new DevExpress.XtraReports.UI.XRLabel();
@@ -141,14 +144,17 @@ namespace ChristopherusHausMID
this.xrTableCell56 = new DevExpress.XtraReports.UI.XRTableCell();
this.GroupFooter2 = new DevExpress.XtraReports.UI.GroupFooterBand();
this.fieldAbweichungIstSoll = new DevExpress.XtraReports.UI.CalculatedField();
this.xrLabel4 = new DevExpress.XtraReports.UI.XRLabel();
this.xrCheckBox1 = new DevExpress.XtraReports.UI.XRCheckBox();
this.xrCheckBox2 = new DevExpress.XtraReports.UI.XRCheckBox();
this.xrRichText2 = new DevExpress.XtraReports.UI.XRRichText();
this.xrRichText1 = new DevExpress.XtraReports.UI.XRRichText();
this.xrLabel10 = new DevExpress.XtraReports.UI.XRLabel();
this.xrLabel16 = new DevExpress.XtraReports.UI.XRLabel();
((System.ComponentModel.ISupportInitialize)(this.xrTable2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.xrTable5)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.xrTable1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.xrTable3)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.xrRichText2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.xrRichText1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
//
// Detail
@@ -161,8 +167,13 @@ namespace ChristopherusHausMID
//
// ReportHeader
//
this.ReportHeader.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] {
this.xrLabel16,
this.xrLabel10,
this.lblAdresse,
this.xrRichText1});
this.ReportHeader.Font = new DevExpress.Drawing.DXFont("Verdana", 10F);
this.ReportHeader.HeightF = 0F;
this.ReportHeader.HeightF = 150F;
this.ReportHeader.Name = "ReportHeader";
this.ReportHeader.StylePriority.UseFont = false;
//
@@ -174,15 +185,13 @@ namespace ChristopherusHausMID
//
// topMarginBand1
//
this.topMarginBand1.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] {
this.lblAdresse});
this.topMarginBand1.HeightF = 309.375F;
this.topMarginBand1.HeightF = 200F;
this.topMarginBand1.Name = "topMarginBand1";
//
// lblAdresse
//
this.lblAdresse.Font = new DevExpress.Drawing.DXFont("Arial", 10F, DevExpress.Drawing.DXFontStyle.Bold);
this.lblAdresse.LocationFloat = new DevExpress.Utils.PointFloat(17.5F, 226F);
this.lblAdresse.Font = new DevExpress.Drawing.DXFont("Arial", 10.5F);
this.lblAdresse.LocationFloat = new DevExpress.Utils.PointFloat(0F, 36.3889F);
this.lblAdresse.Multiline = true;
this.lblAdresse.Name = "lblAdresse";
this.lblAdresse.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
@@ -193,7 +202,9 @@ namespace ChristopherusHausMID
//
// bottomMarginBand1
//
this.bottomMarginBand1.HeightF = 132.9582F;
this.bottomMarginBand1.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] {
this.xrRichText2});
this.bottomMarginBand1.HeightF = 90F;
this.bottomMarginBand1.Name = "bottomMarginBand1";
//
// GroupFooter
@@ -868,7 +879,7 @@ namespace ChristopherusHausMID
//
this.xrLabel6.BackColor = System.Drawing.Color.Transparent;
this.xrLabel6.CanShrink = true;
this.xrLabel6.Font = new DevExpress.Drawing.DXFont("Arial", 11F, DevExpress.Drawing.DXFontStyle.Bold);
this.xrLabel6.Font = new DevExpress.Drawing.DXFont("Arial", 10.5F, DevExpress.Drawing.DXFontStyle.Bold);
this.xrLabel6.LocationFloat = new DevExpress.Utils.PointFloat(490F, 39.99995F);
this.xrLabel6.Name = "xrLabel6";
this.xrLabel6.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
@@ -883,7 +894,7 @@ namespace ChristopherusHausMID
this.xrLabel8.BackColor = System.Drawing.Color.Transparent;
this.xrLabel8.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
new DevExpress.XtraReports.UI.XRBinding("Text", null, "ServiceInvoice.AccountingPeriodStart")});
this.xrLabel8.Font = new DevExpress.Drawing.DXFont("Arial", 11F, DevExpress.Drawing.DXFontStyle.Bold);
this.xrLabel8.Font = new DevExpress.Drawing.DXFont("Arial", 10.5F, DevExpress.Drawing.DXFontStyle.Bold);
this.xrLabel8.LocationFloat = new DevExpress.Utils.PointFloat(619.3317F, 39.99995F);
this.xrLabel8.Name = "xrLabel8";
this.xrLabel8.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
@@ -899,7 +910,7 @@ namespace ChristopherusHausMID
//
this.lblRechnungsnr.BackColor = System.Drawing.Color.Transparent;
this.lblRechnungsnr.CanShrink = true;
this.lblRechnungsnr.Font = new DevExpress.Drawing.DXFont("Arial", 11F, DevExpress.Drawing.DXFontStyle.Bold);
this.lblRechnungsnr.Font = new DevExpress.Drawing.DXFont("Arial", 10.5F, DevExpress.Drawing.DXFontStyle.Bold);
this.lblRechnungsnr.LocationFloat = new DevExpress.Utils.PointFloat(619.3312F, 0F);
this.lblRechnungsnr.Name = "lblRechnungsnr";
this.lblRechnungsnr.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
@@ -916,7 +927,7 @@ namespace ChristopherusHausMID
this.xrLabel5.CanShrink = true;
this.xrLabel5.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
new DevExpress.XtraReports.UI.XRBinding("Text", null, "ServiceInvoice.InvoiceDate")});
this.xrLabel5.Font = new DevExpress.Drawing.DXFont("Arial", 11F, DevExpress.Drawing.DXFontStyle.Bold);
this.xrLabel5.Font = new DevExpress.Drawing.DXFont("Arial", 10.5F, DevExpress.Drawing.DXFontStyle.Bold);
this.xrLabel5.LocationFloat = new DevExpress.Utils.PointFloat(619.3312F, 19.9999F);
this.xrLabel5.Name = "xrLabel5";
this.xrLabel5.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
@@ -931,7 +942,7 @@ namespace ChristopherusHausMID
//
this.xrLabel3.BackColor = System.Drawing.Color.Transparent;
this.xrLabel3.CanShrink = true;
this.xrLabel3.Font = new DevExpress.Drawing.DXFont("Arial", 11F, DevExpress.Drawing.DXFontStyle.Bold);
this.xrLabel3.Font = new DevExpress.Drawing.DXFont("Arial", 10.5F, DevExpress.Drawing.DXFontStyle.Bold);
this.xrLabel3.LocationFloat = new DevExpress.Utils.PointFloat(490F, 19.9999F);
this.xrLabel3.Name = "xrLabel3";
this.xrLabel3.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
@@ -945,7 +956,7 @@ namespace ChristopherusHausMID
//
this.xrLabel2.BackColor = System.Drawing.Color.Transparent;
this.xrLabel2.CanShrink = true;
this.xrLabel2.Font = new DevExpress.Drawing.DXFont("Arial", 11F, DevExpress.Drawing.DXFontStyle.Bold);
this.xrLabel2.Font = new DevExpress.Drawing.DXFont("Arial", 10.5F, DevExpress.Drawing.DXFontStyle.Bold);
this.xrLabel2.LocationFloat = new DevExpress.Utils.PointFloat(490F, 0F);
this.xrLabel2.Name = "xrLabel2";
this.xrLabel2.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
@@ -1337,6 +1348,40 @@ namespace ChristopherusHausMID
this.ReportFooter.HeightF = 282.3737F;
this.ReportFooter.Name = "ReportFooter";
//
// xrCheckBox1
//
this.xrCheckBox1.LocationFloat = new DevExpress.Utils.PointFloat(242.6284F, 73.95834F);
this.xrCheckBox1.Name = "xrCheckBox1";
this.xrCheckBox1.SizeF = new System.Drawing.SizeF(63.49995F, 21.875F);
this.xrCheckBox1.StylePriority.UseFont = false;
this.xrCheckBox1.Text = "Ja";
//
// xrCheckBox2
//
this.xrCheckBox2.LocationFloat = new DevExpress.Utils.PointFloat(306.1283F, 73.95834F);
this.xrCheckBox2.Name = "xrCheckBox2";
this.xrCheckBox2.SizeF = new System.Drawing.SizeF(307.5598F, 21.875F);
this.xrCheckBox2.StylePriority.UseFont = false;
this.xrCheckBox2.Text = "Nein";
//
// xrLabel4
//
this.xrLabel4.BackColor = System.Drawing.Color.Transparent;
this.xrLabel4.LocationFloat = new DevExpress.Utils.PointFloat(242.6284F, 21.66667F);
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(455.9977F, 52.29167F);
this.xrLabel4.StylePriority.UseBackColor = false;
this.xrLabel4.StylePriority.UseBorders = false;
this.xrLabel4.StylePriority.UseFont = false;
this.xrLabel4.StylePriority.UseTextAlignment = false;
this.xrLabel4.Text = "Die Betreuung wurde während der Pausenzeiten durch eine Schulbegleitung\r\nunseres " +
"Dienstes gewährleistet.";
this.xrLabel4.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft;
this.xrLabel4.TextTrimming = DevExpress.Drawing.DXStringTrimming.None;
this.xrLabel4.WordWrap = false;
//
// xrLabel9
//
this.xrLabel9.BackColor = System.Drawing.Color.Transparent;
@@ -1901,39 +1946,50 @@ namespace ChristopherusHausMID
"cePeriods].[ApprovedHours]))/Sum([ServiceInvoicePeriods].[ApprovedHours]) * 100";
this.fieldAbweichungIstSoll.Name = "fieldAbweichungIstSoll";
//
// xrLabel4
// xrRichText2
//
this.xrLabel4.BackColor = System.Drawing.Color.Transparent;
this.xrLabel4.LocationFloat = new DevExpress.Utils.PointFloat(242.6284F, 21.66667F);
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(455.9977F, 52.29167F);
this.xrLabel4.StylePriority.UseBackColor = false;
this.xrLabel4.StylePriority.UseBorders = false;
this.xrLabel4.StylePriority.UseFont = false;
this.xrLabel4.StylePriority.UseTextAlignment = false;
this.xrLabel4.Text = "Die Betreuung wurde während der Pausenzeiten durch eine Schulbegleitung\r\nunseres " +
"Dienstes gewährleistet.";
this.xrLabel4.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft;
this.xrLabel4.TextTrimming = DevExpress.Drawing.DXStringTrimming.None;
this.xrLabel4.WordWrap = false;
this.xrRichText2.Font = new DevExpress.Drawing.DXFont("Arial", 8F);
this.xrRichText2.LocationFloat = new DevExpress.Utils.PointFloat(25.62642F, 10F);
this.xrRichText2.Name = "xrRichText2";
this.xrRichText2.SerializableRtfString = resources.GetString("xrRichText2.SerializableRtfString");
this.xrRichText2.SizeF = new System.Drawing.SizeF(739.3734F, 68.05556F);
this.xrRichText2.StylePriority.UseFont = false;
//
// xrCheckBox1
// xrRichText1
//
this.xrCheckBox1.LocationFloat = new DevExpress.Utils.PointFloat(242.6284F, 73.95834F);
this.xrCheckBox1.Name = "xrCheckBox1";
this.xrCheckBox1.SizeF = new System.Drawing.SizeF(63.49995F, 21.875F);
this.xrCheckBox1.StylePriority.UseFont = false;
this.xrCheckBox1.Text = "Ja";
this.xrRichText1.Font = new DevExpress.Drawing.DXFont("Arial", 8F);
this.xrRichText1.LocationFloat = new DevExpress.Utils.PointFloat(0.0002034505F, 0F);
this.xrRichText1.Name = "xrRichText1";
this.xrRichText1.SerializableRtfString = resources.GetString("xrRichText1.SerializableRtfString");
this.xrRichText1.SizeF = new System.Drawing.SizeF(419.3308F, 36.3889F);
this.xrRichText1.StylePriority.UseFont = false;
//
// xrCheckBox2
// xrLabel10
//
this.xrCheckBox2.LocationFloat = new DevExpress.Utils.PointFloat(306.1283F, 73.95834F);
this.xrCheckBox2.Name = "xrCheckBox2";
this.xrCheckBox2.SizeF = new System.Drawing.SizeF(307.5598F, 21.875F);
this.xrCheckBox2.StylePriority.UseFont = false;
this.xrCheckBox2.Text = "Nein";
this.xrLabel10.Font = new DevExpress.Drawing.DXFont("Arial", 10.5F);
this.xrLabel10.LocationFloat = new DevExpress.Utils.PointFloat(490.0002F, 36.3889F);
this.xrLabel10.Multiline = true;
this.xrLabel10.Name = "xrLabel10";
this.xrLabel10.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.xrLabel10.SizeF = new System.Drawing.SizeF(275F, 83.37503F);
this.xrLabel10.StylePriority.UseFont = false;
this.xrLabel10.Text = "Kreisstr. 55, \r\n44267 Dortmund \nTelefon 02304 98279-12\r\nj.genditzki@christopherus" +
"-haus.de";
//
// xrLabel16
//
this.xrLabel16.BackColor = System.Drawing.Color.Transparent;
this.xrLabel16.CanShrink = true;
this.xrLabel16.Font = new DevExpress.Drawing.DXFont("Arial", 10.5F, DevExpress.Drawing.DXFontStyle.Bold);
this.xrLabel16.LocationFloat = new DevExpress.Utils.PointFloat(490.0002F, 0F);
this.xrLabel16.Multiline = true;
this.xrLabel16.Name = "xrLabel16";
this.xrLabel16.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.xrLabel16.SizeF = new System.Drawing.SizeF(274.9996F, 36.3889F);
this.xrLabel16.StylePriority.UseBackColor = false;
this.xrLabel16.StylePriority.UseFont = false;
this.xrLabel16.Text = "Ambulante Dienste\r\nSchulbegleitender Dienst";
this.xrLabel16.WordWrap = false;
//
// Rechnung
//
@@ -1958,22 +2014,24 @@ namespace ChristopherusHausMID
this.FormattingRuleSheet.AddRange(new DevExpress.XtraReports.UI.FormattingRule[] {
this.ruleRateFactorNull,
this.ruleNoticeNull});
this.Margins = new DevExpress.Drawing.DXMargins(36F, 26F, 309.375F, 132.9582F);
this.Margins = new DevExpress.Drawing.DXMargins(36F, 26F, 200F, 90F);
this.PageHeight = 1169;
this.PageWidth = 827;
this.PaperKind = DevExpress.Drawing.Printing.DXPaperKind.A4;
this.Version = "23.2";
xrWatermark1.Id = "Watermark1";
xrWatermark1.ImageSource = new DevExpress.XtraPrinting.Drawing.ImageSource("img", resources.GetString("xrWatermark1.ImageSource"));
xrWatermark1.ImageViewMode = DevExpress.XtraPrinting.Drawing.ImageViewMode.Zoom;
xrWatermark1.PageRange = "1";
this.Watermarks.Add(xrWatermark1);
watermark1.Id = "Watermark1";
watermark1.ImageAlign = System.Drawing.ContentAlignment.TopCenter;
watermark1.ImageSource = new DevExpress.XtraPrinting.Drawing.ImageSource("img", resources.GetString("watermark1.ImageSource"));
watermark1.ImageViewMode = DevExpress.XtraPrinting.Drawing.ImageViewMode.Zoom;
this.Watermarks.Add(watermark1);
this.AfterPrint += new System.EventHandler(this.Change_Name);
((System.ComponentModel.ISupportInitialize)(this.xrTable2)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.xrTable5)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.xrTable1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.xrTable3)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.xrRichText2)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.xrRichText1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this)).EndInit();
}
@@ -2090,5 +2148,9 @@ namespace ChristopherusHausMID
private DevExpress.XtraReports.UI.XRLabel xrLabel4;
private DevExpress.XtraReports.UI.XRCheckBox xrCheckBox1;
private DevExpress.XtraReports.UI.XRCheckBox xrCheckBox2;
private DevExpress.XtraReports.UI.XRRichText xrRichText1;
private DevExpress.XtraReports.UI.XRRichText xrRichText2;
private DevExpress.XtraReports.UI.XRLabel xrLabel16;
private DevExpress.XtraReports.UI.XRLabel xrLabel10;
}
}

View File

@@ -153,7 +153,7 @@ namespace ChristopherusHausMID
var fehltage = PoolHelper.GetAbwesenheitsTage(customer, span);
ro.Fehltage = fehltage * -1;
}
ro.GesamtBetrag = GetBetragFromString(pRO.GrossClaim);
}
}

File diff suppressed because one or more lines are too long