Changeset 4701
- Timestamp:
- 06/26/08 09:38:04 (5 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
openmrs-modules/doubleentryreconciliation/web/module/reconcileForm.jsp
r4665 r4701 24 24 25 25 <script type="text/javascript"> 26 function errh(msg) { 27 alert(msg); 28 } 29 DWREngine.setErrorHandler(errh); 30 26 31 function chooseObs(rowToHide, goodEncId, goodObsId, badEncId, badObsId) { 27 32 hideDiv(rowToHide); openmrs-modules/doubleentryreconciliation/web/src/org/openmrs/module/doubleentryreconciliation/web/DWRDoubleEntryReconciliation.java
r4665 r4701 23 23 public DWRDoubleEntryReconciliation() { } 24 24 25 private void checkLoggedOut(){ 26 if(!Context.isAuthenticated()) 27 throw new IllegalArgumentException("You're logged out. Action did not go through."); 28 } 29 25 30 public boolean voidObsGroup(Integer obsGroupId) { 26 if (obsGroupId == null) 31 checkLoggedOut(); 32 if (obsGroupId == null) 27 33 throw new NullPointerException("obsGroupId cannot be null"); 28 34 if (NEW_OBS_GROUPS) { … … 43 49 44 50 public boolean copyObsGroupToEncounter(Integer obsGroupId, Integer encounterId) { 45 if (obsGroupId == null) 51 checkLoggedOut(); 52 if (obsGroupId == null) 46 53 throw new NullPointerException("obsGroupId cannot be null"); 47 54 if (encounterId == null) … … 131 138 132 139 public boolean chooseCorrectObs(Integer goodEncId, Integer goodObsId, Integer badEncId, Integer badObsId) { 140 checkLoggedOut(); 133 141 if (goodEncId == null) 134 142 throw new NullPointerException("goodEncId cannot be null");