Java Code Examples for ims.core.vo.QuestionAnswerTypeVo.getID_QuestionAnswerTypeIsNotNull()

The following are Jave code examples for showing how to use getID_QuestionAnswerTypeIsNotNull() of the ims.core.vo.QuestionAnswerTypeVo 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 6 votes
protected void onFormDialogClosed(ims.framework.FormName formName, ims.framework.enumerations.DialogResult result) throws ims.framework.exceptions.PresentationLogicException
{
	if (formName.equals(form.getForms().Core.QuestionAnswerType) && result.equals(DialogResult.OK))
	{
		QuestionAnswerTypeVo voAnswType = form.getGlobalContext().Core.getQuestionAnswerType();
		if (voAnswType != null)
		{
			DynamicGridRow row = null;
			if(voAnswType.getID_QuestionAnswerTypeIsNotNull())
				row = getDynamicRowByValue(voAnswType);
			else if (form.getLocalContext().getIsNewAnwerTypeIsNotNull())
				if (form.getLocalContext().getIsNewAnwerType())
					row = form.lyrTabs().tabNewQuestion().dyngrdAnswerTypes().getRows().newRow();
				else 
					row = form.lyrTabs().tabNewQuestion().dyngrdAnswerTypes().getSelectedRow();
					
			createDynamicGridRow(voAnswType, row);				
			setDefaultDynamicGridCheckBox(voAnswType, true);
			enableContextMenu();
		}
	}		
	else if( formName.equals(form.getForms().Core.YesNoDialog) && result.equals(DialogResult.YES))
	{
		save(false);
	}
}
 
Example 2
Project: openMAXIMS   File: Logic.java   Source Code and License Vote up 6 votes
protected void onFormDialogClosed(ims.framework.FormName formName, ims.framework.enumerations.DialogResult result) throws ims.framework.exceptions.PresentationLogicException
{
	if (formName.equals(form.getForms().Core.QuestionAnswerType) && result.equals(DialogResult.OK))
	{
		QuestionAnswerTypeVo voAnswType = form.getGlobalContext().Core.getQuestionAnswerType();
		if (voAnswType != null)
		{
			DynamicGridRow row = null;
			if(voAnswType.getID_QuestionAnswerTypeIsNotNull())
				row = getDynamicRowByValue(voAnswType);
			else if (form.getLocalContext().getIsNewAnwerTypeIsNotNull())
				if (form.getLocalContext().getIsNewAnwerType())
					row = form.lyrTabs().tabNewQuestion().dyngrdAnswerTypes().getRows().newRow();
				else 
					row = form.lyrTabs().tabNewQuestion().dyngrdAnswerTypes().getSelectedRow();
					
			createDynamicGridRow(voAnswType, row);				
			setDefaultDynamicGridCheckBox(voAnswType, true);
			enableContextMenu();
		}
	}		
	else if( formName.equals(form.getForms().Core.YesNoDialog) && result.equals(DialogResult.YES))
	{
		save(false);
	}
}
 
Example 3
Project: openMAXIMS   File: Logic.java   Source Code and License Vote up 6 votes
protected void onFormDialogClosed(ims.framework.FormName formName, ims.framework.enumerations.DialogResult result) throws ims.framework.exceptions.PresentationLogicException
{
	if (formName.equals(form.getForms().Core.QuestionAnswerType) && result.equals(DialogResult.OK))
	{
		QuestionAnswerTypeVo voAnswType = form.getGlobalContext().Core.getQuestionAnswerType();
		if (voAnswType != null)
		{
			DynamicGridRow row = null;
			if(voAnswType.getID_QuestionAnswerTypeIsNotNull())
				row = getDynamicRowByValue(voAnswType);
			else if (form.getLocalContext().getIsNewAnwerTypeIsNotNull())
				if (form.getLocalContext().getIsNewAnwerType())
					row = form.lyrTabs().tabNewQuestion().dyngrdAnswerTypes().getRows().newRow();
				else 
					row = form.lyrTabs().tabNewQuestion().dyngrdAnswerTypes().getSelectedRow();
					
			createDynamicGridRow(voAnswType, row);				
			setDefaultDynamicGridCheckBox(voAnswType, true);
			enableContextMenu();
		}
	}		
	else if( formName.equals(form.getForms().Core.YesNoDialog) && result.equals(DialogResult.YES))
	{
		save(false);
	}
}
 
Example 4
Project: openmaxims-linux   File: Logic.java   Source Code and License Vote up 6 votes
protected void onFormDialogClosed(ims.framework.FormName formName, ims.framework.enumerations.DialogResult result) throws ims.framework.exceptions.PresentationLogicException
{
	if (formName.equals(form.getForms().Core.QuestionAnswerType) && result.equals(DialogResult.OK))
	{
		QuestionAnswerTypeVo voAnswType = form.getGlobalContext().Core.getQuestionAnswerType();
		if (voAnswType != null)
		{
			DynamicGridRow row = null;
			if(voAnswType.getID_QuestionAnswerTypeIsNotNull())
				row = getDynamicRowByValue(voAnswType);
			else if (form.getLocalContext().getIsNewAnwerTypeIsNotNull())
				if (form.getLocalContext().getIsNewAnwerType())
					row = form.lyrTabs().tabNewQuestion().dyngrdAnswerTypes().getRows().newRow();
				else 
					row = form.lyrTabs().tabNewQuestion().dyngrdAnswerTypes().getSelectedRow();
					
			createDynamicGridRow(voAnswType, row);				
			setDefaultDynamicGridCheckBox(voAnswType, true);
			enableContextMenu();
		}
	}		
	else if( formName.equals(form.getForms().Core.YesNoDialog) && result.equals(DialogResult.YES))
	{
		save(false);
	}
}
 
Example 5
Project: AvoinApotti   File: Logic.java   Source Code and License Vote up 5 votes
private void deactivateAnswerType()
{
	QuestionAnswerTypeVo voQAnsType = form.grdAnswerType().getValue();
	//Add it to the Inactive only if was saved
	if(voQAnsType != null && voQAnsType.getID_QuestionAnswerTypeIsNotNull())
	{
		voQAnsType.setActiveStatus(new Boolean(false));
		addLookupToInactiveList(voQAnsType);
	}
	form.grdAnswerType().removeSelectedRow();			
	enableContextMenu();
}
 
Example 6
Project: openMAXIMS   File: Logic.java   Source Code and License Vote up 5 votes
private void deactivateAnswerType()
{
	QuestionAnswerTypeVo voQAnsType = form.grdAnswerType().getValue();
	//Add it to the Inactive only if was saved
	if(voQAnsType != null && voQAnsType.getID_QuestionAnswerTypeIsNotNull())
	{
		voQAnsType.setActiveStatus(new Boolean(false));
		addLookupToInactiveList(voQAnsType);
	}
	form.grdAnswerType().removeSelectedRow();			
	enableContextMenu();
}
 
Example 7
Project: openMAXIMS   File: Logic.java   Source Code and License Vote up 5 votes
private void deactivateAnswerType()
{
	QuestionAnswerTypeVo voQAnsType = form.grdAnswerType().getValue();
	//Add it to the Inactive only if was saved
	if(voQAnsType != null && voQAnsType.getID_QuestionAnswerTypeIsNotNull())
	{
		voQAnsType.setActiveStatus(new Boolean(false));
		addLookupToInactiveList(voQAnsType);
	}
	form.grdAnswerType().removeSelectedRow();			
	enableContextMenu();
}
 
Example 8
Project: openmaxims-linux   File: Logic.java   Source Code and License Vote up 5 votes
private void deactivateAnswerType()
{
	QuestionAnswerTypeVo voQAnsType = form.grdAnswerType().getValue();
	//Add it to the Inactive only if was saved
	if(voQAnsType != null && voQAnsType.getID_QuestionAnswerTypeIsNotNull())
	{
		voQAnsType.setActiveStatus(new Boolean(false));
		addLookupToInactiveList(voQAnsType);
	}
	form.grdAnswerType().removeSelectedRow();			
	enableContextMenu();
}