Beispiel #1
0
 /** 新增/修改保存库存管理 */
 public String saveGoodsKc() throws Exception {
   GoodsInfoManager goodsInfoMgr = (GoodsInfoManager) SpringContextHolder.getBean(GoodsInfo.class);
   if (super.perExecute(goodsInfo) != null) return returnCommand();
   goodsInfoMgr.saveGoodsInfo(goodsInfo);
   super.postExecute(goodsInfo);
   return returnCommand();
 }
Beispiel #2
0
  /** 库存管理列表 */
  public String goodsKcList() throws Exception {
    GoodsInfoManager goodsInfoMgr = (GoodsInfoManager) SpringContextHolder.getBean(GoodsInfo.class);
    pageInfo = pageInfo == null ? new GoodsInfoPageInfo() : pageInfo;
    PageInfo sarchPageInfo = PageInfoUtil.populate(pageInfo, this);

    goodsInfos = goodsInfoMgr.getSecurityGoodsInfoList(sarchPageInfo);

    return returnCommand();
  }
Beispiel #3
0
  /** 删除指定的某些库存管理 */
  public String removeAllGoodsKc() throws Exception {
    GoodsInfoManager goodsInfoMgr = (GoodsInfoManager) SpringContextHolder.getBean(GoodsInfo.class);
    if (orderIndexs != null && orderIndexs.length() > 0) {
      String[] ids = orderIndexs.split(",");
      for (int i = 0; i < ids.length; i++) {
        if (ids[i].length() > 0) {
          Integer goodsInfoid = new Integer(ids[i]);
          goodsInfoMgr.removeGoodsInfoById(goodsInfoid);
        }
      }
    }

    return returnCommand();
  }
Beispiel #4
0
 /** 查看库存管理 */
 public String viewGoodsKc() throws Exception {
   GoodsInfoManager goodsInfoMgr = (GoodsInfoManager) SpringContextHolder.getBean(GoodsInfo.class);
   goodsInfo = goodsInfoMgr.getGoodsInfoById(goodsInfo.getId());
   return returnCommand();
 }