本文整理汇总了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;
}
示例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 "";
}
示例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();
}
示例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;
}
示例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;
//}
}