/// <summary> /// このインスタンスを、それと同等なUtility.Models.Entites.DtPlusServiceBillLog型に変換する。 /// 親エンティティとして生成するため、子エンティティの情報はもたない /// </summary> /// <returns></returns> public Utility.Models.Entites.DtPlusServiceBillLog ToParentModel(Type childType) { Utility.Models.Entites.DtPlusServiceBillLog model = ToModelCommonPart(); model.DtDevice = this.DeviceS?.ToParentModel(this.GetType()); return(model); }
/// <summary> /// このインスタンスを、それと同等なUtility.Models.Entites.DtPlusServiceBillLog型に変換する。 /// 子エンティティとして生成するため、親エンティティの情報をもたない /// </summary> /// <returns></returns> public Utility.Models.Entites.DtPlusServiceBillLog ToChildModel(Type parentType) { Utility.Models.Entites.DtPlusServiceBillLog model = ToModelCommonPart(); // 親子間の参照無限ループを避けるためにタイプチェック if (this.DeviceS?.GetType() != parentType) { model.DtDevice = this.DeviceS?.ToParentModel(this.GetType()); } return(model); }
/// <summary> /// このインスタンスを、それと同等なUtility.Models.Entites.DtPlusServiceBillLog型に変換する。 /// 各変換メソッド共通部分 /// </summary> /// <returns></returns> private Utility.Models.Entites.DtPlusServiceBillLog ToModelCommonPart() { Utility.Models.Entites.DtPlusServiceBillLog model = new Utility.Models.Entites.DtPlusServiceBillLog(); model.Sid = this.Sid; model.DeviceSid = this.DeviceSid; model.SourceEquipmentUid = this.SourceEquipmentUid; model.TypeName = this.TypeName; model.BillFlg = this.BillFlg; model.PatientId = this.PatientId; model.Sex = this.Sex; model.Age = this.Age; model.StudyInstanceUid = this.StudyInstanceUid; model.SopInstanceUid = this.SopInstanceUid; model.StudyDatetime = this.StudyDatetime; model.MeasureValue = this.MeasureValue; model.MeasureDatetime = this.MeasureDatetime; model.CollectDatetime = this.CollectDatetime; model.CreateDatetime = this.CreateDatetime; model.UpdateDatetime = this.UpdateDatetime; return(model); }
/// <summary> /// コンストラクタ /// </summary> /// <param name="model">Utility.Models.Entites.DtPlusServiceBillLogのインスタンス</param> public DtPlusServiceBillLog(Utility.Models.Entites.DtPlusServiceBillLog model) { this.Sid = model.Sid; this.DeviceSid = model.DeviceSid; this.SourceEquipmentUid = model.SourceEquipmentUid; this.TypeName = model.TypeName; this.BillFlg = model.BillFlg; this.PatientId = model.PatientId; this.Sex = model.Sex; this.Age = model.Age; this.StudyInstanceUid = model.StudyInstanceUid; this.SopInstanceUid = model.SopInstanceUid; this.StudyDatetime = model.StudyDatetime; this.MeasureValue = model.MeasureValue; this.MeasureDatetime = model.MeasureDatetime; this.CollectDatetime = model.CollectDatetime; this.CreateDatetime = model.CreateDatetime; this.UpdateDatetime = model.UpdateDatetime; this.DeviceS = model.DtDevice == null ? null : new DtDevice(model.DtDevice); }