Examples of GetUniqueNumber()


Examples of nu.lazy8.ledger.jdbc.UniqNumGenerator.GetUniqueNumber()

        st.close();
      }catch(Exception e){
      }
      UniqNumGenerator a = new UniqNumGenerator();
      accountTypeAccess.setObject(
          new Integer(a.GetUniqueNumber("AccTypeId", startNum, 999999999,
          (Integer) cc.comboBox.getSelectedItemsKey())), "AccTypeId");
    } else {
      getCustomerId(i++);
    }
    accountTypeAccess.setObject(textField2.getText(), "TypeName");
View Full Code Here

Examples of nu.lazy8.ledger.jdbc.UniqNumGenerator.GetUniqueNumber()

    Integer compId = (Integer) cc.comboBox.getSelectedItemsKey();
    Integer iActId =iLastActId;
    Integer iPeriodId =iLastPeriodId;
    if (iWhyGet == DataMovementPane.ADD) {
      UniqNumGenerator a = new UniqNumGenerator();
      iActId = new Integer(a.GetUniqueNumber("Act_Id", 1, 999999999, compId));
      getAndAddAmounts(iActId, compId);
      iPeriodId = new Integer(a.GetUniqueNumber("PeriodId="
        + (Date) cc.comboBoxPeriod.getSelectedItemsKey() + "-"
        + (Date) cc.comboBoxPeriod.getSelectedItemsSecondaryKey(), 1, 999999999, compId));
      if (SetupInfo.getBoolProperty(SetupInfo.SHOW_PERIOD_ID))
View Full Code Here

Examples of nu.lazy8.ledger.jdbc.UniqNumGenerator.GetUniqueNumber()

    Integer iPeriodId =iLastPeriodId;
    if (iWhyGet == DataMovementPane.ADD) {
      UniqNumGenerator a = new UniqNumGenerator();
      iActId = new Integer(a.GetUniqueNumber("Act_Id", 1, 999999999, compId));
      getAndAddAmounts(iActId, compId);
      iPeriodId = new Integer(a.GetUniqueNumber("PeriodId="
        + (Date) cc.comboBoxPeriod.getSelectedItemsKey() + "-"
        + (Date) cc.comboBoxPeriod.getSelectedItemsSecondaryKey(), 1, 999999999, compId));
      if (SetupInfo.getBoolProperty(SetupInfo.SHOW_PERIOD_ID))
        lableTransaction.setText(IntegerField.ConvertIntToLocalizedString(iPeriodId));
      else
View Full Code Here

Examples of nu.lazy8.ledger.jdbc.UniqNumGenerator.GetUniqueNumber()

        rsPeriods.beforeFirst();
        //find the appropriate period if it exists.
        while (rsPeriods.next()) {
          if (invoiceDate.compareTo(rsPeriods.getDate(1))>=0 && invoiceDate.compareTo(rsPeriods.getDate(2))<=0){
            //increment period id counter
            periodId=uniqnum.GetUniqueNumber("PeriodId="+ rsPeriods.getDate(1) + "-"
              + rsPeriods.getDate(2), 1, 999999999,new Integer(lastCompId));
            break; //we found the period we need
          }
        }
        dc.con.createStatement().executeQuery(dc.filterSQL(
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.