コード例 #1
0
        public GetProtocolGroupEditFormDataResponse GetProtocolGroupEditFormData(
            GetProtocolGroupEditFormDataRequest request)
        {
            var protocolAssembler = new ProtocolGroupAssembler();
            var codes             = CollectionUtils.Map <ProtocolCode, ProtocolCodeSummary>(
                this.PersistenceContext.GetBroker <IProtocolCodeBroker>().FindAll(false),
                code => protocolAssembler.GetProtocolCodeSummary(code));

            var procedureTypeGroupAssembler = new ProcedureTypeGroupAssembler();

            var readingGroups = CollectionUtils.Map <ProcedureTypeGroup, ProcedureTypeGroupSummary>(
                this.PersistenceContext.GetBroker <IReadingGroupBroker>().FindAll(),
                readingGroup => procedureTypeGroupAssembler.GetProcedureTypeGroupSummary(readingGroup, this.PersistenceContext));

            return(new GetProtocolGroupEditFormDataResponse(codes, readingGroups));
        }
コード例 #2
0
		public GetProtocolGroupEditFormDataResponse GetProtocolGroupEditFormData(
			GetProtocolGroupEditFormDataRequest request)
		{
			var protocolAssembler = new ProtocolGroupAssembler();
			var codes = CollectionUtils.Map<ProtocolCode, ProtocolCodeSummary>(
				this.PersistenceContext.GetBroker<IProtocolCodeBroker>().FindAll(false),
				code => protocolAssembler.GetProtocolCodeSummary(code));

			var procedureTypeGroupAssembler = new ProcedureTypeGroupAssembler();

			var readingGroups = CollectionUtils.Map<ProcedureTypeGroup, ProcedureTypeGroupSummary>(
				this.PersistenceContext.GetBroker<IReadingGroupBroker>().FindAll(),
				readingGroup => procedureTypeGroupAssembler.GetProcedureTypeGroupSummary(readingGroup, this.PersistenceContext));

			return new GetProtocolGroupEditFormDataResponse(codes, readingGroups);
		}