Exemplo n.º 1
0
 public void income_source_delete(int ID)
 {
     income_source.Delete(ID);
     Insert_income_source_GridView.DataBind();
     Update_income_source_GridView.DataBind();
     Delete_income_source_GridView.DataBind();
 }
Exemplo n.º 2
0
 public income_source income_source_update(int ID)
 {
     income_source = income_source.Select(ID);
     income_source.income_source_id  = Convert.ToInt32(Update_income_source_id_txt.Text);
     income_source.case_id           = Convert.ToInt32(Update_case_id_txt.Text);
     income_source.cash_amt          = Convert.ToDecimal(Update_cash_amt_txt.Text);
     income_source.cash_on_hand      = Update_cash_on_hand_txt.Text;
     income_source.wages_stopped     = Update_wages_stopped_txt.Text;
     income_source.waiting_on_income = Update_waiting_on_income_txt.Text;
     income_source.recieving_income  = Update_recieving_income_txt.Text;
     income_source.no_income         = Update_no_income_txt.Text;
     income_source.currently_working = Update_currently_working_txt.Text;
     income_source.laid_off          = Update_laid_off_txt.Text;
     income_source.never_worked      = Update_never_worked_txt.Text;
     income_source.quit                = Update_quit_txt.Text;
     income_source.fired               = Update_fired_txt.Text;
     income_source.sick_leave          = Update_sick_leave_txt.Text;
     income_source.maternity_leave     = Update_maternity_leave_txt.Text;
     income_source.on_strike           = Update_on_strike_txt.Text;
     income_source.trying_to_find_work = Update_trying_to_find_work_txt.Text;
     income_source.ckg_acct            = Update_ckg_acct_txt.Text;
     income_source.ckg_balance         = Convert.ToDecimal(Update_ckg_balance_txt.Text);
     income_source.ckg_bank            = Update_ckg_bank_txt.Text;
     income_source.claims              = Update_claims_txt.Text;
     income_source.claims_memo         = Update_claims_memo_txt.Text;
     income_source.client_id           = Convert.ToInt32(Update_client_id_txt.Text);
     income_source.gifts_amt           = Convert.ToDecimal(Update_gifts_amt_txt.Text);
     income_source.gifts_inc           = Update_gifts_inc_txt.Text;
     income_source.investments         = Update_investments_txt.Text;
     income_source.life_ins            = Update_life_ins_txt.Text;
     income_source.other_ins           = Update_other_ins_txt.Text;
     income_source.pension_amt         = Convert.ToDecimal(Update_pension_amt_txt.Text);
     income_source.pension_inc         = Update_pension_inc_txt.Text;
     income_source.strike_benefits_amt = Convert.ToDecimal(Update_strike_benefits_amt_txt.Text);
     income_source.strike_benefits_inc = Update_strike_benefits_inc_txt.Text;
     income_source.support_amt         = Convert.ToDecimal(Update_support_amt_txt.Text);
     income_source.support_inc         = Update_support_inc_txt.Text;
     income_source.SSI_Amt             = Convert.ToDecimal(Update_SSI_Amt_txt.Text);
     income_source.SSI_Inc             = Update_SSI_Inc_txt.Text;
     income_source.svgs_acct           = Update_svgs_acct_txt.Text;
     income_source.svgs_balance        = Convert.ToDecimal(Update_svgs_balance_txt.Text);
     income_source.svgs_bank           = Update_svgs_bank_txt.Text;
     income_source.wages_amt           = Convert.ToDecimal(Update_wages_amt_txt.Text);
     income_source.wages_inc           = Update_wages_inc_txt.Text;
     income_source.Update(income_source);
     Insert_income_source_GridView.DataBind();
     Update_income_source_GridView.DataBind();
     Delete_income_source_GridView.DataBind();
     return(income_source);
 }