Skip to content

Commit

Permalink
Merge pull request #466 from Strongminds/feature/kitosudv-3274-add-va…
Browse files Browse the repository at this point in the history
…lidfrom-to

added expirationdata and concluded to contract overview
  • Loading branch information
mrjsawdk authored Sep 8, 2022
2 parents 0e3e978 + 980ad5c commit 9249e28
Showing 1 changed file with 19 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@
.withUser(user)
.withEntityTypeName("IT Kontrakt")
.withExcelOutputName("IT Kontrakt Overblik")
.withStorageKey("it-contract-full-overview-options")
.withStorageKey("it-contract-full-overview-options-v2")
.withUrlFactory(options => {
var urlParameters =
"?$expand=" +
Expand Down Expand Up @@ -460,6 +460,24 @@
dataItem.Id,
dataItem.Name))
.withSourceValueEchoExcelOutput())
.withColumn(builder =>
builder
.withDataSourceName("Concluded")
.withTitle("Gyldig fra")
.withId("concluded")
.withInclusionCriterion(() => uiState.isBluePrintNodeAvailable(uiBluePrint.children.frontPage.children.agreementPeriod))
.withDataSourceType(Utility.KendoGrid.KendoGridColumnDataSourceType.Date)
.withFilteringOperation(Utility.KendoGrid.KendoGridColumnFiltering.Date)
.withRendering(dataItem => Helpers.RenderFieldsHelper.renderDate(dataItem.Concluded)))
.withColumn(builder =>
builder
.withDataSourceName("ExpirationDate")
.withTitle("Gyldig til")
.withId("expirationDate")
.withInclusionCriterion(() => uiState.isBluePrintNodeAvailable(uiBluePrint.children.frontPage.children.agreementPeriod))
.withDataSourceType(Utility.KendoGrid.KendoGridColumnDataSourceType.Date)
.withFilteringOperation(Utility.KendoGrid.KendoGridColumnFiltering.Date)
.withRendering(dataItem => Helpers.RenderFieldsHelper.renderDate(dataItem.ExpirationDate)))
.withColumn(builder =>
builder
.withDataSourceName(this.criticalityPropertyName)
Expand Down

0 comments on commit 9249e28

Please sign in to comment.