From f915d88c0b25eba589db7ce8e945b2177a746dcc Mon Sep 17 00:00:00 2001 From: Lyndon Date: Fri, 8 May 2026 11:05:48 +0200 Subject: [PATCH] . --- BeWoPlanerMobil/BeWoPlanerMobil.csproj | 2 + .../DevExpressSchedulerController.cs | 153 ++++++-- BeWoPlanerMobil/Controllers/MainController.cs | 5 +- BeWoPlanerMobil/Models/AppointmentModel.cs | 120 +++--- .../Models/AppointmentSessionModel.cs | 12 +- .../Models/DevExpressSchedulerModel.cs | 23 -- .../Models/DevExpressSchedulerSessionModel.cs | 8 - .../Views/Customer/Customer.cshtml | 2 +- .../Customer/CustomerBetreuungPartial.cshtml | 162 ++++---- .../AptFltCustomersPartial.cshtml | 2 +- .../AptFltEmployeesPartial.cshtml | 2 +- .../AptFltResourcesPartial.cshtml | 2 +- .../CustomAppointmentFormPartial.cshtml | 119 +++--- .../CustomEmployeeSelectPartial.cshtml | 144 ++++--- .../DevExpressScheduler.cshtml | 352 +++++++++++++++++- .../SchedulerPagePartial.cshtml | 2 + Service/Plugins/PluginLoader.cs | 6 +- Shared/Core/Utilities/WebUtils.cs | 17 +- 18 files changed, 759 insertions(+), 374 deletions(-) diff --git a/BeWoPlanerMobil/BeWoPlanerMobil.csproj b/BeWoPlanerMobil/BeWoPlanerMobil.csproj index 7bbed1673..fcdf1f4e6 100644 --- a/BeWoPlanerMobil/BeWoPlanerMobil.csproj +++ b/BeWoPlanerMobil/BeWoPlanerMobil.csproj @@ -726,6 +726,8 @@ + + diff --git a/BeWoPlanerMobil/Controllers/DevExpressSchedulerController.cs b/BeWoPlanerMobil/Controllers/DevExpressSchedulerController.cs index 82ebdc74f..bf3a65098 100644 --- a/BeWoPlanerMobil/Controllers/DevExpressSchedulerController.cs +++ b/BeWoPlanerMobil/Controllers/DevExpressSchedulerController.cs @@ -89,6 +89,13 @@ namespace BeWoPlanerMobil.Controllers AppointmentModel.PossibleEmployees = EmployeeService.GetAllAuthorizedCompactEmployees(); AppointmentModel.PossibleCustomers = CustomerService.GetAllAuthorizedCompactCustomers(); AppointmentModel.PossibleResources = KalenderService.GetAllResources(); + + AppointmentModel.ResourceCategories2Resources = new Dictionary>(); + + foreach(var resource in AppointmentModel.PossibleResources) + { + AppointmentModel.ResourceCategories2Resources.AddOrUpdateValueInDictionary(resource.ResourceCategory, resource); + } } private void InitViewModel() @@ -349,13 +356,7 @@ namespace BeWoPlanerMobil.Controllers { appointment.CustomerList = AppointmentModel.SelectedCustomers; appointment.ResourceList = AppointmentModel.SelectedResources; - - appointment.EmployeeList = new List(); - - foreach(var selectedEmployee in AppointmentModel.SelectedEmployees ?? new List()) - { - appointment.EmployeeList.Add(new Employee2SchedulerAppointmentDC { Employee = selectedEmployee }); - } + appointment.EmployeeList = AppointmentModel.SelectedEmployee2SchedulerAppointments; appointment.Originator = Model.LoggedInUser.Employee; @@ -398,41 +399,41 @@ namespace BeWoPlanerMobil.Controllers ReloadAppointments(); } - [HttpPost] - public ActionResult CustomerMultiSelectPartial(string value) - { - var selectedCustomerOids = GridLookupExtension.GetSelectedValues("CustomerGridLookup") ?? Array.Empty(); + //[HttpPost] + //public ActionResult CustomerMultiSelectPartial(string value) + //{ + // var selectedCustomerOids = GridLookupExtension.GetSelectedValues("CustomerGridLookup") ?? Array.Empty(); - AppointmentModel.SelectedCustomerOids = selectedCustomerOids.Where(oid => oid.HasValue).Select(oid => oid.Value).ToList(); + // AppointmentModel.SelectedCustomerOids = selectedCustomerOids.Where(oid => oid.HasValue).Select(oid => oid.Value).ToList(); - return PartialView("CustomerMultiSelectPartial", AppointmentModel); - } + // return PartialView("CustomerMultiSelectPartial", AppointmentModel); + //} - [HttpPost] - public ActionResult ResourceGridLookupPartial(string value) - { - var selectedResourceOids = GridLookupExtension.GetSelectedValues("ResourceGridLookup") ?? Array.Empty(); + //[HttpPost] + //public ActionResult ResourceGridLookupPartial(string value) + //{ + // var selectedResourceOids = GridLookupExtension.GetSelectedValues("ResourceGridLookup") ?? Array.Empty(); - AppointmentModel.SelectedResourceOids = selectedResourceOids.Where(oid => oid.HasValue).Select(oid => oid.Value).ToList(); + // AppointmentModel.SelectedResourceOids = selectedResourceOids.Where(oid => oid.HasValue).Select(oid => oid.Value).ToList(); - return PartialView("ResourceMultiSelectPartial", AppointmentModel); - } + // return PartialView("ResourceMultiSelectPartial", AppointmentModel); + //} - [HttpPost] - public ActionResult EmployeeGridLookupPartial(string value) - { - /* - * Im AppointmentModel müssen die PossibleEmployees bleiben, denn daraus wählt man die Mitarbeiter, die noch nicht mit dem Termin - * verknüpft sind und es müssen - zumindest beim Bearbeiten - die bereits mit dem Termin verbundenen Mitarbeiter-zu-Termin-Relationen - * zwischengespeichert werden. - * - */ - var selectedEmployeeOids = GridLookupExtension.GetSelectedValues("EmployeeGridLookup") ?? Array.Empty(); + //[HttpPost] + //public ActionResult EmployeeGridLookupPartial(string value) + //{ + // /* + // * Im AppointmentModel müssen die PossibleEmployees bleiben, denn daraus wählt man die Mitarbeiter, die noch nicht mit dem Termin + // * verknüpft sind und es müssen - zumindest beim Bearbeiten - die bereits mit dem Termin verbundenen Mitarbeiter-zu-Termin-Relationen + // * zwischengespeichert werden. + // * + // */ + // var selectedEmployeeOids = GridLookupExtension.GetSelectedValues("EmployeeGridLookup") ?? Array.Empty(); - AppointmentModel.SelectedEmployeeOids = selectedEmployeeOids.Where(oid => oid.HasValue).Select(oid => oid.Value).ToList(); + // AppointmentModel.SelectedEmployeeOids = selectedEmployeeOids.Where(oid => oid.HasValue).Select(oid => oid.Value).ToList(); - return PartialView("EmployeeMultiSelectPartial", AppointmentModel); - } + // return PartialView("EmployeeMultiSelectPartial", AppointmentModel); + //} [Authorize] public string SelectActiveViewType(string viewTypeName) @@ -654,7 +655,7 @@ namespace BeWoPlanerMobil.Controllers } [Authorize] - public ActionResult UpdateEmployeeSelection(long[] selectedOids) + public ActionResult UpdateEmployeeFilterSelection(long[] selectedOids) { if(Model is null) { @@ -676,7 +677,7 @@ namespace BeWoPlanerMobil.Controllers } [Authorize] - public ActionResult UpdateCustomerSelection(long[] selectedOids) + public ActionResult UpdateCustomerFilterSelection(long[] selectedOids) { if(Model is null) { @@ -698,7 +699,7 @@ namespace BeWoPlanerMobil.Controllers } [Authorize] - public ActionResult UpdateResourceSelection(long[] selectedOids) + public ActionResult UpdateResourceFilterSelection(long[] selectedOids) { if(Model is null) { @@ -860,5 +861,83 @@ namespace BeWoPlanerMobil.Controllers return PartialView("SchedulerPagePartial", Model); } + + [Authorize] + public string GetEmployeePageCount() + { + return JsonConvert.SerializeObject(new EditFormInfo(AppointmentModel.EmployeePageCount, AppointmentModel.EmployeePageLimit)); + } + + [Authorize] + public string GetCustomerPageCount() + { + return JsonConvert.SerializeObject(new EditFormInfo(AppointmentModel.CustomerPageCount, AppointmentModel.CustomerPageLimit)); + } + + [Authorize] + public string GetResourcePageCount() + { + return JsonConvert.SerializeObject(new EditFormInfo(AppointmentModel.ResourcePageCount, AppointmentModel.ResourcePageLimit)); + } + + [Authorize] + public string UpdateAppointmentEmployeeSelection(string selectedOids) + { + if(selectedOids is null) + { + selectedOids = string.Empty; + } + + var selectedEmployeeOids = selectedOids.Length == 0 ? new List() : selectedOids.Split(',').Select(long.Parse).ToList(); + + AppointmentModel.SelectedEmployee2SchedulerAppointments = new List(); + + var employees = AppointmentModel.PossibleEmployees.Where(possibleEmployee => selectedEmployeeOids.Contains(possibleEmployee.EmployeeOid)).ToList(); + + foreach(var employee in employees) + { + AppointmentModel.SelectedEmployee2SchedulerAppointments.Add(new Employee2SchedulerAppointmentDC { Employee = employee }); + } + + return LeerzeichenFuerGetMethoden; + } + + [Authorize] + public string UpdateAppointmentCustomerSelection(string selectedOids) + { + if(selectedOids is null) + { + selectedOids = string.Empty; + } + + AppointmentModel.SelectedCustomerOids = selectedOids.Length == 0 ? new List() : selectedOids.Split(',').Select(long.Parse).ToList(); + + return LeerzeichenFuerGetMethoden; + } + + [Authorize] + public string UpdateAppointmentResourceSelection(string selectedOids) + { + if(selectedOids is null) + { + selectedOids = string.Empty; + } + + AppointmentModel.SelectedResourceOids = selectedOids.Length == 0 ? new List() : selectedOids.Split(',').Select(long.Parse).ToList(); + + return LeerzeichenFuerGetMethoden; + } + } + + public class EditFormInfo + { + public int PageCount { get; } + public int PageLimit { get; } + + public EditFormInfo(int pageCount, int pageLimit) + { + PageCount = pageCount; + PageLimit = pageLimit; + } } } \ No newline at end of file diff --git a/BeWoPlanerMobil/Controllers/MainController.cs b/BeWoPlanerMobil/Controllers/MainController.cs index 434ead370..e11237455 100644 --- a/BeWoPlanerMobil/Controllers/MainController.cs +++ b/BeWoPlanerMobil/Controllers/MainController.cs @@ -1530,7 +1530,7 @@ namespace BeWoPlanerMobil.Controllers if(false == Model.IsInEditingMode) { - if(Model.NewServiceRecord.CostBearer != null && Model.ShowSignature && (Model.NewServiceRecord.ServiceDescription.Category.IsBillable || Model.NewServiceRecord.ServiceDescription.Category.BillableAmount > 0m || Model.NewServiceRecord.ServiceDescription.BillableAmount > 0m)) + if(Model.NewServiceRecord.CostBearer != null && Model.ShowSignature) { var valRes = OperationsService.ValidateServiceRecord(Model.NewServiceRecord, null, 0, null, null); var doppelt = valRes.Count > 0 && valRes.FirstOrDefault(v => v.ResultType == DoppelterEintrag) != null; @@ -1540,8 +1540,7 @@ namespace BeWoPlanerMobil.Controllers var oidList = OperationsService.InsertNewServiceRecords(new List { Model.NewServiceRecord }); Model.LastCreatedServiceRecordOid = oidList[0]; - - + if(Model.IsAllowedToCreateSignature(Model.NewServiceRecord)) { if(Model.NewServiceRecord.CostBearer != null && Model.ShowSignature && (Model.NewServiceRecord.ServiceDescription.Category.IsBillable || Model.NewServiceRecord.ServiceDescription.Category.BillableAmount > 0m || Model.NewServiceRecord.ServiceDescription.BillableAmount > 0m)) diff --git a/BeWoPlanerMobil/Models/AppointmentModel.cs b/BeWoPlanerMobil/Models/AppointmentModel.cs index 05807a792..4717ba820 100644 --- a/BeWoPlanerMobil/Models/AppointmentModel.cs +++ b/BeWoPlanerMobil/Models/AppointmentModel.cs @@ -3,6 +3,7 @@ using System; using System.Collections.Generic; using System.Linq; using BS.Shared.DataContracts.Compact; +using BS.Shared.Extensions; namespace BeWoPlanerMobil.Models { @@ -30,64 +31,16 @@ namespace BeWoPlanerMobil.Models public string CompletedNotice { get; set; } public string CompletedUser { get; set; } public string TaskDescription { get; set; } - - public List SelectedCustomers - { - get - { - return SelectedCustomerOids is null ? - null : - PossibleCustomers.Where(customer => SelectedCustomerOids.Contains(customer.CustomerOid)).ToList(); - } - - set - { - SelectedCustomerOids = value?.Select(customer => customer.CustomerOid).ToList(); - } - } - - public List SelectedResources - { - get - { - return SelectedResourceOids is null ? - null : - PossibleResources.Where(resource => resource.ResourceOid.HasValue && SelectedResourceOids.Contains(resource.ResourceOid.Value)).ToList(); - } - - set - { - SelectedResourceOids = value?.Where(resource => resource.ResourceOid.HasValue).Select(resource => resource.ResourceOid.Value).ToList(); - } - } - public bool HasServiceRecordEntry { get; set; } public List ServiceRecordList { get; set; } - public List PossibleCustomers { get; set; } - public List PossibleResources { get; set; } - - - public List SelectedCustomerOids - { - get => AppointmentSessionModel.SelectedCustomerOids; - set => AppointmentSessionModel.SelectedCustomerOids = value; - } - - - - public List SelectedResourceOids - { - get => AppointmentSessionModel.SelectedResourceOids; - set => AppointmentSessionModel.SelectedResourceOids = value; - } - - - - - /* Mitarbeiter */ + #region Mitarbeiter public List PossibleEmployees { get; set; } + public int EmployeePageLimit => 10; + + public int EmployeePageCount => (PossibleEmployees?.Count ?? 0) / EmployeePageLimit; + public List SelectedEmployee2SchedulerAppointments { get; set; } public List SelectedEmployees { get; set; } @@ -103,12 +56,64 @@ namespace BeWoPlanerMobil.Models get => AppointmentSessionModel.SelectedEmployees2Appointments; set => AppointmentSessionModel.SelectedEmployees2Appointments = value; } - /* /Mitarbeiter */ + #endregion + #region Klienten + public List PossibleCustomers { get; set; } + public int CustomerPageLimit => 10; + public int CustomerPageCount => (PossibleCustomers?.Count ?? 0) / CustomerPageLimit; + public List SelectedCustomers + { + get + { + return SelectedCustomerOids is null ? null : PossibleCustomers.Where(customer => SelectedCustomerOids.Contains(customer.CustomerOid)).ToList(); + } + set + { + SelectedCustomerOids = value?.Select(customer => customer.CustomerOid).ToList(); + } + } + + public List SelectedCustomerOids + { + get => AppointmentSessionModel.SelectedCustomerOids; + set => AppointmentSessionModel.SelectedCustomerOids = value; + } + #endregion + + #region Ressourcen + public Dictionary> ResourceCategories2Resources { get; set; } + public List PossibleResources { get; set; } + + public int ResourcePageLimit => 10; + + public int ResourcePageCount => (ResourceCategories2Resources?.Keys?.Count ?? 0) / ResourcePageLimit; + + public List SelectedResources + { + get + { + return SelectedResourceOids is null ? + null : + PossibleResources.Where(resource => resource.ResourceOid.HasValue && SelectedResourceOids.Contains(resource.ResourceOid.Value)).ToList(); + } + + set + { + SelectedResourceOids = value?.Where(resource => resource.ResourceOid.HasValue).Select(resource => resource.ResourceOid.Value).ToList(); + } + } + + public List SelectedResourceOids + { + get => AppointmentSessionModel.SelectedResourceOids; + set => AppointmentSessionModel.SelectedResourceOids = value; + } + #endregion public AppointmentModel() @@ -122,6 +127,13 @@ namespace BeWoPlanerMobil.Models PossibleResources = possibleResources; PossibleEmployees = possibleEmployees; + ResourceCategories2Resources = new Dictionary>(); + + foreach(var resource in PossibleResources) + { + ResourceCategories2Resources.AddOrUpdateValueInDictionary(resource.ResourceCategory, resource); + } + SessionModel = new AppointmentSessionModel(); } diff --git a/BeWoPlanerMobil/Models/AppointmentSessionModel.cs b/BeWoPlanerMobil/Models/AppointmentSessionModel.cs index 6082de86e..50d7814be 100644 --- a/BeWoPlanerMobil/Models/AppointmentSessionModel.cs +++ b/BeWoPlanerMobil/Models/AppointmentSessionModel.cs @@ -4,20 +4,20 @@ namespace BeWoPlanerMobil.Models { public class AppointmentSessionModel : BaseSessionModel { - public List SelectedCustomerOids { get; set; } public List SelectedEmployeeOids { get; set; } + public List SelectedCustomerOids { get; set; } public List SelectedResourceOids { get; set; } - public List SelectedEmployees2Appointments { get; set; } + public List SelectedEmployees2Appointments { get; set; } = new List(); public override void ResetValues() { base.ResetValues(); - SelectedCustomerOids = null; - SelectedEmployeeOids = null; - SelectedResourceOids = null; - SelectedEmployees2Appointments = null; + SelectedCustomerOids = new List(); + SelectedEmployeeOids = new List(); + SelectedResourceOids = new List(); + SelectedEmployees2Appointments = new List(); } } } \ No newline at end of file diff --git a/BeWoPlanerMobil/Models/DevExpressSchedulerModel.cs b/BeWoPlanerMobil/Models/DevExpressSchedulerModel.cs index 667eeda70..7d5f8d1c9 100644 --- a/BeWoPlanerMobil/Models/DevExpressSchedulerModel.cs +++ b/BeWoPlanerMobil/Models/DevExpressSchedulerModel.cs @@ -103,29 +103,6 @@ namespace BeWoPlanerMobil.Models public List SelectedCustomersForFiltering { get; set; } public List SelectedResourcesForFiltering { get; set; } - public List SelectedEmployeesForIntervalFinder { get; set; } - public List SelectedCustomersForIntervalFinder { get; set; } - public List SelectedResourcesForIntervalFinder { get; set; } - - - - public List SelectedEmployeeOidsForIntervalFinder - { - get => DevExpressSchedulerSessionModel.SelectedEmployeeOidsForIntervalFinder; - set => DevExpressSchedulerSessionModel.SelectedEmployeeOidsForIntervalFinder = value; - } - - public List SelectedCustomerOidsForIntervalFinder - { - get => DevExpressSchedulerSessionModel.SelectedCustomerOidsForIntervalFinder; - set => DevExpressSchedulerSessionModel.SelectedCustomerOidsForIntervalFinder = value; - } - - public List SelectedResourceOidsForIntervalFinder - { - get => DevExpressSchedulerSessionModel.SelectedResourceOidsForIntervalFinder; - set => DevExpressSchedulerSessionModel.SelectedResourceOidsForIntervalFinder = value; - } public bool ShowTasks { diff --git a/BeWoPlanerMobil/Models/DevExpressSchedulerSessionModel.cs b/BeWoPlanerMobil/Models/DevExpressSchedulerSessionModel.cs index 33e65f2f5..8979a1800 100644 --- a/BeWoPlanerMobil/Models/DevExpressSchedulerSessionModel.cs +++ b/BeWoPlanerMobil/Models/DevExpressSchedulerSessionModel.cs @@ -14,10 +14,6 @@ namespace BeWoPlanerMobil.Models public List SelectedCustomerOidsForFiltering { get; set; } public List SelectedResourceOidsForFiltering { get; set; } - public List SelectedEmployeeOidsForIntervalFinder { get; set; } - public List SelectedCustomerOidsForIntervalFinder { get; set; } - public List SelectedResourceOidsForIntervalFinder { get; set; } - public List OpenAppointmentOids { get; set; } public long? AppointmentOid2Answer { get; set; } @@ -44,10 +40,6 @@ namespace BeWoPlanerMobil.Models SelectedCustomerOidsForFiltering = new List(); SelectedResourceOidsForFiltering = new List(); - SelectedEmployeeOidsForIntervalFinder = new List(); - SelectedCustomerOidsForIntervalFinder = new List(); - SelectedResourceOidsForIntervalFinder = new List(); - OpenAppointmentOids = new List(); ShowTasks = false; diff --git a/BeWoPlanerMobil/Views/Customer/Customer.cshtml b/BeWoPlanerMobil/Views/Customer/Customer.cshtml index c96a8f8bb..79fe487a2 100644 --- a/BeWoPlanerMobil/Views/Customer/Customer.cshtml +++ b/BeWoPlanerMobil/Views/Customer/Customer.cshtml @@ -1068,7 +1068,7 @@
-
+
@Html.Partial("CustomerBetreuungPartial", Model)
diff --git a/BeWoPlanerMobil/Views/Customer/CustomerBetreuungPartial.cshtml b/BeWoPlanerMobil/Views/Customer/CustomerBetreuungPartial.cshtml index 4dbacb741..e03dc0c2f 100644 --- a/BeWoPlanerMobil/Views/Customer/CustomerBetreuungPartial.cshtml +++ b/BeWoPlanerMobil/Views/Customer/CustomerBetreuungPartial.cshtml @@ -10,111 +10,93 @@ @if(hasRelatedEmployees && Model.SelectedCustomer != null) { -
-
-
- -
-
- -
-
-
-
-
- @foreach(var relation in Model.SelectedCustomer.RelatedEmployees) - { - var start = relation.StartDate.HasValue ? $"{relation.StartDate.Value:dd.MM.yyyy}" : ""; - var end = relation.EndDate.HasValue ? $"{relation.EndDate.Value:dd.MM.yyyy}" : ""; + foreach(var relation in Model.SelectedCustomer.RelatedEmployees) + { + var start = relation.StartDate.HasValue ? $"{relation.StartDate.Value:dd.MM.yyyy}" : ""; + var end = relation.EndDate.HasValue ? $"{relation.EndDate.Value:dd.MM.yyyy}" : ""; - var relationRole = relation.RelationRole?.DisplayName ?? string.Empty; + var relationRole = relation.RelationRole?.DisplayName ?? string.Empty; -
-
-
- - - - - - - - - - - @if(!string.IsNullOrWhiteSpace(start)) - { - - - - - } - @if(!string.IsNullOrWhiteSpace(end)) - { - - - - - } - @if(!string.IsNullOrWhiteSpace(relation.Notice)) - { - - - - - } - -
Betreuer:@relation.Employee
Rolle:@relationRole
Startdatum:@start
Enddatum:@end
Erläuterung:@relation.Notice
-
-
-
- } +
+
+
+ + + + + + + + + + + @if(!string.IsNullOrWhiteSpace(start)) + { + + + + + } + @if(!string.IsNullOrWhiteSpace(end)) + { + + + + + } + @if(!string.IsNullOrWhiteSpace(relation.Notice)) + { + + + + + } + +
Betreuer:@relation.Employee
Rolle:@relationRole
Startdatum:@start
Enddatum:@end
Erläuterung:@relation.Notice
-
+ } } @*Teams*@ @if(hasRelatedTeams && Model.SelectedCustomer != null) { -
-
-
- +
+
+
+ +
+
+ +
-
- -
-
-
-
- @foreach(var teamRelation in Model.SelectedCustomer.RelatedTeams) - { -
-
-
-
- - - - - - - -
Team:@teamRelation.Team.Name
+
+
+ @foreach(var teamRelation in Model.SelectedCustomer.RelatedTeams) + { +
+
+
+
+ + + + + + + +
Team:@teamRelation.Team.Name
+
+
-
+ }
- }
-
- + } \ No newline at end of file diff --git a/BeWoPlanerMobil/Views/DevExpressScheduler/AptFltCustomersPartial.cshtml b/BeWoPlanerMobil/Views/DevExpressScheduler/AptFltCustomersPartial.cshtml index 8c83b785d..6b20d7ddd 100644 --- a/BeWoPlanerMobil/Views/DevExpressScheduler/AptFltCustomersPartial.cshtml +++ b/BeWoPlanerMobil/Views/DevExpressScheduler/AptFltCustomersPartial.cshtml @@ -52,7 +52,7 @@ showSpinner(); $("#customer-input-container").load( - "@Url.Action("UpdateCustomerSelection")", + "@Url.Action("UpdateCustomerFilterSelection")", { selectedOids: selectedCustomerOids }, () => { scheduler.Refresh(); diff --git a/BeWoPlanerMobil/Views/DevExpressScheduler/AptFltEmployeesPartial.cshtml b/BeWoPlanerMobil/Views/DevExpressScheduler/AptFltEmployeesPartial.cshtml index ef6d6e359..da9bd3ddf 100644 --- a/BeWoPlanerMobil/Views/DevExpressScheduler/AptFltEmployeesPartial.cshtml +++ b/BeWoPlanerMobil/Views/DevExpressScheduler/AptFltEmployeesPartial.cshtml @@ -62,7 +62,7 @@ logInfo3(`Es wurden ${selectedEmployeeOids.length} Mitarbeiter ausgewählt.`); $("#employee-input-container").load( - "@Url.Action("UpdateEmployeeSelection", "DevExpressScheduler")", + "@Url.Action("UpdateEmployeeFilterSelection", "DevExpressScheduler")", { selectedOids: selectedEmployeeOids }, diff --git a/BeWoPlanerMobil/Views/DevExpressScheduler/AptFltResourcesPartial.cshtml b/BeWoPlanerMobil/Views/DevExpressScheduler/AptFltResourcesPartial.cshtml index 7d1b85ad2..d7edf7e88 100644 --- a/BeWoPlanerMobil/Views/DevExpressScheduler/AptFltResourcesPartial.cshtml +++ b/BeWoPlanerMobil/Views/DevExpressScheduler/AptFltResourcesPartial.cshtml @@ -27,7 +27,7 @@ showSpinner(); $("#resource-input-container").load( - "@Url.Action("UpdateResourceSelection")", + "@Url.Action("UpdateResourceFilterSelection")", { selectedOids: selectedResourceOids }, diff --git a/BeWoPlanerMobil/Views/DevExpressScheduler/CustomAppointmentFormPartial.cshtml b/BeWoPlanerMobil/Views/DevExpressScheduler/CustomAppointmentFormPartial.cshtml index ae08df97b..6e39461a1 100644 --- a/BeWoPlanerMobil/Views/DevExpressScheduler/CustomAppointmentFormPartial.cshtml +++ b/BeWoPlanerMobil/Views/DevExpressScheduler/CustomAppointmentFormPartial.cshtml @@ -6,6 +6,7 @@ @{ Html.EnableClientValidation(); Html.EnableUnobtrusiveJavaScript(); + } @functions { - string GetParticipationColor(ParticipationAnswer participationAnswer) - { - var background = ""; + static string GetParticipationColor(ParticipationAnswer participationAnswer) + { + var background = ""; - switch(participationAnswer) - { - case ParticipationAnswer.Zusage: - background = "#48D44E"; - break; - case ParticipationAnswer.Vorbehalt: - background = "#B927D9"; - break; - case ParticipationAnswer.Absage: - background = "#AB0030"; - break; - } + switch(participationAnswer) + { + case ParticipationAnswer.Zusage: + background = "#48D44E"; + break; + case ParticipationAnswer.Vorbehalt: + background = "#B927D9"; + break; + case ParticipationAnswer.Absage: + background = "#AB0030"; + break; + } - return background; - } + return background; + } } -