Produced by Araxis Merge on 2/7/2017 12:14:07 PM Eastern 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 | cpss.zip\cpss\src\main\java\gov\va\cpss\model\cbs | CBSStmt.java | Wed Feb 1 21:07:28 2017 UTC |
2 | cpss.zip\cpss\src\main\java\gov\va\cpss\model\cbs | CBSStmt.java | Fri Feb 3 21:01:02 2017 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 2 | 590 |
Changed | 1 | 2 |
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 | package go v.va.cpss. model.cbs; | |
2 | ||
3 | import jav a.io.Seria lizable; | |
4 | import jav a.util.Dat e; | |
5 | import jav a.util.Lis t; | |
6 | ||
7 | import gov .va.cpss.c obol.Money ; | |
8 | import gov .va.cpss.m odel.CBSSA uditDates; | |
9 | ||
10 | /** | |
11 | * Bean cl ass for th e CBSStmt database t able. | |
12 | * | |
13 | * @author D N S | |
14 | */ | |
15 | public cla ss CBSStmt implement s CBSSAudi tDates, Se rializable { | |
16 | ||
17 | pr ivate stat ic final l ong serial VersionUID = 1L; | |
18 | ||
19 | pr ivate long id; | |
20 | pr ivate long messageId ; | |
21 | pr ivate long accountId ; | |
22 | pr ivate Stri ng acntNum Disp; | |
23 | pr ivate Mone y amountDu e; | |
24 | pr ivate Mone y prevBala nce; | |
25 | pr ivate Mone y totalCha rges; | |
26 | pr ivate Mone y totalCre dits; | |
27 | pr ivate Mone y newBalan ce; | |
28 | pr ivate bool ean lateSt mtMsg; | |
29 | pr ivate Date statement Date; | |
30 | pr ivate Date processDa te; | |
31 | pr ivate long batchRunI d; | |
32 | pr ivate int statusId; | |
33 | pr ivate long replacedS tmtId; | |
34 | pr ivate long printAckI d; | |
35 | pr ivate Date printDate ; | |
36 | pr ivate Stri ng created By; | |
37 | pr ivate Date createdDa te; | |
38 | pr ivate Stri ng modifie dBy; | |
39 | pr ivate Date modifiedD ate; | |
40 | ||
41 | pr ivate List <CBSSiteSt mt> siteSt mtL; | |
42 | ||
43 | pu blic CBSSt mt(final l ong accoun tId) { | |
44 | this .accountId = account Id; | |
45 | } | |
46 | ||
47 | pu blic CBSSt mt(final l ong accoun tId, final int statu sId) { | |
48 | this (accountId ); | |
49 | this .statusId = statusId ; | |
50 | } | |
51 | ||
52 | pu blic CBSSt mt(final l ong batchR unId, fina l long acc ountId, fi nal int st atusId) { | |
53 | this (accountId , statusId ); | |
54 | this .batchRunI d = batchR unId; | |
55 | } | |
56 | ||
57 | pu blic long getId() { | |
58 | retu rn id; | |
59 | } | |
60 | ||
61 | pu blic void setId(long id) { | |
62 | this .id = id; | |
63 | } | |
64 | ||
65 | pu blic long getMessage Id() { | |
66 | retu rn message Id; | |
67 | } | |
68 | ||
69 | pu blic void setMessage Id(long me ssageId) { | |
70 | this .messageId = message Id; | |
71 | } | |
72 | ||
73 | pu blic long getAccount Id() { | |
74 | retu rn account Id; | |
75 | } | |
76 | ||
77 | pu blic void setAccount Id(long ac countId) { | |
78 | this .accountId = account Id; | |
79 | } | |
80 | ||
81 | pu blic Strin g getAcntN umDisp() { | |
82 | retu rn acntNum Disp; | |
83 | } | |
84 | ||
85 | pu blic void setAcntNum Disp(Strin g acntNumD isp) { | |
86 | this .acntNumDi sp = acntN umDisp; | |
87 | } | |
88 | ||
89 | pu blic Money getAmount Due() { | |
90 | retu rn amountD ue; | |
91 | } | |
92 | ||
93 | pu blic void setAmountD ue(Money a mountDue) { | |
94 | this .amountDue = amountD ue; | |
95 | } | |
96 | ||
97 | pu blic Money getPrevBa lance() { | |
98 | retu rn prevBal ance; | |
99 | } | |
100 | ||
101 | pu blic void setPrevBal ance(Money prevBalan ce) { | |
102 | this .prevBalan ce = prevB alance; | |
103 | } | |
104 | ||
105 | pu blic Money getTotalC harges() { | |
106 | retu rn totalCh arges; | |
107 | } | |
108 | ||
109 | pu blic void setTotalCh arges(Mone y totalCha rges) { | |
110 | this .totalChar ges = tota lCharges; | |
111 | } | |
112 | ||
113 | pu blic Money getTotalC redits() { | |
114 | retu rn totalCr edits; | |
115 | } | |
116 | ||
117 | pu blic void setTotalCr edits(Mone y totalCre dits) { | |
118 | this .totalCred its = tota lCredits; | |
119 | } | |
120 | ||
121 | pu blic Money getNewBal ance() { | |
122 | retu rn newBala nce; | |
123 | } | |
124 | ||
125 | pu blic void setNewBala nce(Money newBalance ) { | |
126 | this .newBalanc e = newBal ance; | |
127 | } | |
128 | ||
129 | pu blic boole an getLate StmtMsg() { | |
130 | retu rn lateStm tMsg; | |
131 | } | |
132 | ||
133 | pu blic void setLateStm tMsg(boole an lateStm tMsg) { | |
134 | this .lateStmtM sg = lateS tmtMsg; | |
135 | } | |
136 | ||
137 | pu blic Date getStateme ntDate() { | |
138 | retu rn stateme ntDate; | |
139 | } | |
140 | ||
141 | pu blic void setStateme ntDate(Dat e statemen tDate) { | |
142 | this .statement Date = sta tementDate ; | |
143 | } | |
144 | ||
145 | pu blic Date getProcess Date() { | |
146 | retu rn process Date; | |
147 | } | |
148 | ||
149 | pu blic void setProcess Date(Date processDat e) { | |
150 | this .processDa te = proce ssDate; | |
151 | } | |
152 | ||
153 | pu blic long getBatchRu nId() { | |
154 | retu rn batchRu nId; | |
155 | } | |
156 | ||
157 | pu blic void setBatchRu nId(long b atchRunId) { | |
158 | this .batchRunI d = batchR unId; | |
159 | } | |
160 | ||
161 | pu blic int g etStatusId () { | |
162 | retu rn statusI d; | |
163 | } | |
164 | ||
165 | pu blic void setStatusI d(int stat usId) { | |
166 | this .statusId = statusId ; | |
167 | } | |
168 | ||
169 | pu blic long getReplace dStmtId() { | |
170 | retu rn replace dStmtId; | |
171 | } | |
172 | ||
173 | pu blic void setReplace dStmtId(lo ng replace dStmtId) { | |
174 | this .replacedS tmtId = re placedStmt Id; | |
175 | } | |
176 | ||
177 | pu blic long getPrintAc kId() { | |
178 | retu rn printAc kId; | |
179 | } | |
180 | ||
181 | pu blic void setPrintAc kId(long p rintAckId) { | |
182 | this .printAckI d = printA ckId; | |
183 | } | |
184 | ||
185 | pu blic Date getPrintDa te() { | |
186 | retu rn printDa te; | |
187 | } | |
188 | ||
189 | pu blic void setPrintDa te(Date pr intDate) { | |
190 | this .printDate = printDa te; | |
191 | } | |
192 | ||
193 | @O verride | |
194 | pu blic Strin g getCreat edBy() { | |
195 | retu rn created By; | |
196 | } | |
197 | ||
198 | @O verride | |
199 | pu blic void setCreated By(String createdBy) { | |
200 | this .createdBy = created By; | |
201 | } | |
202 | ||
203 | @O verride | |
204 | pu blic Date getCreated Date() { | |
205 | retu rn created Date; | |
206 | } | |
207 | ||
208 | @O verride | |
209 | pu blic void setCreated Date(Date createdDat e) { | |
210 | this .createdDa te = creat edDate; | |
211 | } | |
212 | ||
213 | @O verride | |
214 | pu blic Strin g getModif iedBy() { | |
215 | retu rn modifie dBy; | |
216 | } | |
217 | ||
218 | @O verride | |
219 | pu blic void setModifie dBy(String modifiedB y) { | |
220 | this .modifiedB y = modifi edBy; | |
221 | } | |
222 | ||
223 | @O verride | |
224 | pu blic Date getModifie dDate() { | |
225 | retu rn modifie dDate; | |
226 | } | |
227 | ||
228 | @O verride | |
229 | pu blic void setModifie dDate(Date modifiedD ate) { | |
230 | this .modifiedD ate = modi fiedDate; | |
231 | } | |
232 | ||
233 | pu blic List< CBSSiteStm t> getSite StmtL() { | |
234 | retu rn siteStm tL; | |
235 | } | |
236 | ||
237 | pu blic void setSiteStm tL(List<CB SSiteStmt> siteStmtL ) { | |
238 | this .siteStmtL = siteStm tL; | |
239 | } | |
240 | ||
241 | pu blic CBSSi teStmt get PrimarySit eStmt() { | |
242 | if ( siteStmtL != null) { | |
243 | for (C BSSiteStmt cbsSiteSt mt : siteS tmtL) { | |
244 | if ((cbs SiteStmt.g etIsPrimar y() != nul l) && cbsS iteStmt.ge tIsPrimary ().isTrue( )) { | |
245 | return cbs SiteStmt; | |
246 | } | |
247 | } | |
248 | } | |
249 | ||
250 | retu rn null; | |
251 | } | |
252 | ||
253 | pu blic CBSSi teStmt get PrimaryAdd ressSiteSt mt() { | |
254 | if ( siteStmtL != null) { | |
255 | for (C BSSiteStmt cbsSiteSt mt : siteS tmtL) { | |
256 | if ((cbs SiteStmt.g etIsPrimar yAddress() != null) && cbsSite Stmt.getIs PrimaryAdd ress().isT rue()) { | |
257 | return cbs SiteStmt; | |
258 | } | |
259 | } | |
260 | } | |
261 | ||
262 | retu rn null; | |
263 | } | |
264 | ||
265 | @O verride | |
266 | pu blic Strin g toString () { | |
267 | retu rn "CBSStm t [id=" + id + ", me ssageId=" + messageI d + ", acc ountId=" + accountId + ", acnt NumDisp=" | |
268 | + acntNu mDisp + ", amountDue =" + amoun tDue.getDo ubleAsStri ng() + ", prevBalanc e=" | |
269 | + prevBa lance.getD oubleAsStr ing() + ", totalChar ges=" + to talCharges .getDouble AsString() | |
270 | + ", tot alCredits= " + totalC redits.get DoubleAsSt ring() + " , newBalan ce=" | |
271 | + newBal ance.getDo ubleAsStri ng() + ", lateStmtMs g=" + late StmtMsg + ", stateme ntDate=" + statement Date | |
272 | + ", pro cessDate=" + process Date + ", batchRunId =" + batch RunId + ", statusId= " + status Id | |
273 | + ", rep lacedStmtI d=" + repl acedStmtId + ", prin tAckId=" + printAckI d + ", pri ntDate=" + printDate | |
274 | + ", cre atedBy=" + createdBy + ", crea tedDate=" + createdD ate + ", m odifiedBy= " + modifi edBy | |
275 | + ", mod ifiedDate= " + modifi edDate + " ]"; | |
276 | } | |
277 | ||
278 | pu blic stati c String c reateAcntN umDisp(CBS Stmt cbsSt mt) { | |
279 | if ( cbsStmt == null) | |
280 | return ""; | |
281 | ||
282 | fina l CBSSiteS tmt cbsSit eStmt = cb sStmt.getP rimarySite Stmt(); | |
283 | ||
284 | fina l String s tationNum = (cbsSite Stmt == nu ll) ? "" : cbsSiteSt mt.getStat ionNum().t rim(); | |
285 | ||
286 | fina l CBSSiteP atient cbs SitePatien t = (cbsSi teStmt == null) ? nu ll : cbsSi teStmt.get SitePatien t(); | |
287 | ||
288 | fina l String o ldAcntNum = (cbsSite Patient == null) ? n ull : cbsS itePatient .getOldAcn tNum(); | |
289 | ||
290 | Stri ng lastNam e = ((oldA cntNum == null) || ( oldAcntNum .length() < (station Num.length () + 9))) ? "" | |
291 | : oldAcn tNum.subst ring(stati onNum.leng th() + 9); | |
292 | ||
293 | retu rn String. format("%- 3.3s%010d% -5.5s", st ationNum, cbsStmt.ac countId, l astName); | |
294 | } | |
295 | ||
296 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.