// 点击“添加”报销明细按钮。 private void btnAddFpmx_Click(object sender, EventArgs e) { if (gvBXD_Not_ChargeUP.SelectedRows.Count > 0) { MRS.MRModule.InputInvoice invoice = new MRModule.InputInvoice(); invoice.InvoiceGetted += new MRModule.InvoiceGetEventHandler(AddInvoice_InvoiceGetted); invoice.ShowDialog(this); } else { MessageBox.Show("请选择报销单记录。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
// 点击“修改”报销明细按钮。 private void btnUpdateFpmx_Click(object sender, EventArgs e) { if (gvBXMX.SelectedRows.Count > 0) { int bxmxId = 0; bxmxId = (int)gvBXMX.SelectedRows[0].Cells["BXMXId"].Value; MRS.Model.BXMX bxmx = bllBXMX.GetBxmx_By_BxmxId(bxmxId); MRS.MRModule.InputInvoice invoice = new MRModule.InputInvoice(); invoice.InvoiceGetted += new MRModule.InvoiceGetEventHandler(invoice_InvoiceGetted); invoice.Bxmx = bxmx; invoice.ShowDialog(this); } }