private void butAttachProc_Click(object sender, System.EventArgs e) { FormProcSelect formPS = new FormProcSelect(_adjustmentCur.PatNum, false); formPS.ShowDialog(); if (formPS.DialogResult != DialogResult.OK) { return; } if (OrthoProcLinks.IsProcLinked(formPS.ListSelectedProcs[0].ProcNum)) { MsgBox.Show(this, "Adjustments cannot be attached to a procedure that is linked to an ortho case."); return; } if (PrefC.GetInt(PrefName.RigorousAdjustments) < 2) //Enforce Linking //_selectedProvNum=FormPS.ListSelectedProcs[0].ProvNum; { comboClinic.SelectedClinicNum = formPS.ListSelectedProcs[0].ClinicNum; comboProv.SetSelectedProvNum(formPS.ListSelectedProcs[0].ProvNum); if (PrefC.GetInt(PrefName.RigorousAdjustments) == (int)RigorousAdjustments.EnforceFully && !_isEditAnyway) { if (Security.IsAuthorized(Permissions.Setup, true)) { labelEditAnyway.Visible = true; butEditAnyway.Visible = true; } comboProv.Enabled = false; //Don't allow changing if enforce fully butPickProv.Enabled = false; comboClinic.Enabled = false; //this is a separate issue from the internal edit blocking for comboClinic with no permission for a clinic } } _adjustmentCur.ProcNum = formPS.ListSelectedProcs[0].ProcNum; FillProcedure(); textProcDate.Text = formPS.ListSelectedProcs[0].ProcDate.ToShortDateString(); }
private void butAttach_Click(object sender, System.EventArgs e) { FormProcSelect FormPS = new FormProcSelect(PaySplitCur.PatNum); FormPS.ShowDialog(); if (FormPS.DialogResult != DialogResult.OK) { return; } PaySplitCur.ProcNum = FormPS.SelectedProcNum; FillProcedure(); }
private void butPreviousProc_Click(object sender, EventArgs e) { FormProcSelect FormPS = new FormProcSelect(_patCur.PatNum, false); if (FormPS.ShowDialog() != DialogResult.OK) { return; } //isMultiSelect is set to false so should only ever be one procedure, constructing in a way to handle multiple in case we ever want to change //isMultiSelect to be true. foreach (Procedure proc in FormPS.ListSelectedProcs) { //Use our list of ProcedureCodes so irrelevant codes result in a new ProcedureCode with blank values. ProcedureCode procCode = ProcedureCodes.GetProcCode(proc.CodeNum, _listPrePaySupportCodes); //Didn't exist in our list of ProcedureCodes, tell user it won't be added. if (procCode.CodeNum == 0) { //Did not translate because HQ only. MsgBox.Show(this, "Selected procedure cannot be used with the Prepayment Tool."); continue; } ProcedureCharge procCharge = new ProcedureCharge(procCode, proc.ProcFee); Adjustment taxAdjustment = Adjustments.GetSalesTaxForProc(proc.ProcNum); if (taxAdjustment != null) { procCharge.EstTax = taxAdjustment.AdjAmt; procCharge.HasTaxAdjustment = true; } else { procCharge.EstTax = 0; } procCharge.Calc(); _listPreviouslyCompProcedureCharges.Add(procCharge); _listCompletedProcs.Add(proc); } //This calls FillGridCompletedProcs() FillGridPrepayment(); }
private void butAttach_Click(object sender, System.EventArgs e) { FormProcSelect FormPS=new FormProcSelect(PaySplitCur.PatNum); FormPS.ShowDialog(); if(FormPS.DialogResult!=DialogResult.OK){ return; } PaySplitCur.ProcNum=FormPS.SelectedProcNum; FillProcedure(); }