// Path: src/java/is/idega/idegaweb/egov/course/CourseConstants.java
// public class CourseConstants {
// 
// 	public static final String CASE_CODE_KEY = "COURSEA";
// 
// 	public static final String IW_BUNDLE_IDENTIFIER = "is.idega.idegaweb.egov.course";
// 
// 	public static final String ADMINISTRATOR_ROLE_KEY = "afterSchoolCareAdministrator";
// 	public static final String SUPER_ADMINISTRATOR_ROLE_KEY = "superAfterSchoolCareAdministrator";
// 	public static final String COURSE_ACCOUNTING_ROLE_KEY = "courseAccounting";
// 
// 	public static final int DAY_CARE_NONE = 0;
// 	public static final int DAY_CARE_PRE = 1;
// 	public static final int DAY_CARE_POST = 2;
// 	public static final int DAY_CARE_PRE_AND_POST = 3;
// 
// 	public static final String PROPERTY_REGISTRATION_EMAIL = "egov.course.registration.email";
// 	public static final String PROPERTY_BCC_EMAIL = "egov.course.bcc.email";
// 	public static final String PROPERTY_REFUND_EMAIL = "egov.course.refund.email";
// 	public static final String PROPERTY_HIDDEN_SCHOOL_TYPE = "egov.course.hidden.type";
// 	public static final String PROPERTY_MERCHANT_PK = "egov.course.merchant.pk";
// 	public static final String PROPERTY_MERCHANT_TYPE = "egov.course.merchant.type";
// 	public static final String PROPERTY_INVALIDATE_INTERVAL = "egov.course.invalidate.interval";
// 	public static final String PROPERTY_USE_DWR = "egov.course.use.dwr";
// 	public static final String PROPERTY_USE_FIXED_PRICES = "egov.course.use.fixed.prices";
// 	public static final String PROPERTY_USE_BIRTHYEARS = "egov.course.use.birthyears";
// 	public static final String PROPERTY_ACCOUNTING_TYPE_PK = "egov.course.accounting.type";
// 	public static final String PROPERTY_SHOW_ID_IN_NAME = "egov.course.show.id.in.name";
// 	public static final String PROPERTY_SHOW_PROVIDER = "egov.course.show.provider";
// 	public static final String PROPERTY_INCEPTION_YEAR = "egov.course.inception.year";
// 	public static final String PROPERTY_SHOW_ALL_COURSES = "egov.course.show.all.courses";
// 	public static final String PROPERTY_SHOW_CERTIFICATES = "egov.course.show.certificates";
// 	public static final String PROPERTY_SHOW_NO_PAYMENT = "egov.course.show.no.payment";
// 	public static final String PROPERTY_BACK_MONTHS = "egov.course.back.months";
// 	public static final String PROPERTY_USE_WAITING_LIST = "egov.course.use.waiting.list";
// 	public static final String PROPERTY_USE_DIRECT_PAYMENT = "egov.course.use.direct.payment";
// 	public static final String PROPERTY_SEND_REMINDERS = "egov.course.send.reminders";
// 	public static final String PROPERTY_PUBLIC_HOLIDAYS = "egov.course.public.holidays";
// 	public static final String PROPERTY_MANUALLY_OPEN_COURSES = "egov.course.manually.open";
// 	public static final String PROPERTY_ACCEPT_URL = "egov.course.accept.url";
// 	public static final String PROPERTY_SHOW_CARE_OPTIONS = "egov.course.show.care.options";
// 	public static final String PROPERTY_SHOW_PROVIDER_INFORMATION = "egov.course.show.provider.info";
// 	public static final String PROPERTY_SHOW_PERSON_INFORMATION = "egov.course.show.person.info";
// 
// 	public static final String PROPERTY_TIMEOUT_DAY_OF_WEEK = "egov.course.timeout.day";
// 	public static final String PROPERTY_TIMEOUT_HOUR = "egov.course.timeout.hour";
// 
// 	public static final String APPLICATION_PROPERTY_COURSE_MAP = "egov.course.map";
// 
// 	public static final String CARD_TYPE_EUROCARD = "eurocard";
// 	public static final String CARD_TYPE_VISA = "visa";
// 
// 	public static final String PAYMENT_TYPE_CARD = "credit_card";
// 	public static final String PAYMENT_TYPE_GIRO = "giro";
// 	public static final String PAYMENT_TYPE_BANK_TRANSFER = "bank_transfer";
// 
// 	public static final String PRODUCT_CODE_CARE = "CARE";
// 	public static final String PRODUCT_CODE_COURSE = "COURSE";
// 
// 	public static final String DISCOUNT_SIBLING = "sibling";
// 	public static final String DISCOUNT_QUANTITY = "quantity";
// 	public static final String DISCOUNT_SPOUSE = "spouse";
// 
// 	public static final String COURSE_PREFIX = "course_";
// 	
// 	public static final String DEFAULT_COURSE_CERTIFICATE_FEE = "defaultCourseCertificateFee";
// 
// 	public static final String PROPERTY_TIMER_HOUR = "egov.course.timer.hour";
// 	public static final String PROPERTY_TIMER_DAYOFWEEK = "egov.course.timer.dayofweek";
// 	public static final String PROPERTY_TIMER_MINUTE = "egov.course.timer.minute";
// 
// }


import is.idega.idegaweb.egov.course.CourseConstants;
import com.idega.block.school.data.School;
import com.idega.user.data.User;
		this.choice = choice;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Course getCourse() {
		return course;
	}

	public School getProvider() {
		return getCourse().getProvider();
	}

	public int getPrice() {
		float coursePrice = course.getCoursePrice();
		if (coursePrice > 0) {
			int tmpCoursePrice = Float.valueOf(coursePrice).intValue();
			if (tmpCoursePrice > 0) {
				return tmpCoursePrice;
			}
		}

		CoursePrice price = course.getPrice();
		int totalPrice = price.getPrice();
// Path: src/java/is/idega/idegaweb/egov/course/CourseConstants.java
// public class CourseConstants {
// 
// 	public static final String CASE_CODE_KEY = "COURSEA";
// 
// 	public static final String IW_BUNDLE_IDENTIFIER = "is.idega.idegaweb.egov.course";
// 
// 	public static final String ADMINISTRATOR_ROLE_KEY = "afterSchoolCareAdministrator";
// 	public static final String SUPER_ADMINISTRATOR_ROLE_KEY = "superAfterSchoolCareAdministrator";
// 	public static final String COURSE_ACCOUNTING_ROLE_KEY = "courseAccounting";
// 
// 	public static final int DAY_CARE_NONE = 0;
// 	public static final int DAY_CARE_PRE = 1;
// 	public static final int DAY_CARE_POST = 2;
// 	public static final int DAY_CARE_PRE_AND_POST = 3;
// 
// 	public static final String PROPERTY_REGISTRATION_EMAIL = "egov.course.registration.email";
// 	public static final String PROPERTY_BCC_EMAIL = "egov.course.bcc.email";
// 	public static final String PROPERTY_REFUND_EMAIL = "egov.course.refund.email";
// 	public static final String PROPERTY_HIDDEN_SCHOOL_TYPE = "egov.course.hidden.type";
// 	public static final String PROPERTY_MERCHANT_PK = "egov.course.merchant.pk";
// 	public static final String PROPERTY_MERCHANT_TYPE = "egov.course.merchant.type";
// 	public static final String PROPERTY_INVALIDATE_INTERVAL = "egov.course.invalidate.interval";
// 	public static final String PROPERTY_USE_DWR = "egov.course.use.dwr";
// 	public static final String PROPERTY_USE_FIXED_PRICES = "egov.course.use.fixed.prices";
// 	public static final String PROPERTY_USE_BIRTHYEARS = "egov.course.use.birthyears";
// 	public static final String PROPERTY_ACCOUNTING_TYPE_PK = "egov.course.accounting.type";
// 	public static final String PROPERTY_SHOW_ID_IN_NAME = "egov.course.show.id.in.name";
// 	public static final String PROPERTY_SHOW_PROVIDER = "egov.course.show.provider";
// 	public static final String PROPERTY_INCEPTION_YEAR = "egov.course.inception.year";
// 	public static final String PROPERTY_SHOW_ALL_COURSES = "egov.course.show.all.courses";
// 	public static final String PROPERTY_SHOW_CERTIFICATES = "egov.course.show.certificates";
// 	public static final String PROPERTY_SHOW_NO_PAYMENT = "egov.course.show.no.payment";
// 	public static final String PROPERTY_BACK_MONTHS = "egov.course.back.months";
// 	public static final String PROPERTY_USE_WAITING_LIST = "egov.course.use.waiting.list";
// 	public static final String PROPERTY_USE_DIRECT_PAYMENT = "egov.course.use.direct.payment";
// 	public static final String PROPERTY_SEND_REMINDERS = "egov.course.send.reminders";
// 	public static final String PROPERTY_PUBLIC_HOLIDAYS = "egov.course.public.holidays";
// 	public static final String PROPERTY_MANUALLY_OPEN_COURSES = "egov.course.manually.open";
// 	public static final String PROPERTY_ACCEPT_URL = "egov.course.accept.url";
// 	public static final String PROPERTY_SHOW_CARE_OPTIONS = "egov.course.show.care.options";
// 	public static final String PROPERTY_SHOW_PROVIDER_INFORMATION = "egov.course.show.provider.info";
// 	public static final String PROPERTY_SHOW_PERSON_INFORMATION = "egov.course.show.person.info";
// 
// 	public static final String PROPERTY_TIMEOUT_DAY_OF_WEEK = "egov.course.timeout.day";
// 	public static final String PROPERTY_TIMEOUT_HOUR = "egov.course.timeout.hour";
// 
// 	public static final String APPLICATION_PROPERTY_COURSE_MAP = "egov.course.map";
// 
// 	public static final String CARD_TYPE_EUROCARD = "eurocard";
// 	public static final String CARD_TYPE_VISA = "visa";
// 
// 	public static final String PAYMENT_TYPE_CARD = "credit_card";
// 	public static final String PAYMENT_TYPE_GIRO = "giro";
// 	public static final String PAYMENT_TYPE_BANK_TRANSFER = "bank_transfer";
// 
// 	public static final String PRODUCT_CODE_CARE = "CARE";
// 	public static final String PRODUCT_CODE_COURSE = "COURSE";
// 
// 	public static final String DISCOUNT_SIBLING = "sibling";
// 	public static final String DISCOUNT_QUANTITY = "quantity";
// 	public static final String DISCOUNT_SPOUSE = "spouse";
// 
// 	public static final String COURSE_PREFIX = "course_";
// 	
// 	public static final String DEFAULT_COURSE_CERTIFICATE_FEE = "defaultCourseCertificateFee";
// 
// 	public static final String PROPERTY_TIMER_HOUR = "egov.course.timer.hour";
// 	public static final String PROPERTY_TIMER_DAYOFWEEK = "egov.course.timer.dayofweek";
// 	public static final String PROPERTY_TIMER_MINUTE = "egov.course.timer.minute";
// 
// }


// Path: src/java/is/idega/idegaweb/egov/course/data/ApplicationHolder.java
import is.idega.idegaweb.egov.course.CourseConstants;
import com.idega.block.school.data.School;
import com.idega.user.data.User;

		this.choice = choice;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Course getCourse() {
		return course;
	}

	public School getProvider() {
		return getCourse().getProvider();
	}

	public int getPrice() {
		float coursePrice = course.getCoursePrice();
		if (coursePrice > 0) {
			int tmpCoursePrice = Float.valueOf(coursePrice).intValue();
			if (tmpCoursePrice > 0) {
				return tmpCoursePrice;
			}
		}

		CoursePrice price = course.getPrice();
		int totalPrice = price.getPrice();
		if (getDaycare() == CourseConstants.DAY_CARE_POST) {