Ver a proveniência

update overconsum

add_swagger
MSI\derek há 10 meses
ascendente
cometimento
e4cf162360
1 ficheiros alterados com 3 adições e 3 eliminações
  1. +3
    -3
      src/main/java/com/ffii/tsms/modules/report/service/ReportService.kt

+ 3
- 3
src/main/java/com/ffii/tsms/modules/report/service/ReportService.kt Ver ficheiro

@@ -1889,8 +1889,8 @@ open class ReportService(
rowIndex = generalCreateReportIndexed(sheet, result, rowIndex, columnIndex)

val sheetCF = sheet.sheetConditionalFormatting
val rule1 = sheetCF.createConditionalFormattingRule("AND(K7 >= $lowerLimit, K7 <= 1)")
val rule2 = sheetCF.createConditionalFormattingRule("K7 > 1")
val rule1 = sheetCF.createConditionalFormattingRule("AND(L7 >= $lowerLimit, L7 <= 1)")
val rule2 = sheetCF.createConditionalFormattingRule("L7 > 1")
var fillOrange = rule1.createPatternFormatting()
fillOrange.setFillBackgroundColor(IndexedColors.LIGHT_ORANGE.index);
fillOrange.setFillPattern(PatternFormatting.SOLID_FOREGROUND)
@@ -1900,7 +1900,7 @@ open class ReportService(
fillRed.setFillPattern(PatternFormatting.SOLID_FOREGROUND)

val cfRules = arrayOf(rule1, rule2)
val regions = arrayOf(CellRangeAddress.valueOf("\$K7:\$L${rowIndex + 1}"))
val regions = arrayOf(CellRangeAddress.valueOf("\$L7:\$M${rowIndex + 1}"))
sheetCF.addConditionalFormatting(regions, cfRules);

conditionalFormattingNegative(sheet)


Carregando…
Cancelar
Guardar