Reports...

This commit is contained in:
Alexandra
2022-05-23 16:56:37 +02:00
parent 3a2008c6cf
commit 241779970c
8 changed files with 34504 additions and 1898 deletions

View File

@@ -6,6 +6,9 @@ using BeWo.Data.Access;
using BeWo.Data.Entities;
using BeWo.Report;
using BeWo.Report.ReportObjects;
using BeWo.Service.DCEntityMapper;
using BS.Shared.Core;
using BS.Shared.DataContracts;
using DevExpress.XtraReports.Design;
using DevExpress.XtraReports.UI;
@@ -15,15 +18,24 @@ namespace Biotop
{
public override XtraReport CreateSettlementReport(string dcId, long? invoiceBaseOid)
{
long invoiceOid;
long result;
Settlement2DC lSettlementDC;
string cbName;
if (invoiceBaseOid.HasValue && invoiceBaseOid.Value > 0)
invoiceOid = invoiceBaseOid.Value;
else
invoiceOid = long.Parse(dcId);
{
long invoiceOid = invoiceBaseOid.Value;
var ib = DAOFactory.GenericDAO.LoadByID<InvoiceBase>(invoiceOid);
cbName = ib.CostBearer2SupportConcept.CostBearer.Organisation.Name;
}
var ib = DAOFactory.GenericDAO.LoadByID<InvoiceBase>(invoiceOid);
if (ib.CostBearer2SupportConcept.CostBearer.Organisation.Name.Contains("Landschaftsverband Westfalen-Lippe")
|| ib.CostBearer2SupportConcept.CostBearer.Organisation.Name == "LWL")
else
{
Int64.TryParse(dcId, out result);
lSettlementDC = MapperFactory.SettlementDC_SettlementInvoice.MapToNewDC(DAOFactory.GenericDAO.LoadByID<SettlementInvoice>(result));
cbName = lSettlementDC.RecipientOrganisation;
}
if (cbName.Contains("Landschaftsverband Westfalen-Lippe") || cbName == "LWL")
return base.CreateSettlementReport(dcId, invoiceBaseOid, true);
return base.CreateSettlementReport(dcId, invoiceBaseOid, false);

Binary file not shown.

After

Width:  |  Height:  |  Size: 1013 KiB

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -91,6 +91,8 @@ namespace LebenshilfeDorsten
this.xrLabel2 = new DevExpress.XtraReports.UI.XRLabel();
this.xrLine2 = new DevExpress.XtraReports.UI.XRLine();
this.xrLabel17 = new DevExpress.XtraReports.UI.XRLabel();
this.SubBand1 = new DevExpress.XtraReports.UI.SubBand();
this.xrSubreport1 = new DevExpress.XtraReports.UI.XRSubreport();
this.bindingSource1 = new System.Windows.Forms.BindingSource(this.components);
((System.ComponentModel.ISupportInitialize)(this.tableRechnungspositionen)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.xrTable1)).BeginInit();
@@ -599,6 +601,8 @@ namespace LebenshilfeDorsten
this.GroupFooter2.Level = 1;
this.GroupFooter2.Name = "GroupFooter2";
this.GroupFooter2.StylePriority.UseFont = false;
this.GroupFooter2.SubBands.AddRange(new DevExpress.XtraReports.UI.SubBand[] {
this.SubBand1});
//
// xrLabel3
//
@@ -649,6 +653,20 @@ namespace LebenshilfeDorsten
this.xrLabel17.StylePriority.UseFont = false;
this.xrLabel17.Text = "¹vom LWL gesondert bewilligte Leistungen zur Deckung eines einmaligen Bedarfs";
//
// SubBand1
//
this.SubBand1.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] {
this.xrSubreport1});
this.SubBand1.HeightF = 10F;
this.SubBand1.Name = "SubBand1";
this.SubBand1.PageBreak = DevExpress.XtraReports.UI.PageBreak.BeforeBand;
//
// xrSubreport1
//
this.xrSubreport1.LocationFloat = new DevExpress.Utils.PointFloat(65.00015F, 0F);
this.xrSubreport1.Name = "xrSubreport1";
this.xrSubreport1.SizeF = new System.Drawing.SizeF(683.9999F, 10F);
//
// bindingSource1
//
this.bindingSource1.DataSource = typeof(BeWo.Report.ReportObjects.SettlementRO);
@@ -742,5 +760,7 @@ namespace LebenshilfeDorsten
private DevExpress.XtraReports.UI.XRTableCell xrTableCell24;
private DevExpress.XtraReports.UI.XRLine xrLine2;
private DevExpress.XtraReports.UI.XRLabel xrLabel17;
private DevExpress.XtraReports.UI.SubBand SubBand1;
private DevExpress.XtraReports.UI.XRSubreport xrSubreport1;
}
}

View File

@@ -64,10 +64,10 @@ namespace LebenshilfeDorsten
ErstelleRechnungspositionen(pRO, terminationDate);
var anhang = new LebenshilfeDorsten.Alt.Spitzabrechnung();
xrSubreport1.ReportSource = anhang;
anhang.SetReportDataSource(pRO);
bindingSource1.DataSource = pRO;
}

View File

@@ -6,6 +6,9 @@ using BeWo.Data.Access;
using BeWo.Data.Entities;
using BeWo.Report;
using BeWo.Report.ReportObjects;
using BeWo.Service.DCEntityMapper;
using BS.Shared.Core;
using BS.Shared.DataContracts;
using DevExpress.XtraReports.Design;
using DevExpress.XtraReports.UI;
@@ -15,15 +18,24 @@ namespace LebenshilfeDorsten
{
public override XtraReport CreateSettlementReport(string dcId, long? invoiceBaseOid)
{
long invoiceOid;
long result;
Settlement2DC lSettlementDC;
string cbName;
if (invoiceBaseOid.HasValue && invoiceBaseOid.Value > 0)
invoiceOid = invoiceBaseOid.Value;
else
invoiceOid = long.Parse(dcId);
{
long invoiceOid = invoiceBaseOid.Value;
var ib = DAOFactory.GenericDAO.LoadByID<InvoiceBase>(invoiceOid);
cbName = ib.CostBearer2SupportConcept.CostBearer.Organisation.Name;
}
var ib = DAOFactory.GenericDAO.LoadByID<InvoiceBase>(invoiceOid);
if (ib.CostBearer2SupportConcept.CostBearer.Organisation.Name.Contains("Landschaftsverband Westfalen-Lippe")
|| ib.CostBearer2SupportConcept.CostBearer.Organisation.Name == "LWL")
else
{
Int64.TryParse(dcId, out result);
lSettlementDC = MapperFactory.SettlementDC_SettlementInvoice.MapToNewDC(DAOFactory.GenericDAO.LoadByID<SettlementInvoice>(result));
cbName = lSettlementDC.RecipientOrganisation;
}
if (cbName.Contains("Landschaftsverband Westfalen-Lippe") || cbName == "LWL")
return base.CreateSettlementReport(dcId, invoiceBaseOid, true);
return base.CreateSettlementReport(dcId, invoiceBaseOid, false);

View File

@@ -70,6 +70,7 @@ namespace ProfEggersStiftung
this.xrTableCell2 = new DevExpress.XtraReports.UI.XRTableCell();
this.xrTableCell28 = new DevExpress.XtraReports.UI.XRTableCell();
this.xrTableCell11 = new DevExpress.XtraReports.UI.XRTableCell();
this.picSignature = new DevExpress.XtraReports.UI.XRPictureBox();
this.GroupHeader1 = new DevExpress.XtraReports.UI.GroupHeaderBand();
this.GroupFooter4 = new DevExpress.XtraReports.UI.GroupFooterBand();
this.xrLabel8 = new DevExpress.XtraReports.UI.XRLabel();
@@ -134,7 +135,6 @@ namespace ProfEggersStiftung
this.fieldTeilnehmerZahl = new DevExpress.XtraReports.UI.CalculatedField();
this.fieldBetreuerZahl = new DevExpress.XtraReports.UI.CalculatedField();
this.GroupHeader2 = new DevExpress.XtraReports.UI.GroupHeaderBand();
this.picSignature = new DevExpress.XtraReports.UI.XRPictureBox();
((System.ComponentModel.ISupportInitialize)(this.xrTableServiceRecords1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.tableGroup1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.tableGroup2)).BeginInit();
@@ -519,6 +519,8 @@ namespace ProfEggersStiftung
//
// xrTableCell2
//
this.xrTableCell2.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] {
this.picSignature});
this.xrTableCell2.Name = "xrTableCell2";
this.xrTableCell2.Weight = 0.15151510307201618D;
//
@@ -536,11 +538,21 @@ namespace ProfEggersStiftung
//
// xrTableCell11
//
this.xrTableCell11.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] {
this.picSignature});
this.xrTableCell11.Name = "xrTableCell11";
this.xrTableCell11.Weight = 0.18939388291629064D;
//
// picSignature
//
this.picSignature.Borders = DevExpress.XtraPrinting.BorderSide.None;
this.picSignature.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
new DevExpress.XtraReports.UI.XRBinding("Tag", null, "Services.Signature")});
this.picSignature.LocationFloat = new DevExpress.Utils.PointFloat(0F, 0F);
this.picSignature.Name = "picSignature";
this.picSignature.SizeF = new System.Drawing.SizeF(121F, 18F);
this.picSignature.Sizing = DevExpress.XtraPrinting.ImageSizeMode.ZoomImage;
this.picSignature.StylePriority.UseBorders = false;
this.picSignature.BeforePrint += new System.Drawing.Printing.PrintEventHandler(this.picSignature_BeforePrint);
//
// GroupHeader1
//
this.GroupHeader1.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] {
@@ -956,7 +968,7 @@ namespace ProfEggersStiftung
this.xrLabel11.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
new DevExpress.XtraReports.UI.XRBinding("Text", null, "MainAttendant")});
this.xrLabel11.Font = new System.Drawing.Font("Arial", 8F, System.Drawing.FontStyle.Bold);
this.xrLabel11.LocationFloat = new DevExpress.Utils.PointFloat(778.9581F, 37.04163F);
this.xrLabel11.LocationFloat = new DevExpress.Utils.PointFloat(778.9581F, 35.99987F);
this.xrLabel11.Name = "xrLabel11";
this.xrLabel11.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.xrLabel11.SizeF = new System.Drawing.SizeF(222.5418F, 17.99997F);
@@ -1013,7 +1025,7 @@ namespace ProfEggersStiftung
this.xrLabel14.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
new DevExpress.XtraReports.UI.XRBinding("Text", null, "CustomerBirthday", "{0:dd.MM.yyyy}")});
this.xrLabel14.Font = new System.Drawing.Font("Arial", 8F, System.Drawing.FontStyle.Bold);
this.xrLabel14.LocationFloat = new DevExpress.Utils.PointFloat(510.4167F, 37.0416F);
this.xrLabel14.LocationFloat = new DevExpress.Utils.PointFloat(510.4166F, 35.99987F);
this.xrLabel14.Name = "xrLabel14";
this.xrLabel14.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.xrLabel14.SizeF = new System.Drawing.SizeF(110.0416F, 18F);
@@ -1246,18 +1258,6 @@ namespace ProfEggersStiftung
this.GroupHeader2.Name = "GroupHeader2";
this.GroupHeader2.RepeatEveryPage = true;
//
// picSignature
//
this.picSignature.Borders = DevExpress.XtraPrinting.BorderSide.None;
this.picSignature.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
new DevExpress.XtraReports.UI.XRBinding("Tag", null, "Services.Signature")});
this.picSignature.LocationFloat = new DevExpress.Utils.PointFloat(0F, 0F);
this.picSignature.Name = "picSignature";
this.picSignature.SizeF = new System.Drawing.SizeF(150F, 18F);
this.picSignature.Sizing = DevExpress.XtraPrinting.ImageSizeMode.ZoomImage;
this.picSignature.StylePriority.UseBorders = false;
this.picSignature.BeforePrint += new System.Drawing.Printing.PrintEventHandler(this.picSignature_BeforePrint);
//
// Stundenzettel
//
this.Bands.AddRange(new DevExpress.XtraReports.UI.Band[] {