34 lines
842 B
C#
34 lines
842 B
C#
using Soneta.Business;
|
|
using Soneta.Core;
|
|
using Soneta.Kalend;
|
|
using Soneta.Types;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace FX2_SP_VERIFIERS.PrawidlowoscDaneRCP
|
|
{
|
|
public class PrawidlowoscDaneRCPVerifier : RowVerifier
|
|
{
|
|
public PrawidlowoscDaneRCPVerifier(IRow row) : base(row)
|
|
{
|
|
}
|
|
|
|
public override string Description => "Brak godziny wpisu";
|
|
|
|
public override VerifierType Type => VerifierType.Error;
|
|
|
|
private new WejscieWyjscieI Row => (WejscieWyjscieI)base.Row;
|
|
|
|
protected override bool IsValid()
|
|
{
|
|
if (Row.Godzina == Time.Empty || Row.Godzina == Time.MaxValue || Row.Godzina == Time.MinValue)
|
|
return false;
|
|
|
|
return true;
|
|
}
|
|
}
|
|
}
|