Class ShiftDAO
java.lang.Object
ru.bgcrm.dao.CommonDAO
org.bgerp.plugin.pln.callboard.dao.ShiftDAO
-
Nested Class Summary
Nested classes/interfaces inherited from class ru.bgcrm.dao.CommonDAO
CommonDAO.ObjectExtractor<T>, CommonDAO.RecordUpdater<T extends Id>
-
Field Summary
Fields inherited from class ru.bgcrm.dao.CommonDAO
con, log, SQL_AND, SQL_DELETE, SQL_DELETE_FROM, SQL_DESC, SQL_DISTINCT, SQL_FROM, SQL_GROUP_BY, SQL_INNER_JOIN, SQL_INSERT, SQL_INSERT_IGNORE, SQL_INSERT_INTO, SQL_LEFT_JOIN, SQL_LIMIT, SQL_ON_DUP_KEY_UPDATE, SQL_ORDER_BY, SQL_REPLACE, SQL_SELECT, SQL_SELECT_ALL_FROM, SQL_SELECT_COUNT_ROWS, SQL_SET, SQL_UNION_ALL, SQL_UPDATE, SQL_VALUES, SQL_WHERE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addCallboardTask
(int process_id, int group, int team, int graph, Date date) void
deleteCallboardTask
(int process_id) void
deleteCallboardTask
(int process_id, int group, int team, int graph, Date date) void
deleteShift
(int id) void
deleteWorkShift
(int graphId, int groupId, int userId, Date date) findSameWorkShift
(WorkShift workShift) getAvailableDateForShift
(CallboardConfig.Callboard callboard, Map<Integer, List<Integer>> groupWithUsersMap, Date fromDate, Date toDate) getDateTaskList
(Date date) getMonthWorkShift
(Date date, int groupId) int
getSameWorkTypeShiftCount
(int workTypeId, int workShiftId, int time_from, int time_to) getShift
(int id) getShift
(int id, int category) static Shift
getShiftList
(int category) getShiftList
(Set<Integer> shiftIds) getShiftOrder
(int graphId, int groupId) getUserShifts
(int graphId, Date fromDate, Date toDate) getWorkShift
(int graphId, int groupId, int userId, Date date) getWorkShift
(CallboardConfig.Callboard callboard, Date fromDate, Date toDate, Map<Integer, List<Integer>> groupWithUsersSet) getWorkShiftSetFor
(Date date, int userId) boolean
isTimeOccupied
(int group, int team, int graph, Date date) void
searchShift
(Pageable<Shift> searchResult, int category) void
setDynamicShiftTime
(int workShiftId, int timeBegin, int timeEnd) void
updateShift
(Shift shift) void
updateShiftOrder
(int graphId, int groupId, Map<Integer, Integer> orderMap) void
updateWorkShift
(WorkShift workShift) Methods inherited from class ru.bgcrm.dao.CommonDAO
deleteById, foundRows, getById, getFoundRows, getGroupedIds, getGroupedIds, getIds, getIds, getLikePatternEnd, getLikePatternStart, getLikePatternSub, getPageLimit, getPeriodSql, lastInsertId, setPeriodParamValue, setRecordCount, sqlToBgException, update, updateColumn, updateIds, updateIds, updateOrInsert
-
Constructor Details
-
ShiftDAO
-
-
Method Details
-
searchShift
-
getShiftList
-
getShiftList
-
getAllShiftMap
-
getShiftFromRs
-
getShift
-
getShift
-
deleteShift
public void deleteShift(int id) -
updateShift
-
getWorkShift
-
getWorkShift
-
getAvailableDateForShift
-
getUserShifts
-
getWorkShiftSetFor
-
getMonthWorkShift
-
updateWorkShift
-
deleteWorkShift
-
addCallboardTask
-
deleteCallboardTask
-
deleteCallboardTask
public void deleteCallboardTask(int process_id) -
isTimeOccupied
-
getDateTaskList
-
findSameWorkShift
-
updateShiftOrder
-
getShiftOrder
-
setDynamicShiftTime
public void setDynamicShiftTime(int workShiftId, int timeBegin, int timeEnd) -
getSameWorkTypeShiftCount
public int getSameWorkTypeShiftCount(int workTypeId, int workShiftId, int time_from, int time_to)
-