Skip to content

Commit

Permalink
Release 1.2020.0
Browse files Browse the repository at this point in the history
Release for Build season 2020
  • Loading branch information
Andrew committed Jan 13, 2020
2 parents 46ecfcf + 3f36e80 commit 7d4a6af
Show file tree
Hide file tree
Showing 62 changed files with 3,451 additions and 214 deletions.
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
out/
.gradle/
.idea/
build/
run/
.idea/libraries/
.idea/modules/
.idea/.name
.idea/*.xml
18 changes: 18 additions & 0 deletions .idea/runConfigurations/AttendanceManager.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

46 changes: 33 additions & 13 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,23 +1,43 @@
group 'com.westisliprobotics'
version '1.0-SNAPSHOT'
allprojects {
group 'com.westisliprobotics'

apply plugin: 'java'
repositories {
mavenCentral()
maven {
url "$rootDir/libs"
}
}

sourceCompatibility = 1.8

repositories {
mavenCentral()
apply plugin: 'idea'
apply plugin: 'java'
}

dependencies {
compile 'org.apache.poi:poi:4.0.0',
compile 'com.intellij:annotations:12.0',
'org.apache.poi:poi:4.0.0',
'org.apache.poi:poi-ooxml:4.0.0',
'info.picocli:picocli:3.7.0',
'org.slf4j:slf4j-api:1.7.25',
'ch.qos.logback:logback-classic:1.2.3',
'org.apache.commons:commons-math3:3.6.1',
'org.json:json:20180813',
'com.google.zxing:core:3.3.3',
'com.google.zxing:javase:3.3.3'
testCompile group: 'junit', name: 'junit', version: '4.12'
'com.google.zxing:javase:3.3.3',
'org.javapos:javapos:1.14.0',
'net.sourceforge.barbecue:barbecue:1.5-beta1',
'xerces:xercesImpl:2.8.0',
'org.apache.commons:commons-math3:3.6.1',
'jpos:jposService:1.0',
'jpos:jposServiceIni:1.0',
'jpos:jposServiceScale:1.0',
'jpos:jposServiceScanner:1.0'
}

jar {
from(configurations.compile.collect{it.isDirectory() ? it : zipTree(it)}){
exclude "META-INF/*.SF"
exclude "META-INF/*.DSA"
exclude "META-INF/*.RSA"
}

manifest {
attributes('Main-Class': 'com.team871.ui.AttendanceManager')
}
}
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
6 changes: 3 additions & 3 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Thu Oct 25 23:43:10 EDT 2018
#Mon Oct 14 22:30:05 EDT 2019
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-all.zip
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.0-bin.zip
zipStoreBase=GRADLE_USER_HOME
Binary file added libs/jpos/jposService/1.0/jposService-1.0.jar
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added libs/native/CSJPOSScale.dll
Binary file not shown.
Binary file added libs/native/CSJPOSScale64.dll
Binary file not shown.
Binary file added libs/native/CSJPOSScanner.dll
Binary file not shown.
Binary file added libs/native/CSJPOSScanner64.dll
Binary file not shown.
3 changes: 1 addition & 2 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
rootProject.name = 'excelparser'

rootProject.name = 'AttendenceManager'
29 changes: 0 additions & 29 deletions src/main/java/BarcodeReader.java

This file was deleted.

166 changes: 0 additions & 166 deletions src/main/java/Excel2Json.java

This file was deleted.

35 changes: 35 additions & 0 deletions src/main/java/com/team871/data/AttendanceItem.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
package com.team871.data;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;

public class AttendanceItem {
private LocalDateTime inTime = null;
private LocalDateTime outTime = null;

public AttendanceItem() {
inTime = LocalDateTime.now();
}

public AttendanceItem(LocalDate date) {
inTime = date.atTime(LocalTime.now());
}

public AttendanceItem(LocalDate date, LocalTime intime, LocalTime outTime) {
this.inTime = intime.atDate(date);
this.outTime = outTime.atDate(date);
}

public LocalDateTime getInTime() {
return inTime;
}

public LocalDateTime getOutTime() {
return outTime;
}

public void signOut() {
outTime = LocalDateTime.now();
}
}
27 changes: 27 additions & 0 deletions src/main/java/com/team871/data/FirstRegistration.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
package com.team871.data;

public enum FirstRegistration {
None("Not Signed"),
MissingWaiver("Missing Waiver"),
Complete("Done");

final String key;

FirstRegistration(String key) {
this.key = key;
}

public String getKey() {
return key;
}

public static FirstRegistration getByKey(String key) {
for(FirstRegistration r : values()) {
if(r.key.equals(key)) {
return r;
}
}

throw new IllegalArgumentException("No such key " + key);
}
}
Loading

0 comments on commit 7d4a6af

Please sign in to comment.