Logic.java 文件源码

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

项目:AvoinApotti 作者:
private void updateDiagnosis()
{
    if (domain.getHcpLiteUser() == null)
    {
        engine.showMessage("Logged in user is not a HCP.");                     
        return;
    }

    PatientDiagnosisAtConsultationVoCollection coll = new PatientDiagnosisAtConsultationVoCollection();
    for (int i = 0; i < form.grdDiagnosis().getRows().size(); i++) 
    {
        coll.add(form.grdDiagnosis().getRows().get(i).getValue());
    }
    form.getGlobalContext().Core.setPatientDiagnosisAtConsultationList(coll);

    //if another Diagnosis is marked as Primary / Main then disable the checkbox in dialog
    boolean bEnable = false;
    for (int i = 0 ; i < form.grdDiagnosis().getRows().size() ; i++)
    {
        if (form.grdDiagnosis().getRows().get(i).getColMain() != null)
        {
            if (i != form.grdDiagnosis().getSelectedRowIndex())
                bEnable = true;
        }
    }

    form.getGlobalContext().Clinical.setDisableMainCheckbox(bEnable);
    form.getGlobalContext().Core.setPatientDiagnosisAtConsultation(form.grdDiagnosis().getSelectedRow().getValue());

    engine.open(form.getForms().Clinical.DiagnosisDialog);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号