-
Notifications
You must be signed in to change notification settings - Fork 204
/
DataModel.cs
1072 lines (1046 loc) · 26.4 KB
/
DataModel.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#region Copyright Syncfusion Inc. 2001-2024.
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
// Use of this code is subject to the terms of our license.
// A copy of the current license can be obtained at any time by e-mailing
// [email protected]. Any infringement will be prosecuted under
// applicable laws.
#endregion
using System;
using System.Collections.ObjectModel;
using System.ComponentModel;
namespace SampleBrowser
{
public class DataModel
{
//Initialize Employee Class
internal ObservableCollection<DiagramEmployee> employee = new ObservableCollection<DiagramEmployee>();
//Get Employee Details
internal void Data()
{
employee.Add(new DiagramEmployee()
{
ID = "59305",
DOJ = "18/10/2014",
Name = "Maria Anders",
Designation = "Managing Director",
ImageUrl = "Images/Diagram/eric.png",
EmailId = "[email protected]",
HasChild = true,
});
//hierarchy 1
employee.Add(new DiagramEmployee()
{
ID = "84937",
DOJ = "18/10/2011",
Name = "Ana Trujillo",
Designation = "Senior Manager",
ImageUrl = "Images/Diagram/Image0.png",
EmailId = "[email protected]",
HasChild = true,
ReportingPerson = "Maria Anders"
});
employee.Add(new DiagramEmployee()
{
ID = "59305",
DOJ = "18/10/2010",
Name = "Lino Rodri",
Designation = "Senior Manager",
ImageUrl = "Images/Diagram/Maria.png",
EmailId = "[email protected]",
HasChild = true,
ReportingPerson = "Maria Anders"
});
//hierarchy 2
employee.Add(new DiagramEmployee()
{
ID = "59305",
DOJ = "18/10/2014",
Name = "Philip Cramer",
Designation = "Project Manager",
ImageUrl = "Images/Diagram/Image17.png",
EmailId = "[email protected]",
HasChild = true,
ReportingPerson = "Ana Trujillo"
});
employee.Add(new DiagramEmployee()
{
ID = "03947",
DOJ = "18/10/2013",
Name = "Anto Moreno",
Designation = "Project Manager",
ImageUrl = "Images/Diagram/image57.png",
EmailId = "[email protected]",
HasChild = true,
ReportingPerson = "Lino Rodri"
});
employee.Add(new DiagramEmployee()
{
ID = "59305",
DOJ = "18/10/2013",
Name = "Victoria Ash",
Designation = "Team Lead",
ImageUrl = "Images/Diagram/Image10.png",
EmailId = "[email protected]",
HasChild = true,
ReportingPerson = "Daniel Tonini"
});
employee.Add(new DiagramEmployee()
{
ID = "10101",
DOJ = "01/03/2015",
Name = "Eduardo Roel",
Designation = "Team Lead",
ImageUrl = "Images/Diagram/Image11.png",
EmailId = "[email protected]",
HasChild = true,
ReportingPerson = "Felipe Kloss"
});
//hierarchy 3
employee.Add(new DiagramEmployee()
{
ID = "19287",
DOJ = "18/10/2011",
Name = "Clayton Hardy",
Designation = "Project Lead",
ImageUrl = "Images/Diagram/Image12.png",
EmailId = "[email protected]",
HasChild = true,
ReportingPerson = "Philip Cramer"
});
employee.Add(new DiagramEmployee()
{
ID = "59305",
DOJ = "18/10/2015",
Name = "Christina kaff",
Designation = "Project Lead",
ImageUrl = "Images/Diagram/Image14.png",
EmailId = "[email protected]",
HasChild = true,
ReportingPerson = "Philip Cramer"
});
employee.Add(new DiagramEmployee()
{
ID = "59305",
DOJ = "18/10/2012",
Name = "Hanna Moos",
Designation = "Project Lead",
ImageUrl = "Images/Diagram/Image18.png",
EmailId = "[email protected]",
HasChild = true,
ReportingPerson = "Anto Moreno"
});
employee.Add(new DiagramEmployee()
{
ID = "59305",
DOJ = "18/10/2015",
Name = "Peter Citeaux",
Designation = "Project Lead",
ImageUrl = "Images/Diagram/Image15.png",
EmailId = "[email protected]",
HasChild = true,
ReportingPerson = "Anto Moreno"
});
employee.Add(new DiagramEmployee()
{
ID = "59305",
DOJ = "18/10/2017",
Name = "MartÌn Kloss",
Designation = "Team Lead",
ImageUrl = "Images/Diagram/Image17.png",
EmailId = "[email protected]",
HasChild = true,
ReportingPerson = "Victoria Ash"
});
employee.Add(new DiagramEmployee()
{
ID = "59305",
DOJ = "18/10/2012",
Name = "Elizabeth Mary",
Designation = "Team Lead",
ImageUrl = "Images/Diagram/Image29.png",
EmailId = "[email protected]",
HasChild = true,
ReportingPerson = "Victoria Ash"
});
employee.Add(new DiagramEmployee()
{
ID = "59305",
DOJ = "18/10/2016",
Name = "Francisco Yang",
Designation = "Senior S/W Engg",
ImageUrl = "Images/Diagram/images9.png",
EmailId = "[email protected]",
HasChild = true,
ReportingPerson = "Eduardo Roel"
});
employee.Add(new DiagramEmployee()
{
ID = "59305",
DOJ = "18/10/2011",
Name = "Yang Wang",
Designation = "Senior S/W Engg",
ImageUrl = "Images/Diagram/image57.png",
EmailId = "[email protected]",
HasChild = true,
ReportingPerson = "Eduardo Roel"
});
//Hierarchy 4
employee.Add(new DiagramEmployee()
{
ID = "59305",
DOJ = "15/10/2015",
Name = "Pedro Afonso",
Designation = "Team Lead",
ImageUrl = "Images/Diagram/Paul.png",
EmailId = "[email protected]",
HasChild = true,
ReportingPerson = "Clayton Hardy"
});
employee.Add(new DiagramEmployee()
{
ID = "59305",
DOJ = "15/10/2011",
Name = "Elizabeth Roel",
Designation = "Team Lead",
ImageUrl = "Images/Diagram/Image30.png",
EmailId = "[email protected]",
HasChild = true,
ReportingPerson = "Clayton Hardy"
});
employee.Add(new DiagramEmployee()
{
ID = "59305",
DOJ = "15/10/2013",
Name = "Janine Labrune",
Designation = "Project Lead",
ImageUrl = "Images/Diagram/image51.png",
EmailId = "[email protected]",
HasChild = true,
ReportingPerson = "Christina kaff"
});
employee.Add(new DiagramEmployee()
{
ID = "95836",
DOJ = "15/10/2012",
Name = "Ann Devon",
Designation = "Team Lead",
ImageUrl = "Images/Diagram/Image21.png",
EmailId = "[email protected]",
HasChild = true,
ReportingPerson = "Christina kaff"
});
employee.Add(new DiagramEmployee()
{
ID = "03993",
DOJ = "15/10/2012",
Name = "Roland Mendel",
Designation = "Project Lead",
ImageUrl = "Images/Diagram/Image26.png",
EmailId = "[email protected]",
HasChild = true,
ReportingPerson = "Hanna Moos"
});
employee.Add(new DiagramEmployee()
{
ID = "01992",
DOJ = "15/10/2015",
Name = "Aria Cruz",
Designation = "Team Lead",
ImageUrl = "Images/Diagram/Image30.png",
EmailId = "[email protected]",
HasChild = true,
ReportingPerson = "Hanna Moos"
});
employee.Add(new DiagramEmployee()
{
ID = "95837",
DOJ = "15/10/2016",
Name = "Martine RancÈ",
Designation = "Team Lead",
ImageUrl = "Images/Diagram/image51.png",
EmailId = "[email protected]",
HasChild = true,
ReportingPerson = "Peter Citeaux"
});
employee.Add(new DiagramEmployee()
{
ID = "93711",
DOJ = "15/10/2015",
Name = "Maria Larsson",
Designation = "Team Lead",
ImageUrl = "Images/Diagram/image56.PNG",
EmailId = "[email protected]",
HasChild = true,
ReportingPerson = "Peter Citeaux"
});
employee.Add(new DiagramEmployee()
{
ID = "04992",
DOJ = "15/03/2015",
Name = "Diego Roel",
Designation = "Senior S/W Engg",
ImageUrl = "Images/Diagram/images9.png",
EmailId = "[email protected]",
HasChild = true,
ReportingPerson = "MartÌn Kloss"
});
employee.Add(new DiagramEmployee()
{
ID = "83735",
DOJ = "15/03/2012",
Name = "Peter Franken",
Designation = "Senior S/W Engg",
ImageUrl = "Images/Diagram/images9.png",
EmailId = "[email protected]",
HasChild = true,
ReportingPerson = "MartÌn Kloss"
});
employee.Add(new DiagramEmployee()
{
ID = "81777",
DOJ = "01/03/2011",
Name = "Carine Schmitt",
Designation = "Senior S/W Engg",
ImageUrl = "Images/Diagram/images12.png",
EmailId = "[email protected]",
HasChild = true,
ReportingPerson = "Elizabeth Mary"
});
employee.Add(new DiagramEmployee()
{
ID = "99994",
DOJ = "01/03/2016",
Name = "Paolo Accorti",
Designation = "Senior S/W Engg",
ImageUrl = "Images/Diagram/Clayton.png",
EmailId = "[email protected]",
HasChild = true,
ReportingPerson = "Elizabeth Mary"
});
employee.Add(new DiagramEmployee()
{
ID = "98823",
DOJ = "01/03/2011",
Name = "JosÈ Pedro",
Designation = "Software Engg",
ImageUrl = "Images/Diagram/Thomas.PNG",
EmailId = "[email protected]",
HasChild = true,
ReportingPerson = "Francisco Yang"
});
employee.Add(new DiagramEmployee()
{
ID = "20398",
DOJ = "01/03/2016",
Name = "Howard Snyd",
Designation = "Software Engg",
ImageUrl = "Images/Diagram/images9.png",
EmailId = "[email protected]",
HasChild = true,
ReportingPerson = "Francisco Yang"
});
employee.Add(new DiagramEmployee()
{
ID = "77738",
DOJ = "01/03/2017",
Name = "Manu Pereira",
Designation = "Software Engg",
ImageUrl = "Images/Diagram/Image14.png",
EmailId = "[email protected]",
HasChild = true,
ReportingPerson = "Yang Wang"
});
employee.Add(new DiagramEmployee()
{
ID = "91292",
DOJ = "01/03/2010",
Name = "Mario Pontes",
Designation = "Software Engg",
ImageUrl = "Images/Diagram/Image18.png",
EmailId = "[email protected]",
HasChild = true,
ReportingPerson = "Yang Wang"
});
//hierarchy 5
employee.Add(new DiagramEmployee()
{
ID = "65522",
DOJ = "01/03/2011",
Name = "Carlos Schmitt",
Designation = "Senior S/W Engg",
ImageUrl = "Images/Diagram/Clayton.png",
EmailId = "[email protected]",
HasChild = false,
ReportingPerson = "Pedro Afonso"
});
employee.Add(new DiagramEmployee()
{
ID = "99181",
DOJ = "01/03/2012",
Name = "Yoshi Latimer",
Designation = "Project Trainee",
ImageUrl = "Images/Diagram/Image29.png",
EmailId = "[email protected]",
HasChild = false,
ReportingPerson = "Pedro Afonso"
});
employee.Add(new DiagramEmployee()
{
ID = "03993",
DOJ = "01/03/2011",
Name = "Patricia Kenna",
Designation = "Senior S/W Engg",
ImageUrl = "Images/Diagram/Maria.png",
EmailId = "[email protected]",
HasChild = false,
ReportingPerson = "Elizabeth Roel"
});
employee.Add(new DiagramEmployee()
{
ID = "81918",
DOJ = "01/03/2017",
Name = "Helen Bennett",
Designation = "Project Trainee",
ImageUrl = "Images/Diagram/Clayton.png",
EmailId = "[email protected]",
HasChild = false,
ReportingPerson = "Elizabeth Roel"
});
employee.Add(new DiagramEmployee()
{
ID = "06999",
DOJ = "17/03/2010",
Name = "Daniel Tonini",
Designation = "Project Lead",
ImageUrl = "Images/Diagram/Image16.png",
EmailId = "[email protected]",
HasChild = true,
ReportingPerson = "Janine Labrune"
});
employee.Add(new DiagramEmployee()
{
ID = "73779",
DOJ = "17/03/2010",
Name = "Annette Roel",
Designation = "Team Lead",
ImageUrl = "Images/Diagram/image51.png",
EmailId = "[email protected]",
HasChild = true,
ReportingPerson = "Janine Labrune"
});
employee.Add(new DiagramEmployee()
{
ID = "27222",
DOJ = "17/03/2013",
Name = "John Steel",
Designation = "Senior S/W Engg",
ImageUrl = "Images/Diagram/image57.png",
EmailId = "[email protected]",
HasChild = false,
ReportingPerson = "Ann Devon"
});
employee.Add(new DiagramEmployee()
{
ID = "36339",
DOJ = "17/08/2013",
Name = "Jaime Yorres",
Designation = "Project Trainee",
ImageUrl = "Images/Diagram/Image17.png",
EmailId = "[email protected]",
HasChild = false,
ReportingPerson = "Ann Devon"
});
employee.Add(new DiagramEmployee()
{
ID = "10295",
DOJ = "17/08/2013",
Name = "Carlos Nagy",
Designation = "Senior S/W Engg",
ImageUrl = "Images/Diagram/Clayton.png",
EmailId = "[email protected]",
HasChild = false,
ReportingPerson = "Roland Mendel"
});
employee.Add(new DiagramEmployee()
{
ID = "95826",
DOJ = "17/08/2012",
Name = "Felipe Kloss",
Designation = "Team Lead",
ImageUrl = "Images/Diagram/image57.png",
EmailId = "[email protected]",
HasChild = true,
ReportingPerson = "Roland Mendel"
});
employee.Add(new DiagramEmployee()
{
ID = "28291",
DOJ = "17/08/2012",
Name = "Fran Wilson",
Designation = "Senior S/W Engg",
ImageUrl = "Images/Diagram/image57.png",
EmailId = "[email protected]",
HasChild = false,
ReportingPerson = "Aria Cruz"
});
employee.Add(new DiagramEmployee()
{
ID = "10395",
DOJ = "17/08/2012",
Name = "John Rovelli",
Designation = "Project Trainee",
ImageUrl = "Images/Diagram/Image30.png",
EmailId = "[email protected]",
HasChild = false,
ReportingPerson = "Aria Cruz"
});
employee.Add(new DiagramEmployee()
{
ID = "00041",
DOJ = "17/08/2014",
Name = "Catherine Kaff",
Designation = "Senior S/W Engg",
ImageUrl = "Images/Diagram/images12.png",
EmailId = "[email protected]",
HasChild = false,
ReportingPerson = "Martine RancÈ"
});
employee.Add(new DiagramEmployee()
{
ID = "90906",
DOJ = "09/08/2014",
Name = "Jean FresniËre",
Designation = "Senior S/W Engg",
ImageUrl = "Images/Diagram/Image17.png",
EmailId = "[email protected]",
HasChild = true,
ReportingPerson = "Martine RancÈ"
});
employee.Add(new DiagramEmployee()
{
ID = "77282",
DOJ = "09/122014",
Name = "Simon Roel",
Designation = "Senior S/W Engg",
ImageUrl = "Images/Diagram/Image26.png",
EmailId = "[email protected]",
HasChild = false,
ReportingPerson = "Maria Larsson"
});
employee.Add(new DiagramEmployee()
{
ID = "19098",
DOJ = "09/122014",
Name = "Yvonne Wong",
Designation = "Senior S/W Engg",
ImageUrl = "Images/Diagram/image57.png",
EmailId = "[email protected]",
HasChild = false,
ReportingPerson = "Maria Larsson"
});
employee.Add(new DiagramEmployee()
{
ID = "75638",
DOJ = "09/122016",
Name = "Rene Phillips",
Designation = "Software Engg",
ImageUrl = "Images/Diagram/Image18.png",
EmailId = "[email protected]",
HasChild = false,
ReportingPerson = "Diego Roel"
});
employee.Add(new DiagramEmployee()
{
ID = "60021",
DOJ = "09/122016",
Name = "Yoshi Kenna",
Designation = "Senior S/W Engg",
ImageUrl = "Images/Diagram/images9.png",
EmailId = "[email protected]",
HasChild = true,
ReportingPerson = "Diego Roel"
});
employee.Add(new DiagramEmployee()
{
ID = "50090",
DOJ = "09/122016",
Name = "Helen Marie",
Designation = "Senior S/W Engg",
ImageUrl = "Images/Diagram/Image30.png",
EmailId = "[email protected]",
HasChild = false,
ReportingPerson = "Peter Franken"
});
employee.Add(new DiagramEmployee()
{
ID = "80091",
DOJ = "09/122012",
Name = "Georg Louis",
Designation = "Project Trainee",
ImageUrl = "Images/Diagram/Clayton.png",
EmailId = "[email protected]",
HasChild = false,
ReportingPerson = "Peter Franken"
});
employee.Add(new DiagramEmployee()
{
ID = "78890",
DOJ = "09/122012",
Name = "Nardo Batista",
Designation = "Software Engg",
ImageUrl = "Images/Diagram/Image12.png",
EmailId = "[email protected]",
HasChild = false,
ReportingPerson = "Carine Schmitt"
});
employee.Add(new DiagramEmployee()
{
ID = "62777",
DOJ = "09/122012",
Name = "Horst Kloss",
Designation = "Senior S/W Engg",
ImageUrl = "Images/Diagram/Image11.png",
EmailId = "[email protected]",
HasChild = true,
ReportingPerson = "Carine Schmitt"
});
employee.Add(new DiagramEmployee()
{
ID = "01973",
DOJ = "28/122012",
Name = "Mauri Moroni",
Designation = "Software Engg",
ImageUrl = "Images/Diagram/Image19.png",
EmailId = "[email protected]",
HasChild = false,
ReportingPerson = "Paolo Accorti"
});
employee.Add(new DiagramEmployee()
{
ID = "74891",
DOJ = "28/122012",
Name = "Jonas Bergsen",
Designation = "Project Trainee",
ImageUrl = "Images/Diagram/image57.png",
EmailId = "[email protected]",
HasChild = false,
ReportingPerson = "Paolo Accorti"
});
employee.Add(new DiagramEmployee()
{
ID = "66201",
DOJ = "28/122012",
Name = "Jose Pavarotti",
Designation = "Project Trainee",
ImageUrl = "Images/Diagram/Maria.png",
EmailId = "[email protected]",
HasChild = false,
ReportingPerson = "JosÈ Pedro"
});
employee.Add(new DiagramEmployee()
{
ID = "39846",
DOJ = "28/122015",
Name = "Miguel Angel",
Designation = "Project Trainee",
ImageUrl = "Images/Diagram/Image0.png",
EmailId = "[email protected]",
HasChild = false,
ReportingPerson = "Howard Snyd"
});
employee.Add(new DiagramEmployee()
{
ID = "18276",
DOJ = "28/072015",
Name = "Jytte Petersen",
Designation = "Project Trainee",
ImageUrl = "Images/Diagram/images9.png",
EmailId = "[email protected]",
HasChild = false,
ReportingPerson = "Howard Snyd"
});
employee.Add(new DiagramEmployee()
{
ID = "30497",
DOJ = "28/072015",
Name = "Kloss Perrier",
Designation = "Project Trainee",
ImageUrl = "Images/Diagram/Clayton.png",
EmailId = "[email protected]",
HasChild = false,
ReportingPerson = "Manu Pereira"
});
employee.Add(new DiagramEmployee()
{
ID = "91811",
DOJ = "28/072015",
Name = "Pascal Cartrain",
Designation = "Project Trainee",
ImageUrl = "Images/Diagram/Image15.png",
EmailId = "[email protected]",
HasChild = false,
ReportingPerson = "Manu Pereira"
});
employee.Add(new DiagramEmployee()
{
ID = "77777",
DOJ = "28/072016",
Name = "Liz Nixon",
Designation = "Project Trainee",
ImageUrl = "Images/Diagram/Image14.png",
EmailId = "[email protected]",
HasChild = false,
ReportingPerson = "Mario Pontes"
});
employee.Add(new DiagramEmployee()
{
ID = "11786",
DOJ = "28/06/2016",
Name = "Liu Wong",
Designation = "Project Trainee",
ImageUrl = "Images/Diagram/image57.png",
EmailId = "[email protected]",
HasChild = false,
ReportingPerson = "Mario Pontes"
});
//Hierarchy 6
employee.Add(new DiagramEmployee()
{
ID = "55555",
DOJ = "18/072016",
Name = "Karin Josephs",
Designation = "Project Trainee",
ImageUrl = "Images/Diagram/Image15.png",
EmailId = "[email protected]",
HasChild = false,
ReportingPerson = "Annette Roel"
});
employee.Add(new DiagramEmployee()
{
ID = "11111",
DOJ = "18/072017",
Name = "Ruby Anabela",
Designation = "Project Trainee",
ImageUrl = "Images/Diagram/Image22.png",
EmailId = "[email protected]",
HasChild = false,
ReportingPerson = "Annette Roel"
});
employee.Add(new DiagramEmployee()
{
ID = "93018",
DOJ = "18/072017",
Name = "Helvetis Nagy",
Designation = "Project Trainee",
ImageUrl = "Images/Diagram/image57.png",
EmailId = "[email protected]",
HasChild = false,
ReportingPerson = "Felipe Kloss"
});
employee.Add(new DiagramEmployee()
{
ID = "83781",
DOJ = "18/072017",
Name = "Palle Ibsen",
Designation = "Project Trainee",
ImageUrl = "Images/Diagram/Image29.png",
EmailId = "[email protected]",
HasChild = false,
ReportingPerson = "Felipe Kloss"
});
employee.Add(new DiagramEmployee()
{
ID = "84902",
DOJ = "18/05/2017",
Name = "Karl Jablonski",
Designation = "Project Trainee",
ImageUrl = "Images/Diagram/image57.png",
EmailId = "[email protected]",
HasChild = false,
ReportingPerson = "Jean FresniËre"
});
employee.Add(new DiagramEmployee()
{
ID = "83937",
DOJ = "18/03/2017",
Name = "Matti Kenna",
Designation = "Project Trainee",
ImageUrl = "Images/Diagram/Image21.png",
EmailId = "[email protected]",
HasChild = false,
ReportingPerson = "Jean FresniËre"
});
employee.Add(new DiagramEmployee()
{
ID = "88729",
DOJ = "18/04/2015",
Name = "Zbyszek Yang",
Designation = "Project Trainee",
ImageUrl = "Images/Diagram/image54.PNG",
EmailId = "[email protected]",
HasChild = false,
ReportingPerson = "Yoshi Kenna"
});
employee.Add(new DiagramEmployee()
{
ID = "98765",
DOJ = "18/06/2015",
Name = "Nancy",
Designation = "Project Trainee",
ImageUrl = "Images/Diagram/Image18.png",
EmailId = "[email protected]",
HasChild = false,
ReportingPerson = "Yoshi Kenna"
});
employee.Add(new DiagramEmployee()
{
ID = "23456",
DOJ = "23/12/2015",
Name = "Georg Pipps",
Designation = "Project Trainee",
ImageUrl = "Images/Diagram/image57.png",
EmailId = "[email protected]",
HasChild = false,
ReportingPerson = "Horst Kloss"
});
employee.Add(new DiagramEmployee()
{
ID = "09876",
DOJ = "23/12/2015",
Name = "Lucia Carvalho",
Designation = "Project Trainee",
ImageUrl = "Image14.png",
EmailId = "[email protected]",
HasChild = false,
ReportingPerson = "Horst Kloss"
});
}
}
}
/// <summary>
/// Employee class
/// </summary>
public class DiagramEmployee : INotifyPropertyChanged
{
private string name;
private double salary;
private string destination;
private string imageurl;
private string doj;
private string emailid;
private double contactno;
private string reportingPerson;
private bool haschild;
public DiagramEmployee()
{
}
/// <summary>
/// Get or set the haschild
/// </summary>
public bool HasChild
{
get { return haschild; }
set
{
haschild = value;
}
}
private string _mDesignation;
private string id;
/// <summary>
/// Get or set the designation
/// </summary>
public string Designation
{
get { return _mDesignation; }
set
{
if (_mDesignation != value)
{
_mDesignation = value;
OnPropertyChanged("Designation");
}
}
}
/// <summary>
/// Get or set the name
/// </summary>
public string Name
{
get
{
return name;
}
set
{
if (name != value)
{
name = value;
OnPropertyChanged(("Name"));
}
}
}
public string ID
{
get
{
return id;
}
set
{
if (id != value)
{
id = value;
OnPropertyChanged(("ID"));
}
}
}
/// <summary>
/// Get or set the reporting person
/// </summary>
public string ReportingPerson
{
get
{
return reportingPerson;
}
set
{
if (reportingPerson != value)
{
reportingPerson = value;
OnPropertyChanged(("ReportingPerson"));
}
}
}
/// <summary>
/// Get or set the reportingid
/// </summary>
public int ReportingId
{
get;
set;
}
/// <summary>
/// Get or set the salary
/// </summary>
public double Salary
{
get
{
return salary;
}
set
{
if (salary != value)
{
salary = value;
OnPropertyChanged(("Salary"));
}
}
}
/// <summary>
/// Get or set the destination
/// </summary>
public string Destination
{
get
{
return destination;
}
set
{
if (destination != value)
{
if (value != null)
{
destination = value;
OnPropertyChanged(("Destination"));
}
}
}
}
/// <summary>
/// Get or set the imageurl
/// </summary>
public string ImageUrl
{
get
{
return imageurl;
}
set
{
if (imageurl != value)
{
if (value != null)
{
imageurl = value;
OnPropertyChanged(("ImageUrl"));