Subversion Repositories SmartDukaan

Rev

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

Rev 3127 Rev 3480
Line 69... Line 69...
69
					System.out.println("User name is " + assignTo);
69
					System.out.println("User name is " + assignTo);
70
					try {
70
					try {
71
						EntityState state = CreationUtils.getEntityState(entityId);
71
						EntityState state = CreationUtils.getEntityState(entityId);
72
						if(state.getStatus() == EntityStatus.READY){
72
						if(state.getStatus() == EntityStatus.READY){
73
						    Calendar cl = Calendar.getInstance();
73
						    Calendar cl = Calendar.getInstance();
74
		                    if(cl.get(Calendar.HOUR_OF_DAY) > 14 && cl.get(Calendar.HOUR_OF_DAY) < 16){
74
		                    if(cl.get(Calendar.HOUR_OF_DAY) >= 14 && cl.get(Calendar.HOUR_OF_DAY) < 16){
75
		                        addActionError("Sorry.... This is not right time to assign this entity. Please visit after 4 PM.");
75
		                        addActionError("Sorry.... This is not right time to assign this entity. Please visit after 4 PM.");
76
		                        return "success";   
76
		                        return "success";   
77
		                    }
77
		                    }
78
						    List<Long> inconsistentEntities = CreationUtils.getInconsistentEntities();
78
						    List<Long> inconsistentEntities = CreationUtils.getInconsistentEntities();
79
						    if(inconsistentEntities == null){
79
						    if(inconsistentEntities == null){