Example #1
0
        public Item(Models.Domains3.Entities.GeneralRoomInfo target)
        {
            this.GeneralRoomInfoId = target.GeneralRoomInfoId;
            this.IsLeave           = target.OutDepartmentTime.HasValue;

            this.PatientName      = target.PatientName;
            this.OutPatientNumber = target.OutPatientNumber;
            this.Sex                 = target.Sex;
            this.ReceiveAgeName      = target.ReceiveAgeName;
            this.DiagnosisNameOrigin = target.DiagnosisNameOrigin;
            this.ReceiveTime         = target.ReceiveTime;
            this.FirstDoctorName     = target.FirstDoctorName;

            this.InDepartmentTime    = target.InDepartmentTime;
            this.BedNameFull         = target.BedNameFull;
            this.FirstNurseName      = target.FirstNurseName;
            this.InRoomWayNameFull   = target.InRoomWayNameFull;
            this.AdditionalDiagnosis = target.AdditionalDiagnosis;

            this.DestinationFirstName    = target.DestinationFirst?.DestinationName;
            this.DestinationFirstTime    = target.DestinationFirstTime;
            this.DestinationFirstContact = target.DestinationFirstContact;
            this.DestinationSecondName   = target.DestinationSecond?.DestinationName;

            this.OutDepartmentTime   = target.OutDepartmentTime;
            this.During              = target.During;
            this.DestinationNameFull = target.DestinationNameFull;
            this.HandleNurse         = target.HandleNurse;
            this.DiagnosisName       = target.DiagnosisName;
        }
Example #2
0
 public static void FromEmployeeNumberToName(Models.Domains3.Entities.GeneralRoomInfo target)
 {
     target.FirstNurseName          = FromEmployeeNumberToName(target.FirstNurseName);
     target.DestinationFirstContact = FromEmployeeNumberToName(target.DestinationFirstContact);
     target.HandleNurse             = FromEmployeeNumberToName(target.HandleNurse);
 }