@if(!Model.IsInGroupBookingMode && !Model.IsInMultiBookingMode)
{
@Html.Partial("SingleBookingPartial", Model)
@@ -515,7 +504,7 @@
@* ----- Gruppenbuchung ----- *@
-
+
@if(Model.IsInGroupBookingMode && !Model.IsInMultiBookingMode)
{
@@ -525,7 +514,7 @@
@* ----- Mehrfachbuchung ----- *@
-
+
@if(Model.IsInMultiBookingMode && !Model.IsInGroupBookingMode)
{
@Html.Partial("MultiBookingPartial", Model);
@@ -537,7 +526,7 @@
-
@* ----- Unterschriften-Layover ----- *@
-Textbausteine
+Textbausteine
@@ -555,7 +544,7 @@
+
@@ -639,7 +628,7 @@
-
+
@@ -664,7 +653,7 @@
-
+
@@ -686,7 +675,7 @@
-
Bewertungsskala
+Bewertungsskala
@@ -717,7 +706,7 @@
-
Passwort ändern
+Passwort ändern
@@ -792,7 +781,7 @@
-
Warnung
+Warnung
@@ -846,6 +835,7 @@ + } @@ -854,7 +844,7 @@
-
}
+ @* ----- Betrag ----- *@
+ @if(Model.ShowBetrag)
+ {
+ Ziele und Maßnahmen
+Ziele und Maßnahmen
diff --git a/BeWoPlanerMobil/Views/Main/MultiBookingFormPartial.cshtml b/BeWoPlanerMobil/Views/Main/MultiBookingFormPartial.cshtml index dab825812..68fb4cc0d 100644 --- a/BeWoPlanerMobil/Views/Main/MultiBookingFormPartial.cshtml +++ b/BeWoPlanerMobil/Views/Main/MultiBookingFormPartial.cshtml @@ -98,6 +98,28 @@
+
+ }
+
@* Trennlinie *@
+
+
+
+
+
+
+
+
+
+ Betrag
+
+
+
+ €
+
diff --git a/BeWoPlanerMobil/Views/Main/MultiBookingPartial.cshtml b/BeWoPlanerMobil/Views/Main/MultiBookingPartial.cshtml
index 7d4098f89..b5b8c8a64 100644
--- a/BeWoPlanerMobil/Views/Main/MultiBookingPartial.cshtml
+++ b/BeWoPlanerMobil/Views/Main/MultiBookingPartial.cshtml
@@ -132,7 +132,7 @@
-
Gruppen und Hilfepläne für Gruppenbuchung
+Gruppen und Hilfepläne für Gruppenbuchung
@@ -155,7 +155,7 @@
-
}
-
+
if(serviceRecord.Goals.Any(goal => goal.Type == ValueListEntryType.SupportConceptGoalType || goal.Type == ValueListEntryType.SupportConceptIndividualGoalType))
{
Mitarbeiter hinzufügen
+Mitarbeiter hinzufügen
diff --git a/BeWoPlanerMobil/Views/Main/ServiceRecordListPartial.cshtml b/BeWoPlanerMobil/Views/Main/ServiceRecordListPartial.cshtml index f93f68aff..f80ac13ac 100644 --- a/BeWoPlanerMobil/Views/Main/ServiceRecordListPartial.cshtml +++ b/BeWoPlanerMobil/Views/Main/ServiceRecordListPartial.cshtml @@ -72,8 +72,6 @@ showErrorPopup(error); } } - - @{ @@ -161,110 +159,105 @@ } - foreach(var serviceRecord in Model.ServiceRecords) + foreach(var serviceRecord in Model.ServiceRecords) + { + if(serviceRecord.Start == null || serviceRecord.End == null) + { + continue; + } + + var start = serviceRecord.Start.Value; + var end = serviceRecord.End.Value; + var hasSignatureStr = serviceRecord.SignatureOid.HasValue ? "JA" : "NEIN"; + + var duration = (end - start).TotalMinutes; + + var roundedDuration = MobileUtils.GetDecimalValueWithMaxDecimal(serviceRecord.RoundedDuration, 2); + + if(serviceRecord.ServiceDescription.Category.Percentage > 0 && serviceRecord.ServiceDescription.Category.Percentage < 100) + { + roundedDuration = roundedDuration * serviceRecord.ServiceDescription.Category.Percentage / 100; + } + + var durationStr = serviceRecord.GroupOid.HasValue ? string.Format("{0:###0.#} ({0:###0.#})", roundedDuration) : $"{duration:###0.#} ({roundedDuration:###0.#})"; + + var massnahmenString = string.Empty; + var zieleString = string.Empty; + + if(serviceRecord.Goals != null && serviceRecord.Goals.Count > 0) + { + foreach(var goal in serviceRecord.Goals.Where(g => g.Type == ValueListEntryType.SupportConceptGoalType || g.Type == ValueListEntryType.SupportConceptIndividualGoalType)) + { + if(goal.Abbreviation != null && goal.TypeDescription != null) + { + massnahmenString += $"{goal.Abbreviation}: {goal.TypeDescription}"; + } + else if(goal.Abbreviation is null && goal.TypeDescription != null) + { + massnahmenString += goal.TypeDescription; + } + else if(goal.Abbreviation != null && goal.TypeDescription is null) + { + massnahmenString += goal.Abbreviation; + } + +#if DEBUG + if(goal.RatingTypeOid.HasValue) + { + var goalRating = Model.GoalRatingTypes.FirstOrDefault(g => g.RatingTypeOid.HasValue && g.RatingTypeOid.Equals(goal.RatingTypeOid.Value)); + + if(goalRating?.DisplayName != null && goalRating.DisplayName.Length > 0) { - if(serviceRecord.Start == null || serviceRecord.End == null) - { - continue; - } - - var start = serviceRecord.Start.Value; - var end = serviceRecord.End.Value; - var hasSignatureStr = serviceRecord.SignatureOid.HasValue ? "JA" : "NEIN"; - - var duration = (end - start).TotalMinutes; - - var roundedDuration = MobileUtils.GetDecimalValueWithMaxDecimal(serviceRecord.RoundedDuration, 2); - - if(serviceRecord.ServiceDescription.Category.Percentage > 0 && serviceRecord.ServiceDescription.Category.Percentage < 100) - { - roundedDuration = roundedDuration * serviceRecord.ServiceDescription.Category.Percentage / 100; - } - - var durationStr = serviceRecord.GroupOid.HasValue ? string.Format("{0:###0.#} ({0:###0.#})", roundedDuration) : $"{duration:###0.#} ({roundedDuration:###0.#})"; - - var massnahmenString = string.Empty; - var zieleString = string.Empty; - - if(serviceRecord.Goals != null && serviceRecord.Goals.Count > 0) - { - foreach(var goal in serviceRecord.Goals.Where(g => g.Type == ValueListEntryType.SupportConceptGoalType || g.Type == ValueListEntryType.SupportConceptIndividualGoalType)) - { - if(goal.Abbreviation != null && goal.TypeDescription != null) - { - massnahmenString += $"{goal.Abbreviation}: {goal.TypeDescription}"; - } - else if(goal.Abbreviation is null && goal.TypeDescription != null) - { - massnahmenString += goal.TypeDescription; - } - else if(goal.Abbreviation != null && goal.TypeDescription is null) - { - massnahmenString += goal.Abbreviation; - } - -#if DEBUG - if(goal.RatingTypeOid.HasValue) - { - var goalRating = Model.GoalRatingTypes.FirstOrDefault(g => g.RatingTypeOid.HasValue && g.RatingTypeOid.Equals(goal.RatingTypeOid.Value)); - - if(goalRating?.DisplayName != null && goalRating.DisplayName.Length > 0) - { - massnahmenString += $" ({goalRating.DisplayName})"; - } - } + massnahmenString += $" ({goalRating.DisplayName})"; + } + } #endif - if(serviceRecord.Goals.IndexOf(goal) < serviceRecord.Goals.Count - 1) - { - massnahmenString += ", "; - } - } + if(serviceRecord.Goals.IndexOf(goal) < serviceRecord.Goals.Count - 1) + { + massnahmenString += ", "; + } + } - if(serviceRecord.ServiceRecordOid.HasValue && Model.ServiceRecordOids2GoalHeader.ContainsKey(serviceRecord.ServiceRecordOid.Value)) - { - var ziele = serviceRecord.Goals.Where(g => g.Type == ValueListEntryType.SupportConceptIndividualGoalCategoryType || g.Type == ValueListEntryType.SupportConceptGoalCategoryType).ToList(); + if(serviceRecord.ServiceRecordOid.HasValue && Model.ServiceRecordOids2GoalHeader.ContainsKey(serviceRecord.ServiceRecordOid.Value)) + { + var ziele = serviceRecord.Goals.Where(g => g.Type == ValueListEntryType.SupportConceptIndividualGoalCategoryType || g.Type == ValueListEntryType.SupportConceptGoalCategoryType).ToList(); - foreach(var ziel in ziele) - { - if(ziel.Abbreviation != null && ziel.TypeDescription != null) - { - zieleString += $"{ziel.Abbreviation}: {ziel.TypeDescription} "; - } - else if(ziel.Abbreviation is null && ziel.TypeDescription != null) - { - zieleString += ziel.TypeDescription; - } - else if(ziel.Abbreviation != null && ziel.TypeDescription is null) - { - zieleString += ziel.Abbreviation; - } + foreach(var ziel in ziele) + { + if(ziel.Abbreviation != null && ziel.TypeDescription != null) + { + zieleString += $"{ziel.Abbreviation}: {ziel.TypeDescription} "; + } + else if(ziel.Abbreviation is null && ziel.TypeDescription != null) + { + zieleString += ziel.TypeDescription; + } + else if(ziel.Abbreviation != null && ziel.TypeDescription is null) + { + zieleString += ziel.Abbreviation; + } #if DEBUG - if(ziel.RatingTypeOid.HasValue) - { - var zielbewertung = Model.GoalRatingTypes.FirstOrDefault(goalRatingType => goalRatingType.RatingTypeOid.HasValue && goalRatingType.RatingTypeOid.Equals(ziel.RatingTypeOid.Value)); + if(ziel.RatingTypeOid.HasValue) + { + var zielbewertung = Model.GoalRatingTypes.FirstOrDefault(goalRatingType => goalRatingType.RatingTypeOid.HasValue && goalRatingType.RatingTypeOid.Equals(ziel.RatingTypeOid.Value)); - if(zielbewertung?.DisplayName != null && zielbewertung.DisplayName.Length > 0) - { - zieleString += $" ({zielbewertung.DisplayName})"; - } - } + if(zielbewertung?.DisplayName != null && zielbewertung.DisplayName.Length > 0) + { + zieleString += $" ({zielbewertung.DisplayName})"; + } + } #endif - zieleString += ", "; - } + zieleString += ", "; + } + } - //foreach(var goalHeader in Model.ServiceRecordOids2GoalHeader[serviceRecord.ServiceRecordOid.Value]) - //{ - // zieleString += $"{goalHeader}, "; - //} - } + zieleString = zieleString.TrimEnd(' ').TrimEnd(','); + } - zieleString = zieleString.TrimEnd(' ').TrimEnd(','); - } - - var cardBackground = serviceRecord.ServiceRecordType == ServiceRecordTypeId.Content ? "bg-service-record-marked" : serviceRecord.GroupOid.HasValue ? "bg-bewo-group-booking" : string.Empty; + var cardBackground = serviceRecord.ServiceRecordType == ServiceRecordTypeId.Content ? "bg-service-record-marked" : serviceRecord.GroupOid.HasValue ? "bg-bewo-group-booking" : string.Empty;
@@ -371,7 +364,7 @@
@@ -429,6 +422,25 @@
}
+ @if(Model.ShowBetrag)
+ {
+ var betrag = string.Empty;
+
+ if(serviceRecord.Betrag.HasValue && serviceRecord.Betrag.Value > 0)
+ {
+ betrag = serviceRecord.Betrag.Value.ToString("#.00") + " €";
+ }
+
+
+
+ }
+
@{
var header1 = "Dokumentation";
if(Model.NumberOfDokuTypes >= 1)
@@ -579,7 +591,7 @@
+ Betrag:
+
+
+ @betrag
+
+
-
Einmal-Unterschrift
+Einmal-Unterschrift
diff --git a/BeWoPlanerMobil/Views/Main/SingleBookingPartial.cshtml b/BeWoPlanerMobil/Views/Main/SingleBookingPartial.cshtml index cfc9192aa..11d555f06 100644 --- a/BeWoPlanerMobil/Views/Main/SingleBookingPartial.cshtml +++ b/BeWoPlanerMobil/Views/Main/SingleBookingPartial.cshtml @@ -15,7 +15,7 @@ } } - @using(Html.BeginForm("ResetSingleBookingForm", "Main", FormMethod.Post, new { Id = "reset-single-booking-form-form" })) @@ -121,7 +279,7 @@
-
Hilfeplanauswahl
+Hilfeplanauswahl
@@ -183,16 +341,51 @@ @* ----- Einzelbuchung: Mitarbeiter ----- *@
-
-
+
@if(Model.IsZeiterfassungInStdMin)
{
-
}
+
+ @* ----- Betrag ----- *@
+ @if(Model.ShowBetrag)
+ {
+ var betrag = string.Empty;
+ if(Model.SelectedServiceRecord?.Betrag != null && Model.SelectedServiceRecord.Betrag.Value > 0)
+ {
+ betrag = Model.SelectedServiceRecord.Betrag.Value.ToString("#.00");
+ }
+
+
-
+
+
+
+
+ @* ----- Einzelbuchung: Ziele ----- *@
@if(Model.SelectedSupportConcept != null && Model.SelectedSupportConcept.Goals.Any())
{
@@ -211,6 +404,8 @@
}
+
+
@* ----- Einzelbuchung: Kategorie & Leistung ----- *@
-
Mitarbeiter
+
+ @{
+ var employeeButtonValue = "Mitarbeiter";
+
+ if(Model.SelectedEmployee != null)
+ {
+ employeeButtonValue = Model.SelectedEmployee.DetailDescription;
+ }
+ }
+
+
+
+
- @Html.DropDownListFor(m => m.SelectedEmployeeOid, Model.EmployeeListItems, new { id = "employeesDropDown", @class = "custom-select", onchange = "setSelectedEmployee()" })
+ Mitarbeiter
+
+
+
+
+
+
+
+
+
+ @foreach(var employee in Model.Employees)
+ {
+ @employee.DetailDescription
+ }
+
+
+
+
@Html.Partial("Category2ServiceDescriptionPartial", Model)
@@ -230,6 +425,34 @@
+
+ }
+
+
+
+
+
+
+
+
+
+ Betrag
+
+
+
+ €
+
@@ -352,7 +575,7 @@
@labelText
@@ -484,303 +707,196 @@
{
if(Model.SelectedSupportConcept != null || Model.CostBearer2SupportConceptOid == -2)
{
+ var defaultStartDate = DateTime.Now.GetFirstOfMonth().ToShortDateString();
+ var defaultEndDate = DateTime.Today.ToShortDateString();
+
- @using(Html.BeginForm("LoadServiceRecords", "Main", FormMethod.Post, new { id = "selectServiceRecordForm" }))
- {
-
-
-
-