| | |
| | | package kr.wisestone.owl.web.form; |
| | | |
| | | import com.google.common.collect.Lists; |
| | | import kr.wisestone.owl.constant.UsePartner; |
| | | import kr.wisestone.owl.util.ConvertUtil; |
| | | import kr.wisestone.owl.util.MapUtil; |
| | | |
| | |
| | | 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 usePartner; |
| | | |
| | | 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.usePartner = 0L; |
| | | |
| | | for (Long id : longs) { |
| | | if (id == UsePartner.USE_PARTNER_COMPANY - 1) { |
| | | form.usePartner += 1; |
| | | } else { |
| | | form.usePartner += id * 2; |
| | | } |
| | | } |
| | | } |
| | | |
| | | return form; |
| | |
| | | this.projectId = projectId; |
| | | } |
| | | |
| | | public Long getCompanyId() { |
| | | return companyId; |
| | | public Long getUsePartner() { |
| | | return usePartner; |
| | | } |
| | | |
| | | 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 setUsePartner(Long usePartner) { |
| | | this.usePartner = usePartner; |
| | | } |
| | | } |