static private string GetSignRequestKeywordsFilter(string keywords) { string filter = GeneralDataOperations.AllRecordsFilter; if (!String.IsNullOrWhiteSpace(keywords)) { filter = SearchExpression.ParseAndLike("Keywords", EmpiriaString.BuildKeywords(keywords)); } return(filter); }
protected override void OnSave() { base.Name = $"Saldos acumulados al {this.BalancesDate.ToLongDateString()}"; base.Keywords = EmpiriaString.BuildKeywords(base.Name); if (IsNew) { _list.Value.Add(this); _list.Value.Sort((x, y) => x.BalancesDate.CompareTo(y.BalancesDate)); } base.OnSave(); }
static internal FixedList <Note> GetObjectPostingsList(string objectType, string objectUID, string keywords = "") { string filter = $"(ObjectType = '{objectType}' AND ObjectUID = '{objectUID}' AND Status <> 'X')"; if (keywords.Length != 0) { filter += " AND "; filter += SearchExpression.ParseAndLike("Keywords", EmpiriaString.BuildKeywords(keywords)); } return(BaseObject.GetList <Note>(filter, "PostingTime") .ToFixedList()); }
static private string GetTicketsFilter(string keywords, string statusFilter = "") { string filter = String.Empty; if (!String.IsNullOrWhiteSpace(keywords)) { filter = SearchExpression.ParseAndLike("Keywords", EmpiriaString.BuildKeywords(keywords)); } if (statusFilter.Length != 0) { filter += filter.Length != 0 ? " AND " : String.Empty; filter += statusFilter; } return(filter); }