5
loadData: function(filter) {
6
return $.grep(this.clients, function(client) {
7
return (!filter.Name || client.Name.indexOf(filter.Name) > -1)
8
&& (filter.Age === undefined || client.Age === filter.Age)
9
&& (!filter.Address || client.Address.indexOf(filter.Address) > -1)
10
&& (!filter.Country || client.Country === filter.Country)
11
&& (filter.Married === undefined || client.Married === filter.Married);
15
insertItem: function(insertingClient) {
16
this.clients.push(insertingClient);
19
updateItem: function(updatingClient) { },
21
deleteItem: function(deletingClient) {
22
var clientIndex = $.inArray(deletingClient, this.clients);
23
this.clients.splice(clientIndex, 1);
33
{ Name: "United States", Id: 1 },
34
{ Name: "Canada", Id: 2 },
35
{ Name: "United Kingdom", Id: 3 },
36
{ Name: "France", Id: 4 },
37
{ Name: "Brazil", Id: 5 },
38
{ Name: "China", Id: 6 },
39
{ Name: "Russia", Id: 7 }
47
"Address": "Ap #897-1459 Quam Avenue",
51
"Name": "Connor Johnston",
54
"Address": "Ap #370-4647 Dis Av.",
61
"Address": "Ap #365-8835 Integer St.",
65
"Name": "Timothy Henson",
68
"Address": "911-5143 Luctus Ave",
72
"Name": "Ramona Benton",
75
"Address": "Ap #614-689 Vehicula Street",
79
"Name": "Ezra Tillman",
82
"Address": "P.O. Box 738, 7583 Quisque St.",
86
"Name": "Dante Carter",
89
"Address": "P.O. Box 976, 6316 Lorem, St.",
93
"Name": "Christopher Mcclure",
96
"Address": "847-4303 Dictum Av.",
100
"Name": "Ruby Rocha",
103
"Address": "5212 Sagittis Ave",
107
"Name": "Imelda Hardin",
110
"Address": "719-7009 Auctor Av.",
114
"Name": "Jonah Johns",
117
"Address": "P.O. Box 939, 9310 A Ave",
121
"Name": "Herman Rosa",
124
"Address": "718-7162 Molestie Av.",
128
"Name": "Arthur Gay",
131
"Address": "5497 Neque Street",
135
"Name": "Xena Wilkerson",
138
"Address": "Ap #303-6974 Proin Street",
142
"Name": "Lilah Atkins",
145
"Address": "622-8602 Gravida Ave",
149
"Name": "Malik Shepard",
152
"Address": "967-5176 Tincidunt Av.",
156
"Name": "Keely Silva",
159
"Address": "P.O. Box 153, 8995 Praesent Ave",
163
"Name": "Hunter Pate",
166
"Address": "P.O. Box 771, 7599 Ante, Road",
170
"Name": "Mikayla Roach",
173
"Address": "Ap #438-9886 Donec Rd.",
177
"Name": "Upton Joseph",
180
"Address": "Ap #896-7592 Habitant St.",
184
"Name": "Jeanette Pate",
187
"Address": "P.O. Box 177, 7584 Amet, St.",
191
"Name": "Kaden Hernandez",
194
"Address": "366 Ut St.",
198
"Name": "Kenyon Stevens",
201
"Address": "P.O. Box 704, 4580 Gravida Rd.",
205
"Name": "Jerome Harper",
208
"Address": "2464 Porttitor Road",
212
"Name": "Jelani Patel",
215
"Address": "P.O. Box 541, 5805 Nec Av.",
219
"Name": "Keaton Oconnor",
222
"Address": "Ap #657-1093 Nec, Street",
226
"Name": "Bree Johnston",
229
"Address": "372-5942 Vulputate Avenue",
233
"Name": "Maisie Hodges",
236
"Address": "P.O. Box 445, 3880 Odio, Rd.",
240
"Name": "Kuame Calhoun",
243
"Address": "P.O. Box 609, 4105 Rutrum St.",
247
"Name": "Carlos Cameron",
250
"Address": "Ap #215-5386 A, Avenue",
254
"Name": "Fulton Parsons",
257
"Address": "P.O. Box 523, 3705 Sed Rd.",
261
"Name": "Wallace Christian",
264
"Address": "416-8816 Mauris Avenue",
268
"Name": "Caryn Maldonado",
271
"Address": "108-282 Nonummy Ave",
275
"Name": "Whilemina Frank",
278
"Address": "P.O. Box 681, 3938 Egestas. Av.",
282
"Name": "Emery Moon",
285
"Address": "Ap #717-8556 Non Road",
289
"Name": "Price Watkins",
292
"Address": "832-7810 Nunc Rd.",
296
"Name": "Lydia Castillo",
299
"Address": "5280 Placerat, Ave",
303
"Name": "Lawrence Conway",
306
"Address": "Ap #452-2808 Imperdiet St.",
310
"Name": "Kalia Nicholson",
313
"Address": "P.O. Box 871, 3023 Tellus Road",
317
"Name": "Brielle Baxter",
320
"Address": "Ap #822-9526 Ut, Road",
324
"Name": "Valentine Brady",
327
"Address": "8014 Enim. Road",
331
"Name": "Rebecca Gardner",
334
"Address": "8655 Arcu. Road",
338
"Name": "Vladimir Tate",
341
"Address": "130-1291 Non, Rd.",
345
"Name": "Vernon Hays",
348
"Address": "964-5552 In Rd.",
352
"Name": "Allegra Hull",
355
"Address": "245-8891 Donec St.",
359
"Name": "Hu Hendrix",
362
"Address": "428-5404 Tempus Ave",
366
"Name": "Kenyon Battle",
369
"Address": "921-6804 Lectus St.",
373
"Name": "Gloria Nielsen",
376
"Address": "Ap #275-4345 Lorem, Street",
380
"Name": "Illiana Kidd",
383
"Address": "7618 Lacus. Av.",
387
"Name": "Adria Todd",
390
"Address": "1889 Tincidunt Road",
394
"Name": "Kirsten Mayo",
397
"Address": "100-8640 Orci, Avenue",
401
"Name": "Willa Hobbs",
404
"Address": "P.O. Box 323, 158 Tristique St.",
408
"Name": "Alexis Clements",
411
"Address": "P.O. Box 176, 5107 Proin Rd.",
415
"Name": "Akeem Conrad",
418
"Address": "282-495 Sed Ave",
422
"Name": "Montana Silva",
425
"Address": "P.O. Box 120, 9766 Consectetuer St.",
429
"Name": "Kaseem Hensley",
432
"Address": "Ap #510-8903 Mauris. Av.",
436
"Name": "Christopher Morton",
439
"Address": "P.O. Box 234, 3651 Sodales Avenue",
443
"Name": "Wade Fernandez",
446
"Address": "740-5059 Dolor. Road",
450
"Name": "Illiana Kirby",
453
"Address": "527-3553 Mi Ave",
457
"Name": "Kimberley Hurley",
460
"Address": "P.O. Box 637, 9915 Dictum St.",
464
"Name": "Arthur Olsen",
467
"Address": "887-5080 Eget St.",
471
"Name": "Brody Potts",
474
"Address": "Ap #577-7690 Sem Road",
478
"Name": "Dillon Ford",
481
"Address": "Ap #885-9289 A, Av.",
485
"Name": "Hannah Juarez",
488
"Address": "4744 Sapien, Rd.",
492
"Name": "Vincent Shaffer",
495
"Address": "9203 Nunc St.",
499
"Name": "George Holt",
502
"Address": "4162 Cras Rd.",
506
"Name": "Tobias Bartlett",
509
"Address": "792-6145 Mauris St.",
513
"Name": "Xavier Hooper",
516
"Address": "879-5026 Interdum. Rd.",
520
"Name": "Declan Dorsey",
523
"Address": "Ap #926-4171 Aenean Road",
527
"Name": "Clementine Tran",
530
"Address": "P.O. Box 176, 9865 Eu Rd.",
534
"Name": "Pamela Moody",
537
"Address": "622-6233 Luctus Rd.",
541
"Name": "Julie Leon",
544
"Address": "Ap #915-6782 Sem Av.",
548
"Name": "Shana Nolan",
551
"Address": "P.O. Box 603, 899 Eu St.",
555
"Name": "Vaughan Moody",
558
"Address": "880 Erat Rd.",
562
"Name": "Randall Reeves",
565
"Address": "1819 Non Street",
569
"Name": "Dominic Raymond",
572
"Address": "Ap #689-4874 Nisi Rd.",
579
"Address": "Ap #433-6844 Auctor Avenue",
583
"Name": "Desiree Hughes",
586
"Address": "605-6645 Fermentum Avenue",
590
"Name": "Idona Oneill",
593
"Address": "751-8148 Aliquam Avenue",
600
"Address": "635-2704 Tristique St.",
604
"Name": "Cathleen Bonner",
607
"Address": "916-2910 Dolor Av.",
611
"Name": "Sydney Murray",
614
"Address": "835-2330 Fringilla St.",
618
"Name": "Brenna Rodriguez",
621
"Address": "3687 Imperdiet Av.",
625
"Name": "Alfreda Mcdaniel",
628
"Address": "745-8221 Aliquet Rd.",
632
"Name": "Zachery Atkins",
635
"Address": "549-2208 Auctor. Road",
639
"Name": "Amelia Rich",
642
"Address": "P.O. Box 734, 4717 Nunc Rd.",
646
"Name": "Kiayada Witt",
649
"Address": "Ap #735-3421 Malesuada Avenue",
653
"Name": "Lysandra Pierce",
656
"Address": "Ap #146-2835 Curabitur St.",
663
"Address": "Ap #562-7811 Quam. Ave",
667
"Name": "Austin Andrews",
670
"Address": "P.O. Box 274, 5505 Sociis Rd.",
674
"Name": "Lillian Peterson",
677
"Address": "6212 A Avenue",
681
"Name": "Adria Beach",
684
"Address": "P.O. Box 183, 2717 Nunc Avenue",
688
"Name": "Oleg Durham",
691
"Address": "931-3208 Nunc Rd.",
695
"Name": "Casey Reese",
698
"Address": "383-3675 Ultrices, St.",
702
"Name": "Kane Burnett",
705
"Address": "759-8212 Dolor. Ave",
709
"Name": "Stewart Wilson",
712
"Address": "718-7845 Sagittis. Av.",
716
"Name": "Charity Holcomb",
719
"Address": "641-7892 Enim. Ave",
723
"Name": "Kyra Cummings",
726
"Address": "P.O. Box 702, 6621 Mus. Av.",
730
"Name": "Stuart Wallace",
733
"Address": "648-4990 Sed Rd.",
737
"Name": "Carter Clarke",
740
"Address": "Ap #547-2921 A Street",
748
"Account": "A758A693-0302-03D1-AE53-EEFE22855556",
749
"Name": "Carson Kelley",
750
"RegisterDate": "2002-04-20T22:55:52-07:00"
753
"Account": "D89FF524-1233-0CE7-C9E1-56EFF017A321",
754
"Name": "Prescott Griffin",
755
"RegisterDate": "2011-02-22T05:59:55-08:00"
758
"Account": "06FAAD9A-5114-08F6-D60C-961B2528B4F0",
759
"Name": "Amir Saunders",
760
"RegisterDate": "2014-08-13T09:17:49-07:00"
763
"Account": "EED7653D-7DD9-A722-64A8-36A55ECDBE77",
764
"Name": "Derek Thornton",
765
"RegisterDate": "2012-02-27T01:31:07-08:00"
768
"Account": "2A2E6D40-FEBD-C643-A751-9AB4CAF1E2F6",
769
"Name": "Fletcher Romero",
770
"RegisterDate": "2010-06-25T15:49:54-07:00"
773
"Account": "3978F8FA-DFF0-DA0E-0A5D-EB9D281A3286",
774
"Name": "Thaddeus Stein",
775
"RegisterDate": "2013-11-10T07:29:41-08:00"
778
"Account": "658DBF5A-176E-569A-9273-74FB5F69FA42",
779
"Name": "Nash Knapp",
780
"RegisterDate": "2005-06-24T09:11:19-07:00"
783
"Account": "76D2EE4B-7A73-1212-F6F2-957EF8C1F907",
784
"Name": "Quamar Vega",
785
"RegisterDate": "2011-04-13T20:06:29-07:00"
788
"Account": "00E46809-A595-CE82-C5B4-D1CAEB7E3E58",
789
"Name": "Philip Galloway",
790
"RegisterDate": "2008-08-21T18:59:38-07:00"
793
"Account": "C196781C-DDCC-AF83-DDC2-CA3E851A47A0",
794
"Name": "Mason French",
795
"RegisterDate": "2000-11-15T00:38:37-08:00"
798
"Account": "5911F201-818A-B393-5888-13157CE0D63F",
799
"Name": "Ross Cortez",
800
"RegisterDate": "2010-05-27T17:35:32-07:00"
803
"Account": "B8BB78F9-E1A1-A956-086F-E12B6FE168B6",
804
"Name": "Logan King",
805
"RegisterDate": "2003-07-08T16:58:06-07:00"
808
"Account": "06F636C3-9599-1A2D-5FD5-86B24ADDE626",
809
"Name": "Cedric Leblanc",
810
"RegisterDate": "2011-06-30T14:30:10-07:00"
813
"Account": "FE880CDD-F6E7-75CB-743C-64C6DE192412",
814
"Name": "Simon Sullivan",
815
"RegisterDate": "2013-06-11T16:35:07-07:00"
818
"Account": "BBEDD673-E2C1-4872-A5D3-C4EBD4BE0A12",
819
"Name": "Jamal West",
820
"RegisterDate": "2001-03-16T20:18:29-08:00"
823
"Account": "19BC22FA-C52E-0CC6-9552-10365C755FAC",
824
"Name": "Hector Morales",
825
"RegisterDate": "2012-11-01T01:56:34-07:00"
828
"Account": "A8292214-2C13-5989-3419-6B83DD637D6C",
829
"Name": "Herrod Hart",
830
"RegisterDate": "2008-03-13T19:21:04-07:00"
833
"Account": "0285564B-F447-0E7F-EAA1-7FB8F9C453C8",
834
"Name": "Clark Maxwell",
835
"RegisterDate": "2004-08-05T08:22:24-07:00"
838
"Account": "EA78F076-4F6E-4228-268C-1F51272498AE",
839
"Name": "Reuben Walter",
840
"RegisterDate": "2011-01-23T01:55:59-08:00"
843
"Account": "6A88C194-EA21-426F-4FE2-F2AE33F51793",
844
"Name": "Ira Ingram",
845
"RegisterDate": "2008-08-15T05:57:46-07:00"
848
"Account": "4275E873-439C-AD26-56B3-8715E336508E",
849
"Name": "Damian Morrow",
850
"RegisterDate": "2015-09-13T01:50:55-07:00"
853
"Account": "A0D733C4-9070-B8D6-4387-D44F0BA515BE",
854
"Name": "Macon Farrell",
855
"RegisterDate": "2011-03-14T05:41:40-07:00"
858
"Account": "B3683DE8-C2FA-7CA0-A8A6-8FA7E954F90A",
859
"Name": "Joel Galloway",
860
"RegisterDate": "2003-02-03T04:19:01-08:00"
863
"Account": "01D95A8E-91BC-2050-F5D0-4437AAFFD11F",
864
"Name": "Rigel Horton",
865
"RegisterDate": "2015-06-20T11:53:11-07:00"
868
"Account": "F0D12CC0-31AC-A82E-FD73-EEEFDBD21A36",
869
"Name": "Sylvester Gaines",
870
"RegisterDate": "2004-03-12T09:57:13-08:00"
873
"Account": "874FCC49-9A61-71BC-2F4E-2CE88348AD7B",
874
"Name": "Abbot Mckay",
875
"RegisterDate": "2008-12-26T20:42:57-08:00"
878
"Account": "B8DA1912-20A0-FB6E-0031-5F88FD63EF90",
879
"Name": "Solomon Green",
880
"RegisterDate": "2013-09-04T01:44:47-07:00"