Beispiel #1
0
 public void medicine_delete(int ID)
 {
     medicine.Delete(ID);
     Insert_medicine_GridView.DataBind();
     Update_medicine_GridView.DataBind();
     Delete_medicine_GridView.DataBind();
 }
Beispiel #2
0
 public medicine medicine_insert()
 {
     medicine.Medication_type = Insert_Medication_type_txt.Text;
     medicine.Medication_name = Insert_Medication_name_txt.Text;
     medicine.Clients_Served  = Convert.ToInt32(Insert_Clients_Served_txt.Text);
     medicine = medicine.Insert(medicine);
     Insert_medicine_GridView.DataBind();
     Update_medicine_GridView.DataBind();
     Delete_medicine_GridView.DataBind();
     return(medicine);
 }
Beispiel #3
0
 public medicine medicine_update(int ID)
 {
     medicine                 = medicine.Select(ID);
     medicine.Medicine_Id     = Convert.ToInt32(Update_Medicine_Id_txt.Text);
     medicine.Medication_type = Update_Medication_type_txt.Text;
     medicine.Medication_name = Update_Medication_name_txt.Text;
     medicine.Clients_Served  = Convert.ToInt32(Update_Clients_Served_txt.Text);
     medicine.Update(medicine);
     Insert_medicine_GridView.DataBind();
     Update_medicine_GridView.DataBind();
     Delete_medicine_GridView.DataBind();
     return(medicine);
 }