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


Java Discharge.getDateTimeDischarged方法代码示例

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


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

示例1: 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

示例2: 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.getDateTimeDischarged方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。