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


Java MosLiteEDVoCollection类代码示例

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


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

示例1: getMedics

import ims.emergency.vo.MosLiteEDVoCollection; //导入依赖的package包/类
public MosLiteEDVoCollection getMedics(ILocation location) 
{
	if (location == null )
	{
		throw new CodingRuntimeException("Cannot get Location on null Id ");
	}
	DomainFactory factory = getDomainFactory();
	StringBuffer hql = new StringBuffer();
	
	//WDEV-16816
	hql.append("select m2_1 ");			
	hql.append(" from Tracking as t1_1 left join t1_1.seenBy as seenBy left join seenBy.allocatedMedic as m1_1 left join m1_1.mos as m2_1");
	hql.append(" where ");
	hql.append(" (t1_1.eDLocation.id = :Location_id and seenBy.allocatedMedic is not null )  ");
	hql.append(" order by m2_1.name.surname asc, m2_1.name.forename asc ");
	
	List<?> list  = factory.find(hql.toString(), new String[] {"Location_id"}, new Object[] {location.getID()});
			
	return MosLiteEDVoAssembler.createMosLiteEDVoCollectionFromMemberOfStaff(list);
	
}
 
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:22,代码来源:EDWorkloadSummaryImpl.java

示例2: getNurses

import ims.emergency.vo.MosLiteEDVoCollection; //导入依赖的package包/类
public MosLiteEDVoCollection getNurses(ILocation location) 
{
	if (location == null )
	{
		throw new CodingRuntimeException("Cannot get Location on null Id ");
	}
	DomainFactory factory = getDomainFactory();
	StringBuffer hql = new StringBuffer();
	
	//WDEV-16816
	hql.append("select m1_1 ");			
	hql.append(" from Tracking as t1_1 left join t1_1.seenBy as seenBy left join seenBy.allocatedNurse as h1_1 left join h1_1.mos as m1_1");
	hql.append(" where ");
	hql.append(" (t1_1.eDLocation.id = :Location_id and seenBy.allocatedNurse is not null )   ");
	
	hql.append(" order by m1_1.name.surname asc, m1_1.name.forename asc  ");
	
	List<?> list  = factory.find(hql.toString(), new String[] {"Location_id"}, new Object[] {location.getID()});
			
	return MosLiteEDVoAssembler.createMosLiteEDVoCollectionFromMemberOfStaff(list);
}
 
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:22,代码来源:EDWorkloadSummaryImpl.java

示例3: populateMedics

import ims.emergency.vo.MosLiteEDVoCollection; //导入依赖的package包/类
private void populateMedics(ILocation currentLocation) 
{
	MosLiteEDVoCollection medics=domain.getMedics(currentLocation);
	for(int i=0;i<medics.size();i++)
	{
		grdCurrentEmergDeptRow row=form.grdCurrentEmergDept().getRows().newRow();
		String str="";
		if(medics.get(i).getName().getTitleIsNotNull())
		{
			str=str+medics.get(i).getName().getTitle().toString();
		}
		if(medics.get(i).getName().getSurnameIsNotNull())
		{
			str=str+" "+medics.get(i).getName().getSurname().toString();
		}
		if(medics.get(i).getName().getForenameIsNotNull()) //WDEV-15947
		{
			str=str+" "+medics.get(i).getName().getForename().toString();
		}
			
		row.setMemberOfStaff(str);			
		row.setMedicImage(form.getImages().Emergency.DoctorEnabled16);
		
		String val=domain.getCurrentlyAllocatedCountsMedics(currentLocation, medics.get(i));
		row.setCurrentlyAllocatedTotal(val.equals("0")?"-":val);
		
		val=domain.getMedicsToBeSeenCounts(currentLocation, medics.get(i));
		row.setTobeSeen(val.equals("0")?"-":val);
		
		val=domain.getMedicsSeenCounts(currentLocation, medics.get(i));
		row.setSeen(val.equals("0")?"-":val);
		
		val=domain.getAwaitingCompletionCounts(currentLocation, medics.get(i));
		row.setAwaitingCompletion(val.equals("0")?"-":val);
	}
	
}
 
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:38,代码来源:Logic.java

示例4: populateNurses

import ims.emergency.vo.MosLiteEDVoCollection; //导入依赖的package包/类
private void populateNurses(ILocation currentLocation) 
{
	// TODO Auto-generated method stub
	MosLiteEDVoCollection nurses=domain.getNurses(currentLocation);
	for(int i=0;i<nurses.size();i++)
	{
		grdCurrentEmergDeptRow row=form.grdCurrentEmergDept().getRows().newRow();
		String str="";
		if(nurses.get(i).getName().getTitleIsNotNull())
		{
			str=str+nurses.get(i).getName().getTitle().toString();
		}
		if(nurses.get(i).getName().getSurnameIsNotNull())
		{
			str=str+" "+nurses.get(i).getName().getSurname().toString();
		}
		if(nurses.get(i).getName().getSurnameIsNotNull())
		{
			str=str+" "+nurses.get(i).getName().getForename().toString();
		}
			
		row.setMemberOfStaff(str);
		row.setMedicImage(form.getImages().Emergency.NurseEnabled16);
		
		String val=domain.getCurrentlyAllocatedNursesCounts(currentLocation, nurses.get(i));
		row.setCurrentlyAllocatedTotal(val.equals("0")?"-":val);
		
		val=domain.getNursesToBeSeenCounts(currentLocation, nurses.get(i));
		row.setTobeSeen(val.equals("0")?"-":val);
		
		val=domain.getNursesSeenCounts(currentLocation, nurses.get(i));
		row.setSeen(val.equals("0")?"-":val);
		
		val=domain.getNursesAwaitingCompletionCounts(currentLocation, nurses.get(i));
		row.setAwaitingCompletion(val.equals("0")?"-":val);
	}
}
 
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:38,代码来源:Logic.java


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