overtimes

package
v0.0.0-...-cf39114 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2017 License: GPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddOvertime

func AddOvertime(upd Overtimes) error

func AddOvertimesApprover

func AddOvertimesApprover(upd OvertimesApprover) error

func ChangeOvertimeResult

func ChangeOvertimeResult(id int64, result int) error

func ChangeOvertimeStatus

func ChangeOvertimeStatus(id int64, status int) error

func CheckOvertimeApprover

func CheckOvertimeApprover(id, userId int64) (int64, int)

检测是否已经审批

func CountOvertime

func CountOvertime(condArr map[string]string) int64

func CountOvertimeApproval

func CountOvertimeApproval(condArr map[string]string) int64

func DeleteOvertime

func DeleteOvertime(id int64) error

func ListOvertimeApproverProcessHtml

func ListOvertimeApproverProcessHtml(overtimeid int64) string

func UpdateOvertime

func UpdateOvertime(id int64, upd Overtimes) error

func UpdateOvertimesApprover

func UpdateOvertimesApprover(id int64, upd OvertimesApprover) error

Types

type OvertimeApproverProcess

type OvertimeApproverProcess struct {
	Userid   int64
	Realname string
	Avatar   string
	Position string
	Status   int
	Summary  string
	Changed  int64
}

func ListOvertimeApproverProcess

func ListOvertimeApproverProcess(overtimeid int64) (num int64, err error, user []OvertimeApproverProcess)

type Overtimes

type Overtimes struct {
	Id          int64 `orm:"pk;column(overtimeid);"`
	Userid      int64
	Started     int64
	Ended       int64
	Longtime    float64
	Holiday     int
	Way         int
	Reason      string
	Result      int
	Status      int
	Approverids string
	Created     int64
	Changed     int64
}

func GetOvertime

func GetOvertime(id int64) (Overtimes, error)

func ListOvertime

func ListOvertime(condArr map[string]string, page int, offset int) (num int64, err error, ops []Overtimes)

func ListOvertimeApproval

func ListOvertimeApproval(condArr map[string]string, page int, offset int) (num int64, err error, ops []Overtimes)

待审批

func (*Overtimes) TableName

func (this *Overtimes) TableName() string

type OvertimesApprover

type OvertimesApprover struct {
	Id         int64 `orm:"pk;column(approverid);"`
	Overtimeid int64
	Userid     int64
	Summary    string
	Status     int
	Created    int64
	Changed    int64
}

func (*OvertimesApprover) TableName

func (this *OvertimesApprover) TableName() string

type TmpOvertimeCount

type TmpOvertimeCount struct {
	Num int64
}

Jump to

Keyboard shortcuts

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