Java 类ims.clinical.vo.EDischargeSTHKSummaryDetailVoCollection 实例源码

项目:AvoinApotti    文件:Logic.java   
private EDischargeSTHKSummaryDetailVo getDetailRecord(EDischargeSTHKSummaryDetailVoCollection summaryDetails, EDischargeSummarySection section)
{
    if(summaryDetails != null)
    {
        for(EDischargeSTHKSummaryDetailVo voDetail : summaryDetails)
        {
            if(voDetail.getSection().equals(section))
                return voDetail;
        }
    }

    return null;
}
项目:openMAXIMS    文件:Logic.java   
private EDischargeSTHKSummaryDetailVo getDetailRecord(EDischargeSTHKSummaryDetailVoCollection summaryDetails, EDischargeSummarySection section)
{
    if(summaryDetails != null)
    {
        for(EDischargeSTHKSummaryDetailVo voDetail : summaryDetails)
        {
            if(voDetail.getSection().equals(section))
                return voDetail;
        }
    }

    return null;
}
项目:openMAXIMS    文件:Logic.java   
private EDischargeSTHKSummaryDetailVo getDetailRecord(EDischargeSTHKSummaryDetailVoCollection summaryDetails, EDischargeSummarySection section)
{
    if(summaryDetails != null)
    {
        for(EDischargeSTHKSummaryDetailVo voDetail : summaryDetails)
        {
            if(voDetail.getSection().equals(section))
                return voDetail;
        }
    }

    return null;
}
项目:openmaxims-linux    文件:Logic.java   
private EDischargeSTHKSummaryDetailVo getDetailRecord(EDischargeSTHKSummaryDetailVoCollection summaryDetails, EDischargeSummarySection section)
{
    if(summaryDetails != null)
    {
        for(EDischargeSTHKSummaryDetailVo voDetail : summaryDetails)
        {
            if(voDetail.getSection().equals(section))
                return voDetail;
        }
    }

    return null;
}
项目:AvoinApotti    文件:Logic.java   
private void updateControlState()
{
    form.btnAdditional().setVisible(false);
    form.getLocalContext().setAllowChangeOpsProcs(false);
    form.getLocalContext().setAllowChangeNeoNatalPlastics(false);
    //if a section of neonatal or plastics is present and not started
    //or ops procs is not started
    if(form.getLocalContext().getSelectedInstanceIsNotNull() && form.getLocalContext().getSelectedInstance().getID_Summary() != null)
    {
        EDischargeSTHKSummaryVo voSummary = form.getLocalContext().getSelectedInstance();
        EDischargeSTHKSummaryDetailVoCollection voCollDetails = voSummary.getSummaryDetails();
        boolean canChangeOpsProcs = true;
        boolean canChangePlasticsOrNeonatal = true;
        if(voCollDetails != null)
        {
            for(int i=0; i<voCollDetails.size(); i++)
            {
                if(voCollDetails.get(i).getSectionIsNotNull() && (voCollDetails.get(i).getSection().equals(EDischargeSummarySection.NEONATAL) || voCollDetails.get(i).getSection().equals(EDischargeSummarySection.PLASTICS)))
                {                           
                    if(voCollDetails.get(i).getSectionIsNotNull() && (voCollDetails.get(i).getSection().equals(EDischargeSummarySection.NEONATAL) || voCollDetails.get(i).getSection().equals(EDischargeSummarySection.PLASTICS)) && voCollDetails.get(i).getProgressStatusIsNotNull() && (voCollDetails.get(i).getProgressStatus().equals(EDischargeSummarySectionStatus.COMPLETED) || voCollDetails.get(i).getProgressStatus().equals(EDischargeSummarySectionStatus.IN_PROGRESS)))
                    {
                        canChangePlasticsOrNeonatal = false;
                    }
                }
                if(voCollDetails.get(i).getSectionIsNotNull() && voCollDetails.get(i).getSection().equals(EDischargeSummarySection.OPERATIONS_AND_PROCS))
                {
                    if(voCollDetails.get(i).getProgressStatusIsNotNull() && (voCollDetails.get(i).getProgressStatus().equals(EDischargeSummarySectionStatus.COMPLETED) || voCollDetails.get(i).getProgressStatus().equals(EDischargeSummarySectionStatus.IN_PROGRESS)))
                    {
                        canChangeOpsProcs = false;
                    }
                }
            }
        }
        if(canChangeOpsProcs || canChangePlasticsOrNeonatal)
        {
            form.btnAdditional().setVisible(true);
            form.getLocalContext().setAllowChangeOpsProcs(canChangeOpsProcs);
            form.getLocalContext().setAllowChangeNeoNatalPlastics(canChangePlasticsOrNeonatal);
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void updateControlState()
{
    form.btnAdditional().setVisible(false);
    form.getLocalContext().setAllowChangeOpsProcs(false);
    form.getLocalContext().setAllowChangeNeoNatalPlastics(false);
    //if a section of neonatal or plastics is present and not started
    //or ops procs is not started
    if(form.getLocalContext().getSelectedInstanceIsNotNull() && form.getLocalContext().getSelectedInstance().getID_Summary() != null)
    {
        EDischargeSTHKSummaryVo voSummary = form.getLocalContext().getSelectedInstance();
        EDischargeSTHKSummaryDetailVoCollection voCollDetails = voSummary.getSummaryDetails();
        boolean canChangeOpsProcs = true;
        boolean canChangePlasticsOrNeonatal = true;
        if(voCollDetails != null)
        {
            for(int i=0; i<voCollDetails.size(); i++)
            {
                if(voCollDetails.get(i).getSectionIsNotNull() && (voCollDetails.get(i).getSection().equals(EDischargeSummarySection.NEONATAL) || voCollDetails.get(i).getSection().equals(EDischargeSummarySection.PLASTICS)))
                {                           
                    if(voCollDetails.get(i).getSectionIsNotNull() && (voCollDetails.get(i).getSection().equals(EDischargeSummarySection.NEONATAL) || voCollDetails.get(i).getSection().equals(EDischargeSummarySection.PLASTICS)) && voCollDetails.get(i).getProgressStatusIsNotNull() && (voCollDetails.get(i).getProgressStatus().equals(EDischargeSummarySectionStatus.COMPLETED) || voCollDetails.get(i).getProgressStatus().equals(EDischargeSummarySectionStatus.IN_PROGRESS)))
                    {
                        canChangePlasticsOrNeonatal = false;
                    }
                }
                if(voCollDetails.get(i).getSectionIsNotNull() && voCollDetails.get(i).getSection().equals(EDischargeSummarySection.OPERATIONS_AND_PROCS))
                {
                    if(voCollDetails.get(i).getProgressStatusIsNotNull() && (voCollDetails.get(i).getProgressStatus().equals(EDischargeSummarySectionStatus.COMPLETED) || voCollDetails.get(i).getProgressStatus().equals(EDischargeSummarySectionStatus.IN_PROGRESS)))
                    {
                        canChangeOpsProcs = false;
                    }
                }
            }
        }
        if(canChangeOpsProcs || canChangePlasticsOrNeonatal)
        {
            form.btnAdditional().setVisible(true);
            form.getLocalContext().setAllowChangeOpsProcs(canChangeOpsProcs);
            form.getLocalContext().setAllowChangeNeoNatalPlastics(canChangePlasticsOrNeonatal);
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void updateControlState()
{
    form.btnAdditional().setVisible(false);
    form.getLocalContext().setAllowChangeOpsProcs(false);
    form.getLocalContext().setAllowChangeNeoNatalPlastics(false);
    //if a section of neonatal or plastics is present and not started
    //or ops procs is not started
    if(form.getLocalContext().getSelectedInstanceIsNotNull() && form.getLocalContext().getSelectedInstance().getID_Summary() != null)
    {
        EDischargeSTHKSummaryVo voSummary = form.getLocalContext().getSelectedInstance();
        EDischargeSTHKSummaryDetailVoCollection voCollDetails = voSummary.getSummaryDetails();
        boolean canChangeOpsProcs = true;
        boolean canChangePlasticsOrNeonatal = true;
        if(voCollDetails != null)
        {
            for(int i=0; i<voCollDetails.size(); i++)
            {
                if(voCollDetails.get(i).getSectionIsNotNull() && (voCollDetails.get(i).getSection().equals(EDischargeSummarySection.NEONATAL) || voCollDetails.get(i).getSection().equals(EDischargeSummarySection.PLASTICS)))
                {                           
                    if(voCollDetails.get(i).getSectionIsNotNull() && (voCollDetails.get(i).getSection().equals(EDischargeSummarySection.NEONATAL) || voCollDetails.get(i).getSection().equals(EDischargeSummarySection.PLASTICS)) && voCollDetails.get(i).getProgressStatusIsNotNull() && (voCollDetails.get(i).getProgressStatus().equals(EDischargeSummarySectionStatus.COMPLETED) || voCollDetails.get(i).getProgressStatus().equals(EDischargeSummarySectionStatus.IN_PROGRESS)))
                    {
                        canChangePlasticsOrNeonatal = false;
                    }
                }
                if(voCollDetails.get(i).getSectionIsNotNull() && voCollDetails.get(i).getSection().equals(EDischargeSummarySection.OPERATIONS_AND_PROCS))
                {
                    if(voCollDetails.get(i).getProgressStatusIsNotNull() && (voCollDetails.get(i).getProgressStatus().equals(EDischargeSummarySectionStatus.COMPLETED) || voCollDetails.get(i).getProgressStatus().equals(EDischargeSummarySectionStatus.IN_PROGRESS)))
                    {
                        canChangeOpsProcs = false;
                    }
                }
            }
        }
        if(canChangeOpsProcs || canChangePlasticsOrNeonatal)
        {
            form.btnAdditional().setVisible(true);
            form.getLocalContext().setAllowChangeOpsProcs(canChangeOpsProcs);
            form.getLocalContext().setAllowChangeNeoNatalPlastics(canChangePlasticsOrNeonatal);
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void updateControlState()
{
    form.btnAdditional().setVisible(false);
    form.getLocalContext().setAllowChangeOpsProcs(false);
    form.getLocalContext().setAllowChangeNeoNatalPlastics(false);
    //if a section of neonatal or plastics is present and not started
    //or ops procs is not started
    if(form.getLocalContext().getSelectedInstanceIsNotNull() && form.getLocalContext().getSelectedInstance().getID_Summary() != null)
    {
        EDischargeSTHKSummaryVo voSummary = form.getLocalContext().getSelectedInstance();
        EDischargeSTHKSummaryDetailVoCollection voCollDetails = voSummary.getSummaryDetails();
        boolean canChangeOpsProcs = true;
        boolean canChangePlasticsOrNeonatal = true;
        if(voCollDetails != null)
        {
            for(int i=0; i<voCollDetails.size(); i++)
            {
                if(voCollDetails.get(i).getSectionIsNotNull() && (voCollDetails.get(i).getSection().equals(EDischargeSummarySection.NEONATAL) || voCollDetails.get(i).getSection().equals(EDischargeSummarySection.PLASTICS)))
                {                           
                    if(voCollDetails.get(i).getSectionIsNotNull() && (voCollDetails.get(i).getSection().equals(EDischargeSummarySection.NEONATAL) || voCollDetails.get(i).getSection().equals(EDischargeSummarySection.PLASTICS)) && voCollDetails.get(i).getProgressStatusIsNotNull() && (voCollDetails.get(i).getProgressStatus().equals(EDischargeSummarySectionStatus.COMPLETED) || voCollDetails.get(i).getProgressStatus().equals(EDischargeSummarySectionStatus.IN_PROGRESS)))
                    {
                        canChangePlasticsOrNeonatal = false;
                    }
                }
                if(voCollDetails.get(i).getSectionIsNotNull() && voCollDetails.get(i).getSection().equals(EDischargeSummarySection.OPERATIONS_AND_PROCS))
                {
                    if(voCollDetails.get(i).getProgressStatusIsNotNull() && (voCollDetails.get(i).getProgressStatus().equals(EDischargeSummarySectionStatus.COMPLETED) || voCollDetails.get(i).getProgressStatus().equals(EDischargeSummarySectionStatus.IN_PROGRESS)))
                    {
                        canChangeOpsProcs = false;
                    }
                }
            }
        }
        if(canChangeOpsProcs || canChangePlasticsOrNeonatal)
        {
            form.btnAdditional().setVisible(true);
            form.getLocalContext().setAllowChangeOpsProcs(canChangeOpsProcs);
            form.getLocalContext().setAllowChangeNeoNatalPlastics(canChangePlasticsOrNeonatal);
        }
    }
}