Java 类ims.clinical.vo.LocalAnaestheticAdministeredVo 实例源码

项目:AvoinApotti    文件:Logic.java   
private void addAnaesthetisRow(LocalAnaestheticAdministeredVo localAnaestheticAdministeredVo)
{
    DynamicGridRow newRow = form.lyr1().tabDetails().ctn1().dyngrdAnaesthetis().getRows().newRow();
    newRow.setValue(localAnaestheticAdministeredVo);

    DynamicGridColumn column = null;
    DynamicGridCell cell = null;

    column = form.lyr1().tabDetails().ctn1().dyngrdAnaesthetis().getColumns().getByIdentifier(COL_DRUG);
    cell = newRow.getCells().newCell(column, DynamicCellType.ENUMERATION);

    populateLocalAnaesthetic(ims.clinical.vo.lookups.LookupHelper.getLocalAnaesthetic(domain.getLookupService()), cell);
    cell.setValue(localAnaestheticAdministeredVo != null ? localAnaestheticAdministeredVo.getLocalAnaesthetic() : null);
    cell.setAutoPostBack(true);
    updateCell(cell);

    column = form.lyr1().tabDetails().ctn1().dyngrdAnaesthetis().getColumns().getByIdentifier(COL_MLS);
    cell = newRow.getCells().newCell(column, DynamicCellType.DECIMAL);
    cell.setValue(localAnaestheticAdministeredVo != null ? localAnaestheticAdministeredVo.getMls() : null);
    form.lyr1().tabDetails().ctn1().dyngrdAnaesthetis().setSelectedRow(null);
}
项目:AvoinApotti    文件:Logic.java   
private void newRowToAnaesthetic(LocalAnaestheticAdministeredVo anaesthetic)
{
    DynamicGridColumnCollection columns = form.lyrMain().tabDetails().dyngrdAnaesthetic().getColumns();
    DynamicGridRow nRow = form.lyrMain().tabDetails().dyngrdAnaesthetic().getRows().newRow();
    DynamicGridCell cell = nRow.getCells().newCell(columns.getByIdentifier(COLUMN_ANAESTHETIC), DynamicCellType.ENUMERATION);
    nRow.setValue(anaesthetic);
    if (anaesthetic != null && anaesthetic.getLocalAnaestheticIsNotNull())
    {
        DynamicGridCellItem item = cell.getItems().newItem(anaesthetic.getLocalAnaesthetic().getText());
        item.setValue(anaesthetic.getLocalAnaesthetic());
        cell.setValue(anaesthetic.getLocalAnaesthetic());
    }
    cell.setAutoPostBack(true);
    cell = nRow.getCells().newCell(columns.getByIdentifier(COLUMN_BATCHNO), DynamicCellType.STRING);
    cell.setValue(anaesthetic == null ? null : anaesthetic.getBatchNo());
    cell.setStringMaxLength(20);
    cell = nRow.getCells().newCell(columns.getByIdentifier(COLUMN_EXPIRYDATE), DynamicCellType.DATE);
    cell.setValue(anaesthetic == null ? null : anaesthetic.getExpiryDate());
}
项目:openMAXIMS    文件:Logic.java   
private void addAnaesthetisRow(LocalAnaestheticAdministeredVo localAnaestheticAdministeredVo)
{
    DynamicGridRow newRow = form.lyr1().tabDetails().ctn1().dyngrdAnaesthetis().getRows().newRow();
    newRow.setValue(localAnaestheticAdministeredVo);

    DynamicGridColumn column = null;
    DynamicGridCell cell = null;

    column = form.lyr1().tabDetails().ctn1().dyngrdAnaesthetis().getColumns().getByIdentifier(COL_DRUG);
    cell = newRow.getCells().newCell(column, DynamicCellType.ENUMERATION);

    populateLocalAnaesthetic(ims.clinical.vo.lookups.LookupHelper.getLocalAnaesthetic(domain.getLookupService()), cell);
    cell.setValue(localAnaestheticAdministeredVo != null ? localAnaestheticAdministeredVo.getLocalAnaesthetic() : null);
    cell.setAutoPostBack(true);
    updateCell(cell);

    column = form.lyr1().tabDetails().ctn1().dyngrdAnaesthetis().getColumns().getByIdentifier(COL_MLS);
    cell = newRow.getCells().newCell(column, DynamicCellType.DECIMAL);
    cell.setValue(localAnaestheticAdministeredVo != null ? localAnaestheticAdministeredVo.getMls() : null);
    form.lyr1().tabDetails().ctn1().dyngrdAnaesthetis().setSelectedRow(null);
}
项目:openMAXIMS    文件:Logic.java   
private void newRowToAnaesthetic(LocalAnaestheticAdministeredVo anaesthetic)
{
    DynamicGridColumnCollection columns = form.lyrMain().tabDetails().dyngrdAnaesthetic().getColumns();
    DynamicGridRow nRow = form.lyrMain().tabDetails().dyngrdAnaesthetic().getRows().newRow();
    DynamicGridCell cell = nRow.getCells().newCell(columns.getByIdentifier(COLUMN_ANAESTHETIC), DynamicCellType.ENUMERATION);
    nRow.setValue(anaesthetic);
    if (anaesthetic != null && anaesthetic.getLocalAnaestheticIsNotNull())
    {
        DynamicGridCellItem item = cell.getItems().newItem(anaesthetic.getLocalAnaesthetic().getText());
        item.setValue(anaesthetic.getLocalAnaesthetic());
        cell.setValue(anaesthetic.getLocalAnaesthetic());
    }
    cell.setAutoPostBack(true);
    cell = nRow.getCells().newCell(columns.getByIdentifier(COLUMN_BATCHNO), DynamicCellType.STRING);
    cell.setValue(anaesthetic == null ? null : anaesthetic.getBatchNo());
    cell.setStringMaxLength(20);
    cell = nRow.getCells().newCell(columns.getByIdentifier(COLUMN_EXPIRYDATE), DynamicCellType.DATE);
    cell.setValue(anaesthetic == null ? null : anaesthetic.getExpiryDate());
}
项目:openMAXIMS    文件:Logic.java   
private void addAnaesthetisRow(LocalAnaestheticAdministeredVo localAnaestheticAdministeredVo)
{
    DynamicGridRow newRow = form.lyr1().tabDetails().ctn1().dyngrdAnaesthetis().getRows().newRow();
    newRow.setValue(localAnaestheticAdministeredVo);

    DynamicGridColumn column = null;
    DynamicGridCell cell = null;

    column = form.lyr1().tabDetails().ctn1().dyngrdAnaesthetis().getColumns().getByIdentifier(COL_DRUG);
    cell = newRow.getCells().newCell(column, DynamicCellType.ENUMERATION);

    populateLocalAnaesthetic(ims.clinical.vo.lookups.LookupHelper.getLocalAnaesthetic(domain.getLookupService()), cell);
    cell.setValue(localAnaestheticAdministeredVo != null ? localAnaestheticAdministeredVo.getLocalAnaesthetic() : null);
    cell.setAutoPostBack(true);
    updateCell(cell);

    column = form.lyr1().tabDetails().ctn1().dyngrdAnaesthetis().getColumns().getByIdentifier(COL_MLS);
    cell = newRow.getCells().newCell(column, DynamicCellType.DECIMAL);
    cell.setValue(localAnaestheticAdministeredVo != null ? localAnaestheticAdministeredVo.getMls() : null);
    form.lyr1().tabDetails().ctn1().dyngrdAnaesthetis().setSelectedRow(null);
}
项目:openMAXIMS    文件:Logic.java   
private void newRowToAnaesthetic(LocalAnaestheticAdministeredVo anaesthetic)
{
    DynamicGridColumnCollection columns = form.lyrMain().tabDetails().dyngrdAnaesthetic().getColumns();
    DynamicGridRow nRow = form.lyrMain().tabDetails().dyngrdAnaesthetic().getRows().newRow();
    DynamicGridCell cell = nRow.getCells().newCell(columns.getByIdentifier(COLUMN_ANAESTHETIC), DynamicCellType.ENUMERATION);
    nRow.setValue(anaesthetic);
    if (anaesthetic != null && anaesthetic.getLocalAnaestheticIsNotNull())
    {
        DynamicGridCellItem item = cell.getItems().newItem(anaesthetic.getLocalAnaesthetic().getText());
        item.setValue(anaesthetic.getLocalAnaesthetic());
        cell.setValue(anaesthetic.getLocalAnaesthetic());
    }
    cell.setAutoPostBack(true);
    cell = nRow.getCells().newCell(columns.getByIdentifier(COLUMN_BATCHNO), DynamicCellType.STRING);
    cell.setValue(anaesthetic == null ? null : anaesthetic.getBatchNo());
    cell.setStringMaxLength(20);
    cell = nRow.getCells().newCell(columns.getByIdentifier(COLUMN_EXPIRYDATE), DynamicCellType.DATE);
    cell.setValue(anaesthetic == null ? null : anaesthetic.getExpiryDate());
}
项目:openmaxims-linux    文件:Logic.java   
private void addAnaesthetisRow(LocalAnaestheticAdministeredVo localAnaestheticAdministeredVo)
{
    DynamicGridRow newRow = form.lyr1().tabDetails().ctn1().dyngrdAnaesthetis().getRows().newRow();
    newRow.setValue(localAnaestheticAdministeredVo);

    DynamicGridColumn column = null;
    DynamicGridCell cell = null;

    column = form.lyr1().tabDetails().ctn1().dyngrdAnaesthetis().getColumns().getByIdentifier(COL_DRUG);
    cell = newRow.getCells().newCell(column, DynamicCellType.ENUMERATION);

    populateLocalAnaesthetic(ims.clinical.vo.lookups.LookupHelper.getLocalAnaesthetic(domain.getLookupService()), cell);
    cell.setValue(localAnaestheticAdministeredVo != null ? localAnaestheticAdministeredVo.getLocalAnaesthetic() : null);
    cell.setAutoPostBack(true);
    updateCell(cell);

    column = form.lyr1().tabDetails().ctn1().dyngrdAnaesthetis().getColumns().getByIdentifier(COL_MLS);
    cell = newRow.getCells().newCell(column, DynamicCellType.DECIMAL);
    cell.setValue(localAnaestheticAdministeredVo != null ? localAnaestheticAdministeredVo.getMls() : null);
    form.lyr1().tabDetails().ctn1().dyngrdAnaesthetis().setSelectedRow(null);
}
项目:openmaxims-linux    文件:Logic.java   
private void newRowToAnaesthetic(LocalAnaestheticAdministeredVo anaesthetic)
{
    DynamicGridColumnCollection columns = form.lyrMain().tabDetails().dyngrdAnaesthetic().getColumns();
    DynamicGridRow nRow = form.lyrMain().tabDetails().dyngrdAnaesthetic().getRows().newRow();
    DynamicGridCell cell = nRow.getCells().newCell(columns.getByIdentifier(COLUMN_ANAESTHETIC), DynamicCellType.ENUMERATION);
    nRow.setValue(anaesthetic);
    if (anaesthetic != null && anaesthetic.getLocalAnaestheticIsNotNull())
    {
        DynamicGridCellItem item = cell.getItems().newItem(anaesthetic.getLocalAnaesthetic().getText());
        item.setValue(anaesthetic.getLocalAnaesthetic());
        cell.setValue(anaesthetic.getLocalAnaesthetic());
    }
    cell.setAutoPostBack(true);
    cell = nRow.getCells().newCell(columns.getByIdentifier(COLUMN_BATCHNO), DynamicCellType.STRING);
    cell.setValue(anaesthetic == null ? null : anaesthetic.getBatchNo());
    cell.setStringMaxLength(20);
    cell = nRow.getCells().newCell(columns.getByIdentifier(COLUMN_EXPIRYDATE), DynamicCellType.DATE);
    cell.setValue(anaesthetic == null ? null : anaesthetic.getExpiryDate());
}
项目:AvoinApotti    文件:Logic.java   
private void populateCataractIntraOperativeDetails(CataractIntraOperativeDetailVo details)
{
    clearCataractIntraOperativeDetails();

    if (details == null)
        return;
    if (details.getMedicationsIsNotNull())
    {
        PatientMedicationLiteVoCollection medications = details.getMedications();
        for (int i = 0; i < medications.size(); i++)
        {
            PatientMedicationLiteVo pMedi = medications.get(i);
            if (pMedi != null)
            {
                addRowToMedication(pMedi);
            }
        }
    }
    if (details.getSkinPreperationUsedIsNotNull())
    {
        SkinPreperationVoCollection skinps = details.getSkinPreperationUsed();
        for (int i = 0; i < skinps.size(); i++)
        {
            SkinPreperationVo skin = skinps.get(i);
            if (skin != null)
            {
                newRowToSkinPreparation(skin);

            }
        }
    }
    if (details.getLocalAnaestheticUsedIsNotNull())
    {
        LocalAnaestheticAdministeredVoCollection anests = details.getLocalAnaestheticUsed();
        for (int i = 0; i < anests.size(); i++)
        {
            LocalAnaestheticAdministeredVo anest = anests.get(i);
            if (anest != null)
            {
                newRowToAnaesthetic(anest);
            }
        }
    }
    // GridDressings
    if (details.getDressingsIsNotNull())
    {
        CataractDressingsCollection dresings = details.getDressings();
        for (int i = 0; i < dresings.size(); i++)
        {
            form.lyrMain().tabDetails().grdDressings().getRowByValue(dresings.get(i)).setColSelect(true);
        }
    }
    // End GridDressings
    form.lyrMain().tabDetails().intSwapCount().setValue(details.getSwabNeedleCount());
    if (details.getWasSwabNeedleCountCorrectIsNotNull())
    {
        form.lyrMain().tabDetails().grpYesNo().setValue(details.getWasSwabNeedleCountCorrect().equals(YesNo.YES) ? grpYesNoEnumeration.rdoYes : grpYesNoEnumeration.rdoNo);
    }
    rebindAllAnaesthetic();
    rebindAllMedications();
    rebindAllSkinPreparation();
}
项目:openMAXIMS    文件:Logic.java   
private void populateCataractIntraOperativeDetails(CataractIntraOperativeDetailVo details)
{
    clearCataractIntraOperativeDetails();

    if (details == null)
        return;
    if (details.getMedicationsIsNotNull())
    {
        PatientMedicationLiteVoCollection medications = details.getMedications();
        for (int i = 0; i < medications.size(); i++)
        {
            PatientMedicationLiteVo pMedi = medications.get(i);
            if (pMedi != null)
            {
                addRowToMedication(pMedi);
            }
        }
    }
    if (details.getSkinPreperationUsedIsNotNull())
    {
        SkinPreperationVoCollection skinps = details.getSkinPreperationUsed();
        for (int i = 0; i < skinps.size(); i++)
        {
            SkinPreperationVo skin = skinps.get(i);
            if (skin != null)
            {
                newRowToSkinPreparation(skin);

            }
        }
    }
    if (details.getLocalAnaestheticUsedIsNotNull())
    {
        LocalAnaestheticAdministeredVoCollection anests = details.getLocalAnaestheticUsed();
        for (int i = 0; i < anests.size(); i++)
        {
            LocalAnaestheticAdministeredVo anest = anests.get(i);
            if (anest != null)
            {
                newRowToAnaesthetic(anest);
            }
        }
    }
    // GridDressings
    if (details.getDressingsIsNotNull())
    {
        CataractDressingsCollection dresings = details.getDressings();
        for (int i = 0; i < dresings.size(); i++)
        {
            form.lyrMain().tabDetails().grdDressings().getRowByValue(dresings.get(i)).setColSelect(true);
        }
    }
    // End GridDressings
    form.lyrMain().tabDetails().intSwapCount().setValue(details.getSwabNeedleCount());
    if (details.getWasSwabNeedleCountCorrectIsNotNull())
    {
        form.lyrMain().tabDetails().grpYesNo().setValue(details.getWasSwabNeedleCountCorrect().equals(YesNo.YES) ? grpYesNoEnumeration.rdoYes : grpYesNoEnumeration.rdoNo);
    }
    rebindAllAnaesthetic();
    rebindAllMedications();
    rebindAllSkinPreparation();
}
项目:openMAXIMS    文件:Logic.java   
private void populateCataractIntraOperativeDetails(CataractIntraOperativeDetailVo details)
{
    clearCataractIntraOperativeDetails();

    if (details == null)
        return;
    if (details.getMedicationsIsNotNull())
    {
        PatientMedicationLiteVoCollection medications = details.getMedications();
        for (int i = 0; i < medications.size(); i++)
        {
            PatientMedicationLiteVo pMedi = medications.get(i);
            if (pMedi != null)
            {
                addRowToMedication(pMedi);
            }
        }
    }
    if (details.getSkinPreperationUsedIsNotNull())
    {
        SkinPreperationVoCollection skinps = details.getSkinPreperationUsed();
        for (int i = 0; i < skinps.size(); i++)
        {
            SkinPreperationVo skin = skinps.get(i);
            if (skin != null)
            {
                newRowToSkinPreparation(skin);

            }
        }
    }
    if (details.getLocalAnaestheticUsedIsNotNull())
    {
        LocalAnaestheticAdministeredVoCollection anests = details.getLocalAnaestheticUsed();
        for (int i = 0; i < anests.size(); i++)
        {
            LocalAnaestheticAdministeredVo anest = anests.get(i);
            if (anest != null)
            {
                newRowToAnaesthetic(anest);
            }
        }
    }
    // GridDressings
    if (details.getDressingsIsNotNull())
    {
        CataractDressingsCollection dresings = details.getDressings();
        for (int i = 0; i < dresings.size(); i++)
        {
            form.lyrMain().tabDetails().grdDressings().getRowByValue(dresings.get(i)).setColSelect(true);
        }
    }
    // End GridDressings
    form.lyrMain().tabDetails().intSwapCount().setValue(details.getSwabNeedleCount());
    if (details.getWasSwabNeedleCountCorrectIsNotNull())
    {
        form.lyrMain().tabDetails().grpYesNo().setValue(details.getWasSwabNeedleCountCorrect().equals(YesNo.YES) ? grpYesNoEnumeration.rdoYes : grpYesNoEnumeration.rdoNo);
    }
    rebindAllAnaesthetic();
    rebindAllMedications();
    rebindAllSkinPreparation();
}
项目:openmaxims-linux    文件:Logic.java   
private void populateCataractIntraOperativeDetails(CataractIntraOperativeDetailVo details)
{
    clearCataractIntraOperativeDetails();

    if (details == null)
        return;
    if (details.getMedicationsIsNotNull())
    {
        PatientMedicationLiteVoCollection medications = details.getMedications();
        for (int i = 0; i < medications.size(); i++)
        {
            PatientMedicationLiteVo pMedi = medications.get(i);
            if (pMedi != null)
            {
                addRowToMedication(pMedi);
            }
        }
    }
    if (details.getSkinPreperationUsedIsNotNull())
    {
        SkinPreperationVoCollection skinps = details.getSkinPreperationUsed();
        for (int i = 0; i < skinps.size(); i++)
        {
            SkinPreperationVo skin = skinps.get(i);
            if (skin != null)
            {
                newRowToSkinPreparation(skin);

            }
        }
    }
    if (details.getLocalAnaestheticUsedIsNotNull())
    {
        LocalAnaestheticAdministeredVoCollection anests = details.getLocalAnaestheticUsed();
        for (int i = 0; i < anests.size(); i++)
        {
            LocalAnaestheticAdministeredVo anest = anests.get(i);
            if (anest != null)
            {
                newRowToAnaesthetic(anest);
            }
        }
    }
    // GridDressings
    if (details.getDressingsIsNotNull())
    {
        CataractDressingsCollection dresings = details.getDressings();
        for (int i = 0; i < dresings.size(); i++)
        {
            form.lyrMain().tabDetails().grdDressings().getRowByValue(dresings.get(i)).setColSelect(true);
        }
    }
    // End GridDressings
    form.lyrMain().tabDetails().intSwapCount().setValue(details.getSwabNeedleCount());
    if (details.getWasSwabNeedleCountCorrectIsNotNull())
    {
        form.lyrMain().tabDetails().grpYesNo().setValue(details.getWasSwabNeedleCountCorrect().equals(YesNo.YES) ? grpYesNoEnumeration.rdoYes : grpYesNoEnumeration.rdoNo);
    }
    rebindAllAnaesthetic();
    rebindAllMedications();
    rebindAllSkinPreparation();
}