public house_choice Insert_house_choice_select(int ID) { house_choice = house_choice.Select(ID); Insert_house_id_txt.Text = Convert.ToString(house_choice.house_id); Insert_address_id_txt.Text = Convert.ToString(house_choice.address_id); Insert_house_choice_bathrooms_txt.Text = Convert.ToString(house_choice.house_choice_bathrooms); Insert_house_choice_comments_txt.Text = Convert.ToString(house_choice.house_choice_comments); Insert_house_choice_contact_person_id_txt.Text = Convert.ToString(house_choice.house_choice_contact_person_id); Insert_house_choice_laundry_txt.Text = Convert.ToString(house_choice.house_choice_laundry); Insert_house_choice_no_floors_txt.Text = Convert.ToString(house_choice.house_choice_no_floors); Insert_house_choice_parking_txt.Text = Convert.ToString(house_choice.house_choice_parking); Insert_house_choice_rent_txt.Text = Convert.ToString(house_choice.house_choice_rent); Insert_house_choice_type_txt.Text = Convert.ToString(house_choice.house_choice_type); Insert_house_choice_units_avail_txt.Text = Convert.ToString(house_choice.house_choice_units_avail); return(house_choice); }
public house_choice Delete_house_choice_select(int ID) { house_choice = house_choice.Select(ID); Delete_house_choice_id_txt_lbl.Text = Convert.ToString(house_choice.house_choice_id); Delete_house_id_txt_lbl.Text = Convert.ToString(house_choice.house_id); Delete_address_id_txt_lbl.Text = Convert.ToString(house_choice.address_id); Delete_house_choice_bathrooms_txt_lbl.Text = Convert.ToString(house_choice.house_choice_bathrooms); Delete_house_choice_comments_txt_lbl.Text = Convert.ToString(house_choice.house_choice_comments); Delete_house_choice_contact_person_id_txt_lbl.Text = Convert.ToString(house_choice.house_choice_contact_person_id); Delete_house_choice_laundry_txt_lbl.Text = Convert.ToString(house_choice.house_choice_laundry); Delete_house_choice_no_floors_txt_lbl.Text = Convert.ToString(house_choice.house_choice_no_floors); Delete_house_choice_parking_txt_lbl.Text = Convert.ToString(house_choice.house_choice_parking); Delete_house_choice_rent_txt_lbl.Text = Convert.ToString(house_choice.house_choice_rent); Delete_house_choice_type_txt_lbl.Text = Convert.ToString(house_choice.house_choice_type); Delete_house_choice_units_avail_txt_lbl.Text = Convert.ToString(house_choice.house_choice_units_avail); return house_choice; }
public house_choice house_choice_insert() { house_choice.house_id = Convert.ToInt32(Insert_house_id_txt.Text); house_choice.address_id = Convert.ToInt32(Insert_address_id_txt.Text); house_choice.house_choice_bathrooms = Convert.ToInt32(Insert_house_choice_bathrooms_txt.Text); house_choice.house_choice_comments = Insert_house_choice_comments_txt.Text; house_choice.house_choice_contact_person_id = Convert.ToInt32(Insert_house_choice_contact_person_id_txt.Text); house_choice.house_choice_laundry = Insert_house_choice_laundry_txt.Text; house_choice.house_choice_no_floors = Convert.ToInt32(Insert_house_choice_no_floors_txt.Text); house_choice.house_choice_parking = Insert_house_choice_parking_txt.Text; house_choice.house_choice_rent = Convert.ToDecimal(Insert_house_choice_rent_txt.Text); house_choice.house_choice_type = Insert_house_choice_type_txt.Text; house_choice.house_choice_units_avail = Convert.ToInt32(Insert_house_choice_units_avail_txt.Text); house_choice = house_choice.Insert(house_choice); Insert_house_choice_GridView.DataBind(); Update_house_choice_GridView.DataBind(); Delete_house_choice_GridView.DataBind(); return(house_choice); }
public house_choice house_choice_update(int ID) { house_choice = house_choice.Select(ID); house_choice.house_choice_id = Convert.ToInt32(Update_house_choice_id_txt.Text); house_choice.house_id = Convert.ToInt32(Update_house_id_txt.Text); house_choice.address_id = Convert.ToInt32(Update_address_id_txt.Text); house_choice.house_choice_bathrooms = Convert.ToInt32(Update_house_choice_bathrooms_txt.Text); house_choice.house_choice_comments = Update_house_choice_comments_txt.Text; house_choice.house_choice_contact_person_id = Convert.ToInt32(Update_house_choice_contact_person_id_txt.Text); house_choice.house_choice_laundry = Update_house_choice_laundry_txt.Text; house_choice.house_choice_no_floors = Convert.ToInt32(Update_house_choice_no_floors_txt.Text); house_choice.house_choice_parking = Update_house_choice_parking_txt.Text; house_choice.house_choice_rent = Convert.ToDecimal(Update_house_choice_rent_txt.Text); house_choice.house_choice_type = Update_house_choice_type_txt.Text; house_choice.house_choice_units_avail = Convert.ToInt32(Update_house_choice_units_avail_txt.Text); house_choice.Update(house_choice); Insert_house_choice_GridView.DataBind(); Update_house_choice_GridView.DataBind(); Delete_house_choice_GridView.DataBind(); return house_choice; }
protected void Update_Select_Record(object sender, EventArgs e) { house_choice = Update_house_choice_select(Convert.ToInt32(Update_house_choice_GridView.SelectedValue)); }
protected void UPDATE(object sender, EventArgs e) { house_choice = house_choice_update(Convert.ToInt32(Update_house_choice_GridView.SelectedValue)); }
protected void INSERT(object sender, EventArgs e) { house_choice = house_choice_insert(); }
protected void Insert_Select_Record(object sender, EventArgs e) { house_choice = Insert_house_choice_select(Convert.ToInt32(Insert_house_choice_GridView.SelectedValue)); }