Пример #1
0
  /**
   * Description of the Method
   *
   * @param ctx Description of the Parameter
   * @param conn Description of the Parameter
   * @param instance Description of the Parameter
   * @param msgs Description of the Parameter
   * @param manager Description of the Parameter
   * @param assistor Description of the Parameter
   * @return Description of the Return Value
   */
  public int preInsert(
      SessionContext ctx,
      DatabaseConnection conn,
      FormInstance instance,
      ErrorMessages msgs,
      EventManager manager,
      SqlAssistor assistor) {
    int seqNo = (int) SerialNumber.getNextSN("BMLOANADMCHANGE", "SEQNO");
    // System.out.println("Seqno:"+seqNo);

    instance.setValue("SEQNO", seqNo);
    assistor.setSqlFieldValue(assistor.getDefaultTbl(), "SEQNO", seqNo + "");
    MyDB.getInstance().addDBConn(conn);
    return InactLoanMan.loanAdmByChange(this.bmno, ctx.getParameter("NEWADM"));
  }
Пример #2
0
 /**
  * 获取当前序列号
  *
  * @param tblName
  * @param fldName
  * @return int
  * @roseuid 3FD02580018E
  */
 protected static long getCurSN(String tblName, String fldName) {
   return SerialNumber.getCurSN(tblName, fldName);
 }