| | |
| | | package kr.wisestone.owl.web.form; |
| | | |
| | | import com.google.common.collect.Lists; |
| | | import kr.wisestone.owl.constant.UseCompany; |
| | | import kr.wisestone.owl.domain.HostingField; |
| | | import kr.wisestone.owl.domain.IssueType; |
| | | import kr.wisestone.owl.util.ConvertUtil; |
| | | import kr.wisestone.owl.util.MapUtil; |
| | | import kr.wisestone.owl.web.condition.HostingFieldCondition; |
| | | import kr.wisestone.owl.web.controller.HostingFieldController; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | |
| | | private String color; |
| | | private Long workflowId; |
| | | private Long projectId; |
| | | private Long companyId; |
| | | private Long ispId; |
| | | private Long hostingId; |
| | | private List<Long> removeIds = Lists.newArrayList(); |
| | | private Long useCompany; |
| | | |
| | | public IssueTypeForm(){} |
| | | |
| | |
| | | |
| | | if (MapUtil.getLongs(params, "removeIds") != null) { |
| | | form.setRemoveIds(MapUtil.getLongs(params, "removeIds")); |
| | | } |
| | | |
| | | if (MapUtil.getLongs(params, "companyIds") != null) { |
| | | // form.setRemoveIds(MapUtil.getLongs(params, "companyIds")); |
| | | List<Long> longs = MapUtil.getLongs(params, "companyIds"); |
| | | form.useCompany = 0L; |
| | | |
| | | for (Long id : longs) { |
| | | if (id == UseCompany.USE_COMPANY_COMPANY - 1) { |
| | | form.useCompany += 1; |
| | | } else { |
| | | form.useCompany += id * 2; |
| | | } |
| | | } |
| | | } |
| | | |
| | | return form; |
| | |
| | | this.projectId = projectId; |
| | | } |
| | | |
| | | public Long getCompanyId() { |
| | | return companyId; |
| | | public Long getUseCompany() { |
| | | return useCompany; |
| | | } |
| | | |
| | | public void setCompanyId(Long companyId) { |
| | | this.companyId = companyId; |
| | | } |
| | | |
| | | public Long getIspId() { |
| | | return ispId; |
| | | } |
| | | |
| | | public void setIspId(Long ispId) { |
| | | this.ispId = ispId; |
| | | } |
| | | |
| | | public Long getHostingId() { |
| | | return hostingId; |
| | | } |
| | | |
| | | public void setHostingId(Long hostingId) { |
| | | this.hostingId = hostingId; |
| | | public void setUseCompany(Long useCompany) { |
| | | this.useCompany = useCompany; |
| | | } |
| | | } |