MH: EmployeeView-Bug behoben und Farben in Urlaubsplanung entfernt
This commit is contained in:
157
BeWo/BeWo.csproj
157
BeWo/BeWo.csproj
@@ -816,6 +816,7 @@
|
||||
</Compile>
|
||||
<Compile Include="SchulbegleitenderDienst\WochenansichtVM.cs" />
|
||||
<Compile Include="SchulbegleitenderDienst\WochenVertretung.cs" />
|
||||
<Compile Include="Security\EncryptionUtils.cs" />
|
||||
<Compile Include="UploadDialog.xaml.cs">
|
||||
<DependentUpon>UploadDialog.xaml</DependentUpon>
|
||||
</Compile>
|
||||
@@ -2491,392 +2492,392 @@
|
||||
<ItemGroup>
|
||||
<PublishFile Include="Blacklight.Wpf.Controls">
|
||||
<Visible>False</Visible>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<Group>
|
||||
</Group>
|
||||
<TargetPath>
|
||||
</TargetPath>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<FileType>Assembly</FileType>
|
||||
</PublishFile>
|
||||
<PublishFile Include="DevExpress.Charts.v17.1.Core">
|
||||
<Visible>False</Visible>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<Group>
|
||||
</Group>
|
||||
<TargetPath>
|
||||
</TargetPath>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<FileType>Assembly</FileType>
|
||||
</PublishFile>
|
||||
<PublishFile Include="DevExpress.Data.v17.1">
|
||||
<Visible>False</Visible>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<Group>
|
||||
</Group>
|
||||
<TargetPath>
|
||||
</TargetPath>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<FileType>Assembly</FileType>
|
||||
</PublishFile>
|
||||
<PublishFile Include="DevExpress.Data.v17.1.Linq">
|
||||
<Visible>False</Visible>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<Group>
|
||||
</Group>
|
||||
<TargetPath>
|
||||
</TargetPath>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<FileType>Assembly</FileType>
|
||||
</PublishFile>
|
||||
<PublishFile Include="DevExpress.Office.v17.1.Core">
|
||||
<Visible>False</Visible>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<Group>
|
||||
</Group>
|
||||
<TargetPath>
|
||||
</TargetPath>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<FileType>Assembly</FileType>
|
||||
</PublishFile>
|
||||
<PublishFile Include="DevExpress.PivotGrid.v17.1.Core">
|
||||
<Visible>False</Visible>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<Group>
|
||||
</Group>
|
||||
<TargetPath>
|
||||
</TargetPath>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<FileType>Assembly</FileType>
|
||||
</PublishFile>
|
||||
<PublishFile Include="DevExpress.Printing.v17.1.Core">
|
||||
<Visible>False</Visible>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<Group>
|
||||
</Group>
|
||||
<TargetPath>
|
||||
</TargetPath>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<FileType>Assembly</FileType>
|
||||
</PublishFile>
|
||||
<PublishFile Include="DevExpress.RichEdit.v17.1.Core">
|
||||
<Visible>False</Visible>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<Group>
|
||||
</Group>
|
||||
<TargetPath>
|
||||
</TargetPath>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<FileType>Assembly</FileType>
|
||||
</PublishFile>
|
||||
<PublishFile Include="DevExpress.RichEdit.v17.1.Export">
|
||||
<Visible>False</Visible>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<Group>
|
||||
</Group>
|
||||
<TargetPath>
|
||||
</TargetPath>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<FileType>Assembly</FileType>
|
||||
</PublishFile>
|
||||
<PublishFile Include="DevExpress.Sparkline.v17.1.Core">
|
||||
<Visible>False</Visible>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<Group>
|
||||
</Group>
|
||||
<TargetPath>
|
||||
</TargetPath>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<FileType>Assembly</FileType>
|
||||
</PublishFile>
|
||||
<PublishFile Include="DevExpress.Utils.v17.1">
|
||||
<Visible>False</Visible>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<Group>
|
||||
</Group>
|
||||
<TargetPath>
|
||||
</TargetPath>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<FileType>Assembly</FileType>
|
||||
</PublishFile>
|
||||
<PublishFile Include="DevExpress.Xpf.Accordion.v17.1">
|
||||
<Visible>False</Visible>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<Group>
|
||||
</Group>
|
||||
<TargetPath>
|
||||
</TargetPath>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<FileType>Assembly</FileType>
|
||||
</PublishFile>
|
||||
<PublishFile Include="DevExpress.Xpf.Charts.v17.1">
|
||||
<Visible>False</Visible>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<Group>
|
||||
</Group>
|
||||
<TargetPath>
|
||||
</TargetPath>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<FileType>Assembly</FileType>
|
||||
</PublishFile>
|
||||
<PublishFile Include="DevExpress.Xpf.Core.v17.1">
|
||||
<Visible>False</Visible>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<Group>
|
||||
</Group>
|
||||
<TargetPath>
|
||||
</TargetPath>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<FileType>Assembly</FileType>
|
||||
</PublishFile>
|
||||
<PublishFile Include="DevExpress.Xpf.Docking.v17.1">
|
||||
<Visible>False</Visible>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<Group>
|
||||
</Group>
|
||||
<TargetPath>
|
||||
</TargetPath>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<FileType>Assembly</FileType>
|
||||
</PublishFile>
|
||||
<PublishFile Include="DevExpress.Xpf.Grid.v17.1">
|
||||
<Visible>False</Visible>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<Group>
|
||||
</Group>
|
||||
<TargetPath>
|
||||
</TargetPath>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<FileType>Assembly</FileType>
|
||||
</PublishFile>
|
||||
<PublishFile Include="DevExpress.Xpf.Grid.v17.1.Core">
|
||||
<Visible>False</Visible>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<Group>
|
||||
</Group>
|
||||
<TargetPath>
|
||||
</TargetPath>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<FileType>Assembly</FileType>
|
||||
</PublishFile>
|
||||
<PublishFile Include="DevExpress.Xpf.Layout.v17.1.Core">
|
||||
<Visible>False</Visible>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<Group>
|
||||
</Group>
|
||||
<TargetPath>
|
||||
</TargetPath>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<FileType>Assembly</FileType>
|
||||
</PublishFile>
|
||||
<PublishFile Include="DevExpress.Xpf.Mvvm.v17.1">
|
||||
<Visible>False</Visible>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<Group>
|
||||
</Group>
|
||||
<TargetPath>
|
||||
</TargetPath>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<FileType>Assembly</FileType>
|
||||
</PublishFile>
|
||||
<PublishFile Include="DevExpress.Xpf.Printing.v17.1">
|
||||
<Visible>False</Visible>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<Group>
|
||||
</Group>
|
||||
<TargetPath>
|
||||
</TargetPath>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<FileType>Assembly</FileType>
|
||||
</PublishFile>
|
||||
<PublishFile Include="DevExpress.Xpf.Printing.v17.1.Core">
|
||||
<Visible>False</Visible>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<Group>
|
||||
</Group>
|
||||
<TargetPath>
|
||||
</TargetPath>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<FileType>Assembly</FileType>
|
||||
</PublishFile>
|
||||
<PublishFile Include="DevExpress.Xpf.Ribbon.v17.1">
|
||||
<Visible>False</Visible>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<Group>
|
||||
</Group>
|
||||
<TargetPath>
|
||||
</TargetPath>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<FileType>Assembly</FileType>
|
||||
</PublishFile>
|
||||
<PublishFile Include="DevExpress.Xpf.Scheduler.v17.1">
|
||||
<Visible>False</Visible>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<Group>
|
||||
</Group>
|
||||
<TargetPath>
|
||||
</TargetPath>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<FileType>Assembly</FileType>
|
||||
</PublishFile>
|
||||
<PublishFile Include="DevExpress.Xpf.Themes.LightGray.v17.1">
|
||||
<Visible>False</Visible>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<Group>
|
||||
</Group>
|
||||
<TargetPath>
|
||||
</TargetPath>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<FileType>Assembly</FileType>
|
||||
</PublishFile>
|
||||
<PublishFile Include="DevExpress.Xpf.Themes.Office2007Black.v17.1">
|
||||
<Visible>False</Visible>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<Group>
|
||||
</Group>
|
||||
<TargetPath>
|
||||
</TargetPath>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<FileType>Assembly</FileType>
|
||||
</PublishFile>
|
||||
<PublishFile Include="DevExpress.Xpf.Themes.Office2010Black.v17.1">
|
||||
<Visible>False</Visible>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<Group>
|
||||
</Group>
|
||||
<TargetPath>
|
||||
</TargetPath>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<FileType>Assembly</FileType>
|
||||
</PublishFile>
|
||||
<PublishFile Include="DevExpress.Xpf.Themes.Office2013.v17.1">
|
||||
<Visible>False</Visible>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<Group>
|
||||
</Group>
|
||||
<TargetPath>
|
||||
</TargetPath>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<FileType>Assembly</FileType>
|
||||
</PublishFile>
|
||||
<PublishFile Include="DevExpress.Xpf.Themes.Office2016White.v17.1">
|
||||
<Visible>False</Visible>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<Group>
|
||||
</Group>
|
||||
<TargetPath>
|
||||
</TargetPath>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<FileType>Assembly</FileType>
|
||||
</PublishFile>
|
||||
<PublishFile Include="DevExpress.XtraBars.v17.1">
|
||||
<Visible>False</Visible>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<Group>
|
||||
</Group>
|
||||
<TargetPath>
|
||||
</TargetPath>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<FileType>Assembly</FileType>
|
||||
</PublishFile>
|
||||
<PublishFile Include="DevExpress.XtraCharts.v17.1">
|
||||
<Visible>False</Visible>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<Group>
|
||||
</Group>
|
||||
<TargetPath>
|
||||
</TargetPath>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<FileType>Assembly</FileType>
|
||||
</PublishFile>
|
||||
<PublishFile Include="DevExpress.XtraEditors.v17.1">
|
||||
<Visible>False</Visible>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<Group>
|
||||
</Group>
|
||||
<TargetPath>
|
||||
</TargetPath>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<FileType>Assembly</FileType>
|
||||
</PublishFile>
|
||||
<PublishFile Include="DevExpress.XtraNavBar.v17.1">
|
||||
<Visible>False</Visible>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<Group>
|
||||
</Group>
|
||||
<TargetPath>
|
||||
</TargetPath>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<FileType>Assembly</FileType>
|
||||
</PublishFile>
|
||||
<PublishFile Include="DevExpress.XtraPivotGrid.v17.1">
|
||||
<Visible>False</Visible>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<Group>
|
||||
</Group>
|
||||
<TargetPath>
|
||||
</TargetPath>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<FileType>Assembly</FileType>
|
||||
</PublishFile>
|
||||
<PublishFile Include="DevExpress.XtraPrinting.v17.1">
|
||||
<Visible>False</Visible>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<Group>
|
||||
</Group>
|
||||
<TargetPath>
|
||||
</TargetPath>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<FileType>Assembly</FileType>
|
||||
</PublishFile>
|
||||
<PublishFile Include="DevExpress.XtraReports.v17.1">
|
||||
<Visible>False</Visible>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<Group>
|
||||
</Group>
|
||||
<TargetPath>
|
||||
</TargetPath>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<FileType>Assembly</FileType>
|
||||
</PublishFile>
|
||||
<PublishFile Include="DevExpress.XtraScheduler.v17.1">
|
||||
<Visible>False</Visible>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<Group>
|
||||
</Group>
|
||||
<TargetPath>
|
||||
</TargetPath>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<FileType>Assembly</FileType>
|
||||
</PublishFile>
|
||||
<PublishFile Include="DevExpress.XtraScheduler.v17.1.Core">
|
||||
<Visible>False</Visible>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<Group>
|
||||
</Group>
|
||||
<TargetPath>
|
||||
</TargetPath>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<FileType>Assembly</FileType>
|
||||
</PublishFile>
|
||||
<PublishFile Include="DevExpress.XtraScheduler.v17.1.Reporting">
|
||||
<Visible>False</Visible>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<Group>
|
||||
</Group>
|
||||
<TargetPath>
|
||||
</TargetPath>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<FileType>Assembly</FileType>
|
||||
</PublishFile>
|
||||
<PublishFile Include="DevExpress.XtraTreeList.v17.1">
|
||||
<Visible>False</Visible>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<Group>
|
||||
</Group>
|
||||
<TargetPath>
|
||||
</TargetPath>
|
||||
<PublishState>Include</PublishState>
|
||||
<IncludeHash>True</IncludeHash>
|
||||
<FileType>Assembly</FileType>
|
||||
</PublishFile>
|
||||
</ItemGroup>
|
||||
|
||||
@@ -110,44 +110,44 @@ namespace BeWo.View.Controls
|
||||
|
||||
case 0: return EmployeeInformation.Employee.LastNameFirstName;
|
||||
//Auskommentieren für nur eine Zeile
|
||||
case 1:
|
||||
//case 1:
|
||||
|
||||
foreach (var contract in EmployeeInformation.Contracts)
|
||||
{
|
||||
sb.Append(contract.EmploymentType?.Name);
|
||||
sb.Append('/');
|
||||
}
|
||||
// foreach (var contract in EmployeeInformation.Contracts)
|
||||
// {
|
||||
// sb.Append(contract.EmploymentType?.Name);
|
||||
// sb.Append('/');
|
||||
// }
|
||||
|
||||
sb.Remove(sb.Length - 1, 1);
|
||||
// sb.Remove(sb.Length - 1, 1);
|
||||
|
||||
return sb.ToString();
|
||||
// return sb.ToString();
|
||||
|
||||
case 2:
|
||||
//case 2:
|
||||
|
||||
foreach (var contract in EmployeeInformation.Contracts)
|
||||
{
|
||||
sb.Append('(');
|
||||
// foreach (var contract in EmployeeInformation.Contracts)
|
||||
// {
|
||||
// sb.Append('(');
|
||||
|
||||
if (contract.EntryDate.HasValue)
|
||||
sb.Append(contract.EntryDate.Value.ToString("dd.MM.yy"));
|
||||
else
|
||||
sb.Append("k.A.");
|
||||
// if (contract.EntryDate.HasValue)
|
||||
// sb.Append(contract.EntryDate.Value.ToString("dd.MM.yy"));
|
||||
// else
|
||||
// sb.Append("k.A.");
|
||||
|
||||
sb.Append(" - ");
|
||||
// sb.Append(" - ");
|
||||
|
||||
if (contract.ContractEndDate.HasValue)
|
||||
sb.Append(contract.ContractEndDate.Value.ToString("dd.MM.yy"));
|
||||
else
|
||||
sb.Append("unbefr.");
|
||||
// if (contract.ContractEndDate.HasValue)
|
||||
// sb.Append(contract.ContractEndDate.Value.ToString("dd.MM.yy"));
|
||||
// else
|
||||
// sb.Append("unbefr.");
|
||||
|
||||
sb.Append(')');
|
||||
// sb.Append(')');
|
||||
|
||||
sb.Append('/');
|
||||
}
|
||||
// sb.Append('/');
|
||||
// }
|
||||
|
||||
sb.Remove(sb.Length - 1, 1);
|
||||
// sb.Remove(sb.Length - 1, 1);
|
||||
|
||||
return sb.ToString();
|
||||
// return sb.ToString();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -41,7 +41,80 @@
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
</localView:BeWoView.Resources>
|
||||
|
||||
<ControlTemplate x:Key="SelectionTemplate">
|
||||
<Grid IsHitTestVisible="False" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
|
||||
<Path Opacity="0.7" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
|
||||
<Path.Fill>
|
||||
<LinearGradientBrush StartPoint="0,0" EndPoint="1,1">
|
||||
<GradientStop Color="#F3ECA5" Offset="0" />
|
||||
</LinearGradientBrush>
|
||||
</Path.Fill>
|
||||
<Path.Data>
|
||||
<PathGeometry x:Name="Geometry" FillRule="Nonzero" />
|
||||
</Path.Data>
|
||||
</Path>
|
||||
</Grid>
|
||||
</ControlTemplate>
|
||||
<Style x:Key="TimelineViewCellStyle" TargetType="{x:Type dxschi:VisualSingleTimelineCell}">
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type dxschi:VisualSingleTimelineCell}">
|
||||
<Grid x:Name="cell" SnapsToDevicePixels="True" Background="#FFFFFF">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid Grid.Column="0" SnapsToDevicePixels="True">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="*" />
|
||||
<RowDefinition Height="Auto" />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="*" />
|
||||
</Grid.RowDefinitions>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<ContentControl Grid.Row="1"
|
||||
x:Name="PART_CONTENT"
|
||||
Content="{Binding}" HorizontalContentAlignment="Stretch"
|
||||
VerticalContentAlignment="Stretch"
|
||||
dxsch:SchedulerControl.HitTestType="Cell"
|
||||
IsHitTestVisible="True">
|
||||
<ContentControl.ContentTemplate>
|
||||
<DataTemplate>
|
||||
<Rectangle Fill="Transparent" />
|
||||
</DataTemplate>
|
||||
</ContentControl.ContentTemplate>
|
||||
</ContentControl>
|
||||
|
||||
</Grid>
|
||||
<Rectangle x:Name="bottomBorder" Fill="Gray" Height="1" SnapsToDevicePixels="True" Grid.Row="1" />
|
||||
</Grid>
|
||||
<Rectangle x:Name="rightBorder" Fill="Gray" Width="1" SnapsToDevicePixels="True" Grid.Column="1" />
|
||||
</Grid>
|
||||
<ControlTemplate.Triggers>
|
||||
<DataTrigger Binding="{Binding IsWorkTime}" Value="False">
|
||||
<Setter TargetName="cell" Property="Background" Value="#EFEFEF" />
|
||||
<Setter TargetName="rightBorder" Property="Fill" Value="Gray" />
|
||||
<Setter TargetName="bottomBorder" Property="Fill" Value="Gray" />
|
||||
</DataTrigger>
|
||||
<DataTrigger Binding="{Binding }" Value="True">
|
||||
<Setter TargetName="cell" Property="Background" Value="LightPink" />
|
||||
</DataTrigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
|
||||
</Style>
|
||||
|
||||
|
||||
</localView:BeWoView.Resources>
|
||||
<Grid>
|
||||
<GroupBox Header="Abwesenheiten" Style="{StaticResource ObjectEditGroupBox}">
|
||||
<Grid>
|
||||
@@ -96,9 +169,9 @@
|
||||
x:Name="_SchedulerControl" ActiveViewType="Timeline" Visibility="Collapsed" GroupType="Resource"
|
||||
IsManipulationEnabled="True" AllowDrop="False" IsTabStop="False" EditAppointmentFormShowing="SchedularControl_EditAppointmentFormShowing"
|
||||
EditRecurrentAppointmentFormShowing="SchedularControl_EditRecurrentAppointmentFormShowing" FormCustomizationUsingMVVMLocal="False"
|
||||
AppointmentViewInfoCustomizing="SchedulerControl_AppointmentViewInfoCustomizing" PopupMenuShowing="SchedulerControl_PopupMenuShowing"
|
||||
|
||||
>
|
||||
AppointmentViewInfoCustomizing="SchedulerControl_AppointmentViewInfoCustomizing" PopupMenuShowing="SchedulerControl_PopupMenuShowing"
|
||||
>
|
||||
|
||||
<dxsch:SchedulerControl.DefaultMenuCustomizations>
|
||||
<dxb:RemoveBarItemAndLinkAction ItemName="NewAllDayEvent" />
|
||||
<dxb:RemoveBarItemAndLinkAction ItemName="NewRecurringAppointment" />
|
||||
|
||||
@@ -73,6 +73,8 @@ namespace BeWo.View.Detail.Report
|
||||
linkGiftLeaveday.NavigateUri = BeWoApp.SiteOfOrigin;
|
||||
|
||||
_EmployeeDict = new Dictionary<long, EmployeeDC>();
|
||||
ApplyCellStyles();
|
||||
ApplySelectionTemplate();
|
||||
}
|
||||
|
||||
|
||||
@@ -335,15 +337,9 @@ namespace BeWo.View.Detail.Report
|
||||
var resource = _SchedulerStorage.CreateResource(employee.EmployeeOid.Value.ToString());
|
||||
|
||||
resource.Caption = employee.LastNameFirstName;
|
||||
//resource.CustomFields[nameof(EmployeeDC)] = employee; //Liste mit CustomFields wird um einen erweitert; Value wird auf Employee gesetzt.
|
||||
// Jetzt sind alle Infos vom Employee in der Ressource vorhanden
|
||||
|
||||
|
||||
resource.CustomFields[nameof(AbwesenheitsInformationDC)] = infoDC;
|
||||
|
||||
//resource.CustomFields["int"] = _MonthPicker.SelectedMonth;
|
||||
//resource.CustomFields["Jahr"] = (int)_YearPicker.SelectedItem;
|
||||
|
||||
|
||||
|
||||
_EmployeeDict.Add(employee.EmployeeOid.Value, employee);
|
||||
_ResourceStorage.Add(resource);
|
||||
@@ -486,6 +482,16 @@ namespace BeWo.View.Detail.Report
|
||||
|
||||
return tageUrlaub;
|
||||
}
|
||||
|
||||
private void ApplyCellStyles()
|
||||
{
|
||||
_SchedulerControl.TimelineView.CellStyle = (Style)this.FindResource("TimelineViewCellStyle");
|
||||
}
|
||||
private void ApplySelectionTemplate()
|
||||
{
|
||||
_SchedulerControl.TimelineView.SelectionTemplate = (ControlTemplate)this.FindResource("SelectionTemplate");
|
||||
}
|
||||
|
||||
private decimal CountKrankheitstage(AbwesenheitsInformationDC info)
|
||||
{
|
||||
int tageKrankheit = 0;
|
||||
|
||||
@@ -43,13 +43,14 @@
|
||||
<ControlTemplate x:Key="ctrlUrlaubKrankheit">
|
||||
<controls:DPCtrlUrlaubKrankheit Margin="0" Focusable="True" UrlaubKrankheitInformation="{Binding Value}"/>
|
||||
</ControlTemplate>
|
||||
|
||||
|
||||
|
||||
|
||||
<dxg:GridColumn x:Key="gridColumn" AllowAutoFilter="False" AllowBestFit="False" AllowCellMerge="False" AllowColumnFiltering="False" AllowConditionalFormattingMenu="False"
|
||||
AllowEditing="False" AllowGrouping="False" AllowMoving="False" AllowResizing="False" AllowSearchPanel="False" AllowSorting="False" AllowUnboundExpressionEditor="False" />
|
||||
|
||||
</localView:BeWoView.Resources>
|
||||
|
||||
|
||||
<GroupBox Header="Dienstplanung" Style="{StaticResource ObjectEditGroupBox}" MouseDown="GroupBox_MouseDown" Background="#00000000">
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
@@ -238,7 +239,7 @@
|
||||
</ListBox>
|
||||
<Button x:Name="Btn_RegelSchichtHinzufuegen" Grid.Column="3" Grid.Row="2" Margin="5 5 0 0" Content="Hinzufügen" Click="Btn_RegelSchichtHinzufuegen_Click"/>
|
||||
<Button x:Name="Btn_RegelSchichtEntfernen" Grid.Column="2" Grid.Row="2" Margin="0 5 0 0" Content="Löschen" Click="Btn_RegelSchichtEntfernen_Click"/>
|
||||
<!--<Button x:Name="Btn_ZeileHinzufuegen" Grid.Column="0" Grid.Row="2" Margin="0 5 0 0" HorizontalAlignment="Left" Content="Zeile hinzufügen" Click="Btn_ZeileHinzufuegen_Click"/>-->
|
||||
<Button x:Name="Btn_ZeileHinzufuegen" Grid.Column="0" Grid.Row="2" Margin="0 5 0 0" HorizontalAlignment="Left" Content="Zeile hinzufügen" Click="Btn_ZeileHinzufuegen_Click"/>
|
||||
</Grid>
|
||||
</GroupBox>
|
||||
</Border>
|
||||
|
||||
@@ -1542,9 +1542,9 @@ namespace BeWo.View.Detail.Report
|
||||
var zeile = _DienstplanerRootObj.DienstZeilenListe[i];
|
||||
if (i < _DienstplanerRootObj.DienstZeilenListe.Count - 1)
|
||||
{
|
||||
if (zeile.Employee == emp && _DienstplanerRootObj.DienstZeilenListe[i + 1].Employee != zeile.Employee && zeile.Zeile + 1 <= 2) //Letzte Zeile des ausgewählten Mitarbeiters
|
||||
if (zeile.Employee == emp && _DienstplanerRootObj.DienstZeilenListe[i + 1].Employee != zeile.Employee && zeile.Zeile + 1 <= 19) //Letzte Zeile des ausgewählten Mitarbeiters
|
||||
{
|
||||
_DienstplanerRootObj.DienstZeilenListe.Insert(zeile.Zeile + 1,
|
||||
_DienstplanerRootObj.DienstZeilenListe.Insert(i + 1,
|
||||
new DienstZeileDC()
|
||||
{
|
||||
Contracts = zeile.Contracts,
|
||||
@@ -1870,8 +1870,8 @@ namespace BeWo.View.Detail.Report
|
||||
{
|
||||
var zeileDC = eintragDC.DienstDictArray[i];
|
||||
|
||||
//if(zeileDC.Count > 0 || i == 0) //Nur eine Zeile
|
||||
//{
|
||||
if (zeileDC.Count > 0 || i == 0) //Nur eine Zeile
|
||||
{
|
||||
var newDic = new Dictionary<int, DienstInfoDC>();
|
||||
|
||||
if (zeileDC != null)
|
||||
@@ -1882,8 +1882,8 @@ namespace BeWo.View.Detail.Report
|
||||
toAdd.DienstDictUpdated += dienstDictUpdate;
|
||||
|
||||
res.Add(toAdd);
|
||||
//}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return res;
|
||||
|
||||
@@ -148,7 +148,7 @@ namespace BeWo.Service.Dienstplanung
|
||||
Employee = emp,
|
||||
Contracts = contracts,
|
||||
Wohnheim = whDC,
|
||||
DienstDictArray = new Dictionary<int, long>[3]
|
||||
DienstDictArray = new Dictionary<int, long>[20]
|
||||
};
|
||||
|
||||
for (int i = 0; i < zeile.DienstDictArray.Length; i++)
|
||||
@@ -184,7 +184,7 @@ namespace BeWo.Service.Dienstplanung
|
||||
Employee = emp,
|
||||
Contracts = contracts,
|
||||
Wohnheim = whDC,
|
||||
DienstDictArray = new Dictionary<int, long>[3]
|
||||
DienstDictArray = new Dictionary<int, long>[20]
|
||||
};
|
||||
|
||||
for (int i = 0; i < zeile.DienstDictArray.Length; i++)
|
||||
@@ -262,7 +262,7 @@ namespace BeWo.Service.Dienstplanung
|
||||
Employee = emp,
|
||||
Contracts = contracts,
|
||||
Wohnheim = whDC,
|
||||
DienstDictArray = new Dictionary<int, long>[3]
|
||||
DienstDictArray = new Dictionary<int, long>[20]
|
||||
};
|
||||
|
||||
for (int i = 0; i < zeile.DienstDictArray.Length; i++)
|
||||
|
||||
Reference in New Issue
Block a user