Java 类ims.admin.vo.DocumentConversionSettingsVo 实例源码

项目:AvoinApotti    文件:Logic.java   
public void loadData() throws PresentationLogicException
{
    DocumentConversionSettingsVo record = domain.getConfiguration(form.getGlobalContext().Admin.getCurrentJobConfiguration());
    form.getLocalContext().setRecord(record);
    populateScreenFromData(record);

    form.Group1().setValue(record != null && record.getAllRecords() ? Group1Enumeration.rdoFull : Group1Enumeration.rdoLastUpdate);     
    if (record != null && record.getFromDateIsNotNull() && record.getToDateIsNotNull())
    {
        form.chkPeriod().setValue(true);
        form.dtimFrom().setValue(record.getFromDate());
        form.dtimTo().setValue(record.getToDate());
    }
    else
    {
        form.chkPeriod().setValue(false);
    }

    onChkPeriodValueChanged();
}
项目:AvoinApotti    文件:Logic.java   
public DocumentConversionSettingsVo getData()
{
    DocumentConversionSettingsVo record = populateDataFromScreen(form.getLocalContext().getRecord());
    record.setConfiguredJob(form.getGlobalContext().Admin.getCurrentJobConfiguration());
    record.setAllRecords(form.Group1().getValue().equals(Group1Enumeration.rdoFull) ? true : false);
    if (form.chkPeriod().getValue() &&
            form.dtimFrom().getValue() != null &&
                form.dtimTo().getValue() != null &&
                    form.dtimFrom().getValue().isLessOrEqualThan(form.dtimTo().getValue()))
    {           
        record.setFromDate(form.dtimFrom().getValue());
        record.setToDate(form.dtimTo().getValue());
    }
    else
    {
        record.setFromDate(null);
        record.setToDate(null);
    }

    return record;
}
项目:openMAXIMS    文件:Logic.java   
public void loadData() throws PresentationLogicException
{
    DocumentConversionSettingsVo record = domain.getConfiguration(form.getGlobalContext().Admin.getCurrentJobConfiguration());
    form.getLocalContext().setRecord(record);
    populateScreenFromData(record);

    form.Group1().setValue(record != null && record.getAllRecords() ? Group1Enumeration.rdoFull : Group1Enumeration.rdoLastUpdate);     
    if (record != null && record.getFromDateIsNotNull() && record.getToDateIsNotNull())
    {
        form.chkPeriod().setValue(true);
        form.dtimFrom().setValue(record.getFromDate());
        form.dtimTo().setValue(record.getToDate());
    }
    else
    {
        form.chkPeriod().setValue(false);
    }

    onChkPeriodValueChanged();
}
项目:openMAXIMS    文件:Logic.java   
public DocumentConversionSettingsVo getData()
{
    DocumentConversionSettingsVo record = populateDataFromScreen(form.getLocalContext().getRecord());
    record.setConfiguredJob(form.getGlobalContext().Admin.getCurrentJobConfiguration());
    record.setAllRecords(form.Group1().getValue().equals(Group1Enumeration.rdoFull) ? true : false);
    if (form.chkPeriod().getValue() &&
            form.dtimFrom().getValue() != null &&
                form.dtimTo().getValue() != null &&
                    form.dtimFrom().getValue().isLessOrEqualThan(form.dtimTo().getValue()))
    {           
        record.setFromDate(form.dtimFrom().getValue());
        record.setToDate(form.dtimTo().getValue());
    }
    else
    {
        record.setFromDate(null);
        record.setToDate(null);
    }

    return record;
}
项目:openMAXIMS    文件:Logic.java   
public void loadData() throws PresentationLogicException
{
    DocumentConversionSettingsVo record = domain.getConfiguration(form.getGlobalContext().Admin.getCurrentJobConfiguration());
    form.getLocalContext().setRecord(record);
    populateScreenFromData(record);

    form.Group1().setValue(record != null && record.getAllRecords() ? Group1Enumeration.rdoFull : Group1Enumeration.rdoLastUpdate);     
    if (record != null && record.getFromDateIsNotNull() && record.getToDateIsNotNull())
    {
        form.chkPeriod().setValue(true);
        form.dtimFrom().setValue(record.getFromDate());
        form.dtimTo().setValue(record.getToDate());
    }
    else
    {
        form.chkPeriod().setValue(false);
    }

    onChkPeriodValueChanged();
}
项目:openMAXIMS    文件:Logic.java   
public DocumentConversionSettingsVo getData()
{
    DocumentConversionSettingsVo record = populateDataFromScreen(form.getLocalContext().getRecord());
    record.setConfiguredJob(form.getGlobalContext().Admin.getCurrentJobConfiguration());
    record.setAllRecords(form.Group1().getValue().equals(Group1Enumeration.rdoFull) ? true : false);
    if (form.chkPeriod().getValue() &&
            form.dtimFrom().getValue() != null &&
                form.dtimTo().getValue() != null &&
                    form.dtimFrom().getValue().isLessOrEqualThan(form.dtimTo().getValue()))
    {           
        record.setFromDate(form.dtimFrom().getValue());
        record.setToDate(form.dtimTo().getValue());
    }
    else
    {
        record.setFromDate(null);
        record.setToDate(null);
    }

    return record;
}
项目:openmaxims-linux    文件:Logic.java   
public void loadData() throws PresentationLogicException
{
    DocumentConversionSettingsVo record = domain.getConfiguration(form.getGlobalContext().Admin.getCurrentJobConfiguration());
    form.getLocalContext().setRecord(record);
    populateScreenFromData(record);

    form.Group1().setValue(record != null && record.getAllRecords() ? Group1Enumeration.rdoFull : Group1Enumeration.rdoLastUpdate);     
    if (record != null && record.getFromDateIsNotNull() && record.getToDateIsNotNull())
    {
        form.chkPeriod().setValue(true);
        form.dtimFrom().setValue(record.getFromDate());
        form.dtimTo().setValue(record.getToDate());
    }
    else
    {
        form.chkPeriod().setValue(false);
    }

    onChkPeriodValueChanged();
}
项目:openmaxims-linux    文件:Logic.java   
public DocumentConversionSettingsVo getData()
{
    DocumentConversionSettingsVo record = populateDataFromScreen(form.getLocalContext().getRecord());
    record.setConfiguredJob(form.getGlobalContext().Admin.getCurrentJobConfiguration());
    record.setAllRecords(form.Group1().getValue().equals(Group1Enumeration.rdoFull) ? true : false);
    if (form.chkPeriod().getValue() &&
            form.dtimFrom().getValue() != null &&
                form.dtimTo().getValue() != null &&
                    form.dtimFrom().getValue().isLessOrEqualThan(form.dtimTo().getValue()))
    {           
        record.setFromDate(form.dtimFrom().getValue());
        record.setToDate(form.dtimTo().getValue());
    }
    else
    {
        record.setFromDate(null);
        record.setToDate(null);
    }

    return record;
}
项目:AvoinApotti    文件:Logic.java   
public void saveData() throws Exception 
{   
    DocumentConversionSettingsVo record = getData();

    String[] errors = record.validate();
    if(errors != null && errors.length > 0)
        throw new Exception("Validation Errors");

    domain.saveConfiguration(record);       
}
项目:openMAXIMS    文件:Logic.java   
public void saveData() throws Exception 
{   
    DocumentConversionSettingsVo record = getData();

    String[] errors = record.validate();
    if(errors != null && errors.length > 0)
        throw new Exception("Validation Errors");

    domain.saveConfiguration(record);       
}
项目:openMAXIMS    文件:Logic.java   
public void saveData() throws Exception 
{   
    DocumentConversionSettingsVo record = getData();

    String[] errors = record.validate();
    if(errors != null && errors.length > 0)
        throw new Exception("Validation Errors");

    domain.saveConfiguration(record);       
}
项目:openmaxims-linux    文件:Logic.java   
public void saveData() throws Exception 
{   
    DocumentConversionSettingsVo record = getData();

    String[] errors = record.validate();
    if(errors != null && errors.length > 0)
        throw new Exception("Validation Errors");

    domain.saveConfiguration(record);       
}