2016-06-27 01:45:38 +02:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
|
|
using BS.Shared.Core;
|
|
|
|
|
|
|
|
|
|
|
|
namespace BS.Shared.DataContracts
|
|
|
|
|
|
{
|
|
|
|
|
|
public partial class AbsenceTimeDC
|
|
|
|
|
|
{
|
|
|
|
|
|
public DateTimeSpan AbsenceSpan
|
|
|
|
|
|
{
|
|
|
|
|
|
get
|
|
|
|
|
|
{
|
|
|
|
|
|
if (this.Start.HasValue)
|
|
|
|
|
|
{
|
|
|
|
|
|
DateTimeSpan span = new DateTimeSpan();
|
|
|
|
|
|
span.StartDateTime = this.Start.Value;
|
|
|
|
|
|
|
|
|
|
|
|
if (this.End.HasValue)
|
|
|
|
|
|
{
|
|
|
|
|
|
span.EndDateTime = this.End.Value;
|
|
|
|
|
|
}
|
|
|
|
|
|
else
|
|
|
|
|
|
{
|
|
|
|
|
|
span.EndDateTime = DateTime.MaxValue;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return span;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return null;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2022-12-30 16:28:23 +01:00
|
|
|
|
|
|
|
|
|
|
public string InsUser { get; set; }
|
2016-06-27 01:45:38 +02:00
|
|
|
|
}
|
|
|
|
|
|
}
|