public void case_client_delete(int ID) { case_client.Delete(ID); Insert_case_client_GridView.DataBind(); Update_case_client_GridView.DataBind(); Delete_case_client_GridView.DataBind(); }
public case_client case_client_update(int ID) { case_client = case_client.Select(ID); case_client.case_id = Convert.ToInt32(Update_case_id_txt.Text); case_client.client_id = Convert.ToInt32(Update_client_id_txt.Text); case_client.address_id = Convert.ToInt32(Update_address_id_txt.Text); case_client.cable_amt_owed_today = Convert.ToDecimal(Update_cable_amt_owed_today_txt.Text); case_client.colessee_name = Update_colessee_name_txt.Text; case_client.child_support = Update_child_support_txt.Text; case_client.child_support_memo = Update_child_support_memo_txt.Text; case_client.curr_residence_date = Convert.ToDateTime(Update_curr_residence_date_txt.Text); case_client.electric_amt_owed_today = Convert.ToDecimal(Update_electric_amt_owed_today_txt.Text); case_client.employment_memo = Update_employment_memo_txt.Text; case_client.employment_status = Update_employment_status_txt.Text; case_client.gas_or_heating_amt_owed_today = Convert.ToDecimal(Update_gas_or_heating_amt_owed_today_txt.Text); case_client.housing_amt_owed_today = Convert.ToDecimal(Update_housing_amt_owed_today_txt.Text); case_client.housing_status = Update_housing_status_txt.Text; case_client.income_status = Update_income_status_txt.Text; case_client.lease_num_adults = Convert.ToInt32(Update_lease_num_adults_txt.Text); case_client.lease_start_date = Convert.ToDateTime(Update_lease_start_date_txt.Text); case_client.minor_children = Convert.ToInt32(Update_minor_children_txt.Text); case_client.monthly_rent_amt = Convert.ToDecimal(Update_monthly_rent_amt_txt.Text); case_client.Other_help_Sources = Update_Other_help_Sources_txt.Text; case_client.Other_help_Sources_memo = Update_Other_help_Sources_memo_txt.Text; case_client.prev_address_id = Convert.ToInt32(Update_prev_address_id_txt.Text); case_client.prev_residence_date = Convert.ToDateTime(Update_prev_residence_date_txt.Text); case_client.relationship_to_head_of_household = Update_relationship_to_head_of_household_txt.Text; case_client.rental_name = Update_rental_name_txt.Text; case_client.rental_phone = Update_rental_phone_txt.Text; case_client.sewage_amt_owed_today = Convert.ToDecimal(Update_sewage_amt_owed_today_txt.Text); case_client.telephone_amt_owed_today = Convert.ToDecimal(Update_telephone_amt_owed_today_txt.Text); case_client.trash_removal_amt_owed_today = Convert.ToDecimal(Update_trash_removal_amt_owed_today_txt.Text); case_client.us_status_memo = Update_us_status_memo_txt.Text; case_client.related_ll = Update_related_ll_txt.Text; case_client.relation_to_ll = Update_relation_to_ll_txt.Text; case_client.mtg_amt_owed_today = Convert.ToDecimal(Update_mtg_amt_owed_today_txt.Text); case_client.utilities_list = Update_utilities_list_txt.Text; case_client.water_amt_owed_today = Convert.ToDecimal(Update_water_amt_owed_today_txt.Text); case_client.public_asst_app_date = Convert.ToDateTime(Update_public_asst_app_date_txt.Text); case_client.util_allot_app_date = Convert.ToDateTime(Update_util_allot_app_date_txt.Text); case_client.util_allot_amt = Convert.ToDecimal(Update_util_allot_amt_txt.Text); case_client.utilities_incl = Update_utilities_incl_txt.Text; case_client.fd_stmps_app_date = Convert.ToDateTime(Update_fd_stmps_app_date_txt.Text); case_client.fd_stmps_amt = Convert.ToDecimal(Update_fd_stmps_amt_txt.Text); case_client.fd_Inc = Update_fd_Inc_txt.Text; case_client.afdc_app_date = Convert.ToDateTime(Update_afdc_app_date_txt.Text); case_client.afdc_amt = Convert.ToDecimal(Update_afdc_amt_txt.Text); case_client.afdc_Inc = Update_afdc_Inc_txt.Text; case_client.oth_trustee_app_date = Convert.ToDateTime(Update_oth_trustee_app_date_txt.Text); case_client.oth_trustee_amt = Convert.ToDecimal(Update_oth_trustee_amt_txt.Text); case_client.oth_trustee_Inc = Update_oth_trustee_Inc_txt.Text; case_client.ss_app_date = Convert.ToDateTime(Update_ss_app_date_txt.Text); case_client.ss_amt = Convert.ToDecimal(Update_ss_amt_txt.Text); case_client.ss_Inc = Update_ss_Inc_txt.Text; case_client.va_app_date = Convert.ToDateTime(Update_va_app_date_txt.Text); case_client.va_amt = Convert.ToDecimal(Update_va_amt_txt.Text); case_client.va_Inc = Update_va_Inc_txt.Text; case_client.eap_app_date = Convert.ToDateTime(Update_eap_app_date_txt.Text); case_client.eap_amt = Convert.ToDecimal(Update_eap_amt_txt.Text); case_client.eap_Inc = Update_eap_Inc_txt.Text; case_client.fema_app_date = Convert.ToDateTime(Update_fema_app_date_txt.Text); case_client.fema_amt = Convert.ToDecimal(Update_fema_amt_txt.Text); case_client.fema_Inc = Update_fema_Inc_txt.Text; case_client.unempl_app_date = Convert.ToDateTime(Update_unempl_app_date_txt.Text); case_client.unempl_amt = Convert.ToDecimal(Update_unempl_amt_txt.Text); case_client.unempl_Inc = Update_unempl_Inc_txt.Text; case_client.grants_loans_app_date = Convert.ToDateTime(Update_grants_loans_app_date_txt.Text); case_client.grants_loans_amt = Convert.ToDecimal(Update_grants_loans_amt_txt.Text); case_client.grants_Inc = Update_grants_Inc_txt.Text; case_client.other_app_date = Convert.ToDateTime(Update_other_app_date_txt.Text); case_client.other_amt = Convert.ToDecimal(Update_other_amt_txt.Text); case_client.other_Inc = Update_other_Inc_txt.Text; case_client.denial_memo = Update_denial_memo_txt.Text; case_client.welfr_fraud_memo = Update_welfr_fraud_memo_txt.Text; case_client.Client_issue_Desc = Update_Client_issue_Desc_txt.Text; case_client.Client_issue_resolved = Update_Client_issue_resolved_txt.Text; case_client.Client_issue_comments = Update_Client_issue_comments_txt.Text; case_client.Update(case_client); Insert_case_client_GridView.DataBind(); Update_case_client_GridView.DataBind(); Delete_case_client_GridView.DataBind(); return(case_client); }