Produced by Araxis Merge on 10/5/2018 9:05:46 PM Central Daylight 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 | MHEDP3_VAOS_VATS_SM_Sept2018.zip\SM 2.4.0\scheduling-manager-web-2.4.0.zip\scheduling-manager\test\selenium-ruby\models | facility.rb | Thu Jul 19 16:14:00 2018 UTC |
| 2 | MHEDP3_VAOS_VATS_SM_Sept2018.zip\SM 2.4.0\scheduling-manager-web-2.4.0.zip\scheduling-manager\test\selenium-ruby\models | facility.rb | Fri Oct 5 20:10:24 2018 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 134 |
| Changed | 1 | 4 |
| 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 | #This clas s represen ts a facil ity and in cludes rel ated datab ase method s | |
| 2 | ||
| 3 | require 'm ysql' | |
| 4 | ||
| 5 | class Faci lity | |
| 6 | ||
| 7 | attr_ac cessor :na me | |
| 8 | attr_ac cessor :ty pe | |
| 9 | attr_ac cessor :fa cility_cod e | |
| 10 | attr_ac cessor :st ate | |
| 11 | attr_ac cessor :ci ty | |
| 12 | attr_ac cessor :ad dress | |
| 13 | attr_ac cessor :pa rent_site_ code | |
| 14 | ||
| 15 | ||
| 16 | HOST = 'localhost ' | |
| 17 | USER = ' AI ' | |
| 18 | DBPASSWORD = 'A I ' | |
| 19 | SCHEMA = 'VARDB' | |
| 20 | ||
| 21 | def popu lateFacili ty() | |
| 22 | ||
| 23 | self.n ame ='TEST VAMC 3' | |
| 24 | self.t ype = 'Fac ility' | |
| 25 | self.f acility_co de = '777' | |
| 26 | self.s tate = 'VA ' | |
| 27 | self.c ity = 'Cha ntilly' | |
| 28 | self.a ddress = ' 5155 Parks tone Dr.' | |
| 29 | self.p arent_site _code = '7 77' | |
| 30 | ||
| 31 | end | |
| 32 | ||
| 33 | def popu lateAndSav eFacility( ) | |
| 34 | self.p opulateFac ility | |
| 35 | self.i nsertRecor d(self) | |
| 36 | end | |
| 37 | ||
| 38 | def ins ertRecord( target_rec ord) | |
| 39 | #crea te the ins ert statem ent and po st to the db | |
| 40 | begin | |
| 41 | con = Mysql.n ew(HOST, U SER, DBPAS SWORD, SCH EMA) | |
| 42 | ins ert_statem ent = "INS ERT INTO ` FACILITY` | |
| 43 | (`NAME`, | |
| 44 | `TYPE`, | |
| 45 | `FACILITY_ CODE`, | |
| 46 | `STATE`, | |
| 47 | `CITY`, | |
| 48 | `ADDRESS`, | |
| 49 | `PARENT_SI TE_CODE`) | |
| 50 | VALUES ('# {target_re cord.name} ', | |
| 51 | '#{target_ record.typ e}', | |
| 52 | '#{target_ record.fac ility_code }', | |
| 53 | '#{target_ record.sta te}', | |
| 54 | '#{target_ record.cit y}', | |
| 55 | '#{target_ record.add ress}', | |
| 56 | '#{target_ record.par ent_site_c ode}' | |
| 57 | );" | |
| 58 | rs = con.quer y(insert_s tatement) | |
| 59 | con .close | |
| 60 | ||
| 61 | rescu e Exceptio n=>e | |
| 62 | put s "MySQL E xception: " + e.to_s | |
| 63 | ||
| 64 | ensur e | |
| 65 | put s "insert facility s tatement e xecuted" | |
| 66 | end | |
| 67 | ||
| 68 | end | |
| 69 | end |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.