BewegtSystemischeBeratung QBeleg

This commit is contained in:
Alexandra
2022-09-28 15:49:22 +02:00
parent 537bfbe4f9
commit 2d705749af
9 changed files with 74 additions and 38 deletions

View File

@@ -55,24 +55,24 @@
<Compile Include="Invoicing\CustomInvoiceFactory.cs" />
<Compile Include="Invoicing\CustomInvoiceNumberGenerator.cs" />
<Compile Include="Invoicing\DefaultInvoiceCreation.cs" />
<Compile Include="LeistungsnachweisMitUhrzeitMitUnterschrift.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="LeistungsnachweisMitUhrzeitMitUnterschrift.Designer.cs">
<DependentUpon>LeistungsnachweisMitUhrzeitMitUnterschrift.cs</DependentUpon>
</Compile>
<Compile Include="LeistungsnachweisMitUhrzeit.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="LeistungsnachweisMitUhrzeit.Designer.cs">
<DependentUpon>LeistungsnachweisMitUhrzeit.cs</DependentUpon>
</Compile>
<Compile Include="Leistungsnachweis.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="Leistungsnachweis.Designer.cs">
<DependentUpon>Leistungsnachweis.cs</DependentUpon>
</Compile>
<Compile Include="LeistungsnachweisBedburg.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="LeistungsnachweisBedburg.Designer.cs">
<DependentUpon>LeistungsnachweisBedburg.cs</DependentUpon>
</Compile>
<Compile Include="LeistungsnachweisBergheim.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="LeistungsnachweisBergheim.Designer.cs">
<DependentUpon>LeistungsnachweisBergheim.cs</DependentUpon>
</Compile>
<Compile Include="Mitarbeiterarbeitszeitkonto.cs">
<SubType>Component</SubType>
</Compile>
@@ -144,15 +144,15 @@
</ProjectReference>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="LeistungsnachweisMitUhrzeitMitUnterschrift.resx">
<DependentUpon>LeistungsnachweisMitUhrzeitMitUnterschrift.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="LeistungsnachweisMitUhrzeit.resx">
<DependentUpon>LeistungsnachweisMitUhrzeit.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Leistungsnachweis.resx">
<DependentUpon>Leistungsnachweis.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="LeistungsnachweisBedburg.resx">
<DependentUpon>LeistungsnachweisBedburg.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="LeistungsnachweisBergheim.resx">
<DependentUpon>LeistungsnachweisBergheim.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Mitarbeiterarbeitszeitkonto.resx">
<DependentUpon>Mitarbeiterarbeitszeitkonto.cs</DependentUpon>
</EmbeddedResource>

View File

@@ -55,16 +55,12 @@ namespace BewegtSystemischeBeratung
{
if (ro.Costbearer.ToLower().Contains("bedburg"))
{
report = new LeistungsnachweisMitUhrzeitMitUnterschrift();
}
//else if (ro.Costbearer.ToLower().Contains("bergheim"))
//{
// report = new LeistungsnachweisMitUhrzeit();
//}
report = new LeistungsnachweisBedburg();
}
if (ro.Costbearer.ToLower().Contains("bergheim"))
{
report = new LeistungsnachweisMitUhrzeit();
report = new LeistungsnachweisBergheim();
}
}

View File

@@ -1,7 +1,7 @@
using BeWo.Report.ReportObjects;
namespace BewegtSystemischeBeratung
{
partial class LeistungsnachweisMitUhrzeitMitUnterschrift
partial class LeistungsnachweisBedburg
{
/// <summary>
/// Required designer variable.

View File

@@ -20,10 +20,10 @@ using Image = System.Drawing.Image;
namespace BewegtSystemischeBeratung
{
public partial class LeistungsnachweisMitUhrzeitMitUnterschrift : DevExpress.XtraReports.UI.XtraReport, IBeWoReport<ServicesOverviewRO>
public partial class LeistungsnachweisBedburg : DevExpress.XtraReports.UI.XtraReport, IBeWoReport<ServicesOverviewRO>
{
public LeistungsnachweisMitUhrzeitMitUnterschrift()
public LeistungsnachweisBedburg()
{
InitializeComponent();
}

View File

@@ -1,7 +1,7 @@
using BeWo.Report.ReportObjects;
namespace BewegtSystemischeBeratung
{
partial class LeistungsnachweisMitUhrzeit
partial class LeistungsnachweisBergheim
{
/// <summary>
/// Required designer variable.
@@ -38,6 +38,7 @@ namespace BewegtSystemischeBeratung
this.xrTableCell6 = new DevExpress.XtraReports.UI.XRTableCell();
this.xrTableCell8 = new DevExpress.XtraReports.UI.XRTableCell();
this.xrTableCell4 = new DevExpress.XtraReports.UI.XRTableCell();
this.xrTableCell2 = new DevExpress.XtraReports.UI.XRTableCell();
this.DetailReport = new DevExpress.XtraReports.UI.DetailReportBand();
this.Detail1 = new DevExpress.XtraReports.UI.DetailBand();
this.xrTable3 = new DevExpress.XtraReports.UI.XRTable();
@@ -47,6 +48,8 @@ namespace BewegtSystemischeBeratung
this.cellEinzel = new DevExpress.XtraReports.UI.XRTableCell();
this.xrTableCell1 = new DevExpress.XtraReports.UI.XRTableCell();
this.cellTelefon = new DevExpress.XtraReports.UI.XRTableCell();
this.xrTableCell5 = new DevExpress.XtraReports.UI.XRTableCell();
this.picSignature = new DevExpress.XtraReports.UI.XRPictureBox();
this.GroupHeader1 = new DevExpress.XtraReports.UI.GroupHeaderBand();
this.bindingSource1 = new System.Windows.Forms.BindingSource(this.components);
this.formattingRuleStartDate = new DevExpress.XtraReports.UI.FormattingRule();
@@ -123,7 +126,8 @@ namespace BewegtSystemischeBeratung
this.xrTableCell10,
this.xrTableCell6,
this.xrTableCell8,
this.xrTableCell4});
this.xrTableCell4,
this.xrTableCell2});
this.xrTableRow2.Name = "xrTableRow2";
this.xrTableRow2.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 100F);
this.xrTableRow2.StylePriority.UseTextAlignment = false;
@@ -169,7 +173,15 @@ namespace BewegtSystemischeBeratung
this.xrTableCell4.StylePriority.UsePadding = false;
this.xrTableCell4.StylePriority.UseTextAlignment = false;
this.xrTableCell4.Text = "Leistung";
this.xrTableCell4.Weight = 1.0242085572534365D;
this.xrTableCell4.Weight = 0.7315775414494754D;
//
// xrTableCell2
//
this.xrTableCell2.Name = "xrTableCell2";
this.xrTableCell2.Padding = new DevExpress.XtraPrinting.PaddingInfo(5, 2, 0, 0, 100F);
this.xrTableCell2.StylePriority.UsePadding = false;
this.xrTableCell2.Text = "Unterschrift Klient";
this.xrTableCell2.Weight = 0.29263101774353367D;
//
// DetailReport
//
@@ -215,7 +227,8 @@ namespace BewegtSystemischeBeratung
this.xrTableCell11,
this.cellEinzel,
this.xrTableCell1,
this.cellTelefon});
this.cellTelefon,
this.xrTableCell5});
this.xrTableRow6.Name = "xrTableRow6";
this.xrTableRow6.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 100F);
this.xrTableRow6.StylePriority.UseTextAlignment = false;
@@ -276,7 +289,30 @@ namespace BewegtSystemischeBeratung
this.cellTelefon.StylePriority.UsePadding = false;
this.cellTelefon.StylePriority.UseTextAlignment = false;
this.cellTelefon.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft;
this.cellTelefon.Weight = 0.53030293062670208D;
this.cellTelefon.Weight = 0.37878773041241737D;
//
// xrTableCell5
//
this.xrTableCell5.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] {
this.picSignature});
this.xrTableCell5.Name = "xrTableCell5";
this.xrTableCell5.Padding = new DevExpress.XtraPrinting.PaddingInfo(3, 3, 0, 0, 100F);
this.xrTableCell5.StylePriority.UsePadding = false;
this.xrTableCell5.StylePriority.UseTextAlignment = false;
this.xrTableCell5.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft;
this.xrTableCell5.Weight = 0.15151519981700923D;
//
// 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(120.0001F, 25F);
this.picSignature.Sizing = DevExpress.XtraPrinting.ImageSizeMode.ZoomImage;
this.picSignature.StylePriority.UseBorders = false;
this.picSignature.BeforePrint += new System.Drawing.Printing.PrintEventHandler(this.picSignature_BeforePrint);
//
// GroupHeader1
//
@@ -682,7 +718,7 @@ namespace BewegtSystemischeBeratung
this.fieldGruppe.FieldType = DevExpress.XtraReports.UI.FieldType.String;
this.fieldGruppe.Name = "fieldGruppe";
//
// LeistungsnachweisMitUhrzeit
// LeistungsnachweisBergheim
//
this.Bands.AddRange(new DevExpress.XtraReports.UI.Band[] {
this.Detail,
@@ -771,5 +807,8 @@ namespace BewegtSystemischeBeratung
private DevExpress.XtraReports.UI.XRTableCell xrTableCell10;
private DevExpress.XtraReports.UI.XRTableCell xrTableCell11;
private DevExpress.XtraReports.UI.XRLabel lblBewilligtEinheit;
private DevExpress.XtraReports.UI.XRTableCell xrTableCell2;
private DevExpress.XtraReports.UI.XRTableCell xrTableCell5;
private DevExpress.XtraReports.UI.XRPictureBox picSignature;
}
}

View File

@@ -19,10 +19,10 @@ using Image = System.Drawing.Image;
namespace BewegtSystemischeBeratung
{
public partial class LeistungsnachweisMitUhrzeit : DevExpress.XtraReports.UI.XtraReport, IBeWoReport<ServicesOverviewRO>
public partial class LeistungsnachweisBergheim : DevExpress.XtraReports.UI.XtraReport, IBeWoReport<ServicesOverviewRO>
{
public LeistungsnachweisMitUhrzeit()
public LeistungsnachweisBergheim()
{
InitializeComponent();
}
@@ -303,6 +303,7 @@ namespace BewegtSystemischeBeratung
}
}
private void picSignature_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
{
XRPictureBox xrBox = sender as XRPictureBox;

View File

@@ -62,7 +62,7 @@ namespace BeWo.Service.Plugins
return newInvoice;
}
public ServiceInvoice ErstelleStornoRechnung(ServiceInvoiceDC sidc)
public virtual ServiceInvoice ErstelleStornoRechnung(ServiceInvoiceDC sidc)
{
ServiceInvoice newInvoice = new ServiceInvoice();
@@ -74,7 +74,7 @@ namespace BeWo.Service.Plugins
return newInvoice;
}
private void SetzeStornoInfos(ServiceInvoice newInvoice)
public virtual void SetzeStornoInfos(ServiceInvoice newInvoice)
{
foreach (var sip in newInvoice.ServiceInvoicePeriodList)
{