AutismusKoelnBonn, PerspektivenEV und Mobilo
This commit is contained in:
@@ -48,6 +48,15 @@
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Invoicing\CustomInvoiceFactory.cs" />
|
||||
<Compile Include="Invoicing\SelbstzahlerInvoiceCreation - Kopieren.cs" />
|
||||
<Compile Include="Invoicing\FactorInvoiceCreation.cs" />
|
||||
<Compile Include="RechnungFaktor.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="RechnungFaktor.Designer.cs">
|
||||
<DependentUpon>RechnungFaktor.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="LeistungsnachweisJugendamt.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
@@ -95,6 +104,10 @@
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="RechnungFaktor.resx">
|
||||
<DependentUpon>RechnungFaktor.cs</DependentUpon>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="LeistungsnachweisJugendamt.resx">
|
||||
<DependentUpon>LeistungsnachweisJugendamt.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
|
||||
@@ -40,6 +40,7 @@ namespace AutismusKoelnBonn
|
||||
this.xrRichText5 = new DevExpress.XtraReports.UI.XRRichText();
|
||||
this.xrRichText6 = new DevExpress.XtraReports.UI.XRRichText();
|
||||
this.Page1 = new DevExpress.XtraReports.UI.GroupHeaderBand();
|
||||
this.lblHeaderKoelnHZE = new DevExpress.XtraReports.UI.XRRichText();
|
||||
this.lblTeamKoelnHZE = new DevExpress.XtraReports.UI.XRRichText();
|
||||
this.lblAbsenderBonn = new DevExpress.XtraReports.UI.XRRichText();
|
||||
this.lblTeamBonn = new DevExpress.XtraReports.UI.XRRichText();
|
||||
@@ -85,11 +86,13 @@ namespace AutismusKoelnBonn
|
||||
this.xrTableCell3 = new DevExpress.XtraReports.UI.XRTableCell();
|
||||
this.xrTableCell4 = new DevExpress.XtraReports.UI.XRTableCell();
|
||||
this.xrTableCell6 = new DevExpress.XtraReports.UI.XRTableCell();
|
||||
this.xrPageInfo2 = new DevExpress.XtraReports.UI.XRPageInfo();
|
||||
this.lblBonnHZE = new DevExpress.XtraReports.UI.XRRichText();
|
||||
this.bindingSource1 = new System.Windows.Forms.BindingSource(this.components);
|
||||
this.lblHeaderKoelnHZE = new DevExpress.XtraReports.UI.XRRichText();
|
||||
((System.ComponentModel.ISupportInitialize)(this.xrRichText3)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.xrRichText5)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.xrRichText6)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.lblHeaderKoelnHZE)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.lblTeamKoelnHZE)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.lblAbsenderBonn)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.lblTeamBonn)).BeginInit();
|
||||
@@ -100,8 +103,8 @@ namespace AutismusKoelnBonn
|
||||
((System.ComponentModel.ISupportInitialize)(this.xrTable5)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.xrTable6)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.xrTable1)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.lblBonnHZE)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.lblHeaderKoelnHZE)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
|
||||
//
|
||||
// Detail
|
||||
@@ -142,6 +145,7 @@ namespace AutismusKoelnBonn
|
||||
// bottomMarginBand1
|
||||
//
|
||||
this.bottomMarginBand1.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] {
|
||||
this.xrPageInfo2,
|
||||
this.xrRichText3,
|
||||
this.xrRichText5,
|
||||
this.xrRichText6});
|
||||
@@ -185,7 +189,7 @@ namespace AutismusKoelnBonn
|
||||
this.xrRichText6.LocationFloat = new DevExpress.Utils.PointFloat(509.0416F, 0F);
|
||||
this.xrRichText6.Name = "xrRichText6";
|
||||
this.xrRichText6.SerializableRtfString = resources.GetString("xrRichText6.SerializableRtfString");
|
||||
this.xrRichText6.SizeF = new System.Drawing.SizeF(176F, 109.75F);
|
||||
this.xrRichText6.SizeF = new System.Drawing.SizeF(176.0001F, 94.12498F);
|
||||
this.xrRichText6.StylePriority.UseBorderColor = false;
|
||||
this.xrRichText6.StylePriority.UseBorderDashStyle = false;
|
||||
this.xrRichText6.StylePriority.UseBorders = false;
|
||||
@@ -193,6 +197,7 @@ namespace AutismusKoelnBonn
|
||||
// Page1
|
||||
//
|
||||
this.Page1.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] {
|
||||
this.lblBonnHZE,
|
||||
this.lblHeaderKoelnHZE,
|
||||
this.lblTeamKoelnHZE,
|
||||
this.lblAbsenderBonn,
|
||||
@@ -217,6 +222,20 @@ namespace AutismusKoelnBonn
|
||||
this.Page1.Name = "Page1";
|
||||
this.Page1.StylePriority.UseFont = false;
|
||||
//
|
||||
// lblHeaderKoelnHZE
|
||||
//
|
||||
this.lblHeaderKoelnHZE.CanGrow = false;
|
||||
this.lblHeaderKoelnHZE.Font = new System.Drawing.Font("Arial", 8F);
|
||||
this.lblHeaderKoelnHZE.LocationFloat = new DevExpress.Utils.PointFloat(447.7357F, 0F);
|
||||
this.lblHeaderKoelnHZE.Name = "lblHeaderKoelnHZE";
|
||||
this.lblHeaderKoelnHZE.Padding = new DevExpress.XtraPrinting.PaddingInfo(23, 0, 0, 0, 100F);
|
||||
this.lblHeaderKoelnHZE.SerializableRtfString = resources.GetString("lblHeaderKoelnHZE.SerializableRtfString");
|
||||
this.lblHeaderKoelnHZE.SizeF = new System.Drawing.SizeF(255.5558F, 111.5F);
|
||||
this.lblHeaderKoelnHZE.StylePriority.UseFont = false;
|
||||
this.lblHeaderKoelnHZE.StylePriority.UsePadding = false;
|
||||
this.lblHeaderKoelnHZE.StylePriority.UseTextAlignment = false;
|
||||
this.lblHeaderKoelnHZE.Visible = false;
|
||||
//
|
||||
// lblTeamKoelnHZE
|
||||
//
|
||||
this.lblTeamKoelnHZE.Font = new System.Drawing.Font("Arial", 8F);
|
||||
@@ -240,7 +259,7 @@ namespace AutismusKoelnBonn
|
||||
//
|
||||
this.lblTeamBonn.CanGrow = false;
|
||||
this.lblTeamBonn.Font = new System.Drawing.Font("Arial", 8F);
|
||||
this.lblTeamBonn.LocationFloat = new DevExpress.Utils.PointFloat(466.3054F, 0F);
|
||||
this.lblTeamBonn.LocationFloat = new DevExpress.Utils.PointFloat(467.8752F, 0F);
|
||||
this.lblTeamBonn.Name = "lblTeamBonn";
|
||||
this.lblTeamBonn.Padding = new DevExpress.XtraPrinting.PaddingInfo(6, 0, 0, 0, 100F);
|
||||
this.lblTeamBonn.SerializableRtfString = resources.GetString("lblTeamBonn.SerializableRtfString");
|
||||
@@ -844,24 +863,34 @@ namespace AutismusKoelnBonn
|
||||
this.xrTableCell6.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight;
|
||||
this.xrTableCell6.Weight = 0.46694889292683683D;
|
||||
//
|
||||
// xrPageInfo2
|
||||
//
|
||||
this.xrPageInfo2.Font = new System.Drawing.Font("Arial", 8F);
|
||||
this.xrPageInfo2.Format = "Seite {0} von {1}";
|
||||
this.xrPageInfo2.LocationFloat = new DevExpress.Utils.PointFloat(509.0416F, 94.12498F);
|
||||
this.xrPageInfo2.Name = "xrPageInfo2";
|
||||
this.xrPageInfo2.SizeF = new System.Drawing.SizeF(153.0834F, 23F);
|
||||
this.xrPageInfo2.StylePriority.UseFont = false;
|
||||
this.xrPageInfo2.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopRight;
|
||||
//
|
||||
// lblBonnHZE
|
||||
//
|
||||
this.lblBonnHZE.CanGrow = false;
|
||||
this.lblBonnHZE.Font = new System.Drawing.Font("Arial", 8F);
|
||||
this.lblBonnHZE.LocationFloat = new DevExpress.Utils.PointFloat(466.3054F, 0F);
|
||||
this.lblBonnHZE.Name = "lblBonnHZE";
|
||||
this.lblBonnHZE.Padding = new DevExpress.XtraPrinting.PaddingInfo(6, 0, 0, 0, 100F);
|
||||
this.lblBonnHZE.SerializableRtfString = resources.GetString("lblBonnHZE.SerializableRtfString");
|
||||
this.lblBonnHZE.SizeF = new System.Drawing.SizeF(236.1248F, 239.2917F);
|
||||
this.lblBonnHZE.StylePriority.UseFont = false;
|
||||
this.lblBonnHZE.StylePriority.UsePadding = false;
|
||||
this.lblBonnHZE.StylePriority.UseTextAlignment = false;
|
||||
this.lblBonnHZE.Visible = false;
|
||||
//
|
||||
// bindingSource1
|
||||
//
|
||||
this.bindingSource1.DataSource = typeof(BeWo.Report.ReportObjects.ServiceInvoiceRO);
|
||||
//
|
||||
// lblHeaderKoelnHZE
|
||||
//
|
||||
this.lblHeaderKoelnHZE.CanGrow = false;
|
||||
this.lblHeaderKoelnHZE.Font = new System.Drawing.Font("Arial", 8F);
|
||||
this.lblHeaderKoelnHZE.LocationFloat = new DevExpress.Utils.PointFloat(448.597F, 0F);
|
||||
this.lblHeaderKoelnHZE.Name = "lblHeaderKoelnHZE";
|
||||
this.lblHeaderKoelnHZE.Padding = new DevExpress.XtraPrinting.PaddingInfo(23, 0, 0, 0, 100F);
|
||||
this.lblHeaderKoelnHZE.SerializableRtfString = resources.GetString("lblHeaderKoelnHZE.SerializableRtfString");
|
||||
this.lblHeaderKoelnHZE.SizeF = new System.Drawing.SizeF(255.5558F, 111.5F);
|
||||
this.lblHeaderKoelnHZE.StylePriority.UseFont = false;
|
||||
this.lblHeaderKoelnHZE.StylePriority.UsePadding = false;
|
||||
this.lblHeaderKoelnHZE.StylePriority.UseTextAlignment = false;
|
||||
this.lblHeaderKoelnHZE.Visible = false;
|
||||
//
|
||||
// ServiceInvoiceReport
|
||||
//
|
||||
this.Bands.AddRange(new DevExpress.XtraReports.UI.Band[] {
|
||||
@@ -881,11 +910,10 @@ namespace AutismusKoelnBonn
|
||||
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 = 218;
|
||||
((System.ComponentModel.ISupportInitialize)(this.xrRichText3)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.xrRichText5)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.xrRichText6)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.lblHeaderKoelnHZE)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.lblTeamKoelnHZE)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.lblAbsenderBonn)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.lblTeamBonn)).EndInit();
|
||||
@@ -896,8 +924,8 @@ namespace AutismusKoelnBonn
|
||||
((System.ComponentModel.ISupportInitialize)(this.xrTable5)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.xrTable6)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.xrTable1)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.lblBonnHZE)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.lblHeaderKoelnHZE)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this)).EndInit();
|
||||
|
||||
}
|
||||
@@ -960,5 +988,7 @@ namespace AutismusKoelnBonn
|
||||
private DevExpress.XtraReports.UI.XRRichText lblAbsenderBonn;
|
||||
private DevExpress.XtraReports.UI.XRRichText lblTeamKoelnHZE;
|
||||
private DevExpress.XtraReports.UI.XRRichText lblHeaderKoelnHZE;
|
||||
private DevExpress.XtraReports.UI.XRPageInfo xrPageInfo2;
|
||||
private DevExpress.XtraReports.UI.XRRichText lblBonnHZE;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -66,7 +66,7 @@ namespace AutismusKoelnBonn
|
||||
team = c.Team2CustomerList[0].Team.Name;
|
||||
}
|
||||
|
||||
if (team.Contains("Bonn"))
|
||||
if (team.Contains("Team Bonn"))
|
||||
{
|
||||
lblAbsenderBonn.Visible = true;
|
||||
lblTeamBonn.Visible = true;
|
||||
@@ -74,6 +74,15 @@ namespace AutismusKoelnBonn
|
||||
lblHeaderKoeln.Visible = false;
|
||||
lblTeamKoeln.Visible = false;
|
||||
}
|
||||
else if (team.Contains("HZE Bonn"))
|
||||
{
|
||||
lblAbsenderBonn.Visible = true;
|
||||
lblTeamBonn.Visible = false;
|
||||
lblBonnHZE.Visible = true;
|
||||
lblAbsenderKoeln.Visible = false;
|
||||
lblHeaderKoeln.Visible = false;
|
||||
lblTeamKoeln.Visible = false;
|
||||
}
|
||||
else if (team.Contains("Merkenich"))
|
||||
{
|
||||
lblTeamMerkenich.Visible = true;
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,39 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using BeWo.Data.Access;
|
||||
using BeWo.Data.Entities;
|
||||
using BeWo.Service.Invoicing;
|
||||
using BS.Shared.DataContracts;
|
||||
using BS.Shared.DataContracts.Compact;
|
||||
using BS.Shared.Services;
|
||||
|
||||
namespace AutismusKoelnBonn.Invoicing
|
||||
{
|
||||
public class CustomInvoiceFactory : InvoiceFactory
|
||||
{
|
||||
|
||||
public override InvoiceCreation CreateInvoiceCreator(string specificId, string tenant, Dictionary<CompactSupportConceptDC, List<ServiceRecordDC>> supportConcepts2ServiceRecords)
|
||||
{
|
||||
foreach (var list in supportConcepts2ServiceRecords.Values)
|
||||
{
|
||||
|
||||
foreach (var sr in list)
|
||||
{
|
||||
if (sr.CostBearer != null)
|
||||
{
|
||||
if (sr.CostBearer.Name.ToLower().Contains("selbstzahler"))
|
||||
{
|
||||
return new SelbstzahlerInvoiceCreation();
|
||||
}
|
||||
else if (sr.CostBearer.ActualRateFactor != 0)
|
||||
{
|
||||
return new FactorInvoiceCreation();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return new InvoiceCreation();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
using BeWo.Data.Entities;
|
||||
using BeWo.Service.Invoicing;
|
||||
using BS.Shared.Core;
|
||||
using BS.Shared.DataContracts.Compact;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace AutismusKoelnBonn.Invoicing
|
||||
{
|
||||
|
||||
public class FactorInvoiceCreation : InvoiceCreation
|
||||
{
|
||||
private DateTime? accountingPeriodStart = null;
|
||||
private DateTime? accountingPeriodEnd = null;
|
||||
|
||||
public override void SetInvoiceId(ServiceInvoice invoice)
|
||||
{
|
||||
invoice.InvoiceBase.InvoiceId = "Faktor";
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
using BeWo.Data.Entities;
|
||||
using BeWo.Service.Invoicing;
|
||||
using BS.Shared.Core;
|
||||
using BS.Shared.DataContracts.Compact;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace AutismusKoelnBonn.Invoicing
|
||||
{
|
||||
|
||||
public class SelbstzahlerInvoiceCreation : InvoiceCreation
|
||||
{
|
||||
private DateTime? accountingPeriodStart = null;
|
||||
private DateTime? accountingPeriodEnd = null;
|
||||
|
||||
public override void SetInvoiceBaseData(int invoiceCounter, ServiceInvoice invoice, CostBearer costBearer, DateTimeSpan invoicePeriod,
|
||||
IList<CompactSupportConceptDC> supportConceptList)
|
||||
{
|
||||
if (invoicePeriod != null)
|
||||
{
|
||||
accountingPeriodStart = invoicePeriod.StartDate;
|
||||
accountingPeriodEnd = invoicePeriod.EndDate;
|
||||
}
|
||||
base.SetInvoiceBaseData(invoiceCounter, invoice, costBearer, invoicePeriod, supportConceptList);
|
||||
}
|
||||
|
||||
public override void SetRecipientInformation(ServiceInvoice serviceInvoice, CostBearer costBearer)
|
||||
{
|
||||
serviceInvoice.InvoiceBase.RecipientDivision = costBearer.Organisation.Name2;
|
||||
serviceInvoice.InvoiceBase.RecipientOrganisationOid = costBearer.Organisation.Oid;
|
||||
serviceInvoice.InvoiceBase.RecipientOrganisation = costBearer.Organisation.Name;
|
||||
serviceInvoice.InvoiceBase.RecipientContacts = costBearer.Organisation.Contacts.Select(i => i.CopyToNew()).ToList();
|
||||
serviceInvoice.InvoiceBase.RecipientCostBearerOid = costBearer.Oid;
|
||||
|
||||
if (serviceInvoice.InvoiceBase.CostBearer2SupportConcept != null)
|
||||
{
|
||||
var cust = serviceInvoice.InvoiceBase.CostBearer2SupportConcept.SupportConcept.Customer;
|
||||
|
||||
if (cust.Person.InvoiceAddress != null)
|
||||
{
|
||||
serviceInvoice.InvoiceBase.RecipientAddress = cust.Person.InvoiceAddress.CopyToNew();
|
||||
}
|
||||
else if (cust.Person.Address != null)
|
||||
{
|
||||
serviceInvoice.InvoiceBase.RecipientAddress = cust.Person.Address.CopyToNew();
|
||||
}
|
||||
|
||||
if (cust.Person.InvoiceAddress.AddressLine1 != null)
|
||||
{
|
||||
serviceInvoice.InvoiceBase.RecipientPersonFirstName = cust.Person.InvoiceAddress.AddressLine1;
|
||||
serviceInvoice.InvoiceBase.RecipientPersonLastName = "";
|
||||
}
|
||||
else
|
||||
{
|
||||
serviceInvoice.InvoiceBase.RecipientPersonFirstName = cust.Person.FirstName;
|
||||
serviceInvoice.InvoiceBase.RecipientPersonLastName = cust.Person.LastName;
|
||||
}
|
||||
return;
|
||||
}
|
||||
if (costBearer.Organisation.InvoiceAddress != null)
|
||||
{
|
||||
serviceInvoice.InvoiceBase.RecipientAddress = costBearer.Organisation.InvoiceAddress.CopyToNew();
|
||||
}
|
||||
else if (costBearer.Organisation.Address != null)
|
||||
{
|
||||
serviceInvoice.InvoiceBase.RecipientAddress = costBearer.Organisation.Address.CopyToNew();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
1144
ReportImp/AutismusKoelnBonn/RechnungFaktor.Designer.cs
generated
Normal file
1144
ReportImp/AutismusKoelnBonn/RechnungFaktor.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
102
ReportImp/AutismusKoelnBonn/RechnungFaktor.cs
Normal file
102
ReportImp/AutismusKoelnBonn/RechnungFaktor.cs
Normal file
@@ -0,0 +1,102 @@
|
||||
using System;
|
||||
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 AutismusKoelnBonn
|
||||
{
|
||||
[IDSpecificClass(Identifier = "Faktor")]
|
||||
public partial class ServiceInvoiceReportFactor : XtraReport, IBeWoReport<ServiceInvoiceRO>
|
||||
{
|
||||
public ServiceInvoiceReportFactor()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
}
|
||||
|
||||
public void SetReportDataSource(ServiceInvoiceRO pRO)
|
||||
{
|
||||
// Die haben verschiedene Standorte/Schwerpunkte und das über Teams abgebildet -> eine Vorlage verschiedene "Absender" je nach Team
|
||||
// jeder Klient ist derzeit wirklich nur in einem Team
|
||||
DateTime start = pRO.AccountingPeriodStart;
|
||||
DateTime end = pRO.AccountingPeriodEnd;
|
||||
|
||||
StringBuilder sb = new StringBuilder();
|
||||
|
||||
//if (!String.IsNullOrEmpty(pRO.RecipientAddressLine1) && !String.IsNullOrEmpty(pRO.RecipientAddressLine1.Trim()) && pRO.RecipientOrganisation.Contains(pRO.CustomerLastName))
|
||||
//{
|
||||
// sb.AppendLine(pRO.RecipientAddressLine1);
|
||||
//}
|
||||
if (!String.IsNullOrEmpty(pRO.RecipientOrganisation) && !String.IsNullOrEmpty(pRO.RecipientOrganisation.Trim()))
|
||||
{
|
||||
sb.AppendLine(pRO.RecipientOrganisation);
|
||||
}
|
||||
if (!String.IsNullOrEmpty(pRO.RecipientDivision) && !String.IsNullOrEmpty(pRO.RecipientDivision.Trim()))
|
||||
{
|
||||
sb.AppendLine(pRO.RecipientDivision);
|
||||
}
|
||||
if (!String.IsNullOrEmpty(pRO.RecipientAddressLine1) && !String.IsNullOrEmpty(pRO.RecipientAddressLine1.Trim()))
|
||||
{
|
||||
sb.AppendLine(pRO.RecipientAddressLine1);
|
||||
}
|
||||
if (!String.IsNullOrEmpty(pRO.RecipientContactPerson) && !String.IsNullOrEmpty(pRO.RecipientContactPerson.Trim()))
|
||||
{
|
||||
sb.AppendLine(pRO.RecipientContactPerson);
|
||||
}
|
||||
if (!String.IsNullOrEmpty(pRO.RecipientPoBox))
|
||||
{
|
||||
sb.AppendLine(pRO.RecipientPoBox);
|
||||
}
|
||||
if (!String.IsNullOrEmpty(pRO.RecipientStreet) && String.IsNullOrEmpty(pRO.RecipientPoBox))
|
||||
{
|
||||
sb.AppendLine(pRO.RecipientStreet);
|
||||
}
|
||||
if (!String.IsNullOrEmpty(pRO.RecipientPostCodeAndTown))
|
||||
{
|
||||
sb.AppendLine(pRO.RecipientPostCodeAndTown);
|
||||
}
|
||||
lblAdresse.Text = sb.ToString();
|
||||
string team = "MoveAut Team Köln";
|
||||
Customer c;
|
||||
if (pRO.ServiceInvoicePeriods[0].Customer.Oid.HasValue)
|
||||
{
|
||||
c = DAOFactory.GenericDAO.LoadByID<Customer>(pRO.ServiceInvoicePeriods[0].Customer.Oid ?? 0);
|
||||
team = c.Team2CustomerList[0].Team.Name;
|
||||
}
|
||||
|
||||
if (team.Contains("Team Bonn"))
|
||||
{
|
||||
lblAbsenderBonn.Visible = true;
|
||||
lblTeamBonn.Visible = true;
|
||||
lblAbsenderKoeln.Visible = false;
|
||||
lblHeaderKoeln.Visible = false;
|
||||
lblTeamKoeln.Visible = false;
|
||||
}
|
||||
else if (team.Contains("HZE Bonn"))
|
||||
{
|
||||
lblAbsenderBonn.Visible = true;
|
||||
lblTeamBonn.Visible = false;
|
||||
lblBonnHZE.Visible = true;
|
||||
lblAbsenderKoeln.Visible = false;
|
||||
lblHeaderKoeln.Visible = false;
|
||||
lblTeamKoeln.Visible = false;
|
||||
}
|
||||
else if (team.Contains("Merkenich"))
|
||||
{
|
||||
lblTeamMerkenich.Visible = true;
|
||||
lblTeamKoeln.Visible = false;
|
||||
}
|
||||
else if (team.Contains("HZE Köln"))
|
||||
{
|
||||
lblTeamKoelnHZE.Visible = true;
|
||||
lblHeaderKoelnHZE.Visible = true;
|
||||
lblHeaderKoeln.Visible = false;
|
||||
lblTeamKoeln.Visible = false;
|
||||
}
|
||||
this.bindingSource1.DataSource = pRO;
|
||||
}
|
||||
}
|
||||
}
|
||||
702
ReportImp/AutismusKoelnBonn/RechnungFaktor.resx
Normal file
702
ReportImp/AutismusKoelnBonn/RechnungFaktor.resx
Normal file
File diff suppressed because one or more lines are too long
@@ -32,6 +32,7 @@ namespace MobiloAmbulant
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Spitzabrechnung));
|
||||
this.Detail = new DevExpress.XtraReports.UI.DetailBand();
|
||||
this.ReportHeader = new DevExpress.XtraReports.UI.ReportHeaderBand();
|
||||
this.xrLabel13 = new DevExpress.XtraReports.UI.XRLabel();
|
||||
this.xrPictureBox1 = new DevExpress.XtraReports.UI.XRPictureBox();
|
||||
this.xrRichText2 = new DevExpress.XtraReports.UI.XRRichText();
|
||||
this.xrLabel7 = new DevExpress.XtraReports.UI.XRLabel();
|
||||
@@ -59,6 +60,8 @@ namespace MobiloAmbulant
|
||||
this.xrTableCell13 = new DevExpress.XtraReports.UI.XRTableCell();
|
||||
this.xrTableRow4 = new DevExpress.XtraReports.UI.XRTableRow();
|
||||
this.xrTableCell11 = new DevExpress.XtraReports.UI.XRTableCell();
|
||||
this.xrTableRow7 = new DevExpress.XtraReports.UI.XRTableRow();
|
||||
this.xrTableCell3 = new DevExpress.XtraReports.UI.XRTableCell();
|
||||
this.xrTableRow3 = new DevExpress.XtraReports.UI.XRTableRow();
|
||||
this.xrTableCell8 = new DevExpress.XtraReports.UI.XRTableCell();
|
||||
this.xrTableRow1 = new DevExpress.XtraReports.UI.XRTableRow();
|
||||
@@ -120,9 +123,6 @@ namespace MobiloAmbulant
|
||||
this.xrTableRow36 = new DevExpress.XtraReports.UI.XRTableRow();
|
||||
this.xrTableCell57 = new DevExpress.XtraReports.UI.XRTableCell();
|
||||
this.xrTableCell58 = new DevExpress.XtraReports.UI.XRTableCell();
|
||||
this.xrLabel13 = new DevExpress.XtraReports.UI.XRLabel();
|
||||
this.xrTableRow7 = new DevExpress.XtraReports.UI.XRTableRow();
|
||||
this.xrTableCell3 = new DevExpress.XtraReports.UI.XRTableCell();
|
||||
((System.ComponentModel.ISupportInitialize)(this.xrRichText2)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.xrTable1)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.xrTable2)).BeginInit();
|
||||
@@ -151,6 +151,21 @@ namespace MobiloAmbulant
|
||||
this.ReportHeader.Name = "ReportHeader";
|
||||
this.ReportHeader.StylePriority.UseFont = false;
|
||||
//
|
||||
// xrLabel13
|
||||
//
|
||||
this.xrLabel13.Font = new System.Drawing.Font("Arial Black", 11F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.xrLabel13.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(78)))), ((int)(((byte)(120)))));
|
||||
this.xrLabel13.LocationFloat = new DevExpress.Utils.PointFloat(543.0211F, 77.75002F);
|
||||
this.xrLabel13.Multiline = true;
|
||||
this.xrLabel13.Name = "xrLabel13";
|
||||
this.xrLabel13.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
|
||||
this.xrLabel13.SizeF = new System.Drawing.SizeF(106.9799F, 45.79169F);
|
||||
this.xrLabel13.StylePriority.UseFont = false;
|
||||
this.xrLabel13.StylePriority.UseForeColor = false;
|
||||
this.xrLabel13.StylePriority.UseTextAlignment = false;
|
||||
this.xrLabel13.Text = "Mobilo";
|
||||
this.xrLabel13.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopCenter;
|
||||
//
|
||||
// xrPictureBox1
|
||||
//
|
||||
this.xrPictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("xrPictureBox1.Image")));
|
||||
@@ -165,7 +180,7 @@ namespace MobiloAmbulant
|
||||
this.xrRichText2.LocationFloat = new DevExpress.Utils.PointFloat(0F, 130.7917F);
|
||||
this.xrRichText2.Name = "xrRichText2";
|
||||
this.xrRichText2.SerializableRtfString = resources.GetString("xrRichText2.SerializableRtfString");
|
||||
this.xrRichText2.SizeF = new System.Drawing.SizeF(336.7917F, 16.75002F);
|
||||
this.xrRichText2.SizeF = new System.Drawing.SizeF(317F, 16.75002F);
|
||||
this.xrRichText2.StylePriority.UseFont = false;
|
||||
//
|
||||
// xrLabel7
|
||||
@@ -445,6 +460,22 @@ namespace MobiloAmbulant
|
||||
this.xrTableCell11.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopRight;
|
||||
this.xrTableCell11.Weight = 1D;
|
||||
//
|
||||
// xrTableRow7
|
||||
//
|
||||
this.xrTableRow7.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] {
|
||||
this.xrTableCell3});
|
||||
this.xrTableRow7.Name = "xrTableRow7";
|
||||
this.xrTableRow7.Weight = 0.13245033112582783D;
|
||||
//
|
||||
// xrTableCell3
|
||||
//
|
||||
this.xrTableCell3.Name = "xrTableCell3";
|
||||
this.xrTableCell3.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
|
||||
this.xrTableCell3.StylePriority.UsePadding = false;
|
||||
this.xrTableCell3.StylePriority.UseTextAlignment = false;
|
||||
this.xrTableCell3.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopRight;
|
||||
this.xrTableCell3.Weight = 1D;
|
||||
//
|
||||
// xrTableRow3
|
||||
//
|
||||
this.xrTableRow3.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] {
|
||||
@@ -1062,37 +1093,6 @@ namespace MobiloAmbulant
|
||||
this.xrTableCell58.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopRight;
|
||||
this.xrTableCell58.Weight = 0.21685899000901443D;
|
||||
//
|
||||
// xrLabel13
|
||||
//
|
||||
this.xrLabel13.Font = new System.Drawing.Font("Arial Black", 11F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.xrLabel13.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(78)))), ((int)(((byte)(120)))));
|
||||
this.xrLabel13.LocationFloat = new DevExpress.Utils.PointFloat(543.0211F, 77.75002F);
|
||||
this.xrLabel13.Multiline = true;
|
||||
this.xrLabel13.Name = "xrLabel13";
|
||||
this.xrLabel13.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
|
||||
this.xrLabel13.SizeF = new System.Drawing.SizeF(106.9799F, 45.79169F);
|
||||
this.xrLabel13.StylePriority.UseFont = false;
|
||||
this.xrLabel13.StylePriority.UseForeColor = false;
|
||||
this.xrLabel13.StylePriority.UseTextAlignment = false;
|
||||
this.xrLabel13.Text = "Mobilo";
|
||||
this.xrLabel13.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopCenter;
|
||||
//
|
||||
// xrTableRow7
|
||||
//
|
||||
this.xrTableRow7.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] {
|
||||
this.xrTableCell3});
|
||||
this.xrTableRow7.Name = "xrTableRow7";
|
||||
this.xrTableRow7.Weight = 0.13245033112582783D;
|
||||
//
|
||||
// xrTableCell3
|
||||
//
|
||||
this.xrTableCell3.Name = "xrTableCell3";
|
||||
this.xrTableCell3.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
|
||||
this.xrTableCell3.StylePriority.UsePadding = false;
|
||||
this.xrTableCell3.StylePriority.UseTextAlignment = false;
|
||||
this.xrTableCell3.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopRight;
|
||||
this.xrTableCell3.Weight = 1D;
|
||||
//
|
||||
// Spitzabrechnung
|
||||
//
|
||||
this.Bands.AddRange(new DevExpress.XtraReports.UI.Band[] {
|
||||
|
||||
@@ -228,7 +228,7 @@
|
||||
</value>
|
||||
</data>
|
||||
<data name="xrRichText2.SerializableRtfString" xml:space="preserve">
|
||||
<value>ewBcAHIAdABmADEAXABkAGUAZgBmADAAewBcAGYAbwBuAHQAdABiAGwAewBcAGYAMAAgAEMAYQBsAGkAYgByAGkAOwB9AHsAXABmADEAIABUAGkAbQBlAHMAIABOAGUAdwAgAFIAbwBtAGEAbgA7AH0AewBcAGYAMgAgAFYAZQByAGQAYQBuAGEAOwB9AH0AewBcAGMAbwBsAG8AcgB0AGIAbAAgADsAXAByAGUAZAAwAFwAZwByAGUAZQBuADAAXABiAGwAdQBlADAAIAA7AFwAcgBlAGQAMABcAGcAcgBlAGUAbgAwAFwAYgBsAHUAZQAyADUANQAgADsAfQB7AFwAKgBcAGQAZQBmAGMAaABwACAAXABmADEAXABmAHMAMgA0AH0AewBcAHMAdAB5AGwAZQBzAGgAZQBlAHQAIAB7AFwAcQBsAFwAZgAxAFwAZgBzADIANAAgAE4AbwByAG0AYQBsADsAfQB7AFwAKgBcAGMAcwAxAFwAZgAxAFwAZgBzADIANABcAGMAZgAxACAARABlAGYAYQB1AGwAdAAgAFAAYQByAGEAZwByAGEAcABoACAARgBvAG4AdAA7AH0AewBcACoAXABjAHMAMgBcAHMAYgBhAHMAZQBkAG8AbgAxAFwAZgAxAFwAZgBzADIANABcAGMAZgAxACAATABpAG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4AH0AewBcAHUAbABcAGYAMgBcAGYAcwAxADYAXABjAGYAMQAgACwAIAB9AHsAXABsAGEAbgBnADEAMAAzADEAXABsAGEAbgBnAGYAZQAxADAAMwAxAFwAdQBsAFwAZgAyAFwAZgBzADEANgBcAGMAZgAxACAANAAxADEAOAA5ACAATQBcAHUAMgA0ADYAXAAnAGYANgBuAGMAaABlAG4AZwBsAGEAZABiAGEAYwBoAH0AXABmADEAXABmAHMAMgA0AFwAYwBmADEAXABwAGEAcgB9AA==</value>
|
||||
</data>
|
||||
<data name="xrLabel6.Text" xml:space="preserve">
|
||||
<value>anbei sende ich Ihnen die unterschriebenen Nachweise über die im Rahmen des Betreuten Wohnens für [Salutation2] [CustomerName] erbrachten Leistungen zu. Nach unserer Berechnung ergeben sich für den Betreuungszeitraum [AccountingPeriod] hieraus:
|
||||
|
||||
@@ -45,42 +45,11 @@ namespace PerspektivenEV
|
||||
sb.Append(pRO.RecipientTown);
|
||||
}
|
||||
lblAdresse.Text = sb.ToString();
|
||||
//SetAnrede(pRO);
|
||||
|
||||
|
||||
if (sb.ToString().Contains("Frau") && sb.ToString().Contains("Heinemann"))
|
||||
pRO.RecipientSalutation = "Sehr geehrte Frau Heinemann,";
|
||||
|
||||
this.bindingSource1.DataSource = pRO;
|
||||
}
|
||||
//private void SetAnrede(InvoiceCustomerRO pRO)
|
||||
//{
|
||||
// String anrede = "Sehr geehrte Damen und Herren,";
|
||||
|
||||
// var p = GetKontaktPerson(pRO);
|
||||
|
||||
// if (p != null)
|
||||
// {
|
||||
// if (p.Sex.HasValue && p.Sex.Value == Sex.Male)
|
||||
// {
|
||||
// anrede = "Sehr geehrter Herr " + p.LastName + ",";
|
||||
// }
|
||||
// else if (p.Sex.HasValue && p.Sex.Value == Sex.Female)
|
||||
// {
|
||||
// anrede = "Sehr geehrte Frau " + p.LastName + ",";
|
||||
// }
|
||||
// }
|
||||
|
||||
// lblAnrede.Text = anrede;
|
||||
//}
|
||||
|
||||
//private Person GetKontaktPerson(InvoiceCustomerRO pRO)
|
||||
//{
|
||||
// if (pRO.RecipientSalutation .ServiceInvoicePeriods.Count > 0)
|
||||
// {
|
||||
// var c2s = pRO.ServiceInvoicePeriods[0].CostBearer2SupportConcept;
|
||||
// return c2s.CostBearerContactPerson;
|
||||
// }
|
||||
|
||||
// return null;
|
||||
//}
|
||||
}
|
||||
}
|
||||
@@ -62,7 +62,8 @@ namespace PerspektivenEV
|
||||
{
|
||||
foreach (var i in p.ServiceInvoiceItems)
|
||||
{
|
||||
if (!i.ServiceDescription.Contains("Anfahrt") && !i.ServiceDescription.Contains("Handgeld") && !i.ServiceDescription.Contains("gefahren"))
|
||||
if (!i.ServiceDescription.Contains("Anfahrt") && !i.ServiceDescription.Contains("Handgeld")
|
||||
&& !i.ServiceDescription.Contains("gefahren") && !i.ServiceDescription.Contains("Terminabsage"))
|
||||
{
|
||||
if (start.Month == end.Month && start.Year == end.Year)
|
||||
i.ServiceDescription = String.Format("{0:MMMM yyyy}", start);
|
||||
@@ -74,6 +75,11 @@ namespace PerspektivenEV
|
||||
if (start.Month == end.Month && start.Year == end.Year)
|
||||
i.ServiceDescription = "Anfahrt(en)";
|
||||
}
|
||||
else if (i.ServiceDescription.Contains("Terminabsage"))
|
||||
{
|
||||
if (start.Month == end.Month && start.Year == end.Year)
|
||||
i.ServiceDescription = "Terminabsage";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -61,7 +61,8 @@ namespace PerspektivenEV
|
||||
{
|
||||
foreach (var i in p.ServiceInvoiceItems)
|
||||
{
|
||||
if (!i.ServiceDescription.Contains("Anfahrt") && !i.ServiceDescription.Contains("Handgeld") && !i.ServiceDescription.Contains("gefahren"))
|
||||
if (!i.ServiceDescription.Contains("Anfahrt") && !i.ServiceDescription.Contains("Handgeld")
|
||||
&& !i.ServiceDescription.Contains("gefahren") && !i.ServiceDescription.Contains("Terminabsage"))
|
||||
{
|
||||
if (start.Month == end.Month && start.Year == end.Year)
|
||||
i.ServiceDescription = String.Format("{0:MMMM yyyy}", start);
|
||||
@@ -73,6 +74,11 @@ namespace PerspektivenEV
|
||||
if (start.Month == end.Month && start.Year == end.Year)
|
||||
i.ServiceDescription = "Anfahrt(en)";
|
||||
}
|
||||
else if (i.ServiceDescription.Contains("Terminabsage"))
|
||||
{
|
||||
if (start.Month == end.Month && start.Year == end.Year)
|
||||
i.ServiceDescription = "Terminabsage";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user