private void DoCategoryTypeSearch() { if (this.m_CategorySearchType == "Recent Cases") { MethodResult methodResult = BillingLogCollection.GetByRecentPostedCases(); if (methodResult.Success == true) { this.m_BillingLogCollection = (BillingLogCollection)methodResult.Result; this.NotifyPropertyChanged(string.Empty); } else { methodResult.ShowMethodResult(); } } }
private void DoCategoryTypeSearch() { if (this.m_CategorySearchType == "Not Acknowledged") { MethodResult methodResult = DistributionLogCollection.GetByNotAcknowledged(); if (methodResult.Success == true) { this.m_DistributionLog = (DistributionLogCollection)methodResult.Result; this.NotifyPropertyChanged(string.Empty); } else { methodResult.ShowMethodResult(); } } else if (this.m_CategorySearchType == "Recent Cases") { MethodResult methodResult = DistributionLogCollection.GetByRecentCases(); if (methodResult.Success == true) { this.m_DistributionLog = (DistributionLogCollection)methodResult.Result; this.NotifyPropertyChanged(string.Empty); } else { methodResult.ShowMethodResult(); } } else if (this.m_CategorySearchType == "Detected COVID Cases") { MethodResult methodResult = DistributionLogCollection.GetByDetectedCOVIDCases(); if (methodResult.Success == true) { this.m_DistributionLog = (DistributionLogCollection)methodResult.Result; this.NotifyPropertyChanged(string.Empty); } else { methodResult.ShowMethodResult(); } } }
private void DoDateOfBirthSearch() { if (this.m_DateOfBirthSearch.HasValue == true) { MethodResult methodResult = BillingLogCollection.GetByDateOfBirth(this.m_DateOfBirthSearch.Value); if (methodResult.Success == true) { this.m_BillingLogCollection = (BillingLogCollection)methodResult.Result; this.NotifyPropertyChanged(string.Empty); } else { methodResult.ShowMethodResult(); } } else { MessageBox.Show("Please enter a valid Date Of Birth."); } }
private void DoPatientNameSearch() { PatientName patientName = null; bool result = PatientName.TryParse(this.m_PatientNameSearch, out patientName); if (result) { MethodResult methodResult = BillingLogCollection.GetByPatientName(patientName); if (methodResult.Success == true) { this.m_BillingLogCollection = (BillingLogCollection)methodResult.Result; this.NotifyPropertyChanged(string.Empty); } else { methodResult.ShowMethodResult(); } } else { MessageBox.Show("Must have at least 2 characters for a patient name search."); } }