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

项目:AvoinApotti    文件:Logic.java   
private void populateScreenFromData(EDAttendanceformsConfigVo record)
{
    if( record == null )
        return;

    form.lyrED().tabPageAttendanceDetConfig().chkChartRequest().setValue(record.getChartRequestedTabVisible());
    form.lyrED().tabPageAttendanceDetConfig().chkInvoiceBill().setValue(record.getInvoicesBillingTabVisible());

    if( record.getControlsConfigItemsIsNotNull() && record.getControlsConfigItems().size() > 0)
    {
        for(int i = 0; i < record.getControlsConfigItems().size();i++)
        {
            EDAttendanceControlsConfigVo tempVo = record.getControlsConfigItems().get(i);
            if( tempVo != null )
            {
                if( tempVo.getControlTypeIsNotNull() && tempVo.getControlType().equals(EDAttendenceControlType.ATTEND_CONTROLS))
                {
                    populateAttendanceDetailsControlConfigGrid(tempVo);
                }
                else if( tempVo.getControlTypeIsNotNull() && tempVo.getControlType().equals(EDAttendenceControlType.CHART_CONTROLS) )
                {
                    populateChartRequestGrid( tempVo );
                }
                else if( tempVo.getControlTypeIsNotNull() && tempVo.getControlType().equals(EDAttendenceControlType.INV_BILL_CONTROLS))
                {
                    populateInvoicesBillGrid( tempVo);
                }
            }
        }
    }

}
项目:AvoinApotti    文件:Logic.java   
private void populateAttendanceDetailsControlConfigGrid( EDAttendanceControlsConfigVo record)
{
    if( record == null )
        return;

    grdAttendanceDetailsControlConfigRow row = form.lyrED().tabPageAttendanceDetConfig().lyrAttendanceDetails().tabPageAttendanceDetalis().grdAttendanceDetailsControlConfig().getRows().newRow();
    row.setColumnScreenControl(record.getControlDescriptionOnForm());
    row.setColumnVisible(record.getIsVisible());
    row.setColumnEditable(record.getIsEditable());
    row.setColumnRequired(record.getIsRequired());
    row.setValue(record);

}
项目:AvoinApotti    文件:Logic.java   
private void populateChartRequestGrid( EDAttendanceControlsConfigVo record)
{
    if( record == null )
        return;

    grdChartRequestRow row = form.lyrED().tabPageAttendanceDetConfig().lyrAttendanceDetails().tabPageChartRequested().grdChartRequest().getRows().newRow();
    row.setColumnScreenControl(record.getControlDescriptionOnForm());
    row.setColumnVisible(record.getIsVisible());
    row.setColumnEditable(record.getIsEditable());
    row.setColumnRequired(record.getIsRequired());
    row.setValue(record);

}
项目:AvoinApotti    文件:Logic.java   
private void populateInvoicesBillGrid( EDAttendanceControlsConfigVo record)
{
    if( record == null )
        return;

    grdInvoicesBillRow row = form.lyrED().tabPageAttendanceDetConfig().lyrAttendanceDetails().tabPageInvoicesBilling().grdInvoicesBill().getRows().newRow();
    row.setColumnScreenControl(record.getControlDescriptionOnForm());
    row.setColumnVisible(record.getIsVisible());
    row.setColumnEditable(record.getIsEditable());
    row.setColumnRequired(record.getIsRequired());
    row.setValue(record);

}
项目:openMAXIMS    文件:Logic.java   
private void populateScreenFromData(EDAttendanceformsConfigVo record)
{
    if( record == null )
        return;

    form.lyrED().tabPageAttendanceDetConfig().chkChartRequest().setValue(record.getChartRequestedTabVisible());
    form.lyrED().tabPageAttendanceDetConfig().chkInvoiceBill().setValue(record.getInvoicesBillingTabVisible());
    form.lyrED().tabPageAttendanceDetConfig().chkHealthCover().setValue(record.getInsuranceTabVisible());           //wdev-19014
    form.lyrED().tabPageAttendanceDetConfig().chkDisplayPrintingDialog().setValue(record.getDisplayPrintDialog());//WDEV-22943


    if( record.getControlsConfigItemsIsNotNull() && record.getControlsConfigItems().size() > 0)
    {
        for(int i = 0; i < record.getControlsConfigItems().size();i++)
        {
            EDAttendanceControlsConfigVo tempVo = record.getControlsConfigItems().get(i);
            if( tempVo != null )
            {
                if( tempVo.getControlTypeIsNotNull() && tempVo.getControlType().equals(EDAttendenceControlType.ATTEND_CONTROLS))
                {
                    populateAttendanceDetailsControlConfigGrid(tempVo);
                }
                else if( tempVo.getControlTypeIsNotNull() && tempVo.getControlType().equals(EDAttendenceControlType.CHART_CONTROLS) )
                {
                    populateChartRequestGrid( tempVo );
                }
                else if( tempVo.getControlTypeIsNotNull() && tempVo.getControlType().equals(EDAttendenceControlType.INV_BILL_CONTROLS))
                {
                    populateInvoicesBillGrid( tempVo);
                }
                else if( tempVo.getControlTypeIsNotNull() && tempVo.getControlType().equals(EDAttendenceControlType.INSURANCE_CONTROLS))
                {
                    populateInsuranceDetailsGrid( tempVo);
                }
            }
        }
    }

}
项目:openMAXIMS    文件:Logic.java   
private void populateAttendanceDetailsControlConfigGrid( EDAttendanceControlsConfigVo record)
{
    if( record == null )
        return;

    grdAttendanceDetailsControlConfigRow row = form.lyrED().tabPageAttendanceDetConfig().lyrAttendanceDetails().tabPageAttendanceDetalis().grdAttendanceDetailsControlConfig().getRows().newRow();
    row.setColumnScreenControl(record.getControlDescriptionOnForm());
    row.setColumnVisible(record.getIsVisible());
    row.setColumnEditable(record.getIsEditable());
    row.setColumnRequired(record.getIsRequired());
    row.setValue(record);

}
项目:openMAXIMS    文件:Logic.java   
private void populateChartRequestGrid( EDAttendanceControlsConfigVo record)
{
    if( record == null )
        return;

    grdChartRequestRow row = form.lyrED().tabPageAttendanceDetConfig().lyrAttendanceDetails().tabPageChartRequested().grdChartRequest().getRows().newRow();
    row.setColumnScreenControl(record.getControlDescriptionOnForm());
    row.setColumnVisible(record.getIsVisible());
    row.setColumnEditable(record.getIsEditable());
    row.setColumnRequired(record.getIsRequired());
    row.setValue(record);

}
项目:openMAXIMS    文件:Logic.java   
private void populateInvoicesBillGrid( EDAttendanceControlsConfigVo record)
{
    if( record == null )
        return;

    grdInvoicesBillRow row = form.lyrED().tabPageAttendanceDetConfig().lyrAttendanceDetails().tabPageInvoicesBilling().grdInvoicesBill().getRows().newRow();
    row.setColumnScreenControl(record.getControlDescriptionOnForm());
    row.setColumnVisible(record.getIsVisible());
    row.setColumnEditable(record.getIsEditable());
    row.setColumnRequired(record.getIsRequired());
    row.setValue(record);

}
项目:openMAXIMS    文件:Logic.java   
private void populateInsuranceDetailsGrid( EDAttendanceControlsConfigVo record)
{
    if( record == null )
        return;

    grdInsuranceDetailsRow row = form.lyrED().tabPageAttendanceDetConfig().lyrAttendanceDetails().tabPageInsuranceDetails().grdInsuranceDetails().getRows().newRow();
    row.setColumnScreenControl(record.getControlDescriptionOnForm());
    row.setColumnVisible(record.getIsVisible());
    row.setColumnEditable(record.getIsEditable());
    row.setColumnRequired(record.getIsRequired());
    row.setValue(record);

}
项目:openMAXIMS    文件:Logic.java   
private void populateScreenFromData(EDAttendanceformsConfigVo record)
{
    if( record == null )
        return;

    form.lyrED().tabPageAttendanceDetConfig().chkChartRequest().setValue(record.getChartRequestedTabVisible());
    form.lyrED().tabPageAttendanceDetConfig().chkInvoiceBill().setValue(record.getInvoicesBillingTabVisible());

    if( record.getControlsConfigItemsIsNotNull() && record.getControlsConfigItems().size() > 0)
    {
        for(int i = 0; i < record.getControlsConfigItems().size();i++)
        {
            EDAttendanceControlsConfigVo tempVo = record.getControlsConfigItems().get(i);
            if( tempVo != null )
            {
                if( tempVo.getControlTypeIsNotNull() && tempVo.getControlType().equals(EDAttendenceControlType.ATTEND_CONTROLS))
                {
                    populateAttendanceDetailsControlConfigGrid(tempVo);
                }
                else if( tempVo.getControlTypeIsNotNull() && tempVo.getControlType().equals(EDAttendenceControlType.CHART_CONTROLS) )
                {
                    populateChartRequestGrid( tempVo );
                }
                else if( tempVo.getControlTypeIsNotNull() && tempVo.getControlType().equals(EDAttendenceControlType.INV_BILL_CONTROLS))
                {
                    populateInvoicesBillGrid( tempVo);
                }
            }
        }
    }

}
项目:openMAXIMS    文件:Logic.java   
private void populateAttendanceDetailsControlConfigGrid( EDAttendanceControlsConfigVo record)
{
    if( record == null )
        return;

    grdAttendanceDetailsControlConfigRow row = form.lyrED().tabPageAttendanceDetConfig().lyrAttendanceDetails().tabPageAttendanceDetalis().grdAttendanceDetailsControlConfig().getRows().newRow();
    row.setColumnScreenControl(record.getControlDescriptionOnForm());
    row.setColumnVisible(record.getIsVisible());
    row.setColumnEditable(record.getIsEditable());
    row.setColumnRequired(record.getIsRequired());
    row.setValue(record);

}
项目:openMAXIMS    文件:Logic.java   
private void populateChartRequestGrid( EDAttendanceControlsConfigVo record)
{
    if( record == null )
        return;

    grdChartRequestRow row = form.lyrED().tabPageAttendanceDetConfig().lyrAttendanceDetails().tabPageChartRequested().grdChartRequest().getRows().newRow();
    row.setColumnScreenControl(record.getControlDescriptionOnForm());
    row.setColumnVisible(record.getIsVisible());
    row.setColumnEditable(record.getIsEditable());
    row.setColumnRequired(record.getIsRequired());
    row.setValue(record);

}
项目:openMAXIMS    文件:Logic.java   
private void populateInvoicesBillGrid( EDAttendanceControlsConfigVo record)
{
    if( record == null )
        return;

    grdInvoicesBillRow row = form.lyrED().tabPageAttendanceDetConfig().lyrAttendanceDetails().tabPageInvoicesBilling().grdInvoicesBill().getRows().newRow();
    row.setColumnScreenControl(record.getControlDescriptionOnForm());
    row.setColumnVisible(record.getIsVisible());
    row.setColumnEditable(record.getIsEditable());
    row.setColumnRequired(record.getIsRequired());
    row.setValue(record);

}
项目:openmaxims-linux    文件:Logic.java   
private void populateScreenFromData(EDAttendanceformsConfigVo record)
{
    if( record == null )
        return;

    form.lyrED().tabPageAttendanceDetConfig().chkChartRequest().setValue(record.getChartRequestedTabVisible());
    form.lyrED().tabPageAttendanceDetConfig().chkInvoiceBill().setValue(record.getInvoicesBillingTabVisible());

    if( record.getControlsConfigItemsIsNotNull() && record.getControlsConfigItems().size() > 0)
    {
        for(int i = 0; i < record.getControlsConfigItems().size();i++)
        {
            EDAttendanceControlsConfigVo tempVo = record.getControlsConfigItems().get(i);
            if( tempVo != null )
            {
                if( tempVo.getControlTypeIsNotNull() && tempVo.getControlType().equals(EDAttendenceControlType.ATTEND_CONTROLS))
                {
                    populateAttendanceDetailsControlConfigGrid(tempVo);
                }
                else if( tempVo.getControlTypeIsNotNull() && tempVo.getControlType().equals(EDAttendenceControlType.CHART_CONTROLS) )
                {
                    populateChartRequestGrid( tempVo );
                }
                else if( tempVo.getControlTypeIsNotNull() && tempVo.getControlType().equals(EDAttendenceControlType.INV_BILL_CONTROLS))
                {
                    populateInvoicesBillGrid( tempVo);
                }
            }
        }
    }

}
项目:openmaxims-linux    文件:Logic.java   
private void populateAttendanceDetailsControlConfigGrid( EDAttendanceControlsConfigVo record)
{
    if( record == null )
        return;

    grdAttendanceDetailsControlConfigRow row = form.lyrED().tabPageAttendanceDetConfig().lyrAttendanceDetails().tabPageAttendanceDetalis().grdAttendanceDetailsControlConfig().getRows().newRow();
    row.setColumnScreenControl(record.getControlDescriptionOnForm());
    row.setColumnVisible(record.getIsVisible());
    row.setColumnEditable(record.getIsEditable());
    row.setColumnRequired(record.getIsRequired());
    row.setValue(record);

}
项目:openmaxims-linux    文件:Logic.java   
private void populateChartRequestGrid( EDAttendanceControlsConfigVo record)
{
    if( record == null )
        return;

    grdChartRequestRow row = form.lyrED().tabPageAttendanceDetConfig().lyrAttendanceDetails().tabPageChartRequested().grdChartRequest().getRows().newRow();
    row.setColumnScreenControl(record.getControlDescriptionOnForm());
    row.setColumnVisible(record.getIsVisible());
    row.setColumnEditable(record.getIsEditable());
    row.setColumnRequired(record.getIsRequired());
    row.setValue(record);

}
项目:openmaxims-linux    文件:Logic.java   
private void populateInvoicesBillGrid( EDAttendanceControlsConfigVo record)
{
    if( record == null )
        return;

    grdInvoicesBillRow row = form.lyrED().tabPageAttendanceDetConfig().lyrAttendanceDetails().tabPageInvoicesBilling().grdInvoicesBill().getRows().newRow();
    row.setColumnScreenControl(record.getControlDescriptionOnForm());
    row.setColumnVisible(record.getIsVisible());
    row.setColumnEditable(record.getIsEditable());
    row.setColumnRequired(record.getIsRequired());
    row.setValue(record);

}
项目:openMAXIMS    文件:Logic.java   
private void updateControlState() //WDEV-22796
{ 
    EmergencyAttendanceBillingVo currentEmergAttBilling = (form.getLocalContext().getAttendanceDetailsRefIsNotNull() ? domain.getAttendanceBillingByEmergencyAttendance(form.getLocalContext().getAttendanceDetailsRef()) : null);

    form.btnNew().setVisible(FormMode.VIEW.equals(form.getMode()) && currentEmergAttBilling == null && form.getLocalContext().getAttendanceDetailsRefIsNotNull()); //WDEV-22956
    form.btnEdit().setVisible(FormMode.VIEW.equals(form.getMode()) && currentEmergAttBilling != null);

    form.cmbIsPatientExempt().setRequired(true);
    form.cmbIsPatientExempt().setEnabled(FormMode.EDIT.equals(form.getMode()));

    EDAttendanceControlsConfigVoCollection attendanceControlsConfig = domain.getEDAttendanceControlsConfig(EDAttendenceControlType.INV_BILL_CONTROLS);

    for (int i = 0; attendanceControlsConfig != null && i < attendanceControlsConfig.size(); i++)
    {
        EDAttendanceControlsConfigVo controlConfig = attendanceControlsConfig.get(i);

        if (EXEMPTION_REASON.equals(controlConfig.getControlIMSID()))
        {
            form.lblExemptionReason().setVisible(controlConfig.getIsVisible());

            form.cmbExemptionReason().setVisible(controlConfig.getIsVisible());
            form.cmbExemptionReason().setEnabled(FormMode.EDIT.equals(form.getMode()) && controlConfig.getIsEditable() && !YesNo.NO.equals(form.cmbIsPatientExempt().getValue()));
            form.cmbExemptionReason().setRequired(controlConfig.getIsRequired() || YesNo.YES.equals(form.cmbIsPatientExempt().getValue()));
        }
        else if (EXEMPTION_REASON_OTHER.equals(controlConfig.getControlIMSID()))
        {
            form.lblExemptionReasonOther().setVisible(controlConfig.getIsVisible());

            form.txtExemptionReasonOther().setVisible(controlConfig.getIsVisible());
            form.txtExemptionReasonOther().setEnabled(FormMode.EDIT.equals(form.getMode()) && !YesNo.NO.equals(form.cmbIsPatientExempt().getValue()) && (controlConfig.getIsEditable() || ExemptionReason.EXEMPT_OTHER.equals(form.cmbExemptionReason().getValue())));
            form.txtExemptionReasonOther().setRequired(controlConfig.getIsRequired() || ExemptionReason.EXEMPT_OTHER.equals(form.cmbExemptionReason().getValue()));
        }
        else if (PAYMENT_MADE.equals(controlConfig.getControlIMSID()))
        {
            form.lblPaymentMade().setVisible(controlConfig.getIsVisible());

            form.cmbPaymentMade().setVisible(controlConfig.getIsVisible());
            form.cmbPaymentMade().setEnabled(FormMode.EDIT.equals(form.getMode()) && controlConfig.getIsEditable() && !YesNo.YES.equals(form.cmbIsPatientExempt().getValue()));
            form.cmbPaymentMade().setRequired(controlConfig.getIsRequired() || YesNo.NO.equals(form.cmbIsPatientExempt().getValue()));
        }
        else if (PAYMENT_TYPE.equals(controlConfig.getControlIMSID()))
        {
            form.lblPaymentType().setVisible(controlConfig.getIsVisible());

            form.cmbPaymentType().setVisible(controlConfig.getIsVisible());
            form.cmbPaymentType().setEnabled(FormMode.EDIT.equals(form.getMode()) && controlConfig.getIsEditable() && !YesNo.NO.equals(form.cmbPaymentMade().getValue()));
            form.cmbPaymentType().setRequired(controlConfig.getIsRequired() || (YesNo.NO.equals(form.cmbIsPatientExempt().getValue()) && !YesNo.NO.equals(form.cmbPaymentMade().getValue())));//WDEV-17160
        }
        else if (INVOICE_AMOUNT.equals(controlConfig.getControlIMSID())) 
        {
            form.lblInvoiceAmount().setVisible(controlConfig.getIsVisible());

            //WDEV-22795
            form.cmbInvoiceAmount().setVisible(controlConfig.getIsVisible());
            form.cmbInvoiceAmount().setEnabled(FormMode.EDIT.equals(form.getMode()) && controlConfig.getIsEditable() && !YesNo.YES.equals(form.cmbIsPatientExempt().getValue()));
            form.cmbInvoiceAmount().setRequired(controlConfig.getIsRequired() || (YesNo.NO.equals(form.cmbIsPatientExempt().getValue()) && !YesNo.NO.equals(form.cmbPaymentMade().getValue())));//WDEV-17160
        }
        else if (REASON_FOR_NON_PAYMENT.equals(controlConfig.getControlIMSID()))
        {
            form.lblReasonForNonPayment().setVisible(controlConfig.getIsVisible());

            form.cmbReasonForNonPayment().setVisible(controlConfig.getIsVisible());
            form.cmbReasonForNonPayment().setEnabled(FormMode.EDIT.equals(form.getMode()) && controlConfig.getIsEditable() && !YesNo.YES.equals(form.cmbIsPatientExempt().getValue()) && !YesNo.YES.equals(form.cmbPaymentMade().getValue())); //WDEV-22955
            form.cmbReasonForNonPayment().setRequired(controlConfig.getIsRequired() || (YesNo.NO.equals(form.cmbIsPatientExempt().getValue()) && YesNo.NO.equals(form.cmbPaymentMade().getValue())) && !YesNo.YES.equals(form.cmbPaymentMade().getValue()));
        }
        else if (PAYMENT_REFUNDED.equals(controlConfig.getControlIMSID()))
        {
            form.lblPaymentRefunded().setVisible(controlConfig.getIsVisible());

            form.cmbPaymentRefunded().setVisible(controlConfig.getIsVisible());
            form.cmbPaymentRefunded().setEnabled(FormMode.EDIT.equals(form.getMode()) && controlConfig.getIsEditable() && !YesNo.YES.equals(form.cmbIsPatientExempt().getValue()));
            form.cmbPaymentRefunded().setRequired(controlConfig.getIsRequired());
        }
    }

    //WDEV-22956
    boolean SVUH_FUNCTIONALITY = ConfigFlag.UI.SVUH_MANDATORY_DEMOGRAPHIC_ATTRIBUTES.getValue();
    form.btnSave().setVisible(FormMode.EDIT.equals(form.getMode()) && (!Boolean.TRUE.equals(form.getLocalContext().getIsNewAttendance()) || !SVUH_FUNCTIONALITY || Boolean.TRUE.equals(form.getLocalContext().getIsFinalTab())));
    form.btnCancel().setVisible(FormMode.EDIT.equals(form.getMode()) && (!Boolean.TRUE.equals(form.getLocalContext().getIsNewAttendance()) || !SVUH_FUNCTIONALITY || Boolean.TRUE.equals(form.getLocalContext().getIsFinalTab())));
    form.btnNext().setVisible(FormMode.EDIT.equals(form.getMode()) && !form.btnSave().isVisible());
}