Java 类ims.emergency.vo.SystemReviewVo 实例源码

项目:AvoinApotti    文件:Logic.java   
private void save()
{
    SystemReviewVo record = populateDataFromScreen(form.getLocalContext().getCurrentSystemReview());
    String[] errors = record.validate();

    if(errors != null && errors.length > 0)
    {
        engine.showErrors(errors);          
        return;
    }
    try 
    {
        domain.saveSystemReview(record);
    }
    catch (StaleObjectException e) 
    {

        engine.showMessage(ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());

    }
    engine.close(DialogResult.OK);

}
项目:openMAXIMS    文件:Logic.java   
private void save()
{
    SystemReviewVo record = populateDataFromScreen(form.getLocalContext().getCurrentSystemReview());
    String[] errors = record.validate();

    if(errors != null && errors.length > 0)
    {
        engine.showErrors(errors);          
        return;
    }
    try 
    {
        domain.saveSystemReview(record);
    }
    catch (StaleObjectException e) 
    {

        engine.showMessage(ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());

    }
    engine.close(DialogResult.OK);

}
项目:openMAXIMS    文件:Logic.java   
private void save()
{
    SystemReviewVo record = populateDataFromScreen(form.getLocalContext().getCurrentSystemReview());
    String[] errors = record.validate();

    if(errors != null && errors.length > 0)
    {
        engine.showErrors(errors);          
        return;
    }
    try 
    {
        domain.saveSystemReview(record);
    }
    catch (StaleObjectException e) 
    {

        engine.showMessage(ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());

    }
    engine.close(DialogResult.OK);

}
项目:openmaxims-linux    文件:Logic.java   
private void save()
{
    SystemReviewVo record = populateDataFromScreen(form.getLocalContext().getCurrentSystemReview());
    String[] errors = record.validate();

    if(errors != null && errors.length > 0)
    {
        engine.showErrors(errors);          
        return;
    }
    try 
    {
        domain.saveSystemReview(record);
    }
    catch (StaleObjectException e) 
    {

        engine.showMessage(ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());

    }
    engine.close(DialogResult.OK);

}
项目:AvoinApotti    文件:Logic.java   
private SystemReviewVo populateDataFromScreen()
{
    SystemReviewVo systemReview = form.getGlobalContext().Emergency.getSystemReview();
    systemReview.setIsCorrected(Boolean.TRUE);
    systemReview.setCorrectedAuthoringInformation(form.ccAuthoring().getValue());
    systemReview.setCorrectionComments(form.richTextCorrectionComments().getValue());

    return systemReview;
}
项目:AvoinApotti    文件:Logic.java   
protected void onBtnNewClick() throws ims.framework.exceptions.PresentationLogicException
{
    //form.getGlobalContext().Emergency.setAddEditForSystemsReviewDlg(Boolean.FALSE);

    //WDEV-17118
    SystemReviewVoCollection currentActiveNotes = domain.getAllActiveSystemNotes(form.getLocalContext().getCareContextRef());
    SystemReviewForPresentingProblemConfigVo systemsReviewForproblem = domain.getSystemReviewForPresentingProblem(form.getLocalContext().getClinicalProblemRef());
    BodySystemCollection newSystems = getSystemsForCreation(currentActiveNotes, systemsReviewForproblem);

    SystemReviewVoCollection newSystemReviewColl = new SystemReviewVoCollection();

    for (int i = 0; i < newSystems.size(); i++)
    {
        SystemReviewVo tempVo = new SystemReviewVo();
        tempVo.setPatient(form.getLocalContext().getPatientRef());
        tempVo.setAttendance(form.getLocalContext().getCareContextRef());
        tempVo.setEpisode(form.getLocalContext().getEpisodeOfCareRef());
        tempVo.setSystems(newSystems.get(i));
        newSystemReviewColl.add(tempVo);
    }

    //engine.open(form.getForms().Emergency.SystemsReviewDialog, new Object[]{tempVo, form.getLocalContext().getClinicalProblemRef()});

    if (newSystemReviewColl.size() == 0)
    {
        engine.showMessage(ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
        open();
        updateControlsState();
        return;
    }

    form.getGlobalContext().Emergency.setSystemReviewCollection(newSystemReviewColl);
    engine.open(form.getForms().Emergency.SystemReviewNotesDialog);
}
项目:AvoinApotti    文件:Logic.java   
public SystemReviewVo getValue()
{
    if (form.getLocalContext().getSystemReview() == null)
        return null;

    form.getLocalContext().getSystemReview().setAuthoringInformation(form.ccAuthoring().getValue());
    form.getLocalContext().getSystemReview().setSystemReviewNote(form.richTextSystemReviewNotes().getText().equals("") ? null : form.richTextSystemReviewNotes().getValue()); //WDEV-17190

    return form.getLocalContext().getSystemReview();
}
项目:AvoinApotti    文件:SystemReviewImpl.java   
public SystemReviewVo getSystemReview(SystemsReviewRefVo record) 
{
    if( record == null )
        throw new CodingRuntimeException("SystemsReviewVo not provided");

    DomainFactory factory = getDomainFactory();
    SystemsReview doSystemsReview  =(SystemsReview) factory.getDomainObject(SystemsReview.class, record.getID_SystemsReview());
    return SystemReviewVoAssembler.create(doSystemsReview);
}
项目:openMAXIMS    文件:Logic.java   
private SystemReviewVo populateDataFromScreen()
{
    SystemReviewVo systemReview = form.getGlobalContext().Emergency.getSystemReview();
    systemReview.setIsCorrected(Boolean.TRUE);
    systemReview.setCorrectedAuthoringInformation(form.ccAuthoring().getValue());
    systemReview.setCorrectionComments(form.richTextCorrectionComments().getValue());

    return systemReview;
}
项目:openMAXIMS    文件:Logic.java   
protected void onBtnNewClick() throws ims.framework.exceptions.PresentationLogicException
{
    //form.getGlobalContext().Emergency.setAddEditForSystemsReviewDlg(Boolean.FALSE);

    //WDEV-17118
    SystemReviewVoCollection currentActiveNotes = domain.getAllActiveSystemNotes(form.getLocalContext().getCareContextRef());
    SystemReviewForPresentingProblemConfigVo systemsReviewForproblem = domain.getSystemReviewForPresentingProblem(form.getLocalContext().getClinicalProblemRef());
    BodySystemCollection newSystems = getSystemsForCreation(currentActiveNotes, systemsReviewForproblem);

    SystemReviewVoCollection newSystemReviewColl = new SystemReviewVoCollection();

    for (int i = 0; i < newSystems.size(); i++)
    {
        SystemReviewVo tempVo = new SystemReviewVo();
        tempVo.setPatient(form.getLocalContext().getPatientRef());
        tempVo.setAttendance(form.getLocalContext().getCareContextRef());
        tempVo.setEpisode(form.getLocalContext().getEpisodeOfCareRef());
        tempVo.setSystems(newSystems.get(i));
        newSystemReviewColl.add(tempVo);
    }

    //engine.open(form.getForms().Emergency.SystemsReviewDialog, new Object[]{tempVo, form.getLocalContext().getClinicalProblemRef()});

    if (newSystemReviewColl.size() == 0)
    {
        engine.showMessage(ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
        open();
        updateControlsState();
        return;
    }

    form.getGlobalContext().Emergency.setSystemReviewCollection(newSystemReviewColl);
    engine.open(form.getForms().Emergency.SystemReviewNotesDialog);
}
项目:openMAXIMS    文件:Logic.java   
public SystemReviewVo getValue()
{
    if (form.getLocalContext().getSystemReview() == null)
        return null;

    form.getLocalContext().getSystemReview().setAuthoringInformation(form.ccAuthoring().getValue());
    form.getLocalContext().getSystemReview().setSystemReviewNote(form.richTextSystemReviewNotes().getText().equals("") ? null : form.richTextSystemReviewNotes().getValue()); //WDEV-17190

    return form.getLocalContext().getSystemReview();
}
项目:openMAXIMS    文件:SystemReviewImpl.java   
public SystemReviewVo getSystemReview(SystemsReviewRefVo record) 
{
    if( record == null )
        throw new CodingRuntimeException("SystemsReviewVo not provided");

    DomainFactory factory = getDomainFactory();
    SystemsReview doSystemsReview  =(SystemsReview) factory.getDomainObject(SystemsReview.class, record.getID_SystemsReview());
    return SystemReviewVoAssembler.create(doSystemsReview);
}
项目:openMAXIMS    文件:Logic.java   
private SystemReviewVo populateDataFromScreen()
{
    SystemReviewVo systemReview = form.getGlobalContext().Emergency.getSystemReview();
    systemReview.setIsCorrected(Boolean.TRUE);
    systemReview.setCorrectedAuthoringInformation(form.ccAuthoring().getValue());
    systemReview.setCorrectionComments(form.richTextCorrectionComments().getValue());

    return systemReview;
}
项目:openMAXIMS    文件:Logic.java   
protected void onBtnNewClick() throws ims.framework.exceptions.PresentationLogicException
{
    //form.getGlobalContext().Emergency.setAddEditForSystemsReviewDlg(Boolean.FALSE);

    //WDEV-17118
    SystemReviewVoCollection currentActiveNotes = domain.getAllActiveSystemNotes(form.getLocalContext().getCareContextRef());
    SystemReviewForPresentingProblemConfigVo systemsReviewForproblem = domain.getSystemReviewForPresentingProblem(form.getLocalContext().getClinicalProblemRef());
    BodySystemCollection newSystems = getSystemsForCreation(currentActiveNotes, systemsReviewForproblem);

    SystemReviewVoCollection newSystemReviewColl = new SystemReviewVoCollection();

    for (int i = 0; i < newSystems.size(); i++)
    {
        SystemReviewVo tempVo = new SystemReviewVo();
        tempVo.setPatient(form.getLocalContext().getPatientRef());
        tempVo.setAttendance(form.getLocalContext().getCareContextRef());
        tempVo.setEpisode(form.getLocalContext().getEpisodeOfCareRef());
        tempVo.setSystems(newSystems.get(i));
        newSystemReviewColl.add(tempVo);
    }

    //engine.open(form.getForms().Emergency.SystemsReviewDialog, new Object[]{tempVo, form.getLocalContext().getClinicalProblemRef()});

    if (newSystemReviewColl.size() == 0)
    {
        engine.showMessage(ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
        open();
        updateControlsState();
        return;
    }

    form.getGlobalContext().Emergency.setSystemReviewCollection(newSystemReviewColl);
    engine.open(form.getForms().Emergency.SystemReviewNotesDialog);
}
项目:openMAXIMS    文件:Logic.java   
public SystemReviewVo getValue()
{
    if (form.getLocalContext().getSystemReview() == null)
        return null;

    form.getLocalContext().getSystemReview().setAuthoringInformation(form.ccAuthoring().getValue());
    form.getLocalContext().getSystemReview().setSystemReviewNote(form.richTextSystemReviewNotes().getText().equals("") ? null : form.richTextSystemReviewNotes().getValue()); //WDEV-17190

    return form.getLocalContext().getSystemReview();
}
项目:openMAXIMS    文件:SystemReviewImpl.java   
public SystemReviewVo getSystemReview(SystemsReviewRefVo record) 
{
    if( record == null )
        throw new CodingRuntimeException("SystemsReviewVo not provided");

    DomainFactory factory = getDomainFactory();
    SystemsReview doSystemsReview  =(SystemsReview) factory.getDomainObject(SystemsReview.class, record.getID_SystemsReview());
    return SystemReviewVoAssembler.create(doSystemsReview);
}
项目:openmaxims-linux    文件:Logic.java   
private SystemReviewVo populateDataFromScreen()
{
    SystemReviewVo systemReview = form.getGlobalContext().Emergency.getSystemReview();
    systemReview.setIsCorrected(Boolean.TRUE);
    systemReview.setCorrectedAuthoringInformation(form.ccAuthoring().getValue());
    systemReview.setCorrectionComments(form.richTextCorrectionComments().getValue());

    return systemReview;
}
项目:openmaxims-linux    文件:Logic.java   
protected void onBtnNewClick() throws ims.framework.exceptions.PresentationLogicException
{
    //form.getGlobalContext().Emergency.setAddEditForSystemsReviewDlg(Boolean.FALSE);

    //WDEV-17118
    SystemReviewVoCollection currentActiveNotes = domain.getAllActiveSystemNotes(form.getLocalContext().getCareContextRef());
    SystemReviewForPresentingProblemConfigVo systemsReviewForproblem = domain.getSystemReviewForPresentingProblem(form.getLocalContext().getClinicalProblemRef());
    BodySystemCollection newSystems = getSystemsForCreation(currentActiveNotes, systemsReviewForproblem);

    SystemReviewVoCollection newSystemReviewColl = new SystemReviewVoCollection();

    for (int i = 0; i < newSystems.size(); i++)
    {
        SystemReviewVo tempVo = new SystemReviewVo();
        tempVo.setPatient(form.getLocalContext().getPatientRef());
        tempVo.setAttendance(form.getLocalContext().getCareContextRef());
        tempVo.setEpisode(form.getLocalContext().getEpisodeOfCareRef());
        tempVo.setSystems(newSystems.get(i));
        newSystemReviewColl.add(tempVo);
    }

    //engine.open(form.getForms().Emergency.SystemsReviewDialog, new Object[]{tempVo, form.getLocalContext().getClinicalProblemRef()});

    if (newSystemReviewColl.size() == 0)
    {
        engine.showMessage(ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
        open();
        updateControlsState();
        return;
    }

    form.getGlobalContext().Emergency.setSystemReviewCollection(newSystemReviewColl);
    engine.open(form.getForms().Emergency.SystemReviewNotesDialog);
}
项目:openmaxims-linux    文件:Logic.java   
public SystemReviewVo getValue()
{
    if (form.getLocalContext().getSystemReview() == null)
        return null;

    form.getLocalContext().getSystemReview().setAuthoringInformation(form.ccAuthoring().getValue());
    form.getLocalContext().getSystemReview().setSystemReviewNote(form.richTextSystemReviewNotes().getText().equals("") ? null : form.richTextSystemReviewNotes().getValue()); //WDEV-17190

    return form.getLocalContext().getSystemReview();
}
项目:openmaxims-linux    文件:SystemReviewImpl.java   
public SystemReviewVo getSystemReview(SystemsReviewRefVo record) 
{
    if( record == null )
        throw new CodingRuntimeException("SystemsReviewVo not provided");

    DomainFactory factory = getDomainFactory();
    SystemsReview doSystemsReview  =(SystemsReview) factory.getDomainObject(SystemsReview.class, record.getID_SystemsReview());
    return SystemReviewVoAssembler.create(doSystemsReview);
}
项目:AvoinApotti    文件:Logic.java   
public void setValue(SystemReviewVo systemReview)
{
    form.getLocalContext().setSystemReview(systemReview);
}
项目:openMAXIMS    文件:Logic.java   
public void setValue(SystemReviewVo systemReview)
{
    form.getLocalContext().setSystemReview(systemReview);
}
项目:openMAXIMS    文件:Logic.java   
public void setValue(SystemReviewVo systemReview)
{
    form.getLocalContext().setSystemReview(systemReview);
}
项目:openmaxims-linux    文件:Logic.java   
public void setValue(SystemReviewVo systemReview)
{
    form.getLocalContext().setSystemReview(systemReview);
}