Merge branch 'master' of ssh://float.ownsoft.de/git/beyondSoft/BeWo
This commit is contained in:
@@ -603,12 +603,16 @@ namespace BeWo.Service.Dienstplanung
|
||||
x.EmployeeOid == empId &&
|
||||
x.WohnheimOid == wohnId &&
|
||||
x.Zeile == zeile &&
|
||||
x.Datum == date);
|
||||
x.Datum == date &&
|
||||
x.IsActive == ActivationTypeId.Active);
|
||||
|
||||
//if (toDel != null)
|
||||
// DAOFactory.GenericDAO.Delete(toDel);
|
||||
|
||||
if (toDel != null)
|
||||
{
|
||||
DAOFactory.GenericDAO.Deactivate(toDel);
|
||||
}
|
||||
}
|
||||
public static bool DeleteDienstEintrag2(long empId, long wohnId, int zeile, DateTime date, DienstEintragDC dienstEintrag, List<DienstEintragDC> alleDiensteintraege,
|
||||
List<DienstvertretungDC> alleDienstvertretungen, int day, DateTime pflichtStart, DateTime pflichtEnde)
|
||||
@@ -618,8 +622,8 @@ namespace BeWo.Service.Dienstplanung
|
||||
x.EmployeeOid == empId &&
|
||||
x.WohnheimOid == wohnId &&
|
||||
x.Zeile == zeile &&
|
||||
x.Datum == date);
|
||||
|
||||
x.Datum == date &&
|
||||
x.IsActive == ActivationTypeId.Active);
|
||||
if (toDel != null)
|
||||
DAOFactory.GenericDAO.Delete(toDel);
|
||||
var eintrag = alleDiensteintraege.FirstOrDefault(e => e.EmployeeOid == empId && e.WohnheimOid == wohnId && e.Zeile == zeile && e.Datum == date);
|
||||
|
||||
Reference in New Issue
Block a user