private void xrTableCell15_PreviewClick(object sender, PreviewMouseEventArgs e) { baocaocongno131 bccn = new baocaocongno131(); for (int i = 0; i < dt1.Rows.Count; i++) { if (dt1.Rows[i][1].ToString() == e.Brick.Text) { DialogResult dr = XtraMessageBox.Show("Nhấn 'Yes' bảng kê tổng hợp, 'No' để in bảng kê phát sinh, 'Cancel' để in biên bản xác nhận vỏ.", "Thông báo", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1); if (dr == DialogResult.Yes) { if (tsbt1 == "tsbtbccnvkh" || tsbt1 == "tsbtbccnvncc") { bccn.loadbccnvotndn(tungay1, denngay1, tsbt1, kho1, dt1.Rows[i][0].ToString()); } else if (tsbt1 == "tsbtbccnvkhth" || tsbt1 == "tsbtbccnvnccth" || tsbt1 == "tsbtbccnvkhtk") { bccn.loadbccnvotndn(tungay1, denngay1, tsbt1, kho1, dt1.Rows[i][1].ToString()); } } else if (dr == DialogResult.No) { if (tsbt1 == "tsbtbccnvkh" || tsbt1 == "tsbtbccnvncc") { bccn.loadbccnvotndnphatsinh(tungay1, denngay1, tsbt1, kho1, dt1.Rows[i][0].ToString()); } else if (tsbt1 == "tsbtbccnvkhth" || tsbt1 == "tsbtbccnvkhtk" || tsbt1 == "tsbtbccnvnccth") { bccn.loadbccnvotndnphatsinh(tungay1, denngay1, tsbt1, kho1, dt1.Rows[i][1].ToString()); } } else if (dr == DialogResult.Cancel) { if (tsbt1 == "tsbtbccnvkhth") { bccn.loadbccnvotndn(tungay1, denngay1, tsbt1 + "bbxn", kho1, dt1.Rows[i][1].ToString()); } } return; } } }
private void xrTableCell25_PreviewClick(object sender, PreviewMouseEventArgs e) { baocaocongno131 bccn = new baocaocongno131(); bccn.loadbccnvotndnphatsinh(tungay1, denngay1, "tsbtbccnvkhthphieu", kho1, e.Brick.Text); }