ChristopherusHausFamilienhilfe - Neukunde
This commit is contained in:
@@ -1,276 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using BeWo.Service.DCEntityMapper;
|
||||
using BeWo.Service.Plugins;
|
||||
using BS.Shared;
|
||||
using BS.Shared.Core;
|
||||
using BS.Shared.DataContracts;
|
||||
using BS.Shared.Extensions;
|
||||
using BS.Shared.Services;
|
||||
|
||||
namespace ChristopherusHausFamilienhilfe.Abrechnung
|
||||
{
|
||||
public static class AbrechnungsInfo
|
||||
{
|
||||
|
||||
public static decimal GetPreisForFreizeitangebot(Pflegegrad? pflegegrad, DateTime d)
|
||||
{
|
||||
if (d >= new DateTime(2020, 1, 1))
|
||||
{
|
||||
if (pflegegrad.HasValue)
|
||||
{
|
||||
switch (pflegegrad.Value)
|
||||
{
|
||||
case Pflegegrad.KeinGrad:
|
||||
return 20;
|
||||
case Pflegegrad.PflegegradBeantragt:
|
||||
return 20;
|
||||
default:
|
||||
return 45;
|
||||
}
|
||||
}
|
||||
|
||||
return 20;
|
||||
}
|
||||
|
||||
if (d >= new DateTime(2017, 1, 1))
|
||||
{
|
||||
if (pflegegrad.HasValue)
|
||||
{
|
||||
switch (pflegegrad.Value)
|
||||
{
|
||||
case Pflegegrad.Grad1:
|
||||
return 26;
|
||||
case Pflegegrad.Grad2:
|
||||
return 26;
|
||||
case Pflegegrad.KeinGrad:
|
||||
return 18;
|
||||
case Pflegegrad.PflegegradBeantragt:
|
||||
return 18;
|
||||
default:
|
||||
return 38;
|
||||
}
|
||||
}
|
||||
|
||||
return 18;
|
||||
}
|
||||
if (pflegegrad.HasValue)
|
||||
{
|
||||
switch (pflegegrad.Value)
|
||||
{
|
||||
case Pflegegrad.Grad1:
|
||||
return 22;
|
||||
case Pflegegrad.Grad2:
|
||||
return 29;
|
||||
case Pflegegrad.Grad3:
|
||||
return 34;
|
||||
case Pflegegrad.KeinGrad:
|
||||
return 18;
|
||||
case Pflegegrad.PflegegradBeantragt:
|
||||
return 18;
|
||||
default:
|
||||
return 42;
|
||||
}
|
||||
}
|
||||
|
||||
return 18;
|
||||
}
|
||||
|
||||
public static decimal GetPreisForAusflugFreizeittreff(Pflegegrad? pflegegrad, DateTime d)
|
||||
{
|
||||
if (d >= new DateTime(2020, 1, 1))
|
||||
{
|
||||
if (pflegegrad.HasValue)
|
||||
{
|
||||
switch (pflegegrad.Value)
|
||||
{
|
||||
case Pflegegrad.KeinGrad:
|
||||
return 40;
|
||||
case Pflegegrad.PflegegradBeantragt:
|
||||
return 40;
|
||||
default:
|
||||
return 95;
|
||||
}
|
||||
}
|
||||
|
||||
return 40;
|
||||
}
|
||||
|
||||
if (d >= new DateTime(2017, 1, 1))
|
||||
{
|
||||
if (pflegegrad.HasValue)
|
||||
{
|
||||
switch (pflegegrad.Value)
|
||||
{
|
||||
case Pflegegrad.Grad1:
|
||||
return 50;
|
||||
case Pflegegrad.Grad2:
|
||||
return 50;
|
||||
case Pflegegrad.KeinGrad:
|
||||
return 35;
|
||||
case Pflegegrad.PflegegradBeantragt:
|
||||
return 35;
|
||||
default:
|
||||
return 75;
|
||||
}
|
||||
}
|
||||
|
||||
return 35;
|
||||
}
|
||||
if (pflegegrad.HasValue)
|
||||
{
|
||||
switch (pflegegrad.Value)
|
||||
{
|
||||
case Pflegegrad.Grad1:
|
||||
return 43;
|
||||
case Pflegegrad.Grad2:
|
||||
return 57;
|
||||
case Pflegegrad.Grad3:
|
||||
return 67;
|
||||
case Pflegegrad.KeinGrad:
|
||||
return 35;
|
||||
case Pflegegrad.PflegegradBeantragt:
|
||||
return 35;
|
||||
default:
|
||||
return 83;
|
||||
}
|
||||
}
|
||||
|
||||
return 35;
|
||||
}
|
||||
|
||||
public static decimal GetPreisForReisen(Pflegegrad? pflegegrad, DateTime d)
|
||||
{
|
||||
if (d >= new DateTime(2020, 1, 1))
|
||||
{
|
||||
if (pflegegrad.HasValue)
|
||||
{
|
||||
switch (pflegegrad.Value)
|
||||
{
|
||||
case Pflegegrad.KeinGrad:
|
||||
return 50;
|
||||
case Pflegegrad.PflegegradBeantragt:
|
||||
return 50;
|
||||
default:
|
||||
return 120;
|
||||
}
|
||||
}
|
||||
|
||||
return 50;
|
||||
}
|
||||
if (d >= new DateTime(2017, 1, 1))
|
||||
{
|
||||
if (pflegegrad.HasValue)
|
||||
{
|
||||
switch (pflegegrad.Value)
|
||||
{
|
||||
case Pflegegrad.Grad1:
|
||||
return 67;
|
||||
case Pflegegrad.Grad2:
|
||||
return 67;
|
||||
case Pflegegrad.KeinGrad:
|
||||
return 47;
|
||||
case Pflegegrad.PflegegradBeantragt:
|
||||
return 47;
|
||||
default:
|
||||
return 102;
|
||||
}
|
||||
}
|
||||
|
||||
return 47;
|
||||
}
|
||||
if (pflegegrad.HasValue)
|
||||
{
|
||||
switch (pflegegrad.Value)
|
||||
{
|
||||
case Pflegegrad.Grad1:
|
||||
return 57;
|
||||
case Pflegegrad.Grad2:
|
||||
return 77;
|
||||
case Pflegegrad.Grad3:
|
||||
return 92;
|
||||
case Pflegegrad.KeinGrad:
|
||||
return 47;
|
||||
case Pflegegrad.PflegegradBeantragt:
|
||||
return 47;
|
||||
default:
|
||||
return 112;
|
||||
}
|
||||
}
|
||||
|
||||
return 47;
|
||||
}
|
||||
|
||||
|
||||
public static decimal GetPreisForEinzelbetreuungEhrenamtlich(DateTime dt)
|
||||
{
|
||||
if (dt >= new DateTime(2017, 1, 1))
|
||||
{
|
||||
return 18;
|
||||
}
|
||||
return 17.2m;
|
||||
}
|
||||
|
||||
public static decimal GetPreisForEinzelbetreuungHauptamtlich(DateTime dt)
|
||||
{
|
||||
//if (dt >= new DateTime(2017, 1, 1))
|
||||
//{
|
||||
// return 26;
|
||||
//}
|
||||
return 26;
|
||||
}
|
||||
|
||||
public static decimal GetPreisForKurzurlaub(Pflegegrad? pflegegrad, Dictionary<string, bool> key2Date, DateTime startDate)
|
||||
{
|
||||
var preis = 112m;
|
||||
|
||||
if (startDate >= new DateTime(2019, 1, 1))
|
||||
{
|
||||
preis = 150m;
|
||||
}
|
||||
else if (startDate >= new DateTime(2018, 1, 1))
|
||||
{
|
||||
preis = 124m;
|
||||
}
|
||||
bool hatVorgaenger = false;
|
||||
bool hatNachfolger = false;
|
||||
|
||||
var einTagVorher = startDate.AddDays(-1);
|
||||
var einTagSpaeter = startDate.AddDays(1);
|
||||
if (key2Date == null)
|
||||
{
|
||||
return preis;
|
||||
}
|
||||
if (key2Date.ContainsKey(String.Format("{0:dd.MM.yyyy}", einTagVorher)))
|
||||
{
|
||||
hatVorgaenger = true;
|
||||
}
|
||||
if (key2Date.ContainsKey(String.Format("{0:dd.MM.yyyy}", einTagSpaeter)))
|
||||
{
|
||||
hatNachfolger = true;
|
||||
}
|
||||
|
||||
if (!hatVorgaenger && !hatNachfolger)
|
||||
{
|
||||
return preis;
|
||||
}
|
||||
if (!hatVorgaenger && hatNachfolger)
|
||||
{
|
||||
return preis / 2;
|
||||
}
|
||||
if (hatVorgaenger && !hatNachfolger)
|
||||
{
|
||||
return preis / 2;
|
||||
}
|
||||
if (hatVorgaenger && hatNachfolger)
|
||||
{
|
||||
return preis;
|
||||
}
|
||||
return preis;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -60,22 +60,6 @@ namespace ChristopherusHausFamilienhilfe
|
||||
this.bindingSource1.DataSource = ro;
|
||||
}
|
||||
|
||||
|
||||
//private string CreateGesetzlVertreter(Customer c)
|
||||
//{
|
||||
// StringBuilder sb = new StringBuilder();
|
||||
|
||||
// sb.Append(VarFieldHelper.GetVarFieldForOid(2, c));
|
||||
// if (sb.Length > 0)
|
||||
// sb.Append(" ");
|
||||
// sb.Append(VarFieldHelper.GetVarFieldForOid(3, c));
|
||||
// if (sb.Length > 0)
|
||||
// sb.Append(" ");
|
||||
// sb.Append(VarFieldHelper.GetVarFieldForOid(4, c));
|
||||
|
||||
// return sb.ToString();
|
||||
//}
|
||||
|
||||
private Customer GetCustomer(ServicesOverviewRO ro)
|
||||
{
|
||||
if (ro.CostBearer2SupportConceptList != null && ro.CostBearer2SupportConceptList.Count > 0)
|
||||
@@ -111,11 +95,10 @@ namespace ChristopherusHausFamilienhilfe
|
||||
{
|
||||
bool cont = true;
|
||||
if (cont)
|
||||
{
|
||||
SetTableText(table, start, sd.ServiceCategory, sd.ServiceDescription);
|
||||
}
|
||||
|
||||
table.Rows[row].Cells[11].Text = sd.Notice2; //die Beteiligten können aus der Familie oder Fremde sein - Freitext
|
||||
table.Rows[row].Cells[12].Text = sd.EmployeeFullname; // wie zwei Beschäftigte?
|
||||
table.Rows[row].Cells[12].Text = sd.EmployeeFullname;
|
||||
table.Rows[row].Cells[13].Text = String.Format("{0:hh:mm}", sd.StartDateMinutes);
|
||||
table.Rows[row].Cells[14].Text = String.Format("{0:hh:mm}", sd.EndDateMinutes);
|
||||
table.Rows[row].Cells[15].Text = String.Format("{0:0.00}", (sd.Minutes / 60));
|
||||
@@ -162,21 +145,5 @@ namespace ChristopherusHausFamilienhilfe
|
||||
|
||||
return weekofyear;
|
||||
}
|
||||
|
||||
//private decimal AddToGesamtSumme(decimal preis, string name, int column, int row)
|
||||
//{
|
||||
// String key = String.Format("{0}_{1}_{2}", name, column, row);
|
||||
// decimal decimalValue = 0;
|
||||
|
||||
// if (key2Value.ContainsKey(key))
|
||||
// {
|
||||
// decimalValue = key2Value[key];
|
||||
// }
|
||||
// decimalValue += preis;
|
||||
// key2Value[key] = decimalValue;
|
||||
|
||||
// return decimalValue;
|
||||
|
||||
//}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,74 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using BeWo.Data.Access;
|
||||
using BeWo.Data.Entities;
|
||||
using BeWo.Service.DCEntityMapper;
|
||||
using BeWo.Service.Invoicing;
|
||||
using BS.Shared;
|
||||
using BS.Shared.Core;
|
||||
using BS.Shared.DataContracts;
|
||||
using BS.Shared.Extensions;
|
||||
using BS.Shared.Services;
|
||||
|
||||
namespace ChristopherusHausFamilienhilfe.Invoicing
|
||||
{
|
||||
|
||||
public class CustomInvoiceCreation : InvoiceCreation
|
||||
{
|
||||
// public override void SetInvoiceId(ServiceInvoice invoice)
|
||||
//{
|
||||
// invoice.InvoiceBase.InvoiceId = "Assistenz";
|
||||
// invoice.InvoiceBase.InvoiceTypeText = "Assistenzleistung";
|
||||
//}
|
||||
|
||||
public override void SetAmountAdvancePayments(ServiceInvoice invoice)
|
||||
{
|
||||
//do nothing
|
||||
}
|
||||
|
||||
public override void SetAmountEquityContribution(ServiceInvoice invoice)
|
||||
{
|
||||
//do nothing
|
||||
}
|
||||
|
||||
public override InvoiceItem CreateInvoiceItem(ServiceRecordDC iServiceRecord, SupportConceptApprovalPeriod scap, Calculations calc)
|
||||
{
|
||||
// hier entsteht eine Liste von Rechnungszeilen Kriterien raussuchen ggf. überschreiben
|
||||
//if (!iServiceRecord.ServiceDescription.CategoryName.Contains("Assistenz"))
|
||||
// return null;
|
||||
|
||||
var ii = base.CreateInvoiceItem(iServiceRecord, scap, calc);
|
||||
//DateTime start = ii.ItemPeriodStart.Value;
|
||||
//decimal preisAssistenz = 0;
|
||||
|
||||
//var cat = DAOFactory.SearchDAO.FindServiceCategoryByName("Assistenzleistungen");
|
||||
//if (cat != null)
|
||||
//{
|
||||
// var crps = MapperFactory.CostRatePeriodDC_CostRatePeriod.MapToNewDCs(cat.CostRatePeriods);
|
||||
// var cp = crps.GetCostRatePeriodForDate(CostRatePeriodType.AmountOfMoney, start);
|
||||
// if (cp != null && cp.CostRateValue.HasValue)
|
||||
// preisAssistenz = (decimal)cp.CostRateValue;
|
||||
// ii.AmountPerUnit = preisAssistenz;
|
||||
// ii.RateFactor = null;
|
||||
// ii.AmountTotal = preisAssistenz * ii.UnitCount;
|
||||
// ii.GrossAmountTotal = preisAssistenz * ii.UnitCount;
|
||||
//}
|
||||
return ii;
|
||||
}
|
||||
|
||||
public override IList<InvoiceItem> CreateSummaryInvoiceItems(IList<InvoiceItem> itemList, DateTimeSpan invoicePeriod, SupportConceptApprovalPeriod scap,
|
||||
Calculations calc, bool summaryPerMonth, bool addRateFactorToUnitCount)
|
||||
{
|
||||
var list =
|
||||
base.CreateSummaryInvoiceItems(itemList, invoicePeriod, scap, calc, false, true);
|
||||
// die Rechnungspositinen werden erstmal automatisch addiert, wenn Stundensatz gleich ist ggf. anderes Kriterium bzw Text anpassen
|
||||
foreach (var item in list)
|
||||
{
|
||||
//item.des
|
||||
}
|
||||
return list;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,37 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using BeWo.Service.Invoicing;
|
||||
using BS.Shared.DataContracts;
|
||||
using BS.Shared.DataContracts.Compact;
|
||||
|
||||
namespace ChristopherusHausFamilienhilfe.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)
|
||||
{
|
||||
var sd = sr.ServiceDescription.Category;
|
||||
var ic = GetInvoiceCreatorForCategory(sd);
|
||||
if (ic != null)
|
||||
return ic;
|
||||
}
|
||||
}
|
||||
return base.CreateInvoiceCreator(specificId, tenant, supportConcepts2ServiceRecords);
|
||||
}
|
||||
|
||||
private InvoiceCreation GetInvoiceCreatorForCategory(ServiceCategoryDC sd)
|
||||
{
|
||||
if (sd != null && !String.IsNullOrEmpty(sd.Name))
|
||||
{
|
||||
//String cat = sd.Name.ToLower().Trim();
|
||||
//if (cat.IndexOf("assistenz") >= 0)
|
||||
return new CustomInvoiceCreation();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -253,14 +253,14 @@ namespace ChristopherusHausFamilienhilfe
|
||||
this.xrLabel5,
|
||||
this.xrLabel8});
|
||||
this.Page1.Font = new System.Drawing.Font("Verdana", 10F);
|
||||
this.Page1.HeightF = 572.8333F;
|
||||
this.Page1.HeightF = 545.75F;
|
||||
this.Page1.Name = "Page1";
|
||||
this.Page1.StylePriority.UseBorders = false;
|
||||
this.Page1.StylePriority.UseFont = false;
|
||||
//
|
||||
// xrTable8
|
||||
//
|
||||
this.xrTable8.LocationFloat = new DevExpress.Utils.PointFloat(0F, 447.6042F);
|
||||
this.xrTable8.LocationFloat = new DevExpress.Utils.PointFloat(9.536743E-05F, 420.5208F);
|
||||
this.xrTable8.Name = "xrTable8";
|
||||
this.xrTable8.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] {
|
||||
this.xrTableRow15,
|
||||
@@ -403,7 +403,7 @@ namespace ChristopherusHausFamilienhilfe
|
||||
//
|
||||
// xrTable7
|
||||
//
|
||||
this.xrTable7.LocationFloat = new DevExpress.Utils.PointFloat(0F, 374.0626F);
|
||||
this.xrTable7.LocationFloat = new DevExpress.Utils.PointFloat(9.536743E-05F, 346.9793F);
|
||||
this.xrTable7.Name = "xrTable7";
|
||||
this.xrTable7.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] {
|
||||
this.xrTableRow10,
|
||||
@@ -632,7 +632,7 @@ namespace ChristopherusHausFamilienhilfe
|
||||
//
|
||||
// xrTable3
|
||||
//
|
||||
this.xrTable3.LocationFloat = new DevExpress.Utils.PointFloat(0F, 500.4167F);
|
||||
this.xrTable3.LocationFloat = new DevExpress.Utils.PointFloat(9.536743E-05F, 473.3334F);
|
||||
this.xrTable3.Name = "xrTable3";
|
||||
this.xrTable3.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] {
|
||||
this.xrTableRow6,
|
||||
@@ -779,7 +779,7 @@ namespace ChristopherusHausFamilienhilfe
|
||||
this.xrTable1.Borders = ((DevExpress.XtraPrinting.BorderSide)((((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top)
|
||||
| DevExpress.XtraPrinting.BorderSide.Right)
|
||||
| DevExpress.XtraPrinting.BorderSide.Bottom)));
|
||||
this.xrTable1.LocationFloat = new DevExpress.Utils.PointFloat(0F, 287.4999F);
|
||||
this.xrTable1.LocationFloat = new DevExpress.Utils.PointFloat(9.536743E-05F, 260.4165F);
|
||||
this.xrTable1.Name = "xrTable1";
|
||||
this.xrTable1.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] {
|
||||
this.xrTableRow1,
|
||||
@@ -929,7 +929,7 @@ namespace ChristopherusHausFamilienhilfe
|
||||
this.xrLabel9.Borders = DevExpress.XtraPrinting.BorderSide.None;
|
||||
this.xrLabel9.CanShrink = true;
|
||||
this.xrLabel9.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.xrLabel9.LocationFloat = new DevExpress.Utils.PointFloat(0.0003178914F, 254.9998F);
|
||||
this.xrLabel9.LocationFloat = new DevExpress.Utils.PointFloat(0.0004132589F, 227.9165F);
|
||||
this.xrLabel9.Name = "xrLabel9";
|
||||
this.xrLabel9.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
|
||||
this.xrLabel9.SizeF = new System.Drawing.SizeF(188.5415F, 20.00002F);
|
||||
@@ -947,7 +947,7 @@ namespace ChristopherusHausFamilienhilfe
|
||||
this.xrLabel13.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
|
||||
new DevExpress.XtraReports.UI.XRBinding("Text", null, "CustomerReferenceNumber", "{0}")});
|
||||
this.xrLabel13.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.xrLabel13.LocationFloat = new DevExpress.Utils.PointFloat(188.5418F, 255F);
|
||||
this.xrLabel13.LocationFloat = new DevExpress.Utils.PointFloat(188.5419F, 227.9167F);
|
||||
this.xrLabel13.Name = "xrLabel13";
|
||||
this.xrLabel13.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
|
||||
this.xrLabel13.SizeF = new System.Drawing.SizeF(250.3769F, 20.00002F);
|
||||
@@ -962,7 +962,7 @@ namespace ChristopherusHausFamilienhilfe
|
||||
this.xrLabel4.Borders = DevExpress.XtraPrinting.BorderSide.None;
|
||||
this.xrLabel4.CanShrink = true;
|
||||
this.xrLabel4.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.xrLabel4.LocationFloat = new DevExpress.Utils.PointFloat(188.5416F, 235F);
|
||||
this.xrLabel4.LocationFloat = new DevExpress.Utils.PointFloat(188.5417F, 207.9166F);
|
||||
this.xrLabel4.Name = "xrLabel4";
|
||||
this.xrLabel4.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
|
||||
this.xrLabel4.SizeF = new System.Drawing.SizeF(250.3768F, 19.99998F);
|
||||
@@ -978,7 +978,7 @@ namespace ChristopherusHausFamilienhilfe
|
||||
this.xrLabel21.Borders = DevExpress.XtraPrinting.BorderSide.None;
|
||||
this.xrLabel21.CanShrink = true;
|
||||
this.xrLabel21.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.xrLabel21.LocationFloat = new DevExpress.Utils.PointFloat(0F, 234.9998F);
|
||||
this.xrLabel21.LocationFloat = new DevExpress.Utils.PointFloat(9.536743E-05F, 207.9165F);
|
||||
this.xrLabel21.Name = "xrLabel21";
|
||||
this.xrLabel21.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
|
||||
this.xrLabel21.SizeF = new System.Drawing.SizeF(188.5415F, 20.00002F);
|
||||
@@ -994,7 +994,7 @@ namespace ChristopherusHausFamilienhilfe
|
||||
this.xrLabel20.Borders = DevExpress.XtraPrinting.BorderSide.None;
|
||||
this.xrLabel20.CanShrink = true;
|
||||
this.xrLabel20.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.xrLabel20.LocationFloat = new DevExpress.Utils.PointFloat(0F, 214.9998F);
|
||||
this.xrLabel20.LocationFloat = new DevExpress.Utils.PointFloat(9.536743E-05F, 187.9164F);
|
||||
this.xrLabel20.Name = "xrLabel20";
|
||||
this.xrLabel20.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
|
||||
this.xrLabel20.SizeF = new System.Drawing.SizeF(188.5415F, 20.00002F);
|
||||
@@ -1008,7 +1008,7 @@ namespace ChristopherusHausFamilienhilfe
|
||||
//
|
||||
this.xrLabel12.Borders = DevExpress.XtraPrinting.BorderSide.None;
|
||||
this.xrLabel12.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.xrLabel12.LocationFloat = new DevExpress.Utils.PointFloat(459.5849F, 191.9999F);
|
||||
this.xrLabel12.LocationFloat = new DevExpress.Utils.PointFloat(459.5851F, 164.9165F);
|
||||
this.xrLabel12.Name = "xrLabel12";
|
||||
this.xrLabel12.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
|
||||
this.xrLabel12.SizeF = new System.Drawing.SizeF(60.41666F, 23.00002F);
|
||||
@@ -1020,7 +1020,7 @@ namespace ChristopherusHausFamilienhilfe
|
||||
//
|
||||
this.xrTable2.Borders = DevExpress.XtraPrinting.BorderSide.None;
|
||||
this.xrTable2.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.xrTable2.LocationFloat = new DevExpress.Utils.PointFloat(490.125F, 51.00002F);
|
||||
this.xrTable2.LocationFloat = new DevExpress.Utils.PointFloat(490.1252F, 23.91669F);
|
||||
this.xrTable2.Name = "xrTable2";
|
||||
this.xrTable2.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] {
|
||||
this.xrTableRow2,
|
||||
@@ -1130,7 +1130,7 @@ namespace ChristopherusHausFamilienhilfe
|
||||
// xrLabel7
|
||||
//
|
||||
this.xrLabel7.Borders = DevExpress.XtraPrinting.BorderSide.None;
|
||||
this.xrLabel7.LocationFloat = new DevExpress.Utils.PointFloat(0F, 51F);
|
||||
this.xrLabel7.LocationFloat = new DevExpress.Utils.PointFloat(9.536743E-05F, 23.91666F);
|
||||
this.xrLabel7.Multiline = true;
|
||||
this.xrLabel7.Name = "xrLabel7";
|
||||
this.xrLabel7.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
|
||||
@@ -1146,7 +1146,7 @@ namespace ChristopherusHausFamilienhilfe
|
||||
this.xrLabel3.Borders = DevExpress.XtraPrinting.BorderSide.None;
|
||||
this.xrLabel3.CanShrink = true;
|
||||
this.xrLabel3.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.xrLabel3.LocationFloat = new DevExpress.Utils.PointFloat(0F, 173.9583F);
|
||||
this.xrLabel3.LocationFloat = new DevExpress.Utils.PointFloat(9.536743E-05F, 146.875F);
|
||||
this.xrLabel3.Name = "xrLabel3";
|
||||
this.xrLabel3.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
|
||||
this.xrLabel3.SizeF = new System.Drawing.SizeF(423.9583F, 20F);
|
||||
@@ -1162,7 +1162,7 @@ namespace ChristopherusHausFamilienhilfe
|
||||
this.xrLabel2.Borders = DevExpress.XtraPrinting.BorderSide.None;
|
||||
this.xrLabel2.CanShrink = true;
|
||||
this.xrLabel2.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.xrLabel2.LocationFloat = new DevExpress.Utils.PointFloat(188.5415F, 215F);
|
||||
this.xrLabel2.LocationFloat = new DevExpress.Utils.PointFloat(188.5416F, 187.9167F);
|
||||
this.xrLabel2.Name = "xrLabel2";
|
||||
this.xrLabel2.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
|
||||
this.xrLabel2.SizeF = new System.Drawing.SizeF(250.3769F, 20.00002F);
|
||||
@@ -1176,7 +1176,7 @@ namespace ChristopherusHausFamilienhilfe
|
||||
//
|
||||
this.xrLabel5.Borders = DevExpress.XtraPrinting.BorderSide.None;
|
||||
this.xrLabel5.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.xrLabel5.LocationFloat = new DevExpress.Utils.PointFloat(0F, 555.8333F);
|
||||
this.xrLabel5.LocationFloat = new DevExpress.Utils.PointFloat(9.536743E-05F, 528.75F);
|
||||
this.xrLabel5.Name = "xrLabel5";
|
||||
this.xrLabel5.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
|
||||
this.xrLabel5.SizeF = new System.Drawing.SizeF(692F, 17F);
|
||||
@@ -1191,7 +1191,7 @@ namespace ChristopherusHausFamilienhilfe
|
||||
this.xrLabel8.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
|
||||
new DevExpress.XtraReports.UI.XRBinding("Text", null, "InvoiceDate")});
|
||||
this.xrLabel8.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.xrLabel8.LocationFloat = new DevExpress.Utils.PointFloat(550.5416F, 192F);
|
||||
this.xrLabel8.LocationFloat = new DevExpress.Utils.PointFloat(550.5417F, 164.9167F);
|
||||
this.xrLabel8.Name = "xrLabel8";
|
||||
this.xrLabel8.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
|
||||
this.xrLabel8.SizeF = new System.Drawing.SizeF(140.4584F, 23F);
|
||||
@@ -1204,7 +1204,7 @@ namespace ChristopherusHausFamilienhilfe
|
||||
// xrLabel15
|
||||
//
|
||||
this.xrLabel15.Font = new System.Drawing.Font("Verdana", 10F);
|
||||
this.xrLabel15.LocationFloat = new DevExpress.Utils.PointFloat(0F, 36.45833F);
|
||||
this.xrLabel15.LocationFloat = new DevExpress.Utils.PointFloat(0.0004132589F, 66.66666F);
|
||||
this.xrLabel15.Name = "xrLabel15";
|
||||
this.xrLabel15.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
|
||||
this.xrLabel15.SizeF = new System.Drawing.SizeF(175F, 17F);
|
||||
@@ -1214,7 +1214,7 @@ namespace ChristopherusHausFamilienhilfe
|
||||
// xrLabel14
|
||||
//
|
||||
this.xrLabel14.Font = new System.Drawing.Font("Verdana", 10F);
|
||||
this.xrLabel14.LocationFloat = new DevExpress.Utils.PointFloat(0F, 84.375F);
|
||||
this.xrLabel14.LocationFloat = new DevExpress.Utils.PointFloat(0.0004132589F, 114.5833F);
|
||||
this.xrLabel14.Name = "xrLabel14";
|
||||
this.xrLabel14.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
|
||||
this.xrLabel14.SizeF = new System.Drawing.SizeF(225F, 17F);
|
||||
@@ -1452,7 +1452,7 @@ namespace ChristopherusHausFamilienhilfe
|
||||
this.xrLabel1,
|
||||
this.xrLabel14,
|
||||
this.xrLabel15});
|
||||
this.GroupFooter1.HeightF = 132.6249F;
|
||||
this.GroupFooter1.HeightF = 164.9165F;
|
||||
this.GroupFooter1.Name = "GroupFooter1";
|
||||
//
|
||||
// xrLabel1
|
||||
|
||||
@@ -8,7 +8,6 @@ using DevExpress.XtraReports.UI;
|
||||
|
||||
namespace ChristopherusHausFamilienhilfe
|
||||
{
|
||||
//[IDSpecificClass(Identifier = "SPFH")]
|
||||
public partial class ServiceInvoiceReport : XtraReport, IBeWoReport<ServiceInvoiceRO>
|
||||
{
|
||||
public ServiceInvoiceReport()
|
||||
@@ -31,8 +30,7 @@ namespace ChristopherusHausFamilienhilfe
|
||||
|
||||
if (pRO.ServiceInvoicePeriods != null)
|
||||
{
|
||||
var sip = pRO.ServiceInvoicePeriods[0];
|
||||
|
||||
var sip = pRO.ServiceInvoicePeriods[0];
|
||||
String alleSorgeDingens = "";
|
||||
|
||||
var customer = DAOFactory.GenericDAO.LoadByID<Customer>(sip.Customer.CustomerOid);
|
||||
@@ -40,25 +38,26 @@ namespace ChristopherusHausFamilienhilfe
|
||||
{
|
||||
foreach (var v2o in c2p.ValueList)
|
||||
{
|
||||
if (v2o.Entry.Type == BS.Shared.ValueListEntryType.RoleInFamily)
|
||||
if (v2o.Entry.Type == BS.Shared.ValueListEntryType.RoleInFamily || v2o.Entry.Type == BS.Shared.ValueListEntryType.EnvironmentPersonType)
|
||||
{
|
||||
if (v2o.Entry.Value.Contains("Sorgeberechtigt"))
|
||||
if (v2o.Entry.Value.Contains("Sorgeberechtigt") || v2o.Entry.Value.Contains("Vormund"))
|
||||
{
|
||||
c2p.Person.LastNameFirstName
|
||||
if (alleSorgeDingens != "")
|
||||
alleSorgeDingens += ", " + c2p.Person.FirstNameLastName;
|
||||
else
|
||||
alleSorgeDingens += c2p.Person.FirstNameLastName;
|
||||
}
|
||||
}
|
||||
//v2o.Entry.Type
|
||||
}
|
||||
}
|
||||
|
||||
lblSorgeBerechtigter.Text = alleSorgeDingens;
|
||||
lblGebDatum.Text = String.Format("{0:dd/MM/yyyy}", sip.Customer.DateOfBirth);
|
||||
lblHilfeBeginn.Text = String.Format("{0:dd/MM/yyyy}", sip.Customer.AssistanceBegin);
|
||||
lblHPG.Text = String.Format("{0:dd/MM/yyyy}", sip.CostBearer2SupportConcept.SupportConcept.ConferenceDate);
|
||||
lblBewZeitraum.Text = String.Format("{0:dd.MM.yyyy} bis {1:dd.MM.yyyy}", pRO.InvoiceBase.SupportConceptCostBearerRelDc.StartDate, pRO.InvoiceBase.SupportConceptCostBearerRelDc.EndDate);
|
||||
//String.Format("{0:MMM yy}", sip.SupportConceptApprovalPeriod.StartDate + " bis " + string.Format("{0:MMM yy}", sip.SupportConceptApprovalPeriod.EndDate));
|
||||
lblGebDatum.Text = String.Format("{0:dd/MM/yyyy}", sip.Customer.DateOfBirth);
|
||||
lblHilfeBeginn.Text = String.Format("{0:dd/MM/yyyy}", sip.Customer.AssistanceBegin);
|
||||
lblHPG.Text = String.Format("{0:dd/MM/yyyy}", sip.CostBearer2SupportConcept.SupportConcept.ConferenceDate);
|
||||
lblBewZeitraum.Text = String.Format("{0:dd.MM.yyyy} bis {1:dd.MM.yyyy}", pRO.InvoiceBase.SupportConceptCostBearerRelDc.StartDate, pRO.InvoiceBase.SupportConceptCostBearerRelDc.EndDate);
|
||||
}
|
||||
this.bindingSource1.DataSource = pRO;
|
||||
this.bindingSource1.DataSource = pRO;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,25 +0,0 @@
|
||||
using System;
|
||||
using BeWo.Data.Entities;
|
||||
using BS.Shared.Core;
|
||||
|
||||
namespace ChristopherusHausFamilienhilfe
|
||||
{
|
||||
public class VarFieldHelper
|
||||
{
|
||||
public static String GetVarFieldForOid(long oid, Customer c)
|
||||
{
|
||||
foreach (var vv in c.VarFieldValueList)
|
||||
{
|
||||
if (vv.VarFieldDefOid.Value == oid)
|
||||
{
|
||||
var varFieldValue = Utils.XMLDeserializeFromString(vv.SerializedValue, Type.GetType(vv.TypeName));
|
||||
if (varFieldValue != null)
|
||||
{
|
||||
return varFieldValue.ToString();
|
||||
}
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user