/// <summary> /// Function called to search the model /// for availability of the specified string. /// </summary> /// <param name="str">The search string</param> /// <returns>True, if the string is contained in the model, else false</returns> public override bool Contains(string str) { return((ContractNumber != null && ContractNumber.StartsWith(str, StringComparison.CurrentCultureIgnoreCase)) || (CustomerNameAndShortName != null && CustomerNameAndShortName.StartsWith(str, StringComparison.CurrentCultureIgnoreCase)) || (DivisionName != null && DivisionName.StartsWith(str, StringComparison.CurrentCultureIgnoreCase)) || (POReferenceNumber != null && POReferenceNumber.StartsWith(str, StringComparison.CurrentCultureIgnoreCase)) || (EndUser != null && EndUser.StartsWith(str, StringComparison.CurrentCultureIgnoreCase))); }
/// <summary> /// Function called to search the model for availability of the specified string. /// </summary> /// <param name="str">The search string</param> /// <returns>True, if the string is contained in the model, else false</returns> public override bool Contains(string str) { return((ContractNumber != null && ContractNumber.StartsWith(str, StringComparison.CurrentCultureIgnoreCase)) || (InvoiceCustomer != null && InvoiceCustomer.StartsWith(str, StringComparison.CurrentCultureIgnoreCase)) || (CompanyName != null && CompanyName.StartsWith(str, StringComparison.CurrentCultureIgnoreCase)) || (DivisionName != null && DivisionName.StartsWith(str, StringComparison.CurrentCultureIgnoreCase)) || (ActivityName != null && ActivityName.StartsWith(str, StringComparison.CurrentCultureIgnoreCase)) || (!string.IsNullOrEmpty(Convert.ToString(InvoiceDate)) && InvoiceDate.ToString(Constants.DATE_FORMAT).Contains(str)) || (!string.IsNullOrEmpty(Convert.ToString(Amount)) && Convert.ToString(Amount).StartsWith(str, StringComparison.CurrentCultureIgnoreCase))); }