// Path: src/java/com/idega/block/staff/business/StaffUserBusiness.java
// public interface StaffUserBusiness extends UserBusiness {
// 	
// 	public static final String PARAMETER_USER_ID = "st_user_id";
// 	
// 	/**
// 	 * @see com.idega.block.staff.business.StaffUserBusinessBean#getGroups
// 	 */
// 	public Collection getGroups(Group parentGroup)
// 			throws java.rmi.RemoteException;
// 
// 	/**
// 	 * @see com.idega.block.staff.business.StaffUserBusinessBean#getUserEducation
// 	 */
// 	public String getUserEducation(User user, Locale locale)
// 			throws java.rmi.RemoteException;
// 
// 	/**
// 	 * @see com.idega.block.staff.business.StaffUserBusinessBean#getUserTitle
// 	 */
// 	public String getUserTitle(User user, Locale locale)
// 			throws java.rmi.RemoteException;
// 
// 	/**
// 	 * @see com.idega.block.staff.business.StaffUserBusinessBean#getUserArea
// 	 */
// 	public String getUserArea(User user, Locale locale)
// 			throws java.rmi.RemoteException;
// 
// 	/**
// 	 * @see com.idega.block.staff.business.StaffUserBusinessBean#getBeganWork
// 	 */
// 	public Date getBeganWork(User user) throws java.rmi.RemoteException;
// 
// 	/**
// 	 * @see com.idega.block.staff.business.StaffUserBusinessBean#storeStaffUser
// 	 */
// 	public void storeStaffUser(User user, String education, String title,
// 			String area, Date beganWork, Locale locale)
// 			throws java.rmi.RemoteException;
// 
// }


import java.rmi.RemoteException;
import java.sql.Date;
import java.util.Locale;
import com.idega.block.staff.business.StaffUserBusiness;
import com.idega.business.IBOLookup;
import com.idega.business.IBOLookupException;
import com.idega.business.IBORuntimeException;
import com.idega.idegaweb.IWApplicationContext;
import com.idega.idegaweb.IWBundle;
import com.idega.idegaweb.IWResourceBundle;
import com.idega.idegaweb.help.presentation.Help;
import com.idega.presentation.IWContext;
import com.idega.presentation.Image;
import com.idega.presentation.Table;
import com.idega.presentation.text.Break;
import com.idega.presentation.text.Text;
import com.idega.presentation.ui.DateInput;
import com.idega.presentation.ui.TextArea;
import com.idega.presentation.ui.TextInput;
import com.idega.user.business.UserConstants;
import com.idega.user.data.User;
import com.idega.user.presentation.UserTab;
import com.idega.util.IWTimestamp;
			return false;
		}
		catch (RemoteException re) {
			re.printStackTrace();
			return false;
		}
	}

	public void initFieldContents() {
		try {
			User user = getUser();
			IWContext iwc = IWContext.getInstance();
			Locale locale = iwc.getCurrentLocale();
			
			String education = getBusiness(iwc).getUserEducation(user, locale);
			String title = getBusiness(iwc).getUserTitle(user, locale);
			String area = getBusiness(iwc).getUserArea(user, locale);
			Date beganWork = getBusiness(iwc).getBeganWork(user);

			this.fieldValues.put(this.educationFieldName, (education != null) ? education : "");
			this.fieldValues.put(this.titleFieldName, (title != null) ? title : "");
			this.fieldValues.put(this.areaFieldName, (area != null) ? area : "");
			this.fieldValues.put(this.beganWorkFieldName, beganWork);
			updateFieldsDisplayStatus();
		}
		catch (Exception e) {
			System.err.println("GeneralUserInfoTab error initFieldContents, userId : " + getUserId());
		}
	}

// Path: src/java/com/idega/block/staff/business/StaffUserBusiness.java
// public interface StaffUserBusiness extends UserBusiness {
// 	
// 	public static final String PARAMETER_USER_ID = "st_user_id";
// 	
// 	/**
// 	 * @see com.idega.block.staff.business.StaffUserBusinessBean#getGroups
// 	 */
// 	public Collection getGroups(Group parentGroup)
// 			throws java.rmi.RemoteException;
// 
// 	/**
// 	 * @see com.idega.block.staff.business.StaffUserBusinessBean#getUserEducation
// 	 */
// 	public String getUserEducation(User user, Locale locale)
// 			throws java.rmi.RemoteException;
// 
// 	/**
// 	 * @see com.idega.block.staff.business.StaffUserBusinessBean#getUserTitle
// 	 */
// 	public String getUserTitle(User user, Locale locale)
// 			throws java.rmi.RemoteException;
// 
// 	/**
// 	 * @see com.idega.block.staff.business.StaffUserBusinessBean#getUserArea
// 	 */
// 	public String getUserArea(User user, Locale locale)
// 			throws java.rmi.RemoteException;
// 
// 	/**
// 	 * @see com.idega.block.staff.business.StaffUserBusinessBean#getBeganWork
// 	 */
// 	public Date getBeganWork(User user) throws java.rmi.RemoteException;
// 
// 	/**
// 	 * @see com.idega.block.staff.business.StaffUserBusinessBean#storeStaffUser
// 	 */
// 	public void storeStaffUser(User user, String education, String title,
// 			String area, Date beganWork, Locale locale)
// 			throws java.rmi.RemoteException;
// 
// }


// Path: src/java/com/idega/block/staff/presentation/StaffUserTab.java
import java.rmi.RemoteException;
import java.sql.Date;
import java.util.Locale;
import com.idega.block.staff.business.StaffUserBusiness;
import com.idega.business.IBOLookup;
import com.idega.business.IBOLookupException;
import com.idega.business.IBORuntimeException;
import com.idega.idegaweb.IWApplicationContext;
import com.idega.idegaweb.IWBundle;
import com.idega.idegaweb.IWResourceBundle;
import com.idega.idegaweb.help.presentation.Help;
import com.idega.presentation.IWContext;
import com.idega.presentation.Image;
import com.idega.presentation.Table;
import com.idega.presentation.text.Break;
import com.idega.presentation.text.Text;
import com.idega.presentation.ui.DateInput;
import com.idega.presentation.ui.TextArea;
import com.idega.presentation.ui.TextInput;
import com.idega.user.business.UserConstants;
import com.idega.user.data.User;
import com.idega.user.presentation.UserTab;
import com.idega.util.IWTimestamp;

			return false;
		}
		catch (RemoteException re) {
			re.printStackTrace();
			return false;
		}
	}

	public void initFieldContents() {
		try {
			User user = getUser();
			IWContext iwc = IWContext.getInstance();
			Locale locale = iwc.getCurrentLocale();
			
			String education = getBusiness(iwc).getUserEducation(user, locale);
			String title = getBusiness(iwc).getUserTitle(user, locale);
			String area = getBusiness(iwc).getUserArea(user, locale);
			Date beganWork = getBusiness(iwc).getBeganWork(user);

			this.fieldValues.put(this.educationFieldName, (education != null) ? education : "");
			this.fieldValues.put(this.titleFieldName, (title != null) ? title : "");
			this.fieldValues.put(this.areaFieldName, (area != null) ? area : "");
			this.fieldValues.put(this.beganWorkFieldName, beganWork);
			updateFieldsDisplayStatus();
		}
		catch (Exception e) {
			System.err.println("GeneralUserInfoTab error initFieldContents, userId : " + getUserId());
		}
	}

	private StaffUserBusiness getBusiness(IWApplicationContext iwac) {