Exemplo n.º 1
0
        public void DeleteDosage(DosageInfo obj)
        {
            string Qry = "DELETE FROM DosageForm WHERE DosageID='" + obj.DosageId + "'";


            DbUtility.ExecuteQuery(Qry);
        }
Exemplo n.º 2
0
        public void UpdateDosage(DosageInfo obj)
        {
            string Qry = "update DosageForm set DosageName='" + obj.DosageName + "',DosageId='" + obj.DosageId + "'where DosageID='" + obj.DosageId + "'";


            DbUtility.ExecuteQuery(Qry);
        }
Exemplo n.º 3
0
 private void btndelete_Click(object sender, EventArgs e)
 {
     obj = new DosageInfo();
     obj.DosageId = txtdosageid.Text;
     obj.DosageName = txtdosagename.Text;
     DosageBLL bllObj = new DosageBLL();
     bllObj.DeleteDosage(obj);
     MessageBox.Show("Data Deleted Successfully");
     this.LoadDosage();
 }
Exemplo n.º 4
0
        private void loadTOModel()
        {
            this.LoadDosage();
            obj = new DosageInfo();
            obj.DosageId = txtdosageid.Text;
            obj.DosageName = txtdosagename.Text;

            DosageBLL bllObj=new DosageBLL();
            bllObj.SaveDosage(obj);

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



        }
Exemplo n.º 5
0
 public void DeleteDosage(DosageInfo obj)
 {
     dalObj = new DosageDAL();
     dalObj.DeleteDosage(obj);
 }
Exemplo n.º 6
0
 public void UpdateDosage(DosageInfo obj)
 {
     dalObj = new DosageDAL();
     dalObj.UpdateDosage(obj);
 }
Exemplo n.º 7
0
 public void SaveDosage(DosageInfo obj)
 {
     dalObj = new DosageDAL();
     dalObj.SaveDosage(obj);
 }
Exemplo n.º 8
0
 public void SaveDosage(DosageInfo obj)
 {
     string Qry = "INSERT INTO [CureDB].[dbo].[DosageForm]([DosageID],[DosageName])VALUES('" + obj.DosageId + "','" + obj.DosageName + "') ";
     DbUtility.ExecuteQuery(Qry);
 }