Das Gruppenbuchungsformular hat jetzt die Summe der Ziele aller ausgewählten Hilfepläne und die Schnittmenge deren Leistungen und Kategorien.
Das Mehrfachbuchungsformular hat ebenfalls die Schnittmenge der Leistungen und Kategorien von den ausgewählten Hilfeplänen. Das Caching ist wieder aktiviert. Und lädt pro Post-Aufruf nur noch einmal 13 MB und danach nur noch 300 kb herunter. Überall konsequent geprüft, ob das Model nicht null ist und falls dem so ist, wird ausgeloggt, damit es zu keinen Fehlern mehr kommt.
This commit is contained in:
@@ -42,11 +42,12 @@ namespace BeWoPlanerMobil.Controllers
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
[Authorize]
|
||||
public ActionResult ReportViewer()
|
||||
{
|
||||
if(Model is null)
|
||||
{
|
||||
TempData[TempDataConstants.DoLogoutKey] = true;
|
||||
return Logout();
|
||||
}
|
||||
|
||||
@@ -107,6 +108,11 @@ namespace BeWoPlanerMobil.Controllers
|
||||
[Authorize]
|
||||
public ActionResult DocumentWebViewerPartial()
|
||||
{
|
||||
if(Model is null)
|
||||
{
|
||||
TempData[TempDataConstants.DoLogoutKey] = true;
|
||||
}
|
||||
|
||||
return PartialView("DocumentWebViewerPartial", Model);
|
||||
}
|
||||
|
||||
@@ -117,7 +123,8 @@ namespace BeWoPlanerMobil.Controllers
|
||||
{
|
||||
if (Model?.Employee?.EmployeeOid is null || reportOid is null)
|
||||
{
|
||||
return Logout();
|
||||
TempData[TempDataConstants.DoLogoutKey] = true;
|
||||
return PartialView("DocumentWebViewerPartial");
|
||||
}
|
||||
|
||||
var selectedQuery = Model.Queries.FirstOrDefault(query => query.Oid.Equals(reportOid.Value));
|
||||
@@ -152,7 +159,7 @@ namespace BeWoPlanerMobil.Controllers
|
||||
return PartialView("DocumentWebViewerPartial", Model);
|
||||
}
|
||||
|
||||
[Authorize]
|
||||
//[Authorize]
|
||||
//private string GetQueryReportUrl(QueryDC query)
|
||||
//{
|
||||
// var url = Request?.Url;
|
||||
@@ -192,7 +199,8 @@ namespace BeWoPlanerMobil.Controllers
|
||||
{
|
||||
if(Model is null)
|
||||
{
|
||||
return Logout();
|
||||
TempData[TempDataConstants.DoLogoutKey] = true;
|
||||
return PartialView("ReportViewerFormPartial");
|
||||
}
|
||||
|
||||
Model.SelectedReportType = reportType == "0" ? ReportType.Berichte : ReportType.Mitarbeiterstundenkonto;
|
||||
@@ -205,7 +213,8 @@ namespace BeWoPlanerMobil.Controllers
|
||||
{
|
||||
if(Model?.Employee?.EmployeeOid is null)
|
||||
{
|
||||
return Logout();
|
||||
TempData[TempDataConstants.DoLogoutKey] = true;
|
||||
return PartialView("DocumentWebViewerPartial");
|
||||
}
|
||||
|
||||
if(!string.IsNullOrWhiteSpace(parameters))
|
||||
|
||||
Reference in New Issue
Block a user