Java 类ims.core.vo.VSPupils 实例源码
项目:AvoinApotti
文件:Logic.java
protected void onBtnSaveClick() throws PresentationLogicException
{
if(form.cmbReactionLeft().getValue() == null || form.cmbReactionRight().getValue()== null)
{
engine.showMessage("Please enter values for pupil reactions for both eyes");
return;
}
VitalSignsVo voVitalSign = form.getLocalContext().getvitalSign();
VSPupils voPupil = new VSPupils();
voPupil.setPupilLeftReaction(form.cmbReactionLeft().getValue());
voPupil.setPupilRightReaction(form.cmbReactionRight().getValue());
voPupil.setPupilLeftSize(form.intSizeLeft().getValue());
voPupil.setPupilRightSize(form.intSizeRight().getValue());
voVitalSign.setPupils(voPupil);
String[] arrErrors = voVitalSign.validate();
if(arrErrors == null)
{
try {
domain.modifyPupils(voVitalSign);
} catch (StaleObjectException e) {
engine.showMessage(ims.configuration.gen.ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
refresh();
return;
}
}
else
{
engine.showErrors("Validation Errors", arrErrors);
return;
}
form.getGlobalContext().Core.setVitalSign(voVitalSign);
form.setMode(FormMode.VIEW);
listPupils();
dateIntervalStatus();
}
项目:openMAXIMS
文件:Logic.java
protected void onBtnSaveClick() throws PresentationLogicException
{
if(form.cmbReactionLeft().getValue() == null || form.cmbReactionRight().getValue()== null)
{
engine.showMessage("Please enter values for pupil reactions for both eyes");
return;
}
VitalSignsVo voVitalSign = form.getLocalContext().getvitalSign();
VSPupils voPupil = new VSPupils();
voPupil.setPupilLeftReaction(form.cmbReactionLeft().getValue());
voPupil.setPupilRightReaction(form.cmbReactionRight().getValue());
voPupil.setPupilLeftSize(form.intSizeLeft().getValue());
voPupil.setPupilRightSize(form.intSizeRight().getValue());
voVitalSign.setPupils(voPupil);
String[] arrErrors = voVitalSign.validate();
if(arrErrors == null)
{
try {
domain.modifyPupils(voVitalSign);
} catch (StaleObjectException e) {
engine.showMessage(ims.configuration.gen.ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
refresh();
return;
}
}
else
{
engine.showErrors("Validation Errors", arrErrors);
return;
}
form.getGlobalContext().Core.setVitalSign(voVitalSign);
form.setMode(FormMode.VIEW);
listPupils();
dateIntervalStatus();
}
项目:openMAXIMS
文件:Logic.java
protected void onBtnSaveClick() throws PresentationLogicException
{
if(form.cmbReactionLeft().getValue() == null || form.cmbReactionRight().getValue()== null)
{
engine.showMessage("Please enter values for pupil reactions for both eyes");
return;
}
VitalSignsVo voVitalSign = form.getLocalContext().getvitalSign();
VSPupils voPupil = new VSPupils();
voPupil.setPupilLeftReaction(form.cmbReactionLeft().getValue());
voPupil.setPupilRightReaction(form.cmbReactionRight().getValue());
voPupil.setPupilLeftSize(form.intSizeLeft().getValue());
voPupil.setPupilRightSize(form.intSizeRight().getValue());
voVitalSign.setPupils(voPupil);
String[] arrErrors = voVitalSign.validate();
if(arrErrors == null)
{
try {
domain.modifyPupils(voVitalSign);
} catch (StaleObjectException e) {
engine.showMessage(ims.configuration.gen.ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
refresh();
return;
}
}
else
{
engine.showErrors("Validation Errors", arrErrors);
return;
}
form.getGlobalContext().Core.setVitalSign(voVitalSign);
form.setMode(FormMode.VIEW);
listPupils();
dateIntervalStatus();
}
项目:openmaxims-linux
文件:Logic.java
protected void onBtnSaveClick() throws PresentationLogicException
{
if(form.cmbReactionLeft().getValue() == null || form.cmbReactionRight().getValue()== null)
{
engine.showMessage("Please enter values for pupil reactions for both eyes");
return;
}
VitalSignsVo voVitalSign = form.getLocalContext().getvitalSign();
VSPupils voPupil = new VSPupils();
voPupil.setPupilLeftReaction(form.cmbReactionLeft().getValue());
voPupil.setPupilRightReaction(form.cmbReactionRight().getValue());
voPupil.setPupilLeftSize(form.intSizeLeft().getValue());
voPupil.setPupilRightSize(form.intSizeRight().getValue());
voVitalSign.setPupils(voPupil);
String[] arrErrors = voVitalSign.validate();
if(arrErrors == null)
{
try {
domain.modifyPupils(voVitalSign);
} catch (StaleObjectException e) {
engine.showMessage(ims.configuration.gen.ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
refresh();
return;
}
}
else
{
engine.showErrors("Validation Errors", arrErrors);
return;
}
form.getGlobalContext().Core.setVitalSign(voVitalSign);
form.setMode(FormMode.VIEW);
listPupils();
dateIntervalStatus();
}