@Controller
@RequestMapping(value="/complainttype/update/{code}")
public class UpdateComplaintTypeController
extends Object
| Constructor and Description |
|---|
UpdateComplaintTypeController(org.egov.infra.admin.master.service.DepartmentService departmentService,
org.egov.pgr.service.ComplaintTypeService complaintTypeService) |
| Modifier and Type | Method and Description |
|---|---|
List<org.egov.pgr.entity.ComplaintTypeCategory> |
categories() |
String |
complaintTypeFormForUpdate() |
org.egov.pgr.entity.ComplaintType |
complaintTypeModel(String code,
org.springframework.ui.Model model) |
List<org.egov.infra.admin.master.entity.Department> |
departments() |
org.springframework.web.servlet.ModelAndView |
successView(String code,
org.egov.pgr.entity.ComplaintType complaintType) |
String |
updateComplaintType(org.egov.pgr.entity.ComplaintType complaintType,
org.springframework.validation.BindingResult errors,
org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttrs,
org.springframework.ui.Model model) |
@Autowired
public UpdateComplaintTypeController(org.egov.infra.admin.master.service.DepartmentService departmentService,
org.egov.pgr.service.ComplaintTypeService complaintTypeService)
@ModelAttribute(value="categories") public List<org.egov.pgr.entity.ComplaintTypeCategory> categories()
@ModelAttribute(value="departments") public List<org.egov.infra.admin.master.entity.Department> departments()
@ModelAttribute
public org.egov.pgr.entity.ComplaintType complaintTypeModel(@PathVariable
String code,
org.springframework.ui.Model model)
@RequestMapping(method=GET) public String complaintTypeFormForUpdate()
@RequestMapping(method=POST) public String updateComplaintType(@ModelAttribute org.egov.pgr.entity.ComplaintType complaintType, org.springframework.validation.BindingResult errors, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttrs, org.springframework.ui.Model model)
@RequestMapping(value="/complaintType-success")
public org.springframework.web.servlet.ModelAndView successView(@PathVariable
String code,
@ModelAttribute
org.egov.pgr.entity.ComplaintType complaintType)
Copyright © 2015–2016 eGovernments Foundation. All rights reserved.