private void butFeeSched_Click(object sender,EventArgs e) { //No need to check security because we are launching the form in selection mode. FormFeeScheds FormFS=new FormFeeScheds(true); FormFS.SelectedFeeSchedNum=(_feeSchedCur==null ? 0 : _feeSchedCur.FeeSchedNum); if(FormFS.ShowDialog()==DialogResult.OK) { _feeSchedCur=FeeScheds.GetFirst(x => x.FeeSchedNum==FormFS.SelectedFeeSchedNum); textFeeSched.Text=_feeSchedCur.Description; } }
private void butFeeSched_Click(object sender, EventArgs e) { //No need to check security because we are launching the form in selection mode. FormFeeScheds FormFS = new FormFeeScheds(true); FormFS.SelectedFeeSchedNum = (_feeSchedCur == null ? 0 : _feeSchedCur.FeeSchedNum); if (FormFS.ShowDialog() != DialogResult.OK) { return; } _feeSchedCur = FeeScheds.GetFirstOrDefault(x => x.FeeSchedNum == FormFS.SelectedFeeSchedNum, true); //Hidden FeeSched are invalid selections. textFeeSched.Text = (_feeSchedCur?.Description ?? ""); //Null check on OK click will force the user to make a FeeSched selection if null. }
private void menuItemFeeScheds_Click(object sender,EventArgs e) { if(!Security.IsAuthorized(Permissions.Setup)){ return; } FormFeeScheds FormF=new FormFeeScheds(); FormF.ShowDialog(); SecurityLogs.MakeLogEntry(Permissions.Setup,0,"Fee Schedules"); }
private void butEditFeeSched_Click(object sender, System.EventArgs e) { //won't even be visible if no permission long selectedSched=0; if(listFeeSched.SelectedIndex !=-1){ selectedSched=FeeSchedC.ListShort[listFeeSched.SelectedIndex].FeeSchedNum; } FormFeeScheds FormF=new FormFeeScheds(); FormF.ShowDialog(); DataValid.SetInvalid(InvalidType.FeeScheds, InvalidType.Fees,InvalidType.ProcCodes); //Fees.Refresh(); //ProcedureCodes.RefreshCache(); changed=true; FillFeeSchedules(); for(int i=0;i<FeeSchedC.ListShort.Count;i++){ if(FeeSchedC.ListShort[i].FeeSchedNum==selectedSched){ listFeeSched.SelectedIndex=i; } } FillGrid(); SecurityLogs.MakeLogEntry(Permissions.Setup,0,"Fee Schedules"); //FillGrid();//will be done automatically because of lines above }