Java 类ims.emergency.vo.AtteandanceReqContrJobSettingsVo 实例源码

项目:AvoinApotti    文件:Logic.java   
public AtteandanceReqContrJobSettingsVo getData()
{
    AtteandanceReqContrJobSettingsVo record = populateDataFromScreen(form.getLocalContext().getrecord());
    record.setConfiguredJob(form.getGlobalContext().Admin.getCurrentJobConfiguration());
    record.setAllRecords(form.chkAll().getValue());
    if (form.chkTimePeriod().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);
    }

    record.setServer(form.txtServer().getValue());
    record.setServerPort(form.intPort().getValue());
    record.setMaxRecords(form.intMaxRecords().getValue());

    return record;
}
项目:openMAXIMS    文件:Logic.java   
public AtteandanceReqContrJobSettingsVo getData()
{
    AtteandanceReqContrJobSettingsVo record = populateDataFromScreen(form.getLocalContext().getrecord());
    record.setConfiguredJob(form.getGlobalContext().Admin.getCurrentJobConfiguration());
    record.setAllRecords(form.chkAll().getValue());
    if (form.chkTimePeriod().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);
    }

    record.setServer(form.txtServer().getValue());
    record.setServerPort(form.intPort().getValue());
    record.setMaxRecords(form.intMaxRecords().getValue());

    return record;
}
项目:openMAXIMS    文件:Logic.java   
public AtteandanceReqContrJobSettingsVo getData()
{
    AtteandanceReqContrJobSettingsVo record = populateDataFromScreen(form.getLocalContext().getrecord());
    record.setConfiguredJob(form.getGlobalContext().Admin.getCurrentJobConfiguration());
    record.setAllRecords(form.chkAll().getValue());
    if (form.chkTimePeriod().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);
    }

    record.setServer(form.txtServer().getValue());
    record.setServerPort(form.intPort().getValue());
    record.setMaxRecords(form.intMaxRecords().getValue());

    return record;
}
项目:openmaxims-linux    文件:Logic.java   
public AtteandanceReqContrJobSettingsVo getData()
{
    AtteandanceReqContrJobSettingsVo record = populateDataFromScreen(form.getLocalContext().getrecord());
    record.setConfiguredJob(form.getGlobalContext().Admin.getCurrentJobConfiguration());
    record.setAllRecords(form.chkAll().getValue());
    if (form.chkTimePeriod().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);
    }

    record.setServer(form.txtServer().getValue());
    record.setServerPort(form.intPort().getValue());
    record.setMaxRecords(form.intMaxRecords().getValue());

    return record;
}
项目:AvoinApotti    文件:Logic.java   
private void loadData() throws PresentationLogicException
{
    AtteandanceReqContrJobSettingsVo record = domain.getConfiguration(form.getGlobalContext().Admin.getCurrentJobConfiguration());
    form.getLocalContext().setrecord(record);
    populateScreenFromData(record);

    //TODO default to all records for now. improve for next release.
    form.chkAll().setValue(true);       
    //form.chkAll().setValue(record != null && record.getAllRecords());

    if (record != null && record.getFromDateIsNotNull() && record.getToDateIsNotNull())
    {
        form.chkTimePeriod().setValue(true);
        form.dtimFrom().setValue(record.getFromDate());
        form.dtimTo().setValue(record.getToDate());
    }
    else
    {
        form.chkTimePeriod().setValue(false);
    }

    if (record != null)
    {
        form.txtServer().setValue(record.getServer());
        form.intPort().setValue(record.getServerPort());
        form.intMaxRecords().setValue(record.getMaxRecords());
        form.intCount().setValue(null);
    }

    onChkTimePeriodValueChanged();

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

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

    domain.saveConfiguration(record);       
}
项目:openMAXIMS    文件:Logic.java   
private void loadData() throws PresentationLogicException
{
    AtteandanceReqContrJobSettingsVo record = domain.getConfiguration(form.getGlobalContext().Admin.getCurrentJobConfiguration());
    form.getLocalContext().setrecord(record);
    populateScreenFromData(record);

    //TODO default to all records for now. improve for next release.
    form.chkAll().setValue(true);       
    //form.chkAll().setValue(record != null && record.getAllRecords());

    if (record != null && record.getFromDateIsNotNull() && record.getToDateIsNotNull())
    {
        form.chkTimePeriod().setValue(true);
        form.dtimFrom().setValue(record.getFromDate());
        form.dtimTo().setValue(record.getToDate());
    }
    else
    {
        form.chkTimePeriod().setValue(false);
    }

    if (record != null)
    {
        form.txtServer().setValue(record.getServer());
        form.intPort().setValue(record.getServerPort());
        form.intMaxRecords().setValue(record.getMaxRecords());
        form.intCount().setValue(null);
    }

    onChkTimePeriodValueChanged();

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

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

    domain.saveConfiguration(record);       
}
项目:openMAXIMS    文件:Logic.java   
private void loadData() throws PresentationLogicException
{
    AtteandanceReqContrJobSettingsVo record = domain.getConfiguration(form.getGlobalContext().Admin.getCurrentJobConfiguration());
    form.getLocalContext().setrecord(record);
    populateScreenFromData(record);

    //TODO default to all records for now. improve for next release.
    form.chkAll().setValue(true);       
    //form.chkAll().setValue(record != null && record.getAllRecords());

    if (record != null && record.getFromDateIsNotNull() && record.getToDateIsNotNull())
    {
        form.chkTimePeriod().setValue(true);
        form.dtimFrom().setValue(record.getFromDate());
        form.dtimTo().setValue(record.getToDate());
    }
    else
    {
        form.chkTimePeriod().setValue(false);
    }

    if (record != null)
    {
        form.txtServer().setValue(record.getServer());
        form.intPort().setValue(record.getServerPort());
        form.intMaxRecords().setValue(record.getMaxRecords());
        form.intCount().setValue(null);
    }

    onChkTimePeriodValueChanged();

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

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

    domain.saveConfiguration(record);       
}
项目:openmaxims-linux    文件:Logic.java   
private void loadData() throws PresentationLogicException
{
    AtteandanceReqContrJobSettingsVo record = domain.getConfiguration(form.getGlobalContext().Admin.getCurrentJobConfiguration());
    form.getLocalContext().setrecord(record);
    populateScreenFromData(record);

    //TODO default to all records for now. improve for next release.
    form.chkAll().setValue(true);       
    //form.chkAll().setValue(record != null && record.getAllRecords());

    if (record != null && record.getFromDateIsNotNull() && record.getToDateIsNotNull())
    {
        form.chkTimePeriod().setValue(true);
        form.dtimFrom().setValue(record.getFromDate());
        form.dtimTo().setValue(record.getToDate());
    }
    else
    {
        form.chkTimePeriod().setValue(false);
    }

    if (record != null)
    {
        form.txtServer().setValue(record.getServer());
        form.intPort().setValue(record.getServerPort());
        form.intMaxRecords().setValue(record.getMaxRecords());
        form.intCount().setValue(null);
    }

    onChkTimePeriodValueChanged();

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

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

    domain.saveConfiguration(record);       
}