Java Code Examples for ims.oncology.vo.ChemoCycleDetailsCCOVoCollection

The following are top voted examples for showing how to use ims.oncology.vo.ChemoCycleDetailsCCOVoCollection. These examples are extracted from open source projects. You can vote up the examples you like and your votes will be used in our system to generate more good examples.
Example 1
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
protected void upDateRegimenCodes()
{
	ChemoCycleDetailsCCOVoCollection voCycleCollectionVo = form.getLocalContext().getCurrentValueCollectionCycleDetailsTabGrid();
	if( voCycleCollectionVo == null)
		return;
	if (form.lyrDetails().tabDetails().cmbRegimeAcronym() != null)
	{
		for(int i = 0;i < voCycleCollectionVo.size();i++ )
		{
			ChemoRegimensConfigVo voConfig = domain.getChemoRegimeConfig(form.lyrDetails().tabDetails().cmbRegimeAcronym().getValue());
			ChemoCycleDetailsCCOVo voCCOCycle = voCycleCollectionVo.get(i);
			if(voCCOCycle == null)
				continue;
			if (voConfig != null)
			{
				
				voCCOCycle.setProcurementCode(null);
				voCCOCycle.setDayOneDeliveryCode(null);
				voCCOCycle.setDeliveryCodeAllOtherDays(null);
				
				
				voCCOCycle.setRegimen(voConfig.getRegimen());
				voCCOCycle.setProcurementCode(voCCOCycle.getDayNumber() != null &&  voCCOCycle.getDayNumber() == 1 ? voConfig.getProcurementCode() : null);
				voCCOCycle.setDayOneDeliveryCode(voCCOCycle.getDayNumber() != null &&  voCCOCycle.getDayNumber() == 1 ? voConfig.getDayOneDeliveryCode() : null);
				voCCOCycle.setDeliveryCodeAllOtherDays(voCCOCycle.getDayNumber() != null && voCCOCycle.getDayNumber() != 1 ? voConfig.getDeliveryCodeAllOtherDays() : null);
				
				//if (form.grdChemotherapy().getValue() != null && form.grdChemotherapy().getValue().getDrugTherapyType().equals(DrugTherapyType.HIGHCOSTDRUG))
				if(form.lyrDetails().tabDetails().cmbDrugTherapyType().getValue() != null && form.lyrDetails().tabDetails().cmbDrugTherapyType().getValue().equals(DrugTherapyType.HIGHCOSTDRUG))  	
				{
					voCCOCycle.setDayOneDeliveryCode(null);
					voCCOCycle.setDeliveryCodeAllOtherDays(voConfig.getDeliveryCodeAllOtherDays());
					voCCOCycle.setProcurementCode(voConfig.getProcurementCode());
				}
			}
		}
	}

}
 
Example 2
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
protected void onlyrDetailsTabChanged(LayerBridge tab) 
{
	if(form.lyrDetails().tabCycleAndDrugCCO().isVisible())
	{
		//if(form.lyrDetails().tabDetails().cmbDrugTherapyType().getValue() != null)
	//	{
			initializeCCODynamicGrid(form.lyrDetails().tabDetails().cmbDrugTherapyType().getValue());
			showHideDayDurationControls(form.lyrDetails().tabDetails().cmbDrugTherapyType().getValue());
			if(form.lyrDetails().tabCycleAndDrugCCO().btnSaveCycle().isVisible())		//wdev-13106
				enableDisableCCOControls(FormMode.EDIT);
			else
				enableDisableCCOControls(FormMode.VIEW);
			//wdev-12393
			ChemoCycleDetailsCCOVo voCycle = (ChemoCycleDetailsCCOVo) form.lyrDetails().tabCycleAndDrugCCO().dyngrdCCOCyclesDays().getValue(); //wdev-12819
			form.lyrDetails().tabCycleAndDrugCCO().dyngrdCCOCyclesDays().getRows().clear();
			
			ChemoCycleDetailsCCOVoCollection voCycleCollectionVo = form.getLocalContext().getCurrentValueCollectionCycleDetailsTabGrid();
			if(voCycleCollectionVo !=  null)
				voCycleCollectionVo.sort(SortOrder.ASCENDING);
			for (int j = 0; voCycleCollectionVo != null && j < voCycleCollectionVo.size(); j++)
			{
				addCCOChemotherapyCyleDetailsRow(voCycleCollectionVo.get(j), form.lyrDetails().tabDetails().cmbDrugTherapyType().getValue(), form.lyrDetails().tabCycleAndDrugCCO().GroupStatus().getValue().equals(GroupStatusEnumeration.rdoActiveFilter));
			}
			if(voCycle != null && voCycleCollectionVo.contains(voCycle))	//wdev-12819
				form.lyrDetails().tabCycleAndDrugCCO().dyngrdCCOCyclesDays().setValue(voCycle);
			
			updateContextMenuState();
			//---------------
	//	}
		if(!form.lyrDetails().tabCycleAndDrugCCO().btnSaveCycle().isVisible() && form.lyrDetails().tabCycleAndDrugCCO().dyngrdCCOCyclesDays().getValue() == null)		//wdev-12819
			clearCCOControls();
	}
	
}
 
Example 3
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
protected void upDateRegimenCodes()
{
	ChemoCycleDetailsCCOVoCollection voCycleCollectionVo = form.getLocalContext().getCurrentValueCollectionCycleDetailsTabGrid();
	if( voCycleCollectionVo == null)
		return;
	if (form.lyrDetails().tabDetails().cmbRegimeAcronym() != null)
	{
		for(int i = 0;i < voCycleCollectionVo.size();i++ )
		{
			ChemoRegimensConfigVo voConfig = domain.getChemoRegimeConfig(form.lyrDetails().tabDetails().cmbRegimeAcronym().getValue());
			ChemoCycleDetailsCCOVo voCCOCycle = voCycleCollectionVo.get(i);
			if(voCCOCycle == null)
				continue;
			if (voConfig != null)
			{
				
				voCCOCycle.setProcurementCode(null);
				voCCOCycle.setDayOneDeliveryCode(null);
				voCCOCycle.setDeliveryCodeAllOtherDays(null);
				
				
				voCCOCycle.setRegimen(voConfig.getRegimen());
				voCCOCycle.setProcurementCode(voCCOCycle.getDayNumber() != null &&  voCCOCycle.getDayNumber() == 1 ? voConfig.getProcurementCode() : null);
				voCCOCycle.setDayOneDeliveryCode(voCCOCycle.getDayNumber() != null &&  voCCOCycle.getDayNumber() == 1 ? voConfig.getDayOneDeliveryCode() : null);
				voCCOCycle.setDeliveryCodeAllOtherDays(voCCOCycle.getDayNumber() != null && voCCOCycle.getDayNumber() != 1 ? voConfig.getDeliveryCodeAllOtherDays() : null);
				
				//if (form.grdChemotherapy().getValue() != null && form.grdChemotherapy().getValue().getDrugTherapyType().equals(DrugTherapyType.HIGHCOSTDRUG))
				if(form.lyrDetails().tabDetails().cmbDrugTherapyType().getValue() != null && form.lyrDetails().tabDetails().cmbDrugTherapyType().getValue().equals(DrugTherapyType.HIGHCOSTDRUG))  	
				{
					voCCOCycle.setDayOneDeliveryCode(null);
					voCCOCycle.setDeliveryCodeAllOtherDays(voConfig.getDeliveryCodeAllOtherDays());
					voCCOCycle.setProcurementCode(voConfig.getProcurementCode());
				}
			}
		}
	}

}
 
Example 4
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
protected void onlyrDetailsTabChanged(LayerBridge tab) 
{
	if(form.lyrDetails().tabCycleAndDrugCCO().isVisible())
	{
		//if(form.lyrDetails().tabDetails().cmbDrugTherapyType().getValue() != null)
	//	{
			initializeCCODynamicGrid(form.lyrDetails().tabDetails().cmbDrugTherapyType().getValue());
			showHideDayDurationControls(form.lyrDetails().tabDetails().cmbDrugTherapyType().getValue());
			if(form.lyrDetails().tabCycleAndDrugCCO().btnSaveCycle().isVisible())		//wdev-13106
				enableDisableCCOControls(FormMode.EDIT);
			else
				enableDisableCCOControls(FormMode.VIEW);
			//wdev-12393
			ChemoCycleDetailsCCOVo voCycle = (ChemoCycleDetailsCCOVo) form.lyrDetails().tabCycleAndDrugCCO().dyngrdCCOCyclesDays().getValue(); //wdev-12819
			form.lyrDetails().tabCycleAndDrugCCO().dyngrdCCOCyclesDays().getRows().clear();
			
			ChemoCycleDetailsCCOVoCollection voCycleCollectionVo = form.getLocalContext().getCurrentValueCollectionCycleDetailsTabGrid();
			if(voCycleCollectionVo !=  null)
				voCycleCollectionVo.sort(SortOrder.ASCENDING);
			for (int j = 0; voCycleCollectionVo != null && j < voCycleCollectionVo.size(); j++)
			{
				addCCOChemotherapyCyleDetailsRow(voCycleCollectionVo.get(j), form.lyrDetails().tabDetails().cmbDrugTherapyType().getValue(), form.lyrDetails().tabCycleAndDrugCCO().GroupStatus().getValue().equals(GroupStatusEnumeration.rdoActiveFilter));
			}
			if(voCycle != null && voCycleCollectionVo.contains(voCycle))	//wdev-12819
				form.lyrDetails().tabCycleAndDrugCCO().dyngrdCCOCyclesDays().setValue(voCycle);
			
			updateContextMenuState();
			//---------------
	//	}
		if(!form.lyrDetails().tabCycleAndDrugCCO().btnSaveCycle().isVisible() && form.lyrDetails().tabCycleAndDrugCCO().dyngrdCCOCyclesDays().getValue() == null)		//wdev-12819
			clearCCOControls();
	}
	
}
 
Example 5
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
protected void upDateRegimenCodes()
{
	ChemoCycleDetailsCCOVoCollection voCycleCollectionVo = form.getLocalContext().getCurrentValueCollectionCycleDetailsTabGrid();
	if( voCycleCollectionVo == null)
		return;
	if (form.lyrDetails().tabDetails().cmbRegimeAcronym() != null)
	{
		for(int i = 0;i < voCycleCollectionVo.size();i++ )
		{
			ChemoRegimensConfigVo voConfig = domain.getChemoRegimeConfig(form.lyrDetails().tabDetails().cmbRegimeAcronym().getValue());
			ChemoCycleDetailsCCOVo voCCOCycle = voCycleCollectionVo.get(i);
			if(voCCOCycle == null)
				continue;
			if (voConfig != null)
			{
				
				voCCOCycle.setProcurementCode(null);
				voCCOCycle.setDayOneDeliveryCode(null);
				voCCOCycle.setDeliveryCodeAllOtherDays(null);
				
				
				voCCOCycle.setRegimen(voConfig.getRegimen());
				voCCOCycle.setProcurementCode(voCCOCycle.getDayNumber() != null &&  voCCOCycle.getDayNumber() == 1 ? voConfig.getProcurementCode() : null);
				voCCOCycle.setDayOneDeliveryCode(voCCOCycle.getDayNumber() != null &&  voCCOCycle.getDayNumber() == 1 ? voConfig.getDayOneDeliveryCode() : null);
				voCCOCycle.setDeliveryCodeAllOtherDays(voCCOCycle.getDayNumber() != null && voCCOCycle.getDayNumber() != 1 ? voConfig.getDeliveryCodeAllOtherDays() : null);
				
				//if (form.grdChemotherapy().getValue() != null && form.grdChemotherapy().getValue().getDrugTherapyType().equals(DrugTherapyType.HIGHCOSTDRUG))
				if(form.lyrDetails().tabDetails().cmbDrugTherapyType().getValue() != null && form.lyrDetails().tabDetails().cmbDrugTherapyType().getValue().equals(DrugTherapyType.HIGHCOSTDRUG))  	
				{
					voCCOCycle.setDayOneDeliveryCode(null);
					voCCOCycle.setDeliveryCodeAllOtherDays(voConfig.getDeliveryCodeAllOtherDays());
					voCCOCycle.setProcurementCode(voConfig.getProcurementCode());
				}
			}
		}
	}

}
 
Example 6
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
protected void onlyrDetailsTabChanged(LayerBridge tab) 
{
	if(form.lyrDetails().tabCycleAndDrugCCO().isVisible())
	{
		//if(form.lyrDetails().tabDetails().cmbDrugTherapyType().getValue() != null)
	//	{
			initializeCCODynamicGrid(form.lyrDetails().tabDetails().cmbDrugTherapyType().getValue());
			showHideDayDurationControls(form.lyrDetails().tabDetails().cmbDrugTherapyType().getValue());
			if(form.lyrDetails().tabCycleAndDrugCCO().btnSaveCycle().isVisible())		//wdev-13106
				enableDisableCCOControls(FormMode.EDIT);
			else
				enableDisableCCOControls(FormMode.VIEW);
			//wdev-12393
			ChemoCycleDetailsCCOVo voCycle = (ChemoCycleDetailsCCOVo) form.lyrDetails().tabCycleAndDrugCCO().dyngrdCCOCyclesDays().getValue(); //wdev-12819
			form.lyrDetails().tabCycleAndDrugCCO().dyngrdCCOCyclesDays().getRows().clear();
			
			ChemoCycleDetailsCCOVoCollection voCycleCollectionVo = form.getLocalContext().getCurrentValueCollectionCycleDetailsTabGrid();
			if(voCycleCollectionVo !=  null)
				voCycleCollectionVo.sort(SortOrder.ASCENDING);
			for (int j = 0; voCycleCollectionVo != null && j < voCycleCollectionVo.size(); j++)
			{
				addCCOChemotherapyCyleDetailsRow(voCycleCollectionVo.get(j), form.lyrDetails().tabDetails().cmbDrugTherapyType().getValue(), form.lyrDetails().tabCycleAndDrugCCO().GroupStatus().getValue().equals(GroupStatusEnumeration.rdoActiveFilter));
			}
			if(voCycle != null && voCycleCollectionVo.contains(voCycle))	//wdev-12819
				form.lyrDetails().tabCycleAndDrugCCO().dyngrdCCOCyclesDays().setValue(voCycle);
			
			updateContextMenuState();
			//---------------
	//	}
		if(!form.lyrDetails().tabCycleAndDrugCCO().btnSaveCycle().isVisible() && form.lyrDetails().tabCycleAndDrugCCO().dyngrdCCOCyclesDays().getValue() == null)		//wdev-12819
			clearCCOControls();
	}
	
}
 
Example 7
Project: openmaxims-linux   File: Logic.java   Source Code and License 5 votes vote down vote up
protected void upDateRegimenCodes()
{
	ChemoCycleDetailsCCOVoCollection voCycleCollectionVo = form.getLocalContext().getCurrentValueCollectionCycleDetailsTabGrid();
	if( voCycleCollectionVo == null)
		return;
	if (form.lyrDetails().tabDetails().cmbRegimeAcronym() != null)
	{
		for(int i = 0;i < voCycleCollectionVo.size();i++ )
		{
			ChemoRegimensConfigVo voConfig = domain.getChemoRegimeConfig(form.lyrDetails().tabDetails().cmbRegimeAcronym().getValue());
			ChemoCycleDetailsCCOVo voCCOCycle = voCycleCollectionVo.get(i);
			if(voCCOCycle == null)
				continue;
			if (voConfig != null)
			{
				
				voCCOCycle.setProcurementCode(null);
				voCCOCycle.setDayOneDeliveryCode(null);
				voCCOCycle.setDeliveryCodeAllOtherDays(null);
				
				
				voCCOCycle.setRegimen(voConfig.getRegimen());
				voCCOCycle.setProcurementCode(voCCOCycle.getDayNumber() != null &&  voCCOCycle.getDayNumber() == 1 ? voConfig.getProcurementCode() : null);
				voCCOCycle.setDayOneDeliveryCode(voCCOCycle.getDayNumber() != null &&  voCCOCycle.getDayNumber() == 1 ? voConfig.getDayOneDeliveryCode() : null);
				voCCOCycle.setDeliveryCodeAllOtherDays(voCCOCycle.getDayNumber() != null && voCCOCycle.getDayNumber() != 1 ? voConfig.getDeliveryCodeAllOtherDays() : null);
				
				//if (form.grdChemotherapy().getValue() != null && form.grdChemotherapy().getValue().getDrugTherapyType().equals(DrugTherapyType.HIGHCOSTDRUG))
				if(form.lyrDetails().tabDetails().cmbDrugTherapyType().getValue() != null && form.lyrDetails().tabDetails().cmbDrugTherapyType().getValue().equals(DrugTherapyType.HIGHCOSTDRUG))  	
				{
					voCCOCycle.setDayOneDeliveryCode(null);
					voCCOCycle.setDeliveryCodeAllOtherDays(voConfig.getDeliveryCodeAllOtherDays());
					voCCOCycle.setProcurementCode(voConfig.getProcurementCode());
				}
			}
		}
	}

}
 
Example 8
Project: openmaxims-linux   File: Logic.java   Source Code and License 5 votes vote down vote up
protected void onlyrDetailsTabChanged(LayerBridge tab) 
{
	if(form.lyrDetails().tabCycleAndDrugCCO().isVisible())
	{
		//if(form.lyrDetails().tabDetails().cmbDrugTherapyType().getValue() != null)
	//	{
			initializeCCODynamicGrid(form.lyrDetails().tabDetails().cmbDrugTherapyType().getValue());
			showHideDayDurationControls(form.lyrDetails().tabDetails().cmbDrugTherapyType().getValue());
			if(form.lyrDetails().tabCycleAndDrugCCO().btnSaveCycle().isVisible())		//wdev-13106
				enableDisableCCOControls(FormMode.EDIT);
			else
				enableDisableCCOControls(FormMode.VIEW);
			//wdev-12393
			ChemoCycleDetailsCCOVo voCycle = (ChemoCycleDetailsCCOVo) form.lyrDetails().tabCycleAndDrugCCO().dyngrdCCOCyclesDays().getValue(); //wdev-12819
			form.lyrDetails().tabCycleAndDrugCCO().dyngrdCCOCyclesDays().getRows().clear();
			
			ChemoCycleDetailsCCOVoCollection voCycleCollectionVo = form.getLocalContext().getCurrentValueCollectionCycleDetailsTabGrid();
			if(voCycleCollectionVo !=  null)
				voCycleCollectionVo.sort(SortOrder.ASCENDING);
			for (int j = 0; voCycleCollectionVo != null && j < voCycleCollectionVo.size(); j++)
			{
				addCCOChemotherapyCyleDetailsRow(voCycleCollectionVo.get(j), form.lyrDetails().tabDetails().cmbDrugTherapyType().getValue(), form.lyrDetails().tabCycleAndDrugCCO().GroupStatus().getValue().equals(GroupStatusEnumeration.rdoActiveFilter));
			}
			if(voCycle != null && voCycleCollectionVo.contains(voCycle))	//wdev-12819
				form.lyrDetails().tabCycleAndDrugCCO().dyngrdCCOCyclesDays().setValue(voCycle);
			
			updateContextMenuState();
			//---------------
	//	}
		if(!form.lyrDetails().tabCycleAndDrugCCO().btnSaveCycle().isVisible() && form.lyrDetails().tabCycleAndDrugCCO().dyngrdCCOCyclesDays().getValue() == null)		//wdev-12819
			clearCCOControls();
	}
	
}