Textbausteine wird IsActive zugewiesen beim Insert

Mitarbeiteranzahl ist jetzt korrekt bei Gruppenbuchungen im Mobilklienten
Textbausteine-Button in der Mobilversion wird nicht angezeigt, wenn es keine Textbausteine gibt
Der Klienten-Kommentar wird in der Mobilversion angezeigt
This commit is contained in:
Lyndon Jetten
2020-11-11 14:21:29 +01:00
parent dd47935428
commit e92a8daba1
10 changed files with 122 additions and 42 deletions

View File

@@ -91,6 +91,7 @@ namespace BeWoPlanerMobil.Controllers
Model.ShowExpiredSupportConcepts = GetUserSettingValue("ShowExpiredSupportConcepts") == "1";
Model.ShowOnlyOwnSupportConcepts = GetUserSettingValue("ShowOnlyMySupportConcepts") == "1";
var mandator = GetMandator();
@@ -912,6 +913,11 @@ namespace BeWoPlanerMobil.Controllers
var oidList = OperationsService.InsertNewServiceRecords(new List<ServiceRecordDC> { Model.NewServiceRecord });
Model.ServiceRecordOid = oidList[0];
if(Model.NewServiceRecord.CostBearer != null)
{
TempData[FormCollectionConstants.ShowSignatureSuggestionPopup] = true;
}
}
else
{
@@ -2143,7 +2149,7 @@ namespace BeWoPlanerMobil.Controllers
Model.ServiceCategories = CreateServiceCategoryModels(OperationsService.GetAllServiceDescriptions());
Model.SelectedEmployees.Add(MobileSessionFacade.LoggedInCompactEmployee);
Model.SelectedEmployees.AddIfNotIn(MobileSessionFacade.LoggedInCompactEmployee);
Model.IsInEditingMode = false;
Model.SelectedServiceRecord = null;