本文整理匯總了Java中ch.elexis.data.Artikel.getEAN方法的典型用法代碼示例。如果您正苦於以下問題:Java Artikel.getEAN方法的具體用法?Java Artikel.getEAN怎麽用?Java Artikel.getEAN使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類ch.elexis.data.Artikel
的用法示例。
在下文中一共展示了Artikel.getEAN方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: getColumnText
import ch.elexis.data.Artikel; //導入方法依賴的package包/類
public String getColumnText(Object element, int columnIndex){
StockEntry se = (StockEntry) element;
Artikel article = se.getArticle();
switch (columnIndex) {
case 0:
return se.getStock().getCode();
case 1:
return (article != null) ? article.getPharmaCode() : "";
case 2:
return (article != null) ? article.getEAN() : "";
case 3:
return (article != null) ? article.getLabel() : "";
case 4:
return Integer.toString(se.getMinimumStock());
case 5:
return Integer.toString(se.getCurrentStock());
case 6:
return Integer.toString(se.getMaximumStock());
case 7:
return (se.getProvider() != null) ? se.getProvider().getLabel() : StringConstants.EMPTY;
default:
return StringConstants.EMPTY;
}
}
示例2: dropped
import ch.elexis.data.Artikel; //導入方法依賴的package包/類
public void dropped(PersistentObject o, DropTargetEvent ev){
if (o instanceof Artikel) {
Artikel artikel = (Artikel) o;
// only accept vaccinations
String atcCode = artikel.getATC_code();
if (atcCode != null && atcCode.length() > 4) {
if (atcCode.toUpperCase().startsWith(
DiseaseDefinitionModel.VACCINATION_ATC_GROUP_TRAILER)) {
AddVaccinationToKons addVacToKons =
new AddVaccinationToKons(ElexisEventDispatcher.getSelectedPatient(),
artikel, artikel.getEAN());
kons = addVacToKons.findOrCreateKons();
if (kons == null) {
logger
.warn("Could not insert vaccination as no consultation was found for this patient");
SWTHelper
.showError("Nicht erstellbar",
"Konnte Impfung nich eintragen, da keine Konsultation vorhanden ist.");
}
inProgress = true;
}
}
}
}
示例3: asExporter
import ch.elexis.data.Artikel; //導入方法依賴的package包/類
public XidElement asExporter(XChangeExporter home, Artikel art){
asExporter(home);
setAttribute(ATTR_ID, XMLTool.idToXMLID(art.getId()));
String ean = art.getEAN();
if (!StringTool.isNothing(ean)) {
addIdentities(art, XidConstants.DOMAIN_EAN, ean, Xid.ASSIGNMENT_REGIONAL, false);
}
String pk = art.getPharmaCode();
if (!StringTool.isNothing(pk)) {
addIdentities(art, Artikel.XID_PHARMACODE, pk, Xid.ASSIGNMENT_REGIONAL, false);
}
return this;
}
示例4: getIdType
import ch.elexis.data.Artikel; //導入方法依賴的package包/類
private static int getIdType(Artikel article){
String gtin = article.getEAN();
if (gtin != null && !gtin.isEmpty()) {
return 2;
}
String pharma = article.getPharmaCode();
if (pharma == null || pharma.isEmpty()) {
pharma = article.get(Artikel.FLD_SUB_ID);
}
if (pharma != null && !pharma.isEmpty()) {
return 3;
}
return 1;
}
示例5: getId
import ch.elexis.data.Artikel; //導入方法依賴的package包/類
private static String getId(Artikel article){
String gtin = article.getEAN();
if (gtin != null && !gtin.isEmpty()) {
return gtin;
}
String pharma = article.getPharmaCode();
if (pharma == null || pharma.isEmpty()) {
pharma = article.get(Artikel.FLD_SUB_ID);
}
if (pharma != null && !pharma.isEmpty()) {
return pharma;
}
throw new IllegalStateException(
"No ID (GTIN, Pharmacode) for article [" + article.getLabel() + "]");
}
示例6: Vaccination
import ch.elexis.data.Artikel; //導入方法依賴的package包/類
public Vaccination(final String patientId, final Artikel a, final Date doa, final String lotNo,
final String mandantId){
this(patientId, a.storeToString(), a.getLabel(), a.getEAN(), a.getATC_code(), doa, lotNo,
mandantId);
}