本文整理汇总了Java中ch.rgw.tools.TimeTool.getTime方法的典型用法代码示例。如果您正苦于以下问题:Java TimeTool.getTime方法的具体用法?Java TimeTool.getTime怎么用?Java TimeTool.getTime使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ch.rgw.tools.TimeTool
的用法示例。
在下文中一共展示了TimeTool.getTime方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: execute
import ch.rgw.tools.TimeTool; //导入方法依赖的package包/类
@Override
public Object execute(ExecutionEvent event) throws ExecutionException{
Patient sp = ElexisEventDispatcher.getSelectedPatient();
if(sp==null) {
return null;
}
SupplementVaccinationDialog svd = new SupplementVaccinationDialog(UiDesk.getTopShell(), sp);
int retVal = svd.open();
if (retVal == TitleAreaDialog.OK) {
String patientId = sp.getId();
String administratorString = svd.getAdministratorString();
String lotNo = svd.getLotNo();
TimeTool doa = svd.getDateOfAdministration();
String articleString = svd.getArticleString();
Artikel art = (Artikel) new PersistentObjectFactory().createFromString(articleString);
if (art != null) {
new Vaccination(patientId, art, doa.getTime(), lotNo, administratorString);
} else {
Vaccination v =
new Vaccination(patientId, null, articleString, null, null, doa.getTime(),
lotNo, administratorString);
v.setVaccAgainst(svd.getVaccAgainst());
}
logger.debug("Supplement vaccination: " + articleString + " added");
}
return null;
}
示例2: deliverBirthdate
import ch.rgw.tools.TimeTool; //导入方法依赖的package包/类
public static String deliverBirthdate(Patient pat){
String dob = null;
try {
TimeTool tt = new TimeTool(pat.getGeburtsdatum(), true);
Date d = tt.getTime();
SimpleDateFormat sd = new SimpleDateFormat("ddMMyyyy");
dob = sd.format(d);
} catch (TimeFormatException e) {
return null;
}
return dob;
}
示例3: makeReferral
import ch.rgw.tools.TimeTool; //导入方法依赖的package包/类
private void makeReferral(Kontakt kontakt){
DocboxCDA docboxCDA = new DocboxCDA();
System.out.println("Invoking makeReferral...");
try {
addVersicherung(fall, docboxCDA);
} catch (Exception e) {
e.printStackTrace();
}
// FIXME phone, phoneBusiness notyet found
// Patient personaldaten
Date birthday = null;
if (!"".equals(patient.getGeburtsdatum())) {
TimeTool ttBirthday = new TimeTool(patient.getGeburtsdatum());
birthday = ttBirthday.getTime();
}
POCDMT000040RecordTarget recordTarget =
docboxCDA.getRecordTarget(patient.getPatCode(), null, patient.getAnschrift()
.getStrasse(), patient.getAnschrift().getPlz(), patient.getAnschrift().getOrt(),
null, null, patient.getNatel(), patient.getMailAddress(), patient.getVorname(),
patient.getName(), "w".equals(patient.getGeschlecht()), "m".equals(patient
.getGeschlecht()), false, birthday);
POCDMT000040Author author =
docboxCDA.getAuthor(CoreHub.actMandant.get(Person.TITLE),
CoreHub.actMandant.getVorname(), CoreHub.actMandant.getName(),
CoreHub.actMandant.getNatel(), null, null, CoreHub.actMandant.getMailAddress(),
null, null, null);
POCDMT000040Custodian custodian =
docboxCDA.getCustodian(null, null, null, null, null, null);
log.log("Invoking addReferral...", Log.DEBUGMSG);
POCDMT000040InformationRecipient informationRecipient = null;
if (kontakt != null) {
informationRecipient =
docboxCDA.getInformationRecipient(null, null, null,
DocboxContact.getDocboxIdFor(kontakt), null);
}
ClinicalDocumentType _addReferral_document = new ClinicalDocumentType();
_addReferral_document.setClinicalDocument(docboxCDA.getClinicalDocument("", recordTarget,
author, custodian, informationRecipient, docboxCDA.getCodeReferral(), null, null));
log.log("makeReferral ended...", Log.DEBUGMSG);
byte[] _addReferral_attachment = new byte[0];
javax.xml.ws.Holder<java.lang.Boolean> _addReferral_success =
new javax.xml.ws.Holder<java.lang.Boolean>();
javax.xml.ws.Holder<java.lang.String> _addReferral_message =
new javax.xml.ws.Holder<java.lang.String>();
javax.xml.ws.Holder<java.lang.String> _addReferral_documentID =
new javax.xml.ws.Holder<java.lang.String>();
CDACHServices port = UserDocboxPreferences.getPort();
port.addReferral(_addReferral_document, _addReferral_attachment, _addReferral_success,
_addReferral_message, _addReferral_documentID);
log.log("addReferral._addReferral_success=" + _addReferral_success.value, Log.DEBUGMSG);
log.log("addReferral._addReferral_message=" + _addReferral_message.value, Log.DEBUGMSG);
log.log("addReferral._addReferral_documentID=" + _addReferral_documentID.value,
Log.DEBUGMSG);
}
示例4: getArztArztCda
import ch.rgw.tools.TimeTool; //导入方法依赖的package包/类
private ClinicalDocumentType getArztArztCda(Fall fall, String title, String message,
String filename, String[] attachments){
try {
addVersicherung(fall, docboxCDA);
} catch (Exception e) {
ExHandler.handle(e);
}
Date birthday = null;
if (!"".equals(patient.getGeburtsdatum())) {
TimeTool ttBirthday = new TimeTool(patient.getGeburtsdatum());
birthday = ttBirthday.getTime();
}
POCDMT000040RecordTarget recordTarget =
docboxCDA.getRecordTarget(patient.getPatCode(), null, patient.getAnschrift()
.getStrasse(), patient.getAnschrift().getPlz(), patient.getAnschrift().getOrt(),
patient.get(Person.FLD_PHONE1), patient.get(Person.FLD_PHONE2), patient.getNatel(),
patient.getMailAddress(), patient.getVorname(), patient.getName(), "w"
.equals(patient.getGeschlecht()), "m".equals(patient.getGeschlecht()), false,
birthday);
POCDMT000040Author author =
docboxCDA.getAuthor(CoreHub.actMandant.get(Person.TITLE),
CoreHub.actMandant.getVorname(), CoreHub.actMandant.getName(),
CoreHub.actMandant.getNatel(), null, null, CoreHub.actMandant.getMailAddress(),
null, null, null);
POCDMT000040Custodian custodian =
docboxCDA.getCustodian("", docboxCDA.getAddress(CoreHub.actMandant.getAnschrift()
.getStrasse(), null, CoreHub.actMandant.getAnschrift().getPlz(), CoreHub.actMandant
.getAnschrift().getOrt(), "WP"), null, null, null, null);
POCDMT000040InformationRecipient informationRecipient = null;
if (kontakt != null) {
String organization = kontakt.get(Kontakt.FLD_NAME3);
if (kontakt.get(Kontakt.FLD_IS_USER).equals(StringConstants.ONE)) {
organization = "";
}
informationRecipient =
docboxCDA.getInformationRecipient(kontakt.get(Person.TITLE), kontakt
.get(Kontakt.FLD_NAME2), kontakt.get(Kontakt.FLD_NAME1), DocboxContact
.getDocboxIdFor(kontakt), docboxCDA.getOrganization(organization, null, null,
null, kontakt.getAnschrift().getStrasse(), kontakt.getAnschrift().getPlz(),
kontakt.getAnschrift().getOrt()));
}
docboxCDA.addComponentToBody("Notiz", message, "NOTIZ");
Vector<String> attachmentsCda = new Vector<String>();
attachmentsCda.add(filename);
if (attachments != null) {
for (String attach : attachments) {
attachmentsCda.add(attach);
}
}
docboxCDA.addAttachmentsDescriptionToBody(attachmentsCda);
ClinicalDocumentType _addReferral_document = new ClinicalDocumentType();
_addReferral_document.setClinicalDocument(docboxCDA.getClinicalDocument(title,
recordTarget, author, custodian, informationRecipient, docboxCDA.getCodeReferral(),
null, DocboxCDA.DOCBOXCDATYPE.Docbox_Arzt_Arzt));
return _addReferral_document;
}
示例5: getKonsDate
import ch.rgw.tools.TimeTool; //导入方法依赖的package包/类
public static Date getKonsDate(){
doa = new TimeTool(kons.getDatum());
return doa.getTime();
}
示例6: okPressed
import ch.rgw.tools.TimeTool; //导入方法依赖的package包/类
@Override
protected void okPressed(){
von.setTimeInMillis(dpVon.getDate().getTime());
bis.setTimeInMillis(dpBis.getDate().getTime());
Query<Termin> qbe = new Query<Termin>(Termin.class);
qbe.add(Termin.FLD_TAG, Query.GREATER_OR_EQUAL, von.toString(TimeTool.DATE_COMPACT));
qbe.add(Termin.FLD_TAG, Query.LESS_OR_EQUAL, bis.toString(TimeTool.DATE_COMPACT));
qbe.add(Termin.FLD_BEREICH, Query.EQUALS, m);
List<Termin> termine = qbe.execute();
String fname = lFile.getText();
if (fname.toLowerCase().endsWith(".csv")) { //$NON-NLS-1$
new CSVExporter().doExport(fname, termine);
} else {
TimeZoneRegistry registry = TimeZoneRegistryFactory.getInstance().createRegistry();
TimeZone timezone = registry.getTimeZone("Europe/Zurich"); //$NON-NLS-1$
VTimeZone tz = timezone.getVTimeZone();
Calendar calendar = new Calendar();
calendar.getProperties().add(new ProdId("-//ch.elexis//Elexis v" + CoreHub.Version)); //$NON-NLS-1$
calendar.getProperties().add(Version.VERSION_2_0);
calendar.getProperties().add(CalScale.GREGORIAN);
for (Termin t : termine) {
if ((t.getStartMinute() == 0) && (t.getType().equals(Termin.typReserviert()))) {
continue;
}
if ((t.getStartMinute() + t.getDurationInMinutes() == (23 * 60) + 59)
&& (t.getType().equals(Termin.typReserviert()))) {
continue;
}
TimeTool tt = new TimeTool(t.getStartTime());
DateTime start = new DateTime(tt.getTime());
tt.addMinutes(t.getDurationInMinutes());
DateTime end = new DateTime(tt.getTime());
VEvent vTermin = new VEvent(start, end, t.getPersonalia());
vTermin.getProperties().add(tz.getTimeZoneId());
Uid uid = new Uid(t.getId());
vTermin.getProperties().add(uid);
Description desc = new Description(t.getGrund());
vTermin.getProperties().add(desc);
calendar.getComponents().add(vTermin);
}
try {
FileOutputStream fout = new FileOutputStream(lFile.getText());
CalendarOutputter outputter = new CalendarOutputter();
outputter.output(calendar, fout);
} catch (Exception ex) {
ExHandler.handle(ex);
SWTHelper.alert(
Messages.ICalTransfer_iOError,
MessageFormat.format(Messages.ICalTransfer_couldNotWriteFile,
lFile.getText()));
}
}
super.okPressed();
}