private void LoadClaim(int Index) { if (RecordChangeOK()) { _loading = true; _editMode = EditModes.Edit; _currentIndex = Index; claim toLoad = new claim(_claimsList[_currentIndex].id); _claimsList[_currentIndex] = toLoad; #region Field assignment // Services nmbClaimAmount.Value = toLoad.amount_of_claim; LoadProcedures(toLoad); // Insurance LoadInsurance(toLoad.LinkedCompany, toLoad.LinkedCompanyAddress); // Patient txtPatientName.Text = toLoad.PatientName; ctlPatientDOB.CurrentDate = toLoad.patient_dob; txtPatientSSN.Text = toLoad.patient_ssn; txtPatientAddress.Text = toLoad.patient_address; txtPatientAddress2.Text = toLoad.patient_address2; txtPatientCity.Text = toLoad.patient_city; txtPatientState.Text = toLoad.patient_state; txtPatientZIP.Text = toLoad.patient_zip; // Doctor txtDoctorName.Text = toLoad.DoctorName; txtDoctorTaxID.Text = toLoad.doctor_tax_number; txtDoctorLicenseID.Text = toLoad.doctor_license_number; txtDoctorBC.Text = toLoad.doctor_bcbs_number; txtDoctorPhone.Text = toLoad.doctor_phone_number_object.FormattedPhone; txtDoctorFax.Text = toLoad.doctor_fax_number_object.FormattedPhone; txtDoctorAddress.Text = toLoad.doctor_address; txtDoctorAddress2.Text = toLoad.doctor_address2; txtDoctorCity.Text = toLoad.doctor_city; txtDoctorState.Text = toLoad.doctor_state; txtDoctorZIP.Text = toLoad.doctor_zip; // Subscriber txtSubscriberName.Text = toLoad.SubscriberName; ctlSubscriberDOB.CurrentDate = toLoad.subscriber_dob; txtSubscriberID.Text = toLoad.subscriber_number; txtSubscriberAltID.Text = toLoad.subscriber_alternate_number; txtSubscriberSSN.Text = toLoad.subscriber_ssn; txtSubscriberGroupName.Text = toLoad.subscriber_group_name; txtSubscriberGroupNum.Text = toLoad.subscriber_group_number; txtSubscriberAddress.Text = toLoad.subscriber_address; txtSubscriberAddress2.Text = toLoad.subscriber_address2; txtSubscriberCity.Text = toLoad.subscriber_city; txtSubscriberState.Text = toLoad.subscriber_state; txtSubscriberZIP.Text = toLoad.subscriber_zip; // General ctlSentDate.CurrentDate = toLoad.sent_date; ctlResentDate.CurrentDate = toLoad.resent_date; ctlTracerDate.CurrentDate = toLoad.tracer_date; ctlOnHoldDate.CurrentDate = toLoad.on_hold_date; chkClosed.Checked = !System.Convert.ToBoolean(toLoad.open); // Notes txtNotes.Text = toLoad.notes; #endregion #region Handling Specific claim_batch cb = toLoad.LinkedBatch(); if (cb != null) { cmbHandling.Enabled = false; chkInBatch.Checked = true; ctlBatchDate.DateValue = cb.batch_date; cmbHandling.SelectedIndex = cmbHandling.FindStringExact(cb.handling); } else { cmbHandling.Enabled = true; chkInBatch.Checked = false; ctlBatchDate.Clear(); cmbHandling.SelectedIndex = cmbHandling.FindStringExact(toLoad.handling); } #endregion if (toLoad.revisit_date.HasValue) { ctlRevisitDate.CurrentDate = toLoad.revisit_date; } else { ctlRevisitDate.CurrentDate = DateTime.Now.AddDays(System.Convert.ToDouble(nmbRevisitInterval.Value)); } if (toLoad.LinkedChanges.Count > 0) { lnkViewClaimChangeHistory.Visible = true; } Text = toLoad.claim_type.ToString() + " claim for " + toLoad.PatientName; callManager.LoadClaim(toLoad); _changed = false; _loading = false; } }