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

项目:AvoinApotti    文件:Logic.java   
private void populateScreenFromData(PatientClericalTaskVoCollection listClericalTasks) 
{
    form.grdClericalTask().getRows().clear();

    if(listClericalTasks == null || listClericalTasks.size() == 0)
        return;

    for(int i=0;i<listClericalTasks.size();i++)
    {
        PatientClericalTaskVo record=listClericalTasks.get(i);
        if(record == null)
            continue;

        addPatientClericalTaskDetailsRow(record);

    }

}
项目:AvoinApotti    文件:Logic.java   
protected void onGrdClericalTaskSelectionChanged()
{
    //FB latest changes for WDEV-13879 - 12.01.2012
    if (domain.getMosUser() == null)//WDEV-15411
    {
        engine.showMessage("Only MOS users can access this form! Current user is not a MOS user.");
        form.grdClericalTask().setValue(null);
        return ;
    }

    if (form.grdClericalTask().getValue() instanceof PatientClericalTaskVo)
    {
        form.getGlobalContext().Core.setPatientClericalTask(form.grdClericalTask().getValue());

        //WDEV-14080    
        PatientShort patientShort = new PatientShort(form.getGlobalContext().Core.getPatientClericalTask().getPatient().getID_Patient(), form.getGlobalContext().Core.getPatientClericalTask().getPatient().getVersion_Patient());
        form.getGlobalContext().Core.setPatientShort(patientShort);

        engine.open(form.getForms().Core.PatientClericalTaskDialog,false);//FB latest changes for WDEV-13879 - 13.01.2012(to hide [X] button when opening from Clerical Task Worklist ) 
    }

}
项目:AvoinApotti    文件:PatientClericalTaskDialogImpl.java   
public ims.core.vo.PatientClericalTaskVo savePatientClericalTask(ims.core.vo.PatientClericalTaskVo patientClericalTask) throws ims.domain.exceptions.StaleObjectException, ims.domain.exceptions.UniqueKeyViolationException
{
    if (patientClericalTask == null)

        throw new CodingRuntimeException("Cannot save patientClericalTask if null . ");

    if (!patientClericalTask.isValidated())
        throw new CodingRuntimeException("PatientClericalTaskVo not Validated");

    try
    {
        DomainFactory factory = getDomainFactory();
        PatientClericalTask clericalTask = PatientClericalTaskVoAssembler.extractPatientClericalTask(factory, patientClericalTask);

        factory.save(clericalTask);
        return PatientClericalTaskVoAssembler.create(clericalTask);
    }
    catch (UnqViolationUncheckedException e)
    {
        throw new UniqueKeyViolationException("A PatientClericalTask for this investigation already exist!", e);
    }
}
项目:AvoinApotti    文件:PatientClericalTaskDialogImpl.java   
public Boolean isStale(PatientClericalTaskVo localContext) 
{
    if (localContext == null || localContext.getID_PatientClericalTask()== null)
    {
        throw new CodingRuntimeException("Cannot get PatientClericalTaskVo on null Id ");
    }

    DomainFactory factory = getDomainFactory();
    PatientClericalTask domainPatientClericaltask = (PatientClericalTask) factory.getDomainObject(PatientClericalTask.class, localContext.getID_PatientClericalTask());

    if(domainPatientClericaltask==null)
    {
        return true;
    }

    if (domainPatientClericaltask.getVersion() > localContext.getVersion_PatientClericalTask())
    {
        return true;
    }

    return false;
}
项目:AvoinApotti    文件:PathologyDialogImpl.java   
public PatientClericalTaskVo getPatientClericalTask(OrderInvestigationRefVo resultSelected) 
{
    if(resultSelected == null || resultSelected.getID_OrderInvestigation() == null)
        throw new CodingRuntimeException("Can not get ResultSelected value on null Id.");

    StringBuffer hql = new StringBuffer();
    hql.append("select patClericalTask from PatientClericalTask as patClericalTask left join patClericalTask.investigation as orderInvestigation ");
    hql.append("where orderInvestigation.id = :orderId ");
    hql.append("order by patClericalTask.requestedDateTime desc");

    DomainFactory factory = getDomainFactory();
    List<?> list = factory.find(hql.toString(), new String[] {"orderId"}, new Object[] {resultSelected.getID_OrderInvestigation()});

    if (list!=null && list.size()>0)
    {
        return PatientClericalTaskVoAssembler.createPatientClericalTaskVoCollectionFromPatientClericalTask(list).get(0);
    }
    return null;

}
项目:openMAXIMS    文件:Logic.java   
private void populateScreenFromData(PatientClericalTaskVoCollection listClericalTasks) 
{
    form.grdClericalTask().getRows().clear();

    if(listClericalTasks == null || listClericalTasks.size() == 0)
        return;

    for(int i=0;i<listClericalTasks.size();i++)
    {
        PatientClericalTaskVo record=listClericalTasks.get(i);
        if(record == null)
            continue;

        addPatientClericalTaskDetailsRow(record);

    }

}
项目:openMAXIMS    文件:Logic.java   
protected void onGrdClericalTaskSelectionChanged()
{
    //FB latest changes for WDEV-13879 - 12.01.2012
    if (domain.getMosUser() == null)//WDEV-15411
    {
        engine.showMessage("Only MOS users can access this form! Current user is not a MOS user.");
        form.grdClericalTask().setValue(null);
        return ;
    }

    if (form.grdClericalTask().getValue() instanceof PatientClericalTaskVo)
    {
        form.getGlobalContext().Core.setPatientClericalTask(form.grdClericalTask().getValue());
        form.getGlobalContext().Core.setOpenPatientClericalTaskAsReadOnly(form.isReadOnly()); //WDEV-17124

        //WDEV-14080    
        PatientShort patientShort = new PatientShort(form.getGlobalContext().Core.getPatientClericalTask().getPatient().getID_Patient(), form.getGlobalContext().Core.getPatientClericalTask().getPatient().getVersion_Patient());
        form.getGlobalContext().Core.setPatientShort(patientShort);

        engine.open(form.getForms().Core.PatientClericalTaskDialog,false);//FB latest changes for WDEV-13879 - 13.01.2012(to hide [X] button when opening from Clerical Task Worklist ) 
    }

}
项目:openMAXIMS    文件:PatientClericalTaskDialogImpl.java   
public ims.core.vo.PatientClericalTaskVo savePatientClericalTask(ims.core.vo.PatientClericalTaskVo patientClericalTask) throws ims.domain.exceptions.StaleObjectException, ims.domain.exceptions.UniqueKeyViolationException
{
    if (patientClericalTask == null)

        throw new CodingRuntimeException("Cannot save patientClericalTask if null . ");

    if (!patientClericalTask.isValidated())
        throw new CodingRuntimeException("PatientClericalTaskVo not Validated");

    try
    {
        DomainFactory factory = getDomainFactory();
        PatientClericalTask clericalTask = PatientClericalTaskVoAssembler.extractPatientClericalTask(factory, patientClericalTask);

        factory.save(clericalTask);
        return PatientClericalTaskVoAssembler.create(clericalTask);
    }
    catch (UnqViolationUncheckedException e)
    {
        throw new UniqueKeyViolationException("A PatientClericalTask for this investigation already exist!", e);
    }
}
项目:openMAXIMS    文件:PatientClericalTaskDialogImpl.java   
public Boolean isStale(PatientClericalTaskVo localContext) 
{
    if (localContext == null || localContext.getID_PatientClericalTask()== null)
    {
        throw new CodingRuntimeException("Cannot get PatientClericalTaskVo on null Id ");
    }

    DomainFactory factory = getDomainFactory();
    PatientClericalTask domainPatientClericaltask = (PatientClericalTask) factory.getDomainObject(PatientClericalTask.class, localContext.getID_PatientClericalTask());

    if(domainPatientClericaltask==null)
    {
        return true;
    }

    if (domainPatientClericaltask.getVersion() > localContext.getVersion_PatientClericalTask())
    {
        return true;
    }

    return false;
}
项目:openMAXIMS    文件:PathologyDialogImpl.java   
public PatientClericalTaskVo getPatientClericalTask(OrderInvestigationRefVo resultSelected) 
{
    if(resultSelected == null || resultSelected.getID_OrderInvestigation() == null)
        throw new CodingRuntimeException("Can not get ResultSelected value on null Id.");

    StringBuffer hql = new StringBuffer();
    hql.append("select patClericalTask from PatientClericalTask as patClericalTask left join patClericalTask.investigation as orderInvestigation ");
    hql.append("where orderInvestigation.id = :orderId ");
    hql.append("order by patClericalTask.requestedDateTime desc");

    DomainFactory factory = getDomainFactory();
    List<?> list = factory.find(hql.toString(), new String[] {"orderId"}, new Object[] {resultSelected.getID_OrderInvestigation()});

    if (list!=null && list.size()>0)
    {
        return PatientClericalTaskVoAssembler.createPatientClericalTaskVoCollectionFromPatientClericalTask(list).get(0);
    }
    return null;

}
项目:openMAXIMS    文件:Logic.java   
private void populateScreenFromData(PatientClericalTaskVoCollection listClericalTasks) 
{
    form.grdClericalTask().getRows().clear();

    if(listClericalTasks == null || listClericalTasks.size() == 0)
        return;

    for(int i=0;i<listClericalTasks.size();i++)
    {
        PatientClericalTaskVo record=listClericalTasks.get(i);
        if(record == null)
            continue;

        addPatientClericalTaskDetailsRow(record);

    }

}
项目:openMAXIMS    文件:Logic.java   
protected void onGrdClericalTaskSelectionChanged()
{
    //FB latest changes for WDEV-13879 - 12.01.2012
    if (domain.getMosUser() == null)//WDEV-15411
    {
        engine.showMessage("Only MOS users can access this form! Current user is not a MOS user.");
        form.grdClericalTask().setValue(null);
        return ;
    }

    if (form.grdClericalTask().getValue() instanceof PatientClericalTaskVo)
    {
        form.getGlobalContext().Core.setPatientClericalTask(form.grdClericalTask().getValue());

        //WDEV-14080    
        PatientShort patientShort = new PatientShort(form.getGlobalContext().Core.getPatientClericalTask().getPatient().getID_Patient(), form.getGlobalContext().Core.getPatientClericalTask().getPatient().getVersion_Patient());
        form.getGlobalContext().Core.setPatientShort(patientShort);

        engine.open(form.getForms().Core.PatientClericalTaskDialog,false);//FB latest changes for WDEV-13879 - 13.01.2012(to hide [X] button when opening from Clerical Task Worklist ) 
    }

}
项目:openMAXIMS    文件:PatientClericalTaskDialogImpl.java   
public ims.core.vo.PatientClericalTaskVo savePatientClericalTask(ims.core.vo.PatientClericalTaskVo patientClericalTask) throws ims.domain.exceptions.StaleObjectException, ims.domain.exceptions.UniqueKeyViolationException
{
    if (patientClericalTask == null)

        throw new CodingRuntimeException("Cannot save patientClericalTask if null . ");

    if (!patientClericalTask.isValidated())
        throw new CodingRuntimeException("PatientClericalTaskVo not Validated");

    try
    {
        DomainFactory factory = getDomainFactory();
        PatientClericalTask clericalTask = PatientClericalTaskVoAssembler.extractPatientClericalTask(factory, patientClericalTask);

        factory.save(clericalTask);
        return PatientClericalTaskVoAssembler.create(clericalTask);
    }
    catch (UnqViolationUncheckedException e)
    {
        throw new UniqueKeyViolationException("A PatientClericalTask for this investigation already exist!", e);
    }
}
项目:openMAXIMS    文件:PatientClericalTaskDialogImpl.java   
public Boolean isStale(PatientClericalTaskVo localContext) 
{
    if (localContext == null || localContext.getID_PatientClericalTask()== null)
    {
        throw new CodingRuntimeException("Cannot get PatientClericalTaskVo on null Id ");
    }

    DomainFactory factory = getDomainFactory();
    PatientClericalTask domainPatientClericaltask = (PatientClericalTask) factory.getDomainObject(PatientClericalTask.class, localContext.getID_PatientClericalTask());

    if(domainPatientClericaltask==null)
    {
        return true;
    }

    if (domainPatientClericaltask.getVersion() > localContext.getVersion_PatientClericalTask())
    {
        return true;
    }

    return false;
}
项目:openMAXIMS    文件:PathologyDialogImpl.java   
public PatientClericalTaskVo getPatientClericalTask(OrderInvestigationRefVo resultSelected) 
{
    if(resultSelected == null || resultSelected.getID_OrderInvestigation() == null)
        throw new CodingRuntimeException("Can not get ResultSelected value on null Id.");

    StringBuffer hql = new StringBuffer();
    hql.append("select patClericalTask from PatientClericalTask as patClericalTask left join patClericalTask.investigation as orderInvestigation ");
    hql.append("where orderInvestigation.id = :orderId ");
    hql.append("order by patClericalTask.requestedDateTime desc");

    DomainFactory factory = getDomainFactory();
    List<?> list = factory.find(hql.toString(), new String[] {"orderId"}, new Object[] {resultSelected.getID_OrderInvestigation()});

    if (list!=null && list.size()>0)
    {
        return PatientClericalTaskVoAssembler.createPatientClericalTaskVoCollectionFromPatientClericalTask(list).get(0);
    }
    return null;

}
项目:openmaxims-linux    文件:Logic.java   
private void populateScreenFromData(PatientClericalTaskVoCollection listClericalTasks) 
{
    form.grdClericalTask().getRows().clear();

    if(listClericalTasks == null || listClericalTasks.size() == 0)
        return;

    for(int i=0;i<listClericalTasks.size();i++)
    {
        PatientClericalTaskVo record=listClericalTasks.get(i);
        if(record == null)
            continue;

        addPatientClericalTaskDetailsRow(record);

    }

}
项目:openmaxims-linux    文件:Logic.java   
protected void onGrdClericalTaskSelectionChanged()
{
    //FB latest changes for WDEV-13879 - 12.01.2012
    if (domain.getMosUser() == null)//WDEV-15411
    {
        engine.showMessage("Only MOS users can access this form! Current user is not a MOS user.");
        form.grdClericalTask().setValue(null);
        return ;
    }

    if (form.grdClericalTask().getValue() instanceof PatientClericalTaskVo)
    {
        form.getGlobalContext().Core.setPatientClericalTask(form.grdClericalTask().getValue());

        //WDEV-14080    
        PatientShort patientShort = new PatientShort(form.getGlobalContext().Core.getPatientClericalTask().getPatient().getID_Patient(), form.getGlobalContext().Core.getPatientClericalTask().getPatient().getVersion_Patient());
        form.getGlobalContext().Core.setPatientShort(patientShort);

        engine.open(form.getForms().Core.PatientClericalTaskDialog,false);//FB latest changes for WDEV-13879 - 13.01.2012(to hide [X] button when opening from Clerical Task Worklist ) 
    }

}
项目:openmaxims-linux    文件:PatientClericalTaskDialogImpl.java   
public ims.core.vo.PatientClericalTaskVo savePatientClericalTask(ims.core.vo.PatientClericalTaskVo patientClericalTask) throws ims.domain.exceptions.StaleObjectException, ims.domain.exceptions.UniqueKeyViolationException
{
    if (patientClericalTask == null)

        throw new CodingRuntimeException("Cannot save patientClericalTask if null . ");

    if (!patientClericalTask.isValidated())
        throw new CodingRuntimeException("PatientClericalTaskVo not Validated");

    try
    {
        DomainFactory factory = getDomainFactory();
        PatientClericalTask clericalTask = PatientClericalTaskVoAssembler.extractPatientClericalTask(factory, patientClericalTask);

        factory.save(clericalTask);
        return PatientClericalTaskVoAssembler.create(clericalTask);
    }
    catch (UnqViolationUncheckedException e)
    {
        throw new UniqueKeyViolationException("A PatientClericalTask for this investigation already exist!", e);
    }
}
项目:openmaxims-linux    文件:PatientClericalTaskDialogImpl.java   
public Boolean isStale(PatientClericalTaskVo localContext) 
{
    if (localContext == null || localContext.getID_PatientClericalTask()== null)
    {
        throw new CodingRuntimeException("Cannot get PatientClericalTaskVo on null Id ");
    }

    DomainFactory factory = getDomainFactory();
    PatientClericalTask domainPatientClericaltask = (PatientClericalTask) factory.getDomainObject(PatientClericalTask.class, localContext.getID_PatientClericalTask());

    if(domainPatientClericaltask==null)
    {
        return true;
    }

    if (domainPatientClericaltask.getVersion() > localContext.getVersion_PatientClericalTask())
    {
        return true;
    }

    return false;
}
项目:openmaxims-linux    文件:PathologyDialogImpl.java   
public PatientClericalTaskVo getPatientClericalTask(OrderInvestigationRefVo resultSelected) 
{
    if(resultSelected == null || resultSelected.getID_OrderInvestigation() == null)
        throw new CodingRuntimeException("Can not get ResultSelected value on null Id.");

    StringBuffer hql = new StringBuffer();
    hql.append("select patClericalTask from PatientClericalTask as patClericalTask left join patClericalTask.investigation as orderInvestigation ");
    hql.append("where orderInvestigation.id = :orderId ");
    hql.append("order by patClericalTask.requestedDateTime desc");

    DomainFactory factory = getDomainFactory();
    List<?> list = factory.find(hql.toString(), new String[] {"orderId"}, new Object[] {resultSelected.getID_OrderInvestigation()});

    if (list!=null && list.size()>0)
    {
        return PatientClericalTaskVoAssembler.createPatientClericalTaskVoCollectionFromPatientClericalTask(list).get(0);
    }
    return null;

}
项目:AvoinApotti    文件:Logic.java   
private void populateGrid(PatientClericalTaskVoCollection patClericalTaskCollection) 
{
    form.grdPatClericalTask().getRows().clear();
    if (patClericalTaskCollection==null)
    {
        return;
    }

    for (int i=0;i<patClericalTaskCollection.size();i++)
    {
        PatientClericalTaskVo patClericalTask = patClericalTaskCollection.get(i);

        if (patClericalTask==null)
        {
            continue;
        }

        grdPatClericalTaskRow row = form.grdPatClericalTask().getRows().newRow();
        row.setcolRequestor(patClericalTask.getRequestor().toString());
        row.setcolRequestedDateTime(patClericalTask.getRequestedDateTime().toString());
        row.setcolAllocatedTo(patClericalTask.getAllocatedTo().toString());
        row.setcolComment(patClericalTask.getComment());
        row.setTooltipForcolComment(patClericalTask.getComment());
        if (patClericalTask.getCompletedDateTimeIsNotNull())
        {
            row.setcolCompletedOn(patClericalTask.getCompletedDateTime().toString());
        }
        row.setValue(patClericalTask);

    }

    if (form.getLocalContext().getlocalContextClericalTaskIsNotNull())
    {
        form.getLocalContext().setlocalContextClericalTask(domain.getPatientClericalTask(form.getLocalContext().getlocalContextClericalTask()));

        form.grdPatClericalTask().setValue(form.getLocalContext().getlocalContextClericalTask());
    }   
}
项目:AvoinApotti    文件:Logic.java   
private void populateInstanceControls(PatientClericalTaskVo patientClericalTask ) 
{
    clearInstanceControls();

    if (patientClericalTask==null)
        return;

    form.ccRequestor().setValue(patientClericalTask.getRequestor());
    form.dtimRequested().setValue(patientClericalTask.getRequestedDateTime());
    form.ccAllocate().setValue(patientClericalTask.getAllocatedTo());
    form.txtComment().setValue(patientClericalTask.getComment());
    form.ccCompleted().setValue(patientClericalTask.getCompletedBy());
    form.dtimCompleted().setValue(patientClericalTask.getCompletedDateTime());
}
项目:AvoinApotti    文件:Logic.java   
private void getSelectedInstance() 
{
    if(form.grdPatClericalTask().getValue() instanceof PatientClericalTaskVo)
    {
        form.getLocalContext().setlocalContextClericalTask(domain.getPatientClericalTask(form.grdPatClericalTask().getValue()));
        populateInstanceControls(form.getLocalContext().getlocalContextClericalTask()); 
    }   

}
项目:AvoinApotti    文件:PatientClericalTaskDialogImpl.java   
public PatientClericalTaskVo getPatientClericalTask(PatientClericalTaskRefVo patientClericalTaskId) 
{
    if (patientClericalTaskId == null || patientClericalTaskId.getID_PatientClericalTask() == null)
    {
        throw new CodingRuntimeException("Cannot get PatientClericalTaskRefVo on null Id ");
    }

    DomainFactory factory = getDomainFactory();

    PatientClericalTask domainPatientClericalTask = (PatientClericalTask) factory.getDomainObject(PatientClericalTask.class, patientClericalTaskId.getID_PatientClericalTask());

    return PatientClericalTaskVoAssembler.create(domainPatientClericalTask);

}
项目:openMAXIMS    文件:Logic.java   
private void populateGrid(PatientClericalTaskVoCollection patClericalTaskCollection) 
{
    form.grdPatClericalTask().getRows().clear();
    if (patClericalTaskCollection==null)
    {
        return;
    }

    for (int i=0;i<patClericalTaskCollection.size();i++)
    {
        PatientClericalTaskVo patClericalTask = patClericalTaskCollection.get(i);

        if (patClericalTask==null)
        {
            continue;
        }

        grdPatClericalTaskRow row = form.grdPatClericalTask().getRows().newRow();
        row.setcolRequestor(patClericalTask.getRequestor().toString());
        row.setcolRequestedDateTime(patClericalTask.getRequestedDateTime().toString());
        row.setcolAllocatedTo(patClericalTask.getAllocatedTo().toString());
        row.setcolComment(patClericalTask.getComment());
        row.setTooltipForcolComment(patClericalTask.getComment());
        if (patClericalTask.getCompletedDateTimeIsNotNull())
        {
            row.setcolCompletedOn(patClericalTask.getCompletedDateTime().toString());
        }
        row.setValue(patClericalTask);

    }

    if (form.getLocalContext().getlocalContextClericalTaskIsNotNull())
    {
        form.getLocalContext().setlocalContextClericalTask(domain.getPatientClericalTask(form.getLocalContext().getlocalContextClericalTask()));

        form.grdPatClericalTask().setValue(form.getLocalContext().getlocalContextClericalTask());
    }   
}
项目:openMAXIMS    文件:Logic.java   
private void populateInstanceControls(PatientClericalTaskVo patientClericalTask ) 
{
    clearInstanceControls();

    if (patientClericalTask==null)
        return;

    form.ccRequestor().setValue(patientClericalTask.getRequestor());
    form.dtimRequested().setValue(patientClericalTask.getRequestedDateTime());
    form.ccAllocate().setValue(patientClericalTask.getAllocatedTo());
    form.txtComment().setValue(patientClericalTask.getComment());
    form.ccCompleted().setValue(patientClericalTask.getCompletedBy());
    form.dtimCompleted().setValue(patientClericalTask.getCompletedDateTime());
}
项目:openMAXIMS    文件:Logic.java   
private void getSelectedInstance() 
{
    if(form.grdPatClericalTask().getValue() instanceof PatientClericalTaskVo)
    {
        form.getLocalContext().setlocalContextClericalTask(domain.getPatientClericalTask(form.grdPatClericalTask().getValue()));
        populateInstanceControls(form.getLocalContext().getlocalContextClericalTask()); 
    }   

}
项目:openMAXIMS    文件:PatientClericalTaskDialogImpl.java   
public PatientClericalTaskVo getPatientClericalTask(PatientClericalTaskRefVo patientClericalTaskId) 
{
    if (patientClericalTaskId == null || patientClericalTaskId.getID_PatientClericalTask() == null)
    {
        throw new CodingRuntimeException("Cannot get PatientClericalTaskRefVo on null Id ");
    }

    DomainFactory factory = getDomainFactory();

    PatientClericalTask domainPatientClericalTask = (PatientClericalTask) factory.getDomainObject(PatientClericalTask.class, patientClericalTaskId.getID_PatientClericalTask());

    return PatientClericalTaskVoAssembler.create(domainPatientClericalTask);

}
项目:openMAXIMS    文件:Logic.java   
private void populateGrid(PatientClericalTaskVoCollection patClericalTaskCollection) 
{
    form.grdPatClericalTask().getRows().clear();
    if (patClericalTaskCollection==null)
    {
        return;
    }

    for (int i=0;i<patClericalTaskCollection.size();i++)
    {
        PatientClericalTaskVo patClericalTask = patClericalTaskCollection.get(i);

        if (patClericalTask==null)
        {
            continue;
        }

        grdPatClericalTaskRow row = form.grdPatClericalTask().getRows().newRow();
        row.setcolRequestor(patClericalTask.getRequestor().toString());
        row.setcolRequestedDateTime(patClericalTask.getRequestedDateTime().toString());
        row.setcolAllocatedTo(patClericalTask.getAllocatedTo().toString());
        row.setcolComment(patClericalTask.getComment());
        row.setTooltipForcolComment(patClericalTask.getComment());
        if (patClericalTask.getCompletedDateTimeIsNotNull())
        {
            row.setcolCompletedOn(patClericalTask.getCompletedDateTime().toString());
        }
        row.setValue(patClericalTask);

    }

    if (form.getLocalContext().getlocalContextClericalTaskIsNotNull())
    {
        form.getLocalContext().setlocalContextClericalTask(domain.getPatientClericalTask(form.getLocalContext().getlocalContextClericalTask()));

        form.grdPatClericalTask().setValue(form.getLocalContext().getlocalContextClericalTask());
    }   
}
项目:openMAXIMS    文件:Logic.java   
private void populateInstanceControls(PatientClericalTaskVo patientClericalTask ) 
{
    clearInstanceControls();

    if (patientClericalTask==null)
        return;

    form.ccRequestor().setValue(patientClericalTask.getRequestor());
    form.dtimRequested().setValue(patientClericalTask.getRequestedDateTime());
    form.ccAllocate().setValue(patientClericalTask.getAllocatedTo());
    form.txtComment().setValue(patientClericalTask.getComment());
    form.ccCompleted().setValue(patientClericalTask.getCompletedBy());
    form.dtimCompleted().setValue(patientClericalTask.getCompletedDateTime());
}
项目:openMAXIMS    文件:Logic.java   
private void getSelectedInstance() 
{
    if(form.grdPatClericalTask().getValue() instanceof PatientClericalTaskVo)
    {
        form.getLocalContext().setlocalContextClericalTask(domain.getPatientClericalTask(form.grdPatClericalTask().getValue()));
        populateInstanceControls(form.getLocalContext().getlocalContextClericalTask()); 
    }   

}
项目:openMAXIMS    文件:PatientClericalTaskDialogImpl.java   
public PatientClericalTaskVo getPatientClericalTask(PatientClericalTaskRefVo patientClericalTaskId) 
{
    if (patientClericalTaskId == null || patientClericalTaskId.getID_PatientClericalTask() == null)
    {
        throw new CodingRuntimeException("Cannot get PatientClericalTaskRefVo on null Id ");
    }

    DomainFactory factory = getDomainFactory();

    PatientClericalTask domainPatientClericalTask = (PatientClericalTask) factory.getDomainObject(PatientClericalTask.class, patientClericalTaskId.getID_PatientClericalTask());

    return PatientClericalTaskVoAssembler.create(domainPatientClericalTask);

}
项目:openmaxims-linux    文件:Logic.java   
private void populateGrid(PatientClericalTaskVoCollection patClericalTaskCollection) 
{
    form.grdPatClericalTask().getRows().clear();
    if (patClericalTaskCollection==null)
    {
        return;
    }

    for (int i=0;i<patClericalTaskCollection.size();i++)
    {
        PatientClericalTaskVo patClericalTask = patClericalTaskCollection.get(i);

        if (patClericalTask==null)
        {
            continue;
        }

        grdPatClericalTaskRow row = form.grdPatClericalTask().getRows().newRow();
        row.setcolRequestor(patClericalTask.getRequestor().toString());
        row.setcolRequestedDateTime(patClericalTask.getRequestedDateTime().toString());
        row.setcolAllocatedTo(patClericalTask.getAllocatedTo().toString());
        row.setcolComment(patClericalTask.getComment());
        row.setTooltipForcolComment(patClericalTask.getComment());
        if (patClericalTask.getCompletedDateTimeIsNotNull())
        {
            row.setcolCompletedOn(patClericalTask.getCompletedDateTime().toString());
        }
        row.setValue(patClericalTask);

    }

    if (form.getLocalContext().getlocalContextClericalTaskIsNotNull())
    {
        form.getLocalContext().setlocalContextClericalTask(domain.getPatientClericalTask(form.getLocalContext().getlocalContextClericalTask()));

        form.grdPatClericalTask().setValue(form.getLocalContext().getlocalContextClericalTask());
    }   
}
项目:openmaxims-linux    文件:Logic.java   
private void populateInstanceControls(PatientClericalTaskVo patientClericalTask ) 
{
    clearInstanceControls();

    if (patientClericalTask==null)
        return;

    form.ccRequestor().setValue(patientClericalTask.getRequestor());
    form.dtimRequested().setValue(patientClericalTask.getRequestedDateTime());
    form.ccAllocate().setValue(patientClericalTask.getAllocatedTo());
    form.txtComment().setValue(patientClericalTask.getComment());
    form.ccCompleted().setValue(patientClericalTask.getCompletedBy());
    form.dtimCompleted().setValue(patientClericalTask.getCompletedDateTime());
}
项目:openmaxims-linux    文件:Logic.java   
private void getSelectedInstance() 
{
    if(form.grdPatClericalTask().getValue() instanceof PatientClericalTaskVo)
    {
        form.getLocalContext().setlocalContextClericalTask(domain.getPatientClericalTask(form.grdPatClericalTask().getValue()));
        populateInstanceControls(form.getLocalContext().getlocalContextClericalTask()); 
    }   

}
项目:openmaxims-linux    文件:PatientClericalTaskDialogImpl.java   
public PatientClericalTaskVo getPatientClericalTask(PatientClericalTaskRefVo patientClericalTaskId) 
{
    if (patientClericalTaskId == null || patientClericalTaskId.getID_PatientClericalTask() == null)
    {
        throw new CodingRuntimeException("Cannot get PatientClericalTaskRefVo on null Id ");
    }

    DomainFactory factory = getDomainFactory();

    PatientClericalTask domainPatientClericalTask = (PatientClericalTask) factory.getDomainObject(PatientClericalTask.class, patientClericalTaskId.getID_PatientClericalTask());

    return PatientClericalTaskVoAssembler.create(domainPatientClericalTask);

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

     grdClericalTaskRow row = form.grdClericalTask().getRows().newRow();

      PatientIdListVoCollection identifiers = record.getPatient().getIdentifiers();

     for (int i=0;i<identifiers.size();i++)
     {
        if (identifiers.get(i).getType().equals(PatIdType.HOSPNUM))
            row.setcolHospitalNo(identifiers.get(i).getValue().toString());
        if (identifiers.get(i).getType().equals(PatIdType.NHSN))
            row.setcolNHSNumber(identifiers.get(i).getValue().toString());  
     }  

     row.setcolSurname(record.getPatient().getName().getSurname()); 
     row.setTooltipForcolSurname(record.getPatient().getName().getSurname());

     row.setcolForname(record.getPatient().getName().getForename());
     row.setTooltipForcolForname(record.getPatient().getName().getForename());

     row.setcolDOB(record.getPatient().getDob());

     row.setcolRequestor(record.getRequestor().toString());
     row.setTooltipForcolRequestor(record.getRequestor().toString());

     row.setcolAllocated(record.getAllocatedTo().toString());
     row.setTooltipForcolAllocated(record.getAllocatedTo().toString());

     row.setcolRequestedDateTime(record.getRequestedDateTime().toString());

     row.setcolStatus(record.getStatus().toString());

     if (record.getStatus().equals(PatientClericalTaskStatus.COMPLETED) && record.getCompletedBy() != null)
     {
         row.setTooltipForcolStatus("Completed By: "+record.getCompletedBy().toString()+"<br>Completed On: "+record.getCompletedDateTime().toString());//
     }
    row.setValue(record);
}
项目:openMAXIMS    文件:Logic.java   
private void addPatientClericalTaskDetailsRow(PatientClericalTaskVo record) 
{
    if(record == null)
        return;

     grdClericalTaskRow row = form.grdClericalTask().getRows().newRow();

      PatientIdListVoCollection identifiers = record.getPatient().getIdentifiers();

     for (int i=0;i<identifiers.size();i++)
     {
        if (identifiers.get(i).getType().equals(PatIdType.HOSPNUM))
            row.setcolHospitalNo(identifiers.get(i).getValue().toString());
        if (identifiers.get(i).getType().equals(PatIdType.NHSN))
            row.setcolNHSNumber(identifiers.get(i).getValue().toString());  
     }  

     row.setcolSurname(record.getPatient().getName().getSurname()); 
     row.setTooltipForcolSurname(record.getPatient().getName().getSurname());

     row.setcolForname(record.getPatient().getName().getForename());
     row.setTooltipForcolForname(record.getPatient().getName().getForename());

     row.setcolDOB(record.getPatient().getDob());

     row.setcolRequestor(record.getRequestor().toString());
     row.setTooltipForcolRequestor(record.getRequestor().toString());

     row.setcolAllocated(record.getAllocatedTo().toString());
     row.setTooltipForcolAllocated(record.getAllocatedTo().toString());

     row.setcolRequestedDateTime(record.getRequestedDateTime().toString());

     row.setcolStatus(record.getStatus().toString());

     if (record.getStatus().equals(PatientClericalTaskStatus.COMPLETED) && record.getCompletedBy() != null)
     {
         row.setTooltipForcolStatus("Completed By: "+record.getCompletedBy().toString()+"<br>Completed On: "+record.getCompletedDateTime().toString());//
     }
    row.setValue(record);
}
项目:openMAXIMS    文件:Logic.java   
private void addPatientClericalTaskDetailsRow(PatientClericalTaskVo record) 
{
    if(record == null)
        return;

     grdClericalTaskRow row = form.grdClericalTask().getRows().newRow();

      PatientIdListVoCollection identifiers = record.getPatient().getIdentifiers();

     for (int i=0;i<identifiers.size();i++)
     {
        if (identifiers.get(i).getType().equals(PatIdType.HOSPNUM))
            row.setcolHospitalNo(identifiers.get(i).getValue().toString());
        if (identifiers.get(i).getType().equals(PatIdType.NHSN))
            row.setcolNHSNumber(identifiers.get(i).getValue().toString());  
     }  

     row.setcolSurname(record.getPatient().getName().getSurname()); 
     row.setTooltipForcolSurname(record.getPatient().getName().getSurname());

     row.setcolForname(record.getPatient().getName().getForename());
     row.setTooltipForcolForname(record.getPatient().getName().getForename());

     row.setcolDOB(record.getPatient().getDob());

     row.setcolRequestor(record.getRequestor().toString());
     row.setTooltipForcolRequestor(record.getRequestor().toString());

     row.setcolAllocated(record.getAllocatedTo().toString());
     row.setTooltipForcolAllocated(record.getAllocatedTo().toString());

     row.setcolRequestedDateTime(record.getRequestedDateTime().toString());

     row.setcolStatus(record.getStatus().toString());

     if (record.getStatus().equals(PatientClericalTaskStatus.COMPLETED) && record.getCompletedBy() != null)
     {
         row.setTooltipForcolStatus("Completed By: "+record.getCompletedBy().toString()+"<br>Completed On: "+record.getCompletedDateTime().toString());//
     }
    row.setValue(record);
}
项目:openmaxims-linux    文件:Logic.java   
private void addPatientClericalTaskDetailsRow(PatientClericalTaskVo record) 
{
    if(record == null)
        return;

     grdClericalTaskRow row = form.grdClericalTask().getRows().newRow();

      PatientIdListVoCollection identifiers = record.getPatient().getIdentifiers();

     for (int i=0;i<identifiers.size();i++)
     {
        if (identifiers.get(i).getType().equals(PatIdType.HOSPNUM))
            row.setcolHospitalNo(identifiers.get(i).getValue().toString());
        if (identifiers.get(i).getType().equals(PatIdType.NHSN))
            row.setcolNHSNumber(identifiers.get(i).getValue().toString());  
     }  

     row.setcolSurname(record.getPatient().getName().getSurname()); 
     row.setTooltipForcolSurname(record.getPatient().getName().getSurname());

     row.setcolForname(record.getPatient().getName().getForename());
     row.setTooltipForcolForname(record.getPatient().getName().getForename());

     row.setcolDOB(record.getPatient().getDob());

     row.setcolRequestor(record.getRequestor().toString());
     row.setTooltipForcolRequestor(record.getRequestor().toString());

     row.setcolAllocated(record.getAllocatedTo().toString());
     row.setTooltipForcolAllocated(record.getAllocatedTo().toString());

     row.setcolRequestedDateTime(record.getRequestedDateTime().toString());

     row.setcolStatus(record.getStatus().toString());

     if (record.getStatus().equals(PatientClericalTaskStatus.COMPLETED) && record.getCompletedBy() != null)
     {
         row.setTooltipForcolStatus("Completed By: "+record.getCompletedBy().toString()+"<br>Completed On: "+record.getCompletedDateTime().toString());//
     }
    row.setValue(record);
}