Diverse Verbesserungen im MoK und die SignatureHistory-Geschichte, auch wenn sie noch nicht zu 100 Prozent so funktioniert, wie ich das gerne hätte.
Man sieht aber, wann was an Unterschriften gemacht wurde.
This commit is contained in:
@@ -694,17 +694,9 @@ namespace BeWo.Service.ServiceImplementations
|
||||
var customers = DAOFactory.GenericDAO.GetAllActive<Customer>();
|
||||
var result = customers.Select(customer => MapperFactory.CompactCustomerDC_Customer.MapToNewDC(customer)).ToList();
|
||||
|
||||
ApplicationUser user;
|
||||
if(LoggedInUserOperationContextExt.Current != null && LoggedInUserOperationContextExt.Current.User != null)
|
||||
{
|
||||
user = LoggedInUserOperationContextExt.Current.User;
|
||||
}
|
||||
else
|
||||
{
|
||||
user = SessionFacade.LoggedInUser;
|
||||
}
|
||||
var user = GetLoggedInUser();
|
||||
|
||||
var relatedCustomerOids = new List<long>();
|
||||
var relatedCustomerOids = new List<long>();
|
||||
foreach(var customer in customers)
|
||||
{
|
||||
if(customer.Team2CustomerList.Any(t2c => t2c.Team.Leader.Equals(user.Employee) || t2c.Team.MemberList.Contains(user.Employee)) && customer.Oid.HasValue)
|
||||
@@ -4353,6 +4345,20 @@ namespace BeWo.Service.ServiceImplementations
|
||||
throw Utils.CreateBeWoFaultException(e);
|
||||
}
|
||||
}
|
||||
|
||||
public List<CompactCustomerDC> GetAllActiveCustomersForEmployee(bool fetchReferenceNumbers = false)
|
||||
{
|
||||
var user = GetLoggedInUser();
|
||||
|
||||
var employeeOid = false == user.CheckForRights(new List<UserRightType> { UserRightType.ViewAll, UserRightType.CustomerView_View }) ? user.Employee.Oid : null;
|
||||
|
||||
return GetAllActiveCustomersCompact(fetchReferenceNumbers, employeeOid).OrderBy(d => d.LastNameFirstName).ToList();
|
||||
}
|
||||
|
||||
private static ApplicationUser GetLoggedInUser()
|
||||
{
|
||||
return LoggedInUserOperationContextExt.Current?.User ?? SessionFacade.LoggedInUser;
|
||||
}
|
||||
}
|
||||
|
||||
internal struct WohnheimbuchungsIntervallStruct
|
||||
|
||||
@@ -2727,6 +2727,11 @@ namespace BeWo.Service.ServiceImplementations
|
||||
return validator.ValidateServiceRecord(newServiceRecord, statistics, maxDaysEditServiceRecordsAllowed, employeeOids, cb2scOids);
|
||||
}
|
||||
|
||||
public bool HasConfirmationReceiptSignatureByDateAndEmployeeAndCustomer(long customerOid, long employeeOid, DateTime start, DateTime end)
|
||||
{
|
||||
return DAOFactory.SearchDAO.HasConfirmationReceiptSignatureByDateAndEmployeeAndCustomer(customerOid, employeeOid, start, end);
|
||||
}
|
||||
|
||||
public List<ServiceRecordValidationResultDC> ValidateServiceRecordDeletion(ServiceRecordDC serviceRecord, long employeeOid)
|
||||
{
|
||||
var validator = PluginLoader.FindClass<ServiceRecordValidator>();
|
||||
|
||||
Reference in New Issue
Block a user