Logic.java 文件源码

java
阅读 21 收藏 0 点赞 0 评论 0

项目:AvoinApotti 作者:
@Override
protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException
{
    StringBuffer errors = new StringBuffer();
    if (form.dtimDisch().getValue() == null)
    {
        errors.append("Discharge Date Time is mandatory. \n");
    }
    if (form.cmbDestination().getValue() == null)
    {
        errors.append("Discharge Destination is mandatory. \n");
    }
    if (form.cmbMethod().getValue() == null)
    {
        errors.append("Method of Discharge is mandatory. \n");
    }

    if (errors != null && errors.length() > 0)
    {
        engine.showMessage(errors.toString());
        return;
    }

    RCHTInpatientDischargeVo inpatientDischarge = new RCHTInpatientDischargeVo();

    inpatientDischarge.setDischargeDateTime(form.dtimDisch().getValue());
    inpatientDischarge.setDischargeDestination(form.cmbDestination().getValue());
    inpatientDischarge.setMethodOfDischarge(form.cmbMethod().getValue());

    form.getGlobalContext().Core.setRCHTInpatientDischarge(inpatientDischarge);
    engine.close(DialogResult.OK);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号