public void main(IWContext iwc) throws Exception { _iwc = iwc; userID = iwc.getUserId(); if (userID > 0) { user = ((UserBusiness) IBOLookup.getServiceInstance(iwc, UserBusiness.class)).getUser(userID); } add(getDoctorForm()); }
public void main(IWContext iwc) throws Exception { _iwc = iwc; userID = iwc.getUserId(); if (userID > 0) { user = ((UserBusiness) IBOLookup.getServiceInstance(iwc, UserBusiness.class)).getUser(userID); } imageCircleD = getBundle(iwc).getImage("circleDown.gif"); imageCircleU = getBundle(iwc).getImage("circleUp.gif"); imageBgVert = getBundle(iwc).getImage("bgbeigeVert.gif"); imageBgVertOut = getBundle(iwc).getImage("bgbeigeVert1.gif"); // add(getOverviewForm(iwc)); if (user != null && user.getDateOfBirth() != null) age = new Age(user.getDateOfBirth()); else if (user != null && user.getPersonalID() != null) age = new Age(PIDChecker.getInstance().getDateFromPersonalID(user.getPersonalID())); add(getOverviewForm()); }