Beispiel #1
0
        public formPKB()
        {
            InitializeComponent();
            QuanLyThuoc qlT = new QuanLyThuoc();

            //comboBox1.DataSource = qlT.loadListToSelect();
        }
Beispiel #2
0
        private void btnQLT_Sua_Click(object sender, EventArgs e)
        {
            QuanLyThuoc qlT = new QuanLyThuoc();
            Thuoc       t   = new Thuoc();

            t.themThuoc(010, textBoxQLT_TenThuoc.Text.ToString(), int.Parse(textBoxQLT_DonViTinh.Text.ToString()), int.Parse(textBoxQLT_DonViTinh.Text.ToString()), int.Parse(textBoxQLT_DonGia.Text.ToString()), 0);
            qlT.editMedicine(t);
        }
Beispiel #3
0
        public formMain()
        {
            InitializeComponent();
            QuanLyThuoc qlT = new QuanLyThuoc();
            DataTable   dt  = new DataTable();

            dt = qlT.LoadListAvailable();
            dataDSThuoc.DataSource = dt;
        }
Beispiel #4
0
        private void btnQLT_Xoa_Click(object sender, EventArgs e)
        {
            QuanLyThuoc qlT = new QuanLyThuoc();

            qlT.deleteMedicine(textBoxQLT_TenThuoc.Text.ToString());
        }