@csmart/ngc-smart-victim 1.18.12 → 1.18.14
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2022/csmart-ngc-smart-victim.mjs +5 -0
- package/esm2022/lib/caseNote/caseNote.component.mjs +194 -0
- package/esm2022/lib/common-dialog/common-dialog.component.mjs +23 -0
- package/esm2022/lib/common-dialog/common-dialog.module.mjs +34 -0
- package/esm2022/lib/common-dialog/common-dialog.service.mjs +33 -0
- package/esm2022/lib/contact/contact.component.mjs +140 -0
- package/esm2022/lib/email.services.mjs +42 -0
- package/esm2022/lib/intake.service.mjs +57 -0
- package/esm2022/lib/safetyPlan/serviceProvider.component.mjs +99 -0
- package/esm2022/lib/safetyPlan/victimSafetyPlan.component.mjs +116 -0
- package/esm2022/lib/safetyPlan/victimSafetyPlanDetail.component.mjs +340 -0
- package/esm2022/lib/shared/app.shared.module.mjs +215 -0
- package/esm2022/lib/shared/validators/date.validator.mjs +59 -0
- package/esm2022/lib/shared/validators/index.mjs +2 -0
- package/esm2022/lib/smart-victim-delete-confirm.component.mjs +44 -0
- package/esm2022/lib/smart-victim-detail/smart-victim-detail.component.mjs +1155 -0
- package/esm2022/lib/smart-victim.component.mjs +317 -0
- package/esm2022/lib/smart-victim.model.mjs +142 -0
- package/esm2022/lib/smart-victim.module.mjs +128 -0
- package/esm2022/lib/smart-victim.service.mjs +370 -0
- package/esm2022/lib/victim-routing.module.mjs +41 -0
- package/esm2022/lib/victimSearch/VictimSearchFilter.mjs +3 -0
- package/esm2022/lib/victimSearch/victimSearchForm.component.mjs +38 -0
- package/esm2022/public-api.mjs +11 -0
- package/fesm2022/csmart-ngc-smart-victim.mjs +3342 -0
- package/fesm2022/csmart-ngc-smart-victim.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/caseNote/caseNote.component.d.ts +51 -0
- package/lib/common-dialog/common-dialog.component.d.ts +14 -0
- package/lib/common-dialog/common-dialog.module.d.ts +8 -0
- package/lib/common-dialog/common-dialog.service.d.ts +11 -0
- package/lib/contact/contact.component.d.ts +40 -0
- package/lib/email.services.d.ts +11 -0
- package/lib/intake.service.d.ts +57 -0
- package/lib/safetyPlan/serviceProvider.component.d.ts +19 -0
- package/lib/safetyPlan/victimSafetyPlan.component.d.ts +54 -0
- package/lib/safetyPlan/victimSafetyPlanDetail.component.d.ts +62 -0
- package/lib/shared/app.shared.module.d.ts +33 -0
- package/lib/shared/validators/date.validator.d.ts +9 -0
- package/lib/shared/validators/index.d.ts +1 -0
- package/lib/smart-victim-delete-confirm.component.d.ts +12 -0
- package/lib/smart-victim-detail/smart-victim-detail.component.d.ts +129 -0
- package/lib/smart-victim.component.d.ts +69 -0
- package/lib/smart-victim.model.d.ts +211 -0
- package/lib/smart-victim.module.d.ts +49 -0
- package/lib/smart-victim.service.d.ts +71 -0
- package/lib/victim-routing.module.d.ts +7 -0
- package/{src/lib/victimSearch/VictimSearchFilter.ts → lib/victimSearch/VictimSearchFilter.d.ts} +7 -9
- package/lib/victimSearch/victimSearchForm.component.d.ts +14 -0
- package/package.json +21 -6
- package/{src/public-api.ts → public-api.d.ts} +7 -12
- package/karma.conf.js +0 -32
- package/ng-package.json +0 -7
- package/src/lib/caseNote/caseNote.component.css +0 -22
- package/src/lib/caseNote/caseNote.component.html +0 -188
- package/src/lib/caseNote/caseNote.component.ts +0 -265
- package/src/lib/common-dialog/common-dialog.component.css +0 -10
- package/src/lib/common-dialog/common-dialog.component.html +0 -23
- package/src/lib/common-dialog/common-dialog.component.spec.ts +0 -25
- package/src/lib/common-dialog/common-dialog.component.ts +0 -21
- package/src/lib/common-dialog/common-dialog.module.ts +0 -22
- package/src/lib/common-dialog/common-dialog.service.ts +0 -35
- package/src/lib/contact/contact.component.css +0 -22
- package/src/lib/contact/contact.component.html +0 -124
- package/src/lib/contact/contact.component.ts +0 -176
- package/src/lib/email-notification.service.ts +0 -42
- package/src/lib/email.services.ts +0 -51
- package/src/lib/http.service.ts +0 -34
- package/src/lib/intake.service.ts +0 -82
- package/src/lib/loader.service.ts +0 -11
- package/src/lib/safetyPlan/serviceProvider.component.ts +0 -94
- package/src/lib/safetyPlan/victimSafetyPlan.component.css +0 -27
- package/src/lib/safetyPlan/victimSafetyPlan.component.html +0 -85
- package/src/lib/safetyPlan/victimSafetyPlan.component.ts +0 -178
- package/src/lib/safetyPlan/victimSafetyPlanDetail.component.html +0 -234
- package/src/lib/safetyPlan/victimSafetyPlanDetail.component.ts +0 -492
- package/src/lib/shared/app.shared.module.ts +0 -111
- package/src/lib/shared/validators/date.validator.ts +0 -73
- package/src/lib/shared/validators/index.ts +0 -1
- package/src/lib/smart-victim-delete-confirm.component.ts +0 -35
- package/src/lib/smart-victim-detail/smart-victim-detail.component.css +0 -43
- package/src/lib/smart-victim-detail/smart-victim-detail.component.html +0 -876
- package/src/lib/smart-victim-detail/smart-victim-detail.component.spec.ts +0 -25
- package/src/lib/smart-victim-detail/smart-victim-detail.component.ts +0 -1469
- package/src/lib/smart-victim.component.css +0 -245
- package/src/lib/smart-victim.component.html +0 -132
- package/src/lib/smart-victim.component.spec.ts +0 -25
- package/src/lib/smart-victim.component.ts +0 -333
- package/src/lib/smart-victim.model.ts +0 -311
- package/src/lib/smart-victim.module.ts +0 -110
- package/src/lib/smart-victim.service.spec.ts +0 -12
- package/src/lib/smart-victim.service.ts +0 -576
- package/src/lib/victim-routing.module.ts +0 -36
- package/src/lib/victimSearch/victimSearchForm.component.html +0 -35
- package/src/lib/victimSearch/victimSearchForm.component.ts +0 -41
- package/src/test.ts +0 -16
- package/tsconfig.lib.json +0 -36
- package/tsconfig.spec.json +0 -17
- package/tslint.json +0 -17
@@ -1,333 +0,0 @@
|
|
1
|
-
import { DOCUMENT, DatePipe } from '@angular/common';
|
2
|
-
import { Component, OnInit, OnChanges, ViewChild, Input, Output, AfterViewInit, Inject} from '@angular/core';
|
3
|
-
import { ActivatedRoute,Router } from '@angular/router';
|
4
|
-
import { MatTableDataSource} from '@angular/material/table';
|
5
|
-
import { MatSort } from '@angular/material/sort';
|
6
|
-
import { MAT_DIALOG_DATA, MatDialogRef, MatDialog } from '@angular/material/dialog';
|
7
|
-
import {
|
8
|
-
SelectedOffender,
|
9
|
-
LoginStaff,
|
10
|
-
SmartAccessControlConfig,
|
11
|
-
AccessType,
|
12
|
-
} from "@csmart/ngc-smart-core";
|
13
|
-
import { NgcSmartVictimService } from './smart-victim.service';
|
14
|
-
import { ElementsVictim, VictimListFilter, Victim, SMART_WARRANT_URL } from './smart-victim.model';
|
15
|
-
import { SmartVictimDeleteConfirmComponent } from './smart-victim-delete-confirm.component';
|
16
|
-
//import { SmartVictimDetailComponent } from './smart-victim-detail/smart-victim-detail.component';
|
17
|
-
|
18
|
-
import {
|
19
|
-
IntakeStepStatusModel,
|
20
|
-
IntakeStep,
|
21
|
-
IntakeServicesComponent,
|
22
|
-
} from './intake.service';
|
23
|
-
import { MatPaginator } from '@angular/material/paginator';
|
24
|
-
import { MatSnackBar } from '@angular/material/snack-bar';
|
25
|
-
@Component({
|
26
|
-
selector: "csmart-victim",
|
27
|
-
templateUrl: "./smart-victim.component.html",
|
28
|
-
styleUrls: ["./smart-victim.component.css"],
|
29
|
-
})
|
30
|
-
export class NgcSmartVictimComponent implements OnInit, OnChanges, AfterViewInit {
|
31
|
-
@Input() offenderId: number;
|
32
|
-
@Input() staffId: number;
|
33
|
-
@Input() staffRole: string;
|
34
|
-
@Input() showCaseNote: string;
|
35
|
-
@Input() showSafetyPlan: string;
|
36
|
-
//@Input() showAdd: string;
|
37
|
-
@Input() showAdd: boolean;
|
38
|
-
@Input() showEdit: string;
|
39
|
-
@Input() showRelationshipColumn: boolean;
|
40
|
-
@Input() showOffenderNameColumn: boolean;
|
41
|
-
@Input() showOffenderPhoneColumn: boolean;
|
42
|
-
@Input() showSearchForm: boolean;
|
43
|
-
@Input() accessByModule: string;
|
44
|
-
@Input() intakeFlag: string;
|
45
|
-
@Input() appModuleId = '';
|
46
|
-
@Input() activatedRoute: ActivatedRoute = null;
|
47
|
-
|
48
|
-
@ViewChild(MatPaginator) paginator: MatPaginator;
|
49
|
-
@ViewChild(MatSort) sort: MatSort;
|
50
|
-
// @ViewChild(SmartVictimDetailComponent) child;
|
51
|
-
|
52
|
-
displayedColumns: string[];
|
53
|
-
victims: Victim[] = [];
|
54
|
-
victimDetail = <Victim>{};
|
55
|
-
showDetail = false;
|
56
|
-
victimListFilter: VictimListFilter = new VictimListFilter();
|
57
|
-
victimListDataSource = new MatTableDataSource();
|
58
|
-
doSpin: boolean = false;
|
59
|
-
showListFlag: boolean = false;
|
60
|
-
msg: string = "";
|
61
|
-
selectedOffender: SelectedOffender;
|
62
|
-
isIntake = false;
|
63
|
-
|
64
|
-
updateAccessControlConfig: SmartAccessControlConfig;
|
65
|
-
createAccessControlConfig: SmartAccessControlConfig;
|
66
|
-
deleteAccessControlConfig: SmartAccessControlConfig;
|
67
|
-
constructor(
|
68
|
-
private dialog: MatDialog,
|
69
|
-
private victimService: NgcSmartVictimService,
|
70
|
-
private router: Router,
|
71
|
-
private route: ActivatedRoute,
|
72
|
-
private snackBar: MatSnackBar,
|
73
|
-
private intakeService: IntakeServicesComponent,
|
74
|
-
@Inject(SMART_WARRANT_URL) private smartWarrantUrl: string,
|
75
|
-
@Inject(DOCUMENT) private document: any
|
76
|
-
) {}
|
77
|
-
|
78
|
-
// private onChange(filter: VictimListFilter) {
|
79
|
-
// console.log('filter in onchange');
|
80
|
-
// console.log(filter);
|
81
|
-
// this.getVictimList(filter);
|
82
|
-
// }
|
83
|
-
|
84
|
-
applyFilter(filterValue: string) {
|
85
|
-
this.victimListDataSource.filter = filterValue.trim().toLowerCase();
|
86
|
-
}
|
87
|
-
addRecord() {
|
88
|
-
this.showDetail = true;
|
89
|
-
this.showAdd = false;
|
90
|
-
this.victimDetail = null;
|
91
|
-
this.showListFlag = false;
|
92
|
-
}
|
93
|
-
|
94
|
-
editVictimDetail(record) {
|
95
|
-
console.log("victim edit record");
|
96
|
-
console.log(record);
|
97
|
-
console.log(record.victimId);
|
98
|
-
this.victimDetail = record;
|
99
|
-
this.showDetail = true;
|
100
|
-
this.showAdd = false;
|
101
|
-
this.showListFlag = false;
|
102
|
-
}
|
103
|
-
|
104
|
-
save(detail: Victim) {
|
105
|
-
this.showDetail = false;
|
106
|
-
this.showAdd = true;
|
107
|
-
this.showListFlag = true;
|
108
|
-
}
|
109
|
-
|
110
|
-
cancel() {
|
111
|
-
this.showDetail = false;
|
112
|
-
this.victimDetail = <Victim>{};
|
113
|
-
}
|
114
|
-
|
115
|
-
ngAfterViewInit() {
|
116
|
-
this.victimListDataSource.paginator = this.paginator;
|
117
|
-
this.victimListDataSource.sort = this.sort;
|
118
|
-
}
|
119
|
-
|
120
|
-
ngOnChanges() {
|
121
|
-
this.updateAccessControlConfig = {
|
122
|
-
accessType: AccessType.UPDATE,
|
123
|
-
appModuleId: this.appModuleId,
|
124
|
-
roleId: null,
|
125
|
-
route: this.activatedRoute.snapshot,
|
126
|
-
};
|
127
|
-
this.createAccessControlConfig = {
|
128
|
-
accessType: AccessType.CREATE,
|
129
|
-
appModuleId: this.appModuleId,
|
130
|
-
roleId: null,
|
131
|
-
route: this.activatedRoute.snapshot,
|
132
|
-
};
|
133
|
-
this.deleteAccessControlConfig = {
|
134
|
-
accessType: AccessType.DELETE,
|
135
|
-
appModuleId: this.appModuleId,
|
136
|
-
roleId: null,
|
137
|
-
route: this.activatedRoute.snapshot,
|
138
|
-
};
|
139
|
-
}
|
140
|
-
|
141
|
-
ngOnInit() {
|
142
|
-
const queryParams = this.route.snapshot.queryParams;
|
143
|
-
if(queryParams['routeTo']) {
|
144
|
-
this.router.navigate([queryParams['routeTo']]);
|
145
|
-
}
|
146
|
-
const selData = this.route.snapshot.data;
|
147
|
-
this.selectedOffender = selData['selectedOffender'];
|
148
|
-
var myPath = this.router.url.slice(-10);
|
149
|
-
|
150
|
-
|
151
|
-
console.log("offender id at smart-victim");
|
152
|
-
console.log(this.offenderId);
|
153
|
-
console.log("staff id at smart-victim");
|
154
|
-
console.log(this.staffId);
|
155
|
-
console.log("insakeFlag at smart-victim");
|
156
|
-
console.log(this.intakeFlag);
|
157
|
-
|
158
|
-
|
159
|
-
console.log("smart-victim ngOnInit");
|
160
|
-
console.log(this.intakeFlag);
|
161
|
-
console.log(myPath);
|
162
|
-
|
163
|
-
// if (this.intakeFlag == "true") {
|
164
|
-
// this.isIntake = true;
|
165
|
-
// }
|
166
|
-
|
167
|
-
this.isIntake = this.selectedOffender.intakeFlag;
|
168
|
-
|
169
|
-
this.displayedColumns = ["lastName", "firstName"];
|
170
|
-
|
171
|
-
if (
|
172
|
-
this.showRelationshipColumn == true ||
|
173
|
-
myPath == "victimList" ||
|
174
|
-
myPath == "victimHome"
|
175
|
-
) {
|
176
|
-
this.displayedColumns.push("relationship");
|
177
|
-
}
|
178
|
-
if (this.showOffenderNameColumn == true) {
|
179
|
-
this.displayedColumns.push("offenderName");
|
180
|
-
}
|
181
|
-
|
182
|
-
if (
|
183
|
-
this.showOffenderPhoneColumn == true ||
|
184
|
-
myPath == "victimList" ||
|
185
|
-
myPath == "victimHome"
|
186
|
-
) {
|
187
|
-
this.displayedColumns.push("homePhone");
|
188
|
-
}
|
189
|
-
|
190
|
-
this.displayedColumns.push("victimId");
|
191
|
-
|
192
|
-
if (this.showSearchForm == true) {
|
193
|
-
this.showListFlag = false;
|
194
|
-
}
|
195
|
-
|
196
|
-
console.log("this.showSearchForm");
|
197
|
-
console.log(this.showSearchForm);
|
198
|
-
console.log("myPath");
|
199
|
-
console.log(myPath);
|
200
|
-
|
201
|
-
if (
|
202
|
-
this.showSearchForm == false ||
|
203
|
-
myPath == "victimList" ||
|
204
|
-
myPath == "victimHome"
|
205
|
-
) {
|
206
|
-
var myOffenderId;
|
207
|
-
if (this.offenderId) {
|
208
|
-
myOffenderId = this.offenderId;
|
209
|
-
} else {
|
210
|
-
console.log("back from previous page");
|
211
|
-
this.showAdd = true;
|
212
|
-
this.showRelationshipColumn = true;
|
213
|
-
//this.displayedColumns.push("relationship");
|
214
|
-
this.showOffenderPhoneColumn = true;
|
215
|
-
// this.displayedColumns.push("homePhone");
|
216
|
-
this.accessByModule = "true";
|
217
|
-
this.showEdit = "true";
|
218
|
-
this.showCaseNote = "true";
|
219
|
-
this.showSafetyPlan = "true";
|
220
|
-
|
221
|
-
myOffenderId = selData.selectedOffender.offenderId;
|
222
|
-
}
|
223
|
-
|
224
|
-
const victimListFilter: VictimListFilter = {
|
225
|
-
offenderId: myOffenderId,
|
226
|
-
lastName: null,
|
227
|
-
firstName: null,
|
228
|
-
pdid: null,
|
229
|
-
birthDate: null,
|
230
|
-
};
|
231
|
-
|
232
|
-
console.log("victimListFilter in smar-victim componenet");
|
233
|
-
console.log(victimListFilter);
|
234
|
-
|
235
|
-
this.victimService
|
236
|
-
.getVictimListByFilter(victimListFilter)
|
237
|
-
.subscribe((data: Victim[]) => {
|
238
|
-
this.victims = data;
|
239
|
-
this.victimListDataSource.data = data;
|
240
|
-
|
241
|
-
console.log("victim data at line 245");
|
242
|
-
console.log(this.victims);
|
243
|
-
console.log("showListFlag");
|
244
|
-
console.log(this.showListFlag);
|
245
|
-
this.showListFlag = true;
|
246
|
-
if (data.length == 0) {
|
247
|
-
this.msg = "No Record Found!";
|
248
|
-
}
|
249
|
-
});
|
250
|
-
} else {
|
251
|
-
console.log("find filter");
|
252
|
-
console.log(this.victimListFilter);
|
253
|
-
|
254
|
-
if (this.showListFlag === true) {
|
255
|
-
if (this.victimListFilter != null) {
|
256
|
-
this.victimService
|
257
|
-
.getVictimListByFilter(this.victimListFilter)
|
258
|
-
.subscribe((data: Victim[]) => {
|
259
|
-
this.victims = data;
|
260
|
-
this.victimListDataSource.data = data;
|
261
|
-
|
262
|
-
console.log("victim data at line 279");
|
263
|
-
console.log(data);
|
264
|
-
});
|
265
|
-
}
|
266
|
-
}
|
267
|
-
}
|
268
|
-
}
|
269
|
-
// phone number format on the victim list
|
270
|
-
formatPhoneNumber(phoneNumberString) {
|
271
|
-
if (!phoneNumberString) return "";
|
272
|
-
var cleaned = ("" + phoneNumberString).replace(/\D/g, "");
|
273
|
-
var match = cleaned.match(/^(\d{3})(\d{3})(\d{4})$/);
|
274
|
-
if (match) {
|
275
|
-
return "(" + match[1] + ") " + match[2] + "-" + match[3];
|
276
|
-
}
|
277
|
-
return "";
|
278
|
-
}
|
279
|
-
|
280
|
-
saveIntake() {
|
281
|
-
if (!this.isIntake) {
|
282
|
-
return;
|
283
|
-
}
|
284
|
-
const intakeStep = <IntakeStepStatusModel>{
|
285
|
-
intakeStepId: IntakeStep.VictimInformation,
|
286
|
-
offenderId: this.offenderId,
|
287
|
-
modifiedBy: this.staffId,
|
288
|
-
};
|
289
|
-
this.intakeService
|
290
|
-
.updateIntakeSteps(this.offenderId, intakeStep)
|
291
|
-
.subscribe((res) => {
|
292
|
-
console.log("save intake step.");
|
293
|
-
this.snackBar.open("Status Saved.", "", {
|
294
|
-
duration: 3000,
|
295
|
-
});
|
296
|
-
//this.router.navigate(['/warrant '], { queryParams: { intake: 1 } });
|
297
|
-
|
298
|
-
this.document.location.href =
|
299
|
-
`${this.smartWarrantUrl}/?offenderId=${this.offenderId}&intakeFlag=${this.isIntake}&routeTo=warrant`;
|
300
|
-
});
|
301
|
-
}
|
302
|
-
|
303
|
-
goToCaseNote(victimId: number) {
|
304
|
-
this.router.navigate(["casenote", victimId, this.offenderId]);
|
305
|
-
}
|
306
|
-
|
307
|
-
goToSaftyPlan(victimId: number) {
|
308
|
-
this.router.navigate(["saftyPlan", victimId]);
|
309
|
-
}
|
310
|
-
|
311
|
-
getVictimList(filter: VictimListFilter) {
|
312
|
-
this.victimListFilter = filter;
|
313
|
-
console.log("this.victimListFilter inside getVictimList");
|
314
|
-
console.log(this.victimListFilter);
|
315
|
-
this.doSpin = true;
|
316
|
-
this.victimService.getVictimListByFilter(filter).subscribe(
|
317
|
-
(data: Victim[]) => {
|
318
|
-
this.doSpin = !this.doSpin;
|
319
|
-
|
320
|
-
if (data.length > 0) {
|
321
|
-
this.showListFlag = true;
|
322
|
-
this.victimListDataSource.data = data;
|
323
|
-
|
324
|
-
} else {
|
325
|
-
this.msg = "No record found!";
|
326
|
-
}
|
327
|
-
},
|
328
|
-
(err) => {
|
329
|
-
this.doSpin = !this.doSpin;
|
330
|
-
}
|
331
|
-
);
|
332
|
-
}
|
333
|
-
}
|
@@ -1,311 +0,0 @@
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
2
|
-
|
3
|
-
|
4
|
-
export const SMART_OFFENDER_SERVICE_URL = new InjectionToken<string>('smart offender service url');
|
5
|
-
export const SMART_LOOKUP_SERVICE_URL = new InjectionToken<string>('smart lookup service url');
|
6
|
-
export const SMART_VICTIM_SERVICE_URL = new InjectionToken<string>('smart victim service url');
|
7
|
-
export const SMART_WARRANT_URL = new InjectionToken<string>('smart warrant web url');
|
8
|
-
|
9
|
-
|
10
|
-
export interface ElementsVictim {
|
11
|
-
victimId: string;
|
12
|
-
victimType: string;
|
13
|
-
victimProvider: string;
|
14
|
-
victimPolicyHolder: string;
|
15
|
-
startDate: string;
|
16
|
-
endDate: string;
|
17
|
-
isActive: boolean;
|
18
|
-
}
|
19
|
-
|
20
|
-
export class VictimListFilter {
|
21
|
-
|
22
|
-
offenderId: number;
|
23
|
-
lastName: string;
|
24
|
-
firstName: string;
|
25
|
-
pdid: string;
|
26
|
-
birthDate: Date;
|
27
|
-
|
28
|
-
}
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
export class VictimAdvocate {
|
33
|
-
constructor(public victimAdvocateId: number,
|
34
|
-
|
35
|
-
public lastName: string,
|
36
|
-
|
37
|
-
public firstName: string,
|
38
|
-
|
39
|
-
public prefixId: string,
|
40
|
-
|
41
|
-
public suffixId: string,
|
42
|
-
|
43
|
-
public addressId: number,
|
44
|
-
|
45
|
-
public noPhoneFlag: boolean,
|
46
|
-
|
47
|
-
public homePhone: string,
|
48
|
-
|
49
|
-
public workPhone: string,
|
50
|
-
|
51
|
-
public cellPhone: string,
|
52
|
-
|
53
|
-
public email: string,
|
54
|
-
|
55
|
-
public modifiedBy: number
|
56
|
-
|
57
|
-
|
58
|
-
) { }
|
59
|
-
}
|
60
|
-
|
61
|
-
|
62
|
-
export class VictimWeaponUse {
|
63
|
-
constructor(
|
64
|
-
// public victimWeaponUseId: number,
|
65
|
-
|
66
|
-
public victimId: number,
|
67
|
-
|
68
|
-
public weaponTypeId: string,
|
69
|
-
|
70
|
-
public otherWeapon: string,
|
71
|
-
|
72
|
-
public modifiedBy: number
|
73
|
-
|
74
|
-
) { }
|
75
|
-
}
|
76
|
-
|
77
|
-
export class VictimDrugUse {
|
78
|
-
constructor(
|
79
|
-
//public victimDrugUseId: number,
|
80
|
-
|
81
|
-
public victimId: number,
|
82
|
-
|
83
|
-
public drugTypeId: string,
|
84
|
-
|
85
|
-
public otherDrug: string,
|
86
|
-
|
87
|
-
public modifiedBy: number
|
88
|
-
|
89
|
-
) { }
|
90
|
-
}
|
91
|
-
|
92
|
-
export class VictimSupport {
|
93
|
-
constructor(
|
94
|
-
// public victimSupportId: number,
|
95
|
-
|
96
|
-
public victimId: number,
|
97
|
-
|
98
|
-
public victimSupportTypeId: string,
|
99
|
-
|
100
|
-
public modifiedBy: number
|
101
|
-
|
102
|
-
) { }
|
103
|
-
}
|
104
|
-
|
105
|
-
export class VictimRelationship {
|
106
|
-
constructor(
|
107
|
-
public victimId: number,
|
108
|
-
|
109
|
-
public victimRelationshipTypeId: string,
|
110
|
-
|
111
|
-
public modifiedBy: number
|
112
|
-
|
113
|
-
) { }
|
114
|
-
}
|
115
|
-
|
116
|
-
export class VictimGuardian {
|
117
|
-
constructor(public victimGuardianId: number,
|
118
|
-
|
119
|
-
public lastName: string,
|
120
|
-
|
121
|
-
public firstName: string,
|
122
|
-
|
123
|
-
public prefixId: string,
|
124
|
-
|
125
|
-
public suffixId: string,
|
126
|
-
|
127
|
-
public birthDate: string,
|
128
|
-
|
129
|
-
public addressId: number,
|
130
|
-
|
131
|
-
public noPhoneFlag: boolean,
|
132
|
-
|
133
|
-
public homePhone: string,
|
134
|
-
|
135
|
-
public workPhone: string,
|
136
|
-
|
137
|
-
public cellPhone: string,
|
138
|
-
|
139
|
-
public email: string,
|
140
|
-
|
141
|
-
public modifiedBy: number
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
) { }
|
146
|
-
}
|
147
|
-
|
148
|
-
export interface CaseNote {
|
149
|
-
victimId: number;
|
150
|
-
victimCaseNoteId: number;
|
151
|
-
caseNoteDate: Date;
|
152
|
-
contactTypeId: string;
|
153
|
-
contactType: string;
|
154
|
-
victimContactPurposeId: string;
|
155
|
-
victimContactPurpose: string;
|
156
|
-
comment: string;
|
157
|
-
modifiedBy: number;
|
158
|
-
victimFirstName: string;
|
159
|
-
victimLastName: string;
|
160
|
-
|
161
|
-
}
|
162
|
-
|
163
|
-
export interface Contact {
|
164
|
-
victimId: number;
|
165
|
-
victimContactId: number;
|
166
|
-
contactDate: Date;
|
167
|
-
victimContactMethodId: string;
|
168
|
-
contactMethod: string;
|
169
|
-
contactedBy: number;
|
170
|
-
contactedByName: string;
|
171
|
-
nextContactDate: Date;
|
172
|
-
comment: string;
|
173
|
-
modifiedBy: number;
|
174
|
-
|
175
|
-
|
176
|
-
}
|
177
|
-
|
178
|
-
|
179
|
-
export interface VictimSafetyPlan {
|
180
|
-
victimId: number;
|
181
|
-
fullName: string;
|
182
|
-
victimServiceId: number;
|
183
|
-
goal:string;
|
184
|
-
comment: string;
|
185
|
-
modifiedBy: number;
|
186
|
-
victimServiceStatusId: string;
|
187
|
-
status: string;
|
188
|
-
startDate: Date;
|
189
|
-
vVictimServiceDetails: VictimServiceDetail[];
|
190
|
-
victimName: String;
|
191
|
-
|
192
|
-
|
193
|
-
}
|
194
|
-
|
195
|
-
export interface VictimServiceDetail{
|
196
|
-
victimServiceId: number;
|
197
|
-
victimServiceDetailId: number;
|
198
|
-
victimServiceTypeId: string;
|
199
|
-
victimProgramProviderId: string;
|
200
|
-
victimProgramProvider: string;
|
201
|
-
modifiedBy: number;
|
202
|
-
|
203
|
-
|
204
|
-
}
|
205
|
-
export interface VictimServiceStatusHistory{
|
206
|
-
|
207
|
-
victimServiceStatusHistoryId: number;
|
208
|
-
victimServiceId: string;
|
209
|
-
victimServiceStatusId: string;
|
210
|
-
startDate: Date;
|
211
|
-
comment: string;
|
212
|
-
modifiedBy: number;
|
213
|
-
}
|
214
|
-
|
215
|
-
|
216
|
-
export interface VictimServiceTypeProgramProviderModel {
|
217
|
-
victimServiceTypeProgramProviderId: number;
|
218
|
-
victimServiceType: string;
|
219
|
-
victimProgramProviderId: string;
|
220
|
-
victimServiceTypeId:string;
|
221
|
-
victimProgramProvider: string;
|
222
|
-
}
|
223
|
-
|
224
|
-
export interface ProviderListCollectionModel{
|
225
|
-
groupId:string;
|
226
|
-
isDisplay:boolean;
|
227
|
-
collection:VictimServiceTypeProgramProviderModel[];
|
228
|
-
}
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
export interface ProvidersDialogData {
|
233
|
-
//iepAction: IepAction;
|
234
|
-
serviceType;
|
235
|
-
serviceTypeId;
|
236
|
-
providerCollections: [];
|
237
|
-
}
|
238
|
-
|
239
|
-
|
240
|
-
export class Victim {
|
241
|
-
constructor(
|
242
|
-
public victimId: number,
|
243
|
-
public offenderId: number,
|
244
|
-
public underSupervisionFlag: string,
|
245
|
-
public victimOffenderRelationshipTypeId: string,
|
246
|
-
public lastName: string,
|
247
|
-
public firstName: string,
|
248
|
-
public middleName: string,
|
249
|
-
public prefixId: string | null,
|
250
|
-
public suffixId: string | null,
|
251
|
-
public birthDate: string,
|
252
|
-
public genderCode: string,
|
253
|
-
public homePhone: string | null,
|
254
|
-
public workPhone: string | null,
|
255
|
-
public cellPhone: string | null,
|
256
|
-
public email: string,
|
257
|
-
public addressId: number,
|
258
|
-
public minorFlag: boolean,
|
259
|
-
public victimAdvocateFlag: string,
|
260
|
-
|
261
|
-
public guardianFirstName: string,
|
262
|
-
public guardianLastName: string,
|
263
|
-
public guardianPrefixId: string,
|
264
|
-
public guardianSuffixId: string,
|
265
|
-
public guardianNoPhoneFlag: boolean,
|
266
|
-
public guardianHomePhone: string | null,
|
267
|
-
public guardianWorkPhone: string | null,
|
268
|
-
public guardianCellPhone: string | null,
|
269
|
-
public guardianEmail: string,
|
270
|
-
public guardianAddressId: number,
|
271
|
-
public guardianBirthDate: string,
|
272
|
-
|
273
|
-
public advocateFirstName: string,
|
274
|
-
public advocateLastName: string,
|
275
|
-
public advocatePrefixId: string,
|
276
|
-
public advocateSuffixId: string,
|
277
|
-
public advocateNoPhoneFlag: boolean,
|
278
|
-
public advocateHomePhone: string | null,
|
279
|
-
public advocateWorkPhone: string | null,
|
280
|
-
public advocateCellPhone: string | null,
|
281
|
-
public advocateEmail: string,
|
282
|
-
public advocateAddressId: number,
|
283
|
-
|
284
|
-
public emergencyContact: string,
|
285
|
-
public emergencyContactPhone: string | null,
|
286
|
-
public commonChildrenFlag: boolean,
|
287
|
-
public commonChildrenNumber: number,
|
288
|
-
public cpoExpirationFlag: boolean,
|
289
|
-
public cpoExpirationDate: string,
|
290
|
-
public supportInPlaceFlag: boolean,
|
291
|
-
public weaponInvolvedFlag: boolean,
|
292
|
-
public drugUseFlag: boolean,
|
293
|
-
public alcoholUseFlag: boolean,
|
294
|
-
public accessRisk: string,
|
295
|
-
public modifiedBy: number,
|
296
|
-
//public relationship: string,
|
297
|
-
|
298
|
-
public vVictimAdvocate: VictimAdvocate,
|
299
|
-
public vVictimGuardian: VictimGuardian,
|
300
|
-
|
301
|
-
public victimSupports: VictimSupport[],
|
302
|
-
public victimWeaponUses: VictimWeaponUse[],
|
303
|
-
public victimDrugUses: VictimDrugUse[],
|
304
|
-
|
305
|
-
public victimRelationships: VictimRelationship[],
|
306
|
-
|
307
|
-
public allowCsosaContactFlag: boolean,
|
308
|
-
public liveWithOffenderFlag: boolean
|
309
|
-
) { }
|
310
|
-
}
|
311
|
-
|