Demo entry 6640942

卢广航

   

Submitted by 111 on Sep 14, 2017 at 11:22
Language: Java. Code size: 594 Bytes.

  public ModelAndView doSave(HttpServletRequest request, HttpServletResponse response, AllocationReceipt receipt)
  {
    try
    {
      User user = getCurtUser(request);
      receipt.setOperator(user.getUserId());
      receipt.setOperteDate(new Date());
      this.service.addAllocationReceipt(receipt);
      this.msg = "调拨单据[" + receipt.getReceiptName() + "]新增成功!";
      return getModelMapSuccess(this.msg);
    } catch (Exception e) {
      this.msg = "调拨单据[" + receipt.getReceiptName() + "]新增失败!";

      e.printStackTrace(); }
    return getModelMapError(this.msg);
  }

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).