feat:외사첩보망 -> 운영계획 생성 및 중간저장
parent
30cda893f5
commit
851a1a10a7
|
|
@ -52,6 +52,8 @@ public class BaseService {
|
||||||
protected String majorStatusPath;
|
protected String majorStatusPath;
|
||||||
@Value("${file.dir.monitoring}")
|
@Value("${file.dir.monitoring}")
|
||||||
protected String monitoringPath;
|
protected String monitoringPath;
|
||||||
|
@Value("${file.dir.intelligenceNetwork}")
|
||||||
|
protected String intelligenceNetworkPath;
|
||||||
|
|
||||||
protected String calculationSize(double fileSize){
|
protected String calculationSize(double fileSize){
|
||||||
String[] units = {"bytes", "KB", "MB", "GB", "TB", "PB"};
|
String[] units = {"bytes", "KB", "MB", "GB", "TB", "PB"};
|
||||||
|
|
|
||||||
|
|
@ -139,6 +139,7 @@ public class SecurityConfig{
|
||||||
"/sri/**",
|
"/sri/**",
|
||||||
"/counterIntelligence/**",
|
"/counterIntelligence/**",
|
||||||
"/monitoring/**",
|
"/monitoring/**",
|
||||||
|
"/intelligenceNetwork/**",
|
||||||
"/resetSession"
|
"/resetSession"
|
||||||
).hasRole(Role.USER.name()) // USER 접근 허용
|
).hasRole(Role.USER.name()) // USER 접근 허용
|
||||||
.antMatchers(
|
.antMatchers(
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,155 @@
|
||||||
|
package com.dbnt.faisp.main.fpiMgt.intelligenceNetwork;
|
||||||
|
|
||||||
|
import com.dbnt.faisp.main.authMgt.service.AuthMgtService;
|
||||||
|
import com.dbnt.faisp.main.fpiMgt.intelligenceNetwork.model.OperationPlan;
|
||||||
|
import com.dbnt.faisp.main.fpiMgt.intelligenceNetwork.model.OperationPlanApprv;
|
||||||
|
import com.dbnt.faisp.main.fpiMgt.intelligenceNetwork.service.IntelligenceNetworkService;
|
||||||
|
import com.dbnt.faisp.main.userInfo.model.UserInfo;
|
||||||
|
import lombok.RequiredArgsConstructor;
|
||||||
|
import org.springframework.security.core.annotation.AuthenticationPrincipal;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
import org.springframework.web.multipart.MultipartHttpServletRequest;
|
||||||
|
import org.springframework.web.servlet.ModelAndView;
|
||||||
|
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@RestController
|
||||||
|
@RequiredArgsConstructor
|
||||||
|
@RequestMapping("/intelligenceNetwork")
|
||||||
|
public class IntelligenceNetworkController { // 첩보수집활동 > 해양외사모니터링
|
||||||
|
private final IntelligenceNetworkService intelligenceNetworkService;
|
||||||
|
private final AuthMgtService authMgtService;
|
||||||
|
|
||||||
|
@GetMapping("/operationPlanList/{type}")
|
||||||
|
public ModelAndView operationPlanList(@AuthenticationPrincipal UserInfo loginUser,@PathVariable("type") String type, OperationPlan op){
|
||||||
|
ModelAndView mav = new ModelAndView("igActivities/fpiMgt/intelligenceNetwork/operationPlanList");
|
||||||
|
|
||||||
|
//메뉴권한 확인
|
||||||
|
String accessAuth = authMgtService.selectAccessConfigList(loginUser.getUserSeq(), "/intelligenceNetwork/operationPlanList/all").get(0).getAccessAuth();
|
||||||
|
if(type.equals("all")) {
|
||||||
|
switch (accessAuth){
|
||||||
|
case "ACC001": // 조회
|
||||||
|
case "ACC002": // 작성 // 자신이 작성한 문서만 열람가능
|
||||||
|
op.setWrtUserSeq(loginUser.getUserSeq());
|
||||||
|
break;
|
||||||
|
case "ACC003": // 관리 // 자신 외 하위 기관에서 작성한 문서 열람가능
|
||||||
|
op.setDownOrganCdList(loginUser.getDownOrganCdList());
|
||||||
|
mav.addObject("mgtOrganList", loginUser.getDownOrganCdList());
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}else if(type.equals("stay") || type.equals("commit")) {
|
||||||
|
switch (accessAuth){
|
||||||
|
case "ACC001": // 조회
|
||||||
|
case "ACC002": // 작성 // 자신의 관서 내에서 작성한 문서만 열람가능
|
||||||
|
op.setWrtOrgan(loginUser.getOgCd());
|
||||||
|
break;
|
||||||
|
case "ACC003": // 관리 // 자신 외 하위 기관에서 작성한 문서 열람가능
|
||||||
|
op.setDownOrganCdList(loginUser.getDownOrganCdList());
|
||||||
|
mav.addObject("mgtOrganList", loginUser.getDownOrganCdList());
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//결재권한 확인
|
||||||
|
String apprvAuth = authMgtService.selectApprovalConfigList(loginUser.getUserSeq(), "/intelligenceNetwork/operationPlanList/all").get(0).getApprovalAuth();
|
||||||
|
if(type.equals("stay")) {
|
||||||
|
if(apprvAuth==null) {
|
||||||
|
if(!accessAuth.equals("ACC003")){
|
||||||
|
op.setWrtUserSeq(loginUser.getUserSeq());
|
||||||
|
op.setUserType("normalStayList");
|
||||||
|
}else{
|
||||||
|
op.setUserType("managerStayList");
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
mav.addObject("userNm", loginUser.getUserNm());
|
||||||
|
switch (apprvAuth){
|
||||||
|
case "APC004": // 계장대행
|
||||||
|
case "APC003": // 계장 // 결재대기 문서 조회
|
||||||
|
case "APC002": // 부장대행
|
||||||
|
case "APC001": // 부장 // 결재대기 문서 조회
|
||||||
|
op.setOpState("DST002");
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}else if(type.equals("commit")){
|
||||||
|
if(apprvAuth==null) {
|
||||||
|
if(!accessAuth.equals("ACC003")){
|
||||||
|
op.setWrtUserSeq(loginUser.getUserSeq());
|
||||||
|
op.setUserType("normalCommitList");
|
||||||
|
}else{
|
||||||
|
op.setUserType("managerCommitList");
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
switch (apprvAuth) {
|
||||||
|
case "APC004": // 계장대행
|
||||||
|
case "APC003": // 계장 //
|
||||||
|
case "APC002": // 부장대행
|
||||||
|
case "APC001": // 부장 //
|
||||||
|
op.setUserType("sectionCommitList");
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
mav.addObject("accessAuth", accessAuth);
|
||||||
|
mav.addObject("apprvAuth", apprvAuth);
|
||||||
|
|
||||||
|
op.setQueryInfo();
|
||||||
|
mav.addObject("opList", intelligenceNetworkService.selectOperationPlanList(op));
|
||||||
|
op.setContentCnt(intelligenceNetworkService.selectOperationPlanListCnt(op));
|
||||||
|
op.setPaginationInfo();
|
||||||
|
mav.addObject("type", type);
|
||||||
|
|
||||||
|
mav.addObject("searchUrl", "/intelligenceNetwork/operationPlanList/"+type);
|
||||||
|
mav.addObject("searchParams", op);
|
||||||
|
return mav;
|
||||||
|
}
|
||||||
|
|
||||||
|
@GetMapping("/operationPlanEditModal")
|
||||||
|
public ModelAndView operationPlanEditModal(@AuthenticationPrincipal UserInfo loginUser, OperationPlan op){
|
||||||
|
ModelAndView mav = new ModelAndView("igActivities/fpiMgt/intelligenceNetwork/operationPlanEditModal");
|
||||||
|
if(op.getOpKey()!=null){
|
||||||
|
op = intelligenceNetworkService.selectOperationPlan(op.getOpKey());
|
||||||
|
}
|
||||||
|
|
||||||
|
mav.addObject("op", op);
|
||||||
|
return mav;
|
||||||
|
}
|
||||||
|
|
||||||
|
@PostMapping("/saveOperationPlan")
|
||||||
|
public Integer saveOperationPlan(@AuthenticationPrincipal UserInfo loginUser,OperationPlan op,
|
||||||
|
MultipartHttpServletRequest request, @RequestParam(value = "fileSeq", required = false) List<Integer> deleteFileSeq){
|
||||||
|
op.setMultipartFileList(request.getMultiFileMap().get("uploadFiles"));
|
||||||
|
if(op.getOpKey() == null) {
|
||||||
|
op.setWrtOrgan(loginUser.getOgCd());
|
||||||
|
op.setWrtPart(loginUser.getOfcCd());
|
||||||
|
op.setWrtUserGrd(loginUser.getTitleCd());
|
||||||
|
op.setWrtUserSeq(loginUser.getUserSeq());
|
||||||
|
op.setWrtUserNm(loginUser.getUserNm());
|
||||||
|
op.setWrtDt(LocalDateTime.now());
|
||||||
|
}
|
||||||
|
return intelligenceNetworkService.saveOperationPlan(op,deleteFileSeq);
|
||||||
|
}
|
||||||
|
|
||||||
|
@GetMapping("/operationPlanViewModal")
|
||||||
|
public ModelAndView operationPlanViewModal(@AuthenticationPrincipal UserInfo loginUser, OperationPlan op){
|
||||||
|
ModelAndView mav = new ModelAndView("igActivities/fpiMgt/intelligenceNetwork/operationPlanViewModal");
|
||||||
|
op = intelligenceNetworkService.selectOperationPlan(op.getOpKey());
|
||||||
|
mav.addObject("op", op);
|
||||||
|
mav.addObject("userSeq",loginUser.getUserSeq());
|
||||||
|
//메뉴권한 확인
|
||||||
|
mav.addObject("accessAuth", authMgtService.selectAccessConfigList(loginUser.getUserSeq(), "/intelligenceNetwork/operationPlanList/all").get(0).getAccessAuth());
|
||||||
|
mav.addObject("apprvAuth", authMgtService.selectApprovalConfigList(loginUser.getUserSeq(), "/intelligenceNetwork/operationPlanList/all").get(0).getApprovalAuth());
|
||||||
|
return mav;
|
||||||
|
}
|
||||||
|
|
||||||
|
@PostMapping("/operationPlanStateChange")
|
||||||
|
public Integer operationPlanStateChange(@AuthenticationPrincipal UserInfo loginUser, OperationPlanApprv apprv){
|
||||||
|
apprv.setUserSeq(loginUser.getUserSeq());
|
||||||
|
apprv.setUserGrd(loginUser.getTitleCd());
|
||||||
|
apprv.setUserNm(loginUser.getUserNm());
|
||||||
|
apprv.setSaveDt(LocalDateTime.now());
|
||||||
|
return intelligenceNetworkService.operationPlanStateChange(apprv);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,19 @@
|
||||||
|
package com.dbnt.faisp.main.fpiMgt.intelligenceNetwork.mapper;
|
||||||
|
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
import com.dbnt.faisp.main.fpiMgt.intelligenceNetwork.model.OperationPlan;
|
||||||
|
import com.dbnt.faisp.main.fpiMgt.monitoring.model.MonitoringDesignation;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Mapper
|
||||||
|
public interface IntelligenceNetworkMapper {
|
||||||
|
|
||||||
|
List<OperationPlan> selectOperationPlanList(OperationPlan op);
|
||||||
|
|
||||||
|
Integer selectOperationPlanListCnt(OperationPlan op);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,85 @@
|
||||||
|
package com.dbnt.faisp.main.fpiMgt.intelligenceNetwork.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.format.annotation.DateTimeFormat;
|
||||||
|
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 = "operation_plan")
|
||||||
|
public class OperationPlan extends BaseModel {
|
||||||
|
@Id
|
||||||
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
|
@Column(name = "op_key")
|
||||||
|
private Integer opKey;
|
||||||
|
@Column(name = "op_name")
|
||||||
|
private String opName;
|
||||||
|
@Column(name = "op_birth")
|
||||||
|
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate opBirth;
|
||||||
|
@Column(name = "op_position")
|
||||||
|
private String opPosition;
|
||||||
|
@Column(name = "op_job")
|
||||||
|
private String opJob;
|
||||||
|
@Column(name = "op_career")
|
||||||
|
private String opCareer;
|
||||||
|
@Column(name = "op_phone")
|
||||||
|
private String opPhone;
|
||||||
|
@Column(name = "op_address")
|
||||||
|
private String opAddress;
|
||||||
|
@Column(name = "op_rank")
|
||||||
|
private String opRank;
|
||||||
|
@Column(name = "op_etc")
|
||||||
|
private String opEtc;
|
||||||
|
@Column(name = "target_location")
|
||||||
|
private String targetLocation;
|
||||||
|
@Column(name = "vulnerability_analyze")
|
||||||
|
private String vulnerabilityAnalyze;
|
||||||
|
@Column(name = "eligibility_analyze")
|
||||||
|
private String eligibilityAnalyze;
|
||||||
|
@Column(name = "focus_collection")
|
||||||
|
private String focusCollection;
|
||||||
|
@Column(name = "op_state")
|
||||||
|
private String opState;
|
||||||
|
@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")
|
||||||
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
|
||||||
|
private LocalDateTime wrtDt;
|
||||||
|
|
||||||
|
|
||||||
|
@Transient
|
||||||
|
private Integer fileCnt;
|
||||||
|
@Transient
|
||||||
|
private String userType;
|
||||||
|
@Transient
|
||||||
|
private List<OperationPlanApprv> apprvList;
|
||||||
|
@Transient
|
||||||
|
private List<OperationPlanFile> fileList;
|
||||||
|
@Transient
|
||||||
|
private List<MultipartFile> multipartFileList;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,45 @@
|
||||||
|
package com.dbnt.faisp.main.fpiMgt.intelligenceNetwork.model;
|
||||||
|
|
||||||
|
import lombok.*;
|
||||||
|
import org.hibernate.annotations.DynamicInsert;
|
||||||
|
import org.hibernate.annotations.DynamicUpdate;
|
||||||
|
|
||||||
|
import javax.persistence.*;
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
|
@Getter
|
||||||
|
@Setter
|
||||||
|
@Entity
|
||||||
|
@NoArgsConstructor
|
||||||
|
@DynamicInsert
|
||||||
|
@DynamicUpdate
|
||||||
|
@Table(name = "operation_plan_apprv")
|
||||||
|
@IdClass(OperationPlanApprv.OperationPlanApprvId.class)
|
||||||
|
public class OperationPlanApprv {
|
||||||
|
@Id
|
||||||
|
@Column(name = "op_key")
|
||||||
|
private Integer opKey;
|
||||||
|
@Id
|
||||||
|
@Column(name = "apprv_seq")
|
||||||
|
private Integer apprvSeq;
|
||||||
|
@Column(name = "state")
|
||||||
|
private String state;
|
||||||
|
@Column(name = "user_seq")
|
||||||
|
private Integer userSeq;
|
||||||
|
@Column(name = "user_grd")
|
||||||
|
private String userGrd;
|
||||||
|
@Column(name = "user_nm")
|
||||||
|
private String userNm;
|
||||||
|
@Column(name = "save_dt")
|
||||||
|
private LocalDateTime saveDt;
|
||||||
|
|
||||||
|
@Embeddable
|
||||||
|
@Data
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
|
public static class OperationPlanApprvId implements Serializable {
|
||||||
|
private Integer opKey;
|
||||||
|
private Integer apprvSeq;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,47 @@
|
||||||
|
package com.dbnt.faisp.main.fpiMgt.intelligenceNetwork.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 = "operation_plan_file")
|
||||||
|
@IdClass(OperationPlanFile.OperationPlanFileId.class)
|
||||||
|
public class OperationPlanFile extends FileInfo {
|
||||||
|
@Id
|
||||||
|
@Column(name = "op_key")
|
||||||
|
private Integer opKey;
|
||||||
|
@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 OperationPlanFileId implements Serializable {
|
||||||
|
private Integer opKey;
|
||||||
|
private Integer fileSeq;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,17 @@
|
||||||
|
package com.dbnt.faisp.main.fpiMgt.intelligenceNetwork.repository;
|
||||||
|
|
||||||
|
import com.dbnt.faisp.main.fpiMgt.intelligenceNetwork.model.OperationPlanApprv;
|
||||||
|
import org.springframework.data.jpa.repository.JpaRepository;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Optional;
|
||||||
|
|
||||||
|
|
||||||
|
public interface OperationPlanApprvRepository extends JpaRepository<OperationPlanApprv, OperationPlanApprv.OperationPlanApprvId> {
|
||||||
|
|
||||||
|
List<OperationPlanApprv> findByOpKey(Integer opKey);
|
||||||
|
|
||||||
|
Optional<OperationPlanApprv> findTopByOpKeyOrderByApprvSeqDesc(Integer opKey);
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,17 @@
|
||||||
|
package com.dbnt.faisp.main.fpiMgt.intelligenceNetwork.repository;
|
||||||
|
|
||||||
|
import com.dbnt.faisp.main.fpiMgt.intelligenceNetwork.model.OperationPlanFile;
|
||||||
|
|
||||||
|
import org.springframework.data.jpa.repository.JpaRepository;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Optional;
|
||||||
|
|
||||||
|
|
||||||
|
public interface OperationPlanFileRepository extends JpaRepository<OperationPlanFile, OperationPlanFile.OperationPlanFileId> {
|
||||||
|
|
||||||
|
List<OperationPlanFile> findByOpKey(Integer opKey);
|
||||||
|
|
||||||
|
Optional<OperationPlanFile> findTopByOpKeyOrderByFileSeqDesc(Integer opKey);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,11 @@
|
||||||
|
package com.dbnt.faisp.main.fpiMgt.intelligenceNetwork.repository;
|
||||||
|
|
||||||
|
import com.dbnt.faisp.main.fpiMgt.intelligenceNetwork.model.OperationPlan;
|
||||||
|
|
||||||
|
import org.springframework.data.jpa.repository.JpaRepository;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
public interface OperationPlanRepository extends JpaRepository<OperationPlan, Integer> {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,126 @@
|
||||||
|
package com.dbnt.faisp.main.fpiMgt.intelligenceNetwork.service;
|
||||||
|
|
||||||
|
|
||||||
|
import com.dbnt.faisp.config.BaseService;
|
||||||
|
|
||||||
|
import com.dbnt.faisp.main.fpiMgt.intelligenceNetwork.mapper.IntelligenceNetworkMapper;
|
||||||
|
import com.dbnt.faisp.main.fpiMgt.intelligenceNetwork.model.OperationPlan;
|
||||||
|
import com.dbnt.faisp.main.fpiMgt.intelligenceNetwork.model.OperationPlanApprv;
|
||||||
|
import com.dbnt.faisp.main.fpiMgt.intelligenceNetwork.model.OperationPlanFile;
|
||||||
|
import com.dbnt.faisp.main.fpiMgt.intelligenceNetwork.repository.OperationPlanApprvRepository;
|
||||||
|
import com.dbnt.faisp.main.fpiMgt.intelligenceNetwork.repository.OperationPlanFileRepository;
|
||||||
|
import com.dbnt.faisp.main.fpiMgt.intelligenceNetwork.repository.OperationPlanRepository;
|
||||||
|
import com.dbnt.faisp.main.userInfo.service.UserAlarmService;
|
||||||
|
import lombok.RequiredArgsConstructor;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
import org.springframework.web.multipart.MultipartFile;
|
||||||
|
|
||||||
|
import java.io.File;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
|
@Service
|
||||||
|
@RequiredArgsConstructor
|
||||||
|
public class IntelligenceNetworkService extends BaseService {
|
||||||
|
private final UserAlarmService userAlarmService;
|
||||||
|
private final OperationPlanApprvRepository operationPlanApprvRepository;
|
||||||
|
private final OperationPlanFileRepository operationPlanFileRepository;
|
||||||
|
private final OperationPlanRepository operationPlanRepository;
|
||||||
|
private final IntelligenceNetworkMapper intelligenceNetworkMapper;
|
||||||
|
|
||||||
|
@Transactional
|
||||||
|
public Integer saveOperationPlan(OperationPlan op, List<Integer> deleteFileSeq) {
|
||||||
|
Integer opKey = operationPlanRepository.save(op).getOpKey();
|
||||||
|
if(deleteFileSeq != null && deleteFileSeq.size()>0){
|
||||||
|
deleteOperationPlanFile(opKey, deleteFileSeq);
|
||||||
|
}
|
||||||
|
if(op.getMultipartFileList()!=null){
|
||||||
|
saveOperationPlanUploadFiles(opKey, op.getMultipartFileList());
|
||||||
|
}
|
||||||
|
if(op.getOpState().equals("DST002")){
|
||||||
|
//작성완료일 때 계장 결재 사용자에게 알림 발송.
|
||||||
|
userAlarmService.sendAlarmToApprvUser(opKey, op.getWrtOrgan(), "APC001", 32, "외사첩보망 견문관리 운영계획에 결재대기 문서가 있습니다.");
|
||||||
|
userAlarmService.sendAlarmToApprvUser(opKey, op.getWrtOrgan(), "APC002", 32, "외사첩보망 견문관리 운영계획에 결재대기 문서가 있습니다.");
|
||||||
|
userAlarmService.sendAlarmToApprvUser(opKey, op.getWrtOrgan(), "APC003", 32, "외사첩보망 견문관리 운영계획에 결재대기 문서가 있습니다.");
|
||||||
|
userAlarmService.sendAlarmToApprvUser(opKey, op.getWrtOrgan(), "APC004", 32, "외사첩보망 견문관리 운영계획에 결재대기 문서가 있습니다.");
|
||||||
|
}
|
||||||
|
return opKey;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void deleteOperationPlanFile(Integer opKey, List<Integer> deleteFileSeq) {
|
||||||
|
List<OperationPlanFile> operationPlanFileList = operationPlanFileRepository.findByOpKey(opKey);
|
||||||
|
for(OperationPlanFile file: operationPlanFileList){
|
||||||
|
if(deleteFileSeq.contains(file.getFileSeq())){
|
||||||
|
deleteStoredFile(new File(file.getSavePath(), file.getConvNm()));
|
||||||
|
operationPlanFileRepository.delete(file);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void saveOperationPlanUploadFiles(Integer opKey, List<MultipartFile> multipartFileList){
|
||||||
|
OperationPlanFile lastFileInfo = operationPlanFileRepository.findTopByOpKeyOrderByFileSeqDesc(opKey).orElse(null);
|
||||||
|
int fileSeq = lastFileInfo==null?1:(lastFileInfo.getFileSeq()+1);
|
||||||
|
for(MultipartFile file : multipartFileList){
|
||||||
|
String saveName = UUID.randomUUID().toString();
|
||||||
|
String path = locationPath+intelligenceNetworkPath;
|
||||||
|
saveFile(file, new File(path+File.separator+saveName));
|
||||||
|
|
||||||
|
String originalFilename = file.getOriginalFilename();
|
||||||
|
int extnIdx = originalFilename.lastIndexOf(".");
|
||||||
|
OperationPlanFile fileInfo = new OperationPlanFile();
|
||||||
|
fileInfo.setOpKey(opKey);
|
||||||
|
fileInfo.setFileSeq(fileSeq++);
|
||||||
|
fileInfo.setOrigNm(originalFilename.substring(0, extnIdx));
|
||||||
|
fileInfo.setFileExtn(originalFilename.substring(extnIdx+1));
|
||||||
|
fileInfo.setConvNm(saveName);
|
||||||
|
fileInfo.setFileSize(calculationSize(file.getSize()));
|
||||||
|
fileInfo.setSavePath(path);
|
||||||
|
operationPlanFileRepository.save(fileInfo);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<OperationPlan> selectOperationPlanList(OperationPlan op) {
|
||||||
|
return intelligenceNetworkMapper.selectOperationPlanList(op);
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer selectOperationPlanListCnt(OperationPlan op) {
|
||||||
|
return intelligenceNetworkMapper.selectOperationPlanListCnt(op);
|
||||||
|
}
|
||||||
|
|
||||||
|
public OperationPlan selectOperationPlan(Integer opKey) {
|
||||||
|
OperationPlan savedOperationPlan = operationPlanRepository.findById(opKey).orElse(null);
|
||||||
|
if (savedOperationPlan != null) {
|
||||||
|
savedOperationPlan.setFileList(operationPlanFileRepository.findByOpKey(opKey));
|
||||||
|
savedOperationPlan.setApprvList(operationPlanApprvRepository.findByOpKey(opKey));
|
||||||
|
}
|
||||||
|
return savedOperationPlan;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Transactional
|
||||||
|
public Integer operationPlanStateChange(OperationPlanApprv apprv) {
|
||||||
|
OperationPlan saveOperationPlan = operationPlanRepository.findById(apprv.getOpKey()).orElse(null);
|
||||||
|
saveOperationPlan.setOpState(apprv.getState());
|
||||||
|
OperationPlanApprv lastApprv = operationPlanApprvRepository.findTopByOpKeyOrderByApprvSeqDesc(apprv.getOpKey()).orElse(null);
|
||||||
|
apprv.setApprvSeq(lastApprv==null?1:lastApprv.getApprvSeq()+1);
|
||||||
|
operationPlanApprvRepository.save(apprv);
|
||||||
|
|
||||||
|
switch (apprv.getState()){
|
||||||
|
case "DST003":
|
||||||
|
case "DST005":
|
||||||
|
// 반려시 작성자에게 반려 알림 발송
|
||||||
|
userAlarmService.sendAlarmToWrtUser(saveOperationPlan.getOpKey(), saveOperationPlan.getWrtUserSeq(), 32,"외사첩보망 견문관리 운영계획에 문서가 반려되었습니다.");
|
||||||
|
break;
|
||||||
|
case "DST004":
|
||||||
|
case "DST006":
|
||||||
|
// 부장승인시 작성자에게 승인 알림 발송
|
||||||
|
userAlarmService.sendAlarmToWrtUser(saveOperationPlan.getOpKey(), saveOperationPlan.getWrtUserSeq(), 32,"외사첩보망 견문관리 운영계획에 문서가 승인되었습니다.");
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return apprv.getOpKey();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -28,6 +28,7 @@ file.dir.cia.edu=/cia/edu
|
||||||
file.dir.activityCase=/activityCase
|
file.dir.activityCase=/activityCase
|
||||||
file.dir.majorStatus=/majorStatus
|
file.dir.majorStatus=/majorStatus
|
||||||
file.dir.monitoring=/monitoring
|
file.dir.monitoring=/monitoring
|
||||||
|
file.dir.intelligenceNetwork=/intelligenceNetwork
|
||||||
|
|
||||||
editor.img.view=/file/editorFileDisplay?fileNm=
|
editor.img.view=/file/editorFileDisplay?fileNm=
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,7 @@ file.dir.cia.edu=/cia/edu
|
||||||
file.dir.activityCase=/activityCase
|
file.dir.activityCase=/activityCase
|
||||||
file.dir.majorStatus=/majorStatus
|
file.dir.majorStatus=/majorStatus
|
||||||
file.dir.monitoring=/monitoring
|
file.dir.monitoring=/monitoring
|
||||||
|
file.dir.intelligenceNetwork=/intelligenceNetwork
|
||||||
|
|
||||||
editor.img.view=/file/editorFileDisplay?fileNm=
|
editor.img.view=/file/editorFileDisplay?fileNm=
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,7 @@ file.dir.cia.edu=/cia/edu
|
||||||
file.dir.activityCase=/activityCase
|
file.dir.activityCase=/activityCase
|
||||||
file.dir.majorStatus=/majorStatus
|
file.dir.majorStatus=/majorStatus
|
||||||
file.dir.monitoring=/monitoring
|
file.dir.monitoring=/monitoring
|
||||||
|
file.dir.intelligenceNetwork=/intelligenceNetwork
|
||||||
|
|
||||||
editor.img.view=/file/editorFileDisplay?fileNm=
|
editor.img.view=/file/editorFileDisplay?fileNm=
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,82 @@
|
||||||
|
<?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.fpiMgt.intelligenceNetwork.mapper.IntelligenceNetworkMapper">
|
||||||
|
<sql id="selectOperationPlanListWhere">
|
||||||
|
<where>
|
||||||
|
<if test='wrtUserSeq != null and wrtUserSeq != ""'>
|
||||||
|
and op.wrt_user_seq = #{wrtUserSeq}
|
||||||
|
</if>
|
||||||
|
<if test='wrtUserNm != null and wrtUserNm != ""'>
|
||||||
|
and op.wrt_user_nm like '%'||#{wrtUserNm}||'%'
|
||||||
|
</if>
|
||||||
|
<if test='wrtOrgan != null and wrtOrgan != ""'>
|
||||||
|
and op.wrt_organ = #{wrtOrgan}
|
||||||
|
</if>
|
||||||
|
<if test='opState != null and opState != ""'>
|
||||||
|
and op.op_state = #{opState}
|
||||||
|
</if>
|
||||||
|
<if test='startDate != null and startDate != ""'>
|
||||||
|
and op.wrt_dt >= #{startDate}::date
|
||||||
|
</if>
|
||||||
|
<if test='endDate != null and endDate != ""'>
|
||||||
|
and op.wrt_dt <= #{endDate}::date+1
|
||||||
|
</if>
|
||||||
|
<if test="downOrganCdList != null">
|
||||||
|
and op.wrt_organ in
|
||||||
|
<foreach collection="downOrganCdList" item="organCd" separator="," open="(" close=")">
|
||||||
|
#{organCd}
|
||||||
|
</foreach>
|
||||||
|
</if>
|
||||||
|
<if test='userType != null and userType != ""'>
|
||||||
|
<if test='userType == "normalStayList"'>
|
||||||
|
and op_state in ('DST002')
|
||||||
|
</if>
|
||||||
|
<if test='userType == "normalCommitList"'>
|
||||||
|
and op_state in ('DST003', 'DST004', 'DST005', 'DST006')
|
||||||
|
</if>
|
||||||
|
<if test='userType == "sectionCommitList"'>
|
||||||
|
and op_state in ('DST003', 'DST004', 'DST005', 'DST006')
|
||||||
|
</if>
|
||||||
|
<if test='userType == "managerStayList"'>
|
||||||
|
and op_state in ('DST002')
|
||||||
|
</if>
|
||||||
|
<if test='userType == "managerCommitList"'>
|
||||||
|
and op_state in ('DST003', 'DST004', 'DST005', 'DST006')
|
||||||
|
</if>
|
||||||
|
</if>
|
||||||
|
</where>
|
||||||
|
</sql>
|
||||||
|
<select id="selectOperationPlanList" resultType="OperationPlan" parameterType="OperationPlan">
|
||||||
|
select op.op_key,
|
||||||
|
op_name,
|
||||||
|
op_birth ,
|
||||||
|
op_position ,
|
||||||
|
op_phone ,
|
||||||
|
op_rank ,
|
||||||
|
(select item_value from code_mgt where item_cd = op_state) as op_state,
|
||||||
|
wrt_user_seq,
|
||||||
|
(select item_value from code_mgt where item_cd = wrt_organ) as wrt_organ,
|
||||||
|
(select item_value from code_mgt where item_cd = wrt_part) as wrt_part,
|
||||||
|
(select item_value from code_mgt where item_cd = wrt_user_grd) as wrt_user_grd,
|
||||||
|
wrt_user_nm,
|
||||||
|
wrt_dt,
|
||||||
|
b.fileCnt
|
||||||
|
from operation_plan op
|
||||||
|
left outer join (select op_key,
|
||||||
|
count(file_seq) as fileCnt
|
||||||
|
from operation_plan_file
|
||||||
|
group by op_key) b
|
||||||
|
on op.op_key = b.op_key
|
||||||
|
<include refid="selectOperationPlanListWhere"></include>
|
||||||
|
order by op.op_key desc
|
||||||
|
limit #{rowCnt} offset #{firstIndex}
|
||||||
|
</select>
|
||||||
|
<select id="selectOperationPlanListCnt" resultType="Integer" parameterType="OperationPlan">
|
||||||
|
select count(*)
|
||||||
|
from operation_plan op
|
||||||
|
<include refid="selectOperationPlanListWhere"></include>
|
||||||
|
</select>
|
||||||
|
</mapper>
|
||||||
|
|
@ -0,0 +1,138 @@
|
||||||
|
$(function(){
|
||||||
|
$("#dateSelectorDiv").datepicker({
|
||||||
|
format: "yyyy-mm-dd",
|
||||||
|
language: "ko",
|
||||||
|
autoclose: true
|
||||||
|
});
|
||||||
|
})
|
||||||
|
|
||||||
|
$(document).on('click', '#allTab', function (){
|
||||||
|
location.href = "/intelligenceNetwork/operationPlanList/all";
|
||||||
|
})
|
||||||
|
$(document).on('click', '#stayTab', function (){
|
||||||
|
location.href = "/intelligenceNetwork/operationPlanList/stay";
|
||||||
|
})
|
||||||
|
$(document).on('click', '#commitTab', function (){
|
||||||
|
location.href = "/intelligenceNetwork/operationPlanList/commit";
|
||||||
|
})
|
||||||
|
|
||||||
|
$(document).on('click', '#addBtn', function (){
|
||||||
|
getoOerationPlanEditModal(null);
|
||||||
|
})
|
||||||
|
|
||||||
|
function getoOerationPlanEditModal(opKey){
|
||||||
|
$.ajax({
|
||||||
|
url: '/intelligenceNetwork/operationPlanEditModal',
|
||||||
|
data: {opKey: opKey},
|
||||||
|
type: 'GET',
|
||||||
|
dataType:"html",
|
||||||
|
success: function(html){
|
||||||
|
$("#operationPlanEditModalContent").empty().append(html)
|
||||||
|
$("#opBirth").datepicker({
|
||||||
|
format: "yyyy-mm-dd",
|
||||||
|
language: "ko",
|
||||||
|
autoclose: true
|
||||||
|
});
|
||||||
|
setUploadDiv();
|
||||||
|
$("#operationPlanEditModal").modal('show');
|
||||||
|
},
|
||||||
|
error:function(){
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
$(document).on('click', '#editBtn', function (){
|
||||||
|
$("#operationPlanViewModal").modal('hide');
|
||||||
|
getoOerationPlanEditModal($(this).attr("data-opkey"));
|
||||||
|
})
|
||||||
|
|
||||||
|
$(document).on('click', '#saveBtn', function (){
|
||||||
|
if(confirm("저장하시겠습니까?")){
|
||||||
|
saveOperationPlan('DST002');
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
$(document).on('click', '#saveTempBtn', function (){
|
||||||
|
if(confirm("임시저장 하시겠습니까?")){
|
||||||
|
saveOperationPlan('DST001');
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
function saveOperationPlan(opState){
|
||||||
|
contentFade("in");
|
||||||
|
const formData = new FormData($("#operationPlanEditForm")[0]);
|
||||||
|
for(const file of files) {
|
||||||
|
if(!file.isDelete)
|
||||||
|
formData.append('uploadFiles', file, file.name);
|
||||||
|
}
|
||||||
|
$(".text-decoration-line-through").each(function (idx, el){
|
||||||
|
formData.append('fileSeq', $(el).attr("data-fileseq"));
|
||||||
|
})
|
||||||
|
formData.append('opState', opState);
|
||||||
|
$.ajax({
|
||||||
|
type : 'POST',
|
||||||
|
data : formData,
|
||||||
|
url : "/intelligenceNetwork/saveOperationPlan",
|
||||||
|
processData: false,
|
||||||
|
contentType: false,
|
||||||
|
success : function(result) {
|
||||||
|
alert("저장되었습니다.");
|
||||||
|
contentFade("out");
|
||||||
|
location.reload();
|
||||||
|
},
|
||||||
|
error : function(xhr, status) {
|
||||||
|
alert("저장에 실패하였습니다.")
|
||||||
|
contentFade("out");
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
$(document).on('click', '.operationPlanTr', function (){
|
||||||
|
getOperationPlanViewModal(Number($(this).find(".opKey").val()));
|
||||||
|
})
|
||||||
|
|
||||||
|
function getOperationPlanViewModal(opKey){
|
||||||
|
$.ajax({
|
||||||
|
url: '/intelligenceNetwork/operationPlanViewModal',
|
||||||
|
data: {opKey: opKey},
|
||||||
|
type: 'GET',
|
||||||
|
dataType:"html",
|
||||||
|
success: function(html){
|
||||||
|
$("#operationPlanViewModalBody").empty().append(html)
|
||||||
|
$("#operationPlanViewModal").modal('show');
|
||||||
|
},
|
||||||
|
error:function(){
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
$(document).on('click', '.apprvBtn', function (){
|
||||||
|
$("#viewModalApprvValue").val($(this).attr("data-planstate"));
|
||||||
|
const approval = $(this).val();
|
||||||
|
if(confirm(approval+"하시겠습니까?")){
|
||||||
|
const formData = new FormData($("#apprvForm")[0]);
|
||||||
|
contentFade("in")
|
||||||
|
$.ajax({
|
||||||
|
type : 'POST',
|
||||||
|
data : formData,
|
||||||
|
url : "/intelligenceNetwork/operationPlanStateChange",
|
||||||
|
processData: false,
|
||||||
|
contentType: false,
|
||||||
|
beforeSend: function (xhr){
|
||||||
|
xhr.setRequestHeader($("[name='_csrf_header']").val(), $("[name='_csrf']").val());
|
||||||
|
},
|
||||||
|
success : function(result) {
|
||||||
|
alert(approval+"되었습니다");
|
||||||
|
getOperationPlanViewModal(result);
|
||||||
|
contentFade("out");
|
||||||
|
},
|
||||||
|
error : function(xhr, status) {
|
||||||
|
alert(approval+"처리를 실패하였습니다.");
|
||||||
|
contentFade("out");
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
|
@ -0,0 +1,131 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="ko" xmlns:th="http://www.thymeleaf.org">
|
||||||
|
<div class="modal-header bg-dark">
|
||||||
|
<h5 class="modal-title text-white" id="affairEditModalLabel" th:text="${op.opKey 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="affairEditBody">
|
||||||
|
<form action="#" method="post" id="operationPlanEditForm">
|
||||||
|
<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="mdKey" th:value="${md.mdKey}">
|
||||||
|
<input type="hidden" name="wrtOrgan" th:value="${md.wrtOrgan}">
|
||||||
|
<input type="hidden" name="wrtPart" th:value="${md.wrtPart}">
|
||||||
|
<input type="hidden" name="wrtUserSeq" th:value="${md.wrtUserSeq}">
|
||||||
|
<input type="hidden" name="wrtUserGrd" th:value="${md.wrtUserGrd}">
|
||||||
|
<input type="hidden" name="wrtUserNm" th:value="${md.wrtUserNm}">
|
||||||
|
<input type="hidden" name="wrtDt" id="wrtDt" th:value="${#temporals.format(md.wrtDt, 'yyyy-MM-dd HH:mm')}"> -->
|
||||||
|
<div class="row mb-1">
|
||||||
|
<label 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" placeholder="작성자 자동입력" readonly>
|
||||||
|
</div>
|
||||||
|
<label 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" placeholder="작성일 자동입력" readonly>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<hr>
|
||||||
|
<div class="row mb-1"><h6 class="text-center">정보협력자<br>구성</h6></div>
|
||||||
|
<div class="row mb-1">
|
||||||
|
<div class="col-sm-1"></div>
|
||||||
|
<label for="affairType1" 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="opName" name="opName" th:value="${op.opName}">
|
||||||
|
</div>
|
||||||
|
<label for="affairType2" 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="opBirth" name="opBirth" th:value="${op.opBirth}" readonly>
|
||||||
|
</div>
|
||||||
|
<label for="affairType3" 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="opPosition" name="opPosition" th:value="${op.opPosition}">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row mb-1">
|
||||||
|
<div class="col-sm-1"></div>
|
||||||
|
<label for="affairType4" 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="opJob" name="opJob" th:value="${op.opJob}">
|
||||||
|
</div>
|
||||||
|
<label for="affairType1" 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="opCareer" name="opCareer" th:value="${op.opCareer}">
|
||||||
|
</div>
|
||||||
|
<label for="affairType2" 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="opPhone" name="opPhone" th:value="${op.opPhone}">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row mb-1">
|
||||||
|
<div class="col-sm-1"></div>
|
||||||
|
<label for="affairType4" class="col-sm-1 col-form-label col-form-label-sm text-center">주소</label>
|
||||||
|
<div class="col-sm-5">
|
||||||
|
<input type="text" class="form-control form-control-sm" id="opAddress" name="opAddress" th:value="${op.opAddress}">
|
||||||
|
</div>
|
||||||
|
<label for="affairType2" 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="opRank" name="opRank" th:value="${op.opRank}">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row mb-1">
|
||||||
|
<div class="col-sm-1"></div>
|
||||||
|
<label for="affairType3" class="col-sm-1 col-form-label col-form-label-sm text-center">기타 참고</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input type="text" class="form-control form-control-sm" id="opEtc" name="opEtc" th:value="${op.opEtc}">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<hr>
|
||||||
|
<div class="row mb-1">
|
||||||
|
<label for="hashTags" class="col-sm-1 col-form-label col-form-label-sm text-center">*대상목표<br>및<br>위치</label>
|
||||||
|
<div class="col-sm-11">
|
||||||
|
<textarea id="targetLocation" name="targetLocation" rows="5" cols="139" th:utext="${op.targetLocation}"></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">
|
||||||
|
<textarea id="vulnerabilityAnalyze" name="vulnerabilityAnalyze" rows="5" cols="139" th:utext="${op.vulnerabilityAnalyze}"></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">
|
||||||
|
<textarea id="eligibilityAnalyze" name="eligibilityAnalyze" rows="5" cols="139" th:utext="${op.eligibilityAnalyze}"></textarea>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row mb-1">
|
||||||
|
<label for="hashTags" class="col-sm-1 col-form-label col-form-label-sm text-center">*중점<br>수집사항</label>
|
||||||
|
<div class="col-sm-11">
|
||||||
|
<textarea id="focusCollection" name="focusCollection" rows="5" cols="139" th:utext="${op.focusCollection}"></textarea>
|
||||||
|
</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(op.fileList)}">
|
||||||
|
<br>파일을 업로드 해주세요.
|
||||||
|
</th:block>
|
||||||
|
<th:block th:unless="${#arrays.isEmpty(op.fileList)}">
|
||||||
|
<div class='row-col-6' th:each="file:${op.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 justify-content-between bg-light">
|
||||||
|
<div class="col-auto">
|
||||||
|
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">닫기</button>
|
||||||
|
</div>
|
||||||
|
<div class="col-auto">
|
||||||
|
<button type="button" class="btn btn-warning" id="saveTempBtn">임시저장</button>
|
||||||
|
<button type="button" class="btn btn-primary" id="saveBtn">저장</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
@ -0,0 +1,179 @@
|
||||||
|
<!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/igActivities/fpiMgt/intelligenceNetwork/operationPlan.js}"></script>
|
||||||
|
</th:block>
|
||||||
|
<div layout:fragment="content">
|
||||||
|
<main>
|
||||||
|
<input type="hidden" name="_csrf_header" th:value="${_csrf.headerName}"/>
|
||||||
|
<input type="hidden" th:name="${_csrf.parameterName}" th:value="${_csrf.token}"/>
|
||||||
|
<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>
|
||||||
|
<div class="row mx-0">
|
||||||
|
<div class="col-12 card bg-light text-center">
|
||||||
|
<div class="card-body">
|
||||||
|
<ul class="nav nav-tabs" id="userTab" role="tablist">
|
||||||
|
<li class="nav-item" role="presentation">
|
||||||
|
<button class="nav-link" th:classappend="${type eq 'all'?' active':''}" id="allTab" data-bs-toggle="tab" type="button" role="tab">전체 목록</button>
|
||||||
|
</li>
|
||||||
|
<li class="nav-item" role="presentation">
|
||||||
|
<button class="nav-link" th:classappend="${type eq 'stay'?' active':''}" id="stayTab" data-bs-toggle="tab" type="button" role="tab">결재대기목록</button>
|
||||||
|
</li>
|
||||||
|
<li class="nav-item" role="presentation">
|
||||||
|
<button class="nav-link" th:classappend="${type eq 'commit'?' active':''}" id="commitTab" data-bs-toggle="tab" type="button" role="tab">결재처리목록</button>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<div class="tab-content bg-white border border-top-0 p-2" id="planContent">
|
||||||
|
<!-- <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-8">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-11">
|
||||||
|
<div class="row justify-content-end pb-1" th:if="${accessAuth eq 'ACC003'}">
|
||||||
|
<div class="col-2">
|
||||||
|
<select class="form-select form-select-sm" name="wrtOrgan">
|
||||||
|
<option value="">관서 선택</option>
|
||||||
|
<th:block th:each="commonCode:${session.commonCode.get('OG')}">
|
||||||
|
<th:block th:if="${#lists.contains(mgtOrganList, commonCode.itemCd)}">
|
||||||
|
<option th:value="${commonCode.itemCd}" th:text="${commonCode.itemValue}" th:selected="${commonCode.itemCd eq searchParams.wrtOrgan}"></option>
|
||||||
|
</th:block>
|
||||||
|
</th:block>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
<div class="col-2">
|
||||||
|
<input type="text" class="form-control form-control-sm" placeholder="작성자" name="wrtUserNm" th:value="${searchParams.wrtUserNm}">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row justify-content-end">
|
||||||
|
<div class="col-2">
|
||||||
|
<input type="text" class="form-control form-control-sm" placeholder="제목" name="mdTitle" th:value="${searchParams.mdTitle}">
|
||||||
|
</div>
|
||||||
|
<div class="col-2">
|
||||||
|
<select class="form-select form-select-sm" name="mdState">
|
||||||
|
<option value="">상태 선택</option>
|
||||||
|
<th:block th:each="commonCode:${session.commonCode.get('DST')}">
|
||||||
|
<option th:value="${commonCode.itemCd}" th:text="${commonCode.itemValue}" th:selected="${commonCode.itemCd eq searchParams.mdState}"></option>
|
||||||
|
</th:block>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
<div class="col-4">
|
||||||
|
<div class="input-group input-daterange" id="dateSelectorDiv">
|
||||||
|
<select class="form-select form-select-sm w-30" name="dateSelector">
|
||||||
|
<option value="">조건선택</option>
|
||||||
|
<option value="mdDt" th:selected="${searchParams.dateSelector eq 'mdDt'}">시행일</option>
|
||||||
|
<option value="wrtDt" th:selected="${searchParams.dateSelector eq 'wrtDt'}">작성일</option>
|
||||||
|
</select>
|
||||||
|
<input type="text" class="form-control form-control-sm w-35" id="startDate" name="startDate" placeholder="시작일" autocomplete="off" readonly th:value="${searchParams.startDate}">
|
||||||
|
<input type="text" class="form-control form-control-sm w-35" id="endDate" name="endDate" placeholder="종료일" autocomplete="off" readonly th:value="${searchParams.endDate}">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-1 d-grid gap-2">
|
||||||
|
<input type="submit" class="btn btn-sm btn-primary" id="searchBtn" value="검색">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form> -->
|
||||||
|
<div class="row justify-content-start">
|
||||||
|
<div class="col-12">
|
||||||
|
<table class="table table-sm table-bordered table-hover">
|
||||||
|
<thead>
|
||||||
|
<tr class="table-secondary">
|
||||||
|
<th colspan="5">정보협력자 구성</th>
|
||||||
|
<th rowspan="2">등록일</th>
|
||||||
|
<th rowspan="2">상태</th>
|
||||||
|
<th rowspan="2">관리관<br>결제여부</th>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>성명</th>
|
||||||
|
<th>생년월일</th>
|
||||||
|
<th>근무처</th>
|
||||||
|
<th>연락처</th>
|
||||||
|
<th>등급</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody class="table-group-divider">
|
||||||
|
<tr class="operationPlanTr" th:each="list:${opList}">
|
||||||
|
<td th:text="${list.opName}"></td>
|
||||||
|
<td th:text="${list.opBirth}"></td>
|
||||||
|
<td th:text="${list.opPosition}"></td>
|
||||||
|
<td th:text="${list.opPhone}"></td>
|
||||||
|
<td th:text="${list.opRank}"></td>
|
||||||
|
<td th:text="${#temporals.format(list.wrtDt, 'yyyy-MM-dd HH:mm')}"></td>
|
||||||
|
<td th:text="${list.opState}"></td>
|
||||||
|
<td th:text="${list.opState}"></td>
|
||||||
|
<th:block>
|
||||||
|
<input type="hidden" class="opKey" th:value="${list.opKey}">
|
||||||
|
</th:block>
|
||||||
|
</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="addBtn" th:unless="${accessAuth eq 'ACC001'}">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<div class="modal fade" id="operationPlanEditModal" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1" aria-labelledby="planEditModalLabel" aria-hidden="true">
|
||||||
|
<div class="modal-dialog modal-xl modal-dialog-scrollable">
|
||||||
|
<div class="modal-content" id="operationPlanEditModalContent">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="modal fade" id="operationPlanViewModal" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1" aria-labelledby="planViewModalLabel" aria-hidden="true">
|
||||||
|
<div class="modal-dialog modal-xl modal-dialog-scrollable">
|
||||||
|
<div class="modal-content" id="operationPlanViewModalBody">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</html>
|
||||||
|
|
@ -0,0 +1,166 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="ko" xmlns:th="http://www.thymeleaf.org">
|
||||||
|
<div class="modal-header bg-dark">
|
||||||
|
<h5 class="modal-title text-white" id="affairViewModalLabel">운영 계획서 열람</h5>
|
||||||
|
<button type="button" class="btn-close f-invert" data-bs-dismiss="modal" aria-label="Close"></button>
|
||||||
|
</div>
|
||||||
|
<div class="modal-body">
|
||||||
|
<input type="hidden" name="affairKey" id="viewModalAffairKey">
|
||||||
|
<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" th:if="${#lists.size(op.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(op.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>
|
||||||
|
<th:block th:each="commonCode:${session.commonCode.get('JT')}">
|
||||||
|
<label class="col-sm-2 col-form-label col-form-label-sm text-start" th:if="${commonCode.itemCd eq op.wrtUserGrd}" th:text="|${commonCode.itemValue} ${op.wrtUserNm}|"></label>
|
||||||
|
</th:block>
|
||||||
|
<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(op.wrtDt, 'yyyy-MM-dd HH:mm')}"></label>
|
||||||
|
<label class="col-sm-1 col-form-label col-form-label-sm text-center">상태</label>
|
||||||
|
<th:block th:each="commonCode:${session.commonCode.get('DST')}">
|
||||||
|
<label class="col-sm-2 col-form-label col-form-label-sm text-start" th:if="${commonCode.itemCd eq op.opState}" th:text="${commonCode.itemValue}"></label>
|
||||||
|
</th:block>
|
||||||
|
</div>
|
||||||
|
<hr>
|
||||||
|
<div class="row mb-1"><h6 class="text-center">정보협력자<br>구성</h6></div>
|
||||||
|
<br>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-sm-1"></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="${op.opName}"></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="${op.opBirth}"></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="${op.opPosition}"></label>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-sm-1"></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="${op.opJob}"></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="${op.opCareer}"></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="${op.opPhone}"></label>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-sm-1"></div>
|
||||||
|
<label class="col-sm-1 col-form-label col-form-label-sm text-center">주소:</label>
|
||||||
|
<label class="col-sm-5 col-form-label col-form-label-sm text-start" th:text="${op.opAddress}"></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="${op.opRank}"></label>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-sm-1"></div>
|
||||||
|
<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="${op.opEtc}"></label>
|
||||||
|
</div>
|
||||||
|
<hr>
|
||||||
|
<div class="row">
|
||||||
|
<label class="col-sm-1 col-form-label col-form-label-sm text-center">대상목표<br>및<br>위지</label>
|
||||||
|
<div class="col-sm-11 form-control-sm" id="contentDiv">
|
||||||
|
<div th:utext="${op.targetLocation}"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<hr>
|
||||||
|
<div class="row mb-1">
|
||||||
|
<label class="col-sm-1 col-form-label col-form-label-sm text-center">취약성 분석</label>
|
||||||
|
<div class="col-sm-11 form-control-sm" id="contentDiv">
|
||||||
|
<div th:utext="${op.vulnerabilityAnalyze}"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<hr>
|
||||||
|
<div class="row mb-1">
|
||||||
|
<label class="col-sm-1 col-form-label col-form-label-sm text-center">적격성 분석</label>
|
||||||
|
<div class="col-sm-11 form-control-sm" id="contentDiv">
|
||||||
|
<div th:utext="${op.eligibilityAnalyze}"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<hr>
|
||||||
|
<div class="row mb-1">
|
||||||
|
<label class="col-sm-1 col-form-label col-form-label-sm text-center">중점 수집사항</label>
|
||||||
|
<div class="col-sm-11 form-control-sm" id="contentDiv">
|
||||||
|
<div th:utext="${op.focusCollection}"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="tab-pane fade p-2" id="fileTabPanel" role="tabpanel" tabindex="0">
|
||||||
|
<table class="table">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>파일명</th>
|
||||||
|
<th>사이즈</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<th:block th:if="${#lists.isEmpty(op.fileList)}">
|
||||||
|
<tr>
|
||||||
|
<td colspan="2">파일이 없습니다.</td>
|
||||||
|
</tr>
|
||||||
|
</th:block>
|
||||||
|
<th:block th:unless="${#lists.isEmpty(op.fileList)}">
|
||||||
|
<th:block th:each="file:${op.fileList}">
|
||||||
|
<tr class="fileInfoTr">
|
||||||
|
<td><a href="#" class="fileDownLink" data-board="affair"
|
||||||
|
th:data-parentkey="${file.opKey}" 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 class="row">
|
||||||
|
<div class="col-12" th:unless="${#lists.isEmpty(op.apprvList)}">
|
||||||
|
<hr>
|
||||||
|
<th:block th:each="apprv:${op.apprvList}">
|
||||||
|
<div class="row">
|
||||||
|
<th:block th:each="commonCode:${session.commonCode.get('DST')}">
|
||||||
|
<label class="col-sm-2 col-form-label col-form-label-sm text-center" th:if="${commonCode.itemCd eq apprv.state}" th:text="|결재결과: ${commonCode.itemValue}|"></label>
|
||||||
|
</th:block>
|
||||||
|
<label class="col-sm-2 col-form-label col-form-label-sm text-center">
|
||||||
|
<th:block th:each="commonCode:${session.commonCode.get('JT')}">
|
||||||
|
<th:block th:if="${commonCode.itemCd eq apprv.userGrd}" th:text="|결제자: ${commonCode.itemValue} ${apprv.userNm}|"></th:block>
|
||||||
|
</th:block>
|
||||||
|
</label>
|
||||||
|
<label class="col-sm-2 col-form-label col-form-label-sm text-center">
|
||||||
|
<th:block th:text="|결제일시: ${#temporals.format(apprv.saveDt, 'yyyy-MM-dd HH:mm:ss')}|"></th:block>
|
||||||
|
</label>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</th:block>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<form action="#" method="post" id="apprvForm">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-10">
|
||||||
|
<input type="hidden" name="opKey" th:value="${op.opKey}">
|
||||||
|
<input type="hidden" name="state" id="viewModalApprvValue">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="modal-footer justify-content-between bg-light">
|
||||||
|
<div class="col-auto">
|
||||||
|
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">닫기</button>
|
||||||
|
</div>
|
||||||
|
<div class="col-auto">
|
||||||
|
<th:block th:if="${(apprvAuth eq 'APC001' or apprvAuth eq 'APC002' or apprvAuth eq 'APC003' or apprvAuth eq 'APC004') and op.opState eq 'DST002'}">
|
||||||
|
<button type="button" class="btn btn-danger apprvBtn" th:data-planstate="${apprvAuth eq 'APC004'||apprvAuth eq 'APC003'?'DST003':'DST005'}" th:value="반려">반려</button>
|
||||||
|
<button type="button" class="btn btn-success apprvBtn" th:data-planstate="${apprvAuth eq 'APC004'||apprvAuth eq 'APC003'?'DST004':'DST006'}" th:value="승인">승인</button>
|
||||||
|
</th:block>
|
||||||
|
<th:block th:unless="${op.opState eq 'DST004' or op.opState eq 'DST006'}"><!--승인 상태일때는 수정 불가 -->
|
||||||
|
<th:block th:if="${userSeq eq op.wrtUserSeq or accessAuth eq 'ACC003'}"><!--작성자일 경우 수정 허용--><!--관리자일 경우 수정 허용-->
|
||||||
|
<button type="button" class="btn btn-warning" th:data-opkey="${op.opKey}" id="editBtn">수정</button>
|
||||||
|
</th:block>
|
||||||
|
</th:block>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
Loading…
Reference in New Issue