private void tsslsua_Click(object sender, EventArgs e) { try { frmXuLyPhieuXuatHuy a = new frmXuLyPhieuXuatHuy("Sua", dtgvxuathuyhanghoa.Rows[i]); a.ShowDialog(); } catch { } }
private void dtgvxuathuyhanghoa_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { i = e.RowIndex; try { if (i < 0) { return; } frmXuLyPhieuXuatHuy tmptc = new frmXuLyPhieuXuatHuy("Sua", dtgvxuathuyhanghoa.Rows[i]); tmptc.ShowDialog(); SelectData(); } catch { } }
/// <summary> /// Thêm mới /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void tsslblthemmoi_Click(object sender, EventArgs e) { if (!Common.Utilities.User.Administrator && !(new Common.Utilities().CheckQuyen(this.Name, 4))) { MessageBox.Show("Bạn không có quyền vào", "Hệ thống cảnh báo"); return; } for (int j = 0; j < 1000; j++) { if (frmXuLyPhieuXuatHuy.trave == "") { frmXuLyPhieuXuatHuy xhhh = new frmXuLyPhieuXuatHuy("Them"); xhhh.ShowDialog(); SelectData(); } else { frmXuLyPhieuXuatHuy.trave = ""; break; } } }
private void dtgvxuathuyhanghoa_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { i = e.RowIndex; try { if (i < 0) return; frmXuLyPhieuXuatHuy tmptc = new frmXuLyPhieuXuatHuy("Sua", dtgvxuathuyhanghoa.Rows[i]); tmptc.ShowDialog(); SelectData(); } catch { } }