private void butAdd_Click(object sender, EventArgs e) { if (!Security.IsAuthorized(Permissions.InsPayCreate)) //date not checked here, but it will be checked when saving the check to prevent backdating { return; } ClaimPayment claimPayment = new ClaimPayment(); claimPayment.CheckDate = DateTime.Now; claimPayment.IsPartial = true; FormClaimPayEdit FormCPE = new FormClaimPayEdit(claimPayment); FormCPE.IsNew = true; FormCPE.ShowDialog(); if (FormCPE.DialogResult != DialogResult.OK) { return; } FormClaimPayBatch FormCPB = new FormClaimPayBatch(claimPayment); //FormCPB.IsFromClaim=IsFromClaim; FormCPB.ShowDialog(); if (FormCPB.GotoClaimNum != 0) { GotoClaimNum = FormCPB.GotoClaimNum; GotoPatNum = FormCPB.GotoPatNum; Close(); } else { FillGrid(); } }
private void gridMain_CellDoubleClick(object sender, ODGridClickEventArgs e) { if (!Security.IsAuthorized(Permissions.InsPayCreate)) { return; } FormClaimPayBatch FormCPBEdit = new FormClaimPayBatch(ListClaimPay[gridMain.GetSelectedIndex()]); FormCPBEdit.Show(); FormCPBEdit.FormClosed += FormCPBEdit_FormClosed; }
/// <summary>Opens the selected insurance payment.</summary> private void openEOBToolStripMenuItem_Click(object sender, EventArgs e) { if (!Security.IsAuthorized(Permissions.InsPayCreate)) { return; } RpUnfinalizedInsPay.UnfinalizedInsPay unfinalPay = (RpUnfinalizedInsPay.UnfinalizedInsPay)gridMain.Rows[gridMain.SelectedIndices[0]].Tag; if (unfinalPay.ClaimPaymentCur == null) { MsgBox.Show(this, "This claim payment has been deleted."); return; } FormClaimPayBatch FormCPB = new FormClaimPayBatch(unfinalPay.ClaimPaymentCur); FormCPB.ShowDialog(); LoadData(); FillGrid(); }
private void FormCPBEdit_FormClosed(object sender, FormClosedEventArgs e) { if (IsDisposed) //Auto-Logoff was causing an unhandled exception below. Can't use dialogue result check here because we want to referesh the grid below even if user clicked cancel. { return; //Don't refresh the grid, as the form is already disposed. } FormClaimPayBatch FormCPBEdit = (FormClaimPayBatch)sender; if (FormCPBEdit.GotoClaimNum != 0) { GotoClaimNum = FormCPBEdit.GotoClaimNum; GotoPatNum = FormCPBEdit.GotoPatNum; Close(); } else { FillGrid(); } }
private void gridMain_CellDoubleClick(object sender, ODGridClickEventArgs e) { if (!Security.IsAuthorized(Permissions.InsPayCreate)) { return; } FormClaimPayBatch FormCPB = new FormClaimPayBatch(ListClaimPay[gridMain.GetSelectedIndex()]); //FormCPB.IsFromClaim=IsFromClaim; FormCPB.ShowDialog(); if (FormCPB.GotoClaimNum != 0) { GotoClaimNum = FormCPB.GotoClaimNum; GotoPatNum = FormCPB.GotoPatNum; Close(); } else { FillGrid(); } }
private void butAdd_Click(object sender, EventArgs e) { if (!Security.IsAuthorized(Permissions.InsPayCreate)) //date not checked here, but it will be checked when saving the check to prevent backdating { return; } ClaimPayment claimPayment = new ClaimPayment(); claimPayment.CheckDate = DateTime.Now; claimPayment.IsPartial = true; FormClaimPayEdit FormCPE = new FormClaimPayEdit(claimPayment); FormCPE.IsNew = true; FormCPE.ShowDialog(); if (FormCPE.DialogResult != DialogResult.OK) { return; } FormClaimPayBatch FormCPB = new FormClaimPayBatch(claimPayment, true); FormCPB.Show(); FormCPB.FormClosed += FormCPB_FormClosed; }