private void simpleButtonOK_Click(object sender, System.EventArgs e) { DataRow r = GridView7.GetDataRow(GridView7.FocusedRowHandle); if (r != null) { ACMS.ACMSPOS2.FormGetService frm = new FormGetService(StrPackageCode); DialogResult result = frm.ShowDialog(this); if (result == DialogResult.OK) { decimal unitPrice = frm.BasePrice - PackageBaseUnitPrice; if (unitPrice < 0) { unitPrice = 0; } myPOS.NewReceiptEntry(frm.StrServiceCode, -1, "Top Up Single Treatment For Member Package : " + NPackageID.ToString(), 1, unitPrice, NPackageID.ToString()); this.Close(); } else { this.DialogResult = DialogResult.None; return; } } }
private void simpleButtonOK_Click(object sender, System.EventArgs e) { DataRow r = GridView7.GetDataRow(GridView7.FocusedRowHandle); if (r != null) { ACMS.ACMSPOS2.FormGetService frm = new FormGetService(StrPackageCode); DialogResult result = frm.ShowDialog(this); if (result == DialogResult.OK) { decimal unitPrice = frm.BasePrice - PackageBaseUnitPrice; if (unitPrice < 0) unitPrice = 0; myPOS.NewReceiptEntry(frm.StrServiceCode, -1, "Top Up Single Treatment For Member Package : " + NPackageID.ToString(), 1, unitPrice, NPackageID.ToString()); this.Close(); } else { this.DialogResult = DialogResult.None; return; } } }