/// <summary> /// 核销 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnVerificate_Click(object sender, EventArgs e) { if (!this.dgvReceipt_Det.Columns.Contains("单据号")) { return; } if (this.dgvReceipt_Det.SelectedRows.Count <= 0 || this.dgvReceipt_Det.SelectedRows[0].Cells["单据号"].Value == null) { return; } string receiptId = this.dgvReceipt_Det.SelectedRows[0].Cells["单据号"].Value.ToString().Trim(); VerificateConfigForm form = new VerificateConfigForm(this.mainForm, receiptId); form.dataGridview = Util.CopyNewDataGridViewSelectedRows(this.dgvReceipt_Det); form.ShowDialog(); }
/// <summary> /// 核销 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnVerificate_Click(object sender, EventArgs e) { if (!this.dgvReceipt_Det.Columns.Contains("单据号")) return; if (this.dgvReceipt_Det.SelectedRows.Count <= 0 || this.dgvReceipt_Det.SelectedRows[0].Cells["单据号"].Value == null) return; string receiptId = this.dgvReceipt_Det.SelectedRows[0].Cells["单据号"].Value.ToString().Trim(); VerificateConfigForm form = new VerificateConfigForm(this.mainForm, receiptId); form.dataGridview = Util.CopyNewDataGridViewSelectedRows(this.dgvReceipt_Det); form.ShowDialog(); }