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_IGNORE_INTO, 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_VALUES_1, SQL_VALUES_2, SQL_VALUES_3, SQL_VALUES_4, SQL_VALUES_5, SQL_WHERE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCallboardTask(int process_id, int group, int team, int graph, Date date) voiddeleteCallboardTask(int process_id) voiddeleteCallboardTask(int process_id, int group, int team, int graph, Date date) voiddeleteShift(int id) voiddeleteWorkShift(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) intgetSameWorkTypeShiftCount(int workTypeId, int workShiftId, int time_from, int time_to) getShift(int id) getShift(int id, int category) static ShiftgetShiftList(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) booleanisTimeOccupied(int group, int team, int graph, Date date) voidsearchShift(Pageable<Shift> searchResult, int category) voidsetDynamicShiftTime(int workShiftId, int timeBegin, int timeEnd) voidupdateShift(Shift shift) voidupdateShiftOrder(int graphId, int groupId, Map<Integer, Integer> orderMap) voidupdateWorkShift(WorkShift workShift) Methods inherited from class ru.bgcrm.dao.CommonDAO
deleteById, foundRows, getById, getGroupedIds, getGroupedIds, getIds, getIds, getPageLimit, getPeriodSql, lastInsertId, setPeriodParamValue, setRecordCount, 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)
-