/**
  * @Description 获取列表数据
  *
  * @param request
  * @param model
  * @author davidwan
  */
 private void getList(HttpServletRequest request, Model model) {
   int pageSize = WebUtil.getInt(request, "page_size", ConfigValue.PAGE_SIZE);
   int pageIndex = WebUtil.getInt(request, "page_index", 0);
   String name = WebUtil.getString(request, "name", "");
   StaffContractFile entity = new StaffContractFile();
   if (StringUtils.isNotBlank(name)) {
     // entity.setName(name);
   }
   PageInfo<StaffContractFile> pageInfo =
       staffContractFileService.queryPageList(entity, pageIndex, pageSize);
   model.addAttribute("list", pageInfo.getData());
   model.addAttribute("pageInfo", pageInfo);
 }
Ejemplo n.º 2
0
  /**
   * @Description 进入回收站列表页面
   *
   * @param request
   * @param model
   * @return String
   * @author davidwan
   */
  @RequestMapping("/rubishlist")
  public String rubishlist(HttpServletRequest request, Model model) {
    model.addAttribute("userId", getCurrentUserId());

    int menu_id = WebUtil.getInt(request, "menu_id", 0);
    model.addAttribute("menu_id", menu_id);
    model.addAttribute("roleMenuList", super.gainRoleMenu(menu_id));

    return getPath("rubishlist");
  }
Ejemplo n.º 3
0
  /**
   * @Description 获取总结文档列表数据
   *
   * @param request
   * @param model
   * @author davidwan
   */
  private void getSummaryList(HttpServletRequest request, Model model) {
    int pageIndex = WebUtil.getInt(request, "page_index", 0);
    int pageSize = WebUtil.getInt(request, "page_size", ConfigValue.PAGE_SIZE);
    int menu_id = WebUtil.getInt(request, "menu_id", 0);
    Integer directoryId = WebUtil.getInteger(request, "directory_id", null);
    // Integer creatorId = WebUtil.getInteger(request, "creator_id", null);
    Integer deptId = WebUtil.getInteger(request, "dept_id", null);
    String name = WebUtil.getString(request, "name", null);
    String creatorName = WebUtil.getString(request, "creator_name", null);
    String minCreateTime = WebUtil.getString(request, "min_create_time", null);
    String maxCreateTime = WebUtil.getString(request, "max_create_time", null);
    boolean isDelete = WebUtil.getBoolean(request, "is_delete", false);

    File entity = new File();
    entity.setDirectory_id(directoryId);
    entity.setModule_type(EnumDirModuleType.总结文档.getValue());
    entity.getMap().put("is_delete", isDelete);
    entity.getMap().put("dept_id", deptId);
    entity.getMap().put("current_user_id", getCurrentUserId());

    if (StringUtils.isNotBlank(name)) {
      entity.getMap().put("name", name);
    }
    if (StringUtils.isNotBlank(creatorName)) {
      entity.getMap().put("creator_name", creatorName);
    }
    if (StringUtils.isNotBlank(minCreateTime)) {
      entity.getMap().put("min_create_time", minCreateTime);
    }
    if (StringUtils.isNotBlank(maxCreateTime)) {
      entity.getMap().put("max_create_time", maxCreateTime);
    }

    model.addAttribute("userId", getCurrentUserId());

    PageInfo<File> pageInfo = fileService.querySummaryPageList(entity, pageIndex, pageSize);
    model.addAttribute("list", pageInfo.getData());
    model.addAttribute("pageInfo", pageInfo);
    model.addAttribute("roleMenuList", super.gainRoleMenu(menu_id));
  }
Ejemplo n.º 4
0
  /**
   * @Description 获取列表数据
   *
   * @param request
   * @param model
   * @return String
   * @author davidwan
   */
  @RequestMapping("/showdatalist")
  public String showDatalist(HttpServletRequest request, Model model) {
    int pageIndex = WebUtil.getInt(request, "page_index", 0);
    int pageSize = WebUtil.getInt(request, "page_size", ConfigValue.PAGE_SIZE);
    String name = WebUtil.getString(request, "name", null);
    String minCreateTime = WebUtil.getString(request, "min_create_time", null);
    String maxCreateTime = WebUtil.getString(request, "max_create_time", null);

    File entity = new File();
    entity.setModule_type(3);
    if (StringUtils.isNotBlank(name)) {
      entity.getMap().put("name", name);
    }
    if (StringUtils.isNotBlank(minCreateTime)) {
      entity.getMap().put("min_create_time", minCreateTime);
    }
    if (StringUtils.isNotBlank(maxCreateTime)) {
      entity.getMap().put("max_create_time", maxCreateTime);
    }
    PageInfo<File> pageInfo = fileService.queryPageList(entity, pageIndex, pageSize);
    model.addAttribute("list", pageInfo.getData());
    model.addAttribute("pageInfo", pageInfo);
    return getPath("showdata_list");
  }
Ejemplo n.º 5
0
 /**
  * @Description 获取列表数据
  *
  * @param request
  * @param model
  * @author davidwan
  */
 private void getList(HttpServletRequest request, Model model) {
   int pageSize = WebUtil.getInt(request, "page_size", ConfigValue.PAGE_SIZE);
   int pageIndex = WebUtil.getInt(request, "page_index", 0);
   String receiver_name = WebUtil.getString(request, "receiver_name", "");
   String sender_name = WebUtil.getString(request, "sender_name", "");
   String phone = WebUtil.getString(request, "phone", "");
   String create_time_min = WebUtil.getString(request, "create_time_min", "");
   String create_time_max = WebUtil.getString(request, "create_time_max", "");
   int menu_id = WebUtil.getInt(request, "menu_id", 0);
   int state = WebUtil.getInt(request, "state", -2);
   Sms entity = new Sms();
   if (state != -2) {
     if (state == 0) {
       entity.setState(state);
     } else {
       entity.getMap().put("not_state", true);
     }
   }
   if (StringUtils.isNotBlank(receiver_name)) {
     entity.getMap().put("receiver_name", receiver_name);
   }
   if (StringUtils.isNotBlank(sender_name)) {
     entity.getMap().put("sender_name", sender_name);
   }
   if (StringUtils.isNotBlank(phone)) {
     entity.getMap().put("phone", phone);
   }
   if (StringUtils.isNotBlank(create_time_min)) {
     entity.getMap().put("create_time_min", DateUtil.strToDate(create_time_min));
   }
   if (StringUtils.isNotBlank(create_time_max)) {
     entity.getMap().put("create_time_max", DateUtil.strToDate(create_time_max));
   }
   entity.getMap().put("sort", true);
   PageInfo<Sms> pageInfo = smsService.queryPageList(entity, pageIndex, pageSize);
   model.addAttribute("list", pageInfo.getData());
   model.addAttribute("pageInfo", pageInfo);
   model.addAttribute("menu_id", menu_id);
   model.addAttribute("roleMenuList", super.gainRoleMenu(menu_id));
 }
Ejemplo n.º 6
0
  /**
   * @Description 获取列表数据
   *
   * @param request
   * @param model
   * @author davidwan
   */
  private void getList(HttpServletRequest request, Model model) {
    int pageIndex = WebUtil.getInt(request, "page_index", 0);
    int pageSize = WebUtil.getInt(request, "page_size", ConfigValue.PAGE_SIZE);
    int menu_id = WebUtil.getInt(request, "menu_id", 0);
    Integer directoryId = WebUtil.getInteger(request, "directory_id", null);
    Integer creatorId = WebUtil.getInteger(request, "creator_id", null);
    String name = WebUtil.getString(request, "name", "");
    String types = WebUtil.getString(request, "types", "");
    String minCreateTime = WebUtil.getString(request, "min_create_time", "");
    String maxCreateTime = WebUtil.getString(request, "max_create_time", "");
    String notIds = WebUtil.getString(request, "not_ids", "");
    boolean isDelete = WebUtil.getBoolean(request, "is_delete", false);

    File entity = new File();
    entity.setDirectory_id(directoryId);
    entity.setCreator_id(creatorId);
    if (!isDelete) {
      entity.setModule_type(EnumDirModuleType.我的文档.getValue());
    }
    entity.getMap().put("is_delete", isDelete);

    if (StringUtils.isNotBlank(name)) {
      entity.getMap().put("name", name);
    }
    if (StringUtils.isNotBlank(types)) {
      entity.getMap().put("types", types.split(","));
    }
    if (StringUtils.isNotBlank(minCreateTime)) {
      entity.getMap().put("min_create_time", minCreateTime);
    }
    if (StringUtils.isNotBlank(maxCreateTime)) {
      entity.getMap().put("max_create_time", maxCreateTime);
    }
    if (StringUtils.isNotBlank(notIds)) {
      entity.getMap().put("not_ids", notIds.split(","));
    }

    PageInfo<File> pageInfo = fileService.queryPageList(entity, pageIndex, pageSize);
    model.addAttribute("list", pageInfo.getData());
    model.addAttribute("pageInfo", pageInfo);

    model.addAttribute("roleMenuList", super.gainRoleMenu(menu_id));
  }