| | |
| | | package kr.wisestone.owl.web.form; |
| | | |
| | | import com.google.common.collect.Lists; |
| | | import kr.wisestone.owl.util.ConvertUtil; |
| | | import kr.wisestone.owl.util.MapUtil; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | |
| | | private Long id; |
| | | private String departmentName; |
| | | private String departmentDescription; |
| | | private List<Long> removeIds = Lists.newArrayList(); |
| | | |
| | | public DepartmentManageForm() { |
| | | } |
| | | |
| | | public static DepartmentManageForm make(Map<String, Object> params) { |
| | | return ConvertUtil.convertMapToClass(params, DepartmentManageForm.class); |
| | | DepartmentManageForm form = ConvertUtil.convertMapToClass(params, DepartmentManageForm.class); |
| | | |
| | | if (MapUtil.getLongs(params,"removeIds") != null) { |
| | | form.setRemoveIds(MapUtil.getLongs(params, "removeIds")); |
| | | } |
| | | return form; |
| | | } |
| | | |
| | | public Long getId() { |
| | |
| | | public void setDepartmentDescription(String departmentDescription) { |
| | | this.departmentDescription = departmentDescription; |
| | | } |
| | | |
| | | public List<Long> getRemoveIds() { |
| | | return removeIds; |
| | | } |
| | | |
| | | public void setRemoveIds(List<Long> removeIds) { |
| | | this.removeIds = removeIds; |
| | | } |
| | | } |