本文整理匯總了Java中ch.elexis.data.Mandant.addXid方法的典型用法代碼示例。如果您正苦於以下問題:Java Mandant.addXid方法的具體用法?Java Mandant.addXid怎麽用?Java Mandant.addXid使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類ch.elexis.data.Mandant
的用法示例。
在下文中一共展示了Mandant.addXid方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: createMandanten
import ch.elexis.data.Mandant; //導入方法依賴的package包/類
private void createMandanten(){
mandator = new Mandant("Testinger", "Hannelore", "01.01.1999", "w");
mandator.setLabel("mt");
mandator.set(Kontakt.FLD_STREET, "Testweg 15");
mandator.set(Kontakt.FLD_ZIP, "1234");
mandator.set(Kontakt.FLD_PLACE, "Testhausen");
mandator.set(Kontakt.FLD_PHONE1, "+41 79 123 45 90");
mandator.set(Person.TITLE, "Dr. med.");
mandator.setExtInfoStoredObjectByKey("Anrede", "Frau");
mandator.setExtInfoStoredObjectByKey("Kanton", "AG");
mandator.addXid(DOMAIN_EAN, "2000000000002", true);
CoreHub.setMandant(mandator);
}
示例2: before
import ch.elexis.data.Mandant; //導入方法依賴的package包/類
@BeforeClass
public static void before() throws IOException{
patient = new Patient("name", "firstname", "01.01.2000", Patient.FEMALE);
patient.set(Kontakt.FLD_PHONE1, "+01555123");
patient.set(Kontakt.FLD_MOBILEPHONE, "+01444132");
Anschrift anschrift = new Anschrift();
anschrift.setOrt("City");
anschrift.setPlz("123");
anschrift.setStrasse("Street 1");
patient.setAnschrift(anschrift);
addAHVNumber(patient, 1);
mandant = new Mandant("mandant", "firstname", "02.02.2002", Mandant.MALE);
mandant.set(Kontakt.FLD_PHONE1, "+01555987");
mandant.set(Kontakt.FLD_MOBILEPHONE, "+01444987");
anschrift = new Anschrift();
anschrift.setOrt("City");
anschrift.setPlz("987");
anschrift.setStrasse("Street 2");
mandant.setAnschrift(anschrift);
mandant.addXid(DOMAIN_EAN, "2000000000002", true);
Xid.localRegisterXIDDomainIfNotExists(DOMAIN_KSK, "KSK/ZSR-Nr", Xid.ASSIGNMENT_REGIONAL); //$NON-NLS-1$
mandant.addXid(DOMAIN_KSK, "C000002", true);
}
示例3: createMandanten
import ch.elexis.data.Mandant; //導入方法依賴的package包/類
private void createMandanten(){
Mandant mandant = new Mandant("Mandant.tarmed", "Mandant.tarmed", "01.01.1900", "w");
mandant.setLabel("mt");
TarmedACL ta = TarmedACL.getInstance();
mandant.setExtInfoStoredObjectByKey("Anrede", "Frau");
mandant.setExtInfoStoredObjectByKey("Kanton", "AG");
mandant.addXid(DOMAIN_EAN, "2000000000002", true);
// make sure somains are registered
TarmedRequirements.getEAN(mandant);
mandant.addXid(TarmedRequirements.DOMAIN_KSK, "C000002", true);
mandant.setExtInfoStoredObjectByKey(ta.ESR5OR9, "esr9");
mandant.setExtInfoStoredObjectByKey(ta.ESRPLUS, "esr16or27");
mandant.setExtInfoStoredObjectByKey(ta.LOCAL, "praxis");
mandant.setExtInfoStoredObjectByKey(ta.KANTON, "AG");
mandant.setExtInfoStoredObjectByKey(ta.SPEC, "Allgemein");
mandant.setExtInfoStoredObjectByKey(ta.TIERS, "payant");
mandant.setExtInfoStoredObjectByKey(ta.ESRNUMBER, "01-12648-2");
mandant.setExtInfoStoredObjectByKey(ta.ESRSUB, "15453");
mandanten.add(mandant);
CoreHub.setMandant(mandant);
}