Subversion Repositories SmartDukaan

Rev

Rev 8510 | Rev 8749 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8510 Rev 8548
Line 653... Line 653...
653
 
653
 
654
	}
654
	}
655
 
655
 
656
	public boolean changeEntityState() throws Exception {
656
	public boolean changeEntityState() throws Exception {
657
		Map<Long, EntityState> entitiesState = CreationUtils.getEntitiesState();
657
		Map<Long, EntityState> entitiesState = CreationUtils.getEntitiesState();
-
 
658
		Entity entity;
658
		for (Long entityId : entitiesState.keySet()) {
659
		for (Long entityId : entitiesState.keySet()) {
659
			EntityState state = entitiesState.get(entityId);
660
			EntityState state = entitiesState.get(entityId);
660
			if (state.getCategoryID() == 10002
661
			entity = CreationUtils.getEntity(entityId);
661
					|| state.getCategoryID() == 10003
662
			if (state.getCategoryID() == 10006) {
662
					|| state.getCategoryID() == 10004
663
				//state.setCategoryID(10006);
663
					|| state.getCategoryID() == 10005) {
664
				entity.setCategoryID(10006);
664
				state.setCategoryID(10006);
665
				//CreationUtils.updateEntityState(state);
665
				CreationUtils.updateEntityState(state);
666
				CreationUtils.updateEntity(entity);
666
				touchEntityState(entityId);
667
				touchEntityState(entityId);
667
			}
668
			}
668
		}
669
		}
669
		return true;
670
		return true;
670
	}
671
	}