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:
parent
4c2edd761b
commit
2d216b9721
|
@ -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
|
||||
//
|
||||
|
|
|
@ -136,6 +136,11 @@ namespace db_AI_4
|
|||
|
||||
UpdateBinding();
|
||||
}
|
||||
|
||||
private void ShowRentListBox_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
//Add Location to ADDBox end
|
||||
|
||||
}
|
||||
|
|
|
@ -87,7 +87,9 @@ namespace db_AI_4
|
|||
|
||||
}
|
||||
}
|
||||
//Registration function end
|
||||
|
||||
//Read Rented locations start
|
||||
internal List<GetRents> 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
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -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} ";
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue