using System;
using BS.Shared;

namespace BeWo.Data.Entities
{
    public class MedRecord : BeWoEntityBase
    {
        public static string PropertyName_Customer          = "Customer";
        public static string PropertyName_Employee          = "Employee";
        public static string PropertyName_MedName           = "MedName";
        public static string PropertyName_MedDate           = "MedDate";
        public static string PropertyName_DosageForm        = "DosageForm";
        public static string PropertyName_PrescribingDoctor = "PrescribingDoctor";

        public MedRecord()
        {
            _Tid = TableID.MedRecord;
        }

        private Customer         _Customer;
        private Employee         _Employee;
        private string           _MedName;
        private DateTime?        _MedDate;
        private Darreichungsform _DosageForm;
        private string           _PrescribingDoctor;

        public virtual Customer Customer
        {
            get { return _Customer; }

            set
            {
                if (AreDifferent(_Customer, value))
                {
                    _Customer = value;
                }
            }
        }

        public virtual Employee Employee
        {
            get { return _Employee; }

            set
            {
                if (AreDifferent(_Employee, value))
                {
                    _Employee = value;
                }
            }
        }

        public virtual string MedName
        {
            get { return _MedName; }

            set
            {
                if (AreDifferent(_MedName, value))
                {
                    _MedName = value;
                }
            }
        }

        public virtual DateTime? MedDate
        {
            get { return _MedDate; }

            set
            {
                if (AreDifferent(_MedDate, value))
                {
                    _MedDate = value;
                }
            }
        }

        public virtual Darreichungsform DosageForm
        {
            get { return _DosageForm; }

            set
            {
                if (AreDifferent(_DosageForm, value))
                {
                    _DosageForm = value;
                }
            }
        }

        public virtual string PrescribingDoctor
        {
            get { return _PrescribingDoctor; }

            set
            {
                if (AreDifferent(_PrescribingDoctor, value))
                {
                    _PrescribingDoctor = value;
                }
            }
        }
    }
}