@Override public final int compare(final AccEntriesSourcesLine o1, final AccEntriesSourcesLine o2) { return o1.getEntriesAccountingType() .compareTo(o2.getEntriesAccountingType()); } }
int i = 0; for (AccEntriesSourcesLine sourcesLine : sourcesLines) { if (sourcesLine.getIsUsed() && sourcesLine.getSourceType().equals(pEntity.constTypeCode())) { String query = lazyGetQuery(sourcesLine.getFileName()); String idName = "ITSID"; if (pEntity.getIdBirth() != null) { String strWhereDocId = sourcesLine.getSourceIdName() + " = " + pEntity.getItsId().toString(); if (query.contains(":WHEREADD")) {
/** * <p>Retrieve Accounting settings from database.</p> * @param pAddParam additional param * @throws Exception - an exception **/ public final synchronized void retrieveAccSettings( final Map<String, Object> pAddParam) throws Exception { this.accSettings = new AccSettings(); this.accSettings.setItsId(1L); this.accSettings = getSrvOrm().retrieveEntity(pAddParam, this.accSettings); if (this.accSettings == null) { throw new ExceptionWithCode(ExceptionWithCode.CONFIGURATION_MISTAKE, "There is no accounting settings!!!"); } DrawMaterialSourcesLine dmsl = new DrawMaterialSourcesLine(); dmsl.setItsOwner(this.accSettings); List<DrawMaterialSourcesLine> drawMaterialSources = getSrvOrm() .retrieveListForField(pAddParam, dmsl, "itsOwner"); this.accSettings.setDrawMaterialSources(drawMaterialSources); CogsItemSourcesLine cisl = new CogsItemSourcesLine(); cisl.setItsOwner(this.accSettings); List<CogsItemSourcesLine> cogsItemSources = getSrvOrm() .retrieveListForField(pAddParam, cisl, "itsOwner"); this.accSettings.setCogsItemSources(cogsItemSources); AccEntriesSourcesLine aesl = new AccEntriesSourcesLine(); aesl.setItsOwner(this.accSettings); List<AccEntriesSourcesLine> accEntriesSources = getSrvOrm() .retrieveListForField(pAddParam, aesl, "itsOwner"); this.accSettings.setAccEntriesSources(accEntriesSources); }
int i = 0; for (AccEntriesSourcesLine sourcesLine : sourcesLines) { if (sourcesLine.getIsUsed() && sourcesLine.getSourceType().equals(pEntity.constTypeCode())) { String query = lazyGetQuery(sourcesLine.getFileName()); String idName = "ITSID"; if (pEntity.getIdBirth() != null) { String strWhereDocId = sourcesLine.getSourceIdName() + " = " + pEntity.getItsId().toString(); if (query.contains(":WHEREADD")) {
@Override public final int compare(final AccEntriesSourcesLine o1, final AccEntriesSourcesLine o2) { return o1.getEntriesAccountingType() .compareTo(o2.getEntriesAccountingType()); } }