Produced by Araxis Merge on 12/7/2018 11:36:22 AM Central Standard Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | C:\SCRUB\MHED\MHED\VATS 2.3.0\var-utility-web-2.3.0@19406cb7810\app\src\modules\var-utility\pages\direct-scheduling | direct-scheduling_controller.js | Thu Sep 13 18:55:48 2018 UTC |
| 2 | C:\MHED-scrubbed\MHED\MHED\VATS 2.3.0\var-utility-web-2.3.0@19406cb7810\app\src\modules\var-utility\pages\direct-scheduling | direct-scheduling_controller.js | Fri Dec 7 13:49:56 2018 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 5 | 160 |
| Changed | 4 | 18 |
| Inserted | 0 | 0 |
| Removed | 0 | 0 |
| Whitespace | |
|---|---|
| Character case | Differences in character case are significant |
| Line endings | Differences in line endings (CR and LF characters) are ignored |
| CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
| 1 | define(['a ngular', ' app', 'Dir ectSchedul ingService ', 'moment ' ], funct ion (angul ar, app) { | |
| 2 | 'u se strict' ; | |
| 3 | ap p.controll er('Direct Scheduling Controller ', functio n ( | |
| 4 | $sco pe, | |
| 5 | Dire ctScheduli ngService, | |
| 6 | focu sService, | |
| 7 | conn ectionErro rService, | |
| 8 | moda lService, | |
| 9 | form atter, | |
| 10 | acti veInstitut ion, | |
| 11 | requ estsConsta nts | |
| 12 | ) { | |
| 13 | var anyVeteran Option = { value: "No ", respons e: "Yes - Any Vetera n"}; | |
| 14 | var withPactOp tion = {va lue: "No", response: "Yes - Wi th PACT As signment"} ; | |
| 15 | var basedOnTim eFrameOpti on = {valu e: "Yes", response: "Yes - Bas ed Upon Ti me Frame"} ; | |
| 16 | var allSupport edMenuOpti ons = [any VeteranOpt ion, based OnTimeFram eOption]; | |
| 17 | var withPactSu pportedMen uOptions = [withPact Option]; | |
| 18 | ||
| 19 | $sco pe.getSupp ortedMenuO ptions = f unction (c oreSetting ) { | |
| 20 | if (co reSetting. id === req uestsConst ants.PRIMA RY_CARE_CO DE) { | |
| 21 | return w ithPactSup portedMenu Options; | |
| 22 | } | |
| 23 | ||
| 24 | return allSuppor tedMenuOpt ions; | |
| 25 | }; | |
| 26 | ||
| 27 | focu sService.f ocusMain() ; | |
| 28 | $sco pe.formatt er = forma tter; | |
| 29 | $sco pe.today = new Date( ); | |
| 30 | $sco pe.institu tion = act iveInstitu tion.divis ionName; | |
| 31 | ||
| 32 | $sco pe.lastSee nMenu = [ | |
| 33 | {value : 730, day s: "24 mon ths (730 d ays)"}, | |
| 34 | {value : 365, day s: "12 mon ths (365 d ays)"} | |
| 35 | ]; | |
| 36 | ||
| 37 | $sco pe.directB ooking = $ scope.last SavedDirec tBooking = {}; | |
| 38 | ||
| 39 | Dire ctScheduli ngService. fetch(acti veInstitut ion.childN ame).then( function(r esponse) { | |
| 40 | if(res ponse.stat us !== 200 ) { | |
| 41 | return c onnectionE rrorServic e.showServ erErrorMsg (response) ; | |
| 42 | } | |
| 43 | ||
| 44 | // upd ate direct booking m odel | |
| 45 | $scope .directBoo king = res ponse.data ; | |
| 46 | for (v ar i = 0; i < $scope .directBoo king.coreS ettings.le ngth; i++) { | |
| 47 | $scope.d irectBooki ng.coreSet tings[i].c anCancel = true; | |
| 48 | } | |
| 49 | // upd ate form s tate | |
| 50 | $scope .lastSaved DirectBook ing = angu lar.copy($ scope.dire ctBooking) ; | |
| 51 | }); | |
| 52 | ||
| 53 | var modalOptio ns = { | |
| 54 | action ButtonText : 'OK', | |
| 55 | header Text: 'Con firmation' , | |
| 56 | bodyTe xt: 'The D irect Sche duling set tings have been save d.' | |
| 57 | }; | |
| 58 | ||
| 59 | $sco pe.save = function(e ){ | |
| 60 | var f DNS troller = this.direc tSchedulin gForm; | |
| 61 | f DNS troller.$s etSubmitte d(); | |
| 62 | f DNS troller.va lidationSu mmary.requ iredValida te().then( function() { | |
| 63 | ||
| 64 | var http RequestPro mise = Dir ectSchedul ingService .save($sco pe.directB ooking,act iveInstitu tion.child Name).then (function( response){ | |
| 65 | // update direct boo king model | |
| 66 | $scope.dir ectBooking = respons e.data; | |
| 67 | // update form state | |
| 68 | f DNS troller.$s etPristine (); | |
| 69 | f DNS troller.va lidationSu mmary.clea r(); | |
| 70 | $scope.las tSavedDire ctBooking = angular. copy($scop e.directBo oking); | |
| 71 | ||
| 72 | // show co nfirmation modal | |
| 73 | modalServi ce.showMod al({}, mod alOptions) .then(func tion () { | |
| 74 | fo cusService .focusPrim ary(); | |
| 75 | }); | |
| 76 | }); | |
| 77 | ||
| 78 | f DNS troller.va lidationSu mmary.summ arizeAsync ([httpRequ estPromise ]); | |
| 79 | }); | |
| 80 | }; | |
| 81 | ||
| 82 | $sco pe.reset = function( ){ | |
| 83 | var f DNS troller = this.direc tSchedulin gForm; | |
| 84 | f DNS troller.va lidationSu mmary.clea r(); | |
| 85 | f DNS troller.$s etPristine (); | |
| 86 | $scope .directBoo king = ang ular.copy( $scope.las tSavedDire ctBooking) ; | |
| 87 | }; | |
| 88 | }) ; | |
| 89 | }); |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.