public void UpdateProcedureTypeGroup(ProcedureTypeGroup group, ProcedureTypeGroupDetail detail, IPersistenceContext context)
 {
     group.Name = detail.Name;
     group.Description = detail.Description;
     
     group.ProcedureTypes.Clear();
     detail.ProcedureTypes.ForEach(
         delegate(ProcedureTypeSummary summary)
             {
                 group.ProcedureTypes.Add(context.Load<ProcedureType>(summary.ProcedureTypeRef));
             });
 }
        public ProcedureTypeGroupDetail GetProcedureTypeGroupDetail(ProcedureTypeGroup rptGroup, IPersistenceContext context)
        {
            ProcedureTypeGroupDetail detail = new ProcedureTypeGroupDetail();

            detail.Name = rptGroup.Name;
            detail.Description = rptGroup.Description;
            detail.Category = GetCategoryEnumValueInfo(rptGroup.GetType());

            ProcedureTypeAssembler assembler = new ProcedureTypeAssembler();
            detail.ProcedureTypes = CollectionUtils.Map<ProcedureType, ProcedureTypeSummary, List<ProcedureTypeSummary>>(
                rptGroup.ProcedureTypes,
                delegate (ProcedureType rpt)
                    {
                        return assembler.CreateSummary(rpt);
                    });

            return detail;
        }
 public UpdateProcedureTypeGroupRequest(EntityRef entityRef, ProcedureTypeGroupDetail detail)
 {
     EntityRef = entityRef;
     Detail = detail;
 }
Beispiel #4
0
 public UpdateProcedureTypeGroupRequest(EntityRef entityRef, ProcedureTypeGroupDetail detail)
 {
     EntityRef = entityRef;
     Detail    = detail;
 }
 public AddProcedureTypeGroupRequest(ProcedureTypeGroupDetail detail)
 {
     Detail = detail;
 }
 public LoadProcedureTypeGroupForEditResponse(EntityRef entityRef, ProcedureTypeGroupDetail detail)
 {
     EntityRef = entityRef;
     Detail = detail;
 }
Beispiel #7
0
 public AddProcedureTypeGroupRequest(ProcedureTypeGroupDetail detail)
 {
     Detail = detail;
 }
 public LoadProcedureTypeGroupForEditResponse(EntityRef entityRef, ProcedureTypeGroupDetail detail)
 {
     EntityRef = entityRef;
     Detail    = detail;
 }