Example #1
0
 public Donor_Product Insert_Donor_Product_select(int ID)
 {
     Donor_Product                       = Donor_Product.Select(ID);
     Insert_DonorID_txt.Text             = Convert.ToString(Donor_Product.DonorID);
     Insert_ProductID_txt.Text           = Convert.ToString(Donor_Product.ProductID);
     Insert_quantity_txt.Text            = Convert.ToString(Donor_Product.quantity);
     Insert_other_info_txt.Text          = Convert.ToString(Donor_Product.other_info);
     Insert_Product_rec_date_txt.Text    = Convert.ToString(Donor_Product.Product_rec_date);
     Insert_AmountOfProdDonated_txt.Text = Convert.ToString(Donor_Product.AmountOfProdDonated);
     return(Donor_Product);
 }
 public Donor_Product Delete_Donor_Product_select(int ID)
 {
     Donor_Product = Donor_Product.Select(ID);
     Delete_DonorProductID_txt_lbl.Text = Convert.ToString(Donor_Product.DonorProductID);
     Delete_DonorID_txt_lbl.Text = Convert.ToString(Donor_Product.DonorID);
     Delete_ProductID_txt_lbl.Text = Convert.ToString(Donor_Product.ProductID);
     Delete_quantity_txt_lbl.Text = Convert.ToString(Donor_Product.quantity);
     Delete_other_info_txt_lbl.Text = Convert.ToString(Donor_Product.other_info);
     Delete_Product_rec_date_txt_lbl.Text = Convert.ToString(Donor_Product.Product_rec_date);
     Delete_AmountOfProdDonated_txt_lbl.Text = Convert.ToString(Donor_Product.AmountOfProdDonated);
     return Donor_Product;
 }
Example #3
0
 public Donor_Product Donor_Product_insert()
 {
     Donor_Product.DonorID             = Convert.ToInt32(Insert_DonorID_txt.Text);
     Donor_Product.ProductID           = Convert.ToInt32(Insert_ProductID_txt.Text);
     Donor_Product.quantity            = Convert.ToInt32(Insert_quantity_txt.Text);
     Donor_Product.other_info          = Insert_other_info_txt.Text;
     Donor_Product.Product_rec_date    = Convert.ToDateTime(Insert_Product_rec_date_txt.Text);
     Donor_Product.AmountOfProdDonated = Insert_AmountOfProdDonated_txt.Text;
     Donor_Product = Donor_Product.Insert(Donor_Product);
     Insert_Donor_Product_GridView.DataBind();
     Update_Donor_Product_GridView.DataBind();
     Delete_Donor_Product_GridView.DataBind();
     return(Donor_Product);
 }
 public Donor_Product Donor_Product_insert()
 {
     Donor_Product.DonorID = Convert.ToInt32(Insert_DonorID_txt.Text);
     Donor_Product.ProductID = Convert.ToInt32(Insert_ProductID_txt.Text);
     Donor_Product.quantity = Convert.ToInt32(Insert_quantity_txt.Text);
     Donor_Product.other_info = Insert_other_info_txt.Text;
     Donor_Product.Product_rec_date = Convert.ToDateTime(Insert_Product_rec_date_txt.Text);
     Donor_Product.AmountOfProdDonated = Insert_AmountOfProdDonated_txt.Text;
     Donor_Product = Donor_Product.Insert(Donor_Product);
     Insert_Donor_Product_GridView.DataBind();
     Update_Donor_Product_GridView.DataBind();
     Delete_Donor_Product_GridView.DataBind();
     return Donor_Product;
 }
Example #5
0
 public Donor_Product Donor_Product_update(int ID)
 {
     Donor_Product = Donor_Product.Select(ID);
     Donor_Product.DonorProductID      = Convert.ToInt32(Update_DonorProductID_txt.Text);
     Donor_Product.DonorID             = Convert.ToInt32(Update_DonorID_txt.Text);
     Donor_Product.ProductID           = Convert.ToInt32(Update_ProductID_txt.Text);
     Donor_Product.quantity            = Convert.ToInt32(Update_quantity_txt.Text);
     Donor_Product.other_info          = Update_other_info_txt.Text;
     Donor_Product.Product_rec_date    = Convert.ToDateTime(Update_Product_rec_date_txt.Text);
     Donor_Product.AmountOfProdDonated = Update_AmountOfProdDonated_txt.Text;
     Donor_Product.Update(Donor_Product);
     Insert_Donor_Product_GridView.DataBind();
     Update_Donor_Product_GridView.DataBind();
     Delete_Donor_Product_GridView.DataBind();
     return(Donor_Product);
 }
Example #6
0
 protected void INSERT(object sender, EventArgs e)
 {
     Donor_Product = Donor_Product_insert();
 }
Example #7
0
 protected void Insert_Select_Record(object sender, EventArgs e)
 {
     Donor_Product = Insert_Donor_Product_select(Convert.ToInt32(Insert_Donor_Product_GridView.SelectedValue));
 }
Example #8
0
 protected void UPDATE(object sender, EventArgs e)
 {
     Donor_Product = Donor_Product_update(Convert.ToInt32(Update_Donor_Product_GridView.SelectedValue));
 }
 public Donor_Product Donor_Product_update(int ID)
 {
     Donor_Product = Donor_Product.Select(ID);
     Donor_Product.DonorProductID = Convert.ToInt32(Update_DonorProductID_txt.Text);
     Donor_Product.DonorID = Convert.ToInt32(Update_DonorID_txt.Text);
     Donor_Product.ProductID = Convert.ToInt32(Update_ProductID_txt.Text);
     Donor_Product.quantity = Convert.ToInt32(Update_quantity_txt.Text);
     Donor_Product.other_info = Update_other_info_txt.Text;
     Donor_Product.Product_rec_date = Convert.ToDateTime(Update_Product_rec_date_txt.Text);
     Donor_Product.AmountOfProdDonated = Update_AmountOfProdDonated_txt.Text;
     Donor_Product.Update(Donor_Product);
     Insert_Donor_Product_GridView.DataBind();
     Update_Donor_Product_GridView.DataBind();
     Delete_Donor_Product_GridView.DataBind();
     return Donor_Product;
 }
 protected void Update_Select_Record(object sender, EventArgs e)
 {
     Donor_Product = Update_Donor_Product_select(Convert.ToInt32(Update_Donor_Product_GridView.SelectedValue));
 }
 protected void UPDATE(object sender, EventArgs e)
 {
     Donor_Product = Donor_Product_update(Convert.ToInt32(Update_Donor_Product_GridView.SelectedValue));
 }
 protected void INSERT(object sender, EventArgs e)
 {
     Donor_Product = Donor_Product_insert();
 }