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


Java Provider.getTeam方法代码示例

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


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

示例1: getTeam

import org.oscarehr.common.model.Provider; //导入方法依赖的package包/类
public String getTeam(String proNo) {
	String team = null;

	ProviderDao dao = SpringUtils.getBean(ProviderDao.class);
	Provider provider = dao.getProvider(proNo);

	if (provider != null) {
		team = provider.getTeam();
	}

	return team;
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:13,代码来源:EctConProviderData.java

示例2: getProviderTeam

import org.oscarehr.common.model.Provider; //导入方法依赖的package包/类
public String getProviderTeam(String id) {
	if(id == null || id.length()==0)
		return "";
	ProviderDao dao = SpringUtils.getBean(ProviderDao.class);
	Provider p = dao.getProvider(id);
	if (p != null) {
		return p.getTeam();
	}
	return "";
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:11,代码来源:EctConsultationFormRequestUtil.java

示例3: getProviderTeam

import org.oscarehr.common.model.Provider; //导入方法依赖的package包/类
public String getProviderTeam(String providerNo) {
	Provider provider = getProvider(providerNo);
	if(provider == null) return null;
	else return provider.getTeam();
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:6,代码来源:ProviderDao.java

示例4: getInfo

import org.oscarehr.common.model.Provider; //导入方法依赖的package包/类
public boolean getInfo(EctSessionBean bean, HttpServletRequest request, NavBarDisplayDAO Dao, MessageResources messages) {
if(!securityInfoManager.hasPrivilege(LoggedInInfo.getLoggedInInfoFromSession(request), "_eyeform", "r", null)) {
	throw new SecurityException("missing required security object (_eyeform)");
}

 try {

	String appointmentNo = request.getParameter("appointment_no");

    //Set lefthand module heading and link
    String winName = "OcularProcedure" + bean.demographicNo;
    String pathview, pathedit;

    pathview = request.getContextPath() + "/eyeform/OcularProc.do?method=list&demographicNo=" + bean.demographicNo;
    pathedit = request.getContextPath() + "/eyeform/OcularProc.do?proc.demographicNo=" + bean.demographicNo + "&proc.appointmentNo=" + appointmentNo;


    String url = "popupPage(500,900,'" + winName + "','" + pathview + "')";
    Dao.setLeftHeading(messages.getMessage(request.getLocale(), "global.viewOcularProcedure"));
    Dao.setLeftURL(url);

    //set right hand heading link
    winName = "AddOcularProcedure" + bean.demographicNo;
    url = "popupPage(500,600,'" + winName + "','" + pathedit + "'); return false;";
    Dao.setRightURL(url);
    Dao.setRightHeadingID(cmd); //no menu so set div id to unique id for this action


    EyeformOcularProcedureDao opDao = (EyeformOcularProcedureDao)SpringUtils.getBean(EyeformOcularProcedureDao.class);
    ProviderDao providerDao = (ProviderDao)SpringUtils.getBean("providerDao");


    List<EyeformOcularProcedure> ops = opDao.getByDemographicNo(Integer.parseInt(bean.demographicNo));

    for(EyeformOcularProcedure op:ops) {
    	NavBarDisplayDAO.Item item = NavBarDisplayDAO.Item();
    	item.setDate(op.getDate());
    	item.setValue(op.getId().toString());

    	Provider provider = providerDao.getProvider(op.getDoctor());

    	//String title = provider.getTeam() + " " + op.getEye() + " " + op.getProcedureName();
    	String title = op.getEye() + " " + op.getProcedureName();
    	if(provider.getTeam() != null && provider.getTeam().length()>0) {
    		title = title + "|" + provider.getTeam();
    	}
    	String itemHeader = StringUtils.maxLenString(title, MAX_LEN_TITLE, CROP_LEN_TITLE, ELLIPSES);
        item.setTitle(itemHeader);

        item.setLinkTitle(op.getLocation() + ";" + op.getProcedureNote());

        int hash = Math.abs(winName.hashCode());
        url = "popupPage(500,900,'" + hash + "','" + request.getContextPath() + "/eyeform/OcularProc.do?proc.id="+ op.getId() +"'); return false;";
        item.setURL(url);
        Dao.addItem(item);
    }

   //  Dao.sortItems(NavBarDisplayDAO.DATESORT);
 }catch( Exception e ) {
     MiscUtils.getLogger().error("Error", e);
     return false;
 }
   return true;
 }
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:65,代码来源:EctDisplayOcularProcedureAction.java

示例5: getInfo

import org.oscarehr.common.model.Provider; //导入方法依赖的package包/类
public boolean getInfo(EctSessionBean bean, HttpServletRequest request, NavBarDisplayDAO Dao, MessageResources messages) {

if(!securityInfoManager.hasPrivilege(LoggedInInfo.getLoggedInInfoFromSession(request), "_appointment", "r", null)) {
	throw new SecurityException("missing required security object (_appointment)");
}

try {

 String cpp =request.getParameter("cpp");
 if(cpp==null) {
	 cpp=new String();
 }

   //Set lefthand module heading and link
   String winName = "AppointmentHistory" + bean.demographicNo;
   String pathview, pathedit;

   pathview = request.getContextPath() + "/demographic/demographiccontrol.jsp?demographic_no="+bean.demographicNo+"&orderby=appttime&displaymode=appt_history&dboperation=appt_history&limit1=0&limit2=25";
   pathedit = request.getContextPath() + "/eyeform/SpecsHistory.do?specs.demographicNo=" + bean.demographicNo;


   String url = "popupPage(500,900,'" + winName + "','" + pathview + "')";
   Dao.setLeftHeading(messages.getMessage(request.getLocale(), "global.viewAppointmentHistory"));
   Dao.setLeftURL(url);

   //set right hand heading link
   winName = "AddSpecsHistory" + bean.demographicNo;
   url = "popupPage(500,600,'" + winName + "','" + pathedit + "'); return false;";
   Dao.setRightURL("return false;");
   Dao.setRightHeadingID(cmd); //no menu so set div id to unique id for this action


  ProviderDao providerDao = (ProviderDao)SpringUtils.getBean("providerDao");
  

   OscarAppointmentDao appointmentDao = (OscarAppointmentDao)SpringUtils.getBean("oscarAppointmentDao");
   List<Appointment> appts = appointmentDao.getAppointmentHistory(Integer.parseInt(bean.getDemographicNo()));

   int limit = 5;
   int index=0;
   for(Appointment sh:appts) {
   	if(index>=limit) break;
   	NavBarDisplayDAO.Item item = NavBarDisplayDAO.Item();
   	//item.setDate(sh.getAppointmentDate());
   	SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");

   	//Demographic d = demographicDao.getClientByDemographicNo(sh.getDemographicNo());
   	//Provider p = d.getProvider();
   	Provider p = providerDao.getProvider(sh.getProviderNo());

   	String title = formatter.format(sh.getAppointmentDate());
   	title += " " + p.getTeam() + " " + sh.getReason();

   	String itemHeader = StringUtils.maxLenString(title, MAX_LEN_TITLE, CROP_LEN_TITLE, ELLIPSES);
       item.setLinkTitle(itemHeader);
       item.setTitle(itemHeader);
       int hash = Math.abs(winName.hashCode());
       url = "popupPage(500,900,'" + hash + "','" + request.getContextPath() + "/eyeform/Eyeform.do?method=print&apptNos="+sh.getId()+"&cpp="+cpp+"'); return false;";
       item.setURL(url);
       Dao.addItem(item);
       index++;
   }


    Dao.sortItems(NavBarDisplayDAO.DATESORT);
}catch( Exception e ) {
    MiscUtils.getLogger().error("Error", e);
    return false;
}
   return true;
	//}
 }
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:73,代码来源:EctDisplayAppointmentHistoryAction.java


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