Java Code Examples for ims.framework.utils.Date.setDay()

The following are Jave code examples for showing how to use setDay() of the ims.framework.utils.Date class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: AvoinApotti   File: Logic.java   Source Code and License Vote up 4 votes
protected void onFormOpen() throws ims.framework.exceptions.FormOpenException
{
	Date yesterday = new Date();
	yesterday.setDay(yesterday.getDay() - 1);
	form.dteFrom().setValue(yesterday);

	DateTime nowTime = new DateTime();

	form.timFrom().setValue(nowTime.getTime());

	form.dteTo().setValue(nowTime.getDate());
	form.timTo().setValue(nowTime.getTime());

	// List Hosptals and add to Hospital combo
	fillHospitalListCombo();

	form.btnPrint().setEnabled(false);

	PatIdType dispIdType = PatIdType.getNegativeInstance(ConfigFlag.UI.DISPLAY_PATID_TYPE.getValue());
	form.grdReport().setColHospnumCaption(dispIdType.getText());

}