Java 类ims.clinical.vo.lookups.SurgicalAuditOperationDetailStatus 实例源码

项目:AvoinApotti    文件:Logic.java   
private boolean shouldCancelTabBeEditable()
{
    // NOTE : the operation can only be cancelled if the status is -2382 or
    // -2383 or -2384 or -2385 otherwise the tab should be readonly.)
    // -2382 ->In Holding Bay
    // -2383 ->Left Holding Bay
    // -2384 ->Entered Operating Theatre
    // -2385 ->Anaesthetic Started

    //also if the operation have the Cancelled Operation Status (-2394) , operation Cancelled should be editable

    if (form.getLocalContext().getselectedSurgicalAuditOpDetailIsNotNull() && form.getLocalContext().getselectedSurgicalAuditOpDetail().getOperationCancelledIsNotNull() 
            && (form.getLocalContext().getselectedSurgicalAuditOpDetail().getCurrentStatus().getOperationStatus().equals(SurgicalAuditOperationDetailStatus.IN_HOLDING_BAY) 
                || form.getLocalContext().getselectedSurgicalAuditOpDetail().getCurrentStatus().getOperationStatus().equals(SurgicalAuditOperationDetailStatus.LEFT_HOLDING_BAY) 
                || form.getLocalContext().getselectedSurgicalAuditOpDetail().getCurrentStatus().getOperationStatus().equals(SurgicalAuditOperationDetailStatus.ENTERED_OPERATING_THEATRE) 
                || form.getLocalContext().getselectedSurgicalAuditOpDetail().getCurrentStatus().getOperationStatus().equals(SurgicalAuditOperationDetailStatus.ANAESTHETIC_STARTED)
                || form.getLocalContext().getselectedSurgicalAuditOpDetail().getCurrentStatus().getOperationStatus().equals(SurgicalAuditOperationDetailStatus.CANCELLED_OPERATIONS)))
        return true;

    return false;
}
项目:AvoinApotti    文件:Logic.java   
private void populateStatusCombo()
{
    form.cmbStatus().clear();
    ims.clinical.vo.lookups.SurgicalAuditOperationDetailStatusCollection lookupCollection = ims.clinical.vo.lookups.LookupHelper.getSurgicalAuditOperationDetailStatus(this.domain.getLookupService());
    for(int x = 0; x < lookupCollection.size(); x++)
    {
        if (lookupCollection.get(x).equals(SurgicalAuditOperationDetailStatus.LEFT_HOLDING_BAY)
            || lookupCollection.get(x).equals(SurgicalAuditOperationDetailStatus.ENTERED_OPERATING_THEATRE)
            || lookupCollection.get(x).equals(SurgicalAuditOperationDetailStatus.LEFT_OPERATING_THEATRE)
            || lookupCollection.get(x).equals(SurgicalAuditOperationDetailStatus.HAND_OVER_FROM_RECOVERY_NURSE)
            || lookupCollection.get(x).equals(SurgicalAuditOperationDetailStatus.CANCELLED_OPERATIONS)  )
        {
            form.cmbStatus().newRow(lookupCollection.get(x), lookupCollection.get(x).getText(), lookupCollection.get(x).getImage(), lookupCollection.get(x).getTextColor());
        }   
    }
}
项目:openMAXIMS    文件:Logic.java   
private boolean shouldCancelTabBeEditable()
{
    // NOTE : the operation can only be cancelled if the status is -2382 or
    // -2383 or -2384 or -2385 otherwise the tab should be readonly.)
    // -2382 ->In Holding Bay
    // -2383 ->Left Holding Bay
    // -2384 ->Entered Operating Theatre
    // -2385 ->Anaesthetic Started

    //also if the operation have the Cancelled Operation Status (-2394) , operation Cancelled should be editable

    if (form.getLocalContext().getselectedSurgicalAuditOpDetailIsNotNull() && form.getLocalContext().getselectedSurgicalAuditOpDetail().getOperationCancelledIsNotNull() 
            && (form.getLocalContext().getselectedSurgicalAuditOpDetail().getCurrentStatus().getOperationStatus().equals(SurgicalAuditOperationDetailStatus.IN_HOLDING_BAY) 
                || form.getLocalContext().getselectedSurgicalAuditOpDetail().getCurrentStatus().getOperationStatus().equals(SurgicalAuditOperationDetailStatus.LEFT_HOLDING_BAY) 
                || form.getLocalContext().getselectedSurgicalAuditOpDetail().getCurrentStatus().getOperationStatus().equals(SurgicalAuditOperationDetailStatus.ENTERED_OPERATING_THEATRE) 
                || form.getLocalContext().getselectedSurgicalAuditOpDetail().getCurrentStatus().getOperationStatus().equals(SurgicalAuditOperationDetailStatus.ANAESTHETIC_STARTED)
                || form.getLocalContext().getselectedSurgicalAuditOpDetail().getCurrentStatus().getOperationStatus().equals(SurgicalAuditOperationDetailStatus.CANCELLED_OPERATIONS)))
        return true;

    return false;
}
项目:openMAXIMS    文件:Logic.java   
private void populateStatusCombo()
{
    form.cmbStatus().clear();
    ims.clinical.vo.lookups.SurgicalAuditOperationDetailStatusCollection lookupCollection = ims.clinical.vo.lookups.LookupHelper.getSurgicalAuditOperationDetailStatus(this.domain.getLookupService());
    for(int x = 0; x < lookupCollection.size(); x++)
    {
        if (lookupCollection.get(x).equals(SurgicalAuditOperationDetailStatus.LEFT_HOLDING_BAY)
            || lookupCollection.get(x).equals(SurgicalAuditOperationDetailStatus.ENTERED_OPERATING_THEATRE)
            || lookupCollection.get(x).equals(SurgicalAuditOperationDetailStatus.LEFT_OPERATING_THEATRE)
            || lookupCollection.get(x).equals(SurgicalAuditOperationDetailStatus.HAND_OVER_FROM_RECOVERY_NURSE)
            || lookupCollection.get(x).equals(SurgicalAuditOperationDetailStatus.CANCELLED_OPERATIONS)  )
        {
            form.cmbStatus().newRow(lookupCollection.get(x), lookupCollection.get(x).getText(), lookupCollection.get(x).getImage(), lookupCollection.get(x).getTextColor());
        }   
    }
}
项目:openMAXIMS    文件:Logic.java   
private boolean shouldCancelTabBeEditable()
{
    // NOTE : the operation can only be cancelled if the status is -2382 or
    // -2383 or -2384 or -2385 otherwise the tab should be readonly.)
    // -2382 ->In Holding Bay
    // -2383 ->Left Holding Bay
    // -2384 ->Entered Operating Theatre
    // -2385 ->Anaesthetic Started

    //also if the operation have the Cancelled Operation Status (-2394) , operation Cancelled should be editable

    if (form.getLocalContext().getselectedSurgicalAuditOpDetailIsNotNull() && form.getLocalContext().getselectedSurgicalAuditOpDetail().getOperationCancelledIsNotNull() 
            && (form.getLocalContext().getselectedSurgicalAuditOpDetail().getCurrentStatus().getOperationStatus().equals(SurgicalAuditOperationDetailStatus.IN_HOLDING_BAY) 
                || form.getLocalContext().getselectedSurgicalAuditOpDetail().getCurrentStatus().getOperationStatus().equals(SurgicalAuditOperationDetailStatus.LEFT_HOLDING_BAY) 
                || form.getLocalContext().getselectedSurgicalAuditOpDetail().getCurrentStatus().getOperationStatus().equals(SurgicalAuditOperationDetailStatus.ENTERED_OPERATING_THEATRE) 
                || form.getLocalContext().getselectedSurgicalAuditOpDetail().getCurrentStatus().getOperationStatus().equals(SurgicalAuditOperationDetailStatus.ANAESTHETIC_STARTED)
                || form.getLocalContext().getselectedSurgicalAuditOpDetail().getCurrentStatus().getOperationStatus().equals(SurgicalAuditOperationDetailStatus.CANCELLED_OPERATIONS)))
        return true;

    return false;
}
项目:openMAXIMS    文件:Logic.java   
private void populateStatusCombo()
{
    form.cmbStatus().clear();
    ims.clinical.vo.lookups.SurgicalAuditOperationDetailStatusCollection lookupCollection = ims.clinical.vo.lookups.LookupHelper.getSurgicalAuditOperationDetailStatus(this.domain.getLookupService());
    for(int x = 0; x < lookupCollection.size(); x++)
    {
        if (lookupCollection.get(x).equals(SurgicalAuditOperationDetailStatus.LEFT_HOLDING_BAY)
            || lookupCollection.get(x).equals(SurgicalAuditOperationDetailStatus.ENTERED_OPERATING_THEATRE)
            || lookupCollection.get(x).equals(SurgicalAuditOperationDetailStatus.LEFT_OPERATING_THEATRE)
            || lookupCollection.get(x).equals(SurgicalAuditOperationDetailStatus.HAND_OVER_FROM_RECOVERY_NURSE)
            || lookupCollection.get(x).equals(SurgicalAuditOperationDetailStatus.CANCELLED_OPERATIONS)  )
        {
            form.cmbStatus().newRow(lookupCollection.get(x), lookupCollection.get(x).getText(), lookupCollection.get(x).getImage(), lookupCollection.get(x).getTextColor());
        }   
    }
}
项目:openmaxims-linux    文件:Logic.java   
private boolean shouldCancelTabBeEditable()
{
    // NOTE : the operation can only be cancelled if the status is -2382 or
    // -2383 or -2384 or -2385 otherwise the tab should be readonly.)
    // -2382 ->In Holding Bay
    // -2383 ->Left Holding Bay
    // -2384 ->Entered Operating Theatre
    // -2385 ->Anaesthetic Started

    //also if the operation have the Cancelled Operation Status (-2394) , operation Cancelled should be editable

    if (form.getLocalContext().getselectedSurgicalAuditOpDetailIsNotNull() && form.getLocalContext().getselectedSurgicalAuditOpDetail().getOperationCancelledIsNotNull() 
            && (form.getLocalContext().getselectedSurgicalAuditOpDetail().getCurrentStatus().getOperationStatus().equals(SurgicalAuditOperationDetailStatus.IN_HOLDING_BAY) 
                || form.getLocalContext().getselectedSurgicalAuditOpDetail().getCurrentStatus().getOperationStatus().equals(SurgicalAuditOperationDetailStatus.LEFT_HOLDING_BAY) 
                || form.getLocalContext().getselectedSurgicalAuditOpDetail().getCurrentStatus().getOperationStatus().equals(SurgicalAuditOperationDetailStatus.ENTERED_OPERATING_THEATRE) 
                || form.getLocalContext().getselectedSurgicalAuditOpDetail().getCurrentStatus().getOperationStatus().equals(SurgicalAuditOperationDetailStatus.ANAESTHETIC_STARTED)
                || form.getLocalContext().getselectedSurgicalAuditOpDetail().getCurrentStatus().getOperationStatus().equals(SurgicalAuditOperationDetailStatus.CANCELLED_OPERATIONS)))
        return true;

    return false;
}
项目:openmaxims-linux    文件:Logic.java   
private void populateStatusCombo()
{
    form.cmbStatus().clear();
    ims.clinical.vo.lookups.SurgicalAuditOperationDetailStatusCollection lookupCollection = ims.clinical.vo.lookups.LookupHelper.getSurgicalAuditOperationDetailStatus(this.domain.getLookupService());
    for(int x = 0; x < lookupCollection.size(); x++)
    {
        if (lookupCollection.get(x).equals(SurgicalAuditOperationDetailStatus.LEFT_HOLDING_BAY)
            || lookupCollection.get(x).equals(SurgicalAuditOperationDetailStatus.ENTERED_OPERATING_THEATRE)
            || lookupCollection.get(x).equals(SurgicalAuditOperationDetailStatus.LEFT_OPERATING_THEATRE)
            || lookupCollection.get(x).equals(SurgicalAuditOperationDetailStatus.HAND_OVER_FROM_RECOVERY_NURSE)
            || lookupCollection.get(x).equals(SurgicalAuditOperationDetailStatus.CANCELLED_OPERATIONS)  )
        {
            form.cmbStatus().newRow(lookupCollection.get(x), lookupCollection.get(x).getText(), lookupCollection.get(x).getImage(), lookupCollection.get(x).getTextColor());
        }   
    }
}
项目:AvoinApotti    文件:Logic.java   
private SurgicalAuditOperationDetailStatusVo populateStatus(SurgicalAuditOperationDetailStatus status, DateTime dateTime, MemberOfStaffLiteVo statusAuthoringUser)
{
    SurgicalAuditOperationDetailStatusVo statusRecord = new SurgicalAuditOperationDetailStatusVo();

    statusRecord.setOperationStatus(status);
    statusRecord.setStatusDateTime(dateTime);
    statusRecord.setAuthoringUser(statusAuthoringUser);

    return statusRecord;
}
项目:AvoinApotti    文件:Logic.java   
private SurgicalAuditOperationDetailStatusVo populateStatus(SurgicalAuditOperationDetailStatus status, DateTime dateTime, MemberOfStaffLiteVo statusAuthoringUser)
{
    SurgicalAuditOperationDetailStatusVo statusRecord = new SurgicalAuditOperationDetailStatusVo();

    statusRecord.setOperationStatus(status);
    statusRecord.setStatusDateTime(dateTime);
    statusRecord.setAuthoringUser(statusAuthoringUser);

    return statusRecord;
}
项目:AvoinApotti    文件:Logic.java   
private SurgicalAuditOperationDetailStatusVo populateStatus(SurgicalAuditOperationDetailStatus status, DateTime dateTime, MemberOfStaffLiteVo statusAuthoringUser)
{
    SurgicalAuditOperationDetailStatusVo statusRecord = new SurgicalAuditOperationDetailStatusVo();

    statusRecord.setOperationStatus(status);
    statusRecord.setStatusDateTime(dateTime);
    statusRecord.setAuthoringUser(statusAuthoringUser);

    return statusRecord;
}
项目:AvoinApotti    文件:Logic.java   
private SurgicalAuditOperationDetailStatusVo populateStatus(SurgicalAuditOperationDetailStatus status, DateTime dateTime, MemberOfStaffLiteVo statusAuthoringUser)
{
    SurgicalAuditOperationDetailStatusVo statusRecord = new SurgicalAuditOperationDetailStatusVo();

    statusRecord.setOperationStatus(status);
    statusRecord.setStatusDateTime(dateTime);
    statusRecord.setAuthoringUser(statusAuthoringUser);

    return statusRecord;
}
项目:AvoinApotti    文件:Logic.java   
private SurgicalAuditOperationDetailStatusVo populateStatus(SurgicalAuditOperationDetailStatus status, DateTime dateTime, MemberOfStaffLiteVo statusAuthoringUser)
{
    SurgicalAuditOperationDetailStatusVo statusRecord = new SurgicalAuditOperationDetailStatusVo();

    statusRecord.setOperationStatus(status);
    statusRecord.setStatusDateTime(dateTime);
    statusRecord.setAuthoringUser(statusAuthoringUser);

    return statusRecord;
}
项目:openMAXIMS    文件:Logic.java   
private SurgicalAuditOperationDetailStatusVo populateStatus(SurgicalAuditOperationDetailStatus status, DateTime dateTime, MemberOfStaffLiteVo statusAuthoringUser)
{
    SurgicalAuditOperationDetailStatusVo statusRecord = new SurgicalAuditOperationDetailStatusVo();

    statusRecord.setOperationStatus(status);
    statusRecord.setStatusDateTime(dateTime);
    statusRecord.setAuthoringUser(statusAuthoringUser);

    return statusRecord;
}
项目:openMAXIMS    文件:Logic.java   
private SurgicalAuditOperationDetailVo populateDataFromScreen(SurgicalAuditOperationDetailVo surgicalAuditOpDetail)
{
    if (surgicalAuditOpDetail == null)
        return null;

    SurgicalAuditRecoveryVo surgAuditRecovery = populateDataFromRecoveryTab(surgicalAuditOpDetail.getRecovery());
    surgicalAuditOpDetail.setRecovery(surgAuditRecovery);

    // The current status will be modified only when saving for the first time on a tab.
    // The records will be added to history also only when saving for the first time

    if (surgAuditRecovery!=null && surgAuditRecovery.getID_SurgicalAuditRecovery()==null && surgicalAuditOpDetail.getCurrentStatus() != null 
        && !SurgicalAuditOperationDetailStatus.CANCELLED_OPERATIONS.equals(surgicalAuditOpDetail.getCurrentStatus().getOperationStatus())
        && (SurgicalAuditOperationDetailStatus.LEFT_HOLDING_BAY.equals(surgicalAuditOpDetail.getCurrentStatus().getOperationStatus())
                || SurgicalAuditOperationDetailStatus.ENTERED_OPERATING_THEATRE.equals(surgicalAuditOpDetail.getCurrentStatus().getOperationStatus())
                || SurgicalAuditOperationDetailStatus.LEFT_OPERATING_THEATRE.equals(surgicalAuditOpDetail.getCurrentStatus().getOperationStatus())))
    {
        MemberOfStaffLiteVo statusAuthoringUser = null;

        Object mos = domain.getMosUser();
        if (mos instanceof MemberOfStaffLiteVo)
            statusAuthoringUser = (MemberOfStaffLiteVo) mos;

        SurgicalAuditOperationDetailStatusVo tempCurrentStatus = populateStatus(ims.clinical.vo.lookups.SurgicalAuditOperationDetailStatus.HAND_OVER_FROM_RECOVERY_NURSE, new DateTime(), statusAuthoringUser);
        surgicalAuditOpDetail.setCurrentStatus(tempCurrentStatus);

        SurgicalAuditOperationDetailStatusVoCollection tempStatusHistory = surgicalAuditOpDetail.getStatusHistory();

        tempStatusHistory.add(populateStatus(ims.clinical.vo.lookups.SurgicalAuditOperationDetailStatus.PATIENT_ARRIVED_IN_RECOVERY, new DateTime(), statusAuthoringUser));
        tempStatusHistory.add(populateStatus(ims.clinical.vo.lookups.SurgicalAuditOperationDetailStatus.TIME_WARD_OR_UNIT_NOTIFIED, new DateTime(), statusAuthoringUser));
        tempStatusHistory.add(populateStatus(ims.clinical.vo.lookups.SurgicalAuditOperationDetailStatus.PATIENT_LEFT_RECOVERY, new DateTime(), statusAuthoringUser));
        tempStatusHistory.add(tempCurrentStatus);

        surgicalAuditOpDetail.setStatusHistory(tempStatusHistory);
    }

    return surgicalAuditOpDetail;
}
项目:openMAXIMS    文件:Logic.java   
private SurgicalAuditOperationDetailStatusVo populateStatus(SurgicalAuditOperationDetailStatus status, DateTime dateTime, MemberOfStaffLiteVo statusAuthoringUser)
{
    SurgicalAuditOperationDetailStatusVo statusRecord = new SurgicalAuditOperationDetailStatusVo();

    statusRecord.setOperationStatus(status);
    statusRecord.setStatusDateTime(dateTime);
    statusRecord.setAuthoringUser(statusAuthoringUser);

    return statusRecord;
}
项目:openMAXIMS    文件:Logic.java   
private SurgicalAuditOperationDetailStatusVo populateStatus(SurgicalAuditOperationDetailStatus status, DateTime dateTime, MemberOfStaffLiteVo statusAuthoringUser)
{
    SurgicalAuditOperationDetailStatusVo statusRecord = new SurgicalAuditOperationDetailStatusVo();

    statusRecord.setOperationStatus(status);
    statusRecord.setStatusDateTime(dateTime);
    statusRecord.setAuthoringUser(statusAuthoringUser);

    return statusRecord;
}
项目:openMAXIMS    文件:Logic.java   
private SurgicalAuditOperationDetailStatusVo populateStatus(SurgicalAuditOperationDetailStatus status, DateTime dateTime, MemberOfStaffLiteVo statusAuthoringUser)
{
    SurgicalAuditOperationDetailStatusVo statusRecord = new SurgicalAuditOperationDetailStatusVo();

    statusRecord.setOperationStatus(status);
    statusRecord.setStatusDateTime(dateTime);
    statusRecord.setAuthoringUser(statusAuthoringUser);

    return statusRecord;
}
项目:openMAXIMS    文件:Logic.java   
private SurgicalAuditOperationDetailStatusVo populateStatus(SurgicalAuditOperationDetailStatus status, DateTime dateTime, MemberOfStaffLiteVo statusAuthoringUser)
{
    SurgicalAuditOperationDetailStatusVo statusRecord = new SurgicalAuditOperationDetailStatusVo();

    statusRecord.setOperationStatus(status);
    statusRecord.setStatusDateTime(dateTime);
    statusRecord.setAuthoringUser(statusAuthoringUser);

    return statusRecord;
}
项目:openMAXIMS    文件:Logic.java   
private SurgicalAuditOperationDetailStatusVo populateStatus(SurgicalAuditOperationDetailStatus status, DateTime dateTime, MemberOfStaffLiteVo statusAuthoringUser)
{
    SurgicalAuditOperationDetailStatusVo statusRecord = new SurgicalAuditOperationDetailStatusVo();

    statusRecord.setOperationStatus(status);
    statusRecord.setStatusDateTime(dateTime);
    statusRecord.setAuthoringUser(statusAuthoringUser);

    return statusRecord;
}
项目:openMAXIMS    文件:Logic.java   
private SurgicalAuditOperationDetailVo populateDataFromScreen(SurgicalAuditOperationDetailVo surgicalAuditOpDetail)
{
    if (surgicalAuditOpDetail == null)
        return null;

    SurgicalAuditRecoveryVo surgAuditRecovery = populateDataFromRecoveryTab(surgicalAuditOpDetail.getRecovery());
    surgicalAuditOpDetail.setRecovery(surgAuditRecovery);

    // The current status will be modified only when saving for the first time on a tab.
    // The records will be added to history also only when saving for the first time

    if (surgAuditRecovery!=null && surgAuditRecovery.getID_SurgicalAuditRecovery()==null && surgicalAuditOpDetail.getCurrentStatus() != null 
        && !SurgicalAuditOperationDetailStatus.CANCELLED_OPERATIONS.equals(surgicalAuditOpDetail.getCurrentStatus().getOperationStatus())
        && (SurgicalAuditOperationDetailStatus.LEFT_HOLDING_BAY.equals(surgicalAuditOpDetail.getCurrentStatus().getOperationStatus())
                || SurgicalAuditOperationDetailStatus.ENTERED_OPERATING_THEATRE.equals(surgicalAuditOpDetail.getCurrentStatus().getOperationStatus())
                || SurgicalAuditOperationDetailStatus.LEFT_OPERATING_THEATRE.equals(surgicalAuditOpDetail.getCurrentStatus().getOperationStatus())))
    {
        MemberOfStaffLiteVo statusAuthoringUser = null;

        Object mos = domain.getMosUser();
        if (mos instanceof MemberOfStaffLiteVo)
            statusAuthoringUser = (MemberOfStaffLiteVo) mos;

        SurgicalAuditOperationDetailStatusVo tempCurrentStatus = populateStatus(ims.clinical.vo.lookups.SurgicalAuditOperationDetailStatus.HAND_OVER_FROM_RECOVERY_NURSE, new DateTime(), statusAuthoringUser);
        surgicalAuditOpDetail.setCurrentStatus(tempCurrentStatus);

        SurgicalAuditOperationDetailStatusVoCollection tempStatusHistory = surgicalAuditOpDetail.getStatusHistory();

        tempStatusHistory.add(populateStatus(ims.clinical.vo.lookups.SurgicalAuditOperationDetailStatus.PATIENT_ARRIVED_IN_RECOVERY, new DateTime(), statusAuthoringUser));
        tempStatusHistory.add(populateStatus(ims.clinical.vo.lookups.SurgicalAuditOperationDetailStatus.TIME_WARD_OR_UNIT_NOTIFIED, new DateTime(), statusAuthoringUser));
        tempStatusHistory.add(populateStatus(ims.clinical.vo.lookups.SurgicalAuditOperationDetailStatus.PATIENT_LEFT_RECOVERY, new DateTime(), statusAuthoringUser));
        tempStatusHistory.add(tempCurrentStatus);

        surgicalAuditOpDetail.setStatusHistory(tempStatusHistory);
    }

    return surgicalAuditOpDetail;
}
项目:openMAXIMS    文件:Logic.java   
private SurgicalAuditOperationDetailStatusVo populateStatus(SurgicalAuditOperationDetailStatus status, DateTime dateTime, MemberOfStaffLiteVo statusAuthoringUser)
{
    SurgicalAuditOperationDetailStatusVo statusRecord = new SurgicalAuditOperationDetailStatusVo();

    statusRecord.setOperationStatus(status);
    statusRecord.setStatusDateTime(dateTime);
    statusRecord.setAuthoringUser(statusAuthoringUser);

    return statusRecord;
}
项目:openMAXIMS    文件:Logic.java   
private SurgicalAuditOperationDetailStatusVo populateStatus(SurgicalAuditOperationDetailStatus status, DateTime dateTime, MemberOfStaffLiteVo statusAuthoringUser)
{
    SurgicalAuditOperationDetailStatusVo statusRecord = new SurgicalAuditOperationDetailStatusVo();

    statusRecord.setOperationStatus(status);
    statusRecord.setStatusDateTime(dateTime);
    statusRecord.setAuthoringUser(statusAuthoringUser);

    return statusRecord;
}
项目:openMAXIMS    文件:Logic.java   
private SurgicalAuditOperationDetailStatusVo populateStatus(SurgicalAuditOperationDetailStatus status, DateTime dateTime, MemberOfStaffLiteVo statusAuthoringUser)
{
    SurgicalAuditOperationDetailStatusVo statusRecord = new SurgicalAuditOperationDetailStatusVo();

    statusRecord.setOperationStatus(status);
    statusRecord.setStatusDateTime(dateTime);
    statusRecord.setAuthoringUser(statusAuthoringUser);

    return statusRecord;
}
项目:openMAXIMS    文件:Logic.java   
private SurgicalAuditOperationDetailStatusVo populateStatus(SurgicalAuditOperationDetailStatus status, DateTime dateTime, MemberOfStaffLiteVo statusAuthoringUser)
{
    SurgicalAuditOperationDetailStatusVo statusRecord = new SurgicalAuditOperationDetailStatusVo();

    statusRecord.setOperationStatus(status);
    statusRecord.setStatusDateTime(dateTime);
    statusRecord.setAuthoringUser(statusAuthoringUser);

    return statusRecord;
}
项目:openmaxims-linux    文件:Logic.java   
private SurgicalAuditOperationDetailStatusVo populateStatus(SurgicalAuditOperationDetailStatus status, DateTime dateTime, MemberOfStaffLiteVo statusAuthoringUser)
{
    SurgicalAuditOperationDetailStatusVo statusRecord = new SurgicalAuditOperationDetailStatusVo();

    statusRecord.setOperationStatus(status);
    statusRecord.setStatusDateTime(dateTime);
    statusRecord.setAuthoringUser(statusAuthoringUser);

    return statusRecord;
}
项目:openmaxims-linux    文件:Logic.java   
private SurgicalAuditOperationDetailVo populateDataFromScreen(SurgicalAuditOperationDetailVo surgicalAuditOpDetail)
{
    if (surgicalAuditOpDetail == null)
        return null;

    SurgicalAuditRecoveryVo surgAuditRecovery = populateDataFromRecoveryTab(surgicalAuditOpDetail.getRecovery());
    surgicalAuditOpDetail.setRecovery(surgAuditRecovery);

    // The current status will be modified only when saving for the first time on a tab.
    // The records will be added to history also only when saving for the first time

    if (surgAuditRecovery!=null && surgAuditRecovery.getID_SurgicalAuditRecovery()==null && surgicalAuditOpDetail.getCurrentStatus() != null 
        && !SurgicalAuditOperationDetailStatus.CANCELLED_OPERATIONS.equals(surgicalAuditOpDetail.getCurrentStatus().getOperationStatus())
        && (SurgicalAuditOperationDetailStatus.LEFT_HOLDING_BAY.equals(surgicalAuditOpDetail.getCurrentStatus().getOperationStatus())
                || SurgicalAuditOperationDetailStatus.ENTERED_OPERATING_THEATRE.equals(surgicalAuditOpDetail.getCurrentStatus().getOperationStatus())
                || SurgicalAuditOperationDetailStatus.LEFT_OPERATING_THEATRE.equals(surgicalAuditOpDetail.getCurrentStatus().getOperationStatus())))
    {
        MemberOfStaffLiteVo statusAuthoringUser = null;

        Object mos = domain.getMosUser();
        if (mos instanceof MemberOfStaffLiteVo)
            statusAuthoringUser = (MemberOfStaffLiteVo) mos;

        SurgicalAuditOperationDetailStatusVo tempCurrentStatus = populateStatus(ims.clinical.vo.lookups.SurgicalAuditOperationDetailStatus.HAND_OVER_FROM_RECOVERY_NURSE, new DateTime(), statusAuthoringUser);
        surgicalAuditOpDetail.setCurrentStatus(tempCurrentStatus);

        SurgicalAuditOperationDetailStatusVoCollection tempStatusHistory = surgicalAuditOpDetail.getStatusHistory();

        tempStatusHistory.add(populateStatus(ims.clinical.vo.lookups.SurgicalAuditOperationDetailStatus.PATIENT_ARRIVED_IN_RECOVERY, new DateTime(), statusAuthoringUser));
        tempStatusHistory.add(populateStatus(ims.clinical.vo.lookups.SurgicalAuditOperationDetailStatus.TIME_WARD_OR_UNIT_NOTIFIED, new DateTime(), statusAuthoringUser));
        tempStatusHistory.add(populateStatus(ims.clinical.vo.lookups.SurgicalAuditOperationDetailStatus.PATIENT_LEFT_RECOVERY, new DateTime(), statusAuthoringUser));
        tempStatusHistory.add(tempCurrentStatus);

        surgicalAuditOpDetail.setStatusHistory(tempStatusHistory);
    }

    return surgicalAuditOpDetail;
}
项目:openmaxims-linux    文件:Logic.java   
private SurgicalAuditOperationDetailStatusVo populateStatus(SurgicalAuditOperationDetailStatus status, DateTime dateTime, MemberOfStaffLiteVo statusAuthoringUser)
{
    SurgicalAuditOperationDetailStatusVo statusRecord = new SurgicalAuditOperationDetailStatusVo();

    statusRecord.setOperationStatus(status);
    statusRecord.setStatusDateTime(dateTime);
    statusRecord.setAuthoringUser(statusAuthoringUser);

    return statusRecord;
}
项目:openmaxims-linux    文件:Logic.java   
private SurgicalAuditOperationDetailStatusVo populateStatus(SurgicalAuditOperationDetailStatus status, DateTime dateTime, MemberOfStaffLiteVo statusAuthoringUser)
{
    SurgicalAuditOperationDetailStatusVo statusRecord = new SurgicalAuditOperationDetailStatusVo();

    statusRecord.setOperationStatus(status);
    statusRecord.setStatusDateTime(dateTime);
    statusRecord.setAuthoringUser(statusAuthoringUser);

    return statusRecord;
}
项目:openmaxims-linux    文件:Logic.java   
private SurgicalAuditOperationDetailStatusVo populateStatus(SurgicalAuditOperationDetailStatus status, DateTime dateTime, MemberOfStaffLiteVo statusAuthoringUser)
{
    SurgicalAuditOperationDetailStatusVo statusRecord = new SurgicalAuditOperationDetailStatusVo();

    statusRecord.setOperationStatus(status);
    statusRecord.setStatusDateTime(dateTime);
    statusRecord.setAuthoringUser(statusAuthoringUser);

    return statusRecord;
}
项目:openmaxims-linux    文件:Logic.java   
private SurgicalAuditOperationDetailStatusVo populateStatus(SurgicalAuditOperationDetailStatus status, DateTime dateTime, MemberOfStaffLiteVo statusAuthoringUser)
{
    SurgicalAuditOperationDetailStatusVo statusRecord = new SurgicalAuditOperationDetailStatusVo();

    statusRecord.setOperationStatus(status);
    statusRecord.setStatusDateTime(dateTime);
    statusRecord.setAuthoringUser(statusAuthoringUser);

    return statusRecord;
}
项目:AvoinApotti    文件:Logic.java   
private void updateControlsState()
{
    form.btnEdit().setVisible(FormMode.VIEW.equals(form.getMode()) && form.getLocalContext().getCurrentSurgicalAuditOperationDetailsIsNotNull());
    form.btnEdit().setEnabled(FormMode.VIEW.equals(form.getMode()) && form.getLocalContext().getCurrentSurgicalAuditOperationDetailsIsNotNull() && Boolean.FALSE.equals(form.getLocalContext().getisReadOnly()));

    form.cmbReasonForCancelation().setVisible(form.chkCancelOperation().getValue());
    form.txtReasonForCancellationComment().setVisible(form.chkCancelOperation().getValue());
    form.ccOperationCancelled().setVisible(form.chkCancelOperation().getValue());

    form.cmbReasonForCancelation().setEnabled(form.getMode().equals(FormMode.EDIT) && form.chkCancelOperation().getValue());
    form.txtReasonForCancellationComment().setEnabled(form.getMode().equals(FormMode.EDIT) && form.chkCancelOperation().getValue());
    form.ccOperationCancelled().setEnabled(form.getMode().equals(FormMode.EDIT) && form.chkCancelOperation().getValue());
    form.ccOperationCancelled().isRequired(form.getMode().equals(FormMode.EDIT) && form.chkCancelOperation().getValue());

    form.lblOperationCancelledby2().setVisible(form.chkCancelOperation().getValue());
    form.lblReasonForCancelation1().setVisible(form.chkCancelOperation().getValue());
    form.lblReasonForCancelationComment3().setVisible(form.chkCancelOperation().getValue());

    form.txtdummyAnaesthetistRequired().setEnabled( form.getMode().equals(FormMode.EDIT) && form.chkCancelOperation().getValue() == false && form.chkAnaesthetistNotRequired().getValue() == false);
    form.txtdummyAnaesthetistAssistedByRequired().setEnabled( form.getMode().equals(FormMode.EDIT) && form.chkCancelOperation().getValue() == false && form.chkAnaesthetistAssistedByNotRequired().getValue() == false);

    if(  form.getMode().equals(FormMode.EDIT))
    {
        //WDEV-15653
        form.grdAnaesthetist().setEnabled(!form.chkAnaesthetistNotRequired().getValue());
        form.grdAnaesthetistAssistedBy().setEnabled(!form.chkAnaesthetistAssistedByNotRequired().getValue());

        enableDisableControls(!form.chkCancelOperation().getValue());

        if( form.getLocalContext().getCurrentSurgicalAuditOperationDetailsIsNotNull() && form.getLocalContext().getCurrentSurgicalAuditOperationDetails().getCurrentStatusIsNotNull() && form.getLocalContext().getCurrentSurgicalAuditOperationDetails().getCurrentStatus().getOperationStatusIsNotNull())
        {
            //Cancel Operation check box control is enabled if curenstatus is in 2382 or -2383 or -2384 or -2385 and also or -2394.
            if( SurgicalAuditOperationDetailStatus.IN_HOLDING_BAY.equals(form.getLocalContext().getCurrentSurgicalAuditOperationDetails().getCurrentStatus().getOperationStatus()) 
                ||  SurgicalAuditOperationDetailStatus.LEFT_HOLDING_BAY.equals(form.getLocalContext().getCurrentSurgicalAuditOperationDetails().getCurrentStatus().getOperationStatus()) 
                || SurgicalAuditOperationDetailStatus.ENTERED_OPERATING_THEATRE.equals(form.getLocalContext().getCurrentSurgicalAuditOperationDetails().getCurrentStatus().getOperationStatus()) 
                || SurgicalAuditOperationDetailStatus.ANAESTHETIC_STARTED.equals(form.getLocalContext().getCurrentSurgicalAuditOperationDetails().getCurrentStatus().getOperationStatus())
                || SurgicalAuditOperationDetailStatus.CANCELLED_OPERATIONS.equals(form.getLocalContext().getCurrentSurgicalAuditOperationDetails().getCurrentStatus().getOperationStatus()))
            {
                form.chkCancelOperation().setEnabled(true);
            }
            else
                form.chkCancelOperation().setEnabled(false);
        }

    }
    else
    {
        form.cmbReason().setEnabled(false);
    }
    updateContextMenu();
}
项目:openMAXIMS    文件:Logic.java   
private void updateControlsState()
{
    form.btnEdit().setVisible(FormMode.VIEW.equals(form.getMode()) && form.getLocalContext().getCurrentSurgicalAuditOperationDetailsIsNotNull());
    form.btnEdit().setEnabled(FormMode.VIEW.equals(form.getMode()) && form.getLocalContext().getCurrentSurgicalAuditOperationDetailsIsNotNull() && Boolean.FALSE.equals(form.getLocalContext().getisReadOnly()));

    form.cmbReasonForCancelation().setVisible(form.chkCancelOperation().getValue());
    form.txtReasonForCancellationComment().setVisible(form.chkCancelOperation().getValue());
    form.ccOperationCancelled().setVisible(form.chkCancelOperation().getValue());

    form.cmbReasonForCancelation().setEnabled(form.getMode().equals(FormMode.EDIT) && form.chkCancelOperation().getValue());
    form.txtReasonForCancellationComment().setEnabled(form.getMode().equals(FormMode.EDIT) && form.chkCancelOperation().getValue());
    form.ccOperationCancelled().setEnabled(form.getMode().equals(FormMode.EDIT) && form.chkCancelOperation().getValue());
    form.ccOperationCancelled().isRequired(form.getMode().equals(FormMode.EDIT) && form.chkCancelOperation().getValue());

    form.lblOperationCancelledby2().setVisible(form.chkCancelOperation().getValue());
    form.lblReasonForCancelation1().setVisible(form.chkCancelOperation().getValue());
    form.lblReasonForCancelationComment3().setVisible(form.chkCancelOperation().getValue());

    form.txtdummyAnaesthetistRequired().setEnabled( form.getMode().equals(FormMode.EDIT) && form.chkCancelOperation().getValue() == false && form.chkAnaesthetistNotRequired().getValue() == false);
    form.txtdummyAnaesthetistAssistedByRequired().setEnabled( form.getMode().equals(FormMode.EDIT) && form.chkCancelOperation().getValue() == false && form.chkAnaesthetistAssistedByNotRequired().getValue() == false);

    if(  form.getMode().equals(FormMode.EDIT))
    {
        //WDEV-15653
        form.grdAnaesthetist().setEnabled(!form.chkAnaesthetistNotRequired().getValue());
        form.grdAnaesthetistAssistedBy().setEnabled(!form.chkAnaesthetistAssistedByNotRequired().getValue());

        enableDisableControls(!form.chkCancelOperation().getValue());

        if( form.getLocalContext().getCurrentSurgicalAuditOperationDetailsIsNotNull() && form.getLocalContext().getCurrentSurgicalAuditOperationDetails().getCurrentStatusIsNotNull() && form.getLocalContext().getCurrentSurgicalAuditOperationDetails().getCurrentStatus().getOperationStatusIsNotNull())
        {
            //Cancel Operation check box control is enabled if curenstatus is in 2382 or -2383 or -2384 or -2385 and also or -2394.
            if( SurgicalAuditOperationDetailStatus.IN_HOLDING_BAY.equals(form.getLocalContext().getCurrentSurgicalAuditOperationDetails().getCurrentStatus().getOperationStatus()) 
                ||  SurgicalAuditOperationDetailStatus.LEFT_HOLDING_BAY.equals(form.getLocalContext().getCurrentSurgicalAuditOperationDetails().getCurrentStatus().getOperationStatus()) 
                || SurgicalAuditOperationDetailStatus.ENTERED_OPERATING_THEATRE.equals(form.getLocalContext().getCurrentSurgicalAuditOperationDetails().getCurrentStatus().getOperationStatus()) 
                || SurgicalAuditOperationDetailStatus.ANAESTHETIC_STARTED.equals(form.getLocalContext().getCurrentSurgicalAuditOperationDetails().getCurrentStatus().getOperationStatus())
                || SurgicalAuditOperationDetailStatus.CANCELLED_OPERATIONS.equals(form.getLocalContext().getCurrentSurgicalAuditOperationDetails().getCurrentStatus().getOperationStatus()))
            {
                form.chkCancelOperation().setEnabled(true);
            }
            else
                form.chkCancelOperation().setEnabled(false);
        }

    }
    else
    {
        form.cmbReason().setEnabled(false);
    }
    updateContextMenu();
}
项目:openMAXIMS    文件:Logic.java   
private void updateControlsState()
{
    form.btnEdit().setVisible(FormMode.VIEW.equals(form.getMode()) && form.getLocalContext().getCurrentSurgicalAuditOperationDetailsIsNotNull());
    form.btnEdit().setEnabled(FormMode.VIEW.equals(form.getMode()) && form.getLocalContext().getCurrentSurgicalAuditOperationDetailsIsNotNull() && Boolean.FALSE.equals(form.getLocalContext().getisReadOnly()));

    form.cmbReasonForCancelation().setVisible(form.chkCancelOperation().getValue());
    form.txtReasonForCancellationComment().setVisible(form.chkCancelOperation().getValue());
    form.ccOperationCancelled().setVisible(form.chkCancelOperation().getValue());

    form.cmbReasonForCancelation().setEnabled(form.getMode().equals(FormMode.EDIT) && form.chkCancelOperation().getValue());
    form.txtReasonForCancellationComment().setEnabled(form.getMode().equals(FormMode.EDIT) && form.chkCancelOperation().getValue());
    form.ccOperationCancelled().setEnabled(form.getMode().equals(FormMode.EDIT) && form.chkCancelOperation().getValue());
    form.ccOperationCancelled().isRequired(form.getMode().equals(FormMode.EDIT) && form.chkCancelOperation().getValue());

    form.lblOperationCancelledby2().setVisible(form.chkCancelOperation().getValue());
    form.lblReasonForCancelation1().setVisible(form.chkCancelOperation().getValue());
    form.lblReasonForCancelationComment3().setVisible(form.chkCancelOperation().getValue());

    form.txtdummyAnaesthetistRequired().setEnabled( form.getMode().equals(FormMode.EDIT) && form.chkCancelOperation().getValue() == false && form.chkAnaesthetistNotRequired().getValue() == false);
    form.txtdummyAnaesthetistAssistedByRequired().setEnabled( form.getMode().equals(FormMode.EDIT) && form.chkCancelOperation().getValue() == false && form.chkAnaesthetistAssistedByNotRequired().getValue() == false);

    if(  form.getMode().equals(FormMode.EDIT))
    {
        //WDEV-15653
        form.grdAnaesthetist().setEnabled(!form.chkAnaesthetistNotRequired().getValue());
        form.grdAnaesthetistAssistedBy().setEnabled(!form.chkAnaesthetistAssistedByNotRequired().getValue());

        enableDisableControls(!form.chkCancelOperation().getValue());

        if( form.getLocalContext().getCurrentSurgicalAuditOperationDetailsIsNotNull() && form.getLocalContext().getCurrentSurgicalAuditOperationDetails().getCurrentStatusIsNotNull() && form.getLocalContext().getCurrentSurgicalAuditOperationDetails().getCurrentStatus().getOperationStatusIsNotNull())
        {
            //Cancel Operation check box control is enabled if curenstatus is in 2382 or -2383 or -2384 or -2385 and also or -2394.
            if( SurgicalAuditOperationDetailStatus.IN_HOLDING_BAY.equals(form.getLocalContext().getCurrentSurgicalAuditOperationDetails().getCurrentStatus().getOperationStatus()) 
                ||  SurgicalAuditOperationDetailStatus.LEFT_HOLDING_BAY.equals(form.getLocalContext().getCurrentSurgicalAuditOperationDetails().getCurrentStatus().getOperationStatus()) 
                || SurgicalAuditOperationDetailStatus.ENTERED_OPERATING_THEATRE.equals(form.getLocalContext().getCurrentSurgicalAuditOperationDetails().getCurrentStatus().getOperationStatus()) 
                || SurgicalAuditOperationDetailStatus.ANAESTHETIC_STARTED.equals(form.getLocalContext().getCurrentSurgicalAuditOperationDetails().getCurrentStatus().getOperationStatus())
                || SurgicalAuditOperationDetailStatus.CANCELLED_OPERATIONS.equals(form.getLocalContext().getCurrentSurgicalAuditOperationDetails().getCurrentStatus().getOperationStatus()))
            {
                form.chkCancelOperation().setEnabled(true);
            }
            else
                form.chkCancelOperation().setEnabled(false);
        }

    }
    else
    {
        form.cmbReason().setEnabled(false);
    }
    updateContextMenu();
}
项目:openmaxims-linux    文件:Logic.java   
private void updateControlsState()
{
    form.btnEdit().setVisible(FormMode.VIEW.equals(form.getMode()) && form.getLocalContext().getCurrentSurgicalAuditOperationDetailsIsNotNull());
    form.btnEdit().setEnabled(FormMode.VIEW.equals(form.getMode()) && form.getLocalContext().getCurrentSurgicalAuditOperationDetailsIsNotNull() && Boolean.FALSE.equals(form.getLocalContext().getisReadOnly()));

    form.cmbReasonForCancelation().setVisible(form.chkCancelOperation().getValue());
    form.txtReasonForCancellationComment().setVisible(form.chkCancelOperation().getValue());
    form.ccOperationCancelled().setVisible(form.chkCancelOperation().getValue());

    form.cmbReasonForCancelation().setEnabled(form.getMode().equals(FormMode.EDIT) && form.chkCancelOperation().getValue());
    form.txtReasonForCancellationComment().setEnabled(form.getMode().equals(FormMode.EDIT) && form.chkCancelOperation().getValue());
    form.ccOperationCancelled().setEnabled(form.getMode().equals(FormMode.EDIT) && form.chkCancelOperation().getValue());
    form.ccOperationCancelled().isRequired(form.getMode().equals(FormMode.EDIT) && form.chkCancelOperation().getValue());

    form.lblOperationCancelledby2().setVisible(form.chkCancelOperation().getValue());
    form.lblReasonForCancelation1().setVisible(form.chkCancelOperation().getValue());
    form.lblReasonForCancelationComment3().setVisible(form.chkCancelOperation().getValue());

    form.txtdummyAnaesthetistRequired().setEnabled( form.getMode().equals(FormMode.EDIT) && form.chkCancelOperation().getValue() == false && form.chkAnaesthetistNotRequired().getValue() == false);
    form.txtdummyAnaesthetistAssistedByRequired().setEnabled( form.getMode().equals(FormMode.EDIT) && form.chkCancelOperation().getValue() == false && form.chkAnaesthetistAssistedByNotRequired().getValue() == false);

    if(  form.getMode().equals(FormMode.EDIT))
    {
        //WDEV-15653
        form.grdAnaesthetist().setEnabled(!form.chkAnaesthetistNotRequired().getValue());
        form.grdAnaesthetistAssistedBy().setEnabled(!form.chkAnaesthetistAssistedByNotRequired().getValue());

        enableDisableControls(!form.chkCancelOperation().getValue());

        if( form.getLocalContext().getCurrentSurgicalAuditOperationDetailsIsNotNull() && form.getLocalContext().getCurrentSurgicalAuditOperationDetails().getCurrentStatusIsNotNull() && form.getLocalContext().getCurrentSurgicalAuditOperationDetails().getCurrentStatus().getOperationStatusIsNotNull())
        {
            //Cancel Operation check box control is enabled if curenstatus is in 2382 or -2383 or -2384 or -2385 and also or -2394.
            if( SurgicalAuditOperationDetailStatus.IN_HOLDING_BAY.equals(form.getLocalContext().getCurrentSurgicalAuditOperationDetails().getCurrentStatus().getOperationStatus()) 
                ||  SurgicalAuditOperationDetailStatus.LEFT_HOLDING_BAY.equals(form.getLocalContext().getCurrentSurgicalAuditOperationDetails().getCurrentStatus().getOperationStatus()) 
                || SurgicalAuditOperationDetailStatus.ENTERED_OPERATING_THEATRE.equals(form.getLocalContext().getCurrentSurgicalAuditOperationDetails().getCurrentStatus().getOperationStatus()) 
                || SurgicalAuditOperationDetailStatus.ANAESTHETIC_STARTED.equals(form.getLocalContext().getCurrentSurgicalAuditOperationDetails().getCurrentStatus().getOperationStatus())
                || SurgicalAuditOperationDetailStatus.CANCELLED_OPERATIONS.equals(form.getLocalContext().getCurrentSurgicalAuditOperationDetails().getCurrentStatus().getOperationStatus()))
            {
                form.chkCancelOperation().setEnabled(true);
            }
            else
                form.chkCancelOperation().setEnabled(false);
        }

    }
    else
    {
        form.cmbReason().setEnabled(false);
    }
    updateContextMenu();
}