From 2d216b9721aaa45a2e3e7c69d38beca0c234604b Mon Sep 17 00:00:00 2001 From: Ismail Date: Sun, 27 Aug 2017 09:43:05 +0200 Subject: [PATCH] change the class "GetRents" to the right order of the VIEW and took the needed string and int from the class --- .../db_AI-4_V3/db_AI-4/Dashboard.Designer.cs | 1 + .../marketconnectionNET2.0/db_AI-4_V3/db_AI-4/Dashboard.cs | 5 +++++ .../marketconnectionNET2.0/db_AI-4_V3/db_AI-4/DataAccess.cs | 5 +++-- csharp/marketconnectionNET2.0/db_AI-4_V3/db_AI-4/GetRents.cs | 4 +++- 4 files changed, 12 insertions(+), 3 deletions(-) diff --git a/csharp/marketconnectionNET2.0/db_AI-4_V3/db_AI-4/Dashboard.Designer.cs b/csharp/marketconnectionNET2.0/db_AI-4_V3/db_AI-4/Dashboard.Designer.cs index b812a59..f1c4807 100644 --- a/csharp/marketconnectionNET2.0/db_AI-4_V3/db_AI-4/Dashboard.Designer.cs +++ b/csharp/marketconnectionNET2.0/db_AI-4_V3/db_AI-4/Dashboard.Designer.cs @@ -170,6 +170,7 @@ this.ShowRentListBox.Name = "ShowRentListBox"; this.ShowRentListBox.Size = new System.Drawing.Size(629, 244); this.ShowRentListBox.TabIndex = 28; + this.ShowRentListBox.SelectedIndexChanged += new System.EventHandler(this.ShowRentListBox_SelectedIndexChanged); // // ShowRentLabel // diff --git a/csharp/marketconnectionNET2.0/db_AI-4_V3/db_AI-4/Dashboard.cs b/csharp/marketconnectionNET2.0/db_AI-4_V3/db_AI-4/Dashboard.cs index 1286881..f10d4ca 100644 --- a/csharp/marketconnectionNET2.0/db_AI-4_V3/db_AI-4/Dashboard.cs +++ b/csharp/marketconnectionNET2.0/db_AI-4_V3/db_AI-4/Dashboard.cs @@ -136,6 +136,11 @@ namespace db_AI_4 UpdateBinding(); } + + private void ShowRentListBox_SelectedIndexChanged(object sender, EventArgs e) + { + + } //Add Location to ADDBox end } diff --git a/csharp/marketconnectionNET2.0/db_AI-4_V3/db_AI-4/DataAccess.cs b/csharp/marketconnectionNET2.0/db_AI-4_V3/db_AI-4/DataAccess.cs index 542fd4c..106254c 100644 --- a/csharp/marketconnectionNET2.0/db_AI-4_V3/db_AI-4/DataAccess.cs +++ b/csharp/marketconnectionNET2.0/db_AI-4_V3/db_AI-4/DataAccess.cs @@ -87,7 +87,9 @@ namespace db_AI_4 } } + //Registration function end + //Read Rented locations start internal List GetRentedLocations(string LocationName) { using (IDbConnection connection = new System.Data.SqlClient.SqlConnection(Helper.CnnVal("marketdb"))) @@ -98,9 +100,8 @@ namespace db_AI_4 } } - - //Registration function end + //Read Rented locations end diff --git a/csharp/marketconnectionNET2.0/db_AI-4_V3/db_AI-4/GetRents.cs b/csharp/marketconnectionNET2.0/db_AI-4_V3/db_AI-4/GetRents.cs index 8200cb0..b971fdb 100644 --- a/csharp/marketconnectionNET2.0/db_AI-4_V3/db_AI-4/GetRents.cs +++ b/csharp/marketconnectionNET2.0/db_AI-4_V3/db_AI-4/GetRents.cs @@ -12,7 +12,9 @@ namespace db_AI_4 public string rent_date { get; set; } public string payment_date { get; set; } public int member_id { get; set; } + public string email_address { get; set; } public int rent_price_id { get; set; } + public int rent_price { get; set; } public int location_id { get; set; } public string streetname { get; set; } @@ -26,7 +28,7 @@ namespace db_AI_4 { get { - return $"{location_name} {streetname} {location_capacity} { rent_date } {member_id} {rent_price_id} "; + return $"{location_name} {location_capacity} {rent_price} { rent_date } {email_address} "; } }