Ejemplo n.º 1
0
        private void btThemCV_CD_Click(object sender, EventArgs e)
        {
            if (txtMaCV_CD.Text == "" && txtTenCV_CD.Text == "")
            {
                MessageBox.Show("Khong co du lieu");
                return;
            }
            ChucVu cv = new ChucVu(txtMaCV_CD.Text, txtTenCV_CD.Text);

            try
            {
                cnb.AddChucVu(cv);
            }
            catch (Exception p)
            {
                MessageBox.Show(p.ToString());
            }
        }
Ejemplo n.º 2
0
        private void btThemCV_CD_Click(object sender, EventArgs e)
        {
            if (txtMaCV_CD.Text == "" && txtTenCV_CD.Text == "")
            {
                MessageBox.Show("Không có dữ liệu để thêm", "Thông báo");
                return;
            }
            ChucVu cv = new ChucVu(txtMaCV_CD.Text, txtTenCV_CD.Text);

            try
            {
                cnb.AddChucVu(cv);
                LoadCVu();
            }
            catch (Exception p)
            {
                MessageBox.Show(p.ToString());
            }
        }