using System.Collections.Generic;
using BS.Shared;

namespace BeWo.Data.Entities
{
    public class ServiceDescription : BeWoEntityBase
    {
        public static string PropertyName_Abbreviation = "Abbreviation";

        public static string PropertyName_Name = "Name";

        public static string PropertyName_ServiceCategory = "ServiceCategory";

        public static string PropertyName_CostRatePeriods = "CostRatePeriods";

        private string _Abbreviation;

        private string _Name;

        private ServiceCategory _ServiceCategory;

        private IList<CostRatePeriod> _CostRatePeriods;

        public virtual IList<CostRatePeriod> CostRatePeriods
        {
            get { return this._CostRatePeriods ?? (this._CostRatePeriods = new List<CostRatePeriod>()); }

            set
            {
                if (this.AreDifferent(this._CostRatePeriods, value))
                {
                    this._CostRatePeriods = value;
                }
            }
        }

        public virtual string Abbreviation
        {
            get
            {
                return this._Abbreviation;
            }

            set
            {
                if (this.AreDifferent(this._Abbreviation, value))
                {
                    this._Abbreviation = value;
                }
            }
        }

        public virtual string Name
        {
            get
            {
                return this._Name;
            }

            set
            {
                if (this.AreDifferent(this._Name, value))
                {
                    this._Name = value;
                }
            }
        }

        public virtual ServiceCategory ServiceCategory
        {
            get
            {
                return this._ServiceCategory;
            }

            set
            {
                if (this.AreDifferent(this._ServiceCategory, value))
                {
                    this._ServiceCategory = value;
                }
            }
        }

        public virtual decimal BillableAmount { get; set; }
        
        public virtual AccountingIntervalType? AccountingInterval { get; set; }

        public virtual int Position { get; set; }

        public virtual ServiceUnit? Unit { get; set; }

        public virtual ScopeTypeId? ScopeType { get; set; }

		public virtual bool IsDefault { get; set; }

		public virtual bool? DoNotCheckOverlapping { get; set; }
    }
}