MH: Button hinzugefügt, der alle Mitarbeiter für eine Hilfeplanaufgabe hinzufügt + Haus Duelken fix in AZE
This commit is contained in:
19
BeWo.sln
19
BeWo.sln
@@ -567,6 +567,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BellaDonna", "ReportImp\Bel
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BehindertNaUnd", "ReportImp\BehindertNaUnd\BehindertNaUnd.csproj", "{13735B44-C4A2-467A-85C3-BDFD9939EE77}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HausDuelken", "ReportImp\HausDuelken\HausDuelken.csproj", "{ED3DBD24-B774-41E5-A856-99FF78D828A8}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|.NET = Debug|.NET
|
||||
@@ -4490,6 +4492,22 @@ Global
|
||||
{13735B44-C4A2-467A-85C3-BDFD9939EE77}.Release|Mixed Platforms.Build.0 = Release|Any CPU
|
||||
{13735B44-C4A2-467A-85C3-BDFD9939EE77}.Release|x86.ActiveCfg = Release|Any CPU
|
||||
{13735B44-C4A2-467A-85C3-BDFD9939EE77}.Release|x86.Build.0 = Release|Any CPU
|
||||
{ED3DBD24-B774-41E5-A856-99FF78D828A8}.Debug|.NET.ActiveCfg = Debug|Any CPU
|
||||
{ED3DBD24-B774-41E5-A856-99FF78D828A8}.Debug|.NET.Build.0 = Debug|Any CPU
|
||||
{ED3DBD24-B774-41E5-A856-99FF78D828A8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{ED3DBD24-B774-41E5-A856-99FF78D828A8}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{ED3DBD24-B774-41E5-A856-99FF78D828A8}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
|
||||
{ED3DBD24-B774-41E5-A856-99FF78D828A8}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
|
||||
{ED3DBD24-B774-41E5-A856-99FF78D828A8}.Debug|x86.ActiveCfg = Debug|Any CPU
|
||||
{ED3DBD24-B774-41E5-A856-99FF78D828A8}.Debug|x86.Build.0 = Debug|Any CPU
|
||||
{ED3DBD24-B774-41E5-A856-99FF78D828A8}.Release|.NET.ActiveCfg = Release|Any CPU
|
||||
{ED3DBD24-B774-41E5-A856-99FF78D828A8}.Release|.NET.Build.0 = Release|Any CPU
|
||||
{ED3DBD24-B774-41E5-A856-99FF78D828A8}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{ED3DBD24-B774-41E5-A856-99FF78D828A8}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{ED3DBD24-B774-41E5-A856-99FF78D828A8}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
|
||||
{ED3DBD24-B774-41E5-A856-99FF78D828A8}.Release|Mixed Platforms.Build.0 = Release|Any CPU
|
||||
{ED3DBD24-B774-41E5-A856-99FF78D828A8}.Release|x86.ActiveCfg = Release|Any CPU
|
||||
{ED3DBD24-B774-41E5-A856-99FF78D828A8}.Release|x86.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
@@ -4769,6 +4787,7 @@ Global
|
||||
{0814AFF5-295C-457A-9741-2BE309E9D437} = {D8A691C5-146D-4613-86CC-438F02FE9106}
|
||||
{DEC65E83-5B19-42EC-A75E-C0A6AE700567} = {D8A691C5-146D-4613-86CC-438F02FE9106}
|
||||
{13735B44-C4A2-467A-85C3-BDFD9939EE77} = {D8A691C5-146D-4613-86CC-438F02FE9106}
|
||||
{ED3DBD24-B774-41E5-A856-99FF78D828A8} = {D8A691C5-146D-4613-86CC-438F02FE9106}
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {FBE985BB-9F0F-4DBB-8F94-ABC37A803FF9}
|
||||
|
||||
@@ -1137,7 +1137,10 @@
|
||||
<Line X1="8" X2="8" Y1="4" Y2="12" Fill="{x:Null}" Stroke="#FFFFFFFF" StrokeStartLineCap="Round" StrokeEndLineCap="Round" StrokeThickness="2" HorizontalAlignment="Center" VerticalAlignment="Center" Width="16" Height="16" />
|
||||
</Grid>
|
||||
</Button>
|
||||
</StackPanel>
|
||||
<Button x:Name="button_addAllEmployee" HorizontalAlignment="Right" VerticalAlignment="Top" Height="21" Margin="3" Click="button_addAllEmployee_Click" Content="{markup:Translate Für alle Mitarbeiter}" ToolTip="{markup:Translate Aufgabe allen Mitarbeitern hinzufügen}" />
|
||||
|
||||
|
||||
</StackPanel>
|
||||
<ListView Grid.Row="1" Grid.Column="2" Grid.RowSpan="2" Margin="3" HorizontalAlignment="Stretch" Height="100" ScrollViewer.VerticalScrollBarVisibility="Auto" ItemsSource="{Binding Tasks.NewVM.EmployeeList}" x:Name="taskEmployeeListView">
|
||||
<ListView.ItemContainerStyle>
|
||||
<Style TargetType="{x:Type ListBoxItem}">
|
||||
|
||||
@@ -707,6 +707,38 @@ namespace BeWo.View.Detail
|
||||
{
|
||||
popup_employee.IsOpen = true;
|
||||
}
|
||||
private void button_addAllEmployee_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
if (MessageBox.Show("Wollen Sie die Aufgabe " + Translator.Translate("jedem Mitarbeiter") + " zuordnen?", "Achtung", MessageBoxButton.YesNo, MessageBoxImage.Exclamation) == MessageBoxResult.Yes)
|
||||
{
|
||||
var allEmployee = ServiceFacade.DoEmployeeServiceSync(s => s.GetAllActiveEmployeesCompact());
|
||||
//var relations = SelectedApprovalPeriodVM.SupportConceptApprovalEmployeeRelations;
|
||||
|
||||
foreach (var emp in allEmployee)
|
||||
{
|
||||
if (employeeEditFlag)
|
||||
{
|
||||
var data = grid_tasks.View.FocusedRowData;
|
||||
|
||||
if (data?.RowHandle != null)
|
||||
{
|
||||
var vm = grid_tasks.GetRow(data.RowHandle.Value) as SchedulerAppointmentVM;
|
||||
|
||||
if (!vm.EmployeeList.Exists(i => i.Employee.EmployeeOid.Equals(emp.EmployeeOid)))
|
||||
{
|
||||
vm.EmployeeList.Add(new Employee2SchedulerAppointmentDC { Employee = emp });
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (!ViewModel.Tasks.NewVM.EmployeeList.Exists(i => i.Employee.EmployeeOid.Equals(emp.EmployeeOid)))
|
||||
{
|
||||
ViewModel.Tasks.NewVM.EmployeeList.Add(new Employee2SchedulerAppointmentDC { Employee = emp });
|
||||
}
|
||||
}
|
||||
|
||||
employeeEditFlag = false;
|
||||
}
|
||||
}
|
||||
|
||||
private readonly List<SchedulerAppointmentDC> _DeletedTasks = new List<SchedulerAppointmentDC>();
|
||||
|
||||
@@ -1917,6 +1949,8 @@ namespace BeWo.View.Detail
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
public class ValueListEntryTypeToColorConverter : IValueConverter
|
||||
|
||||
@@ -104,7 +104,8 @@ namespace BeWo.Data.Access
|
||||
{
|
||||
var c = CreateCriteria<DienstEintrag>()
|
||||
.Add(Restrictions.Eq("WohnheimOid", wOid))
|
||||
.Add(Restrictions.Between("Datum", start, end));
|
||||
.Add(Restrictions.Between("Datum", start, end))
|
||||
.Add(Restrictions.Eq("IsActive", ActivationTypeId.Active));
|
||||
|
||||
return c.List<DienstEintrag>();
|
||||
}
|
||||
|
||||
@@ -181,6 +181,7 @@ namespace BellaDonna.Translation
|
||||
AddOrReplaceTranslation(dict, "Mitarbeiterabschlüsse", "Abschlüsse von Mitarbeiter:innen");
|
||||
AddOrReplaceTranslation(dict, "Rollen der Mitarbeiter", "Rollen der Mitarbeiter:innen");
|
||||
AddOrReplaceTranslation(dict, "Mitarbeiter Notiz Kategorie", "Mitarbeiter:in Notiz Kategorie");
|
||||
AddOrReplaceTranslation(dict, "Aufgabe allen Mitarbeitern hinzufügen", "Aufgabe allen Mitarbeiter:innen hinzufügen");
|
||||
|
||||
|
||||
//BENUTZER
|
||||
|
||||
@@ -66,7 +66,7 @@ namespace HausDuelken
|
||||
if (item.ServiceDescription != null &&
|
||||
item.ServiceDescription.ServiceCategory != null)
|
||||
{
|
||||
if (item.ServiceDescription.ServiceCategory.Name == "Arbeit")
|
||||
if (item.ServiceDescription.ServiceCategory.Name == "Arbeit" || item.ServiceDescription.ServiceCategory.Name == "Arbeitszeit")
|
||||
{
|
||||
arbeitszeit += duration;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user