Java 类ims.emergency.vo.enums.EmergencyAttendanceEvent 实例源码

项目:AvoinApotti    文件:Logic.java   
@Override
protected void onBtnSaveClick() throws PresentationLogicException
{
    form.getLocalContext().setIsSkippedTriage(null);//WDEV-17248
    String[] uiErrors = getUiErrors();
    if (uiErrors != null)
    {
        engine.showErrors(uiErrors);
        return;
    }

    if (form.getLocalContext().getSelectedEmergencyEpisodeIsNotNull() && form.getLocalContext().getSelectedRecordIsNotNull()) // wdev-14420
    {
        if (save())
        {
            form.getLocalContext().setSelectedEvent(EmergencyAttendanceEvent.SAVE);
            form.fireCustomControlValueChanged();
        }
    }
    else
        engine.open(form.getForms().Emergency.SendToAreaDialog, new Object[] {Boolean.FALSE});
}
项目:AvoinApotti    文件:Logic.java   
@Override
//WDEV-16673
protected void onCcAttendanceDetailsValueChanged() throws PresentationLogicException
{
    if (EmergencyAttendanceEvent.SAVE.equals(form.lyrEmergencyAttendance().tabAttDet().ccAttendanceDetails().getSelectedEvent()) || EmergencyAttendanceEvent.CANCEL.equals(form.lyrEmergencyAttendance().tabAttDet().ccAttendanceDetails().getSelectedEvent()))
    {
        form.lyrEmergencyAttendance().tabAttDet().ccAttendanceDetails().resetSelectedEvent();
        open();
        return;
    }

    if (EmergencyAttendanceEvent.NEW.equals(form.lyrEmergencyAttendance().tabAttDet().ccAttendanceDetails().getSelectedEvent()))
    {
        form.grdPreviousHistory().setValue(null);
    }

    form.lyrEmergencyAttendance().showtabAttDet();
    form.lyrEmergencyAttendance().tabAttDet().ccAttendanceDetails().resetSelectedEvent();
    FormMode attDetMode = form.lyrEmergencyAttendance().tabAttDet().ccAttendanceDetails().getMode();    
    form.setMode(attDetMode);
}
项目:openMAXIMS    文件:Logic.java   
public void saveAttendance(EmergencyAttendanceBillingVo invoiceBilling, ChartRequestedVo chartRequested, EmergencyAttendanceNonInsuranceHealthCoverVo insuranceDetails) //WDEV-22956
{
    //WDEV-22956
    form.getLocalContext().setInvoiceBillingToSave(invoiceBilling);
    form.getLocalContext().setChartRequestToSave(chartRequested);
    form.getLocalContext().setInsuranceDetailsToSave(insuranceDetails);

    form.getLocalContext().setIsSkippedTriage(null);//WDEV-17248
    String[] uiErrors = getUIErrors();
    if (uiErrors != null)
    {
        engine.showErrors(uiErrors);
        return;
    }

    if (form.getLocalContext().getSelectedEmergencyEpisodeIsNotNull() && form.getLocalContext().getSelectedRecordIsNotNull()) // wdev-14420
    {
        if (save())
        {
            form.getLocalContext().setSelectedEvent(EmergencyAttendanceEvent.SAVE);
            form.fireCustomControlValueChanged();
        }
    }
    else
        engine.open(form.getForms().Emergency.SendToAreaDialog, new Object[] {Boolean.FALSE});
}
项目:openMAXIMS    文件:Logic.java   
public void newInstance(Boolean isNewAttendance)  //WDEV-22801 WDEV-22956
{
    //WDEV-22956
    clearScreen();
    populateInsuranceSchemeCombo();
    form.getLocalContext().setIsNewAttendance(isNewAttendance);

    form.setMode(FormMode.EDIT);

    if( form.getLocalContext().getCurrentEmergencyAttendanceNonInsuranceHealthCoverVoIsNotNull() && form.getLocalContext().getCurrentEmergencyAttendanceNonInsuranceHealthCoverVo().getPatientIsNotNull() )
    {
        PatientWithNonHealthCoverLiteVo tempatVo = domain.getPatientWithNonHealthCoverLiteVo(form.getLocalContext().getCurrentEmergencyAttendanceNonInsuranceHealthCoverVo().getPatient());

        if( tempatVo != null && (tempatVo.getCurrentMedicalInsuranceIsNotNull() || tempatVo.getNationalHealthCoverIsNotNull() ))
        {
            populateScreenFromPatient(tempatVo);    
        }
    }

    form.getLocalContext().setSelectedEvent(EmergencyAttendanceEvent.NEW);
    form.fireCustomControlValueChanged();
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException
{
    if (ConfigFlag.UI.SVUH_MANDATORY_DEMOGRAPHIC_ATTRIBUTES.getValue() && Boolean.TRUE.equals(form.getLocalContext().getIsNewAttendance())) //WDEV-22956
    {
        form.getLocalContext().setSelectedEvent(EmergencyAttendanceEvent.FINISH_SAVE);
        form.fireCustomControlValueChanged();
        return;
    }

    if (save())
    {
        form.getLocalContext().setSelectedEvent(EmergencyAttendanceEvent.SAVE);
        form.fireCustomControlValueChanged();
    }
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onBtnSaveClick() throws PresentationLogicException
{
    form.getLocalContext().setIsSkippedTriage(null);//WDEV-17248
    String[] uiErrors = getUiErrors();
    if (uiErrors != null)
    {
        engine.showErrors(uiErrors);
        return;
    }

    if (form.getLocalContext().getSelectedEmergencyEpisodeIsNotNull() && form.getLocalContext().getSelectedRecordIsNotNull()) // wdev-14420
    {
        if (save())
        {
            form.getLocalContext().setSelectedEvent(EmergencyAttendanceEvent.SAVE);
            form.fireCustomControlValueChanged();
        }
    }
    else
        engine.open(form.getForms().Emergency.SendToAreaDialog, new Object[] {Boolean.FALSE});
}
项目:openMAXIMS    文件:Logic.java   
@Override
//WDEV-16673
protected void onCcAttendanceDetailsValueChanged() throws PresentationLogicException
{
    if (EmergencyAttendanceEvent.SAVE.equals(form.lyrEmergencyAttendance().tabAttDet().ccAttendanceDetails().getSelectedEvent()) || EmergencyAttendanceEvent.CANCEL.equals(form.lyrEmergencyAttendance().tabAttDet().ccAttendanceDetails().getSelectedEvent()))
    {
        form.lyrEmergencyAttendance().tabAttDet().ccAttendanceDetails().resetSelectedEvent();
        open();
        return;
    }

    if (EmergencyAttendanceEvent.NEW.equals(form.lyrEmergencyAttendance().tabAttDet().ccAttendanceDetails().getSelectedEvent()))
    {
        form.grdPreviousHistory().setValue(null);
    }

    form.lyrEmergencyAttendance().showtabAttDet();
    form.lyrEmergencyAttendance().tabAttDet().ccAttendanceDetails().resetSelectedEvent();
    FormMode attDetMode = form.lyrEmergencyAttendance().tabAttDet().ccAttendanceDetails().getMode();    
    form.setMode(attDetMode);
}
项目:openmaxims-linux    文件:Logic.java   
@Override
protected void onBtnSaveClick() throws PresentationLogicException
{
    form.getLocalContext().setIsSkippedTriage(null);//WDEV-17248
    String[] uiErrors = getUiErrors();
    if (uiErrors != null)
    {
        engine.showErrors(uiErrors);
        return;
    }

    if (form.getLocalContext().getSelectedEmergencyEpisodeIsNotNull() && form.getLocalContext().getSelectedRecordIsNotNull()) // wdev-14420
    {
        if (save())
        {
            form.getLocalContext().setSelectedEvent(EmergencyAttendanceEvent.SAVE);
            form.fireCustomControlValueChanged();
        }
    }
    else
        engine.open(form.getForms().Emergency.SendToAreaDialog, new Object[] {Boolean.FALSE});
}
项目:openmaxims-linux    文件:Logic.java   
@Override
//WDEV-16673
protected void onCcAttendanceDetailsValueChanged() throws PresentationLogicException
{
    if (EmergencyAttendanceEvent.SAVE.equals(form.lyrEmergencyAttendance().tabAttDet().ccAttendanceDetails().getSelectedEvent()) || EmergencyAttendanceEvent.CANCEL.equals(form.lyrEmergencyAttendance().tabAttDet().ccAttendanceDetails().getSelectedEvent()))
    {
        form.lyrEmergencyAttendance().tabAttDet().ccAttendanceDetails().resetSelectedEvent();
        open();
        return;
    }

    if (EmergencyAttendanceEvent.NEW.equals(form.lyrEmergencyAttendance().tabAttDet().ccAttendanceDetails().getSelectedEvent()))
    {
        form.grdPreviousHistory().setValue(null);
    }

    form.lyrEmergencyAttendance().showtabAttDet();
    form.lyrEmergencyAttendance().tabAttDet().ccAttendanceDetails().resetSelectedEvent();
    FormMode attDetMode = form.lyrEmergencyAttendance().tabAttDet().ccAttendanceDetails().getMode();    
    form.setMode(attDetMode);
}
项目:AvoinApotti    文件:Logic.java   
@Override
protected void onBtnNewClick() throws ims.framework.exceptions.PresentationLogicException
{
    form.setMode(FormMode.EDIT);
    form.getLocalContext().setSelectedEvent(EmergencyAttendanceEvent.NEW);
    form.fireCustomControlValueChanged();
}
项目:AvoinApotti    文件:Logic.java   
@Override
protected void onBtnEditClick() throws ims.framework.exceptions.PresentationLogicException
{
    if (form.getLocalContext().getcurrentAttendanceBilling()!=null)
    {
        form.getLocalContext().setcurrentAttendanceBilling(domain.getAttendanceBilling(form.getLocalContext().getcurrentAttendanceBilling()));
        populateScreenFromData(form.getLocalContext().getcurrentAttendanceBilling());
    }

    form.setMode(FormMode.EDIT);
    form.getLocalContext().setSelectedEvent(EmergencyAttendanceEvent.EDIT);

    form.fireCustomControlValueChanged();
    form.setMode(FormMode.EDIT);
}
项目:AvoinApotti    文件:Logic.java   
@Override
protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException
{
    if (save())
    {
        form.getLocalContext().setSelectedEvent(EmergencyAttendanceEvent.SAVE);
        form.fireCustomControlValueChanged();
    }
}
项目:AvoinApotti    文件:Logic.java   
public void editInstance()
{
    ValueObject rowValue = form.getLocalContext().getSelectedRow();

    if (rowValue != null)
    {
        if (rowValue instanceof AttendanceDetailsVo)
        {
            editAttendance(rowValue);
        }
    }

    // wdev-14420
    if (form.getLocalContext().getSelectedEmergencyEpisodeIsNotNull())
    {
        form.getLocalContext().setTIIG(form.getLocalContext().getSelectedEmergencyEpisode().getTiig());
        form.getLocalContext().setRTA(form.getLocalContext().getSelectedEmergencyEpisode().getRTADetails());

    }

    form.GroupCategory().setEnabled(GroupCategoryEnumeration.rdoFirstVisit, false);
    form.GroupCategory().setEnabled(GroupCategoryEnumeration.rdoScheduledReturn, false);
    form.GroupCategory().setEnabled(GroupCategoryEnumeration.rdoUnscheduledReturn, false);

    // wdev-16070
    if (domain.getMosUser() instanceof MemberOfStaffLiteVo)
    {
        MemberOfStaffLiteVo tempVo = (MemberOfStaffLiteVo) domain.getMosUser();
        if (tempVo != null)
        {
            form.lblLastUpdatedBy1().setValue(tempVo.getNameIsNotNull() ? tempVo.getName().toString() : "");
        }
    }

    form.setMode(FormMode.EDIT);
    form.getLocalContext().setSelectedEvent(EmergencyAttendanceEvent.EDIT);
    form.fireCustomControlValueChanged();
}
项目:AvoinApotti    文件:Logic.java   
@Override
protected void onBtnCancelClick() throws PresentationLogicException
{
    form.getLocalContext().setTIIG(null);
    form.getLocalContext().setRTA(null);

    form.getLocalContext().setSelectedEvent(EmergencyAttendanceEvent.CANCEL);
    form.fireCustomControlValueChanged();
}
项目:AvoinApotti    文件:Logic.java   
@Override
//WDEV-16673
protected void onCcChatRequestedValueChanged() throws PresentationLogicException
{
    if (EmergencyAttendanceEvent.SAVE.equals(form.lyrEmergencyAttendance().tabChart().ccChatRequested().getSelectedEvent()) || EmergencyAttendanceEvent.CANCEL.equals(form.lyrEmergencyAttendance().tabChart().ccChatRequested().getSelectedEvent()))
    {
        form.lyrEmergencyAttendance().tabChart().ccChatRequested().resetSelectedEvent();
        open();
        return;
    }

    form.lyrEmergencyAttendance().tabChart().ccChatRequested().resetSelectedEvent();
    FormMode chartReqMode = form.lyrEmergencyAttendance().tabChart().ccChatRequested().getMode();   
    form.setMode(chartReqMode);
}
项目:AvoinApotti    文件:Logic.java   
@Override
//WDEV-16673
protected void onCcInvoicesBillingValueChanged() throws PresentationLogicException
{
    if (EmergencyAttendanceEvent.SAVE.equals(form.lyrEmergencyAttendance().tabInvoices().ccInvoicesBilling().getSelectedEvent()) || EmergencyAttendanceEvent.CANCEL.equals(form.lyrEmergencyAttendance().tabInvoices().ccInvoicesBilling().getSelectedEvent()))
    {
        form.lyrEmergencyAttendance().tabInvoices().ccInvoicesBilling().resetSelectedEvent();
        open();
        return;
    }

    form.lyrEmergencyAttendance().tabInvoices().ccInvoicesBilling().resetSelectedEvent();
    FormMode invoiceBillingMode = form.lyrEmergencyAttendance().tabInvoices().ccInvoicesBilling().getMode();    
    form.setMode(invoiceBillingMode);
}
项目:AvoinApotti    文件:Logic.java   
@Override
protected void onBtnNewClick() throws ims.framework.exceptions.PresentationLogicException
{
    form.setMode(FormMode.EDIT);
    form.getLocalContext().setSelectedEvent(EmergencyAttendanceEvent.NEW);
    form.fireCustomControlValueChanged();
}
项目:AvoinApotti    文件:Logic.java   
@Override
protected void onBtnEditClick() throws ims.framework.exceptions.PresentationLogicException
{
    if (form.getLocalContext().getcurrentChartRequestedIsNotNull())
    {
        form.getLocalContext().setcurrentChartRequested(domain.getChartRequested(form.getLocalContext().getcurrentChartRequested()));
        populateScreenFromData(form.getLocalContext().getcurrentChartRequested());
    }

    form.setMode(FormMode.EDIT);
    form.getLocalContext().setSelectedEvent(EmergencyAttendanceEvent.EDIT);
    form.fireCustomControlValueChanged();
}
项目:AvoinApotti    文件:Logic.java   
@Override
protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException
{
    if (save())
    {
        form.getLocalContext().setSelectedEvent(EmergencyAttendanceEvent.SAVE);
        form.fireCustomControlValueChanged();
    }
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onBtnEditClick() throws ims.framework.exceptions.PresentationLogicException
{
    if (form.getLocalContext().getcurrentAttendanceBilling()!=null)
    {
        form.getLocalContext().setcurrentAttendanceBilling(domain.getAttendanceBilling(form.getLocalContext().getcurrentAttendanceBilling()));
        populateScreenFromData(form.getLocalContext().getcurrentAttendanceBilling());
    }

    form.setMode(FormMode.EDIT);
    form.getLocalContext().setSelectedEvent(EmergencyAttendanceEvent.EDIT);

    form.fireCustomControlValueChanged();
    form.setMode(FormMode.EDIT);
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException
{
    if (ConfigFlag.UI.SVUH_MANDATORY_DEMOGRAPHIC_ATTRIBUTES.getValue() && Boolean.TRUE.equals(form.getLocalContext().getIsNewAttendance())) //WDEV-22956
    {
        form.getLocalContext().setSelectedEvent(EmergencyAttendanceEvent.FINISH_SAVE);
        form.fireCustomControlValueChanged();
        return;
    }
    if (save())
    {
        form.getLocalContext().setSelectedEvent(EmergencyAttendanceEvent.SAVE);
        form.fireCustomControlValueChanged();
    }
}
项目:openMAXIMS    文件:Logic.java   
public void newInstance(Boolean isNewAttendance) //WDEV-22956
{
    clearScreen(); //WDEV-22956
    form.getLocalContext().setIsNewAttendance(isNewAttendance);

    form.setMode(FormMode.EDIT);
    form.getLocalContext().setSelectedEvent(EmergencyAttendanceEvent.NEW);
    form.fireCustomControlValueChanged();
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onBtnNextClick() throws PresentationLogicException
{
    String[] uiErrors = getUIErrors(true);

    if (uiErrors != null && uiErrors.length > 0)
    {
        engine.showErrors(uiErrors);
        return;
    }

    form.getLocalContext().setSelectedEvent(EmergencyAttendanceEvent.NEXT);
    form.fireCustomControlValueChanged();
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onBtnCancelClick() throws PresentationLogicException
{
    form.getLocalContext().setTIIG(null);
    form.getLocalContext().setRTA(null);
    form.getLocalContext().setAmbulanceDetails(null);

    form.getLocalContext().setSelectedEvent(EmergencyAttendanceEvent.CANCEL);
    form.fireCustomControlValueChanged();
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onBtnNextClick() throws PresentationLogicException
{
    String[] uiErrors = getUIErrors();
    if (uiErrors != null)
    {
        engine.showErrors(uiErrors);
        return;
    }

    form.getLocalContext().setSelectedEvent(EmergencyAttendanceEvent.NEXT);
    form.fireCustomControlValueChanged();
}
项目:openMAXIMS    文件:Logic.java   
protected void onBtnEditClick() throws ims.framework.exceptions.PresentationLogicException
{

    form.setMode(FormMode.EDIT);
    form.getLocalContext().setSelectedEvent(EmergencyAttendanceEvent.EDIT);
    form.fireCustomControlValueChanged();

}
项目:openMAXIMS    文件:Logic.java   
protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException
{
    if (ConfigFlag.UI.SVUH_MANDATORY_DEMOGRAPHIC_ATTRIBUTES.getValue() && Boolean.TRUE.equals(form.getLocalContext().getIsNewAttendance())) //WDEV-22956
    {
        form.getLocalContext().setSelectedEvent(EmergencyAttendanceEvent.FINISH_SAVE);
        form.fireCustomControlValueChanged();
        return;
    }

    if( save())
    {
        form.getLocalContext().setSelectedEvent(EmergencyAttendanceEvent.SAVE);
        form.fireCustomControlValueChanged();
    }
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onBtnNextClick() throws PresentationLogicException
{
    String[] uiErrors = getUIErrors();

    if (uiErrors != null && uiErrors.length > 0)
    {
        engine.showErrors(uiErrors);
        return;
    }

    form.getLocalContext().setSelectedEvent(EmergencyAttendanceEvent.NEXT);
    form.fireCustomControlValueChanged();
}
项目:openMAXIMS    文件:Logic.java   
protected void onCcInsuranceDetailsValueChanged() throws PresentationLogicException
{
    if( EmergencyAttendanceEvent.SAVE.equals(form.lyrEmergencyAttendance().tabInsuranceDetails().ccInsuranceDetails().getSelectedEvent()) || EmergencyAttendanceEvent.CANCEL.equals(form.lyrEmergencyAttendance().tabInsuranceDetails().ccInsuranceDetails().getSelectedEvent()))
    {
        form.lyrEmergencyAttendance().tabInsuranceDetails().ccInsuranceDetails().resetSelectedEvent();
        open();
        form.getLocalContext().setIsNewAttendanceInstance(null); //WDEV-22801
        return;
    }

    //WDEV-22956
    if (EmergencyAttendanceEvent.FINISH_SAVE.equals(form.lyrEmergencyAttendance().tabInsuranceDetails().ccInsuranceDetails().getSelectedEvent())) 
    {
        form.lyrEmergencyAttendance().tabInsuranceDetails().ccInsuranceDetails().resetSelectedEvent();

        EmergencyAttendanceBillingVo invoiceBilling = null;
        if (form.lyrEmergencyAttendance().tabInvoices().isHeaderVisible())
        {
            invoiceBilling = form.lyrEmergencyAttendance().tabInvoices().ccInvoicesBilling().getValue();
        }

        ChartRequestedVo chartRequested = null;
        if (form.lyrEmergencyAttendance().tabChart().isHeaderVisible())
        {
            chartRequested = form.lyrEmergencyAttendance().tabChart().ccChatRequested().getValue();
        }

        EmergencyAttendanceNonInsuranceHealthCoverVo insuranceDetails = form.lyrEmergencyAttendance().tabInsuranceDetails().ccInsuranceDetails().getValue();

        form.lyrEmergencyAttendance().tabAttDet().ccAttendanceDetails().saveAttendance(invoiceBilling, chartRequested, insuranceDetails);
    }

    form.lyrEmergencyAttendance().tabInsuranceDetails().ccInsuranceDetails().resetSelectedEvent();
    FormMode insurancedetailsmode = form.lyrEmergencyAttendance().tabInsuranceDetails().ccInsuranceDetails().getMode(); 
    form.setMode(insurancedetailsmode);

}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onBtnEditClick() throws ims.framework.exceptions.PresentationLogicException
{
    if (form.getLocalContext().getcurrentChartRequestedIsNotNull())
    {
        form.getLocalContext().setcurrentChartRequested(domain.getChartRequested(form.getLocalContext().getcurrentChartRequested()));
        populateScreenFromData(form.getLocalContext().getcurrentChartRequested());
    }

    form.setMode(FormMode.EDIT);
    form.getLocalContext().setSelectedEvent(EmergencyAttendanceEvent.EDIT);
    form.fireCustomControlValueChanged();
}
项目:openMAXIMS    文件:Logic.java   
public void newInstance(Boolean isNewAttendance) //WDEV-22956
{
    //WDEV-22956
    clearScreen();
    form.getLocalContext().setIsNewAttendance(isNewAttendance);

    form.setMode(FormMode.EDIT);
    form.getLocalContext().setSelectedEvent(EmergencyAttendanceEvent.NEW);
    form.fireCustomControlValueChanged();
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onBtnNextClick() throws PresentationLogicException
{
    String[] uiErrors = getUIErrors();

    if (uiErrors != null && uiErrors.length > 0)
    {
        engine.showErrors(uiErrors);
        return;
    }

    form.getLocalContext().setSelectedEvent(EmergencyAttendanceEvent.NEXT);
    form.fireCustomControlValueChanged();
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onBtnNewClick() throws ims.framework.exceptions.PresentationLogicException
{
    form.setMode(FormMode.EDIT);
    form.getLocalContext().setSelectedEvent(EmergencyAttendanceEvent.NEW);
    form.fireCustomControlValueChanged();
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onBtnEditClick() throws ims.framework.exceptions.PresentationLogicException
{
    if (form.getLocalContext().getcurrentAttendanceBilling()!=null)
    {
        form.getLocalContext().setcurrentAttendanceBilling(domain.getAttendanceBilling(form.getLocalContext().getcurrentAttendanceBilling()));
        populateScreenFromData(form.getLocalContext().getcurrentAttendanceBilling());
    }

    form.setMode(FormMode.EDIT);
    form.getLocalContext().setSelectedEvent(EmergencyAttendanceEvent.EDIT);

    form.fireCustomControlValueChanged();
    form.setMode(FormMode.EDIT);
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException
{
    if (save())
    {
        form.getLocalContext().setSelectedEvent(EmergencyAttendanceEvent.SAVE);
        form.fireCustomControlValueChanged();
    }
}
项目:openMAXIMS    文件:Logic.java   
public void editInstance()
{
    ValueObject rowValue = form.getLocalContext().getSelectedRow();

    if (rowValue != null)
    {
        if (rowValue instanceof AttendanceDetailsVo)
        {
            editAttendance(rowValue);
        }
    }

    // wdev-14420
    if (form.getLocalContext().getSelectedEmergencyEpisodeIsNotNull())
    {
        form.getLocalContext().setTIIG(form.getLocalContext().getSelectedEmergencyEpisode().getTiig());
        form.getLocalContext().setRTA(form.getLocalContext().getSelectedEmergencyEpisode().getRTADetails());

    }

    form.GroupCategory().setEnabled(GroupCategoryEnumeration.rdoFirstVisit, false);
    form.GroupCategory().setEnabled(GroupCategoryEnumeration.rdoScheduledReturn, false);
    form.GroupCategory().setEnabled(GroupCategoryEnumeration.rdoUnscheduledReturn, false);

    // wdev-16070
    if (domain.getMosUser() instanceof MemberOfStaffLiteVo)
    {
        MemberOfStaffLiteVo tempVo = (MemberOfStaffLiteVo) domain.getMosUser();
        if (tempVo != null)
        {
            form.lblLastUpdatedBy1().setValue(tempVo.getNameIsNotNull() ? tempVo.getName().toString() : "");
        }
    }

    form.setMode(FormMode.EDIT);
    form.getLocalContext().setSelectedEvent(EmergencyAttendanceEvent.EDIT);
    form.fireCustomControlValueChanged();
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onBtnCancelClick() throws PresentationLogicException
{
    form.getLocalContext().setTIIG(null);
    form.getLocalContext().setRTA(null);

    form.getLocalContext().setSelectedEvent(EmergencyAttendanceEvent.CANCEL);
    form.fireCustomControlValueChanged();
}
项目:openMAXIMS    文件:Logic.java   
@Override
//WDEV-16673
protected void onCcChatRequestedValueChanged() throws PresentationLogicException
{
    if (EmergencyAttendanceEvent.SAVE.equals(form.lyrEmergencyAttendance().tabChart().ccChatRequested().getSelectedEvent()) || EmergencyAttendanceEvent.CANCEL.equals(form.lyrEmergencyAttendance().tabChart().ccChatRequested().getSelectedEvent()))
    {
        form.lyrEmergencyAttendance().tabChart().ccChatRequested().resetSelectedEvent();
        open();
        return;
    }

    form.lyrEmergencyAttendance().tabChart().ccChatRequested().resetSelectedEvent();
    FormMode chartReqMode = form.lyrEmergencyAttendance().tabChart().ccChatRequested().getMode();   
    form.setMode(chartReqMode);
}
项目:openMAXIMS    文件:Logic.java   
@Override
//WDEV-16673
protected void onCcInvoicesBillingValueChanged() throws PresentationLogicException
{
    if (EmergencyAttendanceEvent.SAVE.equals(form.lyrEmergencyAttendance().tabInvoices().ccInvoicesBilling().getSelectedEvent()) || EmergencyAttendanceEvent.CANCEL.equals(form.lyrEmergencyAttendance().tabInvoices().ccInvoicesBilling().getSelectedEvent()))
    {
        form.lyrEmergencyAttendance().tabInvoices().ccInvoicesBilling().resetSelectedEvent();
        open();
        return;
    }

    form.lyrEmergencyAttendance().tabInvoices().ccInvoicesBilling().resetSelectedEvent();
    FormMode invoiceBillingMode = form.lyrEmergencyAttendance().tabInvoices().ccInvoicesBilling().getMode();    
    form.setMode(invoiceBillingMode);
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onBtnNewClick() throws ims.framework.exceptions.PresentationLogicException
{
    form.setMode(FormMode.EDIT);
    form.getLocalContext().setSelectedEvent(EmergencyAttendanceEvent.NEW);
    form.fireCustomControlValueChanged();
}