Ejemplo n.º 1
0
        private void toolStripStatus_Sua_Click(object sender, EventArgs e)
        {
            if (!frmDangNhap.User.Administrator && !CheckQuyen(this.Name, 2))
            {
                MessageBox.Show("Bạn Không có quyền vào chức năng này.");
                return;
            }
            frmXuly_NhomTKKeToan fr = new frmXuly_NhomTKKeToan("Sua", dataGridView1.CurrentRow);

            fr.StartPosition = FormStartPosition.CenterScreen;
            fr.ShowDialog();
            hienthi();
        }
Ejemplo n.º 2
0
 private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex > -1)
     {
         if (!frmDangNhap.User.Administrator && !CheckQuyen(this.Name, 2))
         {
             MessageBox.Show("Bạn Không có quyền vào chức năng này.");
             return;
         }
         frmXuly_NhomTKKeToan fr = new frmXuly_NhomTKKeToan("Sua", dataGridView1.Rows[e.RowIndex]);
         fr.StartPosition = FormStartPosition.CenterScreen;
         fr.ShowDialog();
         hienthi();
     }
 }
 private void toolStripStatus_ThemMoi_Click(object sender, EventArgs e)
 {
     KiemTra = "insert";
     if (!frmDangNhap.User.Administrator && !CheckQuyen(this.Name, 4))
     {
         MessageBox.Show("Bạn Không có quyền vào chức năng này.");
         return;
     }
     while (KiemTra == "insert")
     {
         frmXuly_NhomTKKeToan fr = new frmXuly_NhomTKKeToan("Them", dataGridView1.CurrentRow);
         fr.StartPosition = FormStartPosition.CenterScreen;
         fr.ShowDialog();
         hienthi();
     }
 }
 private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex > -1)
     {
         if (!frmDangNhap.User.Administrator && !CheckQuyen(this.Name, 2))
         {
             MessageBox.Show("Bạn Không có quyền vào chức năng này.");
             return;
         }
         frmXuly_NhomTKKeToan fr = new frmXuly_NhomTKKeToan("Sua", dataGridView1.Rows[e.RowIndex]);
         fr.StartPosition = FormStartPosition.CenterScreen;
         fr.ShowDialog();
         hienthi();
     }
 }