root.add(DISPANSERS);
dsg = (DirectoryServicesGroup) DirectoryLocator.getDirectory(DirectoryServicesGroup.class, false);
ds = (DirectoryService) DirectoryLocator.getDirectory(DirectoryService.class, false);
DirectoryPacketTemplate dp = (DirectoryPacketTemplate)
DirectoryLocator.getDirectory(DirectoryPacketTemplate.class, false);
ROList<DirectoryPacketTemplateItem> itemsList = dp.getItemsList();
for (int i = 0; i < itemsList.size(); i++) {
DirectoryPacketTemplateItem item = itemsList.get(i);
switch (item.getmedexamType().getID()) {
case 0 : {
packetList.add(item);
break;
}
case MedexamType.medexam_TYPE_medexam : {
medexamList.add(item);
break;
}
case MedexamType.medexam_TYPE_PROFCHECKUP : {
profcheckupList.add(item);
break;
}
case MedexamType.medexam_TYPE_DISPANSER : {
dispanserList.add(item);
break;
}
default: throw new ClipsException("Некорректный тип медосмотра");
}
}
dp.getItemsList();
}