MH: Alzey Sozio

This commit is contained in:
2023-07-10 16:06:10 +02:00
parent 89df788156
commit aeedebdd90
2 changed files with 7 additions and 4 deletions

View File

@@ -307,7 +307,7 @@ namespace AlzeyTeilhabe
// xrTableCell12
//
this.xrTableCell12.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
new DevExpress.XtraReports.UI.XRBinding("Text", null, "Services.Notice2")});
new DevExpress.XtraReports.UI.XRBinding("Text", null, "Services.Notice3")});
this.xrTableCell12.Name = "xrTableCell12";
this.xrTableCell12.Padding = new DevExpress.XtraPrinting.PaddingInfo(3, 0, 0, 0, 100F);
this.xrTableCell12.StylePriority.UsePadding = false;

View File

@@ -55,9 +55,12 @@ namespace AlzeyTeilhabe
ServicesOverviewRO.CreateSignatureString(s);
//s.Notice4 = string.Format("{0:00}", (s.EndDate - s.StartDate).TotalHours) + ":"+ string.Format("{0:00}", (s.EndDate - s.StartDate).TotalMinutes % 60);
s.Notice4 = string.Format("{0:00}:{1:00}", (s.EndDate - s.StartDate).TotalHours < 1 ? 0 : (s.EndDate - s.StartDate).TotalHours, (s.EndDate - s.StartDate).TotalMinutes % 60);
if (s.ServiceDescription.ToLower().Contains("fahrzeit"))
s.Notice4 = string.Format("{0:00}:{1:00}", (s.EndDate - s.StartDate).TotalHours < 1 ? 0 : ((int)(s.EndDate - s.StartDate).TotalHours), (s.EndDate - s.StartDate).TotalMinutes % 60);
if (s.ServiceDescription.ToLower().Contains("fahrtkosten"))
{
s.Notice = s.ServiceDescription;
s.Notice5 = string.Format("{0:c}", stundensatz);
}
else
s.Notice5 = string.Format("{0:c}", stundensatz * Convert.ToDecimal(s.Minutes / 60));
servicesBillable.Add(s);
@@ -65,7 +68,7 @@ namespace AlzeyTeilhabe
}
pRO.Services = servicesBillable;
var gesamtstundenFormatiert = string.Format("{0:00}:{1:00}", pRO.TotalFLMBillable / 60, pRO.TotalFLMBillable % 60);
var gesamtstundenFormatiert = string.Format("{0:00}:{1:00}", (int)(pRO.TotalFLMBillable / 60), pRO.TotalFLMBillable % 60);
lblGesamtstunden.Text = gesamtstundenFormatiert;
}