44 lines
1.3 KiB
C#
44 lines
1.3 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using BeWo.Data.Access;
|
|
using BeWo.Data.Entities;
|
|
using BeWo.Data.ICD10;
|
|
using BeWo.Service.DCEntityMapper;
|
|
using BS.Shared;
|
|
using BS.Shared.DataContracts;
|
|
using BS.Shared.DataContracts.Compact;
|
|
|
|
namespace BeWo.Report.ReportObjects
|
|
{
|
|
public class RatingRO : AbstractBeWoReportObject<RatingRO>
|
|
{
|
|
public RatingDC Rating { get; set; }
|
|
|
|
public SupportConceptDC SupportConcept { get; set; }
|
|
|
|
public static RatingRO Create(long ratingOid, long supportConceptOid)
|
|
{
|
|
var rating = DAOFactory.GenericDAO.LoadByID<Rating>(ratingOid);
|
|
var ratingDc = MapperFactory.RatingDC_Rating.MapToNewDC(rating);
|
|
|
|
var sc = DAOFactory.GenericDAO.LoadByID<SupportConcept>(supportConceptOid);
|
|
var scDc = MapperFactory.SupportConceptDC_SupportConcept.MapToNewDC(sc);
|
|
|
|
var result = new RatingRO();
|
|
result.Rating = ratingDc;
|
|
result.SupportConcept = scDc;
|
|
|
|
return result;
|
|
}
|
|
}
|
|
|
|
//public class Employee2CustomerDetail
|
|
//{
|
|
// public String Rolle { get; set; }
|
|
|
|
// public String Notiz { get; set; }
|
|
|
|
// public CompactCustomerDC Customer { get; set; }
|
|
//}
|
|
} |