private void btn_QuanLyNCC_Click(object sender, EventArgs e)
        {
            FrmQuanLyNCC fr = new FrmQuanLyNCC();

            if (KiemTraChucVuCuaNV() == "NHÂN VIÊN")
            {
                fr.chichoxem = true;
            }
            fr.ShowDialog();
        }
Esempio n. 2
0
 private void btnThemNCC_Click(object sender, EventArgs e)
 {
     try
     {
         FrmQuanLyNCC fr = new FrmQuanLyNCC();
         fr.ShowDialog();
         da = new SqlDataAdapter("select * from NHACUNGCAP", conn);
         ds.Tables[0].Clear();
         da.Fill(ds, "NHACUNGCAP");
         cbbTenNCC.DataSource    = ds.Tables[0];
         cbbTenNCC.DisplayMember = "TEN_NCC";
         cbbTenNCC.ValueMember   = "MA_NCC";
         if (ds.Tables[0].Rows.Count != 0)
         {
             cbbTenNCC.SelectedItem = cbbTenNCC.Items[0];
         }
         showDataToCombobox_MA_TB();
     }
     catch { }
 }
Esempio n. 3
0
        private void btnThemNCC_Click(object sender, EventArgs e)
        {
            FrmQuanLyNCC fr = new FrmQuanLyNCC();

            fr.ShowDialog();
        }