Java 类ims.admin.vo.DementiaColourConfigVo 实例源码

项目:AvoinApotti    文件:Logic.java   
@Override
protected void onContextMenuItemClick(int menuItemID, ims.framework.Control sender) throws ims.framework.exceptions.PresentationLogicException
{
    switch (menuItemID)
    {
        case GenForm.ContextMenus.AdminNamespace.DementiaColourConfigGridMenu.ADD:
            form.getGlobalContext().Admin.setSelectedDementiaColourConfig(null);
            form.dyngrdColourConfig().setValue(null);
            engine.open(form.getForms().Admin.DementiaColourConfig);
            break;

        case GenForm.ContextMenus.AdminNamespace.DementiaColourConfigGridMenu.EDIT:
            form.getGlobalContext().Admin.setSelectedDementiaColourConfig((DementiaColourConfigVo)form.dyngrdColourConfig().getValue());
            engine.open(form.getForms().Admin.DementiaColourConfig);
            break;

        case GenForm.ContextMenus.AdminNamespace.DementiaColourConfigGridMenu.REMOVE:
            form.dyngrdColourConfig().getRows().remove(form.dyngrdColourConfig().getSelectedRow());
            updateControlsState();
            break;

    }
}
项目:AvoinApotti    文件:Logic.java   
@Override
protected void onFormOpen(Object[] args) throws PresentationLogicException
{
    populateColourCombo();
    clear();

    DementiaColourConfigVo voColourConfig = form.getGlobalContext().Admin.getSelectedDementiaColourConfig();

    if (voColourConfig==null)
        return;

    form.intFromHours().setValue(voColourConfig.getFromHoursIsNotNull()?voColourConfig.getFromHours():null);
    form.intToHours().setValue(voColourConfig.getToHoursIsNotNull()?voColourConfig.getToHours():null);
    form.cmbColour().setValue(voColourConfig.getWorklistEntryColourIsNotNull()?voColourConfig.getWorklistEntryColour():null);

}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onContextMenuItemClick(int menuItemID, ims.framework.Control sender) throws ims.framework.exceptions.PresentationLogicException
{
    switch (menuItemID)
    {
        case GenForm.ContextMenus.AdminNamespace.DementiaColourConfigGridMenu.ADD:
            form.getGlobalContext().Admin.setSelectedDementiaColourConfig(null);
            form.dyngrdColourConfig().setValue(null);
            engine.open(form.getForms().Admin.DementiaColourConfig);
            break;

        case GenForm.ContextMenus.AdminNamespace.DementiaColourConfigGridMenu.EDIT:
            form.getGlobalContext().Admin.setSelectedDementiaColourConfig((DementiaColourConfigVo)form.dyngrdColourConfig().getValue());
            engine.open(form.getForms().Admin.DementiaColourConfig);
            break;

        case GenForm.ContextMenus.AdminNamespace.DementiaColourConfigGridMenu.REMOVE:
            form.dyngrdColourConfig().getRows().remove(form.dyngrdColourConfig().getSelectedRow());
            updateControlsState();
            break;

    }
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onFormOpen(Object[] args) throws PresentationLogicException
{
    populateColourCombo();
    clear();

    DementiaColourConfigVo voColourConfig = form.getGlobalContext().Admin.getSelectedDementiaColourConfig();

    if (voColourConfig==null)
        return;

    form.intFromHours().setValue(voColourConfig.getFromHoursIsNotNull()?voColourConfig.getFromHours():null);
    form.intToHours().setValue(voColourConfig.getToHoursIsNotNull()?voColourConfig.getToHours():null);
    form.cmbColour().setValue(voColourConfig.getWorklistEntryColourIsNotNull()?voColourConfig.getWorklistEntryColour():null);

}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onContextMenuItemClick(int menuItemID, ims.framework.Control sender) throws ims.framework.exceptions.PresentationLogicException
{
    switch (menuItemID)
    {
        case GenForm.ContextMenus.AdminNamespace.DementiaColourConfigGridMenu.ADD:
            form.getGlobalContext().Admin.setSelectedDementiaColourConfig(null);
            form.dyngrdColourConfig().setValue(null);
            engine.open(form.getForms().Admin.DementiaColourConfig);
            break;

        case GenForm.ContextMenus.AdminNamespace.DementiaColourConfigGridMenu.EDIT:
            form.getGlobalContext().Admin.setSelectedDementiaColourConfig((DementiaColourConfigVo)form.dyngrdColourConfig().getValue());
            engine.open(form.getForms().Admin.DementiaColourConfig);
            break;

        case GenForm.ContextMenus.AdminNamespace.DementiaColourConfigGridMenu.REMOVE:
            form.dyngrdColourConfig().getRows().remove(form.dyngrdColourConfig().getSelectedRow());
            updateControlsState();
            break;

    }
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onFormOpen(Object[] args) throws PresentationLogicException
{
    populateColourCombo();
    clear();

    DementiaColourConfigVo voColourConfig = form.getGlobalContext().Admin.getSelectedDementiaColourConfig();

    if (voColourConfig==null)
        return;

    form.intFromHours().setValue(voColourConfig.getFromHoursIsNotNull()?voColourConfig.getFromHours():null);
    form.intToHours().setValue(voColourConfig.getToHoursIsNotNull()?voColourConfig.getToHours():null);
    form.cmbColour().setValue(voColourConfig.getWorklistEntryColourIsNotNull()?voColourConfig.getWorklistEntryColour():null);

}
项目:openmaxims-linux    文件:Logic.java   
@Override
protected void onContextMenuItemClick(int menuItemID, ims.framework.Control sender) throws ims.framework.exceptions.PresentationLogicException
{
    switch (menuItemID)
    {
        case GenForm.ContextMenus.AdminNamespace.DementiaColourConfigGridMenu.ADD:
            form.getGlobalContext().Admin.setSelectedDementiaColourConfig(null);
            form.dyngrdColourConfig().setValue(null);
            engine.open(form.getForms().Admin.DementiaColourConfig);
            break;

        case GenForm.ContextMenus.AdminNamespace.DementiaColourConfigGridMenu.EDIT:
            form.getGlobalContext().Admin.setSelectedDementiaColourConfig((DementiaColourConfigVo)form.dyngrdColourConfig().getValue());
            engine.open(form.getForms().Admin.DementiaColourConfig);
            break;

        case GenForm.ContextMenus.AdminNamespace.DementiaColourConfigGridMenu.REMOVE:
            form.dyngrdColourConfig().getRows().remove(form.dyngrdColourConfig().getSelectedRow());
            updateControlsState();
            break;

    }
}
项目:openmaxims-linux    文件:Logic.java   
@Override
protected void onFormOpen(Object[] args) throws PresentationLogicException
{
    populateColourCombo();
    clear();

    DementiaColourConfigVo voColourConfig = form.getGlobalContext().Admin.getSelectedDementiaColourConfig();

    if (voColourConfig==null)
        return;

    form.intFromHours().setValue(voColourConfig.getFromHoursIsNotNull()?voColourConfig.getFromHours():null);
    form.intToHours().setValue(voColourConfig.getToHoursIsNotNull()?voColourConfig.getToHours():null);
    form.cmbColour().setValue(voColourConfig.getWorklistEntryColourIsNotNull()?voColourConfig.getWorklistEntryColour():null);

}
项目:AvoinApotti    文件:Logic.java   
private void orderColourGridByStartHour()
{
    DementiaColourConfigVoCollection collColourConfig = new DementiaColourConfigVoCollection();
    for (int i = 0; i < form.dyngrdColourConfig().getRows().size(); i++)
    {
        collColourConfig.add((DementiaColourConfigVo)form.dyngrdColourConfig().getRows().get(i).getValue());
    }

    collColourConfig.sort(SortOrder.ASCENDING);
    populateColourConfigDynamicGrid(collColourConfig);

}
项目:AvoinApotti    文件:Logic.java   
private void addRowToColourConfigGrid(DementiaColourConfigVo dementiaColourConfig)
{
    if (dementiaColourConfig == null)
        return;

    DynamicGridRow newRow = form.dyngrdColourConfig().getRows().newRow();

    DynamicGridCell cellStart = newRow.getCells().newCell(getColumnDynGrid(COLUMN_START),DynamicCellType.STRING);
    cellStart.setValue(dementiaColourConfig.getFromHours().toString());
    cellStart.getColumn().setAlignment(Alignment.LEFT);

    DynamicGridCell cellEnd = newRow.getCells().newCell(getColumnDynGrid(COLUMN_END),DynamicCellType.STRING);
    cellEnd.setValue(dementiaColourConfig.getToHours().toString());
    cellEnd.getColumn().setAlignment(Alignment.LEFT);

    Color[] ca = Color.getAllColors();

    DynamicGridCell cellColour = newRow.getCells().newCell(getColumnDynGrid(COLUMN_COLOUR),DynamicCellType.ENUMERATION);

    for (int k = 0; k < ca.length; k++)
        cellColour.getItems().newItem(ca[k], ca[k].getName(), ca[k].getImage());

    cellColour.setValue(dementiaColourConfig.getWorklistEntryColour());
    cellStart.getColumn().setAlignment(Alignment.LEFT);

    newRow.setValue(dementiaColourConfig);
}
项目:AvoinApotti    文件:Logic.java   
@Override
protected void onBtnOkClick() throws ims.framework.exceptions.PresentationLogicException
{
    DementiaColourConfigVo voColourConfig = populateDataFromScreen(form.getGlobalContext().Admin.getSelectedDementiaColourConfig());

    String[] errors = voColourConfig.validate(getUIErrors());
    if (errors != null && errors.length > 0)
    {
        engine.showErrors(errors);
        return ;
    }

    form.getGlobalContext().Admin.setSelectedDementiaColourConfig(voColourConfig);
    engine.close(DialogResult.OK);
}
项目:openMAXIMS    文件:Logic.java   
private void orderColourGridByStartHour()
{
    DementiaColourConfigVoCollection collColourConfig = new DementiaColourConfigVoCollection();
    for (int i = 0; i < form.dyngrdColourConfig().getRows().size(); i++)
    {
        collColourConfig.add((DementiaColourConfigVo)form.dyngrdColourConfig().getRows().get(i).getValue());
    }

    collColourConfig.sort(SortOrder.ASCENDING);
    populateColourConfigDynamicGrid(collColourConfig);

}
项目:openMAXIMS    文件:Logic.java   
private void addRowToColourConfigGrid(DementiaColourConfigVo dementiaColourConfig)
{
    if (dementiaColourConfig == null)
        return;

    DynamicGridRow newRow = form.dyngrdColourConfig().getRows().newRow();

    DynamicGridCell cellStart = newRow.getCells().newCell(getColumnDynGrid(COLUMN_START),DynamicCellType.STRING);
    cellStart.setValue(dementiaColourConfig.getFromHours().toString());
    cellStart.getColumn().setAlignment(Alignment.LEFT);

    DynamicGridCell cellEnd = newRow.getCells().newCell(getColumnDynGrid(COLUMN_END),DynamicCellType.STRING);
    cellEnd.setValue(dementiaColourConfig.getToHours().toString());
    cellEnd.getColumn().setAlignment(Alignment.LEFT);

    Color[] ca = Color.getAllColors();

    DynamicGridCell cellColour = newRow.getCells().newCell(getColumnDynGrid(COLUMN_COLOUR),DynamicCellType.ENUMERATION);

    for (int k = 0; k < ca.length; k++)
        cellColour.getItems().newItem(ca[k], ca[k].getName(), ca[k].getImage());

    cellColour.setValue(dementiaColourConfig.getWorklistEntryColour());
    cellStart.getColumn().setAlignment(Alignment.LEFT);

    newRow.setValue(dementiaColourConfig);
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onBtnOkClick() throws ims.framework.exceptions.PresentationLogicException
{
    DementiaColourConfigVo voColourConfig = populateDataFromScreen(form.getGlobalContext().Admin.getSelectedDementiaColourConfig());

    String[] errors = voColourConfig.validate(getUIErrors());
    if (errors != null && errors.length > 0)
    {
        engine.showErrors(errors);
        return ;
    }

    form.getGlobalContext().Admin.setSelectedDementiaColourConfig(voColourConfig);
    engine.close(DialogResult.OK);
}
项目:openMAXIMS    文件:Logic.java   
private void orderColourGridByStartHour()
{
    DementiaColourConfigVoCollection collColourConfig = new DementiaColourConfigVoCollection();
    for (int i = 0; i < form.dyngrdColourConfig().getRows().size(); i++)
    {
        collColourConfig.add((DementiaColourConfigVo)form.dyngrdColourConfig().getRows().get(i).getValue());
    }

    collColourConfig.sort(SortOrder.ASCENDING);
    populateColourConfigDynamicGrid(collColourConfig);

}
项目:openMAXIMS    文件:Logic.java   
private void addRowToColourConfigGrid(DementiaColourConfigVo dementiaColourConfig)
{
    if (dementiaColourConfig == null)
        return;

    DynamicGridRow newRow = form.dyngrdColourConfig().getRows().newRow();

    DynamicGridCell cellStart = newRow.getCells().newCell(getColumnDynGrid(COLUMN_START),DynamicCellType.STRING);
    cellStart.setValue(dementiaColourConfig.getFromHours().toString());
    cellStart.getColumn().setAlignment(Alignment.LEFT);

    DynamicGridCell cellEnd = newRow.getCells().newCell(getColumnDynGrid(COLUMN_END),DynamicCellType.STRING);
    cellEnd.setValue(dementiaColourConfig.getToHours().toString());
    cellEnd.getColumn().setAlignment(Alignment.LEFT);

    Color[] ca = Color.getAllColors();

    DynamicGridCell cellColour = newRow.getCells().newCell(getColumnDynGrid(COLUMN_COLOUR),DynamicCellType.ENUMERATION);

    for (int k = 0; k < ca.length; k++)
        cellColour.getItems().newItem(ca[k], ca[k].getName(), ca[k].getImage());

    cellColour.setValue(dementiaColourConfig.getWorklistEntryColour());
    cellStart.getColumn().setAlignment(Alignment.LEFT);

    newRow.setValue(dementiaColourConfig);
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onBtnOkClick() throws ims.framework.exceptions.PresentationLogicException
{
    DementiaColourConfigVo voColourConfig = populateDataFromScreen(form.getGlobalContext().Admin.getSelectedDementiaColourConfig());

    String[] errors = voColourConfig.validate(getUIErrors());
    if (errors != null && errors.length > 0)
    {
        engine.showErrors(errors);
        return ;
    }

    form.getGlobalContext().Admin.setSelectedDementiaColourConfig(voColourConfig);
    engine.close(DialogResult.OK);
}
项目:openmaxims-linux    文件:Logic.java   
private void orderColourGridByStartHour()
{
    DementiaColourConfigVoCollection collColourConfig = new DementiaColourConfigVoCollection();
    for (int i = 0; i < form.dyngrdColourConfig().getRows().size(); i++)
    {
        collColourConfig.add((DementiaColourConfigVo)form.dyngrdColourConfig().getRows().get(i).getValue());
    }

    collColourConfig.sort(SortOrder.ASCENDING);
    populateColourConfigDynamicGrid(collColourConfig);

}
项目:openmaxims-linux    文件:Logic.java   
private void addRowToColourConfigGrid(DementiaColourConfigVo dementiaColourConfig)
{
    if (dementiaColourConfig == null)
        return;

    DynamicGridRow newRow = form.dyngrdColourConfig().getRows().newRow();

    DynamicGridCell cellStart = newRow.getCells().newCell(getColumnDynGrid(COLUMN_START),DynamicCellType.STRING);
    cellStart.setValue(dementiaColourConfig.getFromHours().toString());
    cellStart.getColumn().setAlignment(Alignment.LEFT);

    DynamicGridCell cellEnd = newRow.getCells().newCell(getColumnDynGrid(COLUMN_END),DynamicCellType.STRING);
    cellEnd.setValue(dementiaColourConfig.getToHours().toString());
    cellEnd.getColumn().setAlignment(Alignment.LEFT);

    Color[] ca = Color.getAllColors();

    DynamicGridCell cellColour = newRow.getCells().newCell(getColumnDynGrid(COLUMN_COLOUR),DynamicCellType.ENUMERATION);

    for (int k = 0; k < ca.length; k++)
        cellColour.getItems().newItem(ca[k], ca[k].getName(), ca[k].getImage());

    cellColour.setValue(dementiaColourConfig.getWorklistEntryColour());
    cellStart.getColumn().setAlignment(Alignment.LEFT);

    newRow.setValue(dementiaColourConfig);
}
项目:openmaxims-linux    文件:Logic.java   
@Override
protected void onBtnOkClick() throws ims.framework.exceptions.PresentationLogicException
{
    DementiaColourConfigVo voColourConfig = populateDataFromScreen(form.getGlobalContext().Admin.getSelectedDementiaColourConfig());

    String[] errors = voColourConfig.validate(getUIErrors());
    if (errors != null && errors.length > 0)
    {
        engine.showErrors(errors);
        return ;
    }

    form.getGlobalContext().Admin.setSelectedDementiaColourConfig(voColourConfig);
    engine.close(DialogResult.OK);
}
项目:AvoinApotti    文件:Logic.java   
private void updateRowToColourConfigGrid(DementiaColourConfigVo dementiaColourConfig)
{
    DynamicGridRow row = form.dyngrdColourConfig().getSelectedRow();

    DynamicGridCell colStart = row.getCells().get(getColumnDynGrid(COLUMN_START));
    colStart.setValue(dementiaColourConfig.getFromHours().toString());

    DynamicGridCell colEnd = row.getCells().get(getColumnDynGrid(COLUMN_END));
    colEnd.setValue(dementiaColourConfig.getToHours().toString());

    DynamicGridCell colColours = row.getCells().get(getColumnDynGrid(COLUMN_COLOUR));
    colColours.setValue(dementiaColourConfig.getWorklistEntryColour());

    row.setValue(dementiaColourConfig);

}
项目:AvoinApotti    文件:Logic.java   
@Override
protected void onDyngrdColourConfigRowSelectionChanged(DynamicGridRow row) throws PresentationLogicException
{
    form.getGlobalContext().Admin.setSelectedDementiaColourConfig((DementiaColourConfigVo) form.dyngrdColourConfig().getValue());
    updateControlsState();
}
项目:openMAXIMS    文件:Logic.java   
private void updateRowToColourConfigGrid(DementiaColourConfigVo dementiaColourConfig)
{
    DynamicGridRow row = form.dyngrdColourConfig().getSelectedRow();

    DynamicGridCell colStart = row.getCells().get(getColumnDynGrid(COLUMN_START));
    colStart.setValue(dementiaColourConfig.getFromHours().toString());

    DynamicGridCell colEnd = row.getCells().get(getColumnDynGrid(COLUMN_END));
    colEnd.setValue(dementiaColourConfig.getToHours().toString());

    DynamicGridCell colColours = row.getCells().get(getColumnDynGrid(COLUMN_COLOUR));
    colColours.setValue(dementiaColourConfig.getWorklistEntryColour());

    row.setValue(dementiaColourConfig);

}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onDyngrdColourConfigRowSelectionChanged(DynamicGridRow row) throws PresentationLogicException
{
    form.getGlobalContext().Admin.setSelectedDementiaColourConfig((DementiaColourConfigVo) form.dyngrdColourConfig().getValue());
    updateControlsState();
}
项目:openMAXIMS    文件:Logic.java   
private void updateRowToColourConfigGrid(DementiaColourConfigVo dementiaColourConfig)
{
    DynamicGridRow row = form.dyngrdColourConfig().getSelectedRow();

    DynamicGridCell colStart = row.getCells().get(getColumnDynGrid(COLUMN_START));
    colStart.setValue(dementiaColourConfig.getFromHours().toString());

    DynamicGridCell colEnd = row.getCells().get(getColumnDynGrid(COLUMN_END));
    colEnd.setValue(dementiaColourConfig.getToHours().toString());

    DynamicGridCell colColours = row.getCells().get(getColumnDynGrid(COLUMN_COLOUR));
    colColours.setValue(dementiaColourConfig.getWorklistEntryColour());

    row.setValue(dementiaColourConfig);

}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onDyngrdColourConfigRowSelectionChanged(DynamicGridRow row) throws PresentationLogicException
{
    form.getGlobalContext().Admin.setSelectedDementiaColourConfig((DementiaColourConfigVo) form.dyngrdColourConfig().getValue());
    updateControlsState();
}
项目:openmaxims-linux    文件:Logic.java   
private void updateRowToColourConfigGrid(DementiaColourConfigVo dementiaColourConfig)
{
    DynamicGridRow row = form.dyngrdColourConfig().getSelectedRow();

    DynamicGridCell colStart = row.getCells().get(getColumnDynGrid(COLUMN_START));
    colStart.setValue(dementiaColourConfig.getFromHours().toString());

    DynamicGridCell colEnd = row.getCells().get(getColumnDynGrid(COLUMN_END));
    colEnd.setValue(dementiaColourConfig.getToHours().toString());

    DynamicGridCell colColours = row.getCells().get(getColumnDynGrid(COLUMN_COLOUR));
    colColours.setValue(dementiaColourConfig.getWorklistEntryColour());

    row.setValue(dementiaColourConfig);

}
项目:openmaxims-linux    文件:Logic.java   
@Override
protected void onDyngrdColourConfigRowSelectionChanged(DynamicGridRow row) throws PresentationLogicException
{
    form.getGlobalContext().Admin.setSelectedDementiaColourConfig((DementiaColourConfigVo) form.dyngrdColourConfig().getValue());
    updateControlsState();
}