Subversion Repositories SmartDukaan

Rev

Rev 31238 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 31238 Rev 37405
Line 28... Line 28...
28
public class HrmsController {
28
public class HrmsController {
29
 
29
 
30
	private static final Logger LOGGER = LogManager.getLogger(PostOfficeController.class);
30
	private static final Logger LOGGER = LogManager.getLogger(PostOfficeController.class);
31
 
31
 
32
	@Autowired
32
	@Autowired
-
 
33
	private com.spice.profitmandi.dao.repository.inventory.StateRepository stateRepository;
-
 
34
 
-
 
35
	@Autowired
33
	private StatutoryDocsAndDateRepository statutoryDocsAndDateRepository;
36
	private StatutoryDocsAndDateRepository statutoryDocsAndDateRepository;
34
 
37
 
35
	@Autowired
38
	@Autowired
36
	private MVCResponseSender mvcResponseSender;
39
	private MVCResponseSender mvcResponseSender;
37
 
40
 
Line 98... Line 101...
98
 
101
 
99
		else {
102
		else {
100
			throw new ProfitMandiBusinessException(ProfitMandiConstants.ID, authId, "Auth User not Exist");
103
			throw new ProfitMandiBusinessException(ProfitMandiConstants.ID, authId, "Auth User not Exist");
101
		}
104
		}
102
 
105
 
-
 
106
		model.addAttribute("stateNames", this.stateNames());
103
		return "hr_employee_form";
107
		return "hr_employee_form";
104
 
108
 
105
	}
109
	}
106
 
110
 
107
	@RequestMapping(value = "/getEmployeeDetailSubmit", method = RequestMethod.POST)
111
	@RequestMapping(value = "/getEmployeeDetailSubmit", method = RequestMethod.POST)
Line 347... Line 351...
347
 
351
 
348
		return "employee-form";
352
		return "employee-form";
349
 
353
 
350
	}
354
	}
351
 
355
 
-
 
356
 
-
 
357
	/** State list for the form dropdowns, from inventory.statemaster - never hardcoded in the view. */
-
 
358
	private java.util.List<String> stateNames() {
-
 
359
		return stateRepository.selectAll().stream().map(com.spice.profitmandi.dao.entity.inventory.State::getName)
-
 
360
				.sorted().collect(java.util.stream.Collectors.toList());
-
 
361
	}
352
}
362
}