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

项目:AvoinApotti    文件:Logic.java   
private void populateScreenFromMosVo(MemberOfStaffShortVo mosVo)
{
    clearDetailControls();
    if (mosVo.getNameIsNotNull())
    {
        form.txtSurname().setValue(mosVo.getName().getSurname());
        form.txtForeName().setValue(mosVo.getName().getForename());
        form.txtMiddleName().setValue(mosVo.getName().getMiddleName());
        form.cmbTitle().setValue(mosVo.getName().getTitle());
    }
    form.txtInitials().setValue(mosVo.getInitials());
    form.txtSignatureBlock().setValue(mosVo.getSignatureBlock());
    form.cmbType().setValue(mosVo.getStaffType());
    form.txtSDSRole().setValue(mosVo.getSdsRoleId());
    //wdev-16588
    if( mosVo != null)
    {
        MemberOfStaffWithAppUserLiteVo tempVo = domain.getMemberOffStaffWithAppUserById(mosVo);
        form.txtUserName().setValue(tempVo != null && tempVo.getAppUserIsNotNull() ? tempVo.getAppUser().getUsername():"");
    }
    //------------
    if (mosVo.getHcpIsNotNull())
    {
        if (mosVo.getHcp().getHcpTypeIsNotNull())
        {
            form.getGlobalContext().setHcp(mosVo.getHcp());
            if (mosVo.getHcp().getHcpType().getParent() == null)
                form.cmbHcpDiciplineDetails().setValue(mosVo.getHcp().getHcpType());
            else
                form.cmbHcpDiciplineDetails().setValue(mosVo.getHcp().getHcpType().getParent());
        }
        displayHCPDetails();
    }

    populateMappingsGrid(mosVo.getCodeMappings());
    populateContactsGrid(mosVo.getCommChannels());
}
项目:openMAXIMS    文件:Logic.java   
private void populateScreenFromMosVo(MemberOfStaffShortVo mosVo)
{
    clearDetailControls();
    if (mosVo.getNameIsNotNull())
    {
        form.txtSurname().setValue(mosVo.getName().getSurname());
        form.txtForeName().setValue(mosVo.getName().getForename());
        form.txtMiddleName().setValue(mosVo.getName().getMiddleName());
        form.cmbTitle().setValue(mosVo.getName().getTitle());
    }
    form.txtInitials().setValue(mosVo.getInitials());
    form.txtSignatureBlock().setValue(mosVo.getSignatureBlock());
    form.cmbType().setValue(mosVo.getStaffType());
    form.txtSDSRole().setValue(mosVo.getSdsRoleId());
    //wdev-16588
    if( mosVo != null)
    {
        MemberOfStaffWithAppUserLiteVo tempVo = domain.getMemberOffStaffWithAppUserById(mosVo);
        form.txtUserName().setValue(tempVo != null && tempVo.getAppUserIsNotNull() ? tempVo.getAppUser().getUsername():"");
    }
    //------------
    if (mosVo.getHcpIsNotNull())
    {
        if (mosVo.getHcp().getHcpTypeIsNotNull())
        {
            form.getGlobalContext().setHcp(mosVo.getHcp());
            if (mosVo.getHcp().getHcpType().getParent() == null)
                form.cmbHcpDiciplineDetails().setValue(mosVo.getHcp().getHcpType());
            else
                form.cmbHcpDiciplineDetails().setValue(mosVo.getHcp().getHcpType().getParent());
        }
        displayHCPDetails();
    }

    populateMappingsGrid(mosVo.getCodeMappings());
    populateContactsGrid(mosVo.getCommChannels());
}
项目:openMAXIMS    文件:Logic.java   
private void populateScreenFromMosVo(MemberOfStaffShortVo mosVo)
{
    clearDetailControls();
    if (mosVo.getNameIsNotNull())
    {
        form.txtSurname().setValue(mosVo.getName().getSurname());
        form.txtForeName().setValue(mosVo.getName().getForename());
        form.txtMiddleName().setValue(mosVo.getName().getMiddleName());
        form.cmbTitle().setValue(mosVo.getName().getTitle());
    }
    form.txtInitials().setValue(mosVo.getInitials());
    form.txtSignatureBlock().setValue(mosVo.getSignatureBlock());
    form.cmbType().setValue(mosVo.getStaffType());
    form.txtSDSRole().setValue(mosVo.getSdsRoleId());
    //wdev-16588
    if( mosVo != null)
    {
        MemberOfStaffWithAppUserLiteVo tempVo = domain.getMemberOffStaffWithAppUserById(mosVo);
        form.txtUserName().setValue(tempVo != null && tempVo.getAppUserIsNotNull() ? tempVo.getAppUser().getUsername():"");
    }
    //------------
    if (mosVo.getHcpIsNotNull())
    {
        if (mosVo.getHcp().getHcpTypeIsNotNull())
        {
            form.getGlobalContext().setHcp(mosVo.getHcp());
            if (mosVo.getHcp().getHcpType().getParent() == null)
                form.cmbHcpDiciplineDetails().setValue(mosVo.getHcp().getHcpType());
            else
                form.cmbHcpDiciplineDetails().setValue(mosVo.getHcp().getHcpType().getParent());
        }
        displayHCPDetails();
    }

    populateMappingsGrid(mosVo.getCodeMappings());
    populateContactsGrid(mosVo.getCommChannels());
}
项目:openmaxims-linux    文件:Logic.java   
private void populateScreenFromMosVo(MemberOfStaffShortVo mosVo)
{
    clearDetailControls();
    if (mosVo.getNameIsNotNull())
    {
        form.txtSurname().setValue(mosVo.getName().getSurname());
        form.txtForeName().setValue(mosVo.getName().getForename());
        form.txtMiddleName().setValue(mosVo.getName().getMiddleName());
        form.cmbTitle().setValue(mosVo.getName().getTitle());
    }
    form.txtInitials().setValue(mosVo.getInitials());
    form.txtSignatureBlock().setValue(mosVo.getSignatureBlock());
    form.cmbType().setValue(mosVo.getStaffType());
    form.txtSDSRole().setValue(mosVo.getSdsRoleId());
    //wdev-16588
    if( mosVo != null)
    {
        MemberOfStaffWithAppUserLiteVo tempVo = domain.getMemberOffStaffWithAppUserById(mosVo);
        form.txtUserName().setValue(tempVo != null && tempVo.getAppUserIsNotNull() ? tempVo.getAppUser().getUsername():"");
    }
    //------------
    if (mosVo.getHcpIsNotNull())
    {
        if (mosVo.getHcp().getHcpTypeIsNotNull())
        {
            form.getGlobalContext().setHcp(mosVo.getHcp());
            if (mosVo.getHcp().getHcpType().getParent() == null)
                form.cmbHcpDiciplineDetails().setValue(mosVo.getHcp().getHcpType());
            else
                form.cmbHcpDiciplineDetails().setValue(mosVo.getHcp().getHcpType().getParent());
        }
        displayHCPDetails();
    }

    populateMappingsGrid(mosVo.getCodeMappings());
    populateContactsGrid(mosVo.getCommChannels());
}
项目:AvoinApotti    文件:MosAdminImpl.java   
public MemberOfStaffWithAppUserLiteVo getMemberOffStaffWithAppUserById(MemberOfStaffRefVo memberOfStaffRefId)
{
    DomainFactory factory = getDomainFactory();
    return MemberOfStaffWithAppUserLiteVoAssembler.create((MemberOfStaff)factory.getDomainObject(MemberOfStaff.class, memberOfStaffRefId.getID_MemberOfStaff()));

}
项目:openMAXIMS    文件:MosAdminImpl.java   
public MemberOfStaffWithAppUserLiteVo getMemberOffStaffWithAppUserById(MemberOfStaffRefVo memberOfStaffRefId)
{
    DomainFactory factory = getDomainFactory();
    return MemberOfStaffWithAppUserLiteVoAssembler.create((MemberOfStaff)factory.getDomainObject(MemberOfStaff.class, memberOfStaffRefId.getID_MemberOfStaff()));

}
项目:openMAXIMS    文件:MosAdminImpl.java   
public MemberOfStaffWithAppUserLiteVo getMemberOffStaffWithAppUserById(MemberOfStaffRefVo memberOfStaffRefId)
{
    DomainFactory factory = getDomainFactory();
    return MemberOfStaffWithAppUserLiteVoAssembler.create((MemberOfStaff)factory.getDomainObject(MemberOfStaff.class, memberOfStaffRefId.getID_MemberOfStaff()));

}
项目:openmaxims-linux    文件:MosAdminImpl.java   
public MemberOfStaffWithAppUserLiteVo getMemberOffStaffWithAppUserById(MemberOfStaffRefVo memberOfStaffRefId)
{
    DomainFactory factory = getDomainFactory();
    return MemberOfStaffWithAppUserLiteVoAssembler.create((MemberOfStaff)factory.getDomainObject(MemberOfStaff.class, memberOfStaffRefId.getID_MemberOfStaff()));

}