Subversion Repositories SmartDukaan

Rev

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

Rev 33617 Rev 33624
Line 425... Line 425...
425
        }
425
        }
426
        return "response";
426
        return "response";
427
    }
427
    }
428
 
428
 
429
    @RequestMapping(value = "/completedLoiForms", method = RequestMethod.GET)
429
    @RequestMapping(value = "/completedLoiForms", method = RequestMethod.GET)
430
    public String completeLoiFormList(Model model) {
430
    public String completeLoiFormList(Model model) throws ProfitMandiBusinessException {
431
        List<LoiForm> loiForms = loiFormRepository.selectAllCompleteForm();
431
        List<LoiForm> loiForms = loiFormRepository.selectAllCompleteForm();
-
 
432
        List<LoiFormModel> loiFormModels = new ArrayList<>();
-
 
433
        for (LoiForm loiForm : loiForms) {
-
 
434
            LoiFormModel loiFormModel = new LoiFormModel();
-
 
435
            loiFormModel.setId(loiForm.getId());
-
 
436
            loiFormModel.setLoiFormFilledBy(authRepository.selectByEmailOrMobile(loiForm.getFilledBy()).getFullName());
-
 
437
            loiFormModel.setCompanyName(loiForm.getCompanyName());
-
 
438
            loiFormModel.setOwnerName(loiForm.getFullName());
-
 
439
            loiFormModel.setMobile(loiForm.getMobile());
-
 
440
            loiFormModel.setCity(loiForm.getBillingAddress().getLoc());
-
 
441
            loiFormModels.add(loiFormModel);
-
 
442
        }
432
        List<EscalationType> EscalationTypeList = new ArrayList<>();
443
        List<EscalationType> EscalationTypeList = new ArrayList<>();
433
        EscalationTypeList.add(EscalationType.L2);
444
        EscalationTypeList.add(EscalationType.L2);
434
        EscalationTypeList.add(EscalationType.L1);
445
        EscalationTypeList.add(EscalationType.L1);
435
        EscalationTypeList.add(EscalationType.L4);
446
        EscalationTypeList.add(EscalationType.L4);
436
        List<AuthUser> authUsers = csService.getAuthUserIds(ProfitMandiConstants.TICKET_CATEGORY_RBM,
447
        List<AuthUser> authUsers = csService.getAuthUserIds(ProfitMandiConstants.TICKET_CATEGORY_RBM,
437
                EscalationTypeList);
448
                EscalationTypeList);
438
        model.addAttribute("loiForms", loiForms);
449
        model.addAttribute("loiFormModels", loiFormModels);
439
        model.addAttribute("authUsers", authUsers);
450
        model.addAttribute("authUsers", authUsers);
440
        return "loiForm/completed-loi-form";
451
        return "loiForm/completed-loi-form";
441
    }
452
    }
442
 
453
 
443
    @RequestMapping(value = "/createNewOnboardingPanel", method = RequestMethod.POST)
454
    @RequestMapping(value = "/createNewOnboardingPanel", method = RequestMethod.POST)