private void butRecall_Click(object sender, System.EventArgs e) { Procedure[] procList = Procedures.Refresh(PatCur.PatNum); Recall[] recallList = Recalls.GetList(new int[] { PatCur.PatNum }); //get the recall for this pt if (recallList.Length == 0) { MsgBox.Show(this, "This patient does not have any recall due."); return; } Recall recallCur = recallList[0]; InsPlan[] planList = InsPlans.Refresh(FamCur); Appointment apt = Appointments.CreateRecallApt(PatCur, procList, recallCur, planList); AptSelected = apt.AptNum; oResult = OtherResult.PinboardAndSearch; if (recallCur.DateDue < DateTime.Today) { DateJumpToString = DateTime.Today.ToShortDateString(); //they are overdue } else { DateJumpToString = recallCur.DateDue.ToShortDateString(); } DialogResult = DialogResult.OK; }
private void butPin_Click(object sender, System.EventArgs e) { SaveRecall(); PinClicked = true; Appointment apt = Appointments.CreateRecallApt(PatCur, ProcList, RecallCur, PlanList); AptSelected = apt.AptNum; DialogResult = DialogResult.OK; }
/// <summary>Creates appointment and appropriate procedures, and places data in ContrAppt.CurInfo so it will display on pinboard.</summary> private void CreateCurInfo() { ContrAppt.CurInfo = new InfoApt(); Appointment AptCur = Appointments.CreateRecallApt(PatCur, ProcList, RecallCur, PlanList); ContrAppt.CurInfo.MyApt = AptCur.Copy(); Procedure[] procs = Procedures.GetProcsForSingle(AptCur.AptNum, false); ContrAppt.CurInfo.Procs = procs; ContrAppt.CurInfo.Production = Procedures.GetProductionOneApt(AptCur.AptNum, procs, false); ContrAppt.CurInfo.MyPatient = PatCur; }