PSM Quittierungsbeleg nochmal eingecheckt. Hat wohl beim letzten mal nicht richtig funktioniert.
This commit is contained in:
@@ -5096,6 +5096,9 @@
|
||||
<ItemGroup>
|
||||
<Content Include="Views\Report\QuittierungsbelegsPreviewPartial.cshtml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Views\Customer\CustomerBetreuungPartial.cshtml" />
|
||||
</ItemGroup>
|
||||
<PropertyGroup>
|
||||
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
|
||||
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
|
||||
|
||||
@@ -3954,7 +3954,7 @@ namespace BeWoPlanerMobil.Controllers
|
||||
[Authorize]
|
||||
public string ProvokeJsonError()
|
||||
{
|
||||
return "<!DOCTYPE html>\r\n<html lang=\"en\">\r\n <head>\r\n <meta charset=\"UTF-8\">\r\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\r\n <meta http-equiv=\"X-UA-Compatible\" content=\"ie=edge\">\r\n <title>HTML 5 Boilerplate</title>\r\n <link rel=\"stylesheet\" href=\"style.css\">\r\n </head>\r\n <body>\r\n\t<script src=\"index.js\"></script>\r\n </body>\r\n</html>";
|
||||
return "lkasdjf lkjasdlkf jjasldfljk ajksldf ";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1280,7 +1280,6 @@ namespace BeWoPlanerMobil.Controllers
|
||||
|
||||
private string CreateFileName()
|
||||
{
|
||||
// Quittierungsbeleg_AlleKlienten_Jetten-Lyndon_LWL_Oktober-01-15-2023.pdf
|
||||
var fileName = "Quittierungsbeleg_";
|
||||
|
||||
var selectedFilter = Model.SelectedFilterItem.FilterEnum;
|
||||
|
||||
@@ -208,5 +208,7 @@ namespace BeWoPlanerMobil.Models
|
||||
public static bool HasRightToViewCustomerAbsenceTimes => CheckRight(UserRightType.Customer_ViewAbsenceTimes);
|
||||
|
||||
public static bool HasRightToProvideEmployeeSignatureForOthers => CheckRight(UserRightType.Signature_ProvideMonthlySignatureByProxy);
|
||||
|
||||
public static bool HasRightToViewBetreuung => CheckRight(UserRightType.Customer_ViewBetreuung);
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
125
BeWoPlanerMobil/Views/Customer/CustomerBetreuungPartial.cshtml
Normal file
125
BeWoPlanerMobil/Views/Customer/CustomerBetreuungPartial.cshtml
Normal file
@@ -0,0 +1,125 @@
|
||||
@using BeWoPlanerMobil.Models;
|
||||
|
||||
@model CustomerModel
|
||||
|
||||
@{
|
||||
var hasRelatedEmployees = Model.SelectedCustomer?.RelatedEmployees.Any() ?? false;
|
||||
var hasRelatedTeams = Model.SelectedCustomer?.RelatedTeams.Any() ?? false;
|
||||
}
|
||||
|
||||
@*
|
||||
flex: 1 0 0%;
|
||||
margin-right: 15px;
|
||||
margin-bottom: 0;
|
||||
margin-left: 15px;
|
||||
*@
|
||||
|
||||
<style type="text/css">
|
||||
.card-deck-test .card {
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
@@media (min-width: 576px) {
|
||||
.card-deck-test {
|
||||
display: flex;
|
||||
flex-flow: row wrap;
|
||||
margin-right: -15px;
|
||||
margin-left: -15px;
|
||||
}
|
||||
.card-deck-test .card {
|
||||
flex: 1 0 0%;
|
||||
margin-right: 15px;
|
||||
margin-bottom: 0;
|
||||
margin-left: 15px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@if(hasRelatedEmployees && Model.SelectedCustomer != null)
|
||||
{
|
||||
<h5>Betreuung</h5>
|
||||
<div class="row row-cols-1 row-cols-md-2 row-cols-lg-3 row-cols-xl-4">
|
||||
@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}" : "";
|
||||
<div class="col mb-3">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<div class="row mb-3">
|
||||
<div class="col text-secondary">
|
||||
Betreuer
|
||||
</div>
|
||||
<div class="col">
|
||||
@relation.Employee
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-3">
|
||||
<div class="col text-secondary">
|
||||
Rolle
|
||||
</div>
|
||||
<div class="col">
|
||||
@relation.RelationRole.DisplayName
|
||||
</div>
|
||||
</div>
|
||||
@if(!string.IsNullOrWhiteSpace(start))
|
||||
{
|
||||
<div class="row mb-3">
|
||||
<div class="col text-secondary">
|
||||
Startdatum
|
||||
</div>
|
||||
<div class="col">
|
||||
@start
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
|
||||
@if(!string.IsNullOrWhiteSpace(end))
|
||||
{
|
||||
<div class="row mb-3">
|
||||
<div class="col text-secondary">
|
||||
Enddatum
|
||||
</div>
|
||||
<div class="col">
|
||||
@end
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
|
||||
@if(!string.IsNullOrWhiteSpace(relation.Notice))
|
||||
{
|
||||
<div class="row mb-3">
|
||||
<div class="col text-secondary">
|
||||
Erläuterung
|
||||
</div>
|
||||
<div class="col">
|
||||
@relation.Notice
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
}
|
||||
|
||||
@*Teams*@
|
||||
@if(hasRelatedTeams && Model.SelectedCustomer != null)
|
||||
{
|
||||
<h5>Teams</h5>
|
||||
|
||||
foreach(var teamRelation in Model.SelectedCustomer.RelatedTeams)
|
||||
{
|
||||
<div class="row">
|
||||
<div class="row mb-3">
|
||||
<div class="col text-secondary">
|
||||
Team
|
||||
</div>
|
||||
<div class="col">
|
||||
@teamRelation.Team.Name
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user