当前位置: 首页>>代码示例>>Java>>正文


Java Discharge类代码示例

本文整理汇总了Java中ims.coe.vo.Discharge的典型用法代码示例。如果您正苦于以下问题:Java Discharge类的具体用法?Java Discharge怎么用?Java Discharge使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


Discharge类属于ims.coe.vo包,在下文中一共展示了Discharge类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: populateFunctionalVO

import ims.coe.vo.Discharge; //导入依赖的package包/类
private boolean populateFunctionalVO(Discharge dischargeVO)
{
	// Populate Discharge Assessment VO
	if (!dischargeVO.getAssessmentIsNotNull())
		dischargeVO.setAssessment(new DischargeAssessment());

	DateTime dt = new DateTime(form.layerControl1().tab2().dteFuncAssess().getValue(), form.layerControl1().tab2().timFuncAssess().getValue());
	dischargeVO.getAssessment().setDateTime(dt);

	Object hcpLite = domain.getHcpLiteUser();
	dischargeVO.getAssessment().setHCP(hcpLite != null ? (HcpLiteVo) hcpLite : null);
	if (dischargeVO.getCareContext() == null)
		dischargeVO.setCareContext(form.getGlobalContext().Core.getCurrentCareContext());
	dischargeVO.setNotes(form.layerControl1().tab2().textBoxNotes().getValue());
	// Clear the Functional and Support Collection
	dischargeVO.getAssessment().setFunctionalAndSupport(new DischargeFunctionalCollection());
	for (int i = 0; i < form.layerControl1().tab2().gridFunctional().getRows().size(); i++)
	{
		populateVo(form.layerControl1().tab2().gridFunctional().getRows().get(i), dischargeVO);
	}

	return true;
}
 
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:24,代码来源:Logic.java

示例2: populateVo

import ims.coe.vo.Discharge; //导入依赖的package包/类
private void populateVo(gridFunctionalRow row, Discharge dischargeVO)
{
	if (row.getRows().size() > 0)
	{
		for (int i = 0; i < row.getRows().size(); i++)
			populateVo(row.getRows().get(i), dischargeVO);
	}
	else
	{
		if (row.getColStatus() != null)
		{
			DischargeFunctional functionalVO = new DischargeFunctional();
			functionalVO.setFunctionalSupports(row.getColFunction());
			functionalVO.setStatus(row.getColStatus());
			functionalVO.setDetails(row.getColDetails());
			if (dischargeVO.getAssessment().getFunctionalAndSupport() == null)
				dischargeVO.getAssessment().setFunctionalAndSupport(new DischargeFunctionalCollection());
			dischargeVO.getAssessment().getFunctionalAndSupport().add(functionalVO);
		}
	}
}
 
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:22,代码来源:Logic.java

示例3: getDischargeRecord

import ims.coe.vo.Discharge; //导入依赖的package包/类
private boolean getDischargeRecord()
{
	Discharge dischargeVO = domain.getDischarge(form.getGlobalContext().Core.getCurrentCareContext());
	// Save the Value Object into the context
	form.getLocalContext().setDischargeToUpdate(dischargeVO);
	form.getGlobalContext().COE.setDischargeInpatient(dischargeVO);

	if (dischargeVO == null)
		return false;

	populateControls(dischargeVO);

	form.layerControl1().tab2().bPrint().setEnabled(true);

	return true;
}
 
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:17,代码来源:Logic.java

示例4: saveDischargeVO

import ims.coe.vo.Discharge; //导入依赖的package包/类
private boolean saveDischargeVO(Discharge dischargeVo)
{
	// Validate VO && Handle Errors
	String[] errors = dischargeVo.validate();
	if (errors != null)
	{
		displayErrors(errors);
		return false;
	}

	// Save Vo
	try
	{
		domain.saveDischarge(dischargeVo);
	}
	catch (StaleObjectException e)
	{
		engine.showMessage(ims.configuration.gen.ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
		form.setMode(FormMode.VIEW);
		open();
		return false;
	}

	return true;
}
 
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:26,代码来源:Logic.java

示例5: saveRecords

import ims.coe.vo.Discharge; //导入依赖的package包/类
private void saveRecords(Discharge dischargeVO)
{
	if (saveDischargeVO(dischargeVO))
	{
		open();
		form.setMode(FormMode.VIEW);
	}
}
 
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:9,代码来源:Logic.java

示例6: populateFunctionalDetails

import ims.coe.vo.Discharge; //导入依赖的package包/类
private void populateFunctionalDetails(Discharge dischargeVO)
{
	// Notes
	form.layerControl1().tab2().textBoxNotes().setValue(dischargeVO.getNotes());
	// Functional Assessment Grid
	if (dischargeVO.getAssessmentIsNotNull() && dischargeVO.getAssessment().getFunctionalAndSupportIsNotNull())
	{
		for (int i = 0; i < dischargeVO.getAssessment().getFunctionalAndSupport().size(); i++)
		{
			for (int j = 0; j < form.layerControl1().tab2().gridFunctional().getRows().size(); j++)
			{
				populateFunctionalRow(dischargeVO.getAssessment().getFunctionalAndSupport().get(i), form.layerControl1().tab2().gridFunctional().getRows().get(j));
			}
		}
	}
	// Functional Assessment
	if (dischargeVO.getAssessmentIsNotNull())
	{
		if (dischargeVO.getAssessment().getDateTimeIsNotNull())
		{
			form.layerControl1().tab2().dteFuncAssess().setValue(dischargeVO.getAssessment().getDateTime().getDate());
			form.layerControl1().tab2().timFuncAssess().setValue(dischargeVO.getAssessment().getDateTime().getTime());
		}
		if (dischargeVO.getAssessment().getHCPIsNotNull())
			form.layerControl1().tab2().txtHCP().setValue(dischargeVO.getAssessment().getHCP().toString());
	}
}
 
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:28,代码来源:Logic.java

示例7: initialize

import ims.coe.vo.Discharge; //导入依赖的package包/类
private void initialize() 
{
	if (form.getLocalContext().getFromReview() == null)
		form.getLocalContext().setFromReview(Boolean.FALSE);

	form.getLocalContext().setIsNewEvalNote(new Boolean(false));

	
	if (engine.getPreviousNonDialogFormName() != null)
		form.getLocalContext().setLastFormName(engine.getPreviousNonDialogFormName());

	if (form.getLocalContext().getLastFormName() != null && form.getLocalContext().getLastFormName().equals(form.getForms().Nursing.CarePlanReview))
	{
		form.btnReview().setVisible(true);
		form.btnReview().setEnabled(true);
		form.bClose().setVisible(false);
		form.bPrint().setVisible(false);
		form.getLocalContext().setFromReview(Boolean.TRUE);
	}
	else
	{
		form.bPrint().setEnabled(true);
		form.btnReview().setVisible(false);
		Discharge dischargeVO = domain.getDischarge(form.getGlobalContext().Core.getCurrentCareContext());
		if (dischargeVO != null)
		{
			if (dischargeVO.getDateTimeDischarged() != null)
				form.bUpdate().setEnabled(false);
		}
		else
		{
			form.bUpdate().setEnabled(true);
		}
	}
	
	if (ims.configuration.gen.ConfigFlag.UI.DISPLAY_CAREPLAN_NOTE_LINK.getValue())
	{
		form.lnkClinicalNote().setVisible(true);
	}
	else
	{
		form.lnkClinicalNote().setVisible(false);
	}
	
	form.cbFilter().clear();
	form.cbFilter().newRow("0", "Active Actions");
	form.cbFilter().newRow("1", "All Actions");
	
	boolean isCcoSpecific = ConfigFlag.GEN.CARE_PLAN_FUNCTIONALITY_TYPE.getValue().equals("CCO");
	form.cbFilter().setValue(isCcoSpecific ? "1" : "0");
	
	form.chkActive().setValue(true);
	
	form.dteNotesFrom().setValue(new Date().addDay(-30));
	form.dteNotesTo().setValue(new Date());
	
	form.chkActive().setVisible( ! isCcoSpecific);//wdev-13781
	
	initDynGrid();
	//------------
	//form.getGlobalContext().Nursing.setCarePlanInterventions(null);
	//------------
}
 
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:64,代码来源:Logic.java

示例8: open

import ims.coe.vo.Discharge; //导入依赖的package包/类
private void open()
{
	// Clear local context
	if (form.getLocalContext().getDischargeToUpdate() != null)
		form.getLocalContext().setDischargeToUpdate(null);
	form.layerControl1().tab1().gridActions().setReadOnly(true);
	form.layerControl1().tab2().gridFunctional().setReadOnly(true);
	form.layerControl1().settab1Enabled(true);
	form.layerControl1().settab2Enabled(true);

	form.layerControl1().tab2().bPrint().setEnabled(false);

	enableNewUpdateFuncAssButtons(true);
	enableNewUpdateActionButtons(true);
	clearControls();
	populateGrids();

	if (getDischargeRecord())
	{
		if (form.getLocalContext().getDischargeToUpdate().getDateTimeDischarged() != null)
		{
			form.layerControl1().tab1().btnNewAction().setVisible(false);
			form.layerControl1().tab1().btnUpdateAction().setVisible(false);
			form.layerControl1().tab1().btnDischarge().setVisible(false);
		}
		else
		{
			// We have a record but it's of functional type
			if (form.getLocalContext().getDischargeToUpdate().getDateCommencedIsNotNull())
			{
				form.layerControl1().tab1().btnNewAction().setVisible(false);
				form.layerControl1().tab1().btnUpdateAction().setVisible(true);
				form.layerControl1().tab1().btnDischarge().setVisible(true);
			}
			else
			{
				form.layerControl1().tab1().btnNewAction().setVisible(true);
				form.layerControl1().tab1().btnUpdateAction().setVisible(false);
				form.layerControl1().tab1().btnDischarge().setVisible(false);
			}
		}

		Discharge dischargeVO = domain.getDischarge(form.getGlobalContext().Core.getCurrentCareContext());
		if (dischargeVO != null && dischargeVO.getAssessmentIsNotNull())
		{
			// Discharge Assessment Record Exists
			form.layerControl1().tab2().btnNewFuncAss().setVisible(false);
			form.layerControl1().tab2().btnUpdateFuncAss().setVisible(true);
		}
		else
		{
			form.layerControl1().tab2().btnNewFuncAss().setVisible(true);
			form.layerControl1().tab2().btnUpdateFuncAss().setVisible(false);
		}
	}
	else
	{
		// Action
		form.layerControl1().tab1().btnNewAction().setVisible(true);
		form.layerControl1().tab1().btnUpdateAction().setVisible(false);
		form.layerControl1().tab1().btnDischarge().setVisible(false);

		// Assessment
		form.layerControl1().tab2().btnNewFuncAss().setVisible(true);
		form.layerControl1().tab2().btnUpdateFuncAss().setVisible(false);
	}
}
 
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:68,代码来源:Logic.java

示例9: populateControls

import ims.coe.vo.Discharge; //导入依赖的package包/类
private void populateControls(Discharge dischargeVO)
{
	populateActionsDetails(dischargeVO);
	populateFunctionalDetails(dischargeVO);
}
 
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:6,代码来源:Logic.java

示例10: populateActionsDetails

import ims.coe.vo.Discharge; //导入依赖的package包/类
private void populateActionsDetails(Discharge dischargeVO)
{
	form.layerControl1().tab1().dateCommenced().setValue(dischargeVO.getDateCommenced());
	form.layerControl1().tab1().comDest().setValue(dischargeVO.getDestination());
	if (dischargeVO.getDateTimeDischarged() != null)
	{
		form.layerControl1().tab1().textBoxDate().setValue(dischargeVO.getDateTimeDischarged().getDate().toString(DateFormat.STANDARD));
		form.layerControl1().tab1().textBoxTime().setValue(dischargeVO.getDateTimeDischarged().getTime().toString(TimeFormat.DEFAULT));
	}
	if (dischargeVO.getHCP() != null)
		form.layerControl1().tab1().textBoxBy().setValue(dischargeVO.getHCP().toString());

	// Action List Grid
	if (dischargeVO.getActions() != null)
	{
		for (int i = 0; i < dischargeVO.getActions().size(); i++)
		{
			gridActionsRow row = null;
			for (int j = 0; j < form.layerControl1().tab1().gridActions().getRows().size(); j++)
			{
				row = form.layerControl1().tab1().gridActions().getRows().get(j);
				if (dischargeVO.getActions().get(i).getActionList().equals(row.getColAction()))
				{
					row.setColStatus(dischargeVO.getActions().get(i).getStatus().booleanValue());
					if (dischargeVO.getActions().get(i).getDate() != null)
						row.setColActionDate(dischargeVO.getActions().get(i).getDate().toString(DateFormat.STANDARD));
					if (dischargeVO.getActions().get(i).getHCP() != null)
					{
						row.setColBy(dischargeVO.getActions().get(i).getHCP().toString());
						row.setColByValue(dischargeVO.getActions().get(i).getHCP());

					}
					else
						row.setColByValue(null);

					row.setColDetails(dischargeVO.getActions().get(i).getDetails());
					row.setValue(dischargeVO.getActions().get(i));
					break;
				}
			}
		}
	}
}
 
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:44,代码来源:Logic.java


注:本文中的ims.coe.vo.Discharge类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。