businesstrips

package
v0.0.0-...-288c4e3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddBusinesstrip

func AddBusinesstrip(upd Businesstrips) error

func AddBusinesstripsApprover

func AddBusinesstripsApprover(upd BusinesstripsApprover) error

func ChangeBusinesstripResult

func ChangeBusinesstripResult(id int64, result int) error

func ChangeBusinesstripStatus

func ChangeBusinesstripStatus(id int64, status int) error

func CheckBusinesstripApprover

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

检测是否已经审批

func CountBusinesstrip

func CountBusinesstrip(condArr map[string]string) int64

func CountBusinesstripApproval

func CountBusinesstripApproval(condArr map[string]string) int64

func DeleteBusinesstrip

func DeleteBusinesstrip(id int64) error

func ListBusinesstripApproverProcessHtml

func ListBusinesstripApproverProcessHtml(businesstripid int64) string

func UpdateBusinesstrip

func UpdateBusinesstrip(id int64, upd Businesstrips) error

func UpdateBusinesstripsApprover

func UpdateBusinesstripsApprover(id int64, upd BusinesstripsApprover) error

Types

type BusinesstripApproverProcess

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

func ListBusinesstripApproverProcess

func ListBusinesstripApproverProcess(businesstripid int64) (num int64, err error, user []BusinesstripApproverProcess)

type Businesstrips

type Businesstrips struct {
	Id           int64 `orm:"pk;column(businesstripid);"`
	Userid       int64
	Destinations string
	Starteds     string
	Endeds       string
	Days         int
	Reason       string
	Picture      string
	Result       int
	Status       int
	Approverids  string
	Created      int64
	Changed      int64
}

func GetBusinesstrip

func GetBusinesstrip(id int64) (Businesstrips, error)

func ListBusinesstrip

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

func ListBusinesstripApproval

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

待审批

func (*Businesstrips) TableName

func (this *Businesstrips) TableName() string

type BusinesstripsApprover

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

func (*BusinesstripsApprover) TableName

func (this *BusinesstripsApprover) TableName() string

type TmpBusinesstripCount

type TmpBusinesstripCount struct {
	Num int64
}

Jump to

Keyboard shortcuts

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