Subversion Repositories SmartDukaan

Rev

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

Rev 4011 Rev 4012
Line 70... Line 70...
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
						    int hourOfDay = cl.get(Calendar.HOUR_OF_DAY);
74
						    int hourOfDay = cl.get(Calendar.HOUR_OF_DAY);
75
						    int minuteOfHour = cl.get(Calendar.HOUR_OF_DAY);
75
						    int minuteOfHour = cl.get(Calendar.MINUTE);
76
						    int totalMinutes = 60*hourOfDay + minuteOfHour;  
76
						    int totalMinutes = 60*hourOfDay + minuteOfHour;  
77
		                    if(totalMinutes > 14*60 + 45 && totalMinutes < 15*60 + 30){
77
		                    if(totalMinutes > 14*60 + 45 && totalMinutes < 15*60 + 30){
78
		                        addActionError("Sorry.... This is not right time to assign this entity. Please visit after 4 PM.");
78
		                        addActionError("Sorry.... This is not right time to assign this entity. Please visit after 3.30 PM.");
79
		                        return "success";   
79
		                        return "success";   
80
		                    }
80
		                    }
81
						    List<Long> inconsistentEntities = CreationUtils.getInconsistentEntities();
81
						    List<Long> inconsistentEntities = CreationUtils.getInconsistentEntities();
82
						    if(inconsistentEntities == null){
82
						    if(inconsistentEntities == null){
83
						        inconsistentEntities = new ArrayList<Long>();
83
						        inconsistentEntities = new ArrayList<Long>();