示例#1
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";
  }
示例#2
0
  // 审核提交
  // 传入
  public String checksubmit() throws Exception {
    YycgdQueryVo yycgdQueryVo = getModel();
    // 采购单id
    Long yycgdid = yycgdQueryVo.getYycgdCustom().getId();
    // 取出审核结果及审核意见
    YycgdCustom yycgdCustom = yycgdQueryVo.getYycgdCustom();

    serviceFacade
        .getCgdService()
        .saveYycgdCheckState(yycgdid, yycgdCustom.getCheckResult(), yycgdCustom);
    // 操作成功
    this.setProcessResult(
        ResultUtil.createSubmitResult(ResultUtil.createSuccess(Config.MESSAGE, 906, null)));
    return "checksubmit";
  }
示例#3
0
  // 修改采购单页面,将页面中需要的数据查询到
  public String edit() throws Exception {

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

    Long yycgdid = yycgdCustom.getId();

    // 需要在页面显示采购单基本信息
    Yycgd yycgd = serviceFacade.getCgdService().findYycgdById(yycgdid);

    // 将yycgd对象放入值栈
    YycgdCustom yycgdCustom_page = new YycgdCustom();
    BeanUtils.copyProperties(yycgd, yycgdCustom_page);
    yycgdQueryVo.setYycgdCustom(yycgdCustom_page);

    return "edit";
  }