private void butsave_Click(object sender, EventArgs e) { FormCustomerMaInvoiceAdd FCIA = new FormCustomerMaInvoiceAdd(); FCIA.type = "add"; FCIA.Cmsysid = Cmsysid; FCIA.customerfpmatFormChange += new FormCustomerMaInvoiceAdd.CustomerfpmatFormChange(init_fp); FCIA.ShowDialog(); init_fp(); }
private void button7_Click(object sender, EventArgs e) { if (dataGridView_CustomerMaInvoice.SelectedRows.Count > 0) { if (this.dataGridView_CustomerMaInvoice.SelectedRows[0].Cells["系统编号"].Value == null) { return; } string sysid = dataGridView_CustomerMaInvoice.SelectedRows[0].Cells["系统编号"].Value.ToString().Trim(); if (sysid == "") { return; } FormCustomerMaInvoiceAdd FCIA = new FormCustomerMaInvoiceAdd(); FCIA.customerfpmatFormChange += new FormCustomerMaInvoiceAdd.CustomerfpmatFormChange(init_fp); FCIA.type = "edit"; FCIA.Cmsysid = this.Cmsysid; FCIA.sysid = sysid; FCIA.ShowDialog(); init_fp(); } }