| Line 92... |
Line 92... |
| 92 |
public String getTrialPending(HttpServletRequest request, Model model, @PathVariable int trialFormId) throws Exception {
|
92 |
public String getTrialPending(HttpServletRequest request, Model model, @PathVariable int trialFormId) throws Exception {
|
| 93 |
TrialForm trialForm = trialFormRepository.selectById(trialFormId);
|
93 |
TrialForm trialForm = trialFormRepository.selectById(trialFormId);
|
| 94 |
return "trial-form";
|
94 |
return "trial-form";
|
| 95 |
}
|
95 |
}
|
| 96 |
|
96 |
|
| 97 |
@RequestMapping(value = "/trial/cancel/{trialFormId}", method = RequestMethod.POST)
|
97 |
@RequestMapping(value = "/trial/reject/{trialFormId}", method = RequestMethod.POST)
|
| 98 |
public String rejectTrialUser(HttpServletRequest request, Model model, @PathVariable int trialFormId) throws Exception {
|
98 |
public String rejectTrialUser(HttpServletRequest request, Model model, @PathVariable int trialFormId) throws Exception {
|
| 99 |
TrialForm trialForm = trialFormRepository.selectById(trialFormId);
|
99 |
TrialForm trialForm = trialFormRepository.selectById(trialFormId);
|
| 100 |
trialForm.setStatus(ProfitMandiConstants.Status.REJECTED);
|
100 |
trialForm.setStatus(ProfitMandiConstants.Status.REJECTED);
|
| - |
|
101 |
trialService.sentRejectionMailToTrialUser(trialForm);
|
| 101 |
|
102 |
|
| 102 |
return "trial-form";
|
103 |
return "trial-form";
|
| 103 |
}
|
104 |
}
|
| 104 |
|
105 |
|
| 105 |
@RequestMapping(value = "/trial/approve/{trialFormId}", method = RequestMethod.POST)
|
106 |
@RequestMapping(value = "/trial/approve/{trialFormId}", method = RequestMethod.POST)
|