Java 类ims.ocrr.vo.lookups.PatientClericalTaskStatus 实例源码

项目:AvoinApotti    文件:Logic.java   
private void updateControlsState() 
{
    //WDEV-14080
    form.btnEdit().setVisible(form.getMode().equals(FormMode.VIEW) && form.grdPatClericalTask().getValue()!=null && form.getLocalContext().getlocalContextClericalTaskIsNotNull() && form.getLocalContext().getlocalContextClericalTask().getStatus().equals(PatientClericalTaskStatus.OUTSTANDING));
    form.btnTaskComplete().setVisible(form.getMode().equals(FormMode.VIEW) && form.grdPatClericalTask().getValue()!=null && form.getLocalContext().getlocalContextClericalTaskIsNotNull() &&form.getLocalContext().getlocalContextClericalTask().getStatus().equals(PatientClericalTaskStatus.OUTSTANDING));

    form.btnNew().setEnabled(form.getMode().equals(FormMode.VIEW) && engine.hasRight(AppRight.CAN_ALLOCATE_PATIENT_CLERICAL_TASKS));
    form.btnNew().setVisible(form.getMode().equals(FormMode.VIEW));

    form.ccRequestor().setEnabled(form.getMode().equals(FormMode.EDIT));
    form.ccAllocate().setEnabled(form.getMode().equals(FormMode.EDIT));

    form.lblCompletedBy().setVisible(form.getLocalContext().getlocalContextClericalTaskIsNotNull() && form.getLocalContext().getlocalContextClericalTask().getStatus().equals(PatientClericalTaskStatus.COMPLETED));
    form.ccCompleted().setVisible(form.getLocalContext().getlocalContextClericalTaskIsNotNull() && form.getLocalContext().getlocalContextClericalTask().getStatus().equals(PatientClericalTaskStatus.COMPLETED));
    form.lblCompletedOn().setVisible(form.getLocalContext().getlocalContextClericalTaskIsNotNull() && form.getLocalContext().getlocalContextClericalTask().getStatus().equals(PatientClericalTaskStatus.COMPLETED));
    form.dtimCompleted().setVisible(form.getLocalContext().getlocalContextClericalTaskIsNotNull() && form.getLocalContext().getlocalContextClericalTask().getStatus().equals(PatientClericalTaskStatus.COMPLETED));

    //FB latest changes for WDEV-13879 - 12.01.2012
    form.ccCompleted().setEnabled(false);
    form.dtimCompleted().setEnabled(false);

}
项目:openMAXIMS    文件:Logic.java   
private void updateControlsState() 
{
    //WDEV-14080
    form.btnEdit().setVisible(form.getMode().equals(FormMode.VIEW) && form.grdPatClericalTask().getValue()!=null && form.getLocalContext().getlocalContextClericalTaskIsNotNull() && form.getLocalContext().getlocalContextClericalTask().getStatus().equals(PatientClericalTaskStatus.OUTSTANDING));
    form.btnTaskComplete().setVisible(form.getMode().equals(FormMode.VIEW) && form.grdPatClericalTask().getValue()!=null && form.getLocalContext().getlocalContextClericalTaskIsNotNull() &&form.getLocalContext().getlocalContextClericalTask().getStatus().equals(PatientClericalTaskStatus.OUTSTANDING));

    form.btnNew().setEnabled(form.getMode().equals(FormMode.VIEW) && engine.hasRight(AppRight.CAN_ALLOCATE_PATIENT_CLERICAL_TASKS));
    form.btnNew().setVisible(form.getMode().equals(FormMode.VIEW));

    form.ccRequestor().setEnabled(form.getMode().equals(FormMode.EDIT));
    form.ccAllocate().setEnabled(form.getMode().equals(FormMode.EDIT));

    form.lblCompletedBy().setVisible(form.getLocalContext().getlocalContextClericalTaskIsNotNull() && form.getLocalContext().getlocalContextClericalTask().getStatus().equals(PatientClericalTaskStatus.COMPLETED));
    form.ccCompleted().setVisible(form.getLocalContext().getlocalContextClericalTaskIsNotNull() && form.getLocalContext().getlocalContextClericalTask().getStatus().equals(PatientClericalTaskStatus.COMPLETED));
    form.lblCompletedOn().setVisible(form.getLocalContext().getlocalContextClericalTaskIsNotNull() && form.getLocalContext().getlocalContextClericalTask().getStatus().equals(PatientClericalTaskStatus.COMPLETED));
    form.dtimCompleted().setVisible(form.getLocalContext().getlocalContextClericalTaskIsNotNull() && form.getLocalContext().getlocalContextClericalTask().getStatus().equals(PatientClericalTaskStatus.COMPLETED));

    //FB latest changes for WDEV-13879 - 12.01.2012
    form.ccCompleted().setEnabled(false);
    form.dtimCompleted().setEnabled(false);

}
项目:openmaxims-linux    文件:Logic.java   
private void updateControlsState() 
{
    //WDEV-14080
    form.btnEdit().setVisible(form.getMode().equals(FormMode.VIEW) && form.grdPatClericalTask().getValue()!=null && form.getLocalContext().getlocalContextClericalTaskIsNotNull() && form.getLocalContext().getlocalContextClericalTask().getStatus().equals(PatientClericalTaskStatus.OUTSTANDING));
    form.btnTaskComplete().setVisible(form.getMode().equals(FormMode.VIEW) && form.grdPatClericalTask().getValue()!=null && form.getLocalContext().getlocalContextClericalTaskIsNotNull() &&form.getLocalContext().getlocalContextClericalTask().getStatus().equals(PatientClericalTaskStatus.OUTSTANDING));

    form.btnNew().setEnabled(form.getMode().equals(FormMode.VIEW) && engine.hasRight(AppRight.CAN_ALLOCATE_PATIENT_CLERICAL_TASKS));
    form.btnNew().setVisible(form.getMode().equals(FormMode.VIEW));

    form.ccRequestor().setEnabled(form.getMode().equals(FormMode.EDIT));
    form.ccAllocate().setEnabled(form.getMode().equals(FormMode.EDIT));

    form.lblCompletedBy().setVisible(form.getLocalContext().getlocalContextClericalTaskIsNotNull() && form.getLocalContext().getlocalContextClericalTask().getStatus().equals(PatientClericalTaskStatus.COMPLETED));
    form.ccCompleted().setVisible(form.getLocalContext().getlocalContextClericalTaskIsNotNull() && form.getLocalContext().getlocalContextClericalTask().getStatus().equals(PatientClericalTaskStatus.COMPLETED));
    form.lblCompletedOn().setVisible(form.getLocalContext().getlocalContextClericalTaskIsNotNull() && form.getLocalContext().getlocalContextClericalTask().getStatus().equals(PatientClericalTaskStatus.COMPLETED));
    form.dtimCompleted().setVisible(form.getLocalContext().getlocalContextClericalTaskIsNotNull() && form.getLocalContext().getlocalContextClericalTask().getStatus().equals(PatientClericalTaskStatus.COMPLETED));

    //FB latest changes for WDEV-13879 - 12.01.2012
    form.ccCompleted().setEnabled(false);
    form.dtimCompleted().setEnabled(false);

}
项目:AvoinApotti    文件:Logic.java   
protected void onBtnTaskCompleteClick() throws ims.framework.exceptions.PresentationLogicException
{
    Object mos = domain.getMosUser();
    if (mos instanceof MemberOfStaffLiteVo)
    {
        form.ccCompleted().setValue((MemberOfStaffLiteVo)mos);
    }
    form.dtimCompleted().setValue(new DateTime());

    if (save(PatientClericalTaskStatus.COMPLETED))
    {
        open();
    }
}
项目:AvoinApotti    文件:Logic.java   
private ClericalTaskWorklistSearchVo populateSearchCriteriaDataFromScreen() 
{
    ClericalTaskWorklistSearchVo criteria=new ClericalTaskWorklistSearchVo();
    criteria.setSurname(form.txtSurname().getValue());
    criteria.setForename(form.txtForename().getValue());
    criteria.setHospitalNo(form.txtHospitalNo().getValue());
    criteria.setRequestor((MemberOfStaffLiteVo) form.ccRequestor().getValue());
    criteria.setAllocatedTo((MemberOfStaffLiteVo) form.ccAllocate().getValue());
    criteria.setStatus((PatientClericalTaskStatus)form.cmbCurrentStatus().getValue());
    criteria.setDateFrom(form.dteFromDate().getValue());
    criteria.setDateTo(form.dteToDate().getValue());

    return criteria;
}
项目:openMAXIMS    文件:Logic.java   
protected void onBtnTaskCompleteClick() throws ims.framework.exceptions.PresentationLogicException
{
    Object mos = domain.getMosUser();
    if (mos instanceof MemberOfStaffLiteVo)
    {
        form.ccCompleted().setValue((MemberOfStaffLiteVo)mos);
    }
    form.dtimCompleted().setValue(new DateTime());

    if (save(PatientClericalTaskStatus.COMPLETED))
    {
        open();
    }
}
项目:openMAXIMS    文件:Logic.java   
private void updateControlsState() 
{
    //WDEV-14080

    Boolean setDisabled = form.getGlobalContext().Core.getOpenPatientClericalTaskAsReadOnlyIsNotNull() && Boolean.TRUE.equals(form.getGlobalContext().Core.getOpenPatientClericalTaskAsReadOnly());

    if (form.getMode().equals(FormMode.VIEW))
    {
        form.btnEdit().setVisible(form.grdPatClericalTask().getValue()!=null && form.getLocalContext().getlocalContextClericalTaskIsNotNull() && form.getLocalContext().getlocalContextClericalTask().getStatus().equals(PatientClericalTaskStatus.OUTSTANDING));
        form.btnEdit().setEnabled(!setDisabled); //WDEV-17124

        form.btnTaskComplete().setVisible(form.grdPatClericalTask().getValue()!=null && form.getLocalContext().getlocalContextClericalTaskIsNotNull() &&form.getLocalContext().getlocalContextClericalTask().getStatus().equals(PatientClericalTaskStatus.OUTSTANDING));
        form.btnTaskComplete().setEnabled(!setDisabled); //WDEV-17124
    }

    form.btnNew().setEnabled(!setDisabled && form.getMode().equals(FormMode.VIEW) && engine.hasRight(AppRight.CAN_ALLOCATE_PATIENT_CLERICAL_TASKS)); //WDEV-17124
    form.btnNew().setVisible(form.getMode().equals(FormMode.VIEW));

    form.ccRequestor().setEnabled(form.getMode().equals(FormMode.EDIT));
    form.ccAllocate().setEnabled(form.getMode().equals(FormMode.EDIT));

    form.lblCompletedBy().setVisible(form.getLocalContext().getlocalContextClericalTaskIsNotNull() && form.getLocalContext().getlocalContextClericalTask().getStatus().equals(PatientClericalTaskStatus.COMPLETED));
    form.ccCompleted().setVisible(form.getLocalContext().getlocalContextClericalTaskIsNotNull() && form.getLocalContext().getlocalContextClericalTask().getStatus().equals(PatientClericalTaskStatus.COMPLETED));
    form.lblCompletedOn().setVisible(form.getLocalContext().getlocalContextClericalTaskIsNotNull() && form.getLocalContext().getlocalContextClericalTask().getStatus().equals(PatientClericalTaskStatus.COMPLETED));
    form.dtimCompleted().setVisible(form.getLocalContext().getlocalContextClericalTaskIsNotNull() && form.getLocalContext().getlocalContextClericalTask().getStatus().equals(PatientClericalTaskStatus.COMPLETED));

    //FB latest changes for WDEV-13879 - 12.01.2012
    form.ccCompleted().setEnabled(false);
    form.dtimCompleted().setEnabled(false);

}
项目:openMAXIMS    文件:Logic.java   
private ClericalTaskWorklistSearchVo populateSearchCriteriaDataFromScreen() 
{
    ClericalTaskWorklistSearchVo criteria=new ClericalTaskWorklistSearchVo();
    criteria.setSurname(form.txtSurname().getValue());
    criteria.setForename(form.txtForename().getValue());
    criteria.setHospitalNo(form.txtHospitalNo().getValue());
    criteria.setRequestor((MemberOfStaffLiteVo) form.ccRequestor().getValue());
    criteria.setAllocatedTo((MemberOfStaffLiteVo) form.ccAllocate().getValue());
    criteria.setStatus((PatientClericalTaskStatus)form.cmbCurrentStatus().getValue());
    criteria.setDateFrom(form.dteFromDate().getValue());
    criteria.setDateTo(form.dteToDate().getValue());

    return criteria;
}
项目:openMAXIMS    文件:Logic.java   
protected void onBtnTaskCompleteClick() throws ims.framework.exceptions.PresentationLogicException
{
    Object mos = domain.getMosUser();
    if (mos instanceof MemberOfStaffLiteVo)
    {
        form.ccCompleted().setValue((MemberOfStaffLiteVo)mos);
    }
    form.dtimCompleted().setValue(new DateTime());

    if (save(PatientClericalTaskStatus.COMPLETED))
    {
        open();
    }
}
项目:openMAXIMS    文件:Logic.java   
private ClericalTaskWorklistSearchVo populateSearchCriteriaDataFromScreen() 
{
    ClericalTaskWorklistSearchVo criteria=new ClericalTaskWorklistSearchVo();
    criteria.setSurname(form.txtSurname().getValue());
    criteria.setForename(form.txtForename().getValue());
    criteria.setHospitalNo(form.txtHospitalNo().getValue());
    criteria.setRequestor((MemberOfStaffLiteVo) form.ccRequestor().getValue());
    criteria.setAllocatedTo((MemberOfStaffLiteVo) form.ccAllocate().getValue());
    criteria.setStatus((PatientClericalTaskStatus)form.cmbCurrentStatus().getValue());
    criteria.setDateFrom(form.dteFromDate().getValue());
    criteria.setDateTo(form.dteToDate().getValue());

    return criteria;
}
项目:openmaxims-linux    文件:Logic.java   
protected void onBtnTaskCompleteClick() throws ims.framework.exceptions.PresentationLogicException
{
    Object mos = domain.getMosUser();
    if (mos instanceof MemberOfStaffLiteVo)
    {
        form.ccCompleted().setValue((MemberOfStaffLiteVo)mos);
    }
    form.dtimCompleted().setValue(new DateTime());

    if (save(PatientClericalTaskStatus.COMPLETED))
    {
        open();
    }
}
项目:openmaxims-linux    文件:Logic.java   
private ClericalTaskWorklistSearchVo populateSearchCriteriaDataFromScreen() 
{
    ClericalTaskWorklistSearchVo criteria=new ClericalTaskWorklistSearchVo();
    criteria.setSurname(form.txtSurname().getValue());
    criteria.setForename(form.txtForename().getValue());
    criteria.setHospitalNo(form.txtHospitalNo().getValue());
    criteria.setRequestor((MemberOfStaffLiteVo) form.ccRequestor().getValue());
    criteria.setAllocatedTo((MemberOfStaffLiteVo) form.ccAllocate().getValue());
    criteria.setStatus((PatientClericalTaskStatus)form.cmbCurrentStatus().getValue());
    criteria.setDateFrom(form.dteFromDate().getValue());
    criteria.setDateTo(form.dteToDate().getValue());

    return criteria;
}
项目:AvoinApotti    文件:Logic.java   
protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException
{
    if(save(PatientClericalTaskStatus.OUTSTANDING))
        open();
}
项目:AvoinApotti    文件:Logic.java   
private void addPatientClericalTaskDetailsRow(PatientClericalTaskVo record) 
{
    if(record == null)
        return;

     grdClericalTaskRow row = form.grdClericalTask().getRows().newRow();

      PatientIdListVoCollection identifiers = record.getPatient().getIdentifiers();

     for (int i=0;i<identifiers.size();i++)
     {
        if (identifiers.get(i).getType().equals(PatIdType.HOSPNUM))
            row.setcolHospitalNo(identifiers.get(i).getValue().toString());
        if (identifiers.get(i).getType().equals(PatIdType.NHSN))
            row.setcolNHSNumber(identifiers.get(i).getValue().toString());  
     }  

     row.setcolSurname(record.getPatient().getName().getSurname()); 
     row.setTooltipForcolSurname(record.getPatient().getName().getSurname());

     row.setcolForname(record.getPatient().getName().getForename());
     row.setTooltipForcolForname(record.getPatient().getName().getForename());

     row.setcolDOB(record.getPatient().getDob());

     row.setcolRequestor(record.getRequestor().toString());
     row.setTooltipForcolRequestor(record.getRequestor().toString());

     row.setcolAllocated(record.getAllocatedTo().toString());
     row.setTooltipForcolAllocated(record.getAllocatedTo().toString());

     row.setcolRequestedDateTime(record.getRequestedDateTime().toString());

     row.setcolStatus(record.getStatus().toString());

     if (record.getStatus().equals(PatientClericalTaskStatus.COMPLETED) && record.getCompletedBy() != null)
     {
         row.setTooltipForcolStatus("Completed By: "+record.getCompletedBy().toString()+"<br>Completed On: "+record.getCompletedDateTime().toString());//
     }
    row.setValue(record);
}
项目:openMAXIMS    文件:Logic.java   
protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException
{
    if(save(PatientClericalTaskStatus.OUTSTANDING))
        open();
}
项目:openMAXIMS    文件:Logic.java   
private void addPatientClericalTaskDetailsRow(PatientClericalTaskVo record) 
{
    if(record == null)
        return;

     grdClericalTaskRow row = form.grdClericalTask().getRows().newRow();

      PatientIdListVoCollection identifiers = record.getPatient().getIdentifiers();

     for (int i=0;i<identifiers.size();i++)
     {
        if (identifiers.get(i).getType().equals(PatIdType.HOSPNUM))
            row.setcolHospitalNo(identifiers.get(i).getValue().toString());
        if (identifiers.get(i).getType().equals(PatIdType.NHSN))
            row.setcolNHSNumber(identifiers.get(i).getValue().toString());  
     }  

     row.setcolSurname(record.getPatient().getName().getSurname()); 
     row.setTooltipForcolSurname(record.getPatient().getName().getSurname());

     row.setcolForname(record.getPatient().getName().getForename());
     row.setTooltipForcolForname(record.getPatient().getName().getForename());

     row.setcolDOB(record.getPatient().getDob());

     row.setcolRequestor(record.getRequestor().toString());
     row.setTooltipForcolRequestor(record.getRequestor().toString());

     row.setcolAllocated(record.getAllocatedTo().toString());
     row.setTooltipForcolAllocated(record.getAllocatedTo().toString());

     row.setcolRequestedDateTime(record.getRequestedDateTime().toString());

     row.setcolStatus(record.getStatus().toString());

     if (record.getStatus().equals(PatientClericalTaskStatus.COMPLETED) && record.getCompletedBy() != null)
     {
         row.setTooltipForcolStatus("Completed By: "+record.getCompletedBy().toString()+"<br>Completed On: "+record.getCompletedDateTime().toString());//
     }
    row.setValue(record);
}
项目:openMAXIMS    文件:Logic.java   
protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException
{
    if(save(PatientClericalTaskStatus.OUTSTANDING))
        open();
}
项目:openMAXIMS    文件:Logic.java   
private void addPatientClericalTaskDetailsRow(PatientClericalTaskVo record) 
{
    if(record == null)
        return;

     grdClericalTaskRow row = form.grdClericalTask().getRows().newRow();

      PatientIdListVoCollection identifiers = record.getPatient().getIdentifiers();

     for (int i=0;i<identifiers.size();i++)
     {
        if (identifiers.get(i).getType().equals(PatIdType.HOSPNUM))
            row.setcolHospitalNo(identifiers.get(i).getValue().toString());
        if (identifiers.get(i).getType().equals(PatIdType.NHSN))
            row.setcolNHSNumber(identifiers.get(i).getValue().toString());  
     }  

     row.setcolSurname(record.getPatient().getName().getSurname()); 
     row.setTooltipForcolSurname(record.getPatient().getName().getSurname());

     row.setcolForname(record.getPatient().getName().getForename());
     row.setTooltipForcolForname(record.getPatient().getName().getForename());

     row.setcolDOB(record.getPatient().getDob());

     row.setcolRequestor(record.getRequestor().toString());
     row.setTooltipForcolRequestor(record.getRequestor().toString());

     row.setcolAllocated(record.getAllocatedTo().toString());
     row.setTooltipForcolAllocated(record.getAllocatedTo().toString());

     row.setcolRequestedDateTime(record.getRequestedDateTime().toString());

     row.setcolStatus(record.getStatus().toString());

     if (record.getStatus().equals(PatientClericalTaskStatus.COMPLETED) && record.getCompletedBy() != null)
     {
         row.setTooltipForcolStatus("Completed By: "+record.getCompletedBy().toString()+"<br>Completed On: "+record.getCompletedDateTime().toString());//
     }
    row.setValue(record);
}
项目:openmaxims-linux    文件:Logic.java   
protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException
{
    if(save(PatientClericalTaskStatus.OUTSTANDING))
        open();
}
项目:openmaxims-linux    文件:Logic.java   
private void addPatientClericalTaskDetailsRow(PatientClericalTaskVo record) 
{
    if(record == null)
        return;

     grdClericalTaskRow row = form.grdClericalTask().getRows().newRow();

      PatientIdListVoCollection identifiers = record.getPatient().getIdentifiers();

     for (int i=0;i<identifiers.size();i++)
     {
        if (identifiers.get(i).getType().equals(PatIdType.HOSPNUM))
            row.setcolHospitalNo(identifiers.get(i).getValue().toString());
        if (identifiers.get(i).getType().equals(PatIdType.NHSN))
            row.setcolNHSNumber(identifiers.get(i).getValue().toString());  
     }  

     row.setcolSurname(record.getPatient().getName().getSurname()); 
     row.setTooltipForcolSurname(record.getPatient().getName().getSurname());

     row.setcolForname(record.getPatient().getName().getForename());
     row.setTooltipForcolForname(record.getPatient().getName().getForename());

     row.setcolDOB(record.getPatient().getDob());

     row.setcolRequestor(record.getRequestor().toString());
     row.setTooltipForcolRequestor(record.getRequestor().toString());

     row.setcolAllocated(record.getAllocatedTo().toString());
     row.setTooltipForcolAllocated(record.getAllocatedTo().toString());

     row.setcolRequestedDateTime(record.getRequestedDateTime().toString());

     row.setcolStatus(record.getStatus().toString());

     if (record.getStatus().equals(PatientClericalTaskStatus.COMPLETED) && record.getCompletedBy() != null)
     {
         row.setTooltipForcolStatus("Completed By: "+record.getCompletedBy().toString()+"<br>Completed On: "+record.getCompletedDateTime().toString());//
     }
    row.setValue(record);
}