diff --git a/ReportImp/MobileEV/Calculations/CustomCalculations.cs b/ReportImp/MobileEV/Calculations/CustomCalculations.cs new file mode 100644 index 000000000..8b9b7720f --- /dev/null +++ b/ReportImp/MobileEV/Calculations/CustomCalculations.cs @@ -0,0 +1,24 @@ +using System; +using BS.Shared.Core; +using BS.Shared.Services; + +namespace MobileEV +{ + [IDSpecificClass(Identifier = "RundungWieLWL")] + public class CustomCalculations : Calculations + { + public override int GetRoundedDuration(int minuteInterval, decimal durationInMinutes) + { + decimal lRoundedDuration = durationInMinutes; + + if (minuteInterval > 0 && durationInMinutes >= 5) + { + lRoundedDuration = durationInMinutes % minuteInterval != 0 + ? durationInMinutes + (minuteInterval - (durationInMinutes % minuteInterval)) + : durationInMinutes; + } + + return (int)Math.Round(lRoundedDuration, 0, MidpointRounding.AwayFromZero); + } + } +} \ No newline at end of file diff --git a/ReportImp/MobileEV/MobileEV.csproj b/ReportImp/MobileEV/MobileEV.csproj index cea8d3e70..f9f73a331 100644 --- a/ReportImp/MobileEV/MobileEV.csproj +++ b/ReportImp/MobileEV/MobileEV.csproj @@ -1,195 +1,196 @@ - - - - - Debug - AnyCPU - {48BB802C-43AF-4A3D-93F0-AE88A18E155C} - Library - Properties - MobileEV - 4351087063_Reports - v4.7.2 - 512 - - - - true - full - false - ..\..\CustomerDlls\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - ..\..\CustomerDlls\ - TRACE - prompt - 4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Component - - - Mitarbeiterarbeitszeitkonto.cs - - - Component - - - Mitarbeiterstundenkonto.cs - - - - Component - - - Leistungsnachweis.cs - - - Component - - - Sammelrechnung.cs - - - - Component - - - TaetigkeitsnachweisAbSept2023.cs - - - Component - - - Taetigkeitsnachweis.cs - - - Component - - - Quittierungsbeleg.cs - - - Component - - - ServiceInvoiceReport.cs - - - Component - - - SettlementReport.cs - - - Component - - - SettlementReport2.cs - - - Component - - - SupportConceptReport.cs - - - - - - {B0D73E3D-4AE7-4024-93A6-DB1F46D7CCEE} - Data - - - {40d8b312-ea64-49e3-a31a-5e57ed4d5654} - Report - - - {094331c3-ecee-4c89-bbfd-4c9ded89f0ef} - Service - - - {2f50b83d-a3f0-4ec4-979a-3f9b7e3d8ed4} - Shared - - - - - Mitarbeiterarbeitszeitkonto.cs - - - Mitarbeiterstundenkonto.cs - Designer - - - - Leistungsnachweis.cs - Designer - - - Sammelrechnung.cs - - - TaetigkeitsnachweisAbSept2023.cs - Designer - - - Taetigkeitsnachweis.cs - Designer - - - Quittierungsbeleg.cs - Designer - - - ServiceInvoiceReport.cs - - - SettlementReport.cs - - - SettlementReport2.cs - - - SupportConceptReport.cs - Designer - - - + + + + + Debug + AnyCPU + {48BB802C-43AF-4A3D-93F0-AE88A18E155C} + Library + Properties + MobileEV + 4351087063_Reports + v4.7.2 + 512 + + + + true + full + false + ..\..\CustomerDlls\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + ..\..\CustomerDlls\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Component + + + Mitarbeiterarbeitszeitkonto.cs + + + Component + + + Mitarbeiterstundenkonto.cs + + + + Component + + + Leistungsnachweis.cs + + + Component + + + Sammelrechnung.cs + + + + Component + + + TaetigkeitsnachweisAbSept2023.cs + + + Component + + + Taetigkeitsnachweis.cs + + + Component + + + Quittierungsbeleg.cs + + + Component + + + ServiceInvoiceReport.cs + + + Component + + + SettlementReport.cs + + + Component + + + SettlementReport2.cs + + + Component + + + SupportConceptReport.cs + + + + + + {B0D73E3D-4AE7-4024-93A6-DB1F46D7CCEE} + Data + + + {40d8b312-ea64-49e3-a31a-5e57ed4d5654} + Report + + + {094331c3-ecee-4c89-bbfd-4c9ded89f0ef} + Service + + + {2f50b83d-a3f0-4ec4-979a-3f9b7e3d8ed4} + Shared + + + + + Mitarbeiterarbeitszeitkonto.cs + + + Mitarbeiterstundenkonto.cs + Designer + + + + Leistungsnachweis.cs + Designer + + + Sammelrechnung.cs + + + TaetigkeitsnachweisAbSept2023.cs + Designer + + + Taetigkeitsnachweis.cs + Designer + + + Quittierungsbeleg.cs + Designer + + + ServiceInvoiceReport.cs + + + SettlementReport.cs + + + SettlementReport2.cs + + + SupportConceptReport.cs + Designer + + + \ No newline at end of file