Exemplo n.º 1
0
  @Override
  protected Object doProcess(Object inobj) {

    ATP020301 frmi = (ATP020301) inobj;

    logger.debug(">>" + frmi.getUserid());

    processReceivable(frmi);

    frmi.setOk(true);

    return inobj;
  }
Exemplo n.º 2
0
  private void processReceivable(ATP020301 frmi) {

    for (DetailRow<DetailReceivable> item : frmi.getDetailreceivable().getListdetailrow()) {

      Receivable dbbean = new Receivable();

      BeanUtil.copyProperties(dbbean, item.getData().getReceivable());

      dbbean.setInvcomid(frmi.getMasterdata().getInvoicecompany().getInvcomid());
      dbbean.setCompany(frmi.getMasterdata().getInvoicecompany().getCompanyname());
      dbbean.setInvdate(Utils.formatDateToStringToDBEn(item.getData().getInvdate()));
      dbbean.setSubmitdate(Utils.formatDateToStringToDBEn(item.getData().getSubmitdate()));

      dbbean.setEntuser(frmi.getUserid());
      dbbean.setEnttime(Utils.getcurDateTime());
      dbbean.setUpdlcnt(1);
      dbbean.setUpdtime(Utils.getcurDateTime());
      dbbean.setUpduser(frmi.getUserid());

      persist(dbbean);
    }
  }