/// <summary>消费结算</summary> private void cmnuPays_OK_Click(object sender, EventArgs e) { string strPayId = this.dgvPays.CurrentRow.Cells[0].Value.ToString(); frmPay_OK objfrmPaysOK = new frmPay_OK(strPayId); if (objfrmPaysOK.ShowDialog() == DialogResult.OK) { this.LoadPaysList(); } }
/// <summary>保存单据,结算</summary> private void btnOk_Click(object sender, EventArgs e) { string strPayId = this.Save_Click();//保存数据 if (strPayId != "") { frmPay_OK objfrmPayOK = new frmPay_OK(strPayId); objfrmPayOK.ShowDialog(); } DialogResult = DialogResult.OK; this.Close(); }