change the class "GetRents" to the right order of the VIEW and took the needed string and int from the class

This commit is contained in:
Ismail 2017-08-27 09:43:05 +02:00
parent 4c2edd761b
commit 2d216b9721
4 changed files with 12 additions and 3 deletions

View File

@ -170,6 +170,7 @@
this.ShowRentListBox.Name = "ShowRentListBox"; this.ShowRentListBox.Name = "ShowRentListBox";
this.ShowRentListBox.Size = new System.Drawing.Size(629, 244); this.ShowRentListBox.Size = new System.Drawing.Size(629, 244);
this.ShowRentListBox.TabIndex = 28; this.ShowRentListBox.TabIndex = 28;
this.ShowRentListBox.SelectedIndexChanged += new System.EventHandler(this.ShowRentListBox_SelectedIndexChanged);
// //
// ShowRentLabel // ShowRentLabel
// //

View File

@ -136,6 +136,11 @@ namespace db_AI_4
UpdateBinding(); UpdateBinding();
} }
private void ShowRentListBox_SelectedIndexChanged(object sender, EventArgs e)
{
}
//Add Location to ADDBox end //Add Location to ADDBox end
} }

View File

@ -87,7 +87,9 @@ namespace db_AI_4
} }
} }
//Registration function end
//Read Rented locations start
internal List<GetRents> GetRentedLocations(string LocationName) internal List<GetRents> GetRentedLocations(string LocationName)
{ {
using (IDbConnection connection = new System.Data.SqlClient.SqlConnection(Helper.CnnVal("marketdb"))) 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

View File

@ -12,7 +12,9 @@ namespace db_AI_4
public string rent_date { get; set; } public string rent_date { get; set; }
public string payment_date { get; set; } public string payment_date { get; set; }
public int member_id { 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_id { get; set; }
public int rent_price { get; set; }
public int location_id { get; set; } public int location_id { get; set; }
public string streetname { get; set; } public string streetname { get; set; }
@ -26,7 +28,7 @@ namespace db_AI_4
{ {
get 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} ";
} }
} }