방첩공작 작업중.
parent
e68c9e35da
commit
b81bff3b71
|
|
@ -70,20 +70,20 @@ public class BaseController {
|
|||
ModelAndView mav = new ModelAndView("login/dashboard");
|
||||
PublicBoard noticeParams = new PublicBoard();
|
||||
noticeParams.setPublicType("PLB001");
|
||||
noticeParams.setRowCnt(5);
|
||||
noticeParams.setRowCnt(8);
|
||||
noticeParams.setDownOrganCdList(loginUser.getDownOrganCdList());
|
||||
noticeParams.setUpOrganCdList(loginUser.getUpOrganCdList());
|
||||
mav.addObject("noticeList", publicBoardService.selectContentList(noticeParams));
|
||||
FaRptBoard faRpt = new FaRptBoard();
|
||||
faRpt.setActiveTab("receive");
|
||||
faRpt.setRowCnt(5);
|
||||
faRpt.setRowCnt(8);
|
||||
faRpt.setStatus("DST007");
|
||||
faRpt.setReceiveUserSeq(loginUser.getUserSeq());
|
||||
mav.addObject("faRptList", faRptService.selectFaRptList(faRpt));
|
||||
AffairBoard affair = new AffairBoard();
|
||||
affair.setAffairCategory("CAT215");
|
||||
affair.setRatingOrgan(loginUser.getOgCd());
|
||||
affair.setRowCnt(5);
|
||||
affair.setRowCnt(8);
|
||||
mav.addObject("affair1List", affairService.selectAffairBoardList(affair));
|
||||
affair.setAffairCategory("CAT216");
|
||||
mav.addObject("affair2List", affairService.selectAffairBoardList(affair));
|
||||
|
|
|
|||
|
|
@ -128,6 +128,7 @@ public class SecurityConfig{
|
|||
"/translator/**",
|
||||
"/police/**",
|
||||
"/sri/**",
|
||||
"/counterIntelligence/**",
|
||||
"/resetSession"
|
||||
).hasRole(Role.USER.name()) // USER 접근 허용
|
||||
.antMatchers(
|
||||
|
|
|
|||
|
|
@ -1,54 +0,0 @@
|
|||
package com.dbnt.faisp.kwms.model;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
import org.hibernate.annotations.DynamicInsert;
|
||||
import org.hibernate.annotations.DynamicUpdate;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
import java.time.LocalDate;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
@Entity
|
||||
@NoArgsConstructor
|
||||
//@DynamicInsert
|
||||
//@DynamicUpdate
|
||||
//@Table(name = "V_HORD_YUNDONG_STAT")
|
||||
public class VHordYundongStat {
|
||||
// @Id
|
||||
// @Column(name = "HORD_YUNDONG_CD")
|
||||
// private String hordYundongCd;
|
||||
// @Column(name = "DIC_CODE")
|
||||
// private String dicCode;
|
||||
// @Column(name = "IMYONG_GUBUN_CD")
|
||||
// private String imyongGubunCd;
|
||||
// @Column(name = "IMYONG_GUBUN_NM")
|
||||
// private String imyongGubunNm;
|
||||
// @Column(name = "BUSEO_CD")
|
||||
// private String buseoCd;
|
||||
// @Column(name = "JIKGEUP_CD")
|
||||
// private String jikgeupCd;
|
||||
// @Column(name = "START_DATE")
|
||||
// private LocalDate startDate;
|
||||
// @Column(name = "END_DATE")
|
||||
// private LocalDate endDate;
|
||||
// @Column(name = "WORK_DAY")
|
||||
// private Integer workDay;
|
||||
// @Column(name = "WORK_MONTH")
|
||||
// private Integer workMonth;
|
||||
// @Column(name = "WORK_MONTH_DESC")
|
||||
// private String workMonthDesc;
|
||||
// @Column(name = "IMYONGBUSEO_CHONGCHING")
|
||||
// private String imyongbuseoChongching;
|
||||
// @Column(name = "IMYONG_JIKGEUP_NM")
|
||||
// private String imyongJikgeupNm;
|
||||
// @Column(name = "SYS_DATE")
|
||||
// private LocalDateTime sysDate;
|
||||
|
||||
}
|
||||
|
|
@ -1,13 +0,0 @@
|
|||
package com.dbnt.faisp.kwms.repository;
|
||||
|
||||
import com.dbnt.faisp.kwms.model.VHordYundongStat;
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
//public interface VHordYundongStatRepository extends JpaRepository<VHordYundongStat, String> {
|
||||
public interface VHordYundongStatRepository {
|
||||
|
||||
// List<VHordYundongStat> findByDicCodeOrderByStartDateDesc(String dicCode);
|
||||
}
|
||||
|
|
@ -3,7 +3,9 @@ package com.dbnt.faisp.main.codeMgt.repository;
|
|||
import com.dbnt.faisp.main.codeMgt.model.CodeCatg;
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
public interface CodeCatgRepository extends JpaRepository<CodeCatg, String> {
|
||||
|
||||
List<CodeCatg> findAllByOrderByCategoryCd();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,6 +13,6 @@ public interface CodeMgtRepository extends JpaRepository<CodeMgt, CodeMgt.CodeMg
|
|||
List<CodeMgt> findByCategoryCdAndUseChkOrderByOrderNumAsc(String categoryCd, String useChk);
|
||||
Optional<CodeMgt> findByCategoryCdAndItemValue(String categoryCd, String itemValue);
|
||||
List<CodeMgt> findByUseChkOrderByItemCdAsc(String useChk);
|
||||
List<CodeMgt> findByOrderByOrderNumAsc();
|
||||
List<CodeMgt> findByOrderByOrderNumAscItemCdAsc();
|
||||
Optional<CodeMgt> findTop1ByCategoryCdOrderByItemCdDesc(String categoryCd);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ public class CodeMgtService{
|
|||
}
|
||||
|
||||
public List<CodeCatg> selectCodeCatgAndChild() {
|
||||
List<CodeCatg> codeCatgList = codeCatgRepository.findAll();
|
||||
List<CodeCatg> codeCatgList = codeCatgRepository.findAllByOrderByCategoryCd();
|
||||
for(CodeCatg codeCatg: codeCatgList){
|
||||
codeCatg.setItemList(codeMgtRepository.findByCategoryCdOrderByItemCdAsc(codeCatg.getCategoryCd()));
|
||||
}
|
||||
|
|
@ -73,8 +73,8 @@ public class CodeMgtService{
|
|||
}
|
||||
|
||||
public Map<String, List<CodeMgt>> getCommonCode() {
|
||||
List<CodeCatg> categoryList = codeCatgRepository.findAll();
|
||||
List<CodeMgt> codeList = codeMgtRepository.findByOrderByOrderNumAsc();
|
||||
List<CodeCatg> categoryList = codeCatgRepository.findAllByOrderByCategoryCd();
|
||||
List<CodeMgt> codeList = codeMgtRepository.findByOrderByOrderNumAscItemCdAsc();
|
||||
Map<String, List<CodeMgt>> categoryMap = new HashMap<>();
|
||||
for(CodeCatg category: categoryList){
|
||||
List<CodeMgt> childList = new ArrayList<>();
|
||||
|
|
@ -102,10 +102,10 @@ public class CodeMgtService{
|
|||
}
|
||||
|
||||
public List<CodeCatg> selectAllCategoryList() {
|
||||
return codeCatgRepository.findAll();
|
||||
return codeCatgRepository.findAllByOrderByCategoryCd();
|
||||
}
|
||||
|
||||
public List<CodeMgt> selectAllCodeList() {
|
||||
return codeMgtRepository.findByOrderByOrderNumAsc();
|
||||
return codeMgtRepository.findByOrderByOrderNumAscItemCdAsc();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,66 @@
|
|||
package com.dbnt.faisp.main.counterIntelligence;
|
||||
|
||||
import com.dbnt.faisp.main.authMgt.service.AuthMgtService;
|
||||
import com.dbnt.faisp.main.codeMgt.service.CodeMgtService;
|
||||
import com.dbnt.faisp.main.counterIntelligence.model.CounterIntelligenceWork;
|
||||
import com.dbnt.faisp.main.counterIntelligence.service.CounterIntelligenceService;
|
||||
import com.dbnt.faisp.main.userInfo.model.UserInfo;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.security.core.annotation.AuthenticationPrincipal;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.ArrayList;
|
||||
|
||||
@RestController
|
||||
@RequiredArgsConstructor
|
||||
@RequestMapping("/counterIntelligence")
|
||||
public class CounterIntelligenceController {
|
||||
private final CounterIntelligenceService ciService;
|
||||
private final AuthMgtService authMgtService;
|
||||
private final CodeMgtService codeMgtService;
|
||||
|
||||
@GetMapping("/ciWorkList")
|
||||
public ModelAndView ciWorkListPage(@AuthenticationPrincipal UserInfo loginUser, CounterIntelligenceWork ciWork){
|
||||
ModelAndView mav = new ModelAndView("counterIntelligence/ciWorkBoard");
|
||||
mav.addObject("searchUrl", "/counterIntelligence/ciWorkList");
|
||||
String accessAuth = authMgtService.selectAccessConfigList
|
||||
(loginUser.getUserSeq(), "/counterIntelligence/ciWorkList").get(0).getAccessAuth();
|
||||
mav.addObject("accessAuth", accessAuth);
|
||||
if(accessAuth.equals("ACC003")){
|
||||
mav.addObject("downOrganCdList", loginUser.getDownOrganCdList());
|
||||
}
|
||||
|
||||
ciWork.setQueryInfo();
|
||||
mav.addObject("faRptList", new ArrayList<CounterIntelligenceWork>());
|
||||
ciWork.setContentCnt(0);
|
||||
ciWork.setPaginationInfo();
|
||||
mav.addObject("searchParams", ciWork);
|
||||
return mav;
|
||||
}
|
||||
|
||||
@GetMapping("/ciWorkEditModal")
|
||||
public ModelAndView ciWorkEditModal(@AuthenticationPrincipal UserInfo loginUser, CounterIntelligenceWork ciWork){
|
||||
ModelAndView mav = new ModelAndView("counterIntelligence/ciWorkEditModal");
|
||||
|
||||
mav.addObject("ciwrCodeList", codeMgtService.selectCodeMgtList("CIWR"));
|
||||
mav.addObject("atCodeList", codeMgtService.selectCodeMgtList("AT"));
|
||||
mav.addObject("at2CodeList", ciWork.getCiwKey()!=null?codeMgtService.selectCodeMgtList(ciWork.getArrestType2()):null);
|
||||
if(ciWork.getCiwKey()==null){
|
||||
ciWork.setWrtOrgan(loginUser.getOgCd());
|
||||
ciWork.setWrtPart(loginUser.getOfcCd());
|
||||
ciWork.setWrtUserSeq(loginUser.getUserSeq());
|
||||
ciWork.setWrtUserGrd(loginUser.getTitleCd());
|
||||
ciWork.setWrtUserNm(loginUser.getUserNm());
|
||||
ciWork.setWrtDt(LocalDateTime.now());
|
||||
}else{
|
||||
ciWork = ciService.selectCounterIntelligenceWork(ciWork.getCiwKey());
|
||||
|
||||
}
|
||||
mav.addObject("ciWork", ciWork);
|
||||
return mav;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
package com.dbnt.faisp.main.counterIntelligence.mapper;
|
||||
|
||||
import com.dbnt.faisp.main.faRpt.model.FaRptBoard;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
@Mapper
|
||||
public interface CounterIntelligenceMapper {
|
||||
|
||||
String selectHashTags(Integer ciwKey);
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,46 @@
|
|||
package com.dbnt.faisp.main.counterIntelligence.model;
|
||||
|
||||
import com.dbnt.faisp.config.FileInfo;
|
||||
import lombok.*;
|
||||
import org.hibernate.annotations.DynamicInsert;
|
||||
import org.hibernate.annotations.DynamicUpdate;
|
||||
|
||||
import javax.persistence.*;
|
||||
import java.io.Serializable;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
@Entity
|
||||
@NoArgsConstructor
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@Table(name = "ciw_file")
|
||||
@IdClass(CiwFile.CiwFileId.class)
|
||||
public class CiwFile extends FileInfo {
|
||||
@Id
|
||||
@Column(name = "ciw_key")
|
||||
private Integer ciwKey;
|
||||
@Id
|
||||
@Column(name = "file_seq")
|
||||
private Integer fileSeq;
|
||||
@Column(name = "orig_nm")
|
||||
private String origNm;
|
||||
@Column(name = "conv_nm")
|
||||
private String convNm;
|
||||
@Column(name = "file_extn")
|
||||
private String fileExtn;
|
||||
@Column(name = "file_size")
|
||||
private String fileSize;
|
||||
@Column(name = "save_path")
|
||||
private String savePath;
|
||||
|
||||
|
||||
@Embeddable
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public static class CiwFileId implements Serializable {
|
||||
private Integer ciwKey;
|
||||
private Integer fileSeq;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,71 @@
|
|||
package com.dbnt.faisp.main.counterIntelligence.model;
|
||||
|
||||
import com.dbnt.faisp.config.BaseModel;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
import org.hibernate.annotations.DynamicInsert;
|
||||
import org.hibernate.annotations.DynamicUpdate;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import javax.persistence.*;
|
||||
import java.time.LocalDate;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
@Entity
|
||||
@NoArgsConstructor
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@Table(name = "counter_intelligence_work")
|
||||
public class CounterIntelligenceWork extends BaseModel {
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
@Column(name = "ciw_key")
|
||||
private Integer ciwKey;
|
||||
@Column(name = "status")
|
||||
private String status;
|
||||
@Column(name = "work_rating")
|
||||
private String workRating;
|
||||
@Column(name = "work_start_date")
|
||||
private LocalDate workStartDate;
|
||||
@Column(name = "work_end_date")
|
||||
private LocalDate workEndDate;
|
||||
@Column(name = "re_rating_date1")
|
||||
private LocalDate reRatingDate1;
|
||||
@Column(name = "re_rating_date2")
|
||||
private LocalDate reRatingDate2;
|
||||
@Column(name = "arrest_type1")
|
||||
private String arrestType1;
|
||||
@Column(name = "arrest_type2")
|
||||
private String arrestType2;
|
||||
@Column(name = "title")
|
||||
private String title;
|
||||
@Column(name = "summary_info")
|
||||
private String summaryInfo;
|
||||
@Column(name = "content")
|
||||
private String content;
|
||||
@Column(name = "wrt_organ")
|
||||
private String wrtOrgan;
|
||||
@Column(name = "wrt_part")
|
||||
private String wrtPart;
|
||||
@Column(name = "wrt_user_seq")
|
||||
private Integer wrtUserSeq;
|
||||
@Column(name = "wrt_user_grd")
|
||||
private String wrtUserGrd;
|
||||
@Column(name = "wrt_user_nm")
|
||||
private String wrtUserNm;
|
||||
@Column(name = "wrt_dt")
|
||||
private LocalDateTime wrtDt;
|
||||
|
||||
@Transient
|
||||
private String hashTags;
|
||||
@Transient
|
||||
private Integer fileCnt;
|
||||
@Transient
|
||||
private List<CiwFile> fileList;
|
||||
@Transient
|
||||
private List<MultipartFile> multipartFileList;
|
||||
}
|
||||
|
|
@ -0,0 +1,36 @@
|
|||
package com.dbnt.faisp.main.counterIntelligence.model;
|
||||
|
||||
import lombok.*;
|
||||
import org.hibernate.annotations.DynamicInsert;
|
||||
import org.hibernate.annotations.DynamicUpdate;
|
||||
|
||||
import javax.persistence.*;
|
||||
import java.io.Serializable;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
@Entity
|
||||
@NoArgsConstructor
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@Table(name = "hash_tag_link_ciw")
|
||||
@IdClass(HashTagLinkCiw.HashTagLinkCiwId.class)
|
||||
public class HashTagLinkCiw {
|
||||
@Id
|
||||
@Column(name = "ciw_key")
|
||||
private Integer ciwKey;
|
||||
@Id
|
||||
@Column(name = "tag_key")
|
||||
private Integer tagKey;
|
||||
|
||||
|
||||
@Embeddable
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public static class HashTagLinkCiwId implements Serializable {
|
||||
private Integer ciwKey;
|
||||
private Integer tagKey;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
package com.dbnt.faisp.main.counterIntelligence.repository;
|
||||
|
||||
import com.dbnt.faisp.main.counterIntelligence.model.CiwFile;
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
|
||||
|
||||
public interface CiwFileRepository extends JpaRepository<CiwFile, CiwFile.CiwFileId> {
|
||||
List<CiwFile> findByCiwKey(Integer ciwKey);
|
||||
Optional<CiwFile> findTopByCiwKeyOrderByFileSeq(Integer ciwKey);
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
package com.dbnt.faisp.main.counterIntelligence.repository;
|
||||
|
||||
import com.dbnt.faisp.main.counterIntelligence.model.CounterIntelligenceWork;
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
|
||||
|
||||
public interface CounterIntelligenceWorkRepository extends JpaRepository<CounterIntelligenceWork, Integer> {
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
package com.dbnt.faisp.main.counterIntelligence.repository;
|
||||
|
||||
import com.dbnt.faisp.main.counterIntelligence.model.HashTagLinkCiw;
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
|
||||
|
||||
public interface HashTagLinkCiwRepository extends JpaRepository<HashTagLinkCiw, HashTagLinkCiw.HashTagLinkCiwId> {
|
||||
void deleteByCiwKey(Integer ciwKey);
|
||||
}
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
package com.dbnt.faisp.main.counterIntelligence.service;
|
||||
|
||||
import com.dbnt.faisp.main.counterIntelligence.mapper.CounterIntelligenceMapper;
|
||||
import com.dbnt.faisp.main.counterIntelligence.model.CounterIntelligenceWork;
|
||||
import com.dbnt.faisp.main.counterIntelligence.repository.CiwFileRepository;
|
||||
import com.dbnt.faisp.main.counterIntelligence.repository.CounterIntelligenceWorkRepository;
|
||||
import com.dbnt.faisp.main.counterIntelligence.repository.HashTagLinkCiwRepository;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
@Service
|
||||
@RequiredArgsConstructor
|
||||
public class CounterIntelligenceService {
|
||||
private final CounterIntelligenceMapper ciMapper;
|
||||
private final CounterIntelligenceWorkRepository ciwRepository;
|
||||
private final CiwFileRepository ciwFileRepository;
|
||||
private final HashTagLinkCiwRepository hashTagLinkCiwRepository;
|
||||
|
||||
public CounterIntelligenceWork selectCounterIntelligenceWork(Integer ciwKey) {
|
||||
CounterIntelligenceWork ciw = ciwRepository.findById(ciwKey).orElse(null);
|
||||
if(ciw!=null){
|
||||
ciw.setFileList(ciwFileRepository.findByCiwKey(ciwKey));
|
||||
ciw.setHashTags(ciMapper.selectHashTags(ciwKey));
|
||||
}
|
||||
return ciw;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,6 +1,5 @@
|
|||
package com.dbnt.faisp.main.faRpt.model;
|
||||
|
||||
import com.dbnt.faisp.config.FileInfo;
|
||||
import lombok.*;
|
||||
import org.hibernate.annotations.DynamicInsert;
|
||||
import org.hibernate.annotations.DynamicUpdate;
|
||||
|
|
@ -16,7 +15,7 @@ import java.io.Serializable;
|
|||
@DynamicUpdate
|
||||
@Table(name = "hash_tag_link_fa_rpt")
|
||||
@IdClass(HashTagLinkFaRpt.HashTagLinkFaRptId.class)
|
||||
public class HashTagLinkFaRpt extends FileInfo {
|
||||
public class HashTagLinkFaRpt {
|
||||
@Id
|
||||
@Column(name = "fa_rpt_key")
|
||||
private Integer faRptKey;
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ spring.servlet.multipart.location=/backup/faisp/uploadFiles
|
|||
spring.servlet.multipart.max-file-size=200MB
|
||||
spring.servlet.multipart.max-request-size=500MB
|
||||
|
||||
site.domain=10.187.58.46:8080
|
||||
site.domain=10.187.58.15
|
||||
|
||||
#file
|
||||
file.dir=/backup/faisp/uploadFiles
|
||||
|
|
@ -37,9 +37,9 @@ spring.datasource-main.username=faisp
|
|||
spring.datasource-main.password=dbnt0928!
|
||||
#tibero
|
||||
spring.datasource-kwms.driverClassName=com.tmax.tibero.jdbc.TbDriver
|
||||
spring.datasource-kwms.jdbcUrl=jdbc:tibero:thin:@10.29.2.199:8629:tibero
|
||||
spring.datasource-kwms.username=smartonek_hrms
|
||||
spring.datasource-kwms.password=SmartOneK5715
|
||||
spring.datasource-kwms.jdbcUrl=jdbc:tibero:thin:@10.188.171.206:9629:KCGHRDB
|
||||
spring.datasource-kwms.username=KCGEXT
|
||||
spring.datasource-kwms.password=kcgextuser
|
||||
|
||||
#jpa
|
||||
spring.jpa.show-sql=false
|
||||
|
|
|
|||
|
|
@ -0,0 +1,14 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.dbnt.faisp.main.counterIntelligence.mapper.CounterIntelligenceMapper">
|
||||
|
||||
<select id="selectHashTags" resultType="string" parameterType="int">
|
||||
select array_to_string(array_agg(b.tag_nm), ' ') as hashTags
|
||||
from hash_tag_link_ciw a
|
||||
inner join hash_tag b on a.tag_key = b.tag_key
|
||||
where a.ciw_key = #{ciwKey}
|
||||
</select>
|
||||
</mapper>
|
||||
|
|
@ -116,3 +116,8 @@
|
|||
.mouse-hover:hover{
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.codeMgtDiv{
|
||||
max-height: 700px;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
|
@ -0,0 +1,46 @@
|
|||
$(document).on('click', '#addCiWorkBtn', function (){
|
||||
getCiWorkEditModal(null);
|
||||
})
|
||||
|
||||
$(document).on('click', '#arrestType1', function (){
|
||||
getArrestType2Option(this.value);
|
||||
})
|
||||
|
||||
function getCiWorkEditModal(ciwKey){
|
||||
$.ajax({
|
||||
url: '/counterIntelligence/ciWorkEditModal',
|
||||
data: {ciwKey: ciwKey},
|
||||
type: 'GET',
|
||||
dataType:"html",
|
||||
success: function(html){
|
||||
$("#ciWorkEditModalContent").empty().append(html)
|
||||
$(".dateSelector").datepicker({
|
||||
format: "yyyy-mm-dd",
|
||||
language: "ko",
|
||||
autoclose: true
|
||||
});
|
||||
setUploadDiv();
|
||||
setEditor('editor', '400');
|
||||
$("#ciWorkEditModal").modal('show');
|
||||
},
|
||||
error:function(){
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function getArrestType2Option(categoryCd){
|
||||
$.ajax({
|
||||
url: '/selectBoxOptions',
|
||||
data: {categoryCd: categoryCd},
|
||||
type: 'GET',
|
||||
dataType:"html",
|
||||
success: function(html){
|
||||
const arrestType2 = $("#arrestType2");
|
||||
arrestType2.empty().append(html);
|
||||
},
|
||||
error:function(){
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
@ -51,8 +51,8 @@ $(document).on('click', '#saveMenuBtn', function (){
|
|||
if(result!==""){
|
||||
alert("url: "+result+"로 저장되어있습니다.")
|
||||
}else{
|
||||
// location.reload();
|
||||
alert("저장되었습니다.")
|
||||
location.reload();
|
||||
}
|
||||
contentFade("out");
|
||||
},
|
||||
|
|
|
|||
|
|
@ -8,10 +8,10 @@
|
|||
<th>대분류</th>
|
||||
<th>중분류</th>
|
||||
<th>소분류</th>
|
||||
<th class="selectTh" data-type="access">해제</th>
|
||||
<th:block th:each="code:${session.commonCode.get('ACC')}">
|
||||
<th class="selectTh mouse-hover" data-type="access" th:data-target="${code.itemCd}" th:text="${code.itemValue}"></th>
|
||||
</th:block>
|
||||
<th class="selectTh" data-type="access">해제</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
|
@ -35,14 +35,14 @@
|
|||
<td th:text="${commonCode.itemValue}"></td>
|
||||
</th:block>
|
||||
</th:block>
|
||||
<td class="radioTd">
|
||||
<input type="radio" class="accessRadioEmpty" th:name="${#strings.concat('accessAuth',accessConfig.menuKey)}" value="">
|
||||
</td>
|
||||
<th:block th:each="code:${session.commonCode.get('ACC')}">
|
||||
<td class="radioTd">
|
||||
<input type="radio" th:class="${#strings.concat('accessRadio', code.itemCd)}" th:name="${#strings.concat('accessAuth',accessConfig.menuKey)}" th:value="${code.itemCd}" th:checked="${code.itemCd eq accessConfig.accessAuth}">
|
||||
</td>
|
||||
</th:block>
|
||||
<td class="radioTd">
|
||||
<input type="radio" class="accessRadioEmpty" th:name="${#strings.concat('accessAuth',accessConfig.menuKey)}" value="">
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
|
@ -54,10 +54,10 @@
|
|||
<th>대분류</th>
|
||||
<th>중분류</th>
|
||||
<th>소분류</th>
|
||||
<th class="selectTh" data-type="approval">해제</th>
|
||||
<th:block th:each="code:${session.commonCode.get('APC')}">
|
||||
<th class="selectTh mouse-hover" data-type="approval" th:data-target="${code.itemCd}" th:text="${code.itemValue}"></th>
|
||||
</th:block>
|
||||
<th class="selectTh" data-type="approval">해제</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
|
@ -81,14 +81,14 @@
|
|||
<td th:text="${commonCode.itemValue}"></td>
|
||||
</th:block>
|
||||
</th:block>
|
||||
<td class="radioTd">
|
||||
<input type="radio" class="approvalRadioEmpty" th:name="${#strings.concat('approvalAuth',approvalConfig.menuKey)}" value="">
|
||||
</td>
|
||||
<th:block th:each="code:${session.commonCode.get('APC')}">
|
||||
<td class="radioTd">
|
||||
<input type="radio" th:class="${#strings.concat('approvalRadio', code.itemCd)}" th:name="${#strings.concat('approvalAuth',approvalConfig.menuKey)}" th:value="${code.itemCd}" th:checked="${code.itemCd eq approvalConfig.approvalAuth}">
|
||||
</td>
|
||||
</th:block>
|
||||
<td class="radioTd">
|
||||
<input type="radio" class="approvalRadioEmpty" th:name="${#strings.concat('approvalAuth',approvalConfig.menuKey)}" value="">
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
|
|
|||
|
|
@ -31,27 +31,29 @@
|
|||
<button class="btn btn-sm btn-outline-primary" id="categoryAddBtn"><i class="bi bi-plus-lg"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-sm table-hover table-bordered">
|
||||
<thead>
|
||||
<tr class="table-secondary">
|
||||
<th>분류코드</th>
|
||||
<th>분류명</th>
|
||||
<th>설명</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="table-group-divider" id="categoryTbody">
|
||||
<th:block th:each="category:${catgList}">
|
||||
<tr class="categoryTr" th:data-categorycd="${category.categoryCd}">
|
||||
<input type="hidden" class="categoryCd" th:value="${category.categoryCd}">
|
||||
<input type="hidden" class="categoryValue" th:value="${category.categoryValue}">
|
||||
<input type="hidden" class="status" value="saved">
|
||||
<td th:text="${category.categoryCd}"></td>
|
||||
<td th:text="${category.categoryValue}"></td>
|
||||
<td><input type="text" class="form-control form-control-sm description" th:value="${category.description}"></td>
|
||||
<div class="codeMgtDiv">
|
||||
<table class="table table-sm table-hover table-bordered">
|
||||
<thead>
|
||||
<tr class="table-secondary">
|
||||
<th>분류코드</th>
|
||||
<th>분류명</th>
|
||||
<th>설명</th>
|
||||
</tr>
|
||||
</th:block>
|
||||
</tbody>
|
||||
</table>
|
||||
</thead>
|
||||
<tbody class="table-group-divider" id="categoryTbody">
|
||||
<th:block th:each="category:${catgList}">
|
||||
<tr class="categoryTr" th:data-categorycd="${category.categoryCd}">
|
||||
<input type="hidden" class="categoryCd" th:value="${category.categoryCd}">
|
||||
<input type="hidden" class="categoryValue" th:value="${category.categoryValue}">
|
||||
<input type="hidden" class="status" value="saved">
|
||||
<td th:text="${category.categoryCd}"></td>
|
||||
<td th:text="${category.categoryValue}"></td>
|
||||
<td><input type="text" class="form-control form-control-sm description" th:value="${category.description}"></td>
|
||||
</tr>
|
||||
</th:block>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -63,33 +65,35 @@
|
|||
<button class="btn btn-sm btn-outline-primary" id="codeAddBtn"><i class="bi bi-plus-lg"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-sm table-hover table-bordered">
|
||||
<thead>
|
||||
<tr class="table-secondary">
|
||||
<th>하위코드</th>
|
||||
<th>코드값</th>
|
||||
<th class="w-100p">정렬순번</th>
|
||||
<th>사용</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="table-group-divider" id="codeTbody">
|
||||
<th:block th:each="code:${codeList}">
|
||||
<tr class="codeTr" th:classappend="${code.categoryCd}" style="display: none">
|
||||
<input type="hidden" class="categoryCd" th:value="${code.categoryCd}">
|
||||
<input type="hidden" class="itemCd" th:value="${code.itemCd}">
|
||||
<input type="hidden" class="itemValue" th:value="${code.itemValue}">
|
||||
<input type="hidden" class="status" value="saved">
|
||||
<td th:text="${code.itemCd}"></td>
|
||||
<td th:text="${code.itemValue}"></td>
|
||||
<td class="w-100p"><input type="number" class="form-control form-control-sm codeInfo orderNum" min="0" th:value="${code.orderNum}"></td>
|
||||
<td><input type="checkbox" class="codeInfo useChk" th:checked="${code.useChk eq 'T'}"></td>
|
||||
<div class="codeMgtDiv">
|
||||
<table class="table table-sm table-hover table-bordered">
|
||||
<thead>
|
||||
<tr class="table-secondary">
|
||||
<th>하위코드</th>
|
||||
<th>코드값</th>
|
||||
<th class="w-100p">정렬순번</th>
|
||||
<th>사용</th>
|
||||
</tr>
|
||||
</th:block>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr id="emptyTr"><td colspan="4">분류를 선택해주세요.</td></tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</thead>
|
||||
<tbody class="table-group-divider" id="codeTbody">
|
||||
<th:block th:each="code:${codeList}">
|
||||
<tr class="codeTr" th:classappend="${code.categoryCd}" style="display: none">
|
||||
<input type="hidden" class="categoryCd" th:value="${code.categoryCd}">
|
||||
<input type="hidden" class="itemCd" th:value="${code.itemCd}">
|
||||
<input type="hidden" class="itemValue" th:value="${code.itemValue}">
|
||||
<input type="hidden" class="status" value="saved">
|
||||
<td th:text="${code.itemCd}"></td>
|
||||
<td th:text="${code.itemValue}"></td>
|
||||
<td class="w-100p"><input type="number" class="form-control form-control-sm codeInfo orderNum" min="0" th:value="${code.orderNum}"></td>
|
||||
<td><input type="checkbox" class="codeInfo useChk" th:checked="${code.useChk eq 'T'}"></td>
|
||||
</tr>
|
||||
</th:block>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr id="emptyTr"><td colspan="4">분류를 선택해주세요.</td></tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,164 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="ko" xmlns:th="http://www.thymeleaf.org"
|
||||
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
|
||||
layout:decorate="~{layout/layout}">
|
||||
<th:block layout:fragment="script">
|
||||
<script type="text/javascript" th:src="@{/js/counterIntelligence/ciWork.js}"></script>
|
||||
</th:block>
|
||||
<div layout:fragment="content">
|
||||
<main>
|
||||
<div class="row justify-content-between">
|
||||
<div class="col-auto">
|
||||
<h4>방첩공작</h4>
|
||||
</div>
|
||||
<div class="col-auto">
|
||||
<p class="mb-0 mt-2">외사방첩관리 > 방첩공작</p>
|
||||
</div>
|
||||
</div>
|
||||
<input type="hidden" name="_csrf_header" th:value="${_csrf.headerName}"/>
|
||||
<input type="hidden" th:name="${_csrf.parameterName}" th:value="${_csrf.token}"/>
|
||||
<div class="row mx-0">
|
||||
<div class="col-12 card bg-light text-center">
|
||||
<div class="card-body">
|
||||
<form method="get" th:action="${searchUrl}">
|
||||
<input type="hidden" name="pageIndex" id="pageIndex" th:value="${searchParams.pageIndex}">
|
||||
<div class="row justify-content-between py-1">
|
||||
<div class="col-auto">
|
||||
<select class="form-select form-select-sm" name="rowCnt" id="rowCnt">
|
||||
<th:block th:each="num : ${#numbers.sequence(1,5)}">
|
||||
<option th:value="${num*10}" th:text="${num*10}" th:selected="${searchParams.rowCnt eq num*10}"></option>
|
||||
</th:block>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-auto">
|
||||
<div class="row justify-content-end">
|
||||
<div class="col-auto" th:if="${accessAuth eq 'ACC003'}">
|
||||
<select class="form-select form-select-sm" name="wrtOrgan">
|
||||
<option value="">관서 선택</option>
|
||||
<th:block th:each="code:${session.commonCode.get('OG')}">
|
||||
<th:block th:if="${#lists.contains(downOrganCdList, code.itemCd)}">
|
||||
<option th:value="${code.itemCd}" th:text="${code.itemValue}" th:selected="${code.itemCd eq searchParams.wrtOrgan}"></option>
|
||||
</th:block>
|
||||
</th:block>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-auto">
|
||||
<input type="text" class="form-control form-control-sm" placeholder="제목" name="title" th:value="${searchParams.title}">
|
||||
</div>
|
||||
<div class="col-auto">
|
||||
<input type="text" class="form-control form-control-sm" placeholder="해시태그" name="hashTags" th:value="${searchParams.hashTags}">
|
||||
</div>
|
||||
<div class="col-auto" th:if="${accessAuth eq 'ACC003'}">
|
||||
<input type="text" class="form-control form-control-sm" placeholder="작성자" name="wrtUserNm" th:value="${searchParams.wrtUserNm}">
|
||||
</div>
|
||||
<div class="col-auto">
|
||||
<div class="input-group w-auto input-daterange" id="dateSelectorDiv">
|
||||
<input type="text" class="form-control form-control-sm" id="startDate" name="startDate" placeholder="시작일" autocomplete="off" readonly th:value="${searchParams.startDate}">
|
||||
<input type="text" class="form-control form-control-sm" id="endDate" name="endDate" placeholder="종료일" autocomplete="off" readonly th:value="${searchParams.endDate}">
|
||||
</div>
|
||||
</div>
|
||||
<div class=" col-auto">
|
||||
<input type="submit" class="btn btn-sm btn-primary" id="searchBtn" value="검색">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<table class="table table-sm table-bordered table-hover">
|
||||
<thead>
|
||||
<tr class="table-secondary">
|
||||
<th></th>
|
||||
<th>분류</th>
|
||||
<th>제목</th>
|
||||
<th>관서</th>
|
||||
<th>부서</th>
|
||||
<th>작성자</th>
|
||||
<th>작성일시</th>
|
||||
<th>첨부파일</th>
|
||||
<th>열람수</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="table-group-divider">
|
||||
<!--<tr class="faRptTr" th:each="faRpt:${faRptList}">
|
||||
<input type="hidden" class="faRptKey" th:value="${faRpt.faRptKey}">
|
||||
<td><input type="checkbox" class="trChkBox"></td>
|
||||
<td th:if="${faRpt.status ne 'receive'}">
|
||||
<th:block th:each="commonCode:${session.commonCode.get('DST')}">
|
||||
<th:text th:if="${commonCode.itemCd eq faRpt.status}" th:text="${commonCode.itemValue}"></th:text>
|
||||
</th:block>
|
||||
</td>
|
||||
<td>
|
||||
<th:block th:each="commonCode:${session.commonCode.get('FRC')}">
|
||||
<th:text th:if="${commonCode.itemCd eq faRpt.faRptType}" th:text="${commonCode.itemValue}"></th:text>
|
||||
</th:block>
|
||||
</td>
|
||||
<td th:text="${faRpt.title}"></td>
|
||||
<th:block th:each="commonCode:${session.commonCode.get('OG')}">
|
||||
<td th:if="${faRpt.wrtOrgan eq commonCode.itemCd}" th:text="${commonCode.itemValue}"></td>
|
||||
</th:block>
|
||||
<th:block th:each="commonCode:${session.commonCode.get('OFC')}">
|
||||
<td th:if="${faRpt.wrtPart eq commonCode.itemCd}" th:text="${commonCode.itemValue}"></td>
|
||||
</th:block>
|
||||
<td th:text="${faRpt.wrtUserNm}"></td>
|
||||
<td th:text="${#temporals.format(faRpt.wrtDt, 'yyyy-MM-dd HH:mm')}"></td>
|
||||
<td th:text="${faRpt.fileCnt eq null?'파일 없음':#strings.concat(faRpt.fileCnt,' 건')}"></td>
|
||||
<td th:text="|${faRpt.readCnt}/${faRpt.userCnt}|"></td>
|
||||
</tr>-->
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row justify-content-between">
|
||||
<div class="col-auto"></div>
|
||||
<div class="col-auto">
|
||||
<nav aria-label="Page navigation">
|
||||
<ul class="pagination mb-0">
|
||||
<th:block th:if="${searchParams.pageIndex>3}">
|
||||
<li class="page-item" th:data-pageindex="${(searchParams.pageIndex)-3}">
|
||||
<a class="page-link" href="#" aria-label="Previous">
|
||||
<span aria-hidden="true">«</span>
|
||||
</a>
|
||||
</li>
|
||||
</th:block>
|
||||
<th:block th:each="num : ${#numbers.sequence(searchParams.startNum, searchParams.endNum)}">
|
||||
<li class="page-item" th:data-pageindex="${num}" th:classappend="${searchParams.pageIndex eq num?'active':''}">
|
||||
<a class="page-link" href="#" th:text="${num}"></a>
|
||||
</li>
|
||||
</th:block>
|
||||
<th:block th:if="${searchParams.maxNum>searchParams.endNum+2}">
|
||||
<li class="page-item" th:data-pageindex="${(searchParams.pageIndex)+3}">
|
||||
<a class="page-link" href="#" aria-label="Next">
|
||||
<span aria-hidden="true">»</span>
|
||||
</a>
|
||||
</li>
|
||||
</th:block>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
<div class="col-auto">
|
||||
<input type="button" class="btn btn-success" value="등록" id="addCiWorkBtn" th:unless="${accessAuth eq 'ACC001'}">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<div class="modal fade" id="ciWorkEditModal" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1" aria-labelledby="ciWorkModalLabel" aria-hidden="true">
|
||||
<div class="modal-dialog modal-xl modal-dialog-scrollable">
|
||||
<div class="modal-content" id="ciWorkEditModalContent">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal fade" id="ciWorkViewModal" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1" aria-labelledby="ciWorkModalLabel" aria-hidden="true">
|
||||
<div class="modal-dialog modal-xl modal-dialog-scrollable">
|
||||
<div class="modal-content" id="ciWorkViewModalBody">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,133 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="ko" xmlns:th="http://www.thymeleaf.org">
|
||||
<div class="modal-header bg-dark">
|
||||
<h5 class="modal-title text-white" id="ciWorkEditModalLabel" th:text="${ciWork.ciwKey eq null?'방첩공작 등록':'방첩공작 수정'}"></h5>
|
||||
<button type="button" class="btn-close f-invert" data-bs-dismiss="modal" aria-label="Close"></button>
|
||||
</div>
|
||||
<div class="modal-body" id="ciWorkEditBody">
|
||||
<form action="#" method="post" id="ciWorkEditForm">
|
||||
<input type="hidden" name="_csrf_header" th:value="${_csrf.headerName}"/>
|
||||
<input type="hidden" th:name="${_csrf.parameterName}" th:value="${_csrf.token}"/>
|
||||
<input type="hidden" name="ciwKey" th:value="${ciWork.ciwKey}">
|
||||
<input type="hidden" name="wrtOrgan" th:value="${ciWork.wrtOrgan}">
|
||||
<input type="hidden" name="wrtPart" th:value="${ciWork.wrtPart}">
|
||||
<input type="hidden" name="wrtUserSeq" th:value="${ciWork.wrtUserSeq}">
|
||||
<input type="hidden" name="wrtUserGrd" th:value="${ciWork.wrtUserGrd}">
|
||||
<input type="hidden" name="wrtUserNm" th:value="${ciWork.wrtUserNm}">
|
||||
<input type="hidden" name="status" id="status" th:value="${ciWork.status}">
|
||||
<div class="row mb-1">
|
||||
<label for="wrtUserNm" class="col-sm-1 col-form-label col-form-label-sm text-center">작성자</label>
|
||||
<div class="col-sm-2">
|
||||
<th:block th:if="${ciWork.wrtUserGrd eq null}">
|
||||
<input type="text" class="form-control form-control-sm" id="wrtUserNm" th:value="${ciWork.wrtUserNm}" readonly>
|
||||
</th:block>
|
||||
<th:block th:unless="${ciWork.wrtUserGrd eq null}">
|
||||
<th:block th:each="code:${session.commonCode.get('JT')}">
|
||||
<th:block th:if="${code.itemCd eq ciWork.wrtUserGrd}">
|
||||
<input type="text" class="form-control form-control-sm" id="wrtUserNm" th:value="|${code.itemValue} ${ciWork.wrtUserNm}|" readonly>
|
||||
</th:block>
|
||||
</th:block>
|
||||
</th:block>
|
||||
</div>
|
||||
<label for="wrtDt" class="col-sm-1 col-form-label col-form-label-sm text-center">작성일시</label>
|
||||
<div class="col-sm-2">
|
||||
<input type="text" class="form-control form-control-sm" id="wrtDt" name="wrtDt" th:value="${#temporals.format(ciWork.wrtDt, 'yyyy-MM-dd HH:mm')}" readonly>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-1">
|
||||
<label for="workStartDate" class="col-sm-1 col-form-label col-form-label-sm text-center">착수일</label>
|
||||
<div class="col-sm-2">
|
||||
<input type="text" class="form-control form-control-sm dateSelector" id="workStartDate" name="workStartDate" th:value="${#temporals.format(ciWork.workStartDate, 'yyyy-MM-dd')}" readonly>
|
||||
</div>
|
||||
<label for="workEndDate" class="col-sm-1 col-form-label col-form-label-sm text-center">종결일</label>
|
||||
<div class="col-sm-2">
|
||||
<input type="text" class="form-control form-control-sm dateSelector" id="workEndDate" name="workEndDate" th:value="${#temporals.format(ciWork.workEndDate, 'yyyy-MM-dd')}" readonly>
|
||||
</div>
|
||||
<label for="reRatingDate1" class="col-sm-1 col-form-label col-form-label-sm text-center">1차재평가</label>
|
||||
<div class="col-sm-2">
|
||||
<input type="text" class="form-control form-control-sm dateSelector" id="reRatingDate1" name="reRatingDate1" th:value="${#temporals.format(ciWork.reRatingDate1, 'yyyy-MM-dd')}" readonly>
|
||||
</div>
|
||||
<label for="reRatingDate2" class="col-sm-1 col-form-label col-form-label-sm text-center">2차재평가</label>
|
||||
<div class="col-sm-2">
|
||||
<input type="text" class="form-control form-control-sm dateSelector" id="reRatingDate2" name="reRatingDate2" th:value="${#temporals.format(ciWork.reRatingDate2, 'yyyy-MM-dd')}" readonly>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-1">
|
||||
<label for="workRating" class="col-sm-1 col-form-label col-form-label-sm text-center">등급</label>
|
||||
<div class="col-sm-2">
|
||||
<select class="form-select form-select-sm" id="workRating" name="workRating">
|
||||
<option value="">선택해주세요.</option>
|
||||
<th:block th:each="code:${ciwrCodeList}">
|
||||
<option th:value="${code.itemCd}" th:text="${code.itemValue}" th:selected="${code.itemCd eq ciWork.arrestType1}"></option>
|
||||
</th:block>
|
||||
</select>
|
||||
</div>
|
||||
<label for="arrestType1" class="col-sm-1 col-form-label col-form-label-sm text-center">검거유형1</label>
|
||||
<div class="col-sm-2">
|
||||
<select class="form-select form-select-sm" id="arrestType1" name="arrestType1">
|
||||
<option value="">선택해주세요.</option>
|
||||
<th:block th:each="code:${atCodeList}">
|
||||
<option th:value="${code.itemCd}" th:text="${code.itemValue}" th:selected="${code.itemCd eq ciWork.arrestType1}"></option>
|
||||
</th:block>
|
||||
</select>
|
||||
</div>
|
||||
<label for="arrestType2" class="col-sm-1 col-form-label col-form-label-sm text-center">검거유형2</label>
|
||||
<div class="col-sm-2">
|
||||
<select class="form-select form-select-sm" id="arrestType2" name="arrestType2">
|
||||
<option value="">선택해주세요.</option>
|
||||
<th:block th:each="code:${at2CodeList}">
|
||||
<option th:value="${code.itemCd}" th:text="${code.itemValue}" th:selected="${code.itemCd eq ciWork.arrestType1}"></option>
|
||||
</th:block>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-1">
|
||||
<label for="title" class="col-sm-1 col-form-label col-form-label-sm text-center">공작명</label>
|
||||
<div class="col-sm-11">
|
||||
<input type="text" class="form-control form-control-sm" id="title" name="title" th:value="${ciWork.title}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-1 justify-content-center">
|
||||
<label for="summaryInfo" class="col-sm-1 col-form-label col-form-label-sm text-center">사건개요</label>
|
||||
<div class="col-sm-11">
|
||||
<textarea class="form-control form-control-sm" id="summaryInfo" th:utext="${ciWork.summaryInfo}"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-1 justify-content-center">
|
||||
<label for="content" class="col-sm-1 col-form-label col-form-label-sm text-center">주요내용</label>
|
||||
<div class="col-sm-11">
|
||||
<div id="editor"></div>
|
||||
<textarea class="d-none" id="content" th:utext="${ciWork.content}"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-1">
|
||||
<label for="hashTags" class="col-sm-1 col-form-label col-form-label-sm text-center">해시태그</label>
|
||||
<div class="col-sm-11">
|
||||
<input type="text" class="form-control form-control-sm" id="hashTags" name="hashTags" th:value="${ciWork.hashTags}"
|
||||
placeholder="띄어쓰기로 각 태그를 구분합니다. 한 태그 내에서는 띄어쓰기 없이 입력해주세요. ex)태그1 태그2">
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-3">
|
||||
<label for="fileInputer" class="col-sm-1 col-form-label col-form-label-sm text-center">첨부파일</label>
|
||||
<div class="col-sm-11" style="min-height: 70px;">
|
||||
<div class="w-100 h-100 border border-info rounded text-center" id="uploadDiv">
|
||||
<th:block th:if="${#arrays.isEmpty(ciWork.fileList)}">
|
||||
<br>클릭 & 드레그로 파일을 업로드 해주세요.
|
||||
</th:block>
|
||||
<th:block th:unless="${#arrays.isEmpty(ciWork.fileList)}">
|
||||
<div class='row-col-6' th:each="file:${ciWork.fileList}">
|
||||
<span th:data-fileseq="${file.fileSeq}" th:text="|${file.origNm}.${file.fileExtn} ${file.fileSize}|"></span>
|
||||
<a href='#' class='uploadedFileDelete text-danger text-decoration-none'>삭제</a>
|
||||
</div>
|
||||
</th:block>
|
||||
</div>
|
||||
</div>
|
||||
<input type="file" class="d-none" id="fileInputer" multiple>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="modal-footer bg-light">
|
||||
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">닫기</button>
|
||||
<button type="button" class="btn btn-warning" id="saveTempBtn">임시저장</button>
|
||||
<button type="button" class="btn btn-primary" id="saveFaRptBtn">저장</button>
|
||||
</div>
|
||||
|
|
@ -0,0 +1,123 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="ko" xmlns:th="http://www.thymeleaf.org">
|
||||
<div class="modal-header bg-dark">
|
||||
<h5 class="modal-title text-white" id="faRptViewModalLabel">외사정보보고 열람</h5>
|
||||
<button type="button" class="btn-close f-invert" data-bs-dismiss="modal" aria-label="Close"></button>
|
||||
</div>
|
||||
<div class="modal-body" id="faRptViewBody">
|
||||
<input type="hidden" id="faRptKey" th:value="${faRpt.faRptKey}">
|
||||
<ul class="nav nav-tabs" id="userTab" role="tablist">
|
||||
<li class="nav-item" role="presentation">
|
||||
<button class="nav-link active" id="boardTab" data-bs-toggle="tab" data-bs-target="#boardTabPanel" type="button" role="tab" aria-controls="boardTabPanel" aria-selected="true">본문</button>
|
||||
</li>
|
||||
<li class="nav-item" role="presentation">
|
||||
<button class="nav-link" id="readUserTab" data-bs-toggle="tab" data-bs-target="#readUserTabPanel" type="button" role="tab" aria-controls="readUserTabPanel" aria-selected="false">수신자</button>
|
||||
</li>
|
||||
<li class="nav-item" role="presentation" th:if="${#lists.size(faRpt.fileList)>0}">
|
||||
<button class="nav-link" id="fileTab" data-bs-toggle="tab" data-bs-target="#fileTabPanel" type="button" role="tab" aria-controls="fileTabPanel" aria-selected="false" th:text="${#strings.concat('첨부파일(', #lists.size(faRpt.fileList), ')')}"></button>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="tab-content bg-white border border-top-0 p-2">
|
||||
<div class="tab-pane fade p-2 show active" id="boardTabPanel" role="tabpanel" tabindex="0">
|
||||
<div class="row mb-1">
|
||||
<label class="col-sm-1 col-form-label col-form-label-sm text-center">분류</label>
|
||||
<label class="col-sm-2 col-form-label col-form-label-sm text-start">
|
||||
<th:block th:each="code:${session.commonCode.get('FRC')}">
|
||||
<th:block th:if="${code.itemCd eq faRpt.faRptType}" th:text="${code.itemValue}"></th:block>
|
||||
</th:block>
|
||||
</label>
|
||||
<div class="col-6"></div>
|
||||
<label class="col-sm-1 col-form-label col-form-label-sm text-center">작성일시</label>
|
||||
<label class="col-sm-2 col-form-label col-form-label-sm text-start" th:text="${#temporals.format(faRpt.wrtDt, 'yyyy-MM-dd HH:mm')}"></label>
|
||||
<label class="col-sm-1 col-form-label col-form-label-sm text-center">제목</label>
|
||||
<label class="col-sm-8 col-form-label col-form-label-sm text-start" th:text="${faRpt.title}"></label>
|
||||
<label class="col-sm-1 col-form-label col-form-label-sm text-center">작성자</label>
|
||||
<label class="col-sm-2 col-form-label col-form-label-sm text-start" th:text="${faRpt.wrtUserNm}"></label>
|
||||
</div>
|
||||
<hr class="my-1">
|
||||
<div class="row mb-1 justify-content-center">
|
||||
<label class="col-sm-1 col-form-label col-form-label-sm text-center">내용</label>
|
||||
<div class="col-sm-11 form-control-sm" th:utext="${faRpt.content}"></div>
|
||||
</div>
|
||||
<hr class="my-1">
|
||||
<div class="row mb-1">
|
||||
<label class="col-sm-1 col-form-label col-form-label-sm text-center">해시태그</label>
|
||||
<label class="col-sm-11 col-form-label col-form-label-sm text-start" th:text="${faRpt.hashTags}"></label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tab-pane fade p-2" id="readUserTabPanel" role="tabpanel" tabindex="0">
|
||||
<div class="row">
|
||||
<div class="col-1">no</div>
|
||||
<div class="col-9">수신자</div>
|
||||
<div class="col-2">열람</div>
|
||||
</div>
|
||||
<hr class="my-1">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<th:block th:each="readUser, idx:${faRpt.readUserList}">
|
||||
<div class="row my-1">
|
||||
<div class="col-1" th:text="${idx.index+1}"></div>
|
||||
<div class="col-9">
|
||||
<th:block th:each="commonCode:${session.commonCode.get('OG')}">
|
||||
<th:block th:if="${commonCode.itemCd eq readUser.ogCd}" th:text="${commonCode.itemValue}"></th:block>
|
||||
</th:block>
|
||||
<th:block th:each="commonCode:${session.commonCode.get('OFC')}">
|
||||
<th:block th:if="${commonCode.itemCd eq readUser.ofcCd}" th:text="${commonCode.itemValue}"></th:block>
|
||||
</th:block>
|
||||
<!--<th:block th:each="commonCode:${session.commonCode.get('JT')}">
|
||||
<th:block th:if="${commonCode.itemCd eq readUser.titleCd}" th:text="|${commonCode.itemValue} ${readUser.userNm}|"></th:block>
|
||||
</th:block>-->
|
||||
<th:block th:text="${readUser.userNm}"></th:block>
|
||||
</div>
|
||||
<div class="col-2">
|
||||
<th:block th:text="${readUser.readYn eq 'T'?'O':'X'}"></th:block>
|
||||
</div>
|
||||
</div>
|
||||
</th:block>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tab-pane fade p-2" id="fileTabPanel" role="tabpanel" tabindex="0">
|
||||
<div class="row mb-3">
|
||||
<div class="col-sm-12">
|
||||
<table class="table table-sm" id="fileTable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>파일명</th>
|
||||
<th>사이즈</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<th:block th:if="${#lists.isEmpty(faRpt.fileList)}">
|
||||
<tr>
|
||||
<td colspan="2">파일이 없습니다.</td>
|
||||
</tr>
|
||||
</th:block>
|
||||
<th:block th:unless="${#lists.isEmpty(faRpt.fileList)}">
|
||||
<th:block th:each="file:${faRpt.fileList}">
|
||||
<tr class="fileInfoTr">
|
||||
<td>
|
||||
<a href="#" class="fileDownLink" data-board="faRpt"
|
||||
th:data-parentkey="${file.faRptKey}" th:data-fileseq="${file.fileSeq}"
|
||||
th:text="|${file.origNm}.${file.fileExtn}|"></a>
|
||||
</td>
|
||||
<td th:text="${file.fileSize}"></td>
|
||||
</tr>
|
||||
</th:block>
|
||||
</th:block>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer bg-light">
|
||||
<th:block th:if="${userSeq eq faRpt.wrtUserSeq}">
|
||||
<button type="button" class="btn btn-warning" id="editFaRptBtn" th:data-farptkey="${faRpt.faRptKey}">수정</button>
|
||||
</th:block>
|
||||
<th:block th:if="${userSeq ne faRpt.wrtUserSeq}">
|
||||
<button type="button" class="btn btn-success" id="reSendBtn" th:data-farptkey="${faRpt.faRptKey}">회신</button>
|
||||
</th:block>
|
||||
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">닫기</button>
|
||||
</div>
|
||||
Loading…
Reference in New Issue