@Controller @RequestMapping(value="/complainttype") public class CreateComplaintTypeController extends Object
| Constructor and Description |
|---|
CreateComplaintTypeController(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 |
complaintTypeForm() |
org.egov.pgr.entity.ComplaintType |
complaintTypeModel() |
String |
createComplaintType(org.egov.pgr.entity.ComplaintType complaintType,
org.springframework.validation.BindingResult errors,
org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttrs,
org.springframework.ui.Model model) |
List<org.egov.infra.admin.master.entity.Department> |
departments() |
org.springframework.web.servlet.ModelAndView |
successView(String name,
org.egov.pgr.entity.ComplaintType complaintType) |
@Autowired
public CreateComplaintTypeController(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()
@RequestMapping(value="create",
method=GET)
public String complaintTypeForm()
@RequestMapping(value="create",
method=POST)
public String createComplaintType(@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="/success/{name}",
method=GET)
public org.springframework.web.servlet.ModelAndView successView(@PathVariable(value="name")
String name,
@ModelAttribute
org.egov.pgr.entity.ComplaintType complaintType)
Copyright © 2015–2016 eGovernments Foundation. All rights reserved.