示例#1
0
 public void Client_Shelter_delete(int ID)
 {
     Client_Shelter.Delete(ID);
     Insert_Client_Shelter_GridView.DataBind();
     Update_Client_Shelter_GridView.DataBind();
     Delete_Client_Shelter_GridView.DataBind();
 }
示例#2
0
 public Client_Shelter Client_Shelter_update(int ID)
 {
     Client_Shelter = Client_Shelter.Select(ID);
     Client_Shelter.Client_Shelter_ID              = Convert.ToInt32(Update_Client_Shelter_ID_txt.Text);
     Client_Shelter.Shelter_ID                     = Convert.ToInt32(Update_Shelter_ID_txt.Text);
     Client_Shelter.Client_ID                      = Convert.ToInt32(Update_Client_ID_txt.Text);
     Client_Shelter.Current_address                = Update_Current_address_txt.Text;
     Client_Shelter.Current_State                  = Update_Current_State_txt.Text;
     Client_Shelter.Current_City                   = Update_Current_City_txt.Text;
     Client_Shelter.Current_Zip                    = Convert.ToInt32(Update_Current_Zip_txt.Text);
     Client_Shelter.Client_registration_status     = Update_Client_registration_status_txt.Text;
     Client_Shelter.Household_size                 = Convert.ToInt32(Update_Household_size_txt.Text);
     Client_Shelter.Shelter_supplies               = Update_Shelter_supplies_txt.Text;
     Client_Shelter.Shelter_occupancy_current      = Update_Shelter_occupancy_current_txt.Text;
     Client_Shelter.New_household_registered       = Update_New_household_registered_txt.Text;
     Client_Shelter.New_Shelter_address            = Update_New_Shelter_address_txt.Text;
     Client_Shelter.New_Shelter_city               = Update_New_Shelter_city_txt.Text;
     Client_Shelter.New_Shelter_State              = Update_New_Shelter_State_txt.Text;
     Client_Shelter.New_Shelter_Zip                = Convert.ToInt32(Update_New_Shelter_Zip_txt.Text);
     Client_Shelter.New_Contact_Number             = Convert.ToInt32(Update_New_Contact_Number_txt.Text);
     Client_Shelter.Current_household_members_safe = Update_Current_household_members_safe_txt.Text;
     Client_Shelter.CheckIn_Date                   = Convert.ToDateTime(Update_CheckIn_Date_txt.Text);
     Client_Shelter.CheckOut_Date                  = Convert.ToDateTime(Update_CheckOut_Date_txt.Text);
     Client_Shelter.Update(Client_Shelter);
     Insert_Client_Shelter_GridView.DataBind();
     Update_Client_Shelter_GridView.DataBind();
     Delete_Client_Shelter_GridView.DataBind();
     return(Client_Shelter);
 }