attendance

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BarcodeLog

type BarcodeLog struct {
	Unit              string
	CommandEmblemPath string
	UnitPatchPath     string
	LogDate           time.Time
	LastCapwatchSync  time.Time
	LogGroups         []LogGroup
	// contains filtered or unexported fields
}

func NewBarcodeLog

func NewBarcodeLog(unit, commandEmblemPath, unitPatchPath string, logDate, lastCapwatchSync time.Time) (bl *BarcodeLog)

func (*BarcodeLog) LaTeX

func (bl *BarcodeLog) LaTeX() (latex string)

func (*BarcodeLog) PopulateFromTableOfOrganization

func (bl *BarcodeLog) PopulateFromTableOfOrganization(to pkg.TableOfOrganization)

type LogGroup

type LogGroup struct {
	Name      string
	SubGroups []LogSubGroup
	// contains filtered or unexported fields
}

func NewLogGroupFromFlight

func NewLogGroupFromFlight(flight pkg.Flight, ignore *mapset.Set[uint]) (lg LogGroup)

func NewLogGroupFromMemberGroup

func NewLogGroupFromMemberGroup(memberGroup pkg.MemberGroup) (lg LogGroup)

func NewLogGroupFromStaffGroup

func NewLogGroupFromStaffGroup(group pkg.StaffGroup, ignore *mapset.Set[uint]) LogGroup

func (LogGroup) BreakBeforeLog

func (lg LogGroup) BreakBeforeLog() bool

func (LogGroup) Height

func (lg LogGroup) Height() (h uint)

Height represents roughly how high this group will be when it is rendered by LaTeX in the final pdf. A group will be the sum of heights of its subgroups, plus 15pts for the title row and about 20pts for the space between tables. Hence, the math: 35 + sum(heights_of_subgroups).

func (LogGroup) LaTeX

func (lg LogGroup) LaTeX() (latex string)

type LogSubGroup

type LogSubGroup struct {
	Name    string
	Members []Member
}

func NewLogSubGroupFromElement

func NewLogSubGroupFromElement(element pkg.Element, elementNumber int, ignore *mapset.Set[uint]) (lsg LogSubGroup)

func NewLogSubGroupFromStaffSubGroup

func NewLogSubGroupFromStaffSubGroup(subgroup pkg.StaffSubGroup, ignore *mapset.Set[uint]) (lsg LogSubGroup)

func (LogSubGroup) Height

func (lsg LogSubGroup) Height() (height uint)

Height represents roughly how high this subgroup will be when it is rendered by LaTeX in the final pdf. Each member row of the barcode log is roughly 30pts high and each title block is roughly 15 points high, hence the math: (number_of_members * 30) + 15

func (LogSubGroup) LaTeX

func (lsg LogSubGroup) LaTeX() (latex string)

type Member

type Member struct {
	CAPID uint
	Name  string
}

func NewMemberFromDomainMember

func NewMemberFromDomainMember(domainMember pkg.Member) (member Member)

func (Member) LaTeX

func (m Member) LaTeX() (latex string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL