Java 类ims.core.vo.CaseNoteFolderVo 实例源码

项目:AvoinApotti    文件:DemographicsImpl.java   
public CaseNoteFolderVo getCaseNoteFolderLocation(String strHospNum) 
{
    ims.dto.client.Patient patRec = (ims.dto.client.Patient) getDTOInstance(ims.dto.client.Patient.class);

    patRec.Filter.clear();
    if (strHospNum == null)
    {
        throw new DomainRuntimeException("CaseNote Get call must contain valid interface identifier");
    }

    patRec.Filter.Hospnum = strHospNum;

    Result result = patRec.get();
    if (result != null)
    {
        return null;//WDEV-14481
    //  throw new DomainRuntimeException("Error getting Case Note details for patient " + strHospNum + "\nError - " + result.getMessage());
    }

    ims.core.vo.CaseNoteFolderVo voCaseNote = new CaseNoteFolderVo();
    voCaseNote.setLocation(patRec.DataCollection.get(0).Cflname);
    voCaseNote.setComments(patRec.DataCollection.get(0).Cflcomm);

    return (voCaseNote);
}
项目:openMAXIMS    文件:DemographicsImpl.java   
public CaseNoteFolderVo getCaseNoteFolderLocation(String strHospNum) 
{
    ims.dto.client.Patient patRec = (ims.dto.client.Patient) getDTOInstance(ims.dto.client.Patient.class);

    patRec.Filter.clear();
    if (strHospNum == null)
    {
        throw new DomainRuntimeException("CaseNote Get call must contain valid interface identifier");
    }

    patRec.Filter.Hospnum = strHospNum;

    Result result = patRec.get();
    if (result != null)
    {
        return null;//WDEV-14481
    //  throw new DomainRuntimeException("Error getting Case Note details for patient " + strHospNum + "\nError - " + result.getMessage());
    }

    ims.core.vo.CaseNoteFolderVo voCaseNote = new CaseNoteFolderVo();
    voCaseNote.setLocation(patRec.DataCollection.get(0).Cflname);
    voCaseNote.setComments(patRec.DataCollection.get(0).Cflcomm);

    return (voCaseNote);
}
项目:openmaxims-linux    文件:DemographicsImpl.java   
public CaseNoteFolderVo getCaseNoteFolderLocation(String strHospNum) 
{
    ims.dto.client.Patient patRec = (ims.dto.client.Patient) getDTOInstance(ims.dto.client.Patient.class);

    patRec.Filter.clear();
    if (strHospNum == null)
    {
        throw new DomainRuntimeException("CaseNote Get call must contain valid interface identifier");
    }

    patRec.Filter.Hospnum = strHospNum;

    Result result = patRec.get();
    if (result != null)
    {
        return null;//WDEV-14481
    //  throw new DomainRuntimeException("Error getting Case Note details for patient " + strHospNum + "\nError - " + result.getMessage());
    }

    ims.core.vo.CaseNoteFolderVo voCaseNote = new CaseNoteFolderVo();
    voCaseNote.setLocation(patRec.DataCollection.get(0).Cflname);
    voCaseNote.setComments(patRec.DataCollection.get(0).Cflcomm);

    return (voCaseNote);
}
项目:AvoinApotti    文件:Logic.java   
private void displayCaseNoteFolder(PatientId id)
{
    //WDEV-13844 
    if (id == null) 
    {
        return;
    }
    //end 

    form.lyrAdditionalDetails().tabCaseNote().btnFolderComment().setVisible(false);

    CaseNoteFolderVo voCN = null;
    try 
    {
        voCN = domain.getCaseNoteFolderLocation(id.getValue());
    } 
    catch (DomainInterfaceException e) 
    {
        engine.showMessage(e.getMessage());
        return;
    }

    if (voCN != null)
    {
        form.lyrAdditionalDetails().tabCaseNote().txtCaseNoteLocation().setValue(voCN.getLocation());
        form.lyrAdditionalDetails().tabCaseNote().txtCaseNoteComment().setValue(voCN.getComments());
        if (voCN.getCommentsIsNotNull())
            form.lyrAdditionalDetails().tabCaseNote().btnFolderComment().setVisible(true);
    }
}
项目:openMAXIMS    文件:Logic.java   
public void displayCaseNoteFolder(PatientId id)
{
    //WDEV-13844 
    if (id == null) 
    {
        return;
    }
    //end 

    form.btnFolderComment().setVisible(false);

    CaseNoteFolderVo voCN = null;
    try 
    {
        voCN = domain.getCaseNoteFolderLocation(id.getValue());
    } 
    catch (DomainInterfaceException e) 
    {
        engine.showMessage(e.getMessage());
        return;
    }

    if (voCN != null)
    {
        form.txtCaseNoteLocation().setValue(voCN.getLocation());
        form.txtCaseNoteComment().setValue(voCN.getComments());
        if (voCN.getCommentsIsNotNull())
            form.btnFolderComment().setVisible(true);
    }


}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException
{
    if (form.dtimTransfer().getValue() == null
        || form.qmbCaseNoteLocations().getValue() == null)
    {
        engine.showMessage("Please enter both Transfer Date/Time and Location.");
        return;
    }

    CaseNoteFolderVo voCaseNote = new CaseNoteFolderVo();

    voCaseNote.setVolume("TODO");
    voCaseNote.setLocation("TODO");
    voCaseNote.setMoveTo(form.qmbCaseNoteLocations().getValue());

    voCaseNote.setLocDate(form.dtimTransfer().getValue().getDate());
    voCaseNote.setLocTime(form.dtimTransfer().getValue().getTime());
    voCaseNote.setComments(form.txtComment().getValue());
    voCaseNote.setUNAM("TODO");
    voCaseNote.setRDAT(new Date());
    voCaseNote.setRTIM(new Time());
    voCaseNote.setHOSPNUM(form.getGlobalContext().Core.getPatientShort().getHospnum().getValue().toString());

    form.getGlobalContext().Core.setCaseFolderChange(voCaseNote);

    engine.close(DialogResult.OK);
}
项目:openMAXIMS    文件:DemographicsImpl.java   
public CaseNoteFolderVo getCaseNoteFolderLocation(String strHospNum) 
{
    if (Boolean.TRUE.equals(ConfigFlag.GEN.USE_ELECTIVE_LIST_FUNCTIONALITY.getValue()))
        return null;

    ims.dto.client.Patient patRec = (ims.dto.client.Patient) getDTOInstance(ims.dto.client.Patient.class);

    patRec.Filter.clear();
    if (strHospNum == null)
    {
        throw new DomainRuntimeException("CaseNote Get call must contain valid interface identifier");
    }

    patRec.Filter.Hospnum = strHospNum;

    Result result = patRec.get();
    if (result != null)
    {
        return null;//WDEV-14481
    //  throw new DomainRuntimeException("Error getting Case Note details for patient " + strHospNum + "\nError - " + result.getMessage());
    }

    ims.core.vo.CaseNoteFolderVo voCaseNote = new CaseNoteFolderVo();
    voCaseNote.setLocation(patRec.DataCollection.get(0).Cflname);
    voCaseNote.setComments(patRec.DataCollection.get(0).Cflcomm);

    return (voCaseNote);
}
项目:openMAXIMS    文件:PDSDemographicsImpl.java   
public CaseNoteFolderVo getCaseNoteFolderLocation(String strHospNum) 
{
    if (Boolean.TRUE.equals(ConfigFlag.GEN.USE_ELECTIVE_LIST_FUNCTIONALITY.getValue()))
        return null;

    ims.dto.client.Patient patRec = (ims.dto.client.Patient) getDTOInstance(ims.dto.client.Patient.class);

    patRec.Filter.clear();
    if (strHospNum == null)
    {
        throw new DomainRuntimeException("CaseNote Get call must contain valid interface identifier");
    }

    patRec.Filter.Hospnum = strHospNum;

    Result result = patRec.get();
    if (result != null)
    {
        return null;//WDEV-14481
    //  throw new DomainRuntimeException("Error getting Case Note details for patient " + strHospNum + "\nError - " + result.getMessage());
    }

    ims.core.vo.CaseNoteFolderVo voCaseNote = new CaseNoteFolderVo();
    voCaseNote.setLocation(patRec.DataCollection.get(0).Cflname);
    voCaseNote.setComments(patRec.DataCollection.get(0).Cflcomm);

    return (voCaseNote);
}
项目:openMAXIMS    文件:CaseNoteTrackingImpl.java   
public ims.core.vo.CaseNoteFolderVo saveCaseNote(ims.core.vo.CaseNoteFolderVo voCaseNote) throws ims.domain.exceptions.DomainInterfaceException, ims.domain.exceptions.StaleObjectException
{
    Casenote cnRec = null;
    try
    {
        cnRec = (Casenote) getDTOInstance(Casenote.class);
    }
    catch(ResultException e)
    {
        throw new DomainInterfaceException("Failed to Connect to PAS - Please check Configuration", e);
    }

    cnRec.DataCollection.add();
    CasenoteRecord dtoCN = cnRec.DataCollection.get(0);

    dtoCN.Vol = voCaseNote.getVolume();
    dtoCN.Curr_loc = voCaseNote.getLocation();
    dtoCN.Move_to = voCaseNote.getMoveTo();
    dtoCN.Loc_date = voCaseNote.getLocDate().toString(DateFormat.ISO);
    dtoCN.Loc_time = voCaseNote.getLocTime().toString(TimeFormat.FLAT6);
    dtoCN.Comm = voCaseNote.getComments();
    dtoCN.Unam = voCaseNote.getUNAM();
    dtoCN.Rdat = voCaseNote.getRDAT().toString(DateFormat.ISO);
    dtoCN.Rtim = voCaseNote.getRTIM().toString(TimeFormat.FLAT6);
    dtoCN.Hospnum = voCaseNote.getHOSPNUM();

    Result result = cnRec.update();
    if(result != null && result.getId() < 0)
        throw new DomainInterfaceException("Attempt to save to CaseNote failed " + result.getMessage());

    return null;
}
项目:openMAXIMS    文件:Logic.java   
private void displayCaseNoteFolder(PatientId id)
{
    //WDEV-13844 
    if (id == null) 
    {
        return;
    }
    //end 

    form.lyrAdditionalDetails().tabCaseNote().btnFolderComment().setVisible(false);

    CaseNoteFolderVo voCN = null;
    try 
    {
        voCN = domain.getCaseNoteFolderLocation(id.getValue());
    } 
    catch (DomainInterfaceException e) 
    {
        engine.showMessage(e.getMessage());
        return;
    }

    if (voCN != null)
    {
        form.lyrAdditionalDetails().tabCaseNote().txtCaseNoteLocation().setValue(voCN.getLocation());
        form.lyrAdditionalDetails().tabCaseNote().txtCaseNoteComment().setValue(voCN.getComments());
        if (voCN.getCommentsIsNotNull())
            form.lyrAdditionalDetails().tabCaseNote().btnFolderComment().setVisible(true);
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void displayCaseNoteFolder(PatientId id)
{
    //WDEV-13844 
    if (id == null) 
    {
        return;
    }
    //end 

    form.lyrAdditionalDetails().tabCaseNote().btnFolderComment().setVisible(false);

    CaseNoteFolderVo voCN = null;
    try 
    {
        voCN = domain.getCaseNoteFolderLocation(id.getValue());
    } 
    catch (DomainInterfaceException e) 
    {
        engine.showMessage(e.getMessage());
        return;
    }

    if (voCN != null)
    {
        form.lyrAdditionalDetails().tabCaseNote().txtCaseNoteLocation().setValue(voCN.getLocation());
        form.lyrAdditionalDetails().tabCaseNote().txtCaseNoteComment().setValue(voCN.getComments());
        if (voCN.getCommentsIsNotNull())
            form.lyrAdditionalDetails().tabCaseNote().btnFolderComment().setVisible(true);
    }
}
项目:openMAXIMS    文件:CaseNoteTrackingImpl.java   
public ims.core.vo.CaseNoteFolderVo getCaseNoteFolderLocation(String strHospNum)
{
    return null;
}