Esempio n. 1
0
  // 采购单受理列表json
  public String disposelist_result() throws Exception {
    YycgdQueryVo yycgdQueryVo = getModel();

    // 获取当前用户身份
    Subject subject = SecurityUtils.getSubject();
    ActiveUser activeUser = (ActiveUser) subject.getPrincipal();
    // 从用户身份中获取供货商id
    String usergysid = activeUser.getSysid();
    // 列表的总数
    Long total = serviceFacade.getCgdService().findYycgdDisposeListCount(usergysid, yycgdQueryVo);
    // 计算分页参数
    PageParameter pageParameter =
        new PageParameter(yycgdQueryVo.getPage(), yycgdQueryVo.getRows(), total);

    // 查询采购药品明细列表
    List<Yycgd> yycgdList =
        serviceFacade
            .getCgdService()
            .findYycgdDisposeList(
                usergysid,
                yycgdQueryVo,
                pageParameter.getPageQuery_star(),
                pageParameter.getPageQuery_pageSize());

    // 创建datagridResultInfo
    this.setProcessResult(
        ResultUtil.createDataGridResultInfo(yycgdQueryVo.getPage(), total, yycgdList));

    return "disposelist_result";
  }
Esempio n. 2
0
  // 修改采购单页面,将页面中需要的数据查询到
  public String yycgdmxlist_result() throws Exception {

    YycgdQueryVo yycgdQueryVo = getModel();
    YycgdCustom yycgdCustom = yycgdQueryVo.getYycgdCustom();

    Long yycgdid = yycgdCustom.getId();

    // 显示采购单下边采购药品明细
    // 采购明细列表的总数
    Long total = serviceFacade.getCgdService().findYycgdmxCountByYycgdid(yycgdid, yycgdQueryVo);
    // 计算分页参数
    PageParameter pageParameter =
        new PageParameter(yycgdQueryVo.getPage(), yycgdQueryVo.getRows(), total);

    // 查询采购药品明细列表
    List<Yycgdmx> yycgdmxList =
        serviceFacade
            .getCgdService()
            .findYycgdmxListByYycgdid(
                yycgdid,
                yycgdQueryVo,
                pageParameter.getPageQuery_star(),
                pageParameter.getPageQuery_pageSize());

    // 创建datagridResultInfo
    this.setProcessResult(
        ResultUtil.createDataGridResultInfo(yycgdQueryVo.getPage(), total, yycgdmxList));

    return "yycgdmxlist_result";
  }
Esempio n. 3
0
  // 添加采购药品查询列表json
  public String addyycgdmx_ypxxlist() throws Exception {
    YycgdQueryVo yycgdQueryVo = getModel();
    // 列表的总数
    Long total = serviceFacade.getCgdService().findYpxxListCount(yycgdQueryVo);
    // 计算分页参数
    PageParameter pageParameter =
        new PageParameter(yycgdQueryVo.getPage(), yycgdQueryVo.getRows(), total);

    // 查询采购药品明细列表
    List<Ypxx> ypxxList =
        serviceFacade
            .getCgdService()
            .findYpxxList(
                yycgdQueryVo,
                pageParameter.getPageQuery_star(),
                pageParameter.getPageQuery_pageSize());

    // 创建datagridResultInfo
    this.setProcessResult(
        ResultUtil.createDataGridResultInfo(yycgdQueryVo.getPage(), total, ypxxList));

    return "addyycgdmx_ypxxlist";
  }