Example #1
0
        /// <summary>
        /// Transaction Logging - Patient Transaction Logging
        /// </summary>
        /// <param name="classAction">Action Taken (Activate, Add, Modify, Disable, Delete)</param>
        /// <param name="classes">Action Class (Patient, Prescription, Refill)</param>
        /// <param name="idType">Type of ID that is being tracked</param>
        /// <param name="idNumber">ID Number of ID Type</param>
        /// <param name="loggedAction">String action for what was done</param>
        public Transaction(ClassAction action, ClassesEnum classes, ID_Type idType, int idNumber, string loggedAction)
        {
            TransactionClass       = classes;
            TransactionClassAction = action;
            TransactionAction      = loggedAction;

            TransactionPatientID     = idNumber;
            TransactionEntryDateTime = DateTime.Now;
        }
Example #2
0
        public un_egntypes Id_Type(int id)
        {
            un_egntypes result  = new un_egntypes();
            var         type    = ID_Type.GetAll();
            var         id_card = identity_cards.GetAll();
            var         query   = id_card.FirstOrDefault(f => f.id_person == id);

            return(result = type.FirstOrDefault(s => s.id_egntype == query.id_egnType));
        }
Example #3
0
        public List <ComboBoxModel> Id_Types()
        {
            var gen = ID_Type.GetAll();
            List <ComboBoxModel> result = new List <ComboBoxModel>();

            result = gen.Select(s => new ComboBoxModel {
                id = s.id_egntype, Name = s.Name
            }).ToList();
            return(result);
        }
Example #4
0
 /// <summary>
 /// </summary>
 /// <param name="idName">Название идентификатора</param>
 /// <param name="idClassif">Тип идентификатора</param>
 public ID(string idName, ID_Type idClassif)
 {
     GetName = idName;
     GetType = idClassif;
 }
Example #5
0
 /// <summary>
 ///     Конструктор с параметром(тип)
 /// </summary>
 /// <param name="idClassif">Тип идентификатора</param>
 public ID(ID_Type idClassif)
 {
     GetName = "Id";
     GetType = idClassif;
 }
Example #6
0
 /// <summary>
 ///     Конструктор без параметров
 /// </summary>
 public ID()
 {
     GetName = "Id";
     GetType = ID_Type.VARS;
 }