• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java MedicationRouteCollection类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: getRoutes

import ims.core.vo.lookups.MedicationRouteCollection; //导入依赖的package包/类
public MedicationRouteCollection getRoutes(MedicationRefVo medication, DoseFormIndicator form)
{
	if (!medication.getID_MedicationIsNotNull())
		throw new DomainRuntimeException("Medication with null as id");
	String hql =  "select routes from Medication as medication left join medication.forms as forms left join forms.formRoutes as routes" +
			" left join forms.form as form where (medication.id = :medId and form.id = :formId)"; 
	List<?> dos = getDomainFactory().find(hql,new String[]{"medId","formId"},new Object[]{medication.getID_Medication(),form.getID()});
	if (dos == null || dos.size() == 0)
		return null;
	MedicationRouteLiteVoCollection routes = MedicationRouteLiteVoAssembler.createMedicationRouteLiteVoCollectionFromMedicationRoute(dos);
	MedicationRouteCollection result = new MedicationRouteCollection();
	for (int i = 0 ; i < routes.size() ; i++)
	{
		if( routes.get(i)!=null && routes.get(i).getRouteIsNotNull())
			result.add(routes.get(i).getRoute());
	}
	return result;
}
 
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:19,代码来源:EDischargeMedsSthkDialogImpl.java


示例2: rebindRouteRows

import ims.core.vo.lookups.MedicationRouteCollection; //导入依赖的package包/类
private void rebindRouteRows(DynamicGridRow formRow)
{
	
	if (formRow == null)
		return;
	DynamicGridRowCollection rows = formRow.getRows();
	MedicationRouteCollection mRoutes = ims.core.vo.lookups.LookupHelper.getMedicationRoute(this.domain.getLookupService());
	for (int i = 0 ; i < rows.size() ; i++)
	{
		if (rows.get(i).getValue() instanceof MedicationRouteVo)
		{
			MedicationRouteVo x = (MedicationRouteVo) rows.get(i).getValue();
			if (!x.getRouteIsNotNull())
				continue;
			mRoutes.remove(x.getRoute());
		}	
	}
	for (int i = 0 ; i < rows.size() ; i++)
	{
		DynamicGridCell cell = rows.get(i).getCells().get(form.lyrDetails().tabFRU().dyngrdFRU().getColumns().getByIdentifier(COL_MAIN));
		Object back = cell.getValue();
		cell.getItems().clear();
		if (back!=null)
			cell.getItems().newItem(back);
		for (int j = 0 ; j < mRoutes.size() ;j++)
			cell.getItems().newItem(mRoutes.get(j));
		cell.setValue(back);
	}
}
 
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:30,代码来源:Logic.java


示例3: populateCmbRoute

import ims.core.vo.lookups.MedicationRouteCollection; //导入依赖的package包/类
private void populateCmbRoute(MedicationRouteCollection routes)
{
	form.cmbRoute().clear();
	if (routes == null)
		return;
	for (int i = 0 ; i < routes.size() ; i++)
	{
		MedicationRoute route = routes.get(i);
		if (route != null)
		{
			form.cmbRoute().newRow(route, route.getText());
		}
	}
	
}
 
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:16,代码来源:Logic.java


示例4: setDoseRowValue

import ims.core.vo.lookups.MedicationRouteCollection; //导入依赖的package包/类
private void setDoseRowValue(DynamicGridRow row, MedicationDose dose)
{
	if (row == null)
		throw new CodingRuntimeException("Major Logical Error - Can not set a dose to null row");
	
	row.setValue(dose);
	
	if (dose == null)
		return;
	
	DynamicGridCell cell = row.getCells().newCell(form.dyngrdDoses().getColumns().getByIdentifier(COL_DOSE_DOSENAME), DynamicCellType.STRING);
	cell.setValidationMessage("Dose length is restricted to 255 characters.");
	cell.setValue(dose.getDose());
	cell.setWidth(120);
	cell.setReadOnly(true);
	
	cell = row.getCells().newCell(form.dyngrdDoses().getColumns().getByIdentifier(COL_DOSE_ROUTE), DynamicCellType.ENUMERATION);
	// bind to lookup
	cell.getItems().clear();
	MedicationRouteCollection medicationRouteCollection = LookupHelper.getMedicationRoute(domain.getLookupService());
	for (int i = 0; i < medicationRouteCollection.size(); i++)
	{
		MedicationRoute route = medicationRouteCollection.get(i);
		cell.getItems().newItem(route, route.getText());
	}
	cell.setValue(dose.getAdminRoute());
	cell.setWidth(120);
	cell.setReadOnly(true);
	
	
	cell = row.getCells().newCell(form.dyngrdDoses().getColumns().getByIdentifier(COL_DOSE_COMMENCED_BY), DynamicCellType.STRING);
	cell.setIdentifier(dose.getDoseStartHcp());
	cell.setValue(dose.getDoseStartHcp() != null ? dose.getDoseStartHcp().toString() : "");
	cell.setWidth(200);
	cell.setReadOnly(true);
	
	cell = row.getCells().newCell(form.dyngrdDoses().getColumns().getByIdentifier(COL_DOSE_COMMENCED_DATE), DynamicCellType.DATE);
	cell.setValue(dose.getDoseStartDate());
	cell.setWidth(-1);
	cell.setReadOnly(true);
	
	row.setIdentifier(ROW_STATE_NOT_EDITABLE);
}
 
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:44,代码来源:Logic.java


示例5: newDose

import ims.core.vo.lookups.MedicationRouteCollection; //导入依赖的package包/类
private void newDose()
{
	DynamicGridRow row = form.dyngrdDoses().getRows().newRow();
	
	DynamicGridCell cell = row.getCells().newCell(form.dyngrdDoses().getColumns().getByIdentifier(COL_DOSE_DOSENAME), DynamicCellType.STRING);
	cell.setReadOnly(false);
	cell.setStringMaxLength(255);
	cell.setValidationMessage("Dose length is restricted to 255 characters.");
	cell.setWidth(120);
	
	cell = row.getCells().newCell(form.dyngrdDoses().getColumns().getByIdentifier(COL_DOSE_ROUTE), DynamicCellType.ENUMERATION);
	cell.setReadOnly(false);
	// bind to lookup
	cell.getItems().clear();
	MedicationRouteCollection medicationRouteCollection = LookupHelper.getMedicationRoute(domain.getLookupService());
	for (int i = 0; i < medicationRouteCollection.size(); i++)
	{
		MedicationRoute route = medicationRouteCollection.get(i);
		cell.getItems().newItem(route, route.getText());
	}
	cell.setWidth(120);

	
	cell = row.getCells().newCell(form.dyngrdDoses().getColumns().getByIdentifier(COL_DOSE_COMMENCED_BY), DynamicCellType.STRING);
	cell.setReadOnly(true);
	cell.setIdentifier(domain.getHcpUser());
	cell.setValue(domain.getHcpUser() != null ? domain.getHcpUser().toString() : "");
	cell.setWidth(200);
	
	cell = row.getCells().newCell(form.dyngrdDoses().getColumns().getByIdentifier(COL_DOSE_COMMENCED_DATE), DynamicCellType.DATE);
	cell.setReadOnly(true);
	cell.setValue(new Date());
	cell.setWidth(-1);
	
	row.setValue(new MedicationDose());
	
	row.setIdentifier(ROW_STATE_EDITABLE);

	// Update grid selection
	form.dyngrdDoses().setSelectedRow(row);
}
 
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:42,代码来源:Logic.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java AuthenticatorAdapter类代码示例发布时间:2022-05-15
下一篇:
Java Follow类代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap