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