Neues Recht "Medikation bearbeiten", Icons in Ziele Auswahl in Zeiterfassung
This commit is contained in:
@@ -49,8 +49,8 @@ namespace BeWo
|
||||
public static LoginControl LoginControl;
|
||||
|
||||
public static MainControl MainControl;
|
||||
public static string ShortVersion = "3.18";
|
||||
public static string Version = "Version 3.18";
|
||||
public static string ShortVersion = "3.19";
|
||||
public static string Version = "Version 3.19";
|
||||
|
||||
public static int RenderTier = 0;
|
||||
|
||||
|
||||
@@ -91,6 +91,7 @@
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"></RowDefinition>
|
||||
@@ -102,13 +103,17 @@
|
||||
Grid.Column="0" Margin="3 2"
|
||||
VerticalAlignment="Center"
|
||||
Click="Bd_OnClick" />
|
||||
<TextBlock x:Name="BdText" Tag="{Binding}"
|
||||
Grid.Column="1" Margin="3 2"
|
||||
<Image Grid.Column="1" Source="..\..\Ressources\Icons\ziel.png" Stretch="Uniform" Margin="3,1,1,1" Width="16" Height="16" Visibility="{Binding Path=IsZiel, Converter={StaticResource BoolVisibilityConverter}}"/>
|
||||
<Image Grid.Column="1" Source="..\..\Ressources\Icons\massnahme.png" Stretch="Uniform" Margin="3,1,1,1" Width="16" Height="16" Visibility="{Binding Path=IsMassnahme, Converter={StaticResource BoolVisibilityConverter}}"/>
|
||||
<Image Grid.Column="1" Source="..\..\Ressources\Icons\iziel.png" Stretch="Uniform" Margin="3,1,1,1" Width="16" Height="16" Visibility="{Binding Path=IsIndZiel, Converter={StaticResource BoolVisibilityConverter}}"/>
|
||||
<Image Grid.Column="1" Source="..\..\Ressources\Icons\imassnahme.png" Stretch="Uniform" Margin="3,1,1,1" Width="16" Height="16" Visibility="{Binding Path=IsIndMassnahme, Converter={StaticResource BoolVisibilityConverter}}"/>
|
||||
<TextBlock x:Name="BdText" Tag="{Binding}"
|
||||
Grid.Column="2" Margin="3 2"
|
||||
Text="{Binding Path=DetailDescription}"
|
||||
VerticalAlignment="Center" HorizontalAlignment="Left" Foreground="Black"
|
||||
MouseDown="BdText_OnMouseDown" TextAlignment="Left" ToolTip="{Binding Path=GoalEntryDC.Notice}" />
|
||||
<TextBlock x:Name="RatingText" Tag="{Binding}"
|
||||
Grid.Column="1" Grid.Row="1" Margin="3 2"
|
||||
Grid.Column="2" Grid.Row="1" Margin="3 2"
|
||||
Text="{Binding Path=RatingName}"
|
||||
VerticalAlignment="Center" HorizontalAlignment="Left" Foreground="MediumBlue"
|
||||
MouseDown="BdText_OnMouseDown" TextAlignment="Left" Visibility="{Binding Path=HasRating, Converter={StaticResource BoolVisibilityConverter}}" />
|
||||
|
||||
@@ -1615,8 +1615,8 @@
|
||||
</Hyperlink>
|
||||
</TextBlock>
|
||||
</StackPanel>
|
||||
<Button Content="Bearbeiten" IsEnabled="{Binding Path=AktuelleMedikamentenverordnungsliste, Converter={StaticResource BoolNullCheckConverter}}" Click="EditMedVerordnungClick" VerticalAlignment="Center" />
|
||||
<Button Content="Löschen" IsEnabled="{Binding Path=AktuelleMedikamentenverordnungsliste, Converter={StaticResource BoolNullCheckConverter}}" Margin="3,0,0,0" Click="RemoveMedVerordnungClick" VerticalAlignment="Center" />
|
||||
<Button Content="Bearbeiten" x:Name="ButtonAktuelleMedBearbeiten" IsEnabled="{Binding Path=AktuelleMedikamentenverordnungsliste, Converter={StaticResource BoolNullCheckConverter}}" Click="EditMedVerordnungClick" VerticalAlignment="Center" />
|
||||
<Button Content="Löschen" x:Name="ButtonAktuelleMedLoeschen" IsEnabled="{Binding Path=AktuelleMedikamentenverordnungsliste, Converter={StaticResource BoolNullCheckConverter}}" Margin="3,0,0,0" Click="RemoveMedVerordnungClick" VerticalAlignment="Center" />
|
||||
</StackPanel>
|
||||
<Grid x:Name="AktuelleMVRGrid" Grid.Row="1" Grid.ColumnSpan="3" Grid.Column="0" />
|
||||
</Grid>
|
||||
@@ -1657,8 +1657,8 @@
|
||||
</Hyperlink>
|
||||
</TextBlock>
|
||||
</StackPanel>
|
||||
<Button Content="Bearbeiten" IsEnabled="{Binding Path=Bedarfsmedikamentenverordnungsliste, Converter={StaticResource BoolNullCheckConverter}}" Click="EditBedarfMedVerordnungClick" VerticalAlignment="Center" />
|
||||
<Button Content="Löschen" IsEnabled="{Binding Path=Bedarfsmedikamentenverordnungsliste, Converter={StaticResource BoolNullCheckConverter}}" Margin="3,0,0,0" Click="RemoveBedarfsMedVerordnungClick" VerticalAlignment="Center" />
|
||||
<Button Content="Bearbeiten" x:Name="ButtonBedarfMedBearbeiten" IsEnabled="{Binding Path=Bedarfsmedikamentenverordnungsliste, Converter={StaticResource BoolNullCheckConverter}}" Click="EditBedarfMedVerordnungClick" VerticalAlignment="Center" />
|
||||
<Button Content="Löschen" x:Name="ButtonBedarfMedLoeschen" IsEnabled="{Binding Path=Bedarfsmedikamentenverordnungsliste, Converter={StaticResource BoolNullCheckConverter}}" Margin="3,0,0,0" Click="RemoveBedarfsMedVerordnungClick" VerticalAlignment="Center" />
|
||||
</StackPanel>
|
||||
<Grid x:Name="BedarfsMVRGrid" Grid.Row="1" Grid.ColumnSpan="3" Grid.Column="0" />
|
||||
</Grid>
|
||||
@@ -1666,9 +1666,9 @@
|
||||
<GroupBox x:Name="GroupBoxMedikamentenverordnungen" Header="Historie" Style="{StaticResource ObjectEditGroupBox}" />
|
||||
</UniformGrid>
|
||||
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Grid.Row="1">
|
||||
<Button Content="Neu aus Bedarfsverordnung" IsEnabled="{Binding Path=Bedarfsmedikamentenverordnungsliste, Converter={StaticResource BoolNullCheckConverter}}" Click="MedVerAusBedarfsListeClick" Margin="3" />
|
||||
<Button Content="Neu aus aktueller Verordnung" IsEnabled="{Binding Path=AktuelleMedikamentenverordnungsliste, Converter={StaticResource BoolNullCheckConverter}}" Click="MedVerAusListeClick" Margin="3" />
|
||||
<Button Content="Neue Medikamentenverordnung" Click="NeueMVLHinzufuegenClick" Margin="3" />
|
||||
<Button Content="Neu aus Bedarfsverordnung" x:Name="ButtonNeuAusBedarfsverordnung" IsEnabled="{Binding Path=Bedarfsmedikamentenverordnungsliste, Converter={StaticResource BoolNullCheckConverter}}" Click="MedVerAusBedarfsListeClick" Margin="3" />
|
||||
<Button Content="Neu aus aktueller Verordnung" x:Name="ButtonNeuAusAktuellerVerordnung" IsEnabled="{Binding Path=AktuelleMedikamentenverordnungsliste, Converter={StaticResource BoolNullCheckConverter}}" Click="MedVerAusListeClick" Margin="3" />
|
||||
<Button Content="Neue Medikamentenverordnung" x:Name="ButtonNeueMedikamentenverordnung" Click="NeueMVLHinzufuegenClick" Margin="3" />
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</TabItem>
|
||||
|
||||
@@ -228,6 +228,16 @@ namespace BeWo.View.Detail
|
||||
{
|
||||
tabitem_Medikamentenverordnungen.Visibility = Visibility.Collapsed;
|
||||
}
|
||||
if (!BeWoApp.LoggedOnUser.HasRight(UserRightType.Customer_EditMedication))
|
||||
{
|
||||
ButtonAktuelleMedBearbeiten.Visibility = Visibility.Collapsed;
|
||||
ButtonAktuelleMedLoeschen.Visibility = Visibility.Collapsed;
|
||||
ButtonBedarfMedBearbeiten.Visibility = Visibility.Collapsed;
|
||||
ButtonBedarfMedLoeschen.Visibility = Visibility.Collapsed;
|
||||
ButtonNeuAusBedarfsverordnung.Visibility = Visibility.Collapsed;
|
||||
ButtonNeuAusAktuellerVerordnung.Visibility = Visibility.Collapsed;
|
||||
ButtonNeueMedikamentenverordnung.Visibility = Visibility.Collapsed;
|
||||
}
|
||||
|
||||
var l = new List<int>();
|
||||
for (var i = 9; i >= 0; i--)
|
||||
|
||||
@@ -157,7 +157,7 @@ namespace BeWo.ViewModel
|
||||
|
||||
private static bool IsMedicationRight(UserRightType userRightType)
|
||||
{
|
||||
if (userRightType == UserRightType.Customer_ViewMedication)
|
||||
if (userRightType == UserRightType.Customer_ViewMedication || userRightType == UserRightType.Customer_EditMedication)
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -147,7 +147,11 @@ namespace BeWo.Data.Security
|
||||
{
|
||||
return "3.18";
|
||||
}
|
||||
|
||||
if (r == UserRightType.Customer_EditMedication)
|
||||
{
|
||||
return "3.19";
|
||||
}
|
||||
|
||||
return "1.0";
|
||||
}
|
||||
|
||||
|
||||
@@ -2437,28 +2437,30 @@ namespace BeWo.Report.ReportObjects
|
||||
{
|
||||
foreach (var at in emp.AbsenceTimes)
|
||||
{
|
||||
|
||||
if ((!at.Start.HasValue || at.Start.Value <= arbeitstagEnde.Date) && (!at.End.HasValue || at.End.Value >= arbeitstagStart.Date))
|
||||
if (IstAnrechenbareAbsenceTime(at))
|
||||
{
|
||||
var faktor = GetFeiertagsFaktor(arbeitstagStart);
|
||||
|
||||
if (faktor < 1)
|
||||
if ((!at.Start.HasValue || at.Start.Value <= arbeitstagEnde.Date) && (!at.End.HasValue || at.End.Value >= arbeitstagStart.Date))
|
||||
{
|
||||
var hours = (decimal)arbeitstagEnde.Subtract(arbeitstagStart).TotalHours;
|
||||
var faktor = GetFeiertagsFaktor(arbeitstagStart);
|
||||
|
||||
// Prüfen, ob halber Tag
|
||||
if ((at.Start.HasValue && at.Start.Value.Date != at.Start.Value) || (at.End.HasValue && at.End.Value.Date != at.End.Value))
|
||||
hours /= 2;
|
||||
|
||||
if (faktor != 0)
|
||||
if (faktor < 1)
|
||||
{
|
||||
hours *= faktor;
|
||||
var hours = (decimal)arbeitstagEnde.Subtract(arbeitstagStart).TotalHours;
|
||||
|
||||
// Prüfen, ob halber Tag
|
||||
if ((at.Start.HasValue && at.Start.Value.Date != at.Start.Value) || (at.End.HasValue && at.End.Value.Date != at.End.Value))
|
||||
hours /= 2;
|
||||
|
||||
if (faktor != 0)
|
||||
{
|
||||
hours *= faktor;
|
||||
}
|
||||
|
||||
return hours;
|
||||
}
|
||||
|
||||
return hours;
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2847,51 +2849,54 @@ namespace BeWo.Report.ReportObjects
|
||||
|
||||
foreach (var at in emp.AbsenceTimes)
|
||||
{
|
||||
if ((!at.Start.HasValue || at.Start.Value.Date <= arbeitstagEnde.Date) && (!at.End.HasValue || at.End.Value.Date >= arbeitstagStart.Date))
|
||||
if (IstAnrechenbareAbsenceTime(at))
|
||||
{
|
||||
|
||||
var faktor = GetFeiertagsFaktor(arbeitstagStart);
|
||||
|
||||
if (faktor < 1)
|
||||
if ((!at.Start.HasValue || at.Start.Value.Date <= arbeitstagEnde.Date) && (!at.End.HasValue || at.End.Value.Date >= arbeitstagStart.Date))
|
||||
{
|
||||
var tag = 1m;
|
||||
|
||||
// Prüfen, ob halber Tag
|
||||
if ((at.Start.HasValue && at.Start.Value.Date != at.Start.Value) || (at.End.HasValue && at.End.Value.Date != at.End.Value))
|
||||
tag = 0.5m;
|
||||
var faktor = GetFeiertagsFaktor(arbeitstagStart);
|
||||
|
||||
if (faktor != 0)
|
||||
if (faktor < 1)
|
||||
{
|
||||
tag *= faktor;
|
||||
hours *= faktor;
|
||||
var tag = 1m;
|
||||
|
||||
// Prüfen, ob halber Tag
|
||||
if ((at.Start.HasValue && at.Start.Value.Date != at.Start.Value) || (at.End.HasValue && at.End.Value.Date != at.End.Value))
|
||||
tag = 0.5m;
|
||||
|
||||
if (faktor != 0)
|
||||
{
|
||||
tag *= faktor;
|
||||
hours *= faktor;
|
||||
}
|
||||
|
||||
//if (at.Start.HasValue && at.End.HasValue && at.Start.Value.Day == at.End.Value.Day &&
|
||||
// at.Start.Value.Month == at.End.Value.Month)
|
||||
//{
|
||||
// var std = at.End.Value.Subtract(at.Start.Value)
|
||||
//}
|
||||
|
||||
if (IsKrankheitAbsenceTime(at))
|
||||
{
|
||||
if (!atd.TageKrankheit.HasValue)
|
||||
atd.TageKrankheit = 0;
|
||||
|
||||
atd.TageKrankheit += tag;
|
||||
}
|
||||
|
||||
if (IsUrlaubAbsenceTime(at))
|
||||
{
|
||||
if (!atd.TageUrlaub.HasValue)
|
||||
atd.TageUrlaub = 0;
|
||||
|
||||
atd.TageUrlaub += tag;
|
||||
}
|
||||
if (!atd.TageGesamt.HasValue)
|
||||
atd.TageGesamt = 0;
|
||||
|
||||
|
||||
atd.TageGesamt += tag;
|
||||
}
|
||||
|
||||
//if (at.Start.HasValue && at.End.HasValue && at.Start.Value.Day == at.End.Value.Day &&
|
||||
// at.Start.Value.Month == at.End.Value.Month)
|
||||
//{
|
||||
// var std = at.End.Value.Subtract(at.Start.Value)
|
||||
//}
|
||||
|
||||
if (IsKrankheitAbsenceTime(at))
|
||||
{
|
||||
if (!atd.TageKrankheit.HasValue)
|
||||
atd.TageKrankheit = 0;
|
||||
|
||||
atd.TageKrankheit += tag;
|
||||
}
|
||||
|
||||
if (IsUrlaubAbsenceTime(at))
|
||||
{
|
||||
if (!atd.TageUrlaub.HasValue)
|
||||
atd.TageUrlaub = 0;
|
||||
|
||||
atd.TageUrlaub += tag;
|
||||
}
|
||||
if (!atd.TageGesamt.HasValue)
|
||||
atd.TageGesamt = 0;
|
||||
|
||||
|
||||
atd.TageGesamt += tag;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -452,6 +452,8 @@ namespace KetteReports
|
||||
ro.GeleisteteFlsKlient += serviceRecord.RoundedDuration / 60;
|
||||
|
||||
ro.GeleisteteFlsGesamt += serviceRecord.RoundedDuration / 60;
|
||||
|
||||
result.GeleisteteFlsGesamtCount += ro.GeleisteteFlsGesamt;
|
||||
}
|
||||
}
|
||||
//else
|
||||
@@ -463,7 +465,7 @@ namespace KetteReports
|
||||
|
||||
ro.GeleisteteFlsOhneKlient /= 60;
|
||||
|
||||
result.GeleisteteFlsGesamtCount += ro.GeleisteteFlsGesamt;
|
||||
|
||||
|
||||
|
||||
var calc = PluginLoader.FindClass<Calculations>();
|
||||
|
||||
@@ -304,10 +304,10 @@ namespace KetteReports
|
||||
|
||||
if (!customerDoppeltVorhanden)
|
||||
{
|
||||
BerechneFls(result, ro, cb2scoid);
|
||||
|
||||
int test = 0;
|
||||
}
|
||||
|
||||
BerechneFls(result, ro, cb2scoid);
|
||||
|
||||
if (String.IsNullOrEmpty(ro.FahrdienstJa))
|
||||
{
|
||||
|
||||
@@ -80,7 +80,7 @@ namespace LebenshilfeStade.Invoicing
|
||||
// Rausfinden, ob FLS 50 statt 60 Minuten gehen
|
||||
//
|
||||
var oid = newlist.FirstOrDefault(i => i.SupportConceptApprovalPeriodOid != null).SupportConceptApprovalPeriodOid;
|
||||
SupportConceptApprovalPeriod ap = new SupportConceptApprovalPeriod();
|
||||
SupportConceptApprovalPeriod ap = null;
|
||||
if (oid != null)
|
||||
ap = DAOFactory.GenericDAO.GetByID<SupportConceptApprovalPeriod>(oid.Value);
|
||||
|
||||
|
||||
@@ -38,6 +38,9 @@
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>C:\Program Files (x86)\DevExpress 17.1\Components\Bin\Framework\DevExpress.DataAccess.v17.1.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="DevExpress.Mvvm.v17.1, Version=17.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL">
|
||||
<Private>False</Private>
|
||||
</Reference>
|
||||
<Reference Include="DevExpress.Pdf.v17.1.Core, Version=17.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
|
||||
<Reference Include="DevExpress.Printing.v17.1.Core, Version=17.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
|
||||
<Reference Include="DevExpress.Utils.v17.1, Version=17.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
|
||||
|
||||
@@ -310,6 +310,8 @@ namespace SHKService.Service
|
||||
}
|
||||
if (vertretungsItem.MailCustomer != null)
|
||||
{
|
||||
vertretungsItem.MailCustomer.Subject = "Vertretungsinformation";
|
||||
|
||||
//vertretungsItem.MailCustomer.Message = @"Lieber Klient,%0D%0A%0D%0Ablablubb%0D%0AZeile2%0D%0A%0D%0ANochne Zeile%0D%0A%0D%0ATschüss";
|
||||
if (vertretung != null)
|
||||
{
|
||||
@@ -338,16 +340,19 @@ Bei Rückfragen erreichen Sie uns an jedem Unterrichtstag von 6:30 Uhr bis 10:00
|
||||
|
||||
if (vertretungsItem.MailEmployee != null)
|
||||
{
|
||||
vertretungsItem.MailEmployee.Subject = "Vertretungsinformation";
|
||||
//vertretungsItem.MailEmployee.Message = @"Lieber MA,%0D%0A%0D%0Ablablubb%0D%0AZeile2%0D%0A%0D%0ANochne Zeile%0D%0A%0D%0ATschüss";
|
||||
}
|
||||
|
||||
if (vertretungsItem.MailVertretung != null)
|
||||
{
|
||||
vertretungsItem.MailVertretung.Subject = "Vertretungsinformation";
|
||||
//vertretungsItem.MailVertretung.Message = @"Lieber Vertreter,%0D%0A%0D%0Ablablubb%0D%0AZeile2%0D%0A%0D%0ANochne Zeile%0D%0A%0D%0ATschüss";
|
||||
}
|
||||
|
||||
if (vertretungsItem.MailSchule != null)
|
||||
{
|
||||
vertretungsItem.MailSchule.Subject = "Vertretungsinformation";
|
||||
if (vertretung != null)
|
||||
{
|
||||
String vertreterName = vertretung.Person.LastName;
|
||||
|
||||
@@ -94,6 +94,35 @@ namespace SpitalstiftungKonstanz
|
||||
return sum;
|
||||
}
|
||||
|
||||
public override bool IstAnrechenbareAbsenceTime(AbsenceTime item)
|
||||
{
|
||||
if (item.AbsenceReason.Description.ToLower().IndexOf("fza") >= 0)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return base.IstAnrechenbareAbsenceTime(item);
|
||||
}
|
||||
|
||||
|
||||
//FZA = Freizeitausgleich
|
||||
public override bool IsKrankheitAbsenceTime(AbsenceTime absenceTime)
|
||||
{
|
||||
if (absenceTime.AbsenceReason.Description.ToLower().IndexOf("fza") >= 0)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return base.IsKrankheitAbsenceTime(absenceTime);
|
||||
}
|
||||
|
||||
public override bool IsUrlaubAbsenceTime(AbsenceTime absenceTime)
|
||||
{
|
||||
if (absenceTime.AbsenceReason.Description.ToLower().IndexOf("fza") >= 0)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return base.IsUrlaubAbsenceTime(absenceTime);
|
||||
}
|
||||
|
||||
public override decimal GetFeiertagsFaktor(DateTime start)
|
||||
{
|
||||
var os = GetOsterSonntag(start.Year);
|
||||
|
||||
@@ -29,7 +29,7 @@ namespace SpitalstiftungKonstanz
|
||||
var c = ed.Employee.GetValidContractForDate(pRO.ReportStartDate);
|
||||
if (c != null)
|
||||
{
|
||||
if (c.MonthlyTotalHours.HasValue)
|
||||
if (c.MonthlyTotalHours.HasValue && c.MonthlyTotalHours.Value > 0)
|
||||
{
|
||||
ed.Regelarbeitszeit = String.Format("{0:0.00} Stunden im Monat", c.MonthlyTotalHours);
|
||||
}
|
||||
|
||||
@@ -276,7 +276,7 @@ namespace BeWo.Service.Plugins
|
||||
//t = "5929601293"; // Lebenshilfe Duisburg Frühförderung (Projekt heißt LebenshilfeDuisburgAtz)
|
||||
//t = "6860475645"; // Lebenshilfe Duisburg ATZ (Projekt heißt LebenshilfeDuisburgAtz6860475645)
|
||||
//t = "9678360705"; // Lebenshilfe Duisburg HPTG (Projekt heißt LebenshilfeDuisburgHPTG)
|
||||
//t = "4823067940"; // Die Kette 2
|
||||
t = "4823067940"; // Die Kette 2
|
||||
//t = "8283849714"; // Forum e.V. (proviel GmbH)
|
||||
//t = "3915346496"; // Sprungbrett 2. DB (Haus Theresia)
|
||||
//t = "2387527289"; // Lebenshilfe Duisburg HPFH
|
||||
@@ -347,7 +347,7 @@ namespace BeWo.Service.Plugins
|
||||
//t = "6971328056"; // SKM Krefeld
|
||||
//t = "4199238586"; // MeZ Menden;
|
||||
//t = "3226307161"; // Roman Roger Puth
|
||||
t = "3522103738"; // AWO Münsterland-Recklinghausen
|
||||
//t = "3522103738"; // AWO Münsterland-Recklinghausen
|
||||
//t = "5592509446"; // Kontakt Verein für psychosoziale Hilfen e.V
|
||||
//t = "5344902949"; // SHK Service GmbH SBD
|
||||
//t = "1422963536"; // Malteser-Johanniter-Johanneshaus gGmbH
|
||||
|
||||
@@ -271,7 +271,7 @@ namespace BeWo.Service.SBD
|
||||
{
|
||||
var customer = customers.FirstOrDefault(first => first.Oid.HasValue && first.Oid.Equals(absenceTime.CustomerOid)) ?? DAOFactory.GenericDAO.LoadByID<Customer>(absenceTime.CustomerOid.Value);
|
||||
|
||||
if (customer.Person.LastName == "Schatz")
|
||||
if (customer.Person.LastName.Contains("Dragou"))
|
||||
{
|
||||
|
||||
}
|
||||
@@ -280,10 +280,12 @@ namespace BeWo.Service.SBD
|
||||
var customerContactInformationList = LoadContactInformationForEntity<Customer>(customer.Person);
|
||||
var schools = MapperFactory.CustomerOrganisationRelationDC_Customer2Organisation.MapToNewDCs(customer.Customer2OrganisationList.Where(customer2Organisation => customer2Organisation.ValueList.Any(b => b.Entry.Type == ValueListEntryType.EnvironmentOrganisationType && IstSchule(b.Entry.Value))));
|
||||
var schoolAssistanceTimes = GetSchoolAssistanceTimes(customer, start, end, absenceTime);
|
||||
var hauptbetreuer = customer.Employee2CustomerList.FirstOrDefault(f => f.IsActive == ActivationTypeId.Active && f.ValueList.Any(b => b.Entry.Type.Equals(ValueListEntryType.StaffRoleType) && b.Entry.Value.ToLower().Equals("hauptbetreuung")))?.Employee;
|
||||
var hauptbetreuer = customer.Employee2CustomerList.FirstOrDefault(e2c => e2c.IsActive == ActivationTypeId.Active &&
|
||||
(!e2c.StartDate.HasValue || e2c.StartDate.Value.Date <= end.Date) && (!e2c.EndDate.HasValue || e2c.EndDate.Value.Date >= start.Date) &&
|
||||
e2c.ValueList.Any(b => b.Entry.Type.Equals(ValueListEntryType.StaffRoleType) && b.Entry.Value.ToLower().Equals("hauptbetreuung")))?.Employee;
|
||||
if (hauptbetreuer == null)
|
||||
{
|
||||
hauptbetreuer = customer.Employee2CustomerList.FirstOrDefault()?.Employee;
|
||||
//hauptbetreuer = customer.Employee2CustomerList.FirstOrDefault()?.Employee;
|
||||
}
|
||||
MigriereSubstitutionStatus(customer);
|
||||
|
||||
@@ -313,15 +315,18 @@ namespace BeWo.Service.SBD
|
||||
}
|
||||
});
|
||||
|
||||
var hasCaregiver = customer.Employee2CustomerList.Any(a => a.ValueList.Any(b => b.Entry.Type.Equals(ValueListEntryType.StaffRoleType) && !b.Entry.Value.ToLower().Equals("ehemalige betreuung"))) || assistingEmployees.Any();
|
||||
var hasCaregiver = customer.Employee2CustomerList.Any(e2c =>
|
||||
(!e2c.StartDate.HasValue || e2c.StartDate.Value.Date <= end.Date) && (!e2c.EndDate.HasValue || e2c.EndDate.Value.Date >= start.Date) &&
|
||||
e2c.ValueList.Any(b => b.Entry.Type.Equals(ValueListEntryType.StaffRoleType) && !b.Entry.Value.ToLower().Equals("ehemalige betreuung"))) || assistingEmployees.Any();
|
||||
if (hasCaregiver)
|
||||
{
|
||||
var relatedEmployees = new List<Employee>(assistingEmployees);
|
||||
relatedEmployees.AddRangeIfElementsNotIn(
|
||||
customer.Employee2CustomerList
|
||||
.Where(
|
||||
e2C => e2C.Employee.IsActive == ActivationTypeId.Active &&
|
||||
!e2C.ValueList.Any(
|
||||
e2c => e2c.Employee.IsActive == ActivationTypeId.Active &&
|
||||
(!e2c.StartDate.HasValue || e2c.StartDate.Value.Date <= end.Date) && (!e2c.EndDate.HasValue || e2c.EndDate.Value.Date >= start.Date) &&
|
||||
!e2c.ValueList.Any(
|
||||
w => w.Entry.Type.Equals(ValueListEntryType.StaffRoleType) &&
|
||||
!w.Entry.Value.ToLower().Equals("ehemalige betreuung")))
|
||||
.Select(s => s.Employee));
|
||||
|
||||
@@ -531,10 +531,11 @@ namespace BS.Shared
|
||||
BargeldverwaltungFinanzenBearbeiten = 26002,
|
||||
BargeldverwaltungFinanzenLoeschen = 26003,
|
||||
|
||||
//MedRecordsAnsehen = 27000,
|
||||
//MedRecordsAnlegen = 27001,
|
||||
//MedRecordsAendern = 27002,
|
||||
//MedRecordsLoeschen = 27003,
|
||||
Customer_EditMedication = 27000,
|
||||
//MedRecordsAnsehen = 27001,
|
||||
//MedRecordsAnlegen = 27002,
|
||||
//MedRecordsAendern = 27003,
|
||||
//MedRecordsLoeschen = 27004,
|
||||
|
||||
ChatSettings = 28000,
|
||||
ChatAdminSettings = 28001,
|
||||
|
||||
@@ -109,6 +109,9 @@ namespace BS.Shared.Core
|
||||
{
|
||||
UserRightType.Customer_ViewMedication, Translator.Translate("Klienten") + " Medikation ansehen"
|
||||
},
|
||||
{
|
||||
UserRightType.Customer_EditMedication, Translator.Translate("Klienten") + " Medikation bearbeiten"
|
||||
},
|
||||
{
|
||||
UserRightType.Customer_ViewDiagnosis, Translator.Translate("Klienten") + " Diagnosen ansehen"
|
||||
},
|
||||
|
||||
@@ -198,6 +198,46 @@ namespace BS.Shared.DataContracts.ClientPartials
|
||||
|
||||
public string RatingName { get; set; }
|
||||
|
||||
public bool IsZiel
|
||||
{
|
||||
get
|
||||
{
|
||||
return IsOfType(ValueListEntryType.SupportConceptGoalCategoryType);
|
||||
}
|
||||
}
|
||||
|
||||
public bool IsIndZiel
|
||||
{
|
||||
get
|
||||
{
|
||||
return IsOfType(ValueListEntryType.SupportConceptIndividualGoalCategoryType);
|
||||
}
|
||||
}
|
||||
|
||||
public bool IsMassnahme
|
||||
{
|
||||
get
|
||||
{
|
||||
return IsOfType(ValueListEntryType.SupportConceptGoalType);
|
||||
}
|
||||
}
|
||||
|
||||
public bool IsIndMassnahme
|
||||
{
|
||||
get
|
||||
{
|
||||
return IsOfType(ValueListEntryType.SupportConceptIndividualGoalType);
|
||||
}
|
||||
}
|
||||
|
||||
public bool IsOfType(ValueListEntryType t)
|
||||
{
|
||||
if (_GoalEntryDC != null)
|
||||
{
|
||||
return _GoalEntryDC.Type == t;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user