Java 类ims.core.vo.VSGlasgowComaScale 实例源码
项目:AvoinApotti
文件:Logic.java
protected void onBtnSaveClick() throws PresentationLogicException
{
VitalSignsVo voVitalSign = form.getLocalContext().getvitalSign();
VSGlasgowComaScale voGcs = new VSGlasgowComaScale();
voGcs.setEyeOpening(form.cmbEye().getValue());
voGcs.setMotorResponse(form.cmbMotor().getValue());
voGcs.setVerbalResponse(form.cmbVerbal().getValue());
voGcs.setTotalGlasgowComaScale(form.intGCS().getValue());
voVitalSign.setGlasgowComaScale(voGcs);
String[] arrErrors = voVitalSign.validate();
if(arrErrors == null)
{
try {
domain.modifyGCS(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.setMode(FormMode.VIEW);
listGlasgowComaScale();
form.getLocalContext().setvitalSign(voVitalSign);
displayRecord(form.getLocalContext().getvitalSign());
dateIntervalStatus();
}
项目:openMAXIMS
文件:Logic.java
protected void onBtnSaveClick() throws PresentationLogicException
{
VitalSignsVo voVitalSign = form.getLocalContext().getvitalSign();
VSGlasgowComaScale voGcs = new VSGlasgowComaScale();
voGcs.setEyeOpening(form.cmbEye().getValue());
voGcs.setMotorResponse(form.cmbMotor().getValue());
voGcs.setVerbalResponse(form.cmbVerbal().getValue());
voGcs.setTotalGlasgowComaScale(form.intGCS().getValue());
voVitalSign.setGlasgowComaScale(voGcs);
//WDEV-20191
String[] arrErrors = voVitalSign.validate(validateValuesforGlasgowComaScale());
if(arrErrors == null)
{
try {
domain.modifyGCS(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.setMode(FormMode.VIEW);
listGlasgowComaScale();
form.getLocalContext().setvitalSign(voVitalSign);
displayRecord(form.getLocalContext().getvitalSign());
dateIntervalStatus();
}
项目:openMAXIMS
文件:Logic.java
protected void onBtnSaveClick() throws PresentationLogicException
{
VitalSignsVo voVitalSign = form.getLocalContext().getvitalSign();
VSGlasgowComaScale voGcs = new VSGlasgowComaScale();
voGcs.setEyeOpening(form.cmbEye().getValue());
voGcs.setMotorResponse(form.cmbMotor().getValue());
voGcs.setVerbalResponse(form.cmbVerbal().getValue());
voGcs.setTotalGlasgowComaScale(form.intGCS().getValue());
voVitalSign.setGlasgowComaScale(voGcs);
String[] arrErrors = voVitalSign.validate();
if(arrErrors == null)
{
try {
domain.modifyGCS(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.setMode(FormMode.VIEW);
listGlasgowComaScale();
form.getLocalContext().setvitalSign(voVitalSign);
displayRecord(form.getLocalContext().getvitalSign());
dateIntervalStatus();
}
项目:openmaxims-linux
文件:Logic.java
protected void onBtnSaveClick() throws PresentationLogicException
{
VitalSignsVo voVitalSign = form.getLocalContext().getvitalSign();
VSGlasgowComaScale voGcs = new VSGlasgowComaScale();
voGcs.setEyeOpening(form.cmbEye().getValue());
voGcs.setMotorResponse(form.cmbMotor().getValue());
voGcs.setVerbalResponse(form.cmbVerbal().getValue());
voGcs.setTotalGlasgowComaScale(form.intGCS().getValue());
voVitalSign.setGlasgowComaScale(voGcs);
String[] arrErrors = voVitalSign.validate();
if(arrErrors == null)
{
try {
domain.modifyGCS(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.setMode(FormMode.VIEW);
listGlasgowComaScale();
form.getLocalContext().setvitalSign(voVitalSign);
displayRecord(form.getLocalContext().getvitalSign());
dateIntervalStatus();
}