Skip to content
Snippets Groups Projects
Commit bb256797 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

Merge branch 'appointments-dev' of...

Merge branch 'appointments-dev' of https://git-r3lab.uni.lu/piotr.atyjaszyk/scheduling-system into appointments-dev
parents ba44c9c7 d5f636ca
No related branches found
No related tags found
1 merge request!1Appointments dev
......@@ -155,10 +155,21 @@ public class PrcSubjectsParser extends SubjectParser {
@Override
protected boolean parseResigned(Row row) {
try {
IndexedColors color = IndexedColors.fromInt(row.getSheet().getWorkbook().getFontAt(row.getCell(0).getCellStyle().getFontIndex()).getColor());
int colorId = row.getSheet().getWorkbook().getFontAt(row.getCell(0).getCellStyle().getFontIndex()).getColor();
//special case for black
if (colorId == 32767) {
return false;
}
IndexedColors color = IndexedColors.fromInt(colorId);
switch (color) {
case RED:
return true;
case SEA_GREEN:
return false;
case PINK:
return false;
case PLUM:
return false;
case BLUE:
return false;
case BLACK:
......
......@@ -9,6 +9,7 @@ import org.junit.runners.Suite.SuiteClasses;
CellParserTest.class, //
LihControlMappingParserTest.class, //
LihControlParserTest.class, //
PrcControlParserTest.class, //
PrcFlyingParserTest.class, //
PrcSubjectsParserTest.class, //
RedcapParserTest.class, //
......
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment