You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
110 lines
3.0 KiB
110 lines
3.0 KiB
package workrostering
|
|
|
|
import "hr_server/overall/overallhandle"
|
|
|
|
//工作时间段列表查询
|
|
type WorkTimeList struct {
|
|
Name string `json:"name"` //名称
|
|
}
|
|
|
|
//添加工作时间段
|
|
type SetWorkTime struct {
|
|
Name string `json:"name"` //名称
|
|
Rule []TimeRule `json:"rule"` //轮询规则
|
|
List []TemaTime `json:"list"` // 班次安排
|
|
}
|
|
type SetWorkTimeEdit struct {
|
|
Name string `json:"name"` //名称
|
|
Rule []TimeRules `json:"rule"` //轮询规则
|
|
List []TemaTimes `json:"list"` // 班次安排
|
|
}
|
|
|
|
//通用班次时间
|
|
type TemaTime struct {
|
|
Title string `json:"title"` //班次名称
|
|
StartTime string `json:"startTime"` //开始时间
|
|
EndTime string `json:"endTime"` //结束时间
|
|
}
|
|
type TemaTimes struct {
|
|
Id string `json:"id"`
|
|
Title string `json:"title"` //班次名称
|
|
StartTime string `json:"startTime"` //开始时间
|
|
EndTime string `json:"endTime"` //结束时间
|
|
}
|
|
|
|
//轮询规则
|
|
type TimeRule struct {
|
|
Sort int `json:"sort"` //排序
|
|
Teamid string `json:"teamid"` //班组名称
|
|
}
|
|
type TimeRules struct {
|
|
Id string `json:"id"` //
|
|
Sort int `json:"sort"` //排序
|
|
Teamid string `json:"teamid"` //班组名称
|
|
}
|
|
|
|
//输出工作时间段列表
|
|
type SendWorkTime struct {
|
|
Id string `json:"id"` //
|
|
State int `json:"state"` //
|
|
States bool `json:"states"` //
|
|
RuleName string `json:"rulename"` //
|
|
SetWorkTimeEdit
|
|
}
|
|
|
|
//编辑工作时间段内容
|
|
type EditWorkTimeCont struct {
|
|
Id string `json:"id"` //
|
|
SetWorkTime
|
|
}
|
|
|
|
type EditWorkTimeConts struct {
|
|
Id string `json:"id"` //
|
|
SetWorkTimeEdit
|
|
}
|
|
|
|
//输出工作时段及轮询规则列表
|
|
type SendPeriodRules struct {
|
|
Id string `json:"id"` //
|
|
Time string `json:"time"` //
|
|
Teamid string `json:"teamid"` //班组名称
|
|
RuleId string `json:"ruleid"` //轮询规则
|
|
List []TemaTimes `json:"list"` // 班次安排
|
|
Rule []TimeRuleSend `json:"rule"` //轮询规则
|
|
}
|
|
|
|
type TimeRuleSend struct {
|
|
Id string `json:"id"` //
|
|
Sort int `json:"sort"` //排序
|
|
Teamid string `json:"teamid"` //班组名称
|
|
TeamName string `json:"teamname"` //班组名称
|
|
}
|
|
|
|
//设置倒班源点
|
|
type SetOrigin struct {
|
|
Id string `json:"id"` //
|
|
Rule string `json:"rule"` //轮询规则
|
|
ShiftTime string `json:"shifttime"` // 班次安排
|
|
StartTime string `json:"starttime"` // 起源时间
|
|
}
|
|
|
|
//排班查询列表
|
|
type Schedule struct {
|
|
overallhandle.PageTurning
|
|
Organization string `json:"organization"` //归属行政组织
|
|
NameOrName string `json:"nameorname"` //姓名或工号
|
|
YearAndMonth string `json:"yearandmonth"` //时间
|
|
}
|
|
|
|
//排班列表输出
|
|
type SendScheduleList struct {
|
|
Title string `json:"title"` //表名称
|
|
HeadList []headtype `json:"headList"` //表头数组
|
|
DataList []map[string]interface{} `json:"dataList"` //数据值
|
|
}
|
|
|
|
//表头结构体
|
|
type headtype struct {
|
|
Name string `json:"name"` //结构体字段
|
|
Label string `json:"label"` //表头名称
|
|
}
|
|
|