|
| 1 | +using System; |
| 2 | +using System.Collections.Generic; |
| 3 | +using System.Linq; |
| 4 | +using System.Threading.Tasks; |
| 5 | + |
| 6 | +namespace Master_Detail_Grid.Data |
| 7 | +{ |
| 8 | + public class Salesperson |
| 9 | + { |
| 10 | + public int? EmployeeID { get; set; } |
| 11 | + public string FirstName { get; set; } |
| 12 | + public string LastName { get; set; } |
| 13 | + public string Title { get; set; } |
| 14 | + public string City { get; set; } |
| 15 | + public string Country { get; set; } |
| 16 | + public string Postal { get; set; } |
| 17 | + public string Address { get; set; } |
| 18 | + public string Phone { get; set; } |
| 19 | + public string Email { get; set; } |
| 20 | + |
| 21 | + public static List<Salesperson> GetSalesperson() |
| 22 | + { |
| 23 | + List<Salesperson> Employees = new List<Salesperson> |
| 24 | + { |
| 25 | + new Salesperson {EmployeeID = 1, FirstName="Nancy", LastName="Andrea", Email="nancy.andr@gmail.com", Title="Sales Representative",City="New York", Country="USA", Postal="10007", Address="507 - 20th Ave. E. Apt. 2A", Phone="(212) 555-1189"}, |
| 26 | + new Salesperson {EmployeeID = 2, FirstName="Andrew", LastName="Taylor", Email="andrew.taylor@gmail.com", Title="Vice President",City="London", Country="UK", Postal="WC2H 0HH", Address="908 W. Capital Way", Phone="(71) 755-9489"}, |
| 27 | + new Salesperson {EmployeeID = 3, FirstName="Jenie", LastName="Celine", Email="celine_jeny@gmail.com", Title="Region Manager",City="London", Country="UK", Postal="WC2H 0HH", Address="722 Moss Bay Blvd.", Phone="(71) 235-5644"}, |
| 28 | + new Salesperson {EmployeeID = 4, FirstName="Margaret", LastName="Lucy", Email="margaret.lucy@gmail.com", Title="Sales Manager",City="London", Country="UK", Postal="WC2H 0HH", Address="4110 Old Redmond Rd.", Phone="(71) 555-4674"}, |
| 29 | + new Salesperson {EmployeeID = 5, FirstName="Steven", LastName="Stalen", Email="staley.steve@gmail.com", Title="Sales VP",City="Vegas", Country="USA", Postal="89107", Address="14 Garrett Hill", Phone="(212) 555-1189"}, |
| 30 | + new Salesperson {EmployeeID = 6, FirstName="Smith", LastName="Joe", Email="joe.smith@gmail.com", Title="Sales Consultant",City="New York", Country="USA", Postal="10007", Address="Coventry House Miner Rd.", Phone="(212) 555-1189"}, |
| 31 | + new Salesperson {EmployeeID = 7, FirstName="Steven", LastName="Smith", Email="smith.steve@gmail.com", Title="Sales Coordinator",City="Paris", Country="France", Postal="75007", Address="Edgeham Hollow Winchester Way", Phone="+331 4025 0808"}, |
| 32 | + new Salesperson {EmployeeID = 8, FirstName="Catherine", LastName="Ray", Email="ray_catherine@gmail.com", Title="Sales Representative",City="Mumbai", Country="India", Postal="400007", Address="4726 - 11th Ave. N.E.", Phone="022 43768823"}, |
| 33 | + new Salesperson {EmployeeID = 9, FirstName="Larry", LastName="Reas", Email="raes_larry@gmail.com", Title="Sales Associate",City="Chennai", Country="India", Postal="600077", Address="7 Houndstooth Rd.", Phone="044 41618442"} |
| 34 | + }; |
| 35 | + return Employees; |
| 36 | + } |
| 37 | + } |
| 38 | + |
| 39 | + public class Location |
| 40 | + { |
| 41 | + public double latitude; |
| 42 | + public double longitude; |
| 43 | + public string name; |
| 44 | + |
| 45 | + public static List<Location> GetLocation() |
| 46 | + { |
| 47 | + List<Location> MapPoints = new List<Location> { |
| 48 | + new Location { name= "New York", latitude= 40.7488758, longitude= -73.9730091 }, |
| 49 | + new Location { name = "London", latitude= 51.5074, longitude= -0.1278,}, |
| 50 | + new Location { name = "Vegas", latitude=36.1699, longitude= -115.1398,}, |
| 51 | + new Location { name="Paris", latitude= 48.8773406, longitude= 2.3299627,}, |
| 52 | + new Location { name="Mumbai", latitude= 19.1555762, longitude= 72.8849595,}, |
| 53 | + new Location { name="Chennai", latitude=13.0827, longitude= 80.2707,} |
| 54 | + }; |
| 55 | + return MapPoints; |
| 56 | + } |
| 57 | + } |
| 58 | + |
| 59 | + public class MeetingSchedule |
| 60 | + { |
| 61 | + public int Id { get; set; } |
| 62 | + public string Subject { get; set; } |
| 63 | + public DateTime StartTime { get; set; } |
| 64 | + public DateTime EndTime { get; set; } |
| 65 | + public int? EID { get; set; } |
| 66 | + |
| 67 | + public static List<MeetingSchedule> GetMeetingData() |
| 68 | + { |
| 69 | + List<MeetingSchedule> ScheduleData = new List<MeetingSchedule> |
| 70 | + { |
| 71 | + new MeetingSchedule { Id = 1, Subject="Meeting with Alex", StartTime = new DateTime(2020, 03, 02, 09, 30, 0), EndTime = new DateTime(2020, 03, 02, 10, 30, 0), EID = 1 }, |
| 72 | + new MeetingSchedule { Id = 2, Subject="Meeting with Bob", StartTime = new DateTime(2020, 03, 02, 09, 30, 0), EndTime = new DateTime(2020, 03, 02, 10, 30, 0), EID = 1 }, |
| 73 | + new MeetingSchedule { Id = 3, Subject="Meeting with Catherine", StartTime = new DateTime(2020, 03, 02, 09, 30, 0), EndTime = new DateTime(2020, 03, 02, 10, 30, 0), EID = 2 }, |
| 74 | + new MeetingSchedule { Id = 4, Subject="Meeting with Dany", StartTime = new DateTime(2020, 03, 02, 09, 30, 0), EndTime = new DateTime(2020, 03, 02, 10, 30, 0), EID = 2 }, |
| 75 | + new MeetingSchedule { Id = 5, Subject="Meeting with Eliot", StartTime = new DateTime(2020, 03, 02, 09, 30, 0), EndTime = new DateTime(2020, 03, 02, 10, 30, 0), EID = 3 }, |
| 76 | + new MeetingSchedule { Id = 6, Subject="Meeting with Frezey", StartTime = new DateTime(2020, 03, 02, 09, 30, 0), EndTime = new DateTime(2020, 03, 02, 10, 30, 0), EID = 3 }, |
| 77 | + new MeetingSchedule { Id = 7, Subject="Meeting with Goldie", StartTime = new DateTime(2020, 03, 02, 09, 30, 0), EndTime = new DateTime(2020, 03, 02, 10, 30, 0), EID = 4 }, |
| 78 | + new MeetingSchedule { Id = 8, Subject="Meeting with Harman", StartTime = new DateTime(2020, 03, 02, 09, 30, 0), EndTime = new DateTime(2020, 03, 02, 10, 30, 0), EID = 4 }, |
| 79 | + new MeetingSchedule { Id = 9, Subject="Meeting with Irwin", StartTime = new DateTime(2020, 03, 02, 09, 30, 0), EndTime = new DateTime(2020, 03, 02, 10, 30, 0), EID = 5 }, |
| 80 | + new MeetingSchedule { Id = 10, Subject="Meeting with Jack", StartTime = new DateTime(2020, 03, 02, 09, 30, 0), EndTime = new DateTime(2020, 03, 02, 10, 30, 0), EID = 5 }, |
| 81 | + new MeetingSchedule { Id = 11, Subject="Meeting with Klay", StartTime = new DateTime(2020, 03, 02, 09, 30, 0), EndTime = new DateTime(2020, 03, 02, 10, 30, 0), EID = 6 }, |
| 82 | + new MeetingSchedule { Id = 12, Subject="Meeting with Lucy", StartTime = new DateTime(2020, 03, 02, 09, 30, 0), EndTime = new DateTime(2020, 03, 02, 10, 30, 0), EID = 6 }, |
| 83 | + new MeetingSchedule { Id = 13, Subject="Meeting with Moni", StartTime = new DateTime(2020, 03, 02, 09, 30, 0), EndTime = new DateTime(2020, 03, 02, 10, 30, 0), EID = 7 }, |
| 84 | + new MeetingSchedule { Id = 14, Subject="Meeting with Nancy", StartTime = new DateTime(2020, 03, 02, 09, 30, 0), EndTime = new DateTime(2020, 03, 02, 10, 30, 0), EID = 7 }, |
| 85 | + new MeetingSchedule { Id = 15, Subject="Meeting with Orley", StartTime = new DateTime(2020, 03, 02, 09, 30, 0), EndTime = new DateTime(2020, 03, 02, 10, 30, 0), EID = 8 }, |
| 86 | + new MeetingSchedule { Id = 16, Subject="Meeting with Prince", StartTime = new DateTime(2020, 03, 02, 09, 30, 0), EndTime = new DateTime(2020, 03, 02, 10, 30, 0), EID = 8 }, |
| 87 | + new MeetingSchedule { Id = 17, Subject="Meeting with Queen", StartTime = new DateTime(2020, 03, 02, 09, 30, 0), EndTime = new DateTime(2020, 03, 02, 10, 30, 0), EID = 9 }, |
| 88 | + new MeetingSchedule { Id = 18, Subject="Meeting with Rockstar", StartTime = new DateTime(2020, 03, 02, 09, 30, 0), EndTime = new DateTime(2020, 03, 02, 10, 30, 0), EID = 9 } |
| 89 | + }; |
| 90 | + return ScheduleData; |
| 91 | + } |
| 92 | + } |
| 93 | + |
| 94 | + public class Orders |
| 95 | + { |
| 96 | + public int? EmployeeID { get; set; } |
| 97 | + public int? OrderID { get; set; } |
| 98 | + public DateTime OrderDate { get; set; } |
| 99 | + public string ShipName { get; set; } |
| 100 | + public string ShipCity { get; set; } |
| 101 | + public double? Freight { get; set; } |
| 102 | + } |
| 103 | +} |
0 commit comments