private void initialize() { form.getLocalContext().setOpenFirstTime(Boolean.FALSE); EDAttendanceformsConfigVo formsConfig = domain.getEDAttendanceformsConfig(); form.getLocalContext().setEDAttendanceformsConfigVo(formsConfig);//WDEV-22943 if(formsConfig != null) form.lyrEmergencyAttendance().tabAttDet().ccAttendanceDetails().setLocalCondextDisplayPrintReport(formsConfig.getDisplayPrintDialog());//WDEV-22943 if (ConfigFlag.UI.SVUH_MANDATORY_DEMOGRAPHIC_ATTRIBUTES.getValue()) //WDEV-22956 { initializeFinalTab(formsConfig); } form.getLocalContext().setIsPatientInEd(null); form.getLocalContext().setAttendanceOfPatientInEd(null); }
private void initializeFinalTab(EDAttendanceformsConfigVo formsConfig) { if (formsConfig==null) return; if (Boolean.TRUE.equals(formsConfig.getInsuranceTabVisible())) { form.lyrEmergencyAttendance().tabInsuranceDetails().ccInsuranceDetails().setIsFinalTab(true); } else if (Boolean.TRUE.equals(formsConfig.getChartRequestedTabVisible())) { form.lyrEmergencyAttendance().tabChart().ccChatRequested().setIsFinalTab(true); } else if (Boolean.TRUE.equals(formsConfig.getInvoicesBillingTabVisible())) { form.lyrEmergencyAttendance().tabInvoices().ccInvoicesBilling().setIsFinalTab(true); } else { form.lyrEmergencyAttendance().tabAttDet().ccAttendanceDetails().setIsFinalTab(true); } }
public EDAttendanceformsConfigVo getEDAttendanceformsConfig() { DomainFactory factory = getDomainFactory(); String hql = "select edAttFormConfig from EDAttendenceformsConfig as edAttFormConfig"; List<?> list = factory.find(hql); return EDAttendanceformsConfigVoAssembler.createEDAttendanceformsConfigVoCollectionFromEDAttendenceformsConfig(list).get(0); }
private void open() { clearScreen(); EDAttendanceformsConfigVo tempVo = domain.getEDAttandanceformsConfigVo(); form.getLocalContext().setCurrentEDAttendanceformsConfig(tempVo); populateScreenFromData(tempVo); form.setMode(FormMode.VIEW); }
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); } } } } }
private void populateAttendanceDetailsTab() { clearAttendanceDetailsTab(); EDAttendanceformsConfigVo tempVo = domain.getEDAttandanceformsConfigVo(); form.getLocalContext().setCurrentEDAttendanceformsConfig(tempVo); populateScreenFromData(tempVo); }
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); } } } } }
private void updateControlState() { //WDEV-16673 form.lyrEmergencyAttendance().tabAttDet().ccAttendanceDetails().setMode(form.getMode()); form.lyrEmergencyAttendance().tabChart().ccChatRequested().setMode(form.getMode()); form.lyrEmergencyAttendance().tabInvoices().ccInvoicesBilling().setMode(form.getMode()); EDAttendanceformsConfigVo formsConfig = domain.getEDAttendanceformsConfig(); grdPreviousHistoryRow selectedRow = form.grdPreviousHistory().getSelectedRow(); if (form.getMode().equals(FormMode.VIEW)) { if (selectedRow != null && selectedRow.getValue() != null) { if (selectedRow.getValue() instanceof AttendanceDetailsVo) { form.getContextMenus().Emergency.getAttendanceDetailsEditAttendanceItem().setVisible(true); } else { form.getContextMenus().Emergency.getAttendanceDetailsEditEpisodeItem().setVisible(false); form.getContextMenus().Emergency.getAttendanceDetailsEditAttendanceItem().setVisible(false); } } else { form.getContextMenus().Emergency.getAttendanceDetailsEditEpisodeItem().setVisible(false); form.getContextMenus().Emergency.getAttendanceDetailsEditAttendanceItem().setVisible(false); } form.getContextMenus().Emergency.getAttendanceDetailsAddAttendanceItem().setVisible(Boolean.TRUE.equals(form.getLocalContext().getAllowNewAttendance()) && form.grdPreviousHistory().getSelectedRow() != null ); form.lyrEmergencyAttendance().tabAttDet().setHeaderVisible(true); form.lyrEmergencyAttendance().tabAttDet().setHeaderEnabled(true); form.lyrEmergencyAttendance().tabChart().setHeaderVisible((form.grdPreviousHistory().getValue() instanceof AttendanceDetailsVo) && formsConfig!=null && Boolean.TRUE.equals(formsConfig.getChartRequestedTabVisible())); form.lyrEmergencyAttendance().tabChart().setHeaderEnabled((form.grdPreviousHistory().getValue() instanceof AttendanceDetailsVo)); form.lyrEmergencyAttendance().tabInvoices().setHeaderVisible((form.grdPreviousHistory().getValue() instanceof AttendanceDetailsVo) && formsConfig!=null && Boolean.TRUE.equals(formsConfig.getInvoicesBillingTabVisible())); form.lyrEmergencyAttendance().tabInvoices().setHeaderEnabled((form.grdPreviousHistory().getValue() instanceof AttendanceDetailsVo)); if (selectedRow!=null && selectedRow.getValue() instanceof EpisodeDetailsVo) { form.lyrEmergencyAttendance().showtabAttDet(); } } else { form.lyrEmergencyAttendance().tabAttDet().setHeaderEnabled(form.lyrEmergencyAttendance().tabAttDet().isVisible()); form.lyrEmergencyAttendance().tabChart().setHeaderEnabled(form.lyrEmergencyAttendance().tabChart().isVisible()); form.lyrEmergencyAttendance().tabInvoices().setHeaderEnabled(form.lyrEmergencyAttendance().tabInvoices().isVisible()); } form.lblAttendingAsAdultPaediatric().setVisible(form.grdPreviousHistory().getValue()!=null && form.grdPreviousHistory().getValue() instanceof AttendanceDetailsVo); }
public EDAttendanceformsConfigVo getEDAttendanceformsConfig() { IEmergencyHelper impl = (IEmergencyHelper)getDomainImpl(EmergencyHelper.class); return impl.getEDAttendanceformsConfig(); }
private void updateControlState() { //WDEV-16673 form.lyrEmergencyAttendance().tabAttDet().ccAttendanceDetails().setMode(form.getMode()); form.lyrEmergencyAttendance().tabChart().ccChatRequested().setMode(form.getMode()); form.lyrEmergencyAttendance().tabInvoices().ccInvoicesBilling().setMode(form.getMode()); form.lyrEmergencyAttendance().tabInsuranceDetails().ccInsuranceDetails().setMode(form.getMode()); //wdev-19015 boolean SVUH_FUNCTIONALITY = ConfigFlag.UI.SVUH_MANDATORY_DEMOGRAPHIC_ATTRIBUTES.getValue(); //WDEV-22956 boolean isCurrentLoggedInUserMemberOfStaff = domain.getMosUser() != null; //WDEV-18893 EDAttendanceformsConfigVo formsConfig = form.getLocalContext().getEDAttendanceformsConfigVo(); grdPreviousHistoryRow selectedRow = form.grdPreviousHistory().getSelectedRow(); form.getContextMenus().Emergency.getAttendanceDetailsCancelAttendanceItem().setVisible(form.getMode().equals(FormMode.VIEW) && selectedRow != null && selectedRow.getValue() != null && selectedRow.getValue() instanceof EmergencyAttendanceShortVo); //wdev-19040 if (form.getMode().equals(FormMode.VIEW)) { if (selectedRow != null && selectedRow.getValue() != null) { if (selectedRow.getValue() instanceof EmergencyAttendanceShortVo) { form.getContextMenus().Emergency.getAttendanceDetailsEditAttendanceItem().setVisible(true); } else { form.getContextMenus().Emergency.getAttendanceDetailsEditEpisodeItem().setVisible(false); form.getContextMenus().Emergency.getAttendanceDetailsEditAttendanceItem().setVisible(false); } } else { form.getContextMenus().Emergency.getAttendanceDetailsEditEpisodeItem().setVisible(false); form.getContextMenus().Emergency.getAttendanceDetailsEditAttendanceItem().setVisible(false); } form.getContextMenus().Emergency.getAttendanceDetailsAddAttendanceItem().setVisible(isCurrentLoggedInUserMemberOfStaff && Boolean.TRUE.equals(form.getLocalContext().getAllowNewAttendance()) && form.grdPreviousHistory().getSelectedRow() != null ); //WDEV-18893 form.lyrEmergencyAttendance().tabAttDet().setHeaderVisible(true); form.lyrEmergencyAttendance().tabAttDet().setHeaderEnabled(true); form.lyrEmergencyAttendance().tabChart().setHeaderVisible((form.grdPreviousHistory().getValue() instanceof EmergencyAttendanceShortVo || SVUH_FUNCTIONALITY) && formsConfig!=null && Boolean.TRUE.equals(formsConfig.getChartRequestedTabVisible())); form.lyrEmergencyAttendance().tabChart().setHeaderEnabled((form.grdPreviousHistory().getValue() instanceof EmergencyAttendanceShortVo || (SVUH_FUNCTIONALITY && FormMode.EDIT.equals(form.getMode())))); form.lyrEmergencyAttendance().tabInvoices().setHeaderVisible((form.grdPreviousHistory().getValue() instanceof EmergencyAttendanceShortVo || SVUH_FUNCTIONALITY) && formsConfig!=null && Boolean.TRUE.equals(formsConfig.getInvoicesBillingTabVisible())); form.lyrEmergencyAttendance().tabInvoices().setHeaderEnabled((form.grdPreviousHistory().getValue() instanceof EmergencyAttendanceShortVo || (SVUH_FUNCTIONALITY && FormMode.EDIT.equals(form.getMode())))); //wdev-19015 form.lyrEmergencyAttendance().tabInsuranceDetails().setHeaderVisible((form.grdPreviousHistory().getValue() instanceof EmergencyAttendanceShortVo || SVUH_FUNCTIONALITY) && formsConfig!=null && Boolean.TRUE.equals(formsConfig.getInsuranceTabVisible())); form.lyrEmergencyAttendance().tabInsuranceDetails().setHeaderEnabled((form.grdPreviousHistory().getValue() instanceof EmergencyAttendanceShortVo || (SVUH_FUNCTIONALITY && FormMode.EDIT.equals(form.getMode())))); //----- if (selectedRow!=null && selectedRow.getValue() instanceof EpisodeDetailsVo) { form.lyrEmergencyAttendance().showtabAttDet(); } } else { form.lyrEmergencyAttendance().tabAttDet().setHeaderEnabled(form.lyrEmergencyAttendance().tabAttDet().isVisible()); form.lyrEmergencyAttendance().tabChart().setHeaderEnabled(form.lyrEmergencyAttendance().tabChart().isVisible()); form.lyrEmergencyAttendance().tabInvoices().setHeaderEnabled(form.lyrEmergencyAttendance().tabInvoices().isVisible()); form.lyrEmergencyAttendance().tabInsuranceDetails().setHeaderEnabled(form.lyrEmergencyAttendance().tabInsuranceDetails().isVisible()); //wdev-19015 } form.lblAttendingAsAdultPaediatric().setVisible(form.grdPreviousHistory().getValue()!=null && form.grdPreviousHistory().getValue() instanceof EmergencyAttendanceShortVo); //WDEV-20453 }
public EDAttendanceformsConfigVo getEDAttendanceformsConfig();