scr = new SheduleClientReceptionLocal(pacient);
wtOn.setSelected(collaborator == null);
workTypesCombo.setEnabled(collaborator == null);
VetoableComboBoxModel wtmodel = new VetoableComboBoxModel();
DirectoryWorkType wtd = (DirectoryWorkType) DirectoryLocator.getDirectory(DirectoryWorkType.class, false);
Selector<DirectoryWorkTypeItem> workTypes = wtd.getItems();
for(int i=0; i<workTypes.size(); i++) {
DirectoryWorkTypeItem item = workTypes.get(i);
if(item.isAvailiable()) {
wtmodel.addElement(item);
}
}
wtmodel.setSelectedItem(null);
wtmodel.addVetoableComboBoxListener(workTypeProcess);
workTypesCombo.setModel(wtmodel);
VetoableComboBoxModel crmodel = new VetoableComboBoxModel();
for(ClientReceptionMode mode :scr.getModeList()) {
crmodel.addElement(mode);
}
crmodel.setSelectedItem(null);
crmodel.addVetoableComboBoxListener(new PrevouseReceptionProcess());
prevoiseReceptionCombo.setModel(crmodel);
prevoiseReceptions.setCellRenderer(new ReceptionListCellRenderer());
StateSaver.attachTo(this);
}