Java 类ims.core.vo.STHKPendingElectiveAdmissionListVo 实例源码

项目:AvoinApotti    文件:Logic.java   
/**
 * Function used to compare two records after estimated discharge date
 */
public int compare(STHKPendingElectiveAdmissionListVo o1, STHKPendingElectiveAdmissionListVo o2)
{
    if (o1.getTCIDateIsNotNull() && o2.getTCIDateIsNotNull())
    {
        return o1.getTCIDate().compareTo(o2.getTCIDate()) * direction;
    }

    if (o1.getTCIDateIsNotNull() && !o2.getTCIDateIsNotNull())
    {
        return direction;
    }

    if (o2.getTCIDateIsNotNull() && !o1.getTCIDateIsNotNull())
    {
        return -1 * direction;
    }

    return 0;
}
项目:AvoinApotti    文件:Logic.java   
/**
 * Function used to compare two records after age
 */
public int compare(STHKPendingElectiveAdmissionListVo o1, STHKPendingElectiveAdmissionListVo o2)
{
    if (o1.getPasEventIsNotNull() && o1.getPasEvent().getPatientIsNotNull() && o1.getPasEvent().getPatient().getAgeIsNotNull()
            && o2.getPasEventIsNotNull() && o2.getPasEvent().getPatientIsNotNull() && o2.getPasEvent().getPatient().getAgeIsNotNull())
    {
        return o1.getPasEvent().getPatient().getAge().compareTo(o2.getPasEvent().getPatient().getAge()) * direction;
    }

    if (o1.getPasEventIsNotNull() && o1.getPasEvent().getPatientIsNotNull() && o1.getPasEvent().getPatient().getAgeIsNotNull()
            && (!o2.getPasEventIsNotNull() || !o2.getPasEvent().getPatientIsNotNull() || !o2.getPasEvent().getPatient().getAgeIsNotNull()) )
    {
        return direction;
    }

    if (o1.getPasEventIsNotNull() && o1.getPasEvent().getPatientIsNotNull() && o1.getPasEvent().getPatient().getAgeIsNotNull()
            && (!o2.getPasEventIsNotNull() || !o2.getPasEvent().getPatientIsNotNull() || !o2.getPasEvent().getPatient().getAgeIsNotNull()) )
    {
        return -1 * direction;
    }

    return 0;
}
项目:AvoinApotti    文件:Logic.java   
/**
 * Function used to compare two records after alert image 
 */
public int compare(STHKPendingElectiveAdmissionListVo o1, STHKPendingElectiveAdmissionListVo o2)
{
    if (o1.getPasEvent()!= null && o1.getPasEvent().getPatient() != null && o2.getPasEvent() != null && o2.getPasEvent().getPatient() != null)
    {
        Integer val1 = Boolean.TRUE.equals(o1.getActiveAlerts()) ? 1 : 0;
        Integer val2 = Boolean.TRUE.equals(o2.getActiveAlerts()) ? 1 : 0;

        if (val1 != 0 && val2 != 0)
        {
            return val1.compareTo(val2) * direction;
        }

        if (val1 != 0 && val2 == 0)
        {
            return direction;
        }

        if (val2 != 0 && val1 == 0)
        {
            return -1 * direction;
        }   
    }

return 0;
}
项目:AvoinApotti    文件:Logic.java   
/**
 * WDEV-13136
 * Function used to retrieve records from grid
 */
private STHKPendingElectiveAdmissionListVoCollection populateRecordsFromGrid()
{
    // Create collection to return
    STHKPendingElectiveAdmissionListVoCollection gridValues = new STHKPendingElectiveAdmissionListVoCollection();

    // Add each record from grid to collection
    for (int i = 0; i < form.dyngrdPatients().getRows().size(); i++)
    {
        DynamicGridRow row = form.dyngrdPatients().getRows().get(i);

        if (row.getValue() instanceof STHKPendingElectiveAdmissionListVo)
            gridValues.add((STHKPendingElectiveAdmissionListVo) row.getValue());
    }

    // Return collection grid
    return gridValues;
}
项目:AvoinApotti    文件:Logic.java   
/**
 * WDEV-13136
 * Function used to update global context for PatientShort and PatientToBeDisplayed
 * when grid selection changes
 */
private void updatePatientGlobalContextOnSelection(Object value)
{
    form.getGlobalContext().Core.setSelectingPatientForm(null);
    form.getGlobalContext().Core.setPatientToBeDisplayed(null);
    form.getGlobalContext().Core.setPatientShort(null);

    if (value == null)
        return;

    if ((value instanceof STHKPendingElectiveAdmissionListVo)
            && ((STHKPendingElectiveAdmissionListVo) value).getPasEventIsNotNull()
            && ((STHKPendingElectiveAdmissionListVo) value).getPasEvent().getPatientIsNotNull())
    {
        PatientShort ps = domain.getPatientShort(((STHKPendingElectiveAdmissionListVo)form.dyngrdPatients().getValue()).getPasEvent().getPatient());

        form.getGlobalContext().Core.setSelectingPatientForm(engine.getFormName());
        form.getGlobalContext().Core.setPatientToBeDisplayed(ps);
        form.getGlobalContext().Core.setPatientShort(ps);
    }
}
项目:openMAXIMS    文件:Logic.java   
/**
 * Function used to compare two records after estimated discharge date
 */
public int compare(STHKPendingElectiveAdmissionListVo o1, STHKPendingElectiveAdmissionListVo o2)
{
    if (o1.getTCIDateIsNotNull() && o2.getTCIDateIsNotNull())
    {
        return o1.getTCIDate().compareTo(o2.getTCIDate()) * direction;
    }

    if (o1.getTCIDateIsNotNull() && !o2.getTCIDateIsNotNull())
    {
        return direction;
    }

    if (o2.getTCIDateIsNotNull() && !o1.getTCIDateIsNotNull())
    {
        return -1 * direction;
    }

    return 0;
}
项目:openMAXIMS    文件:Logic.java   
/**
 * Function used to compare two records after age
 */
public int compare(STHKPendingElectiveAdmissionListVo o1, STHKPendingElectiveAdmissionListVo o2)
{
    if (o1.getPasEventIsNotNull() && o1.getPasEvent().getPatientIsNotNull() && o1.getPasEvent().getPatient().getAgeIsNotNull()
            && o2.getPasEventIsNotNull() && o2.getPasEvent().getPatientIsNotNull() && o2.getPasEvent().getPatient().getAgeIsNotNull())
    {
        return o1.getPasEvent().getPatient().getAge().compareTo(o2.getPasEvent().getPatient().getAge()) * direction;
    }

    if (o1.getPasEventIsNotNull() && o1.getPasEvent().getPatientIsNotNull() && o1.getPasEvent().getPatient().getAgeIsNotNull()
            && (!o2.getPasEventIsNotNull() || !o2.getPasEvent().getPatientIsNotNull() || !o2.getPasEvent().getPatient().getAgeIsNotNull()) )
    {
        return direction;
    }

    if (o1.getPasEventIsNotNull() && o1.getPasEvent().getPatientIsNotNull() && o1.getPasEvent().getPatient().getAgeIsNotNull()
            && (!o2.getPasEventIsNotNull() || !o2.getPasEvent().getPatientIsNotNull() || !o2.getPasEvent().getPatient().getAgeIsNotNull()) )
    {
        return -1 * direction;
    }

    return 0;
}
项目:openMAXIMS    文件:Logic.java   
public int compare(Object o1, Object o2)
{
    PartialDate pdate1 = null;
    PartialDate pdate2 = null;

    if (o1 instanceof STHKPendingElectiveAdmissionListVo && o2 instanceof STHKPendingElectiveAdmissionListVo)
    {
        STHKPendingElectiveAdmissionListVo ps1 = (STHKPendingElectiveAdmissionListVo)o1;
        pdate1 = ps1.getPasEventIsNotNull()  && ps1.getPasEvent().getPatientIsNotNull() ? ps1.getPasEvent().getPatient().getDob() : null;
        STHKPendingElectiveAdmissionListVo ps2 = (STHKPendingElectiveAdmissionListVo)o2;
        pdate2 = ps2.getPasEventIsNotNull() && ps2.getPasEvent().getPatientIsNotNull()  ? ps2.getPasEvent().getPatient().getDob() : null;
    }



    if (pdate1 != null && pdate2 != null)
        return  pdate1.compareTo(pdate2)*direction;
    if (pdate1 != null)
        return direction;
    if (pdate2 != null)
        return -1*direction;

    return 0;
}
项目:openMAXIMS    文件:Logic.java   
/**
 * Function used to compare two records after alert image 
 */
public int compare(STHKPendingElectiveAdmissionListVo o1, STHKPendingElectiveAdmissionListVo o2)
{
    if (o1.getPasEvent()!= null && o1.getPasEvent().getPatient() != null && o2.getPasEvent() != null && o2.getPasEvent().getPatient() != null)
    {
        Integer val1 = Boolean.TRUE.equals(o1.getActiveAlerts()) ? 1 : 0;
        Integer val2 = Boolean.TRUE.equals(o2.getActiveAlerts()) ? 1 : 0;

        if (val1 != 0 && val2 != 0)
        {
            return val1.compareTo(val2) * direction;
        }

        if (val1 != 0 && val2 == 0)
        {
            return direction;
        }

        if (val2 != 0 && val1 == 0)
        {
            return -1 * direction;
        }   
    }

return 0;
}
项目:openMAXIMS    文件:Logic.java   
public int compare(STHKPendingElectiveAdmissionListVo c1, STHKPendingElectiveAdmissionListVo c2)
{
    if (c1.getComments()!= null || c2.getComments() != null)
    {
        Integer val1 = (c1.getComments() != null) ? 1 : 0;
        Integer val2 = (c2.getComments() != null) ? 1 : 0;

        if (val1 != 0 && val2 != 0)
        {
            return val1.compareTo(val2) * direction;
        }

        if (val1 != 0 && val2 == 0)
        {
            return direction;
        }

        if (val2 != 0 && val1 == 0)
        {
            return -1 * direction;
        }   
    }

return 0;
}
项目:openMAXIMS    文件:Logic.java   
/**
 * WDEV-13136
 * Function used to retrieve records from grid
 */
private STHKPendingElectiveAdmissionListVoCollection populateRecordsFromGrid()
{
    // Create collection to return
    STHKPendingElectiveAdmissionListVoCollection gridValues = new STHKPendingElectiveAdmissionListVoCollection();

    // Add each record from grid to collection
    for (int i = 0; i < form.dyngrdPatients().getRows().size(); i++)
    {
        DynamicGridRow row = form.dyngrdPatients().getRows().get(i);

        if (row.getValue() instanceof STHKPendingElectiveAdmissionListVo)
            gridValues.add((STHKPendingElectiveAdmissionListVo) row.getValue());
    }

    // Return collection grid
    return gridValues;
}
项目:openMAXIMS    文件:Logic.java   
private void addEditComment(DynamicGridCell cell) 
{
    if (cell != null)
        form.dyngrdPatients().setSelectedRow(cell.getRow());

    if (form.dyngrdPatients().getSelectedRow() != null
        && form.dyngrdPatients().getSelectedRow().getValue() != null)
    {
        STHKPendingElectiveAdmissionListVo voPending = domain.getCurrentPendingRecord(((STHKPendingElectiveAdmissionListVo)form.dyngrdPatients().getSelectedRow().getValue()));
        form.getGlobalContext().Core.setCommentDialogString(voPending.getComments());
        form.dyngrdPatients().getSelectedRow().setValue(voPending);
        if( !form.getGlobalContext().Core.getPatientShortIsNotNull() || !( voPending != null && voPending.getPasEventIsNotNull() && voPending.getPasEvent().getPatientIsNotNull() && form.getGlobalContext().Core.getPatientShort().getID_Patient().equals(voPending.getPasEvent().getPatient().getID_Patient())))  //wdev-22250    
            updatePatientGlobalContextOnSelection(voPending);//WDEV-18065 
        engine.open(form.getForms().Core.CommentDialog);
    }
}
项目:openMAXIMS    文件:Logic.java   
/**
 * WDEV-13136
 * Function used to update global context for PatientShort and PatientToBeDisplayed
 * when grid selection changes
 */
private void updatePatientGlobalContextOnSelection(Object value)
{
    form.getGlobalContext().Core.setSelectingPatientForm(null);
    form.getGlobalContext().Core.setPatientToBeDisplayed(null);
    form.getGlobalContext().Core.setPatientShort(null);

    if (value == null)
        return;

    if ((value instanceof STHKPendingElectiveAdmissionListVo)
            && ((STHKPendingElectiveAdmissionListVo) value).getPasEventIsNotNull()
            && ((STHKPendingElectiveAdmissionListVo) value).getPasEvent().getPatientIsNotNull())
    {
        PatientShort ps = domain.getPatientShort(((STHKPendingElectiveAdmissionListVo)form.dyngrdPatients().getValue()).getPasEvent().getPatient());

        form.getGlobalContext().Core.setSelectingPatientForm(engine.getFormName());
        form.getGlobalContext().Core.setPatientToBeDisplayed(ps);
        form.getGlobalContext().Core.setPatientShort(ps);
    }
}
项目:openMAXIMS    文件:Logic.java   
/**
 * Function used to compare two records after estimated discharge date
 */
public int compare(STHKPendingElectiveAdmissionListVo o1, STHKPendingElectiveAdmissionListVo o2)
{
    if (o1.getTCIDateIsNotNull() && o2.getTCIDateIsNotNull())
    {
        return o1.getTCIDate().compareTo(o2.getTCIDate()) * direction;
    }

    if (o1.getTCIDateIsNotNull() && !o2.getTCIDateIsNotNull())
    {
        return direction;
    }

    if (o2.getTCIDateIsNotNull() && !o1.getTCIDateIsNotNull())
    {
        return -1 * direction;
    }

    return 0;
}
项目:openMAXIMS    文件:Logic.java   
/**
 * Function used to compare two records after age
 */
public int compare(STHKPendingElectiveAdmissionListVo o1, STHKPendingElectiveAdmissionListVo o2)
{
    if (o1.getPasEventIsNotNull() && o1.getPasEvent().getPatientIsNotNull() && o1.getPasEvent().getPatient().getAgeIsNotNull()
            && o2.getPasEventIsNotNull() && o2.getPasEvent().getPatientIsNotNull() && o2.getPasEvent().getPatient().getAgeIsNotNull())
    {
        return o1.getPasEvent().getPatient().getAge().compareTo(o2.getPasEvent().getPatient().getAge()) * direction;
    }

    if (o1.getPasEventIsNotNull() && o1.getPasEvent().getPatientIsNotNull() && o1.getPasEvent().getPatient().getAgeIsNotNull()
            && (!o2.getPasEventIsNotNull() || !o2.getPasEvent().getPatientIsNotNull() || !o2.getPasEvent().getPatient().getAgeIsNotNull()) )
    {
        return direction;
    }

    if (o1.getPasEventIsNotNull() && o1.getPasEvent().getPatientIsNotNull() && o1.getPasEvent().getPatient().getAgeIsNotNull()
            && (!o2.getPasEventIsNotNull() || !o2.getPasEvent().getPatientIsNotNull() || !o2.getPasEvent().getPatient().getAgeIsNotNull()) )
    {
        return -1 * direction;
    }

    return 0;
}
项目:openMAXIMS    文件:Logic.java   
/**
 * Function used to compare two records after alert image 
 */
public int compare(STHKPendingElectiveAdmissionListVo o1, STHKPendingElectiveAdmissionListVo o2)
{
    if (o1.getPasEvent()!= null && o1.getPasEvent().getPatient() != null && o2.getPasEvent() != null && o2.getPasEvent().getPatient() != null)
    {
        Integer val1 = Boolean.TRUE.equals(o1.getActiveAlerts()) ? 1 : 0;
        Integer val2 = Boolean.TRUE.equals(o2.getActiveAlerts()) ? 1 : 0;

        if (val1 != 0 && val2 != 0)
        {
            return val1.compareTo(val2) * direction;
        }

        if (val1 != 0 && val2 == 0)
        {
            return direction;
        }

        if (val2 != 0 && val1 == 0)
        {
            return -1 * direction;
        }   
    }

return 0;
}
项目:openMAXIMS    文件:Logic.java   
/**
 * WDEV-13136
 * Function used to retrieve records from grid
 */
private STHKPendingElectiveAdmissionListVoCollection populateRecordsFromGrid()
{
    // Create collection to return
    STHKPendingElectiveAdmissionListVoCollection gridValues = new STHKPendingElectiveAdmissionListVoCollection();

    // Add each record from grid to collection
    for (int i = 0; i < form.dyngrdPatients().getRows().size(); i++)
    {
        DynamicGridRow row = form.dyngrdPatients().getRows().get(i);

        if (row.getValue() instanceof STHKPendingElectiveAdmissionListVo)
            gridValues.add((STHKPendingElectiveAdmissionListVo) row.getValue());
    }

    // Return collection grid
    return gridValues;
}
项目:openMAXIMS    文件:Logic.java   
/**
 * WDEV-13136
 * Function used to update global context for PatientShort and PatientToBeDisplayed
 * when grid selection changes
 */
private void updatePatientGlobalContextOnSelection(Object value)
{
    form.getGlobalContext().Core.setSelectingPatientForm(null);
    form.getGlobalContext().Core.setPatientToBeDisplayed(null);
    form.getGlobalContext().Core.setPatientShort(null);

    if (value == null)
        return;

    if ((value instanceof STHKPendingElectiveAdmissionListVo)
            && ((STHKPendingElectiveAdmissionListVo) value).getPasEventIsNotNull()
            && ((STHKPendingElectiveAdmissionListVo) value).getPasEvent().getPatientIsNotNull())
    {
        PatientShort ps = domain.getPatientShort(((STHKPendingElectiveAdmissionListVo)form.dyngrdPatients().getValue()).getPasEvent().getPatient());

        form.getGlobalContext().Core.setSelectingPatientForm(engine.getFormName());
        form.getGlobalContext().Core.setPatientToBeDisplayed(ps);
        form.getGlobalContext().Core.setPatientShort(ps);
    }
}
项目:openmaxims-linux    文件:Logic.java   
/**
 * Function used to compare two records after estimated discharge date
 */
public int compare(STHKPendingElectiveAdmissionListVo o1, STHKPendingElectiveAdmissionListVo o2)
{
    if (o1.getTCIDateIsNotNull() && o2.getTCIDateIsNotNull())
    {
        return o1.getTCIDate().compareTo(o2.getTCIDate()) * direction;
    }

    if (o1.getTCIDateIsNotNull() && !o2.getTCIDateIsNotNull())
    {
        return direction;
    }

    if (o2.getTCIDateIsNotNull() && !o1.getTCIDateIsNotNull())
    {
        return -1 * direction;
    }

    return 0;
}
项目:openmaxims-linux    文件:Logic.java   
/**
 * Function used to compare two records after age
 */
public int compare(STHKPendingElectiveAdmissionListVo o1, STHKPendingElectiveAdmissionListVo o2)
{
    if (o1.getPasEventIsNotNull() && o1.getPasEvent().getPatientIsNotNull() && o1.getPasEvent().getPatient().getAgeIsNotNull()
            && o2.getPasEventIsNotNull() && o2.getPasEvent().getPatientIsNotNull() && o2.getPasEvent().getPatient().getAgeIsNotNull())
    {
        return o1.getPasEvent().getPatient().getAge().compareTo(o2.getPasEvent().getPatient().getAge()) * direction;
    }

    if (o1.getPasEventIsNotNull() && o1.getPasEvent().getPatientIsNotNull() && o1.getPasEvent().getPatient().getAgeIsNotNull()
            && (!o2.getPasEventIsNotNull() || !o2.getPasEvent().getPatientIsNotNull() || !o2.getPasEvent().getPatient().getAgeIsNotNull()) )
    {
        return direction;
    }

    if (o1.getPasEventIsNotNull() && o1.getPasEvent().getPatientIsNotNull() && o1.getPasEvent().getPatient().getAgeIsNotNull()
            && (!o2.getPasEventIsNotNull() || !o2.getPasEvent().getPatientIsNotNull() || !o2.getPasEvent().getPatient().getAgeIsNotNull()) )
    {
        return -1 * direction;
    }

    return 0;
}
项目:openmaxims-linux    文件:Logic.java   
/**
 * Function used to compare two records after alert image 
 */
public int compare(STHKPendingElectiveAdmissionListVo o1, STHKPendingElectiveAdmissionListVo o2)
{
    if (o1.getPasEvent()!= null && o1.getPasEvent().getPatient() != null && o2.getPasEvent() != null && o2.getPasEvent().getPatient() != null)
    {
        Integer val1 = Boolean.TRUE.equals(o1.getActiveAlerts()) ? 1 : 0;
        Integer val2 = Boolean.TRUE.equals(o2.getActiveAlerts()) ? 1 : 0;

        if (val1 != 0 && val2 != 0)
        {
            return val1.compareTo(val2) * direction;
        }

        if (val1 != 0 && val2 == 0)
        {
            return direction;
        }

        if (val2 != 0 && val1 == 0)
        {
            return -1 * direction;
        }   
    }

return 0;
}
项目:openmaxims-linux    文件:Logic.java   
/**
 * WDEV-13136
 * Function used to retrieve records from grid
 */
private STHKPendingElectiveAdmissionListVoCollection populateRecordsFromGrid()
{
    // Create collection to return
    STHKPendingElectiveAdmissionListVoCollection gridValues = new STHKPendingElectiveAdmissionListVoCollection();

    // Add each record from grid to collection
    for (int i = 0; i < form.dyngrdPatients().getRows().size(); i++)
    {
        DynamicGridRow row = form.dyngrdPatients().getRows().get(i);

        if (row.getValue() instanceof STHKPendingElectiveAdmissionListVo)
            gridValues.add((STHKPendingElectiveAdmissionListVo) row.getValue());
    }

    // Return collection grid
    return gridValues;
}
项目:openmaxims-linux    文件:Logic.java   
/**
 * WDEV-13136
 * Function used to update global context for PatientShort and PatientToBeDisplayed
 * when grid selection changes
 */
private void updatePatientGlobalContextOnSelection(Object value)
{
    form.getGlobalContext().Core.setSelectingPatientForm(null);
    form.getGlobalContext().Core.setPatientToBeDisplayed(null);
    form.getGlobalContext().Core.setPatientShort(null);

    if (value == null)
        return;

    if ((value instanceof STHKPendingElectiveAdmissionListVo)
            && ((STHKPendingElectiveAdmissionListVo) value).getPasEventIsNotNull()
            && ((STHKPendingElectiveAdmissionListVo) value).getPasEvent().getPatientIsNotNull())
    {
        PatientShort ps = domain.getPatientShort(((STHKPendingElectiveAdmissionListVo)form.dyngrdPatients().getValue()).getPasEvent().getPatient());

        form.getGlobalContext().Core.setSelectingPatientForm(engine.getFormName());
        form.getGlobalContext().Core.setPatientToBeDisplayed(ps);
        form.getGlobalContext().Core.setPatientShort(ps);
    }
}
项目:AvoinApotti    文件:Logic.java   
private void addEditComment(DynamicGridCell cell) 
{
    if (cell != null)
        form.dyngrdPatients().setSelectedRow(cell.getRow());

    if (form.dyngrdPatients().getSelectedRow() != null
        && form.dyngrdPatients().getSelectedRow().getValue() != null)
    {
        STHKPendingElectiveAdmissionListVo voPending = domain.getCurrentPendingRecord(((STHKPendingElectiveAdmissionListVo)form.dyngrdPatients().getSelectedRow().getValue()));
        form.getGlobalContext().Core.setCommentDialogString(voPending.getComments());
        form.dyngrdPatients().getSelectedRow().setValue(voPending);
        updatePatientGlobalContextOnSelection(voPending);//WDEV-18065 
        engine.open(form.getForms().Core.CommentDialog);
    }
}
项目:AvoinApotti    文件:STHKPendingElectiveAdmissionsListComponentImpl.java   
public STHKPendingElectiveAdmissionListVo savePendingRecord(STHKPendingElectiveAdmissionListVo voPending) throws DomainInterfaceException, StaleObjectException 
{
    if (!voPending.isValidated())
        throw new CodingRuntimeException("Pending Record has not been validated");
    if(voPending == null)
        throw new CodingRuntimeException("Cannot save null STHKPendingElectiveAdmissionListVo");

    DomainFactory factory = getDomainFactory();

    PendingElectiveAdmission doElective = STHKPendingElectiveAdmissionListVoAssembler.extractPendingElectiveAdmission(factory, voPending);
    factory.save(doElective);
    return (STHKPendingElectiveAdmissionListVoAssembler.create(doElective));        
}
项目:openMAXIMS    文件:STHKPendingElectiveAdmissionsListComponentImpl.java   
public STHKPendingElectiveAdmissionListVo savePendingRecord(STHKPendingElectiveAdmissionListVo voPending) throws DomainInterfaceException, StaleObjectException 
{
    if (!voPending.isValidated())
        throw new CodingRuntimeException("Pending Record has not been validated");
    if(voPending == null)
        throw new CodingRuntimeException("Cannot save null STHKPendingElectiveAdmissionListVo");

    DomainFactory factory = getDomainFactory();

    PendingElectiveAdmission doElective = STHKPendingElectiveAdmissionListVoAssembler.extractPendingElectiveAdmission(factory, voPending);
    factory.save(doElective);
    return (STHKPendingElectiveAdmissionListVoAssembler.create(doElective));        
}
项目:openMAXIMS    文件:Logic.java   
private void addEditComment(DynamicGridCell cell) 
{
    if (cell != null)
        form.dyngrdPatients().setSelectedRow(cell.getRow());

    if (form.dyngrdPatients().getSelectedRow() != null
        && form.dyngrdPatients().getSelectedRow().getValue() != null)
    {
        STHKPendingElectiveAdmissionListVo voPending = domain.getCurrentPendingRecord(((STHKPendingElectiveAdmissionListVo)form.dyngrdPatients().getSelectedRow().getValue()));
        form.getGlobalContext().Core.setCommentDialogString(voPending.getComments());
        form.dyngrdPatients().getSelectedRow().setValue(voPending);
        updatePatientGlobalContextOnSelection(voPending);//WDEV-18065 
        engine.open(form.getForms().Core.CommentDialog);
    }
}
项目:openMAXIMS    文件:STHKPendingElectiveAdmissionsListComponentImpl.java   
public STHKPendingElectiveAdmissionListVo savePendingRecord(STHKPendingElectiveAdmissionListVo voPending) throws DomainInterfaceException, StaleObjectException 
{
    if (!voPending.isValidated())
        throw new CodingRuntimeException("Pending Record has not been validated");
    if(voPending == null)
        throw new CodingRuntimeException("Cannot save null STHKPendingElectiveAdmissionListVo");

    DomainFactory factory = getDomainFactory();

    PendingElectiveAdmission doElective = STHKPendingElectiveAdmissionListVoAssembler.extractPendingElectiveAdmission(factory, voPending);
    factory.save(doElective);
    return (STHKPendingElectiveAdmissionListVoAssembler.create(doElective));        
}
项目:openmaxims-linux    文件:Logic.java   
private void addEditComment(DynamicGridCell cell) 
{
    if (cell != null)
        form.dyngrdPatients().setSelectedRow(cell.getRow());

    if (form.dyngrdPatients().getSelectedRow() != null
        && form.dyngrdPatients().getSelectedRow().getValue() != null)
    {
        STHKPendingElectiveAdmissionListVo voPending = domain.getCurrentPendingRecord(((STHKPendingElectiveAdmissionListVo)form.dyngrdPatients().getSelectedRow().getValue()));
        form.getGlobalContext().Core.setCommentDialogString(voPending.getComments());
        form.dyngrdPatients().getSelectedRow().setValue(voPending);
        updatePatientGlobalContextOnSelection(voPending);//WDEV-18065 
        engine.open(form.getForms().Core.CommentDialog);
    }
}
项目:openmaxims-linux    文件:STHKPendingElectiveAdmissionsListComponentImpl.java   
public STHKPendingElectiveAdmissionListVo savePendingRecord(STHKPendingElectiveAdmissionListVo voPending) throws DomainInterfaceException, StaleObjectException 
{
    if (!voPending.isValidated())
        throw new CodingRuntimeException("Pending Record has not been validated");
    if(voPending == null)
        throw new CodingRuntimeException("Cannot save null STHKPendingElectiveAdmissionListVo");

    DomainFactory factory = getDomainFactory();

    PendingElectiveAdmission doElective = STHKPendingElectiveAdmissionListVoAssembler.extractPendingElectiveAdmission(factory, voPending);
    factory.save(doElective);
    return (STHKPendingElectiveAdmissionListVoAssembler.create(doElective));        
}
项目:AvoinApotti    文件:STHKPendingElectiveAdmissionsListComponentImpl.java   
public STHKPendingElectiveAdmissionListVo getCurrentPendingRecord(PendingElectiveAdmissionRefVo electiveRefVo) 
{
    DomainFactory factory = getDomainFactory();
    return STHKPendingElectiveAdmissionListVoAssembler.create((PendingElectiveAdmission) factory.getDomainObject(PendingElectiveAdmission.class, electiveRefVo.getID_PendingElectiveAdmission()));
}
项目:openMAXIMS    文件:STHKPendingElectiveAdmissionsListComponentImpl.java   
public STHKPendingElectiveAdmissionListVo getCurrentPendingRecord(PendingElectiveAdmissionRefVo electiveRefVo) 
{
    DomainFactory factory = getDomainFactory();
    return STHKPendingElectiveAdmissionListVoAssembler.create((PendingElectiveAdmission) factory.getDomainObject(PendingElectiveAdmission.class, electiveRefVo.getID_PendingElectiveAdmission()));
}
项目:openMAXIMS    文件:STHKPendingElectiveAdmissionsListComponentImpl.java   
public STHKPendingElectiveAdmissionListVo getCurrentPendingRecord(PendingElectiveAdmissionRefVo electiveRefVo) 
{
    DomainFactory factory = getDomainFactory();
    return STHKPendingElectiveAdmissionListVoAssembler.create((PendingElectiveAdmission) factory.getDomainObject(PendingElectiveAdmission.class, electiveRefVo.getID_PendingElectiveAdmission()));
}
项目:openmaxims-linux    文件:STHKPendingElectiveAdmissionsListComponentImpl.java   
public STHKPendingElectiveAdmissionListVo getCurrentPendingRecord(PendingElectiveAdmissionRefVo electiveRefVo) 
{
    DomainFactory factory = getDomainFactory();
    return STHKPendingElectiveAdmissionListVoAssembler.create((PendingElectiveAdmission) factory.getDomainObject(PendingElectiveAdmission.class, electiveRefVo.getID_PendingElectiveAdmission()));
}