AutismusLeben: Fehlkontakte QB + Spitzabrechnung
This commit is contained in:
2430
ReportImp/AutismusLeben/Quittierungsbeleg.Designer.cs
generated
2430
ReportImp/AutismusLeben/Quittierungsbeleg.Designer.cs
generated
File diff suppressed because it is too large
Load Diff
@@ -35,14 +35,19 @@ namespace AutismusLeben
|
||||
|
||||
foreach (var sd in pRO.Services)
|
||||
{
|
||||
if (sd.IsBillable)
|
||||
if (sd.IsBillable || sd.ServiceDescription.ToLower().Contains("fehlkontakt"))
|
||||
{
|
||||
ServicesOverviewRO.CreateSignatureString(sd);
|
||||
sd.Notice5 = "E";
|
||||
if (sd.IsGroup)
|
||||
{
|
||||
//sd.Notice5 = String.Format("{0} Teilnehmer", sd.CustomerCount);
|
||||
sd.Notice5 = "GR";
|
||||
hatGruppen = true;
|
||||
}
|
||||
if (sd.ServiceDescription.ToLower().Contains("fehlkontakt"))
|
||||
{
|
||||
sd.Notice5 = "F";
|
||||
}
|
||||
servicesBillable.Add(sd);
|
||||
}
|
||||
}
|
||||
@@ -50,7 +55,9 @@ namespace AutismusLeben
|
||||
pRO.Services = servicesBillable;
|
||||
}
|
||||
// Fest 1.2 weil die es so in dem Beleg stehen haben
|
||||
lbl_billableXratefactor.Text = string.Format("{0:0.00}", Convert.ToDecimal(pRO.TotalFLMBillable) * 1.2m);
|
||||
lbl_billableXratefactor.Text = string.Format("{0:0.00}", Convert.ToDecimal(pRO.TotalFLMBillable) * 1.2m);
|
||||
|
||||
ErstelleAbwesenheitenTabelle(pRO);
|
||||
|
||||
bindingSource1.DataSource = pRO;
|
||||
}
|
||||
@@ -127,6 +134,46 @@ namespace AutismusLeben
|
||||
{
|
||||
return Image.FromStream(memoryStream);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private void ErstelleAbwesenheitenTabelle(ServicesOverviewRO pRo)
|
||||
{
|
||||
if (pRo.Abwesenheiten != null)
|
||||
{
|
||||
int newRows = 0;
|
||||
int index = 1;
|
||||
foreach (var at in pRo.Abwesenheiten)
|
||||
{
|
||||
DevExpress.XtraReports.UI.XRTableRow row = null;
|
||||
if (index < xrTableAbwesenheiten.Rows.Count)
|
||||
{
|
||||
row = xrTableAbwesenheiten.Rows[index];
|
||||
}
|
||||
else
|
||||
{
|
||||
row = xrTableAbwesenheiten.InsertRowBelow(xrTableAbwesenheiten.Rows[xrTableAbwesenheiten.Rows.Count - 1]);
|
||||
newRows++;
|
||||
}
|
||||
|
||||
row.Cells[0].Text = String.Format("{0:dd.MM.yyyy}", at.Start);
|
||||
int? days = null;
|
||||
|
||||
if (at.End.HasValue)
|
||||
{
|
||||
row.Cells[1].Text = String.Format("{0:dd.MM.yyyy}", at.End);
|
||||
days = (int)at.End.Value.Subtract(at.Start.Value).TotalDays + 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
row.Cells[1].Text = "unbekannt";
|
||||
}
|
||||
|
||||
row.Cells[2].Text = String.Format("{0:0}", days);
|
||||
|
||||
index++;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
2599
ReportImp/AutismusLeben/SettlementReport2.Designer.cs
generated
2599
ReportImp/AutismusLeben/SettlementReport2.Designer.cs
generated
File diff suppressed because it is too large
Load Diff
@@ -10,7 +10,9 @@ using BS.Shared.Core;
|
||||
using System.Collections.Generic;
|
||||
using BS.Shared.DataContracts;
|
||||
using System.Linq;
|
||||
|
||||
using BS.Shared.Extensions;
|
||||
using System.Text.RegularExpressions;
|
||||
|
||||
namespace AutismusLeben
|
||||
{
|
||||
public partial class Spitzabrechnung2 : DevExpress.XtraReports.UI.XtraReport, IBeWoReport<Settlement2RO>
|
||||
@@ -35,8 +37,23 @@ namespace AutismusLeben
|
||||
{
|
||||
rateFactor = (100 + ii.RateFactor.Value) / 100;
|
||||
}
|
||||
ii.DetailDescription = string.Format("Fachleistungsstunden x {0:0.00} ({1:dd.MM.yyyy} - {2:dd.MM.yyyy})", rateFactor, ii.PeriodStartDate, ii.PeriodEndDate);
|
||||
|
||||
if (pRO.FehlkontakteString != null && ii.RateFactor == 0)
|
||||
{
|
||||
Zwischensumme.Visible = true;
|
||||
if (!ii.ItemDescription.IsNullOrEmpty())
|
||||
{
|
||||
ii.DetailDescription = Regex.Replace(ii.DetailDescription, ii.ItemDescription, "Fehlkontakte");
|
||||
}
|
||||
ii.ItemDescription = "Fehlkontakte";
|
||||
}
|
||||
else
|
||||
{
|
||||
ii.DetailDescription = string.Format("Fachleistungsstunden x {0:0.00} ({1:dd.MM.yyyy} - {2:dd.MM.yyyy})", rateFactor, ii.PeriodStartDate, ii.PeriodEndDate);
|
||||
ii.ItemDescription = "Fachleistungsstunden";
|
||||
}
|
||||
}
|
||||
|
||||
pRO.RateFactor = (double)rateFactor;
|
||||
|
||||
var os = new OperationsServiceImp();
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user