Class ShiftDAO

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

public class ShiftDAO extends CommonDAO
  • Constructor Details

  • Method Details

    • searchShift

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

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

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

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

      public static Shift getShiftFromRs(ResultSet rs)
    • getShift

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

      public Shift getShift(int id)
    • deleteShift

      public void deleteShift(int id)
    • updateShift

      public void updateShift(Shift shift)
    • getWorkShift

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

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

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

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

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

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

      public void updateWorkShift(WorkShift workShift)
    • deleteWorkShift

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

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

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

      public void deleteCallboardTask(int process_id)
    • isTimeOccupied

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

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

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

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

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

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

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