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


Java Mandant.exists方法代码示例

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


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

示例1: updateViewer

import ch.elexis.data.Mandant; //导入方法依赖的package包/类
private void updateViewer(){
	if (mandant != null) {
		Query<Mandant> qbe = new Query<Mandant>(Mandant.class);
		List<Mandant> input = qbe.execute();
		input.add(0, noMandant);
		responsibleViewer.setInput(input);
		String responsibleId =
			(String) mandant.getInfoElement(TarmedRequirements.RESPONSIBLE_INFO_KEY);
		if (responsibleId != null && !responsibleId.isEmpty()) {
			Mandant responsible = Mandant.load(responsibleId);
			if (responsible != null && responsible.exists()) {
				responsibleViewer.setSelection(new StructuredSelection(responsible));
			}
		}
	} else {
		responsibleViewer.setInput(Collections.EMPTY_LIST);
	}
}
 
开发者ID:elexis,项目名称:elexis-3-base,代码行数:19,代码来源:ResponsibleComposite.java

示例2: getMandant

import ch.elexis.data.Mandant; //导入方法依赖的package包/类
public Mandant getMandant(){
	Mandant ret = (mandantId == "" ? null : Mandant.load(mandantId));
	if (ret != null && ret.exists()) {
		return ret;
	}
	return null;
}
 
开发者ID:elexis,项目名称:elexis-3-core,代码行数:8,代码来源:TextTemplate.java

示例3: updateUi

import ch.elexis.data.Mandant; //导入方法依赖的package包/类
private void updateUi(){
	MailAccount mailAccount = getAccount();
	mandantInput.clear();
	if (mailAccount != null) {
		if (mailAccount.getType() == TYPE.IMAP) {
			((GridData) fromAddressLabel.getLayoutData()).exclude = true;
			fromAddressLabel.setVisible(false);
			((GridData) fromAddress.getLayoutData()).exclude = true;
			fromAddress.setVisible(false);
		} else if (mailAccount.getType() == TYPE.SMTP) {
			((GridData) fromAddressLabel.getLayoutData()).exclude = false;
			fromAddressLabel.setVisible(true);
			((GridData) fromAddress.getLayoutData()).exclude = false;
			fromAddress.setVisible(true);
		} else {
			((GridData) fromAddressLabel.getLayoutData()).exclude = true;
			fromAddressLabel.setVisible(false);
			((GridData) fromAddress.getLayoutData()).exclude = true;
			fromAddress.setVisible(false);
		}
		String mandants = mailAccount.getMandants();
		if (mandants != null) {
			String[] ids = mandants.split("\\|\\|");
			for (String string : ids) {
				Mandant mandant = Mandant.load(string);
				if (mandant != null && mandant.exists()) {
					mandantInput.add(mandant);
				}
			}
		}
	}
	layout();
	redraw();
}
 
开发者ID:elexis,项目名称:elexis-3-core,代码行数:35,代码来源:MailAccountComposite.java

示例4: isSupplement

import ch.elexis.data.Mandant; //导入方法依赖的package包/类
public boolean isSupplement(){
	String value = get(FLD_ADMINISTRATOR);
	if (value.startsWith(Mandant.class.getName())) {
		Mandant mandant = (Mandant) new PersistentObjectFactory().createFromString(value);
		
		if (mandant.exists()) {
			return false;
		}
	}
	return true;
}
 
开发者ID:elexis,项目名称:elexis-3-base,代码行数:12,代码来源:Vaccination.java

示例5: isVaccinationMandantKnown

import ch.elexis.data.Mandant; //导入方法依赖的package包/类
private boolean isVaccinationMandantKnown(Vaccination vaccination){
	String value = vaccination.get(Vaccination.FLD_ADMINISTRATOR);
	if (value.startsWith(Mandant.class.getName())) {
		Mandant mandant = (Mandant) new PersistentObjectFactory().createFromString(value);
		
		if (mandant != null && mandant.exists()) {
			return true;
		}
	}
	return false;
}
 
开发者ID:elexis,项目名称:elexis-3-base,代码行数:12,代码来源:VacdocServiceImpl.java

示例6: getVaccinationMandant

import ch.elexis.data.Mandant; //导入方法依赖的package包/类
private Mandant getVaccinationMandant(Vaccination vaccination){
	String value = vaccination.get(Vaccination.FLD_ADMINISTRATOR);
	if (value.startsWith(Mandant.class.getName())) {
		Mandant mandant = (Mandant) new PersistentObjectFactory().createFromString(value);
		
		if (mandant != null && mandant.exists()) {
			return mandant;
		}
	}
	return null;
}
 
开发者ID:elexis,项目名称:elexis-3-base,代码行数:12,代码来源:VacdocServiceImpl.java

示例7: getMandant

import ch.elexis.data.Mandant; //导入方法依赖的package包/类
public Mandant getMandant(){
	Mandant ret = Mandant.load(checkNull(get(FLD_MANDANT)));
	if (ret.exists()) {
		return ret;
	}
	return null;
}
 
开发者ID:elexis,项目名称:elexis-3-base,代码行数:8,代码来源:OutboxElement.java

示例8: execute

import ch.elexis.data.Mandant; //导入方法依赖的package包/类
@Override
public Object execute(ExecutionEvent event) throws ExecutionException{
	Patient elexisPatient = ElexisEventDispatcher.getSelectedPatient();
	Mandant elexisMandant = ElexisEventDispatcher.getSelectedMandator();
	
	if (elexisPatient != null && elexisMandant != null && elexisPatient.exists()
		&& elexisMandant.exists()) {
		Shell shell = PlatformUI.getWorkbench().getDisplay().getActiveShell();
		ISelection selection = HandlerUtil.getCurrentSelection(event);
		if (selection instanceof StructuredSelection
			&& !((StructuredSelection) selection).isEmpty()) {
			List<?> selected = ((StructuredSelection) selection).toList();
			
			int size = 0;
			for (Object documentToExport : selected) {
				// TODO add handler for other types
				if (documentToExport instanceof IDocument) {
					IDocument iDocument = (IDocument) documentToExport;
					createOutboxElement(elexisPatient, elexisMandant, iDocument);
					size++;
				}
			}
			if (size > 0) {
				MessageDialog.openInformation(shell, "Dokumente",
					size == 1 ? "Das Dokument wurde erfolgreich in die Outbox abgelegt."
							: size + " Dokumente wurden erfolgreich in die Outbox abgelegt.");
			}
		}
	}
	return null;
}
 
开发者ID:elexis,项目名称:elexis-3-base,代码行数:32,代码来源:CreateOutboxElementHandler.java


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