Пример #1
0
 public void lot_delete(int ID)
 {
     lot.Delete(ID);
     Insert_lot_GridView.DataBind();
     Update_lot_GridView.DataBind();
     Delete_lot_GridView.DataBind();
 }
Пример #2
0
 public lot lot_insert()
 {
     lot.product_id        = Convert.ToInt32(Insert_product_id_txt.Text);
     lot.manufactured_date = Convert.ToDateTime(Insert_manufactured_date_txt.Text);
     lot.expiration_date   = Convert.ToDateTime(Insert_expiration_date_txt.Text);
     lot.manufacture_name  = Insert_manufacture_name_txt.Text;
     lot = lot.Insert(lot);
     Insert_lot_GridView.DataBind();
     Update_lot_GridView.DataBind();
     Delete_lot_GridView.DataBind();
     return(lot);
 }
Пример #3
0
 public lot lot_update(int ID)
 {
     lot                   = lot.Select(ID);
     lot.lot_id            = Convert.ToInt32(Update_lot_id_txt.Text);
     lot.product_id        = Convert.ToInt32(Update_product_id_txt.Text);
     lot.manufactured_date = Convert.ToDateTime(Update_manufactured_date_txt.Text);
     lot.expiration_date   = Convert.ToDateTime(Update_expiration_date_txt.Text);
     lot.manufacture_name  = Update_manufacture_name_txt.Text;
     lot.Update(lot);
     Insert_lot_GridView.DataBind();
     Update_lot_GridView.DataBind();
     Delete_lot_GridView.DataBind();
     return(lot);
 }