Logic.java 文件源码

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

项目:openMAXIMS 作者:
private void initialize(Object[] args)
{
    if(args != null && args.length > 0)
    {
        if(args[0] instanceof Boolean)
        {
            form.getLocalContext().setAddedDuringCoding(Boolean.TRUE);
        }
    }

    if(args != null && args.length > 1 && args[1] instanceof Boolean) //WDEV-21039
    {
        form.getLocalContext().setIncludeExcludedKeywords((Boolean) args[1]);   
    }

    initializeCustomControl();

    if (form.getGlobalContext().Core.getPatientDiagnosisAtConsultation()!=null)
    {
        populateScreenFromData( form.getGlobalContext().Core.getPatientDiagnosisAtConsultation());
    }
    else
    {
        AuthoringInformationVo voAuthoringInformation=new AuthoringInformationVo();
        voAuthoringInformation.setAuthoringDateTime(new DateTime());
        if (domain.getHcpLiteUser()!=null)
            voAuthoringInformation.setAuthoringHcp((HcpLiteVo) domain.getHcpLiteUser());
        form.ccAuthoringInfo().setValue(voAuthoringInformation);
    }

    if (form.getGlobalContext().Core.getPatientDiagnosisAtConsultationList()==null)
    {
        PatientDiagnosisAtConsultationVoCollection diagnosisCollection=new PatientDiagnosisAtConsultationVoCollection();
        form.getGlobalContext().Core.setPatientDiagnosisAtConsultationList(diagnosisCollection);
    }

    if (domain.getHcpLiteUser() == null)
    {
        form.chkMain().setEnabled(false);
        form.cmbStatus().setEnabled(false);
        form.qmbDiagnosis().setEnabled(false);
        form.setccAuthoringInfoEnabled(false);

        if (engine.hasRight(AppRight.ALLOW_EDIT_CONSULTATION_DIAGNOSIS))
        {
            form.qmbDiagnosis().setEnabled(false);
        }
    }

    if (form.getGlobalContext().Clinical.getDisableMainCheckboxIsNotNull() && form.getGlobalContext().Clinical.getDisableMainCheckbox())
    {
        form.chkMain().setEnabled(false);
    }

    //WDEV-19454
    form.chkSpecialtyHotlist().setVisible(!ConfigFlag.UI.SHOW_DIAGNOSES_DATABASE.getValue());
    form.GroupSelection().setVisible(ConfigFlag.UI.SHOW_DIAGNOSES_DATABASE.getValue());
    form.getLocalContext().setSearchBySpecialtyHotlist(true);
    if (ConfigFlag.UI.SHOW_DIAGNOSES_DATABASE.getValue())
    {
        form.GroupSelection().setValue(GroupSelectionEnumeration.rdoDiagSpec);//WDEV-19056
    }
    else
    {
        form.chkSpecialtyHotlist().setValue(true);
    }

    form.qmbDiagnosis().enableLiveSearch(ConfigFlag.UI.DIAGNOSIS_SEARCHING_MECHANISM.getValue().equals("Live")); //WDEV-22287

}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号