private void displayTabCronological() { form.lyr1().showtabChronological(); form.lyr1().tabChronological().setHeaderVisible(true); form.lyr1().tabNewActions().setHeaderVisible(false); form.lyr1().tabChronological().grdChronological().getRows().clear(); form.lyr1().tabChronological().cmbInterval().setValue(PlanOfCareInterval.HOURS72); form.lyr1().tabChronological().dteStart().setValue(null); form.lyr1().tabChronological().dteEnd().setValue(null); //list last 72 hours populateChronologicalGrig(domain.listSearchNoting((new DateTime()).addHours(-72), new DateTime(), form.getGlobalContext().Core.getCurrentCareContext())); }
private void clear() { form.lyr1().tabChronological().grdChronological().getRows().clear(); form.lyr1().tabChronological().cmbInterval().setValue(PlanOfCareInterval.HOURS72); //wdev-10721 form.lyr1().tabChronological().dteStart().setValue(null); form.lyr1().tabChronological().dteEnd().setValue(null); //---------- }
protected void onFormOpen() throws ims.framework.exceptions.PresentationLogicException { form.cmbInterval().setValue((PlanOfCareInterval) form.cmbInterval().getValues().get(0)); populateActions(); populateAssessmentGrid(); populateInvasiveDeviceGrid(); displayLastDPPScores(); updateContextMenu(); }
protected void onFormOpen() throws ims.framework.exceptions.PresentationLogicException { form.cmbInterval().setValue((PlanOfCareInterval) form.cmbInterval().getValues().get(0)); populateAssessmentGrid(); populateInvasiveDeviceGrid(); displayLastDPPScores(); //WDEV-19389 if (!(form.getGlobalContext().Core.getCurrentCareContextIsNotNull() && form.getGlobalContext().Nursing.getNursingSummarySearchCriteriaIsNotNull() && form.getGlobalContext().Core.getCurrentCareContext().equals(form.getGlobalContext().Nursing.getNursingSummarySearchCriteria().getCareContext()))) { form.getGlobalContext().Nursing.setNursingSummarySearchCriteria(null); } if(form.getGlobalContext().Nursing.getNursingSummarySearchCriteriaIsNotNull()) { setSearchCriteria(form.getGlobalContext().Nursing.getNursingSummarySearchCriteria()); try { onCmbIntervalValueChanged(); } catch (PresentationLogicException e) { e.printStackTrace(); } } else populateActions(); //WDEV-19389 - end updateContextMenu(); }
private void populateActions() { DateTime date1 = null; DateTime date2 = null; if(form.cmbInterval().getValue() != null) { date1 = new DateTime(); date2 = new DateTime(); int hours = 0; if(PlanOfCareInterval.HOURS12.equals(form.cmbInterval().getValue())) hours = -12; else if(PlanOfCareInterval.HOURS24.equals(form.cmbInterval().getValue())) hours = -24; else if(PlanOfCareInterval.HOURS36.equals(form.cmbInterval().getValue())) hours = -36; else if(PlanOfCareInterval.HOURS48.equals(form.cmbInterval().getValue())) hours = -48; else if(PlanOfCareInterval.HOURS72.equals(form.cmbInterval().getValue())) hours = -72; date1.addHours(hours); } PlanOfCareListVoCollection coll = domain.listPlansofCare(form.getGlobalContext().Core.getCurrentCareContext(), null, date1, date2); NursingSummaryHelper helper = new NursingSummaryHelper(form.dyngrdActions(), form.getImages().Core.RedSqaure, form.getImages().Core.GreenSquare, form.getImages().Core.YellowSquare, form.getImages().Core.Information, coll); helper.displayActionsGroupByPlan(coll, false); }
private void listAllActions() { form.lyr1().tabChronological().grdChronological().getRows().clear(); if (form.lyr1().tabChronological().cmbInterval().getValue() == null && form.lyr1().tabChronological().dteStart().getValue() == null && form.lyr1().tabChronological().dteEnd().getValue() == null) { engine.showMessage("Please enter some search criteria !"); return; } DateTime startDate = null; DateTime endDate = null; if (form.lyr1().tabChronological().cmbInterval().getValue() != null) { PlanOfCareInterval hours = form.lyr1().tabChronological().cmbInterval().getValue(); int hoursInput = -72; if (hours.equals(PlanOfCareInterval.HOURS12)) hoursInput = -12; else if (hours.equals(PlanOfCareInterval.HOURS24)) hoursInput = -24; else if (hours.equals(PlanOfCareInterval.HOURS36)) hoursInput = -36; else if (hours.equals(PlanOfCareInterval.HOURS48)) hoursInput = -48; else if (hours.equals(PlanOfCareInterval.HOURS72)) hoursInput = -72; startDate = new DateTime().addHours(hoursInput); endDate = new DateTime(); populateChronologicalGrig(domain.listSearchNoting(startDate, endDate, form.getGlobalContext().Core.getCurrentCareContext())); if(form.lyr1().tabChronological().grdChronological().getRows().size() == 0) engine.showMessage("No records found."); } else { if (form.lyr1().tabChronological().dteStart().getValue() != null && form.lyr1().tabChronological().dteEnd().getValue() != null && form.lyr1().tabChronological().dteStart().getValue().isGreaterThan( form.lyr1().tabChronological().dteEnd().getValue())) { engine.showMessage("The Start Date is greater than End Date!"); return; } else { Time timeStart = new Time(0, 0), timeEnd = new Time(23, 59); if(form.lyr1().tabChronological().dteStart().getValue() != null) startDate = new DateTime(form.lyr1().tabChronological().dteStart().getValue(), timeStart); if(form.lyr1().tabChronological().dteEnd().getValue() != null) endDate = new DateTime(form.lyr1().tabChronological().dteEnd().getValue(), timeEnd); populateChronologicalGrig(domain.listSearchNoting(startDate, endDate, form.getGlobalContext().Core.getCurrentCareContext())); if(form.lyr1().tabChronological().grdChronological().getRows().size() == 0) engine.showMessage("No records found."); } } form.getGlobalContext().Nursing.setPlanOfCareActionsSearchCriteria(getSearchCriteria()); //WDEV-19389 //clear dte //form.lyr1().tabChronological().dteStart().setValue(null); //form.lyr1().tabChronological().dteEnd().setValue(null); }
private void listAllActions() { form.lyr1().tabChronological().grdChronological().getRows().clear(); if (form.lyr1().tabChronological().cmbInterval().getValue() == null && form.lyr1().tabChronological().dteStart().getValue() == null && form.lyr1().tabChronological().dteEnd().getValue() == null) { engine.showMessage("Please enter some search criteria !"); return; } DateTime startDate = null; DateTime endDate = null; if (form.lyr1().tabChronological().cmbInterval().getValue() != null) { PlanOfCareInterval hours = form.lyr1().tabChronological().cmbInterval().getValue(); int hoursInput = -72; if (hours.equals(PlanOfCareInterval.HOURS12)) hoursInput = -12; else if (hours.equals(PlanOfCareInterval.HOURS24)) hoursInput = -24; else if (hours.equals(PlanOfCareInterval.HOURS36)) hoursInput = -36; else if (hours.equals(PlanOfCareInterval.HOURS48)) hoursInput = -48; else if (hours.equals(PlanOfCareInterval.HOURS72)) hoursInput = -72; startDate = new DateTime().addHours(hoursInput); endDate = new DateTime(); populateChronologicalGrig(domain.listSearchNoting(startDate, endDate, form.getGlobalContext().Core.getCurrentCareContext())); if(form.lyr1().tabChronological().grdChronological().getRows().size() == 0) engine.showMessage("No records found."); } else { if (form.lyr1().tabChronological().dteStart().getValue() != null && form.lyr1().tabChronological().dteEnd().getValue() != null && form.lyr1().tabChronological().dteStart().getValue().isGreaterThan( form.lyr1().tabChronological().dteEnd().getValue())) { engine.showMessage("The Start Date is greater than End Date!"); return; } else { Time timeStart = new Time(0, 0), timeEnd = new Time(23, 59); if(form.lyr1().tabChronological().dteStart().getValue() != null) startDate = new DateTime(form.lyr1().tabChronological().dteStart().getValue(), timeStart); if(form.lyr1().tabChronological().dteEnd().getValue() != null) endDate = new DateTime(form.lyr1().tabChronological().dteEnd().getValue(), timeEnd); populateChronologicalGrig(domain.listSearchNoting(startDate, endDate, form.getGlobalContext().Core.getCurrentCareContext())); if(form.lyr1().tabChronological().grdChronological().getRows().size() == 0) engine.showMessage("No records found."); } } //clear dte //form.lyr1().tabChronological().dteStart().setValue(null); //form.lyr1().tabChronological().dteEnd().setValue(null); }