27 lines
635 B
C#
27 lines
635 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using BeWo.Data.Entities;
|
|
using BS.Shared.Core;
|
|
using BS.Shared.DataContracts;
|
|
|
|
namespace BeWo.Service.Plugins
|
|
{
|
|
public class SaveInterceptor : AbstractIDSpecificDefaultClass<SaveInterceptor>
|
|
{
|
|
public virtual void BeforeSaveServiceRecord(ServiceRecord sr)
|
|
{
|
|
//do nothing
|
|
}
|
|
|
|
public virtual String AllowSaveCustomer(CustomerDC c)
|
|
{
|
|
// //ZUM TESTEN ;-)
|
|
//if (!String.IsNullOrWhiteSpace(c.Notice) && c.Notice.Contains("NEIN"))
|
|
//{
|
|
// return "NEIN";
|
|
//}
|
|
return null;
|
|
}
|
|
}
|
|
}
|