TeamPfeil/ServiceInvoiceReport - Anpassung Rechnungstext bei Bewilligungswechsel im Monat
This commit is contained in:
32
ReportImp/TeamPfeil/ServiceInvoiceReport.Designer.cs
generated
32
ReportImp/TeamPfeil/ServiceInvoiceReport.Designer.cs
generated
@@ -30,6 +30,7 @@ namespace TeamPfeil
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ServiceInvoiceReport));
|
||||
DevExpress.XtraReports.UI.XRWatermark xrWatermark1 = new DevExpress.XtraReports.UI.XRWatermark();
|
||||
this.Detail = new DevExpress.XtraReports.UI.DetailBand();
|
||||
this.ReportHeader = new DevExpress.XtraReports.UI.ReportHeaderBand();
|
||||
this.ruleRateFactorNull = new DevExpress.XtraReports.UI.FormattingRule();
|
||||
@@ -40,6 +41,7 @@ namespace TeamPfeil
|
||||
this.xrLine1 = new DevExpress.XtraReports.UI.XRLine();
|
||||
this.xrRichText2 = new DevExpress.XtraReports.UI.XRRichText();
|
||||
this.Page1 = new DevExpress.XtraReports.UI.GroupHeaderBand();
|
||||
this.lblZeNummer = new DevExpress.XtraReports.UI.XRLabel();
|
||||
this.xrLabel_Text = new DevExpress.XtraReports.UI.XRLabel();
|
||||
this.xrLabel_InvoiceDate = new DevExpress.XtraReports.UI.XRLabel();
|
||||
this.lblAdresse = new DevExpress.XtraReports.UI.XRLabel();
|
||||
@@ -48,7 +50,6 @@ namespace TeamPfeil
|
||||
this.Label_InvoiceMonth = new DevExpress.XtraReports.UI.XRLabel();
|
||||
this.xrRichText1 = new DevExpress.XtraReports.UI.XRRichText();
|
||||
this.bindingSource1 = new System.Windows.Forms.BindingSource(this.components);
|
||||
this.lblZeNummer = new DevExpress.XtraReports.UI.XRLabel();
|
||||
((System.ComponentModel.ISupportInitialize)(this.xrRichText3)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.xrRichText2)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.xrRichText1)).BeginInit();
|
||||
@@ -71,7 +72,6 @@ namespace TeamPfeil
|
||||
//
|
||||
// ruleRateFactorNull
|
||||
//
|
||||
this.ruleRateFactorNull.Condition = "[RateFactorText2] == ?";
|
||||
this.ruleRateFactorNull.Formatting.Visible = DevExpress.Utils.DefaultBoolean.False;
|
||||
this.ruleRateFactorNull.Name = "ruleRateFactorNull";
|
||||
//
|
||||
@@ -140,6 +140,18 @@ namespace TeamPfeil
|
||||
this.Page1.Name = "Page1";
|
||||
this.Page1.StylePriority.UseFont = false;
|
||||
//
|
||||
// lblZeNummer
|
||||
//
|
||||
this.lblZeNummer.Font = new DevExpress.Drawing.DXFont("Segoe UI", 11F, DevExpress.Drawing.DXFontStyle.Bold, DevExpress.Drawing.DXGraphicsUnit.Point, new DevExpress.Drawing.DXFontAdditionalProperty[] {
|
||||
new DevExpress.Drawing.DXFontAdditionalProperty("GdiCharSet", ((byte)(0)))});
|
||||
this.lblZeNummer.LocationFloat = new DevExpress.Utils.PointFloat(292.3332F, 183.75F);
|
||||
this.lblZeNummer.Name = "lblZeNummer";
|
||||
this.lblZeNummer.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
|
||||
this.lblZeNummer.SizeF = new System.Drawing.SizeF(312.6251F, 20F);
|
||||
this.lblZeNummer.StylePriority.UseFont = false;
|
||||
this.lblZeNummer.StylePriority.UseTextAlignment = false;
|
||||
this.lblZeNummer.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft;
|
||||
//
|
||||
// xrLabel_Text
|
||||
//
|
||||
this.xrLabel_Text.LocationFloat = new DevExpress.Utils.PointFloat(0F, 625.0554F);
|
||||
@@ -224,18 +236,6 @@ namespace TeamPfeil
|
||||
//
|
||||
this.bindingSource1.DataSource = typeof(BeWo.Report.ReportObjects.ServiceInvoiceRO);
|
||||
//
|
||||
// lblZeNummer
|
||||
//
|
||||
this.lblZeNummer.Font = new DevExpress.Drawing.DXFont("Segoe UI", 11F, DevExpress.Drawing.DXFontStyle.Bold, DevExpress.Drawing.DXGraphicsUnit.Point, new DevExpress.Drawing.DXFontAdditionalProperty[] {
|
||||
new DevExpress.Drawing.DXFontAdditionalProperty("GdiCharSet", ((byte)(0)))});
|
||||
this.lblZeNummer.LocationFloat = new DevExpress.Utils.PointFloat(292.3332F, 183.75F);
|
||||
this.lblZeNummer.Name = "lblZeNummer";
|
||||
this.lblZeNummer.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
|
||||
this.lblZeNummer.SizeF = new System.Drawing.SizeF(312.6251F, 20F);
|
||||
this.lblZeNummer.StylePriority.UseFont = false;
|
||||
this.lblZeNummer.StylePriority.UseTextAlignment = false;
|
||||
this.lblZeNummer.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft;
|
||||
//
|
||||
// ServiceInvoiceReport
|
||||
//
|
||||
this.Bands.AddRange(new DevExpress.XtraReports.UI.Band[] {
|
||||
@@ -244,6 +244,8 @@ namespace TeamPfeil
|
||||
this.topMarginBand1,
|
||||
this.bottomMarginBand1,
|
||||
this.Page1});
|
||||
this.ComponentStorage.AddRange(new System.ComponentModel.IComponent[] {
|
||||
this.bindingSource1});
|
||||
this.DataSource = this.bindingSource1;
|
||||
this.ExportOptions.PrintPreview.DefaultFileName = "Spitzabrechnung";
|
||||
this.Font = new DevExpress.Drawing.DXFont("Segoe UI", 11F, DevExpress.Drawing.DXFontStyle.Regular, DevExpress.Drawing.DXGraphicsUnit.Point, new DevExpress.Drawing.DXFontAdditionalProperty[] {
|
||||
@@ -253,6 +255,8 @@ namespace TeamPfeil
|
||||
this.PageWidth = 827;
|
||||
this.PaperKind = DevExpress.Drawing.Printing.DXPaperKind.A4;
|
||||
this.Version = "23.2";
|
||||
xrWatermark1.Id = "Watermark1";
|
||||
this.Watermarks.Add(xrWatermark1);
|
||||
((System.ComponentModel.ISupportInitialize)(this.xrRichText3)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.xrRichText2)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.xrRichText1)).EndInit();
|
||||
|
||||
@@ -61,6 +61,31 @@ namespace TeamPfeil
|
||||
lblZeNummer.Text = pRO.OrganisationDebitorNumber;
|
||||
}
|
||||
|
||||
pRO.CreatorDivision = "";
|
||||
pRO.NotBillableNote = "";
|
||||
decimal hours = 0;
|
||||
decimal rate = 0;
|
||||
decimal amount = 0;
|
||||
|
||||
if (pRO.ServiceInvoicePeriods != null)
|
||||
{
|
||||
foreach (var sip in pRO.ServiceInvoicePeriods)
|
||||
{
|
||||
if (sip.ServiceInvoiceItems != null)
|
||||
{
|
||||
foreach (var ii in sip.ServiceInvoiceItems)
|
||||
{
|
||||
hours += (decimal)ii.Hours;
|
||||
rate = ii.HourlyRate.Value;
|
||||
amount += ii.NetAmount.Value;
|
||||
}
|
||||
}
|
||||
}
|
||||
pRO.CreatorDivision = String.Format("{0:0.##}", hours);
|
||||
pRO.CustomerCostCenter = String.Format("{0:n2}", rate);
|
||||
pRO.NotBillableNote += String.Format("{0:n2}", amount);
|
||||
}
|
||||
|
||||
this.bindingSource1.DataSource = pRO;
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user