2022-03-16 14:29:02 +08:00
|
|
|
|
package com.engine.salary.entity.datacollection.bo;
|
|
|
|
|
|
|
2022-04-21 14:15:56 +08:00
|
|
|
|
import com.cloudstore.eccom.pc.table.WeaTableColumn;
|
|
|
|
|
|
import com.engine.salary.util.SalaryI18nUtil;
|
|
|
|
|
|
import com.google.common.collect.Lists;
|
2022-03-16 14:29:02 +08:00
|
|
|
|
import com.google.common.collect.Maps;
|
|
|
|
|
|
|
|
|
|
|
|
import java.util.LinkedList;
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 考勤引用-字段管理
|
|
|
|
|
|
* <p>Copyright: Copyright (c) 2022</p>
|
|
|
|
|
|
* <p>Company: 泛微软件</p>
|
|
|
|
|
|
*
|
|
|
|
|
|
* @author qiantao
|
|
|
|
|
|
* @version 1.0
|
|
|
|
|
|
**/
|
|
|
|
|
|
public class AttendQuoteFieldBO {
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-04-21 14:15:56 +08:00
|
|
|
|
public static List<WeaTableColumn> buildRecordTableColumns() {
|
|
|
|
|
|
List<WeaTableColumn> result = Lists.newArrayListWithExpectedSize(5);
|
|
|
|
|
|
result.add(new WeaTableColumn("20%", SalaryI18nUtil.getI18nLabel(87628, "字段名称"), "fieldName"));
|
|
|
|
|
|
result.add(new WeaTableColumn("20%", SalaryI18nUtil.getI18nLabel(87617, "来源"), "sourceType"));
|
|
|
|
|
|
result.add(new WeaTableColumn("20%", SalaryI18nUtil.getI18nLabel(84758, "类型"), "fieldType"));
|
|
|
|
|
|
result.add(new WeaTableColumn("20%", SalaryI18nUtil.getI18nLabel(87629, "是否启用"), "enableStatus"));
|
|
|
|
|
|
result.add(new WeaTableColumn("20%", SalaryI18nUtil.getI18nLabel(84961, "备注"), "description"));
|
|
|
|
|
|
return result;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2022-03-16 14:29:02 +08:00
|
|
|
|
// public static Map<String, EditableTableItem> buildEditableTableItemMap() {
|
|
|
|
|
|
// Map<String, EditableTableItem> resultMap = Maps.newHashMapWithExpectedSize(9);
|
2022-04-21 14:15:56 +08:00
|
|
|
|
// resultMap.put("fieldName", new EditableTableItem(EditableTableItemType.INPUT, "", true));
|
2022-03-16 14:29:02 +08:00
|
|
|
|
// resultMap.put("sourceType", new EditableTableItem(EditableTableItemType.INPUT, "", true));
|
2022-04-21 14:15:56 +08:00
|
|
|
|
// resultMap.put("fieldType", new EditableTableItem(EditableTableItemType.INPUT, "", true));
|
|
|
|
|
|
// resultMap.put("enableStatus", new EditableTableItem(EditableTableItemType.SWITCH, "", false));
|
2022-03-16 14:29:02 +08:00
|
|
|
|
// resultMap.put("description", new EditableTableItem(EditableTableItemType.INPUT, "", true));
|
|
|
|
|
|
// return resultMap;
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 考勤模块固定字段编码
|
|
|
|
|
|
* 注意:目前固定,后期考勤模块会管理维护
|
|
|
|
|
|
*
|
|
|
|
|
|
* @return
|
|
|
|
|
|
*/
|
|
|
|
|
|
public static List<Map<String, String>> buildAttendFixedFields() {
|
|
|
|
|
|
List<Map<String, String>> attendFixedFields = new LinkedList<>();
|
|
|
|
|
|
/* ====== 按小时 ============================================================================================================ */
|
|
|
|
|
|
// 应出勤工时
|
|
|
|
|
|
attendFixedFields.add(attendFixedField("working_hour", 92040, "应出勤工时"));
|
|
|
|
|
|
// 出勤工时
|
|
|
|
|
|
attendFixedFields.add(attendFixedField("actual_hour", 92041, "出勤工时"));
|
|
|
|
|
|
// 实际出勤工时
|
|
|
|
|
|
attendFixedFields.add(attendFixedField("actualWork_hour", 92042, "实际出勤工时"));
|
|
|
|
|
|
|
|
|
|
|
|
/* ====== 异常缺勤 ==================================== */
|
|
|
|
|
|
// 迟到工时
|
|
|
|
|
|
attendFixedFields.add(attendFixedField("lateLength_hour", 92043, "迟到工时"));
|
|
|
|
|
|
// 早退工时
|
|
|
|
|
|
attendFixedFields.add(attendFixedField("earlyOutLength_hour", 92044, "早退工时"));
|
|
|
|
|
|
// 未出勤工时
|
|
|
|
|
|
attendFixedFields.add(attendFixedField("lostLength_hour", 92045, "未出勤工时"));
|
|
|
|
|
|
// 旷工工时
|
|
|
|
|
|
attendFixedFields.add(attendFixedField("absenteeismLength_hour", 92046, "旷工工时"));
|
|
|
|
|
|
|
|
|
|
|
|
// 外勤次数
|
|
|
|
|
|
attendFixedFields.add(attendFixedField("oAttendNum_hour", 92047, "外勤次数(按小时)"));
|
|
|
|
|
|
// 外勤时长
|
|
|
|
|
|
attendFixedFields.add(attendFixedField("oAttendLength_hour", 92048, "外勤时长(按小时)"));
|
|
|
|
|
|
|
|
|
|
|
|
/* ====== 出差工时 ==================================== */
|
|
|
|
|
|
// 工作日出差
|
|
|
|
|
|
attendFixedFields.add(attendFixedField("bTnormal_hour", 92049, "工作日出差工时"));
|
|
|
|
|
|
// 周末出差
|
|
|
|
|
|
attendFixedFields.add(attendFixedField("bTweekend_hour", 92050, "周末出差工时"));
|
|
|
|
|
|
// 节假日出差
|
|
|
|
|
|
attendFixedFields.add(attendFixedField("bTholiday_hour", 92051, "节假日出差工时"));
|
|
|
|
|
|
|
|
|
|
|
|
/* ====== 加班工时 ==================================== */
|
|
|
|
|
|
// 工作日加班
|
|
|
|
|
|
attendFixedFields.add(attendFixedField("normal_hour", 92052, "工作日加班工时"));
|
|
|
|
|
|
// 周末加班
|
|
|
|
|
|
attendFixedFields.add(attendFixedField("weekend_hour", 92053, "周末加班工时"));
|
|
|
|
|
|
// 节假日加班
|
|
|
|
|
|
attendFixedFields.add(attendFixedField("holiday_hour", 92054, "节假日加班工时"));
|
|
|
|
|
|
|
|
|
|
|
|
/* ====== 异常考勤 ==================================== */
|
|
|
|
|
|
// 未签到次数
|
|
|
|
|
|
attendFixedFields.add(attendFixedField("absenseNumOfMonth_hour", 92055, "未签到次数(按小时)"));
|
|
|
|
|
|
// 未签退次数
|
|
|
|
|
|
attendFixedFields.add(attendFixedField("unSignOutNumOfMonth_hour", 92056, "未签退次数(按小时)"));
|
|
|
|
|
|
// 未打卡次数
|
|
|
|
|
|
attendFixedFields.add(attendFixedField("unSignNum_hour", 92057, "未打卡次数(按小时)"));
|
|
|
|
|
|
|
|
|
|
|
|
// 申诉次数
|
|
|
|
|
|
attendFixedFields.add(attendFixedField("appealNum_hour", 92058, "申诉次数(按小时)"));
|
|
|
|
|
|
|
|
|
|
|
|
/* ====== 按天 ============================================================================================================ */
|
|
|
|
|
|
// 应出勤天数
|
|
|
|
|
|
attendFixedFields.add(attendFixedField("working_day", 92059, "应出勤天数"));
|
|
|
|
|
|
// 出勤天数
|
|
|
|
|
|
attendFixedFields.add(attendFixedField("actual_day", 92060, "出勤天数"));
|
|
|
|
|
|
// 实际出勤天数
|
|
|
|
|
|
attendFixedFields.add(attendFixedField("actualWork_day", 92061, "实际出勤天数"));
|
|
|
|
|
|
|
|
|
|
|
|
/* ====== 异常缺勤 ==================================== */
|
|
|
|
|
|
// 迟到天数
|
|
|
|
|
|
attendFixedFields.add(attendFixedField("lateLength_day", 92062, "迟到天数"));
|
|
|
|
|
|
// 早退天数
|
|
|
|
|
|
attendFixedFields.add(attendFixedField("earlyOutLength_day", 92063, "早退天数"));
|
|
|
|
|
|
// 未出勤天数
|
|
|
|
|
|
attendFixedFields.add(attendFixedField("lostLength_day", 92064, "未出勤天数"));
|
|
|
|
|
|
// 旷工天数
|
|
|
|
|
|
attendFixedFields.add(attendFixedField("absenteeismLength_day", 92065, "旷工天数"));
|
|
|
|
|
|
|
|
|
|
|
|
// 外勤时长
|
|
|
|
|
|
attendFixedFields.add(attendFixedField("oAttendNum_day", 92066, "外勤时长天数"));
|
|
|
|
|
|
// 外勤时长
|
|
|
|
|
|
attendFixedFields.add(attendFixedField("oAttendLength_day", 92048, "外勤时长(按天)"));
|
|
|
|
|
|
|
|
|
|
|
|
/* ====== 出差天数 ==================================== */
|
|
|
|
|
|
// 工作日出差
|
|
|
|
|
|
attendFixedFields.add(attendFixedField("bTnormal_day", 92067, "工作日出差天数"));
|
|
|
|
|
|
// 周末出差
|
|
|
|
|
|
attendFixedFields.add(attendFixedField("bTweekend_day", 92068, "周末出差天数"));
|
|
|
|
|
|
// 节假日出差
|
|
|
|
|
|
attendFixedFields.add(attendFixedField("bTholiday_day", 92069, "节假日出差天数"));
|
|
|
|
|
|
|
|
|
|
|
|
/* ====== 加班天数 ==================================== */
|
|
|
|
|
|
// 工作日加班
|
|
|
|
|
|
attendFixedFields.add(attendFixedField("normal_day", 92070, "工作日加班天数"));
|
|
|
|
|
|
// 周末加班
|
|
|
|
|
|
attendFixedFields.add(attendFixedField("weekend_day", 92071, "周末加班天数"));
|
|
|
|
|
|
// 节假日加班
|
|
|
|
|
|
attendFixedFields.add(attendFixedField("holiday_day", 92072, "节假日加班天数"));
|
|
|
|
|
|
|
|
|
|
|
|
/* ====== 异常考勤 ==================================== */
|
|
|
|
|
|
// 未签到次数
|
|
|
|
|
|
attendFixedFields.add(attendFixedField("absenseNumOfMonth_day", 92055, "未签到次数(按天)"));
|
|
|
|
|
|
// 未签退次数
|
|
|
|
|
|
attendFixedFields.add(attendFixedField("unSignOutNumOfMonth_day", 92056, "未签退次数(按天)"));
|
|
|
|
|
|
// 未打卡次数
|
|
|
|
|
|
attendFixedFields.add(attendFixedField("unSignNum_day", 94604, "未打卡次数(按天)"));
|
|
|
|
|
|
|
|
|
|
|
|
// 申诉次数
|
|
|
|
|
|
attendFixedFields.add(attendFixedField("appealNum_day", 94603, "申诉次数(按天)"));
|
|
|
|
|
|
return attendFixedFields;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private static Map<String, String> attendFixedField(String code, int labelId, String name) {
|
|
|
|
|
|
Map<String, String> map = Maps.newHashMapWithExpectedSize(2);
|
|
|
|
|
|
map.put("code", code);
|
|
|
|
|
|
map.put("name", name);
|
|
|
|
|
|
return map;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|