Exemplo n.º 1
0
 public void Donor_delete(int ID)
 {
     Donor.Delete(ID);
     Insert_Donor_GridView.DataBind();
     Update_Donor_GridView.DataBind();
     Delete_Donor_GridView.DataBind();
 }
Exemplo n.º 2
0
 public Donor Donor_insert()
 {
     Donor.PersonID  = Convert.ToInt32(Insert_PersonID_txt.Text);
     Donor.Status    = Insert_Status_txt.Text;
     Donor.DonorType = Insert_DonorType_txt.Text;
     Donor.AgencyID  = Convert.ToInt32(Insert_AgencyID_txt.Text);
     Donor.Phone     = Convert.ToInt32(Insert_Phone_txt.Text);
     Donor           = Donor.Insert(Donor);
     Insert_Donor_GridView.DataBind();
     Update_Donor_GridView.DataBind();
     Delete_Donor_GridView.DataBind();
     return(Donor);
 }
Exemplo n.º 3
0
 public Donor Donor_update(int ID)
 {
     Donor           = Donor.Select(ID);
     Donor.donor_id  = Convert.ToInt32(Update_donor_id_txt.Text);
     Donor.PersonID  = Convert.ToInt32(Update_PersonID_txt.Text);
     Donor.Status    = Update_Status_txt.Text;
     Donor.DonorType = Update_DonorType_txt.Text;
     Donor.AgencyID  = Convert.ToInt32(Update_AgencyID_txt.Text);
     Donor.Phone     = Convert.ToInt32(Update_Phone_txt.Text);
     Donor.Update(Donor);
     Insert_Donor_GridView.DataBind();
     Update_Donor_GridView.DataBind();
     Delete_Donor_GridView.DataBind();
     return(Donor);
 }