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

项目:AvoinApotti    文件:Logic.java   
private void addRow(grdDetailsRow row, ReferralsRecordingShortVo vo) 
{
    row.setColDateSent(vo.getDateSentIsNotNull() ? vo.getDateSent().toString() : "");
    row.setColSpecialty(vo.getSpecialtyFunctionCodeIsNotNull() ? vo.getSpecialtyFunctionCode().getText() : "");
    row.setColDiscipline(vo.getDisciplineIsNotNull() ? vo.getDiscipline().toString() : "");
    row.setColStatus(vo.getReferralStatusIsNotNull() ? vo.getReferralStatus().toString() : "");
    row.setColReferralSource(vo.getReferralSourceIsNotNull() ? vo.getReferralSource().toString() : "");
    row.setColReferredTo(vo.getReferralHCPIsNotNull() ? vo.getReferralHCP().toString() : "");

    row.setValue(vo);
}
项目:AvoinApotti    文件:Logic.java   
private void addRowRecord(ReferralsRecordingShortVo record)
{   
    if(record == null)
        return;

    ReferralsRecordingVo editedRecord = form.getLocalContext().getEditedRecord();
    GenForm.grdListRow row = form.grdList().getRows().newRow(record.equals(editedRecord));

    row.setColDate(record.getDateSentIsNotNull() ? record.getDateSent() : null) ;
    row.setColReferralTypeSource(record.getReferralTypeIsNotNull() ? record.getReferralType().toString() : ""
        +" / " + (record.getReferralSourceIsNotNull() ? record.getReferralSource().toString() : ""));
    row.setColDetails(record.getDetailsIsNotNull() ? record.getDetails() : "");

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

    for (int j = 0; j < form.grdList().getRows().size(); j++) 
    {
        ReferralsRecordingShortVo existingRecord = form.grdList().getRows().get(j).getValue();
        if (existingRecord != null && existingRecord.equals(record)) 
        {
            updateRowRecord(form.grdList().getRows().get(j), record);

            break;
        }
    }

    if (form.grdList().getSelectedRowIndex() >=0)
    {
        if (form.getLocalContext().getEditedRecordIsNotNull())
        {
            if (form.getLocalContext().getEditedRecord().getSuppliedReferralProfessionalIsNotNull())
            {
                form.ctnDetails().chkSupplyHcp().setValue(true);
                showSupplyHcp(true);
            }

        }
    }
}
项目:AvoinApotti    文件:Logic.java   
private ReferralsRecordingVo getAndDisplayRecord(ReferralsRecordingShortVo refRecord) 
{
    clear();

    if(refRecord == null)
        return null;

    ReferralsRecordingVo record = domain.get(refRecord);
    form.getLocalContext().setEditedRecord(record);

    populateScreenFromData(record); 

    return record;  
}
项目:AvoinApotti    文件:DemoReferralListImpl.java   
public ReferralsRecordingShortVo getReferralsRecording(ReferralsRecordingRefVo voRef)
{
    if(voRef == null || voRef.getID_ReferralsRecording() == null)
    {
        throw new DomainRuntimeException("Invalid record");
    }

    DomainFactory factory = getDomainFactory();
    ReferralsRecording domainRecord = (ReferralsRecording)factory.
        getDomainObject(ReferralsRecording.class, voRef.getID_ReferralsRecording().intValue());

    return ReferralsRecordingShortVoAssembler.create(domainRecord); 
}
项目:openMAXIMS    文件:Logic.java   
private void addRow(grdDetailsRow row, ReferralsRecordingShortVo vo) 
{
    row.setColDateSent(vo.getDateSentIsNotNull() ? vo.getDateSent().toString() : "");
    row.setColSpecialty(vo.getSpecialtyFunctionCodeIsNotNull() ? vo.getSpecialtyFunctionCode().getText() : "");
    row.setColDiscipline(vo.getDisciplineIsNotNull() ? vo.getDiscipline().toString() : "");
    row.setColStatus(vo.getReferralStatusIsNotNull() ? vo.getReferralStatus().toString() : "");
    row.setColReferralSource(vo.getReferralSourceIsNotNull() ? vo.getReferralSource().toString() : "");
    row.setColReferredTo(vo.getReferralHCPIsNotNull() ? vo.getReferralHCP().toString() : "");

    row.setValue(vo);
}
项目:openMAXIMS    文件:Logic.java   
private void addRowRecord(ReferralsRecordingShortVo record)
{   
    if(record == null)
        return;

    ReferralsRecordingVo editedRecord = form.getLocalContext().getEditedRecord();
    GenForm.grdListRow row = form.grdList().getRows().newRow(record.equals(editedRecord));

    row.setColDate(record.getDateSentIsNotNull() ? record.getDateSent() : null) ;
    row.setColReferralTypeSource(record.getReferralTypeIsNotNull() ? record.getReferralType().toString() : ""
        +" / " + (record.getReferralSourceIsNotNull() ? record.getReferralSource().toString() : ""));
    row.setColDetails(record.getDetailsIsNotNull() ? record.getDetails() : "");

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

    for (int j = 0; j < form.grdList().getRows().size(); j++) 
    {
        ReferralsRecordingShortVo existingRecord = form.grdList().getRows().get(j).getValue();
        if (existingRecord != null && existingRecord.equals(record)) 
        {
            updateRowRecord(form.grdList().getRows().get(j), record);

            break;
        }
    }

    if (form.grdList().getSelectedRowIndex() >=0)
    {
        if (form.getLocalContext().getEditedRecordIsNotNull())
        {
            if (form.getLocalContext().getEditedRecord().getSuppliedReferralProfessionalIsNotNull())
            {
                form.ctnDetails().chkSupplyHcp().setValue(true);
                showSupplyHcp(true);
            }

        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private ReferralsRecordingVo getAndDisplayRecord(ReferralsRecordingShortVo refRecord) 
{
    clear();

    if(refRecord == null)
        return null;

    ReferralsRecordingVo record = domain.get(refRecord);
    form.getLocalContext().setEditedRecord(record);

    populateScreenFromData(record); 

    return record;  
}
项目:openMAXIMS    文件:DemoReferralListImpl.java   
public ReferralsRecordingShortVo getReferralsRecording(ReferralsRecordingRefVo voRef)
{
    if(voRef == null || voRef.getID_ReferralsRecording() == null)
    {
        throw new DomainRuntimeException("Invalid record");
    }

    DomainFactory factory = getDomainFactory();
    ReferralsRecording domainRecord = (ReferralsRecording)factory.
        getDomainObject(ReferralsRecording.class, voRef.getID_ReferralsRecording().intValue());

    return ReferralsRecordingShortVoAssembler.create(domainRecord); 
}
项目:openMAXIMS    文件:Logic.java   
private void addRow(grdDetailsRow row, ReferralsRecordingShortVo vo) 
{
    row.setColDateSent(vo.getDateSentIsNotNull() ? vo.getDateSent().toString() : "");
    row.setColSpecialty(vo.getSpecialtyFunctionCodeIsNotNull() ? vo.getSpecialtyFunctionCode().getText() : "");
    row.setColDiscipline(vo.getDisciplineIsNotNull() ? vo.getDiscipline().toString() : "");
    row.setColStatus(vo.getReferralStatusIsNotNull() ? vo.getReferralStatus().toString() : "");
    row.setColReferralSource(vo.getReferralSourceIsNotNull() ? vo.getReferralSource().toString() : "");
    row.setColReferredTo(vo.getReferralHCPIsNotNull() ? vo.getReferralHCP().toString() : "");

    row.setValue(vo);
}
项目:openMAXIMS    文件:Logic.java   
private void addRowRecord(ReferralsRecordingShortVo record)
{   
    if(record == null)
        return;

    ReferralsRecordingVo editedRecord = form.getLocalContext().getEditedRecord();
    GenForm.grdListRow row = form.grdList().getRows().newRow(record.equals(editedRecord));

    row.setColDate(record.getDateSentIsNotNull() ? record.getDateSent() : null) ;
    row.setColReferralTypeSource(record.getReferralTypeIsNotNull() ? record.getReferralType().toString() : ""
        +" / " + (record.getReferralSourceIsNotNull() ? record.getReferralSource().toString() : ""));
    row.setColDetails(record.getDetailsIsNotNull() ? record.getDetails() : "");

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

    for (int j = 0; j < form.grdList().getRows().size(); j++) 
    {
        ReferralsRecordingShortVo existingRecord = form.grdList().getRows().get(j).getValue();
        if (existingRecord != null && existingRecord.equals(record)) 
        {
            updateRowRecord(form.grdList().getRows().get(j), record);

            break;
        }
    }

    if (form.grdList().getSelectedRowIndex() >=0)
    {
        if (form.getLocalContext().getEditedRecordIsNotNull())
        {
            if (form.getLocalContext().getEditedRecord().getSuppliedReferralProfessionalIsNotNull())
            {
                form.ctnDetails().chkSupplyHcp().setValue(true);
                showSupplyHcp(true);
            }

        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private ReferralsRecordingVo getAndDisplayRecord(ReferralsRecordingShortVo refRecord) 
{
    clear();

    if(refRecord == null)
        return null;

    ReferralsRecordingVo record = domain.get(refRecord);
    form.getLocalContext().setEditedRecord(record);

    populateScreenFromData(record); 

    return record;  
}
项目:openMAXIMS    文件:DemoReferralListImpl.java   
public ReferralsRecordingShortVo getReferralsRecording(ReferralsRecordingRefVo voRef)
{
    if(voRef == null || voRef.getID_ReferralsRecording() == null)
    {
        throw new DomainRuntimeException("Invalid record");
    }

    DomainFactory factory = getDomainFactory();
    ReferralsRecording domainRecord = (ReferralsRecording)factory.
        getDomainObject(ReferralsRecording.class, voRef.getID_ReferralsRecording().intValue());

    return ReferralsRecordingShortVoAssembler.create(domainRecord); 
}
项目:openmaxims-linux    文件:Logic.java   
private void addRow(grdDetailsRow row, ReferralsRecordingShortVo vo) 
{
    row.setColDateSent(vo.getDateSentIsNotNull() ? vo.getDateSent().toString() : "");
    row.setColSpecialty(vo.getSpecialtyFunctionCodeIsNotNull() ? vo.getSpecialtyFunctionCode().getText() : "");
    row.setColDiscipline(vo.getDisciplineIsNotNull() ? vo.getDiscipline().toString() : "");
    row.setColStatus(vo.getReferralStatusIsNotNull() ? vo.getReferralStatus().toString() : "");
    row.setColReferralSource(vo.getReferralSourceIsNotNull() ? vo.getReferralSource().toString() : "");
    row.setColReferredTo(vo.getReferralHCPIsNotNull() ? vo.getReferralHCP().toString() : "");

    row.setValue(vo);
}
项目:openmaxims-linux    文件:Logic.java   
private void addRowRecord(ReferralsRecordingShortVo record)
{   
    if(record == null)
        return;

    ReferralsRecordingVo editedRecord = form.getLocalContext().getEditedRecord();
    GenForm.grdListRow row = form.grdList().getRows().newRow(record.equals(editedRecord));

    row.setColDate(record.getDateSentIsNotNull() ? record.getDateSent() : null) ;
    row.setColReferralTypeSource(record.getReferralTypeIsNotNull() ? record.getReferralType().toString() : ""
        +" / " + (record.getReferralSourceIsNotNull() ? record.getReferralSource().toString() : ""));
    row.setColDetails(record.getDetailsIsNotNull() ? record.getDetails() : "");

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

    for (int j = 0; j < form.grdList().getRows().size(); j++) 
    {
        ReferralsRecordingShortVo existingRecord = form.grdList().getRows().get(j).getValue();
        if (existingRecord != null && existingRecord.equals(record)) 
        {
            updateRowRecord(form.grdList().getRows().get(j), record);

            break;
        }
    }

    if (form.grdList().getSelectedRowIndex() >=0)
    {
        if (form.getLocalContext().getEditedRecordIsNotNull())
        {
            if (form.getLocalContext().getEditedRecord().getSuppliedReferralProfessionalIsNotNull())
            {
                form.ctnDetails().chkSupplyHcp().setValue(true);
                showSupplyHcp(true);
            }

        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
private ReferralsRecordingVo getAndDisplayRecord(ReferralsRecordingShortVo refRecord) 
{
    clear();

    if(refRecord == null)
        return null;

    ReferralsRecordingVo record = domain.get(refRecord);
    form.getLocalContext().setEditedRecord(record);

    populateScreenFromData(record); 

    return record;  
}
项目:openmaxims-linux    文件:DemoReferralListImpl.java   
public ReferralsRecordingShortVo getReferralsRecording(ReferralsRecordingRefVo voRef)
{
    if(voRef == null || voRef.getID_ReferralsRecording() == null)
    {
        throw new DomainRuntimeException("Invalid record");
    }

    DomainFactory factory = getDomainFactory();
    ReferralsRecording domainRecord = (ReferralsRecording)factory.
        getDomainObject(ReferralsRecording.class, voRef.getID_ReferralsRecording().intValue());

    return ReferralsRecordingShortVoAssembler.create(domainRecord); 
}