2025-03-25 17:36:15 +01:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
2020-09-30 19:23:42 +02:00
|
|
|
|
using BS.Shared;
|
2025-03-25 17:36:15 +01:00
|
|
|
|
using BS.Shared.Core;
|
2020-09-23 16:00:51 +02:00
|
|
|
|
|
|
|
|
|
|
namespace BeWo.Data.Entities
|
|
|
|
|
|
{
|
|
|
|
|
|
public class ConfirmationReceiptSignature : BeWoEntityBase
|
|
|
|
|
|
{
|
2021-02-17 16:59:26 +01:00
|
|
|
|
private long? _CustomerOid;
|
|
|
|
|
|
|
|
|
|
|
|
private Employee _Employee;
|
2020-09-23 16:00:51 +02:00
|
|
|
|
|
|
|
|
|
|
private IList<ServiceRecord> _ServiceRecords;
|
|
|
|
|
|
|
|
|
|
|
|
private string _SignatureImage;
|
|
|
|
|
|
|
2021-02-17 16:59:26 +01:00
|
|
|
|
private string _TimeSpanString;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public virtual Employee Employee
|
2020-09-23 16:00:51 +02:00
|
|
|
|
{
|
2021-02-17 16:59:26 +01:00
|
|
|
|
get => _Employee;
|
2020-09-23 16:00:51 +02:00
|
|
|
|
|
|
|
|
|
|
set
|
|
|
|
|
|
{
|
2021-02-17 16:59:26 +01:00
|
|
|
|
if(AreDifferent(_Employee, value))
|
2020-09-23 16:00:51 +02:00
|
|
|
|
{
|
2021-02-17 16:59:26 +01:00
|
|
|
|
_Employee = value;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public virtual long? CustomerOid
|
|
|
|
|
|
{
|
|
|
|
|
|
get => _CustomerOid;
|
|
|
|
|
|
|
|
|
|
|
|
set
|
|
|
|
|
|
{
|
|
|
|
|
|
if(AreDifferent(_CustomerOid, value))
|
|
|
|
|
|
{
|
|
|
|
|
|
_CustomerOid = value;
|
2020-09-23 16:00:51 +02:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public virtual IList<ServiceRecord> ServiceRecords
|
|
|
|
|
|
{
|
|
|
|
|
|
get => _ServiceRecords;
|
|
|
|
|
|
|
|
|
|
|
|
set
|
|
|
|
|
|
{
|
|
|
|
|
|
if(AreDifferent(_ServiceRecords, value))
|
|
|
|
|
|
{
|
|
|
|
|
|
_ServiceRecords = value;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public virtual string SignatureImage
|
|
|
|
|
|
{
|
|
|
|
|
|
get => _SignatureImage;
|
|
|
|
|
|
|
|
|
|
|
|
set
|
|
|
|
|
|
{
|
|
|
|
|
|
if(AreDifferent(_SignatureImage, value))
|
|
|
|
|
|
{
|
|
|
|
|
|
_SignatureImage = value;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2020-09-30 19:23:42 +02:00
|
|
|
|
|
|
|
|
|
|
public ConfirmationReceiptSignature()
|
|
|
|
|
|
{
|
|
|
|
|
|
_Tid = TableID.ConfirmationReceiptSignature;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2021-02-17 16:59:26 +01:00
|
|
|
|
private SignatureType _SignatureType;
|
|
|
|
|
|
|
|
|
|
|
|
public virtual SignatureType SignatureType
|
|
|
|
|
|
{
|
|
|
|
|
|
get => _SignatureType;
|
|
|
|
|
|
|
|
|
|
|
|
set
|
|
|
|
|
|
{
|
|
|
|
|
|
if(AreDifferent(_SignatureType, value))
|
|
|
|
|
|
{
|
|
|
|
|
|
_SignatureType = value;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public virtual string TimeSpanString
|
|
|
|
|
|
{
|
|
|
|
|
|
get => _TimeSpanString;
|
|
|
|
|
|
|
|
|
|
|
|
set
|
|
|
|
|
|
{
|
|
|
|
|
|
if(AreDifferent(_TimeSpanString, value))
|
|
|
|
|
|
{
|
|
|
|
|
|
_TimeSpanString = value;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2025-03-25 17:36:15 +01:00
|
|
|
|
|
|
|
|
|
|
public virtual DateTimeSpan GetSignatureTimeSpan()
|
|
|
|
|
|
{
|
|
|
|
|
|
//Z.B. "01.01. bis 31.01.2025"
|
|
|
|
|
|
var year = int.Parse(TimeSpanString.Substring(17));
|
|
|
|
|
|
var month = int.Parse(TimeSpanString.Substring(3, 2));
|
|
|
|
|
|
var startDay = int.Parse(TimeSpanString.Substring(0, 2));
|
|
|
|
|
|
var endDay = int.Parse(TimeSpanString.Substring(11, 2));
|
|
|
|
|
|
|
|
|
|
|
|
return new DateTimeSpan(new DateTime(year, month, startDay), new DateTime(year, month, endDay));
|
|
|
|
|
|
}
|
2020-09-23 16:00:51 +02:00
|
|
|
|
}
|
|
|
|
|
|
}
|