private void NV_ThuTienToolStripMenuItem_Click(object sender, EventArgs e) { String idKhachHang = ""; FrmTraTruoc frmTraTruoc = new FrmTraTruoc(idKhachHang); frmTraTruoc.ShowDialog(this); }
private void panelThuTien_MouseClick(object sender, MouseEventArgs e) { String idKhachHang = ""; FrmTraTruoc frmTraTruoc = new FrmTraTruoc(idKhachHang); frmTraTruoc.ShowDialog(this); }
private void linkThuTien_Click(object sender, EventArgs e) { String idKhachHang = ""; FrmTraTruoc frmTraTruoc = new FrmTraTruoc(idKhachHang); frmTraTruoc.ShowDialog(this); }
/** * private void MenuItemCongno_Click(object sender, EventArgs e) * { * try * { * int rowSelected = listKhachHang.SelectedRows[0].Index; * String selectedId = listKhachHang.Rows[rowSelected].Cells["ID"].Value.ToString(); * using (var folderDialog = new FolderBrowserDialog()) * { * if (folderDialog.ShowDialog() == DialogResult.OK) * { * AppUtils.exportDept(selectedId, folderDialog.SelectedPath, "", ""); * MessageBox.Show("Đã hoàn thành export công nợ"); * } * } * } catch (Exception ex) * { * MessageBox.Show("ERROR: " + ex.Message); * } * } **/ private void MenuItemTraTruoc_Click(object sender, EventArgs e) { try { int rowSelected = listKhachHang.SelectedRows[0].Index; String selectedId = listKhachHang.Rows[rowSelected].Cells["ID"].Value.ToString(); FrmTraTruoc frm = new FrmTraTruoc(selectedId); frm.ShowDialog(this); btnSearch.PerformClick(); } catch (Exception ex) { MessageBox.Show("ERROR: " + ex.Message); } }