private void Initial(Domains3.Entities.GeneralRoomInfo target) { this.GeneralRoomInfoId = target.GeneralRoomInfoId; this.InDepartmentTime = target.InDepartmentTime; this.BedId = target.BedId; this.FirstNurseName = target.FirstNurseName; this.InRoomWayId = target.InRoomWayId; this.InRoomWayRemarks = target.InRoomWayRemarks; this.AdditionalDiagnosis = target.AdditionalDiagnosis; this.CriticalLevelId = target.CriticalLevelId; this.IsRescue = target.IsRescue; this.RescueResultId = target.RescueResultId; this.GreenPathCategoryId = target.GreenPathCategoryId; this.GreenPathCategoryRemarks = target.GreenPathCategoryRemarks; this.Antibiotic = target.Antibiotic; this.Remarks = target.Remarks; this.DestinationFirstId = target.DestinationFirstId; this.DestinationFirstTime = target.DestinationFirstTime; this.DestinationFirstContact = target.DestinationFirstContact; this.DestinationSecondId = target.DestinationSecondId; this.OutDepartmentTime = target.OutDepartmentTime; this.DestinationId = target.DestinationId; this.DestinationRemarks = target.DestinationRemarks; this.HandleNurse = target.HandleNurse; this.DiagnosisName = target.DiagnosisName; this.TransferReasonId = target.TransferReasonId; this.TransferTarget = target.TransferTarget; this.ProfessionalTarget = target.ProfessionalTarget; this.TimeStamp = target.TimeStamp; }
private void Initial(Domains3.Entities.GeneralRoomInfo target) { this.GeneralRoomInfoId = target.GeneralRoomInfoId; this.IsTransferRoom = target.IsTransferRoom; this.GreenPathId = target.GreenPathInfos.FirstOrDefault()?.GrennPathId; this.IsGreenPathHasForm = target.GreenPathCategory == null ? false : target.GreenPathCategory.IsHasForm; this.InDepartmentTime = target.InDepartmentTime; this.BedNameFull = target.BedNameFull; this.FirstNurseName = target.FirstNurseName; this.InRoomWayNameFull = target.InRoomWayNameFull; this.AdditionalDiagnosis = target.AdditionalDiagnosis; this.CriticalLevelName = target.CriticalLevel?.CriticalLevelName; this.RescueResultNameFull = target.RescueResultNameFull; this.GreenPathCategoryNameFull = target.GreenPathCategoryNameFull; this.Antibiotic = target.Antibiotic; this.Remarks = target.Remarks; 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.DuringDetained = target.DuringDetained; this.DestinationNameFull = target.DestinationNameFull; this.HandleNurse = target.HandleNurse; this.DiagnosisName = target.DiagnosisName; this.IsLeaveName = target.IsLeaveName; }
public Create2(string outPatientNumber, Guid roomId, Guid?preGeneralRoomInfoId) { this.RoomId = roomId; this.PreGeneralRoomInfoId = preGeneralRoomInfoId; var db3 = new Domains3.Entities.EiSDbContext(); var room = db3.Rooms.Find(this.RoomId); this.RoomName = room.RoomName; Domains3.Entities.GeneralRoomInfo target = null; if (this.PreGeneralRoomInfoId != null) { target = db3.GeneralRoomInfos.Find(this.PreGeneralRoomInfoId); } var dbTrasen = new TrasenDbContext("TrasenConnection"); var itemKDJB = dbTrasen.YY_KDJB.Where(c => c.KH == outPatientNumber).First(); List <VI_MZ_GHXX> listGHXX; if (target == null) { listGHXX = dbTrasen.VI_MZ_GHXX.Where(c => c.BRXXID == itemKDJB.BRXXID).OrderByDescending(c => c.GHSJ).ThenBy(c => c.GHXXID).ToList(); } else { listGHXX = dbTrasen.VI_MZ_GHXX.Where(c => c.BRXXID == itemKDJB.BRXXID && c.GHSJ >= target.ReceiveTime.Value).OrderByDescending(c => c.GHSJ).ThenBy(c => c.GHXXID).ToList(); } this.ListGhxx = listGHXX.Select(c => new ItemGhxx(c, this.RoomId, this.PreGeneralRoomInfoId)).ToList(); }
public void GetReturn(Domains3.Entities.GeneralRoomInfo target) { target.InDepartmentTime = this.InDepartmentTime; target.BedId = this.BedId; target.FirstNurseName = this.FirstNurseName; target.InRoomWayId = this.InRoomWayId; target.InRoomWayRemarks = this.InRoomWayRemarks; target.AdditionalDiagnosis = this.AdditionalDiagnosis; target.DestinationFirstId = this.DestinationFirstId; target.DestinationFirstTime = this.DestinationFirstTime; target.DestinationFirstContact = this.DestinationFirstContact; target.DestinationSecondId = this.DestinationSecondId; target.OutDepartmentTime = this.OutDepartmentTime; target.DestinationId = this.DestinationId; target.DestinationRemarks = this.DestinationRemarks; target.HandleNurse = this.HandleNurse; target.DiagnosisName = this.DiagnosisName; target.TransferReasonId = this.TransferReasonId; target.TransferTarget = this.TransferTarget; target.ProfessionalTarget = this.ProfessionalTarget; target.TimeStamp = this.TimeStamp; target.UpdateTime = DateTime.Now; }
public Item(Domains3.Entities.GeneralRoomInfo target, bool isCurrent) { this.GeneralRoomInfoId = target.GeneralRoomInfoId; this.IsCurrent = isCurrent; this.ControllerName = target.Room.ControllerName; this.RoomName = target.Room.RoomName; this.InDepartmentTime = target.InDepartmentTime; this.OutDepartmentTime = target.OutDepartmentTime; this.During = target.During; }
public Domains3.Entities.GeneralRoomInfo GetReturn() { var db3 = new Domains3.Entities.EiSDbContext(); var targetOld = db3.GeneralRoomInfos.Find(this.PreGeneralRoomInfoId); var roomOld = targetOld?.Room; var target = new Domains3.Entities.GeneralRoomInfo(); target.GeneralRoomInfoId = Guid.NewGuid(); target.RoomId = this.RoomId; target.PreGeneralRoomInfoId = this.PreGeneralRoomInfoId; if (roomOld != null) { if (roomOld.IsRescueRoom) { target.InRoomWayId = new Guid("793396FB-5298-4C33-9782-0C3F39439709"); } else if (roomOld.IsObserveRoom) { target.InRoomWayId = new Guid("C41FA74D-6BF8-4A51-8FF8-3579A052C527"); } else if (roomOld.IsResuscitateRoom) { target.InRoomWayId = new Guid("F1784E85-71A0-4BBD-939D-E540F47315CE"); } } target.PatientName = this.PatientName; target.OutPatientNumber = this.OutPatientNumber; target.Sex = this.Sex; target.BirthDate = this.BirthDate; target.DiagnosisNameOrigin = this.DiagnosisNameOrigin; target.ReceiveTime = this.ReceiveTime; target.FirstDoctorName = this.FirstDoctorName; target.InDepartmentTime = this.ReceiveTime.Value.Date; target.KDJID = this.KDJID; target.BRXXID = this.BRXXID; target.GHXXID = this.GHXXID; target.JZID = this.JZID; target.UpdateTime = DateTime.Now; return(target); }
private void Initial(Domains3.Entities.GeneralRoomInfo target) { this.GeneralRoomInfoId = target.GeneralRoomInfoId; this.IsTransferRoom = target.IsTransferRoom; 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.DuringDetained = target.DuringDetained; this.DestinationNameFull = target.DestinationNameFull; this.HandleNurse = target.HandleNurse; this.DiagnosisName = target.DiagnosisName; this.IsLeaveName = target.IsLeaveName; }
public Item(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.CriticalLevelName = target.CriticalLevel?.CriticalLevelName; this.RescueResultNameFull = target.RescueResultNameFull; this.GreenPathCategoryNameFull = target.GreenPathCategoryNameFull; this.Antibiotic = target.Antibiotic; this.Remarks = target.Remarks; 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; }
public Edit(Domains3.Entities.GeneralRoomInfo target) { this.Initial(target); }