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

项目:AvoinApotti    文件:ADTImpl.java   
public PrivateInsuranceCompanyVo getPrivateInsuranceCompany(String extId,TaxonomyType taxonomyType)
{
    if (extId == null || taxonomyType == null)
        return null;

    DomainFactory factory = getDomainFactory();
    String hql = " from PrivateInsuranceCompany company " +
    " join company.codeMappings as cm" +
    " where cm.taxonomyName = :taxType " + 
    " and cm.taxonomyCode = :extId ";

    List<?> companyList = factory.find(hql,new String[]{"taxType", "extId"}, new Object[]{getDomLookup(taxonomyType),extId});

    if (companyList != null && companyList.size() > 0)
    {
        PrivateInsuranceCompany company = (PrivateInsuranceCompany)companyList.get(0);
        return PrivateInsuranceCompanyVoAssembler.create(company);
    }
    return null;
    }
项目:openMAXIMS    文件:Logic.java   
private void populateInstanceControlsFromData(PrivateInsuranceCompanyVo privateInsuranceCompanyVo) 
{

    //Clear instance controls
    clearInstanceControls();

    // Terminate function on null value parameter
    if (privateInsuranceCompanyVo == null)
        return;

    // Set value to instance controls
    form.ctnDetails().txtCompanyName().setValue(privateInsuranceCompanyVo.getName());
    AddressVo addressVo = privateInsuranceCompanyVo.getAddress();
    if(addressVo!=null){
        form.ctnDetails().txtAddress1().setValue(addressVo.getLine1());
        form.ctnDetails().txtAddress2().setValue(addressVo.getLine2());
        form.ctnDetails().txtAddress3().setValue(addressVo.getLine3());
        form.ctnDetails().txtAddress4().setValue(addressVo.getLine4());
        form.ctnDetails().txtAddress5().setValue(addressVo.getLine5());
        form.ctnDetails().txtPostcode().setValue(addressVo.getPostCode());
    }

    form.ctnDetails().chkActive().setValue(Boolean.TRUE.equals(privateInsuranceCompanyVo.getIsActive()));
    populateOrgMappingsGrid(privateInsuranceCompanyVo.getCodeMappings());
}
项目:openMAXIMS    文件:ADTImpl.java   
public PrivateInsuranceCompanyVo getPrivateInsuranceCompany(String extId,TaxonomyType taxonomyType)
{
    if (extId == null || taxonomyType == null)
        return null;

    DomainFactory factory = getDomainFactory();
    String hql = " from PrivateInsuranceCompany company " +
    " join company.codeMappings as cm" +
    " where cm.taxonomyName = :taxType " + 
    " and cm.taxonomyCode = :extId ";

    List<?> companyList = factory.find(hql,new String[]{"taxType", "extId"}, new Object[]{getDomLookup(taxonomyType),extId});

    if (companyList != null && companyList.size() > 0)
    {
        PrivateInsuranceCompany company = (PrivateInsuranceCompany)companyList.get(0);
        return PrivateInsuranceCompanyVoAssembler.create(company);
    }
    return null;
    }
项目:openMAXIMS    文件:ADTImpl.java   
public PrivateInsuranceCompanyVo getPrivateInsuranceCompany(String extId,TaxonomyType taxonomyType)
{
    if (extId == null || taxonomyType == null)
        return null;

    DomainFactory factory = getDomainFactory();
    String hql = " from PrivateInsuranceCompany company " +
    " join company.codeMappings as cm" +
    " where cm.taxonomyName = :taxType " + 
    " and cm.taxonomyCode = :extId ";

    List<?> companyList = factory.find(hql,new String[]{"taxType", "extId"}, new Object[]{getDomLookup(taxonomyType),extId});

    if (companyList != null && companyList.size() > 0)
    {
        PrivateInsuranceCompany company = (PrivateInsuranceCompany)companyList.get(0);
        return PrivateInsuranceCompanyVoAssembler.create(company);
    }
    return null;
    }
项目:openmaxims-linux    文件:ADTImpl.java   
public PrivateInsuranceCompanyVo getPrivateInsuranceCompany(String extId,TaxonomyType taxonomyType)
{
    if (extId == null || taxonomyType == null)
        return null;

    DomainFactory factory = getDomainFactory();
    String hql = " from PrivateInsuranceCompany company " +
    " join company.codeMappings as cm" +
    " where cm.taxonomyName = :taxType " + 
    " and cm.taxonomyCode = :extId ";

    List<?> companyList = factory.find(hql,new String[]{"taxType", "extId"}, new Object[]{getDomLookup(taxonomyType),extId});

    if (companyList != null && companyList.size() > 0)
    {
        PrivateInsuranceCompany company = (PrivateInsuranceCompany)companyList.get(0);
        return PrivateInsuranceCompanyVoAssembler.create(company);
    }
    return null;
    }
项目:openMAXIMS    文件:Logic.java   
private String getUpperCompanyName() 
{
    String companyName = form.ctnDetails().txtCompanyName().getValue();

    if(companyName == null)
        return " ";

    companyName = companyName.replaceAll("[^a-zA-Z]", "");
    companyName = companyName.toUpperCase().substring(0, Math.min(PrivateInsuranceCompanyVo.getUpperNameMaxLength(), companyName.length()));

    return (companyName != null && companyName.length() > 0) ? companyName : " ";
}