private PersonName getMosName() { PersonName name = new PersonName(); name.setTitle(form.ctnDemog().cmbTitle().getValue()); name.setSurname(form.ctnDemog().txtSurname().getValue()); name.setForename(form.ctnDemog().txtForename().getValue()); name.setMiddleName(form.ctnDemog().txtMidName().getValue()); // name.setUpperSurname(form.ctnDemog().txtSurname().getValue().toUpperCase()); // name.setUpperForename(form.ctnDemog().txtForename().getValue().toUpperCase()); return name; }
protected void onQmbAuthoringCPTextSubmited(String value) throws PresentationLogicException { form.qmbAuthoringCP().clear(); HcpFilter filter = new HcpFilter(); PersonName name = new PersonName(); name.setSurname(value); filter.setQueryName(name); HcpCollection coll = domain.listHCPs(filter); for (int i = 0; i < coll.size(); i++) { Hcp med = coll.get(i); form.qmbAuthoringCP().newRow(med, med.toString()); } if (coll.size() == 1) form.qmbAuthoringCP().setValue(coll.get(0)); else if (coll.size() > 1) form.qmbAuthoringCP().showOpened(); }