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

项目:AvoinApotti    文件:Logic.java   
@Override
protected void onBtnOKClick() throws ims.framework.exceptions.PresentationLogicException
{
    WhiteBoardAssessmentConfigVo whiteBoardAssessToSave = populateDataFromScreen(form.getGlobalContext().Emergency.getWhiteBoardAssessmentConfig());

    String[] errors = getUIErrors();

    if (errors != null && errors.length > 0)
    {
        engine.showErrors(errors);
        return ;
    }


    form.getGlobalContext().Emergency.setWhiteBoardAssessmentConfig(whiteBoardAssessToSave);
    engine.close(DialogResult.OK);
}
项目:AvoinApotti    文件:Logic.java   
private void populateScreenFromData(WhiteBoardAssessmentConfigVo whiteBoardAssessmentConfig)
{
    clearScreen();
    if (whiteBoardAssessmentConfig==null)
        return;

    if (whiteBoardAssessmentConfig.getName() != null)
    {
        UserAssessmentForWhiteboardConfigVo tempUA = new UserAssessmentForWhiteboardConfigVo();
        form.qmbAssessment().newRow(tempUA, whiteBoardAssessmentConfig.getName());
        form.qmbAssessment().setValue(tempUA);
    }

    if (whiteBoardAssessmentConfig.getIcon() != null)
    {
        Image img =engine.getRegisteredImage(whiteBoardAssessmentConfig.getIcon().getID_AppImage());
        form.qmbIcon().newRow(img, img.getImagePath());
        form.qmbIcon().setValue(img);
        form.imgAssessment().setValue(img);
    }

    form.txtTaxonomy().setValue(whiteBoardAssessmentConfig.getMAXIMSMappingValue());

}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onBtnOKClick() throws ims.framework.exceptions.PresentationLogicException
{
    WhiteBoardAssessmentConfigVo whiteBoardAssessToSave = populateDataFromScreen(form.getGlobalContext().Emergency.getWhiteBoardAssessmentConfig());

    String[] errors = getUIErrors();

    if (errors != null && errors.length > 0)
    {
        engine.showErrors(errors);
        return ;
    }


    form.getGlobalContext().Emergency.setWhiteBoardAssessmentConfig(whiteBoardAssessToSave);
    engine.close(DialogResult.OK);
}
项目:openMAXIMS    文件:Logic.java   
private void populateScreenFromData(WhiteBoardAssessmentConfigVo whiteBoardAssessmentConfig)
{
    clearScreen();
    if (whiteBoardAssessmentConfig==null)
        return;

    if (whiteBoardAssessmentConfig.getAssociatedAssessment() != null)
    {

        form.qmbAssessment().newRow(whiteBoardAssessmentConfig.getAssociatedAssessment(), whiteBoardAssessmentConfig.getAssociatedAssessment().getName().toString());
        form.qmbAssessment().setValue(whiteBoardAssessmentConfig.getAssociatedAssessment());
    }

    form.txtName().setValue(whiteBoardAssessmentConfig.getName());

    if (whiteBoardAssessmentConfig.getIcon() != null)
    {
        Image img =engine.getRegisteredImage(whiteBoardAssessmentConfig.getIcon().getID_AppImage());
        form.qmbIcon().newRow(img, img.getImagePath());
        form.qmbIcon().setValue(img);
        form.imgAssessment().setValue(img);
    }

}
项目:openMAXIMS    文件:Logic.java   
private void addRowToAssessmentsGrid(WhiteBoardAssessmentConfigVo whiteBoardAssessment)
{
    if (whiteBoardAssessment==null)
        return;

    grdAssessmentsRow row = form.grdAssessments().getRows().newRow();

    row.setcolName(whiteBoardAssessment.getName());
    row.setTooltipForcolName(whiteBoardAssessment.getName());

    PatientAssessmentForWhiteboardVo patientAssessment=domain.getPatientAssessment(form.getGlobalContext().Core.getCurrentCareContext(), whiteBoardAssessment.getAssociatedAssessment());

    row.setcolScore(patientAssessment!=null && patientAssessment.getScore()!=null ? patientAssessment.getScore().toString() : null);
    row.setTooltipForcolScore(patientAssessment!=null && patientAssessment.getScore()!=null ? patientAssessment.getScore().toString() : null);

    row.setcolCompletionHcp(patientAssessment!=null && patientAssessment.getCompletedHCP()!=null  &&  patientAssessment.getCompletedHCP().getName()!=null ? patientAssessment.getCompletedHCP().getName().toString() : null);
    row.setTooltipForcolCompletionHcp(patientAssessment!=null && patientAssessment.getCompletedHCP()!=null  &&  patientAssessment.getCompletedHCP().getName()!=null ? patientAssessment.getCompletedHCP().getName().toString() : null);

    row.setcolCompletionDateTime(patientAssessment!=null && patientAssessment.getCompletedDateTime()!=null ? patientAssessment.getCompletedDateTime().toString() : null);
    row.setTooltipForcolCompletionDateTime(patientAssessment!=null && patientAssessment.getCompletedDateTime()!=null ? patientAssessment.getCompletedDateTime().toString() : null);
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onBtnOKClick() throws ims.framework.exceptions.PresentationLogicException
{
    WhiteBoardAssessmentConfigVo whiteBoardAssessToSave = populateDataFromScreen(form.getGlobalContext().Emergency.getWhiteBoardAssessmentConfig());

    String[] errors = getUIErrors();

    if (errors != null && errors.length > 0)
    {
        engine.showErrors(errors);
        return ;
    }


    form.getGlobalContext().Emergency.setWhiteBoardAssessmentConfig(whiteBoardAssessToSave);
    engine.close(DialogResult.OK);
}
项目:openMAXIMS    文件:Logic.java   
private void populateScreenFromData(WhiteBoardAssessmentConfigVo whiteBoardAssessmentConfig)
{
    clearScreen();
    if (whiteBoardAssessmentConfig==null)
        return;

    if (whiteBoardAssessmentConfig.getName() != null)
    {
        UserAssessmentForWhiteboardConfigVo tempUA = new UserAssessmentForWhiteboardConfigVo();
        form.qmbAssessment().newRow(tempUA, whiteBoardAssessmentConfig.getName());
        form.qmbAssessment().setValue(tempUA);
    }

    if (whiteBoardAssessmentConfig.getIcon() != null)
    {
        Image img =engine.getRegisteredImage(whiteBoardAssessmentConfig.getIcon().getID_AppImage());
        form.qmbIcon().newRow(img, img.getImagePath());
        form.qmbIcon().setValue(img);
        form.imgAssessment().setValue(img);
    }

    form.txtTaxonomy().setValue(whiteBoardAssessmentConfig.getMAXIMSMappingValue());

}
项目:openmaxims-linux    文件:Logic.java   
@Override
protected void onBtnOKClick() throws ims.framework.exceptions.PresentationLogicException
{
    WhiteBoardAssessmentConfigVo whiteBoardAssessToSave = populateDataFromScreen(form.getGlobalContext().Emergency.getWhiteBoardAssessmentConfig());

    String[] errors = getUIErrors();

    if (errors != null && errors.length > 0)
    {
        engine.showErrors(errors);
        return ;
    }


    form.getGlobalContext().Emergency.setWhiteBoardAssessmentConfig(whiteBoardAssessToSave);
    engine.close(DialogResult.OK);
}
项目:openmaxims-linux    文件:Logic.java   
private void populateScreenFromData(WhiteBoardAssessmentConfigVo whiteBoardAssessmentConfig)
{
    clearScreen();
    if (whiteBoardAssessmentConfig==null)
        return;

    if (whiteBoardAssessmentConfig.getName() != null)
    {
        UserAssessmentForWhiteboardConfigVo tempUA = new UserAssessmentForWhiteboardConfigVo();
        form.qmbAssessment().newRow(tempUA, whiteBoardAssessmentConfig.getName());
        form.qmbAssessment().setValue(tempUA);
    }

    if (whiteBoardAssessmentConfig.getIcon() != null)
    {
        Image img =engine.getRegisteredImage(whiteBoardAssessmentConfig.getIcon().getID_AppImage());
        form.qmbIcon().newRow(img, img.getImagePath());
        form.qmbIcon().setValue(img);
        form.imgAssessment().setValue(img);
    }

    form.txtTaxonomy().setValue(whiteBoardAssessmentConfig.getMAXIMSMappingValue());

}
项目:AvoinApotti    文件:Logic.java   
private void addRowToAssessmentsGrid(WhiteBoardAssessmentConfigVo whiteBoardAssessmentConfig)
{
    if (whiteBoardAssessmentConfig==null)
        return;

    grdAssessmentsRow row = form.grdAssessments().getRows().newRow();

    row.setcolName(whiteBoardAssessmentConfig.getName());
    row.setcolIcon(whiteBoardAssessmentConfig.getIcon()!=null ? engine.getRegisteredImage(whiteBoardAssessmentConfig.getIcon().getID_AppImage()) : null);
    row.setcolTaxonomy(whiteBoardAssessmentConfig.getMAXIMSMappingValue());

    row.setValue(whiteBoardAssessmentConfig);
}
项目:AvoinApotti    文件:Logic.java   
private void updateRowToAssessmentsGrid(WhiteBoardAssessmentConfigVo whiteBoardAssessmentConfig)
{
    grdAssessmentsRow row = form.grdAssessments().getSelectedRow();

    row.setcolName(whiteBoardAssessmentConfig.getName());
    row.setcolIcon((Image) whiteBoardAssessmentConfig.getIcon());
    row.setcolTaxonomy(whiteBoardAssessmentConfig.getMAXIMSMappingValue());

    row.setValue(whiteBoardAssessmentConfig);
}
项目:AvoinApotti    文件:Logic.java   
private void addColumnAssessment(WhiteBoardAssessmentConfigVo whiteBoardAssessmentConfig)
{
    DynamicGridColumn column = form.dyngrdWhiteBoard().getColumns().newColumn("");
    column.setWidth(30);
    column.setAlignment(Alignment.CENTER);
    column.setVerticalAlignment(VerticalAlignment.MIDDLE);
    column.setCaptionImage(engine.getRegisteredImage(whiteBoardAssessmentConfig.getIcon().getID_AppImage()));
    column.setHeaderAlignment(Alignment.CENTER);
    column.setIdentifier(whiteBoardAssessmentConfig);
}
项目:openMAXIMS    文件:Logic.java   
private void addRowToAssessmentsGrid(WhiteBoardAssessmentConfigVo whiteBoardAssessmentConfig)
{
    if (whiteBoardAssessmentConfig==null)
        return;

    grdAssessmentsRow row = form.grdAssessments().getRows().newRow();

    row.setcolName(whiteBoardAssessmentConfig.getName());
    row.setcolIcon(whiteBoardAssessmentConfig.getIcon()!=null ? engine.getRegisteredImage(whiteBoardAssessmentConfig.getIcon().getID_AppImage()) : null);

    row.setValue(whiteBoardAssessmentConfig);
}
项目:openMAXIMS    文件:Logic.java   
private void updateRowToAssessmentsGrid(WhiteBoardAssessmentConfigVo whiteBoardAssessmentConfig)
{
    grdAssessmentsRow row = form.grdAssessments().getSelectedRow();

    row.setcolName(whiteBoardAssessmentConfig.getName());
    row.setcolIcon((Image) whiteBoardAssessmentConfig.getIcon());

    row.setValue(whiteBoardAssessmentConfig);
}
项目:openMAXIMS    文件:Logic.java   
private void addColumnAssessment(WhiteBoardAssessmentConfigVo whiteBoardAssessmentConfig)
{
    DynamicGridColumn column = form.dyngrdWhiteBoard().getColumns().newColumn("");
    column.setWidth(30);
    column.setAlignment(Alignment.CENTER);
    column.setVerticalAlignment(VerticalAlignment.MIDDLE);
    column.setCaptionImage(engine.getRegisteredImage(whiteBoardAssessmentConfig.getIcon().getID_AppImage()));
    column.setHeaderAlignment(Alignment.CENTER);
    column.setIdentifier(whiteBoardAssessmentConfig);
}
项目:openMAXIMS    文件:Logic.java   
private void addRowToAssessmentsGrid(WhiteBoardAssessmentConfigVo whiteBoardAssessmentConfig)
{
    if (whiteBoardAssessmentConfig==null)
        return;

    grdAssessmentsRow row = form.grdAssessments().getRows().newRow();

    row.setcolName(whiteBoardAssessmentConfig.getName());
    row.setcolIcon(whiteBoardAssessmentConfig.getIcon()!=null ? engine.getRegisteredImage(whiteBoardAssessmentConfig.getIcon().getID_AppImage()) : null);
    row.setcolTaxonomy(whiteBoardAssessmentConfig.getMAXIMSMappingValue());

    row.setValue(whiteBoardAssessmentConfig);
}
项目:openMAXIMS    文件:Logic.java   
private void updateRowToAssessmentsGrid(WhiteBoardAssessmentConfigVo whiteBoardAssessmentConfig)
{
    grdAssessmentsRow row = form.grdAssessments().getSelectedRow();

    row.setcolName(whiteBoardAssessmentConfig.getName());
    row.setcolIcon((Image) whiteBoardAssessmentConfig.getIcon());
    row.setcolTaxonomy(whiteBoardAssessmentConfig.getMAXIMSMappingValue());

    row.setValue(whiteBoardAssessmentConfig);
}
项目:openMAXIMS    文件:Logic.java   
private void addColumnAssessment(WhiteBoardAssessmentConfigVo whiteBoardAssessmentConfig)
{
    DynamicGridColumn column = form.dyngrdWhiteBoard().getColumns().newColumn("");
    column.setWidth(30);
    column.setAlignment(Alignment.CENTER);
    column.setVerticalAlignment(VerticalAlignment.MIDDLE);
    column.setCaptionImage(engine.getRegisteredImage(whiteBoardAssessmentConfig.getIcon().getID_AppImage()));
    column.setHeaderAlignment(Alignment.CENTER);
    column.setIdentifier(whiteBoardAssessmentConfig);
}
项目:openmaxims-linux    文件:Logic.java   
private void addRowToAssessmentsGrid(WhiteBoardAssessmentConfigVo whiteBoardAssessmentConfig)
{
    if (whiteBoardAssessmentConfig==null)
        return;

    grdAssessmentsRow row = form.grdAssessments().getRows().newRow();

    row.setcolName(whiteBoardAssessmentConfig.getName());
    row.setcolIcon(whiteBoardAssessmentConfig.getIcon()!=null ? engine.getRegisteredImage(whiteBoardAssessmentConfig.getIcon().getID_AppImage()) : null);
    row.setcolTaxonomy(whiteBoardAssessmentConfig.getMAXIMSMappingValue());

    row.setValue(whiteBoardAssessmentConfig);
}
项目:openmaxims-linux    文件:Logic.java   
private void updateRowToAssessmentsGrid(WhiteBoardAssessmentConfigVo whiteBoardAssessmentConfig)
{
    grdAssessmentsRow row = form.grdAssessments().getSelectedRow();

    row.setcolName(whiteBoardAssessmentConfig.getName());
    row.setcolIcon((Image) whiteBoardAssessmentConfig.getIcon());
    row.setcolTaxonomy(whiteBoardAssessmentConfig.getMAXIMSMappingValue());

    row.setValue(whiteBoardAssessmentConfig);
}
项目:openmaxims-linux    文件:Logic.java   
private void addColumnAssessment(WhiteBoardAssessmentConfigVo whiteBoardAssessmentConfig)
{
    DynamicGridColumn column = form.dyngrdWhiteBoard().getColumns().newColumn("");
    column.setWidth(30);
    column.setAlignment(Alignment.CENTER);
    column.setVerticalAlignment(VerticalAlignment.MIDDLE);
    column.setCaptionImage(engine.getRegisteredImage(whiteBoardAssessmentConfig.getIcon().getID_AppImage()));
    column.setHeaderAlignment(Alignment.CENTER);
    column.setIdentifier(whiteBoardAssessmentConfig);
}