Procházet zdrojové kódy

update overconsum

add_swagger
MSI\derek před 10 měsíci
rodič
revize
e4cf162360
1 změnil soubory, kde provedl 3 přidání a 3 odebrání
  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 Zobrazit soubor

@@ -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)


Načítá se…
Zrušit
Uložit