absence

package
v0.0.0-...-c9e5fff Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2014 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GOFPDF_DIR = "."
	FONT_DIR   = GOFPDF_DIR + "/font"
	IMG_DIR    = GOFPDF_DIR + "/image"
	TEXT_DIR   = GOFPDF_DIR + "/text"
)

Variables

This section is empty.

Functions

func GeneratePdf

func GeneratePdf(absence Absence)

func Get

func Get(employeeId string)

Types

type Absence

type Absence struct {
	Id                      string    `json:"id,omitempty"`
	EmployeeId              string    `json:"employee_id,omitempty"`
	Kind                    int       `json:"kind,omitempty"`
	From                    time.Time `json:"from,omitempty"`
	To                      time.Time `json:"to,omitempty"`
	Reason                  string    `json:"reason,omitempty"`
	ClarificationMp         bool      `json:"clarification_mp,omitempty"`
	ClarificationSubstitude bool      `json:"clarification_substitude,omitempty"`
	Approved                bool      `json:"approved,omitempty"`
	Comment                 string    `json:"comment,omitempty"`
	WorkdaysPerWeek         int       `json:workdays_per_week,omitempty`
	CreatedAt               time.Time `json:"created_at,omitempty"`
}

func Create

func Create(

	kind string,
	from string,
	to string,
	reason string,
	clarificationMp string,
	clarificationSubstitude string,
	comment string,
	workdaysPerWeek string) (absence Absence, errArr []error)

Jump to

Keyboard shortcuts

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