MH: DiakonischesWerkMuelheimTwg Barbvetragsrechnung Verbesserung
This commit is contained in:
@@ -20,17 +20,16 @@ namespace DiakonischesWerkMuelheimTwg
|
||||
{
|
||||
DateTime start = pRO.AccountingPeriodStart;
|
||||
DateTime end = pRO.AccountingPeriodEnd;
|
||||
|
||||
lblBewilligungszeitraum.Text = "";
|
||||
if (pRO.ServiceInvoicePeriods != null && pRO.ServiceInvoicePeriods.Count > 0)
|
||||
if (start.Month == end.Month && start.Year == end.Year)
|
||||
{
|
||||
lblBewilligungszeitraum.Text = pRO.ServiceInvoicePeriods[0].SupportConceptApprovalPeriod.StartDate.HasValue ?
|
||||
string.Format("von {0:dd.MM.yyyy}", pRO.ServiceInvoicePeriods[0].SupportConceptApprovalPeriod.StartDate.Value ): "";
|
||||
lblBewilligungszeitraum.Text += pRO.ServiceInvoicePeriods[pRO.ServiceInvoicePeriods.Count - 1].SupportConceptApprovalPeriod.EndDate.HasValue ?
|
||||
string.Format(" bis {0:dd.MM.yyyy}", pRO.ServiceInvoicePeriods[pRO.ServiceInvoicePeriods.Count - 1].SupportConceptApprovalPeriod.EndDate.Value) : "";
|
||||
lblAbrechnungTitel.Text = lblAbrechnungTitel.Text.Replace("\"abrechnungszeitraum\"", string.Format("{0:MMMM yyyy}", start));
|
||||
}
|
||||
else
|
||||
{
|
||||
lblAbrechnungTitel.Text = lblAbrechnungTitel.Text.Replace("\"abrechnungszeitraum\"", string.Format("{0:MMMM yyyy} bis {1:MMMM yyyy}", start, end));
|
||||
}
|
||||
|
||||
SetzeAdresse(pRO);
|
||||
SetzeAdresse(pRO);
|
||||
|
||||
this.bindingSource1.DataSource = pRO;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user