Ejemplo n.º 1
0
 /**
  * 跳转到修改页面
  *
  * @param id
  * @return
  */
 @RequiresPermissions("receive:update")
 @RequestMapping("updatePage")
 public String upadatePage(String id, ModelMap map) {
   BiGoodsreceiving bv = igoodsreceivingService.get(BiGoodsreceiving.class, id);
   if (bv == null) {
     return NODATA;
   }
   BiBasicinformation bi =
       igoodsreceivingService.get(BiBasicinformation.class, bv.getUsingnameid());
   if (bi != null) {
     map.addAttribute("bi", bi);
   }
   map.addAttribute("bv", bv);
   return "administration/officemanagement/goodsreceiving/update";
 }
Ejemplo n.º 2
0
 /**
  * 修改物品领用
  *
  * @param bv
  * @param errors
  * @param num
  * @return
  */
 @RequiresPermissions("receive:update")
 @RequestMapping("update")
 public ModelAndView update(@Valid BiGoodsreceiving bv, Errors errors) {
   if (errors.hasErrors()) {
     ModelAndView mav = getValidationMessage(errors);
     if (mav != null) return mav;
   }
   return ajaxDone(igoodsreceivingService.updatereceving(bv));
 }
Ejemplo n.º 3
0
  /**
   * 分页查询物品领用信息
   *
   * @return
   */
  @RequiresPermissions("receive:read")
  @RequestMapping("loadall")
  public ModelAndView loadall(BiGoodsreceiving bv, PageParam param, Date startDate, Date endDate) {

    return ajaxJsonEscape(igoodsreceivingService.load(bv, param, startDate, endDate));
  }
Ejemplo n.º 4
0
 /**
  * 批量删除
  *
  * @param ids
  * @return
  */
 @RequiresPermissions("receive:delete")
 @RequestMapping("deletes")
 public ModelAndView deletes(String[] ids) {
   return ajaxDone(igoodsreceivingService.deletes(ids));
 }