use of org.akaza.openclinica.bean.odmbeans.SectionDetails in project OpenClinica by OpenClinica.
the class OdmExtractDAO method setSectionBean.
private FormDetailsBean setSectionBean(FormDetailsBean formDetail, Integer crfVId) {
HashMap variables = new HashMap();
variables.put(new Integer(1), new Integer(crfVId));
ArrayList<SectionDetails> sectionBeans = new ArrayList<SectionDetails>();
SectionDAO secdao = new SectionDAO(this.ds);
ArrayList sections = secdao.findAllByCRFVersionId(crfVId);
Iterator iter = sections.iterator();
while (iter.hasNext()) {
SectionDetails sectionDetails = new SectionDetails();
SectionBean sectionBean = (SectionBean) iter.next();
sectionDetails.setSectionId(sectionBean.getId());
sectionDetails.setSectionLabel(sectionBean.getLabel());
sectionDetails.setSectionTitle(sectionBean.getTitle());
sectionDetails.setSectionSubtitle(sectionBean.getSubtitle());
sectionDetails.setSectionInstructions(sectionBean.getInstructions());
sectionDetails.setSectionPageNumber(sectionBean.getPageNumberLabel());
sectionBeans.add(sectionDetails);
}
formDetail.setSectionDetails(sectionBeans);
return formDetail;
}
Aggregations