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

项目:AvoinApotti    文件:Logic.java   
private RTAVo copyRTAVo(RTAVo record)
{
    if (record == null)
        return null;

    RTAVo temp = new RTAVo();
    temp.setDriverAddress(record.getDriverAddress());
    temp.setDriverName(record.getDriverName());
    temp.setIsDriverOwner(record.getIsDriverOwner());
    temp.setNotes(record.getNotes());
    temp.setPoliceID(record.getPoliceID());
    temp.setPoliceInvolved(record.getPoliceInvolved());
    temp.setPoliceStation(record.getPoliceStation());
    temp.setProtectionDevice(record.getProtectionDevice());
    temp.setRTAType(record.getRTAType());

    return temp;
}
项目:AvoinApotti    文件:Logic.java   
protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException
{
    //WDEV-17371
    String[] errorsUI = getUiErrors();
    if (errorsUI != null)
    {
        engine.showErrors(errorsUI);
        return ;
    }

    RTAVo record = populateDataFromScreen(form.getGlobalContext().Emergency.getRTA());

    String[] errors = record.validate(getUiErrors());

    if (errors != null)
    {
        engine.showErrors(errors);
        return ;
    }

    form.getGlobalContext().Emergency.setRTA(record);
    engine.close(DialogResult.OK);
}
项目:openMAXIMS    文件:Logic.java   
private RTAVo copyRTAVo(RTAVo record)
{
    if (record == null)
        return null;

    RTAVo temp = new RTAVo();
    temp.setDriverAddress(record.getDriverAddress());
    temp.setDriverName(record.getDriverName());
    temp.setIsDriverOwner(record.getIsDriverOwner());
    temp.setNotes(record.getNotes());
    temp.setPoliceID(record.getPoliceID());
    temp.setPoliceInvolved(record.getPoliceInvolved());
    temp.setPoliceStation(record.getPoliceStation());
    temp.setProtectionDevice(record.getProtectionDevice());
    temp.setRTAType(record.getRTAType());

    return temp;
}
项目:openMAXIMS    文件:Logic.java   
protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException
{
    //WDEV-17371
    String[] errorsUI = getUiErrors();
    if (errorsUI != null)
    {
        engine.showErrors(errorsUI);
        return ;
    }

    RTAVo record = populateDataFromScreen(form.getGlobalContext().Emergency.getRTA());

    String[] errors = record.validate(getUiErrors());

    if (errors != null)
    {
        engine.showErrors(errors);
        return ;
    }

    form.getGlobalContext().Emergency.setRTA(record);
    engine.close(DialogResult.OK);
}
项目:openMAXIMS    文件:Logic.java   
private RTAVo copyRTAVo(RTAVo record)
{
    if (record == null)
        return null;

    RTAVo temp = new RTAVo();
    temp.setDriverAddress(record.getDriverAddress());
    temp.setDriverName(record.getDriverName());
    temp.setIsDriverOwner(record.getIsDriverOwner());
    temp.setNotes(record.getNotes());
    temp.setPoliceID(record.getPoliceID());
    temp.setPoliceInvolved(record.getPoliceInvolved());
    temp.setPoliceStation(record.getPoliceStation());
    temp.setProtectionDevice(record.getProtectionDevice());
    temp.setRTAType(record.getRTAType());

    return temp;
}
项目:openMAXIMS    文件:Logic.java   
protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException
{
    //WDEV-17371
    String[] errorsUI = getUiErrors();
    if (errorsUI != null)
    {
        engine.showErrors(errorsUI);
        return ;
    }

    RTAVo record = populateDataFromScreen(form.getGlobalContext().Emergency.getRTA());

    String[] errors = record.validate(getUiErrors());

    if (errors != null)
    {
        engine.showErrors(errors);
        return ;
    }

    form.getGlobalContext().Emergency.setRTA(record);
    engine.close(DialogResult.OK);
}
项目:openmaxims-linux    文件:Logic.java   
private RTAVo copyRTAVo(RTAVo record)
{
    if (record == null)
        return null;

    RTAVo temp = new RTAVo();
    temp.setDriverAddress(record.getDriverAddress());
    temp.setDriverName(record.getDriverName());
    temp.setIsDriverOwner(record.getIsDriverOwner());
    temp.setNotes(record.getNotes());
    temp.setPoliceID(record.getPoliceID());
    temp.setPoliceInvolved(record.getPoliceInvolved());
    temp.setPoliceStation(record.getPoliceStation());
    temp.setProtectionDevice(record.getProtectionDevice());
    temp.setRTAType(record.getRTAType());

    return temp;
}
项目:openmaxims-linux    文件:Logic.java   
protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException
{
    //WDEV-17371
    String[] errorsUI = getUiErrors();
    if (errorsUI != null)
    {
        engine.showErrors(errorsUI);
        return ;
    }

    RTAVo record = populateDataFromScreen(form.getGlobalContext().Emergency.getRTA());

    String[] errors = record.validate(getUiErrors());

    if (errors != null)
    {
        engine.showErrors(errors);
        return ;
    }

    form.getGlobalContext().Emergency.setRTA(record);
    engine.close(DialogResult.OK);
}
项目:AvoinApotti    文件:Logic.java   
private void populateScreenFromData(RTAVo record)
{
    clear();
    if( record == null)
    {
        if( form.getMode().equals(FormMode.EDIT))
        {
            form.txtPoliceId().setEnabled(false);
            form.cmbPoliceStation().setEnabled(false);
        }
        return;
    }

    form.cmbProtectionDevice().setValue(record.getProtectionDevice());
    form.cmbRTAPatientType().setValue(record.getRTAType());
    if( Boolean.TRUE.equals(record.getIsDriverOwner()))
        form.GroupDriverOwner().setValue(GroupDriverOwnerEnumeration.rdoYes);
    else
        form.GroupDriverOwner().setValue(GroupDriverOwnerEnumeration.rdoNo);

    PersonName driverName = record.getDriverName();
    if( driverName != null)
    {
        //WDEV-17390
        form.txtDriversName().setValue(driverName.getSurname());
        form.txtDriversForename().setValue(driverName.getForename());   
    }   
    PersonAddress driverAdress = record.getDriverAddress();
    if( driverAdress != null)
    {
        form.txtAddress1().setValue(driverAdress.getAddressBuildingName());
        form.txtAddress2().setValue(driverAdress.getAddressBuildingNumber());
        form.txtAddress3().setValue(driverAdress.getAddressLocality());
        form.txtAddress4().setValue(driverAdress.getAddressPostTown());
        form.txtPostCode().setValue(driverAdress.getAddressPostCode());
    }

    form.txtNotes().setValue(record.getNotes());
    if( Boolean.TRUE.equals(record.getPoliceInvolved()))
    {
        form.GroupPolice().setValue(GroupPoliceEnumeration.rdoYesP);
        if( form.getMode().equals(FormMode.EDIT))
        {
            form.txtPoliceId().setEnabled(true);
            form.cmbPoliceStation().setEnabled(true);
        }
    }
    else
    {
        form.GroupPolice().setValue(GroupPoliceEnumeration.rdoNoP);
        if( form.getMode().equals(FormMode.EDIT))
        {
            form.txtPoliceId().setEnabled(false);
            form.cmbPoliceStation().setEnabled(false);
        }
    }
    form.cmbPoliceStation().setValue(record.getPoliceStation());
    form.txtPoliceId().setValue(record.getPoliceID());

}
项目:openMAXIMS    文件:Logic.java   
private void populateScreenFromData(RTAVo record)
{
    clear();
    if( record == null)
    {
        if( form.getMode().equals(FormMode.EDIT))
        {
            form.txtPoliceId().setEnabled(false);
            form.cmbPoliceStation().setEnabled(false);
        }
        return;
    }

    form.cmbProtectionDevice().setValue(record.getProtectionDevice());
    form.cmbRTAPatientType().setValue(record.getRTAType());
    if( Boolean.TRUE.equals(record.getIsDriverOwner()))
        form.GroupDriverOwner().setValue(GroupDriverOwnerEnumeration.rdoYes);
    else
        form.GroupDriverOwner().setValue(GroupDriverOwnerEnumeration.rdoNo);

    PersonName driverName = record.getDriverName();
    if( driverName != null)
    {
        //WDEV-17390
        form.txtDriversName().setValue(driverName.getSurname());
        form.txtDriversForename().setValue(driverName.getForename());   
    }   
    PersonAddress driverAdress = record.getDriverAddress();
    if( driverAdress != null)
    {
        form.txtAddress1().setValue(driverAdress.getAddressBuildingName());
        form.txtAddress2().setValue(driverAdress.getAddressBuildingNumber());
        form.txtAddress3().setValue(driverAdress.getAddressLocality());
        form.txtAddress4().setValue(driverAdress.getAddressPostTown());
        form.txtPostCode().setValue(driverAdress.getAddressPostCode());
    }

    form.txtNotes().setValue(record.getNotes());
    if( Boolean.TRUE.equals(record.getPoliceInvolved()))
    {
        form.GroupPolice().setValue(GroupPoliceEnumeration.rdoYesP);
        if( form.getMode().equals(FormMode.EDIT))
        {
            form.txtPoliceId().setEnabled(true);
            form.cmbPoliceStation().setEnabled(true);
        }
    }
    else
    {
        form.GroupPolice().setValue(GroupPoliceEnumeration.rdoNoP);
        if( form.getMode().equals(FormMode.EDIT))
        {
            form.txtPoliceId().setEnabled(false);
            form.cmbPoliceStation().setEnabled(false);
        }
    }
    form.cmbPoliceStation().setValue(record.getPoliceStation());
    form.txtPoliceId().setValue(record.getPoliceID());

}
项目:openMAXIMS    文件:Logic.java   
private void populateScreenFromData(RTAVo record)
{
    clear();
    if( record == null)
    {
        if( form.getMode().equals(FormMode.EDIT))
        {
            form.txtPoliceId().setEnabled(false);
            form.cmbPoliceStation().setEnabled(false);
        }
        return;
    }

    form.cmbProtectionDevice().setValue(record.getProtectionDevice());
    form.cmbRTAPatientType().setValue(record.getRTAType());
    if( Boolean.TRUE.equals(record.getIsDriverOwner()))
        form.GroupDriverOwner().setValue(GroupDriverOwnerEnumeration.rdoYes);
    else
        form.GroupDriverOwner().setValue(GroupDriverOwnerEnumeration.rdoNo);

    PersonName driverName = record.getDriverName();
    if( driverName != null)
    {
        //WDEV-17390
        form.txtDriversName().setValue(driverName.getSurname());
        form.txtDriversForename().setValue(driverName.getForename());   
    }   
    PersonAddress driverAdress = record.getDriverAddress();
    if( driverAdress != null)
    {
        form.txtAddress1().setValue(driverAdress.getAddressBuildingName());
        form.txtAddress2().setValue(driverAdress.getAddressBuildingNumber());
        form.txtAddress3().setValue(driverAdress.getAddressLocality());
        form.txtAddress4().setValue(driverAdress.getAddressPostTown());
        form.txtPostCode().setValue(driverAdress.getAddressPostCode());
    }

    form.txtNotes().setValue(record.getNotes());
    if( Boolean.TRUE.equals(record.getPoliceInvolved()))
    {
        form.GroupPolice().setValue(GroupPoliceEnumeration.rdoYesP);
        if( form.getMode().equals(FormMode.EDIT))
        {
            form.txtPoliceId().setEnabled(true);
            form.cmbPoliceStation().setEnabled(true);
        }
    }
    else
    {
        form.GroupPolice().setValue(GroupPoliceEnumeration.rdoNoP);
        if( form.getMode().equals(FormMode.EDIT))
        {
            form.txtPoliceId().setEnabled(false);
            form.cmbPoliceStation().setEnabled(false);
        }
    }
    form.cmbPoliceStation().setValue(record.getPoliceStation());
    form.txtPoliceId().setValue(record.getPoliceID());

}
项目:openmaxims-linux    文件:Logic.java   
private void populateScreenFromData(RTAVo record)
{
    clear();
    if( record == null)
    {
        if( form.getMode().equals(FormMode.EDIT))
        {
            form.txtPoliceId().setEnabled(false);
            form.cmbPoliceStation().setEnabled(false);
        }
        return;
    }

    form.cmbProtectionDevice().setValue(record.getProtectionDevice());
    form.cmbRTAPatientType().setValue(record.getRTAType());
    if( Boolean.TRUE.equals(record.getIsDriverOwner()))
        form.GroupDriverOwner().setValue(GroupDriverOwnerEnumeration.rdoYes);
    else
        form.GroupDriverOwner().setValue(GroupDriverOwnerEnumeration.rdoNo);

    PersonName driverName = record.getDriverName();
    if( driverName != null)
    {
        //WDEV-17390
        form.txtDriversName().setValue(driverName.getSurname());
        form.txtDriversForename().setValue(driverName.getForename());   
    }   
    PersonAddress driverAdress = record.getDriverAddress();
    if( driverAdress != null)
    {
        form.txtAddress1().setValue(driverAdress.getAddressBuildingName());
        form.txtAddress2().setValue(driverAdress.getAddressBuildingNumber());
        form.txtAddress3().setValue(driverAdress.getAddressLocality());
        form.txtAddress4().setValue(driverAdress.getAddressPostTown());
        form.txtPostCode().setValue(driverAdress.getAddressPostCode());
    }

    form.txtNotes().setValue(record.getNotes());
    if( Boolean.TRUE.equals(record.getPoliceInvolved()))
    {
        form.GroupPolice().setValue(GroupPoliceEnumeration.rdoYesP);
        if( form.getMode().equals(FormMode.EDIT))
        {
            form.txtPoliceId().setEnabled(true);
            form.cmbPoliceStation().setEnabled(true);
        }
    }
    else
    {
        form.GroupPolice().setValue(GroupPoliceEnumeration.rdoNoP);
        if( form.getMode().equals(FormMode.EDIT))
        {
            form.txtPoliceId().setEnabled(false);
            form.cmbPoliceStation().setEnabled(false);
        }
    }
    form.cmbPoliceStation().setValue(record.getPoliceStation());
    form.txtPoliceId().setValue(record.getPoliceID());

}