public virtual EmployeeRelation GetRelationEntity(long emplid, DateTime date)
        {
            ListEmployeeRelations lst = GetById(emplid, false);

            if (lst == null)
            {
                return(null);
            }


            return(lst.GetRelation(date));
        }
        public virtual bool IsContain(long emplid, DateTime date)
        {
            ListEmployeeRelations lst = GetById(emplid, false);

            if (lst == null)
            {
                return(false);
            }


            return(lst.GetRelation(date) != null);
        }