Ejemplo n.º 1
0
  /**
   * 删除调拨申请
   *
   * @param id
   */
  public void delDbsq(String id) {

    // 调拨申请单如果已经提交,不做任何操作
    if (dbsqDao.isDbsqFinish(id)) {
      return;
    }

    dbsqDao.delDbsq(id);
  }
Ejemplo n.º 2
0
  /**
   * 更新调拨申请单相关信息
   *
   * @param dbsq
   * @param dbsqProducts
   */
  public void updateDbsq(Dbsq dbsq, List dbsqProducts) {

    // 调拨申请单如果已经提交,不做任何操作
    if (dbsqDao.isDbsqFinish(dbsq.getId())) {
      return;
    }

    dbsqDao.updateDbsq(dbsq, dbsqProducts);

    if (dbsq.getState().equals("已提交")) { // 添加库房调拨
      this.addKfdb(dbsq, dbsqProducts);
    }
  }
Ejemplo n.º 3
0
 /**
  * 判断调拨申请是否已经提交
  *
  * @param id
  * @return
  */
 public boolean isDbsqFinish(String id) {
   return dbsqDao.isDbsqFinish(id);
 }