Class ShiftDAO

java.lang.Object
ru.bgcrm.dao.CommonDAO
org.bgerp.plugin.pln.callboard.dao.ShiftDAO

public class ShiftDAO extends CommonDAO
  • Constructor Details Link icon

  • Method Details Link icon

    • searchShift Link icon

      public void searchShift(Pageable<Shift> searchResult, int category)
    • getShiftList Link icon

      public List<Shift> getShiftList(int category)
    • getShiftList Link icon

      public List<Shift> getShiftList(Set<Integer> shiftIds)
    • getAllShiftMap Link icon

      public Map<Integer,Shift> getAllShiftMap()
    • getShiftFromRs Link icon

      public static Shift getShiftFromRs(ResultSet rs)
    • getShift Link icon

      public Shift getShift(int id, int category)
    • getShift Link icon

      public Shift getShift(int id)
    • deleteShift Link icon

      public void deleteShift(int id)
    • updateShift Link icon

      public void updateShift(Shift shift)
    • getWorkShift Link icon

      public WorkShift getWorkShift(int graphId, int groupId, int userId, Date date)
    • getWorkShift Link icon

      public Map<Integer,List<WorkShift>> getWorkShift(CallboardConfig.Callboard callboard, Date fromDate, Date toDate, Map<Integer,List<Integer>> groupWithUsersSet)
    • getAvailableDateForShift Link icon

      public Map<Integer,Map<Integer,Set<Date>>> getAvailableDateForShift(CallboardConfig.Callboard callboard, Map<Integer,List<Integer>> groupWithUsersMap, Date fromDate, Date toDate)
    • getUserShifts Link icon

      public Map<Integer,Map<Date,WorkShift>> getUserShifts(int graphId, Date fromDate, Date toDate)
    • getWorkShiftSetFor Link icon

      public Set<WorkShift> getWorkShiftSetFor(Date date, int userId)
    • getMonthWorkShift Link icon

      public Map<Date,Set<WorkShift>> getMonthWorkShift(Date date, int groupId)
    • updateWorkShift Link icon

      public void updateWorkShift(WorkShift workShift)
    • deleteWorkShift Link icon

      public void deleteWorkShift(int graphId, int groupId, int userId, Date date)
    • addCallboardTask Link icon

      public void addCallboardTask(int process_id, int group, int team, int graph, Date date)
    • deleteCallboardTask Link icon

      public void deleteCallboardTask(int process_id, int group, int team, int graph, Date date)
    • deleteCallboardTask Link icon

      public void deleteCallboardTask(int process_id)
    • isTimeOccupied Link icon

      public boolean isTimeOccupied(int group, int team, int graph, Date date)
    • getDateTaskList Link icon

      public List<CallboardTask> getDateTaskList(Date date)
    • findSameWorkShift Link icon

      public List<WorkShift> findSameWorkShift(WorkShift workShift)
    • updateShiftOrder Link icon

      public void updateShiftOrder(int graphId, int groupId, Map<Integer,Integer> orderMap)
    • getShiftOrder Link icon

      public Map<Integer,Integer> getShiftOrder(int graphId, int groupId)
    • setDynamicShiftTime Link icon

      public void setDynamicShiftTime(int workShiftId, int timeBegin, int timeEnd)
    • getSameWorkTypeShiftCount Link icon

      public int getSameWorkTypeShiftCount(int workTypeId, int workShiftId, int time_from, int time_to)