Java 类ims.nursing.vo.PatientInvasiveDeviceVo 实例源码

项目:AvoinApotti    文件:Logic.java   
private void updateRowRecord(PatientInvasiveDeviceVo record) 
{
    if(record == null)
        return;

    for(int j = 0; j < form.dyngrdDisplay().getRows().size(); j++)
    {
        PatientInvasiveDeviceShortVo existingRecord = (PatientInvasiveDeviceShortVo)
                    (form.dyngrdDisplay().getRows().get(j).getValue());
        if(existingRecord != null && existingRecord.equals(record))
        {
            updateRowRecord(form.dyngrdDisplay().getRows().get(j), record);
            break;
        }
    }   
}
项目:AvoinApotti    文件:Logic.java   
private void updateRowRecord(DynamicGridRow dynRow, PatientInvasiveDeviceVo record) 
{
    if(dynRow == null || record == null)
        return;

    InvasiveDeviceConfigShortVo recordDevice = record.getInvasiveDeviceIsNotNull() ? record.getInvasiveDevice() : null;
    DynamicGridCell deviceCell = dynRow.getCells().newCell(getColumn(COLDEVICE), DynamicCellType.STRING);
    deviceCell.setValue(recordDevice.getInvasiveDevice());

    DynamicGridCell siteCell = dynRow.getCells().newCell(getColumn(COLSITE), DynamicCellType.STRING);
    siteCell.setValue(record.getSiteIsNotNull() ? record.getSite() : null);

    DynamicGridCell insDateCell = dynRow.getCells().newCell(getColumn(COLINSERTEDDATE), DynamicCellType.STRING);
    insDateCell.setValue(record.getInsertedDateTime().toString());

    HcpLiteVo recordHCP = record.getInsertedHCPIsNotNull() ? record.getInsertedHCP() : null;
    DynamicGridCell insHcpCell = dynRow.getCells().newCell(getColumn(COLINSERTEDBY), DynamicCellType.STRING);
    insHcpCell.setValue(recordHCP.getMos().getName().toString());

    dynRow.setValue(record);
}
项目:AvoinApotti    文件:Logic.java   
private PatientInvasiveDeviceVo getAndDisplayRecordDevice(PatientInvasiveDeviceRefVo refRecord) 
{   
    if(refRecord == null)
        return null;

    clearTabVipInstanceControls();
    clearTabDeviceInstanceControls();

    form.ctnDetail().lyrDetails().showtabDevice();
    form.ctnDetail().lyrDetails().tabVIP().setHeaderVisible(false);
    form.ctnDetail().lyrDetails().tabDevice().setHeaderVisible(true);

    PatientInvasiveDeviceVo record = domain.getPatientInvasiveDevice(refRecord);
    form.getLocalContext().setEditedDeviceRecord(record);

    populateScreenFromData(record); 

    return record;  
}
项目:openMAXIMS    文件:Logic.java   
private void updateRowRecord(PatientInvasiveDeviceVo record) 
{
    if(record == null)
        return;

    for(int j = 0; j < form.dyngrdDisplay().getRows().size(); j++)
    {
        PatientInvasiveDeviceShortVo existingRecord = (PatientInvasiveDeviceShortVo)
                    (form.dyngrdDisplay().getRows().get(j).getValue());
        if(existingRecord != null && existingRecord.equals(record))
        {
            updateRowRecord(form.dyngrdDisplay().getRows().get(j), record);
            break;
        }
    }   
}
项目:openMAXIMS    文件:Logic.java   
private void updateRowRecord(DynamicGridRow dynRow, PatientInvasiveDeviceVo record) 
{
    if(dynRow == null || record == null)
        return;

    InvasiveDeviceConfigShortVo recordDevice = record.getInvasiveDeviceIsNotNull() ? record.getInvasiveDevice() : null;
    DynamicGridCell deviceCell = dynRow.getCells().newCell(getColumn(COLDEVICE), DynamicCellType.STRING);
    deviceCell.setValue(recordDevice.getInvasiveDevice());

    DynamicGridCell siteCell = dynRow.getCells().newCell(getColumn(COLSITE), DynamicCellType.STRING);
    siteCell.setValue(record.getSiteIsNotNull() ? record.getSite() : null);

    DynamicGridCell insDateCell = dynRow.getCells().newCell(getColumn(COLINSERTEDDATE), DynamicCellType.STRING);
    insDateCell.setValue(record.getInsertedDateTime().toString());

    HcpLiteVo recordHCP = record.getInsertedHCPIsNotNull() ? record.getInsertedHCP() : null;
    DynamicGridCell insHcpCell = dynRow.getCells().newCell(getColumn(COLINSERTEDBY), DynamicCellType.STRING);
    insHcpCell.setValue(recordHCP.getMos().getName().toString());

    dynRow.setValue(record);
}
项目:openMAXIMS    文件:Logic.java   
private PatientInvasiveDeviceVo getAndDisplayRecordDevice(PatientInvasiveDeviceRefVo refRecord) 
{   
    if(refRecord == null)
        return null;

    clearTabVipInstanceControls();
    clearTabDeviceInstanceControls();

    form.ctnDetail().lyrDetails().showtabDevice();
    form.ctnDetail().lyrDetails().tabVIP().setHeaderVisible(false);
    form.ctnDetail().lyrDetails().tabDevice().setHeaderVisible(true);

    PatientInvasiveDeviceVo record = domain.getPatientInvasiveDevice(refRecord);
    form.getLocalContext().setEditedDeviceRecord(record);

    populateScreenFromData(record); 

    return record;  
}
项目:openMAXIMS    文件:Logic.java   
private void updateRowRecord(PatientInvasiveDeviceVo record) 
{
    if(record == null)
        return;

    for(int j = 0; j < form.dyngrdDisplay().getRows().size(); j++)
    {
        PatientInvasiveDeviceShortVo existingRecord = (PatientInvasiveDeviceShortVo)
                    (form.dyngrdDisplay().getRows().get(j).getValue());
        if(existingRecord != null && existingRecord.equals(record))
        {
            updateRowRecord(form.dyngrdDisplay().getRows().get(j), record);
            break;
        }
    }   
}
项目:openMAXIMS    文件:Logic.java   
private void updateRowRecord(DynamicGridRow dynRow, PatientInvasiveDeviceVo record) 
{
    if(dynRow == null || record == null)
        return;

    InvasiveDeviceConfigShortVo recordDevice = record.getInvasiveDeviceIsNotNull() ? record.getInvasiveDevice() : null;
    DynamicGridCell deviceCell = dynRow.getCells().newCell(getColumn(COLDEVICE), DynamicCellType.STRING);
    deviceCell.setValue(recordDevice.getInvasiveDevice());

    DynamicGridCell siteCell = dynRow.getCells().newCell(getColumn(COLSITE), DynamicCellType.STRING);
    siteCell.setValue(record.getSiteIsNotNull() ? record.getSite() : null);

    DynamicGridCell insDateCell = dynRow.getCells().newCell(getColumn(COLINSERTEDDATE), DynamicCellType.STRING);
    insDateCell.setValue(record.getInsertedDateTime().toString());

    HcpLiteVo recordHCP = record.getInsertedHCPIsNotNull() ? record.getInsertedHCP() : null;
    DynamicGridCell insHcpCell = dynRow.getCells().newCell(getColumn(COLINSERTEDBY), DynamicCellType.STRING);
    insHcpCell.setValue(recordHCP.getMos().getName().toString());

    dynRow.setValue(record);
}
项目:openMAXIMS    文件:Logic.java   
private PatientInvasiveDeviceVo getAndDisplayRecordDevice(PatientInvasiveDeviceRefVo refRecord) 
{   
    if(refRecord == null)
        return null;

    clearTabVipInstanceControls();
    clearTabDeviceInstanceControls();

    form.ctnDetail().lyrDetails().showtabDevice();
    form.ctnDetail().lyrDetails().tabVIP().setHeaderVisible(false);
    form.ctnDetail().lyrDetails().tabDevice().setHeaderVisible(true);

    PatientInvasiveDeviceVo record = domain.getPatientInvasiveDevice(refRecord);
    form.getLocalContext().setEditedDeviceRecord(record);

    populateScreenFromData(record); 

    return record;  
}
项目:openmaxims-linux    文件:Logic.java   
private void updateRowRecord(PatientInvasiveDeviceVo record) 
{
    if(record == null)
        return;

    for(int j = 0; j < form.dyngrdDisplay().getRows().size(); j++)
    {
        PatientInvasiveDeviceShortVo existingRecord = (PatientInvasiveDeviceShortVo)
                    (form.dyngrdDisplay().getRows().get(j).getValue());
        if(existingRecord != null && existingRecord.equals(record))
        {
            updateRowRecord(form.dyngrdDisplay().getRows().get(j), record);
            break;
        }
    }   
}
项目:openmaxims-linux    文件:Logic.java   
private void updateRowRecord(DynamicGridRow dynRow, PatientInvasiveDeviceVo record) 
{
    if(dynRow == null || record == null)
        return;

    InvasiveDeviceConfigShortVo recordDevice = record.getInvasiveDeviceIsNotNull() ? record.getInvasiveDevice() : null;
    DynamicGridCell deviceCell = dynRow.getCells().newCell(getColumn(COLDEVICE), DynamicCellType.STRING);
    deviceCell.setValue(recordDevice.getInvasiveDevice());

    DynamicGridCell siteCell = dynRow.getCells().newCell(getColumn(COLSITE), DynamicCellType.STRING);
    siteCell.setValue(record.getSiteIsNotNull() ? record.getSite() : null);

    DynamicGridCell insDateCell = dynRow.getCells().newCell(getColumn(COLINSERTEDDATE), DynamicCellType.STRING);
    insDateCell.setValue(record.getInsertedDateTime().toString());

    HcpLiteVo recordHCP = record.getInsertedHCPIsNotNull() ? record.getInsertedHCP() : null;
    DynamicGridCell insHcpCell = dynRow.getCells().newCell(getColumn(COLINSERTEDBY), DynamicCellType.STRING);
    insHcpCell.setValue(recordHCP.getMos().getName().toString());

    dynRow.setValue(record);
}
项目:openmaxims-linux    文件:Logic.java   
private PatientInvasiveDeviceVo getAndDisplayRecordDevice(PatientInvasiveDeviceRefVo refRecord) 
{   
    if(refRecord == null)
        return null;

    clearTabVipInstanceControls();
    clearTabDeviceInstanceControls();

    form.ctnDetail().lyrDetails().showtabDevice();
    form.ctnDetail().lyrDetails().tabVIP().setHeaderVisible(false);
    form.ctnDetail().lyrDetails().tabDevice().setHeaderVisible(true);

    PatientInvasiveDeviceVo record = domain.getPatientInvasiveDevice(refRecord);
    form.getLocalContext().setEditedDeviceRecord(record);

    populateScreenFromData(record); 

    return record;  
}
项目:AvoinApotti    文件:Logic.java   
protected ims.nursing.vo.PatientInvasiveDeviceVo populateDataFromScreenForDevice(ims.nursing.vo.PatientInvasiveDeviceVo record)
{
    if(record == null)
        record = new ims.nursing.vo.PatientInvasiveDeviceVo();

    record.setInvasiveDevice(this.form.ctnDetail().lyrDetails().tabDevice().cmbDevice().getValue());
    record.setType(this.form.ctnDetail().lyrDetails().tabDevice().cmbType().getValue());
    record.setSize(this.form.ctnDetail().lyrDetails().tabDevice().cmbSize().getValue());
    record.setSite(this.form.ctnDetail().lyrDetails().tabDevice().txtSite().getValue());
    record.setComment(this.form.ctnDetail().lyrDetails().tabDevice().txtDesc().getValue());

    if (this.form.ctnDetail().lyrDetails().tabDevice().customInsertedHCP().getValue() !=null)
    {
        record.setInsertedHCP(this.form.ctnDetail().lyrDetails().tabDevice().customInsertedHCP().getValue().getAuthoringHcp());
        record.setInsertedDateTime(this.form.ctnDetail().lyrDetails().tabDevice().customInsertedHCP().getValue().getAuthoringDateTime());
    }

    record.setTargetRemovalDateTime(this.form.ctnDetail().lyrDetails().tabDevice().dtimTargetRemDate().getValue());
    record.setRemovalDateTime(this.form.ctnDetail().lyrDetails().tabDevice().dtimRemDate().getValue());
    record.setRemovalHCP(this.form.ctnDetail().lyrDetails().tabDevice().qmbRemovalBy().getValue());
    record.setRemovalReason(this.form.ctnDetail().lyrDetails().tabDevice().cmbRemovalReason().getValue());
    record.setSentForCulture(this.form.ctnDetail().lyrDetails().tabDevice().ansCulture().getValue());   
    record.setResult(this.form.ctnDetail().lyrDetails().tabDevice().txtResult().getValue());    

    if (this.form.ctnDetail().lyrDetails().tabDevice().customAuthoringHCP().getValue() !=null)
    {
        record.setAuthoringInformation(this.form.ctnDetail().lyrDetails().tabDevice().customAuthoringHCP().getValue());
    }

    return record;
}
项目:AvoinApotti    文件:InvasiveDeviceImpl.java   
public PatientInvasiveDeviceVo savePatientInvasiveDevice(PatientInvasiveDeviceVo record) throws StaleObjectException  
{
    if(record == null)
        throw new DomainRuntimeException("Invalid record");
    if(!record.isValidated())
        throw new CodingRuntimeException("Record not validated");

    DomainFactory factory = getDomainFactory();
    ims.clinical.domain.objects.PatientInvasiveDevice domainRecord = PatientInvasiveDeviceVoAssembler.extractPatientInvasiveDevice(factory, record);        

    factory.save(domainRecord);

    return PatientInvasiveDeviceVoAssembler.create(domainRecord);
}
项目:AvoinApotti    文件:InvasiveDeviceImpl.java   
public PatientInvasiveDeviceVo getPatientInvasiveDevice(PatientInvasiveDeviceRefVo id)  
{   
    if(id == null || id.getID_PatientInvasiveDevice() == null)
        throw new DomainRuntimeException("Invalid record");

    DomainFactory factory = getDomainFactory();
    PatientInvasiveDevice domainRecord = (PatientInvasiveDevice)factory.getDomainObject(PatientInvasiveDevice.class, id.getID_PatientInvasiveDevice().intValue());
    return PatientInvasiveDeviceVoAssembler.create(domainRecord);
}
项目:openMAXIMS    文件:Logic.java   
protected ims.nursing.vo.PatientInvasiveDeviceVo populateDataFromScreenForDevice(ims.nursing.vo.PatientInvasiveDeviceVo record)
{
    if(record == null)
        record = new ims.nursing.vo.PatientInvasiveDeviceVo();

    record.setInvasiveDevice(this.form.ctnDetail().lyrDetails().tabDevice().cmbDevice().getValue());
    record.setType(this.form.ctnDetail().lyrDetails().tabDevice().cmbType().getValue());
    record.setSize(this.form.ctnDetail().lyrDetails().tabDevice().cmbSize().getValue());
    record.setSite(this.form.ctnDetail().lyrDetails().tabDevice().txtSite().getValue());
    record.setComment(this.form.ctnDetail().lyrDetails().tabDevice().txtDesc().getValue());

    if (this.form.ctnDetail().lyrDetails().tabDevice().customInsertedHCP().getValue() !=null)
    {
        record.setInsertedHCP(this.form.ctnDetail().lyrDetails().tabDevice().customInsertedHCP().getValue().getAuthoringHcp());
        record.setInsertedDateTime(this.form.ctnDetail().lyrDetails().tabDevice().customInsertedHCP().getValue().getAuthoringDateTime());
    }

    record.setTargetRemovalDateTime(this.form.ctnDetail().lyrDetails().tabDevice().dtimTargetRemDate().getValue());
    record.setRemovalDateTime(this.form.ctnDetail().lyrDetails().tabDevice().dtimRemDate().getValue());
    record.setRemovalHCP(this.form.ctnDetail().lyrDetails().tabDevice().qmbRemovalBy().getValue());
    record.setRemovalReason(this.form.ctnDetail().lyrDetails().tabDevice().cmbRemovalReason().getValue());
    record.setSentForCulture(this.form.ctnDetail().lyrDetails().tabDevice().ansCulture().getValue());   
    record.setResult(this.form.ctnDetail().lyrDetails().tabDevice().txtResult().getValue());    

    if (this.form.ctnDetail().lyrDetails().tabDevice().customAuthoringHCP().getValue() !=null)
    {
        record.setAuthoringInformation(this.form.ctnDetail().lyrDetails().tabDevice().customAuthoringHCP().getValue());
    }

    return record;
}
项目:openMAXIMS    文件:InvasiveDeviceImpl.java   
public PatientInvasiveDeviceVo savePatientInvasiveDevice(PatientInvasiveDeviceVo record) throws StaleObjectException  
{
    if(record == null)
        throw new DomainRuntimeException("Invalid record");
    if(!record.isValidated())
        throw new CodingRuntimeException("Record not validated");

    DomainFactory factory = getDomainFactory();
    ims.clinical.domain.objects.PatientInvasiveDevice domainRecord = PatientInvasiveDeviceVoAssembler.extractPatientInvasiveDevice(factory, record);        

    factory.save(domainRecord);

    return PatientInvasiveDeviceVoAssembler.create(domainRecord);
}
项目:openMAXIMS    文件:InvasiveDeviceImpl.java   
public PatientInvasiveDeviceVo getPatientInvasiveDevice(PatientInvasiveDeviceRefVo id)  
{   
    if(id == null || id.getID_PatientInvasiveDevice() == null)
        throw new DomainRuntimeException("Invalid record");

    DomainFactory factory = getDomainFactory();
    PatientInvasiveDevice domainRecord = (PatientInvasiveDevice)factory.getDomainObject(PatientInvasiveDevice.class, id.getID_PatientInvasiveDevice().intValue());
    return PatientInvasiveDeviceVoAssembler.create(domainRecord);
}
项目:openMAXIMS    文件:Logic.java   
protected ims.nursing.vo.PatientInvasiveDeviceVo populateDataFromScreenForDevice(ims.nursing.vo.PatientInvasiveDeviceVo record)
{
    if(record == null)
        record = new ims.nursing.vo.PatientInvasiveDeviceVo();

    record.setInvasiveDevice(this.form.ctnDetail().lyrDetails().tabDevice().cmbDevice().getValue());
    record.setType(this.form.ctnDetail().lyrDetails().tabDevice().cmbType().getValue());
    record.setSize(this.form.ctnDetail().lyrDetails().tabDevice().cmbSize().getValue());
    record.setSite(this.form.ctnDetail().lyrDetails().tabDevice().txtSite().getValue());
    record.setComment(this.form.ctnDetail().lyrDetails().tabDevice().txtDesc().getValue());

    if (this.form.ctnDetail().lyrDetails().tabDevice().customInsertedHCP().getValue() !=null)
    {
        record.setInsertedHCP(this.form.ctnDetail().lyrDetails().tabDevice().customInsertedHCP().getValue().getAuthoringHcp());
        record.setInsertedDateTime(this.form.ctnDetail().lyrDetails().tabDevice().customInsertedHCP().getValue().getAuthoringDateTime());
    }

    record.setTargetRemovalDateTime(this.form.ctnDetail().lyrDetails().tabDevice().dtimTargetRemDate().getValue());
    record.setRemovalDateTime(this.form.ctnDetail().lyrDetails().tabDevice().dtimRemDate().getValue());
    record.setRemovalHCP(this.form.ctnDetail().lyrDetails().tabDevice().qmbRemovalBy().getValue());
    record.setRemovalReason(this.form.ctnDetail().lyrDetails().tabDevice().cmbRemovalReason().getValue());
    record.setSentForCulture(this.form.ctnDetail().lyrDetails().tabDevice().ansCulture().getValue());   
    record.setResult(this.form.ctnDetail().lyrDetails().tabDevice().txtResult().getValue());    

    if (this.form.ctnDetail().lyrDetails().tabDevice().customAuthoringHCP().getValue() !=null)
    {
        record.setAuthoringInformation(this.form.ctnDetail().lyrDetails().tabDevice().customAuthoringHCP().getValue());
    }

    return record;
}
项目:openMAXIMS    文件:InvasiveDeviceImpl.java   
public PatientInvasiveDeviceVo savePatientInvasiveDevice(PatientInvasiveDeviceVo record) throws StaleObjectException  
{
    if(record == null)
        throw new DomainRuntimeException("Invalid record");
    if(!record.isValidated())
        throw new CodingRuntimeException("Record not validated");

    DomainFactory factory = getDomainFactory();
    ims.clinical.domain.objects.PatientInvasiveDevice domainRecord = PatientInvasiveDeviceVoAssembler.extractPatientInvasiveDevice(factory, record);        

    factory.save(domainRecord);

    return PatientInvasiveDeviceVoAssembler.create(domainRecord);
}
项目:openMAXIMS    文件:InvasiveDeviceImpl.java   
public PatientInvasiveDeviceVo getPatientInvasiveDevice(PatientInvasiveDeviceRefVo id)  
{   
    if(id == null || id.getID_PatientInvasiveDevice() == null)
        throw new DomainRuntimeException("Invalid record");

    DomainFactory factory = getDomainFactory();
    PatientInvasiveDevice domainRecord = (PatientInvasiveDevice)factory.getDomainObject(PatientInvasiveDevice.class, id.getID_PatientInvasiveDevice().intValue());
    return PatientInvasiveDeviceVoAssembler.create(domainRecord);
}
项目:openmaxims-linux    文件:Logic.java   
protected ims.nursing.vo.PatientInvasiveDeviceVo populateDataFromScreenForDevice(ims.nursing.vo.PatientInvasiveDeviceVo record)
{
    if(record == null)
        record = new ims.nursing.vo.PatientInvasiveDeviceVo();

    record.setInvasiveDevice(this.form.ctnDetail().lyrDetails().tabDevice().cmbDevice().getValue());
    record.setType(this.form.ctnDetail().lyrDetails().tabDevice().cmbType().getValue());
    record.setSize(this.form.ctnDetail().lyrDetails().tabDevice().cmbSize().getValue());
    record.setSite(this.form.ctnDetail().lyrDetails().tabDevice().txtSite().getValue());
    record.setComment(this.form.ctnDetail().lyrDetails().tabDevice().txtDesc().getValue());

    if (this.form.ctnDetail().lyrDetails().tabDevice().customInsertedHCP().getValue() !=null)
    {
        record.setInsertedHCP(this.form.ctnDetail().lyrDetails().tabDevice().customInsertedHCP().getValue().getAuthoringHcp());
        record.setInsertedDateTime(this.form.ctnDetail().lyrDetails().tabDevice().customInsertedHCP().getValue().getAuthoringDateTime());
    }

    record.setTargetRemovalDateTime(this.form.ctnDetail().lyrDetails().tabDevice().dtimTargetRemDate().getValue());
    record.setRemovalDateTime(this.form.ctnDetail().lyrDetails().tabDevice().dtimRemDate().getValue());
    record.setRemovalHCP(this.form.ctnDetail().lyrDetails().tabDevice().qmbRemovalBy().getValue());
    record.setRemovalReason(this.form.ctnDetail().lyrDetails().tabDevice().cmbRemovalReason().getValue());
    record.setSentForCulture(this.form.ctnDetail().lyrDetails().tabDevice().ansCulture().getValue());   
    record.setResult(this.form.ctnDetail().lyrDetails().tabDevice().txtResult().getValue());    

    if (this.form.ctnDetail().lyrDetails().tabDevice().customAuthoringHCP().getValue() !=null)
    {
        record.setAuthoringInformation(this.form.ctnDetail().lyrDetails().tabDevice().customAuthoringHCP().getValue());
    }

    return record;
}
项目:openmaxims-linux    文件:InvasiveDeviceImpl.java   
public PatientInvasiveDeviceVo savePatientInvasiveDevice(PatientInvasiveDeviceVo record) throws StaleObjectException  
{
    if(record == null)
        throw new DomainRuntimeException("Invalid record");
    if(!record.isValidated())
        throw new CodingRuntimeException("Record not validated");

    DomainFactory factory = getDomainFactory();
    ims.clinical.domain.objects.PatientInvasiveDevice domainRecord = PatientInvasiveDeviceVoAssembler.extractPatientInvasiveDevice(factory, record);        

    factory.save(domainRecord);

    return PatientInvasiveDeviceVoAssembler.create(domainRecord);
}
项目:openmaxims-linux    文件:InvasiveDeviceImpl.java   
public PatientInvasiveDeviceVo getPatientInvasiveDevice(PatientInvasiveDeviceRefVo id)  
{   
    if(id == null || id.getID_PatientInvasiveDevice() == null)
        throw new DomainRuntimeException("Invalid record");

    DomainFactory factory = getDomainFactory();
    PatientInvasiveDevice domainRecord = (PatientInvasiveDevice)factory.getDomainObject(PatientInvasiveDevice.class, id.getID_PatientInvasiveDevice().intValue());
    return PatientInvasiveDeviceVoAssembler.create(domainRecord);
}
项目:AvoinApotti    文件:Logic.java   
private PatientInvasiveDeviceVo getAndDisplayRecordDevice()
{   
    PatientInvasiveDeviceShortVo record = (PatientInvasiveDeviceShortVo)form.dyngrdDisplay().getSelectedRow().getIdentifier();
    return getAndDisplayRecordDevice(record);
}
项目:AvoinApotti    文件:Logic.java   
protected void populateScreenFromData(ims.nursing.vo.PatientInvasiveDeviceVo record)
{
    clearTabDeviceInstanceControls();
    if(record == null)
        return;

    //populate device combo
    populateDeviceCombo();
    this.form.ctnDetail().lyrDetails().tabDevice().cmbDevice().setValue(record.getInvasiveDeviceIsNotNull() ? record.getInvasiveDevice() : null);

    if (record.getInvasiveDeviceIsNotNull() && this.form.ctnDetail().lyrDetails().tabDevice().cmbDevice().getValue() == null)
    {
        InvasiveDeviceConfigVo voIDC = domain.getInvasiveDeviceConfig(record.getInvasiveDevice());

        this.form.ctnDetail().lyrDetails().tabDevice().cmbDevice().newRow(voIDC, voIDC.getInvasiveDevice());
        this.form.ctnDetail().lyrDetails().tabDevice().cmbDevice().setValue(voIDC);
    }

    //populate type and size
    populateTypeAndSizeCombo();
    form.ctnDetail().lyrDetails().tabDevice().cmbType().setValue(record.getType());
    form.ctnDetail().lyrDetails().tabDevice().cmbSize().setValue(record.getSize());

    this.form.ctnDetail().lyrDetails().tabDevice().txtSite().setValue(record.getSiteIsNotNull() ? record.getSite(): null);
    this.form.ctnDetail().lyrDetails().tabDevice().txtDesc().setValue(record.getCommentIsNotNull() ? record.getComment(): null);

    if(record.getInsertedHCPIsNotNull())
    {   
        if(record.getInsertedDateTimeIsNotNull() && record.getInsertedHCPIsNotNull())
        {
            AuthoringInformationVo InsertedHcpVo = new AuthoringInformationVo();
            InsertedHcpVo.setAuthoringDateTime(record.getInsertedDateTime());
            InsertedHcpVo.setAuthoringHcp(record.getInsertedHCP());

            form.ctnDetail().lyrDetails().tabDevice().customInsertedHCP().setValue(InsertedHcpVo);
        }
    }

    this.form.ctnDetail().lyrDetails().tabDevice().dtimTargetRemDate().setValue(record.getTargetRemovalDateTimeIsNotNull() ? record.getTargetRemovalDateTime() : null);
    this.form.ctnDetail().lyrDetails().tabDevice().dtimRemDate().setValue(record.getRemovalDateTimeIsNotNull() ? record.getRemovalDateTime() : null);

    if (record.getRemovalHCPIsNotNull())
    this.form.ctnDetail().lyrDetails().tabDevice().qmbRemovalBy().newRow(record.getRemovalHCP(), record.getRemovalHCP().getMos().getName().toString());
    this.form.ctnDetail().lyrDetails().tabDevice().qmbRemovalBy().setValue(record.getRemovalHCPIsNotNull() ? record.getRemovalHCP() : null);

    this.form.ctnDetail().lyrDetails().tabDevice().cmbRemovalReason().setValue(record.getRemovalReasonIsNotNull() ? record.getRemovalReason() : null);
    this.form.ctnDetail().lyrDetails().tabDevice().txtResult().setValue(record.getResultIsNotNull() ? record.getResult() : null);

    this.form.ctnDetail().lyrDetails().tabDevice().ansCulture().setValue(record.getSentForCulture());

    if(record.getAuthoringInformationIsNotNull())
    {
        if(record.getAuthoringInformation().getAuthoringDateTimeIsNotNull() && record.getAuthoringInformation().getAuthoringHcpIsNotNull())
        {
            form.ctnDetail().lyrDetails().tabDevice().customAuthoringHCP().setValue(record.getAuthoringInformation());
        }
    }

    form.ctnDetail().setCollapsed(false);
}
项目:openMAXIMS    文件:Logic.java   
private PatientInvasiveDeviceVo getAndDisplayRecordDevice()
{   
    PatientInvasiveDeviceShortVo record = (PatientInvasiveDeviceShortVo)form.dyngrdDisplay().getSelectedRow().getIdentifier();
    return getAndDisplayRecordDevice(record);
}
项目:openMAXIMS    文件:Logic.java   
protected void populateScreenFromData(ims.nursing.vo.PatientInvasiveDeviceVo record)
{
    clearTabDeviceInstanceControls();
    if(record == null)
        return;

    //populate device combo
    populateDeviceCombo();
    this.form.ctnDetail().lyrDetails().tabDevice().cmbDevice().setValue(record.getInvasiveDeviceIsNotNull() ? record.getInvasiveDevice() : null);

    if (record.getInvasiveDeviceIsNotNull() && this.form.ctnDetail().lyrDetails().tabDevice().cmbDevice().getValue() == null)
    {
        InvasiveDeviceConfigVo voIDC = domain.getInvasiveDeviceConfig(record.getInvasiveDevice());

        this.form.ctnDetail().lyrDetails().tabDevice().cmbDevice().newRow(voIDC, voIDC.getInvasiveDevice());
        this.form.ctnDetail().lyrDetails().tabDevice().cmbDevice().setValue(voIDC);
    }

    //populate type and size
    populateTypeAndSizeCombo();
    form.ctnDetail().lyrDetails().tabDevice().cmbType().setValue(record.getType());
    form.ctnDetail().lyrDetails().tabDevice().cmbSize().setValue(record.getSize());

    this.form.ctnDetail().lyrDetails().tabDevice().txtSite().setValue(record.getSiteIsNotNull() ? record.getSite(): null);
    this.form.ctnDetail().lyrDetails().tabDevice().txtDesc().setValue(record.getCommentIsNotNull() ? record.getComment(): null);

    if(record.getInsertedHCPIsNotNull())
    {   
        if(record.getInsertedDateTimeIsNotNull() && record.getInsertedHCPIsNotNull())
        {
            AuthoringInformationVo InsertedHcpVo = new AuthoringInformationVo();
            InsertedHcpVo.setAuthoringDateTime(record.getInsertedDateTime());
            InsertedHcpVo.setAuthoringHcp(record.getInsertedHCP());

            form.ctnDetail().lyrDetails().tabDevice().customInsertedHCP().setValue(InsertedHcpVo);
        }
    }

    this.form.ctnDetail().lyrDetails().tabDevice().dtimTargetRemDate().setValue(record.getTargetRemovalDateTimeIsNotNull() ? record.getTargetRemovalDateTime() : null);
    this.form.ctnDetail().lyrDetails().tabDevice().dtimRemDate().setValue(record.getRemovalDateTimeIsNotNull() ? record.getRemovalDateTime() : null);

    if (record.getRemovalHCPIsNotNull())
    this.form.ctnDetail().lyrDetails().tabDevice().qmbRemovalBy().newRow(record.getRemovalHCP(), record.getRemovalHCP().getMos().getName().toString());
    this.form.ctnDetail().lyrDetails().tabDevice().qmbRemovalBy().setValue(record.getRemovalHCPIsNotNull() ? record.getRemovalHCP() : null);

    this.form.ctnDetail().lyrDetails().tabDevice().cmbRemovalReason().setValue(record.getRemovalReasonIsNotNull() ? record.getRemovalReason() : null);
    this.form.ctnDetail().lyrDetails().tabDevice().txtResult().setValue(record.getResultIsNotNull() ? record.getResult() : null);

    this.form.ctnDetail().lyrDetails().tabDevice().ansCulture().setValue(record.getSentForCulture());

    if(record.getAuthoringInformationIsNotNull())
    {
        if(record.getAuthoringInformation().getAuthoringDateTimeIsNotNull() && record.getAuthoringInformation().getAuthoringHcpIsNotNull())
        {
            form.ctnDetail().lyrDetails().tabDevice().customAuthoringHCP().setValue(record.getAuthoringInformation());
        }
    }

    form.ctnDetail().setCollapsed(false);
}
项目:openMAXIMS    文件:Logic.java   
private PatientInvasiveDeviceVo getAndDisplayRecordDevice()
{   
    PatientInvasiveDeviceShortVo record = (PatientInvasiveDeviceShortVo)form.dyngrdDisplay().getSelectedRow().getIdentifier();
    return getAndDisplayRecordDevice(record);
}
项目:openMAXIMS    文件:Logic.java   
protected void populateScreenFromData(ims.nursing.vo.PatientInvasiveDeviceVo record)
{
    clearTabDeviceInstanceControls();
    if(record == null)
        return;

    //populate device combo
    populateDeviceCombo();
    this.form.ctnDetail().lyrDetails().tabDevice().cmbDevice().setValue(record.getInvasiveDeviceIsNotNull() ? record.getInvasiveDevice() : null);

    if (record.getInvasiveDeviceIsNotNull() && this.form.ctnDetail().lyrDetails().tabDevice().cmbDevice().getValue() == null)
    {
        InvasiveDeviceConfigVo voIDC = domain.getInvasiveDeviceConfig(record.getInvasiveDevice());

        this.form.ctnDetail().lyrDetails().tabDevice().cmbDevice().newRow(voIDC, voIDC.getInvasiveDevice());
        this.form.ctnDetail().lyrDetails().tabDevice().cmbDevice().setValue(voIDC);
    }

    //populate type and size
    populateTypeAndSizeCombo();
    form.ctnDetail().lyrDetails().tabDevice().cmbType().setValue(record.getType());
    form.ctnDetail().lyrDetails().tabDevice().cmbSize().setValue(record.getSize());

    this.form.ctnDetail().lyrDetails().tabDevice().txtSite().setValue(record.getSiteIsNotNull() ? record.getSite(): null);
    this.form.ctnDetail().lyrDetails().tabDevice().txtDesc().setValue(record.getCommentIsNotNull() ? record.getComment(): null);

    if(record.getInsertedHCPIsNotNull())
    {   
        if(record.getInsertedDateTimeIsNotNull() && record.getInsertedHCPIsNotNull())
        {
            AuthoringInformationVo InsertedHcpVo = new AuthoringInformationVo();
            InsertedHcpVo.setAuthoringDateTime(record.getInsertedDateTime());
            InsertedHcpVo.setAuthoringHcp(record.getInsertedHCP());

            form.ctnDetail().lyrDetails().tabDevice().customInsertedHCP().setValue(InsertedHcpVo);
        }
    }

    this.form.ctnDetail().lyrDetails().tabDevice().dtimTargetRemDate().setValue(record.getTargetRemovalDateTimeIsNotNull() ? record.getTargetRemovalDateTime() : null);
    this.form.ctnDetail().lyrDetails().tabDevice().dtimRemDate().setValue(record.getRemovalDateTimeIsNotNull() ? record.getRemovalDateTime() : null);

    if (record.getRemovalHCPIsNotNull())
    this.form.ctnDetail().lyrDetails().tabDevice().qmbRemovalBy().newRow(record.getRemovalHCP(), record.getRemovalHCP().getMos().getName().toString());
    this.form.ctnDetail().lyrDetails().tabDevice().qmbRemovalBy().setValue(record.getRemovalHCPIsNotNull() ? record.getRemovalHCP() : null);

    this.form.ctnDetail().lyrDetails().tabDevice().cmbRemovalReason().setValue(record.getRemovalReasonIsNotNull() ? record.getRemovalReason() : null);
    this.form.ctnDetail().lyrDetails().tabDevice().txtResult().setValue(record.getResultIsNotNull() ? record.getResult() : null);

    this.form.ctnDetail().lyrDetails().tabDevice().ansCulture().setValue(record.getSentForCulture());

    if(record.getAuthoringInformationIsNotNull())
    {
        if(record.getAuthoringInformation().getAuthoringDateTimeIsNotNull() && record.getAuthoringInformation().getAuthoringHcpIsNotNull())
        {
            form.ctnDetail().lyrDetails().tabDevice().customAuthoringHCP().setValue(record.getAuthoringInformation());
        }
    }

    form.ctnDetail().setCollapsed(false);
}
项目:openmaxims-linux    文件:Logic.java   
private PatientInvasiveDeviceVo getAndDisplayRecordDevice()
{   
    PatientInvasiveDeviceShortVo record = (PatientInvasiveDeviceShortVo)form.dyngrdDisplay().getSelectedRow().getIdentifier();
    return getAndDisplayRecordDevice(record);
}
项目:openmaxims-linux    文件:Logic.java   
protected void populateScreenFromData(ims.nursing.vo.PatientInvasiveDeviceVo record)
{
    clearTabDeviceInstanceControls();
    if(record == null)
        return;

    //populate device combo
    populateDeviceCombo();
    this.form.ctnDetail().lyrDetails().tabDevice().cmbDevice().setValue(record.getInvasiveDeviceIsNotNull() ? record.getInvasiveDevice() : null);

    if (record.getInvasiveDeviceIsNotNull() && this.form.ctnDetail().lyrDetails().tabDevice().cmbDevice().getValue() == null)
    {
        InvasiveDeviceConfigVo voIDC = domain.getInvasiveDeviceConfig(record.getInvasiveDevice());

        this.form.ctnDetail().lyrDetails().tabDevice().cmbDevice().newRow(voIDC, voIDC.getInvasiveDevice());
        this.form.ctnDetail().lyrDetails().tabDevice().cmbDevice().setValue(voIDC);
    }

    //populate type and size
    populateTypeAndSizeCombo();
    form.ctnDetail().lyrDetails().tabDevice().cmbType().setValue(record.getType());
    form.ctnDetail().lyrDetails().tabDevice().cmbSize().setValue(record.getSize());

    this.form.ctnDetail().lyrDetails().tabDevice().txtSite().setValue(record.getSiteIsNotNull() ? record.getSite(): null);
    this.form.ctnDetail().lyrDetails().tabDevice().txtDesc().setValue(record.getCommentIsNotNull() ? record.getComment(): null);

    if(record.getInsertedHCPIsNotNull())
    {   
        if(record.getInsertedDateTimeIsNotNull() && record.getInsertedHCPIsNotNull())
        {
            AuthoringInformationVo InsertedHcpVo = new AuthoringInformationVo();
            InsertedHcpVo.setAuthoringDateTime(record.getInsertedDateTime());
            InsertedHcpVo.setAuthoringHcp(record.getInsertedHCP());

            form.ctnDetail().lyrDetails().tabDevice().customInsertedHCP().setValue(InsertedHcpVo);
        }
    }

    this.form.ctnDetail().lyrDetails().tabDevice().dtimTargetRemDate().setValue(record.getTargetRemovalDateTimeIsNotNull() ? record.getTargetRemovalDateTime() : null);
    this.form.ctnDetail().lyrDetails().tabDevice().dtimRemDate().setValue(record.getRemovalDateTimeIsNotNull() ? record.getRemovalDateTime() : null);

    if (record.getRemovalHCPIsNotNull())
    this.form.ctnDetail().lyrDetails().tabDevice().qmbRemovalBy().newRow(record.getRemovalHCP(), record.getRemovalHCP().getMos().getName().toString());
    this.form.ctnDetail().lyrDetails().tabDevice().qmbRemovalBy().setValue(record.getRemovalHCPIsNotNull() ? record.getRemovalHCP() : null);

    this.form.ctnDetail().lyrDetails().tabDevice().cmbRemovalReason().setValue(record.getRemovalReasonIsNotNull() ? record.getRemovalReason() : null);
    this.form.ctnDetail().lyrDetails().tabDevice().txtResult().setValue(record.getResultIsNotNull() ? record.getResult() : null);

    this.form.ctnDetail().lyrDetails().tabDevice().ansCulture().setValue(record.getSentForCulture());

    if(record.getAuthoringInformationIsNotNull())
    {
        if(record.getAuthoringInformation().getAuthoringDateTimeIsNotNull() && record.getAuthoringInformation().getAuthoringHcpIsNotNull())
        {
            form.ctnDetail().lyrDetails().tabDevice().customAuthoringHCP().setValue(record.getAuthoringInformation());
        }
    }

    form.ctnDetail().setCollapsed(false);
}