Esempio n. 1
0
        private void loadTOModel()
        {
            obj = new MedicinegrpInfo();
            obj.GroupID = txtgrpid.Text;
            obj.GroupName = txtgrpname.Text;

            MedicinegrpInfoDAL bllObj = new MedicinegrpInfoDAL();
            bllObj.DeleteMedicinegrp(obj);

            MessageBox.Show("Data successfully Saved!");
            this.LoadMedicinegrp();



        }
Esempio n. 2
0
        private void btndelete_Click(object sender, EventArgs e)
        {
            this.LoadMedicinegrp();

            obj = new MedicinegrpInfo();
            obj.GroupID = txtgrpid.Text;
            obj.GroupName = txtgrpname.Text;

            MedicinegrpInfoDAL bllObj = new MedicinegrpInfoDAL();
            bllObj.DeleteMedicinegrp(obj);

            MessageBox.Show("Data successfully deleted!");
            this.LoadMedicinegrp();


        }
Esempio n. 3
0
 public void DeleteMedicinegrp(MedicinegrpInfo obj)
 {
     dalObj = new MedicinegrpInfoDAL();
     dalObj.DeleteMedicinegrp(obj);
 }
Esempio n. 4
0
 public void UpdateMedicinegrp(MedicinegrpInfo obj)
 {
     dalObj = new MedicinegrpInfoDAL();
     dalObj.UpdateMedicinegrp(obj);
 }
Esempio n. 5
0
 public void SaveMedicinegrp(MedicinegrpInfo obj)
 {
     dalObj = new MedicinegrpInfoDAL();
     dalObj.SaveMedicinegrp(obj);
 }