From e78b015f2ef2572d33b32ff2b3dbb764ee25a661 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Wed, 19 Feb 2020 23:08:33 +0000 Subject: [PATCH] --- ayanova/src/views/ay-data-list-view.vue | 73 ++++++++++++++++++++++++- 1 file changed, 72 insertions(+), 1 deletion(-) diff --git a/ayanova/src/views/ay-data-list-view.vue b/ayanova/src/views/ay-data-list-view.vue index 86b5357d..5775a50a 100644 --- a/ayanova/src/views/ay-data-list-view.vue +++ b/ayanova/src/views/ay-data-list-view.vue @@ -244,6 +244,47 @@ export default { public const string OpEndsWith = "-%"; public const string OpContains = "-%-"; public const string OpNotContains = "!-%-"; + + =-=-=-=- + public const string TokenYesterday = "{[yesterday]}"; + public const string TokenToday = "{[today]}"; + public const string TokenTomorrow = "{[tomorrow]}"; + public const string TokenLastWeek = "{[lastweek]}"; + public const string TokenThisWeek = "{[thisweek]}"; + public const string TokenNextWeek = "{[nextweek]}"; + public const string TokenLastMonth = "{[lastmonth]}"; + public const string TokenThisMonth = "{[thismonth]}"; + public const string TokenNextMonth = "{[nextmonth]}"; + public const string TokenFourteenDayWindow = "{[14daywindow]}"; + public const string TokenPast = "{[past]}"; + public const string TokenFuture = "{[future]}"; + public const string TokenLastYear = "{[lastyear]}"; + public const string TokenThisYear = "{[thisyear]}"; + public const string TokenInTheLast3Months = "{[last3months]}"; + public const string TokenInTheLast6Months = "{[last6months]}"; + public const string TokenInTheLastYear = "{[lastcalendaryear]}"; + + //More business time frames + + public const string TokenYearToDate = "{[yeartodate]}"; + + public const string TokenPast90Days = "{[past90days]}"; + public const string TokenPast30Days = "{[past30days]}"; + public const string TokenPast24Hours = "{[past24hours]}"; + + //Months THIS year + public const string TokenJanuary = "{[january]}"; + public const string TokenFebruary = "{[february]}"; + public const string TokenMarch = "{[march]}"; + public const string TokenApril = "{[april]}"; + public const string TokenMay = "{[may]}"; + public const string TokenJune = "{[june]}"; + public const string TokenJuly = "{[july]}"; + public const string TokenAugust = "{[august]}"; + public const string TokenSeptember = "{[september]}"; + public const string TokenOctober = "{[october]}"; + public const string TokenNovember = "{[november]}"; + public const string TokenDecember = "{[december]}"; */ pickLists: { dateFilterOperators: [ @@ -257,11 +298,41 @@ export default { { name: this.lt("GridRowFilterDropDownLessThanOrEqualTo"), id: "<=" }, { name: this.lt("GridRowFilterDropDownNotEquals"), id: "!=" } ], + dateFilterTokens: [ + { name: this.lt("SelectItem"), id: "*select*" }, + { name: this.lt("DateRangeYesterday"), id: "*yesterday*" }, + { name: this.lt("DateRangeToday"), id: "*today*" }, + { name: this.lt("DateRangeTomorrow"), id: "*tomorrow*" }, + { name: this.lt("DateRangeLastWeek"), id: "*lastweek*" }, + { name: this.lt("DateRangeThisWeek"), id: "*thisweek*" }, + { name: this.lt("DateRangeNextWeek"), id: "*nextweek*" }, + { name: this.lt("DateRangeLastMonth"), id: "*lastmonth*" }, + { name: this.lt("DateRangeThisMonth"), id: "*thismonth*" }, + { name: this.lt("DateRangeNextMonth"), id: "*nextmonth*" }, + { name: this.lt("DateRange14DayWindow"), id: "*14daywindow*" }, + { name: this.lt("DateRangePast"), id: "*past*" }, + { name: this.lt("DateRangeFuture"), id: "*future*" }, + { name: this.lt("DateRangeLastYear"), id: "*lastyear*" }, //prior year from jan to dec + { name: this.lt("DateRangeThisYear"), id: "*thisyear*" }, + { + name: this.lt("DateRangeInTheLastThreeMonths"), + id: "*last3months*" + }, + { + name: this.lt("DateRangeInTheLastSixMonths"), + id: "*last6months*" + }, + { name: this.lt("DateRangePastYear"), id: "*pastyear*" }, //last 365 days + + { name: this.lt("DateRangePast90Days"), id: "*past90days*" }, + { name: this.lt("DateRangePast30Days"), id: "*past30days*" }, + { name: this.lt("DateRangePast24Hours"), id: "*past24hours*" } + ], stringFilterOperators: [], //maybe this one contains by Specific ID? Easy thing to do would be to say fuck it and it must be just text, no id filter TBD integerFilterOperators: [], boolFilterOperators: [], decimalFilterOperators: [], - tagFilterOperators: [] + tagFilterOperators: [{ name: this.lt("XXXXX"), id: "XXX" }] }, formState: { ready: false,