37 lines
1.0 KiB
C#
37 lines
1.0 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Windows;
|
|
using System.Windows.Controls;
|
|
using System.Windows.Input;
|
|
using System.Windows.Media;
|
|
using BeWo.ViewModel;
|
|
using BS.Shared.DataContracts;
|
|
|
|
namespace BeWo.View.Controls
|
|
{
|
|
/// <summary>
|
|
/// Interaction logic for DienstplanerControl.xaml
|
|
/// </summary>
|
|
public partial class DPCtrlEmployeeContractTooltip : UserControl
|
|
{
|
|
public DPCtrlEmployeeContractTooltip(ContractDC contract)
|
|
{
|
|
InitializeComponent();
|
|
|
|
TxtEmploymentType.Text = contract.EmploymentType.Name;
|
|
|
|
if(contract.MonthlyTotalHours != null)
|
|
{
|
|
TxtArbeitszeit.Text = $"{contract.MonthlyTotalHours.Value} Std/Monat";
|
|
}
|
|
else if(contract.WeeklyTotalHours != null)
|
|
{
|
|
TxtArbeitszeit.Text = $"{contract.WeeklyTotalHours.Value} Std/Woche";
|
|
}
|
|
else
|
|
{
|
|
TxtArbeitszeit.Text = $"k.A.";
|
|
}
|
|
}
|
|
}
|
|
} |