feat : 외사첩보망 견문관리 외사첩보망 해고(연장) 보고 생성 및 중간저장
parent
24cb233d87
commit
d96b980ce5
|
|
@ -1,12 +1,13 @@
|
||||||
package com.dbnt.faisp.main.fpiMgt.intelligenceNetwork;
|
package com.dbnt.faisp.main.fpiMgt.intelligenceNetwork;
|
||||||
|
|
||||||
import com.dbnt.faisp.main.authMgt.service.AuthMgtService;
|
import com.dbnt.faisp.main.authMgt.service.AuthMgtService;
|
||||||
|
import com.dbnt.faisp.main.fpiMgt.affair.model.AffairBoard;
|
||||||
import com.dbnt.faisp.main.fpiMgt.intelligenceNetwork.model.IntelligenceAnalyze;
|
import com.dbnt.faisp.main.fpiMgt.intelligenceNetwork.model.IntelligenceAnalyze;
|
||||||
import com.dbnt.faisp.main.fpiMgt.intelligenceNetwork.model.IntelligenceAnalyzeApprv;
|
import com.dbnt.faisp.main.fpiMgt.intelligenceNetwork.model.IntelligenceAnalyzeApprv;
|
||||||
import com.dbnt.faisp.main.fpiMgt.intelligenceNetwork.model.OperationPlan;
|
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.OperationPlanApprv;
|
||||||
|
import com.dbnt.faisp.main.fpiMgt.intelligenceNetwork.model.FireExtensionReport;
|
||||||
import com.dbnt.faisp.main.fpiMgt.intelligenceNetwork.service.IntelligenceNetworkService;
|
import com.dbnt.faisp.main.fpiMgt.intelligenceNetwork.service.IntelligenceNetworkService;
|
||||||
import com.dbnt.faisp.main.translator.model.TranslatorCrr;
|
|
||||||
import com.dbnt.faisp.main.userInfo.model.UserInfo;
|
import com.dbnt.faisp.main.userInfo.model.UserInfo;
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
import org.springframework.security.core.annotation.AuthenticationPrincipal;
|
import org.springframework.security.core.annotation.AuthenticationPrincipal;
|
||||||
|
|
@ -20,7 +21,7 @@ import java.util.List;
|
||||||
@RestController
|
@RestController
|
||||||
@RequiredArgsConstructor
|
@RequiredArgsConstructor
|
||||||
@RequestMapping("/intelligenceNetwork")
|
@RequestMapping("/intelligenceNetwork")
|
||||||
public class IntelligenceNetworkController { // 첩보수집활동 > 해양외사모니터링
|
public class IntelligenceNetworkController {
|
||||||
private final IntelligenceNetworkService intelligenceNetworkService;
|
private final IntelligenceNetworkService intelligenceNetworkService;
|
||||||
private final AuthMgtService authMgtService;
|
private final AuthMgtService authMgtService;
|
||||||
|
|
||||||
|
|
@ -299,6 +300,142 @@ public class IntelligenceNetworkController { // 첩보수집활동 > 해양외
|
||||||
apprv.setSaveDt(LocalDateTime.now());
|
apprv.setSaveDt(LocalDateTime.now());
|
||||||
return intelligenceNetworkService.intelligenceAnalyzeChange(apprv);
|
return intelligenceNetworkService.intelligenceAnalyzeChange(apprv);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@GetMapping("/fireExtensionReportList/{type}")
|
||||||
|
public ModelAndView fireExtensionReportList(@AuthenticationPrincipal UserInfo loginUser,@PathVariable("type") String type, FireExtensionReport fer){
|
||||||
|
ModelAndView mav = new ModelAndView("igActivities/fpiMgt/intelligenceNetwork/fireExtensionReportList");
|
||||||
|
|
||||||
|
//메뉴권한 확인
|
||||||
|
String accessAuth = authMgtService.selectAccessConfigList(loginUser.getUserSeq(), "/intelligenceNetwork/fireExtensionReportList/all").get(0).getAccessAuth();
|
||||||
|
if(type.equals("all")) {
|
||||||
|
switch (accessAuth){
|
||||||
|
case "ACC001": // 조회
|
||||||
|
case "ACC002": // 작성 // 자신이 작성한 문서만 열람가능
|
||||||
|
fer.setWrtUserSeq(loginUser.getUserSeq());
|
||||||
|
break;
|
||||||
|
case "ACC003": // 관리 // 자신 외 하위 기관에서 작성한 문서 열람가능
|
||||||
|
fer.setDownOrganCdList(loginUser.getDownOrganCdList());
|
||||||
|
mav.addObject("mgtOrganList", loginUser.getDownOrganCdList());
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}else if(type.equals("stay") || type.equals("commit")) {
|
||||||
|
switch (accessAuth){
|
||||||
|
case "ACC001": // 조회
|
||||||
|
case "ACC002": // 작성 // 자신의 관서 내에서 작성한 문서만 열람가능
|
||||||
|
fer.setWrtOrgan(loginUser.getOgCd());
|
||||||
|
break;
|
||||||
|
case "ACC003": // 관리 // 자신 외 하위 기관에서 작성한 문서 열람가능
|
||||||
|
fer.setDownOrganCdList(loginUser.getDownOrganCdList());
|
||||||
|
mav.addObject("mgtOrganList", loginUser.getDownOrganCdList());
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//결재권한 확인
|
||||||
|
String apprvAuth = authMgtService.selectApprovalConfigList(loginUser.getUserSeq(), "/intelligenceNetwork/fireExtensionReportList/all").get(0).getApprovalAuth();
|
||||||
|
if(type.equals("stay")) {
|
||||||
|
if(apprvAuth==null) {
|
||||||
|
if(!accessAuth.equals("ACC003")){
|
||||||
|
fer.setWrtUserSeq(loginUser.getUserSeq());
|
||||||
|
fer.setUserType("normalStayList");
|
||||||
|
}else{
|
||||||
|
fer.setUserType("managerStayList");
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
mav.addObject("userNm", loginUser.getUserNm());
|
||||||
|
switch (apprvAuth){
|
||||||
|
case "APC004": // 계장대행
|
||||||
|
case "APC003": // 계장 // 결재대기 문서 조회
|
||||||
|
case "APC002": // 부장대행
|
||||||
|
case "APC001": // 부장 // 결재대기 문서 조회
|
||||||
|
fer.setFerState("DST002");
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}else if(type.equals("commit")){
|
||||||
|
if(apprvAuth==null) {
|
||||||
|
if(!accessAuth.equals("ACC003")){
|
||||||
|
fer.setWrtUserSeq(loginUser.getUserSeq());
|
||||||
|
fer.setUserType("normalCommitList");
|
||||||
|
}else{
|
||||||
|
fer.setUserType("managerCommitList");
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
switch (apprvAuth) {
|
||||||
|
case "APC004": // 계장대행
|
||||||
|
case "APC003": // 계장 //
|
||||||
|
case "APC002": // 부장대행
|
||||||
|
case "APC001": // 부장 //
|
||||||
|
fer.setUserType("sectionCommitList");
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
mav.addObject("accessAuth", accessAuth);
|
||||||
|
mav.addObject("apprvAuth", apprvAuth);
|
||||||
|
|
||||||
|
fer.setQueryInfo();
|
||||||
|
mav.addObject("ferList", intelligenceNetworkService.selectIFireExtensionReportList(fer));
|
||||||
|
fer.setContentCnt(intelligenceNetworkService.selectIFireExtensionReportListCnt(fer));
|
||||||
|
fer.setPaginationInfo();
|
||||||
|
mav.addObject("type", type);
|
||||||
|
|
||||||
|
mav.addObject("searchUrl", "/intelligenceNetwork/fireExtensionReportList/"+type);
|
||||||
|
mav.addObject("searchParams", fer);
|
||||||
|
return mav;
|
||||||
|
}
|
||||||
|
|
||||||
|
@GetMapping("/fireExtensionReportEditModal")
|
||||||
|
public ModelAndView fireExtensionReportEditModal(@AuthenticationPrincipal UserInfo loginUser, FireExtensionReport fer){
|
||||||
|
ModelAndView mav = new ModelAndView("igActivities/fpiMgt/intelligenceNetwork/fireExtensionReportEditModal");
|
||||||
|
if(fer.getFerKey()!=null){
|
||||||
|
fer = intelligenceNetworkService.selectFireExtensionReportInfo(fer);
|
||||||
|
}
|
||||||
|
|
||||||
|
mav.addObject("fer", fer);
|
||||||
|
return mav;
|
||||||
|
}
|
||||||
|
|
||||||
|
@GetMapping("/operationPlanListModal")
|
||||||
|
public ModelAndView operationPlanListModal(@AuthenticationPrincipal UserInfo loginUser, OperationPlan op){
|
||||||
|
ModelAndView mav = new ModelAndView("igActivities/fpiMgt/intelligenceNetwork/operationPlanListModal");
|
||||||
|
op.setFirstIndex(0);
|
||||||
|
op.setRowCnt(9999);
|
||||||
|
mav.addObject("operationPlanList", intelligenceNetworkService.selectOperationPlanList(op));
|
||||||
|
return mav;
|
||||||
|
}
|
||||||
|
|
||||||
|
@PostMapping("/getOperationPlanInfo")
|
||||||
|
@ResponseBody
|
||||||
|
public OperationPlan getOperationPlanInfo(@RequestBody OperationPlan op){
|
||||||
|
op = intelligenceNetworkService.selectOperationPlan(op.getOpKey());
|
||||||
|
return op;
|
||||||
|
}
|
||||||
|
|
||||||
|
@PostMapping("/saveFireExtensionReport")
|
||||||
|
public Integer saveFireExtensionReport(@AuthenticationPrincipal UserInfo loginUser,FireExtensionReport fer){
|
||||||
|
if(fer.getFerKey() == null) {
|
||||||
|
fer.setWrtOrgan(loginUser.getOgCd());
|
||||||
|
fer.setWrtPart(loginUser.getOfcCd());
|
||||||
|
fer.setWrtUserGrd(loginUser.getTitleCd());
|
||||||
|
fer.setWrtUserSeq(loginUser.getUserSeq());
|
||||||
|
fer.setWrtUserNm(loginUser.getUserNm());
|
||||||
|
fer.setWrtDt(LocalDateTime.now());
|
||||||
|
}
|
||||||
|
return intelligenceNetworkService.saveFireExtensionReport(fer);
|
||||||
|
}
|
||||||
|
|
||||||
|
@GetMapping("/fireExtensionReportViewModal")
|
||||||
|
public ModelAndView fireExtensionReportViewModal(@AuthenticationPrincipal UserInfo loginUser, FireExtensionReport fer){
|
||||||
|
ModelAndView mav = new ModelAndView("igActivities/fpiMgt/intelligenceNetwork/fireExtensionReportViewModal");
|
||||||
|
fer = intelligenceNetworkService.selectFireExtensionReportInfo(fer);
|
||||||
|
mav.addObject("fer", fer);
|
||||||
|
mav.addObject("userSeq",loginUser.getUserSeq());
|
||||||
|
//메뉴권한 확인
|
||||||
|
mav.addObject("accessAuth", authMgtService.selectAccessConfigList(loginUser.getUserSeq(), "/intelligenceNetwork/fireExtensionReportList/all").get(0).getAccessAuth());
|
||||||
|
mav.addObject("apprvAuth", authMgtService.selectApprovalConfigList(loginUser.getUserSeq(), "/intelligenceNetwork/fireExtensionReportList/all").get(0).getApprovalAuth());
|
||||||
|
mav.addObject("lineSeparator", '\n');
|
||||||
|
return mav;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@ package com.dbnt.faisp.main.fpiMgt.intelligenceNetwork.mapper;
|
||||||
|
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
import com.dbnt.faisp.main.fpiMgt.intelligenceNetwork.model.FireExtensionReport;
|
||||||
import com.dbnt.faisp.main.fpiMgt.intelligenceNetwork.model.IntelligenceAnalyze;
|
import com.dbnt.faisp.main.fpiMgt.intelligenceNetwork.model.IntelligenceAnalyze;
|
||||||
import com.dbnt.faisp.main.fpiMgt.intelligenceNetwork.model.OperationPlan;
|
import com.dbnt.faisp.main.fpiMgt.intelligenceNetwork.model.OperationPlan;
|
||||||
|
|
||||||
|
|
@ -24,6 +25,10 @@ public interface IntelligenceNetworkMapper {
|
||||||
|
|
||||||
List<Integer> selectIntelligenceAnalyzeAffairKey(IntelligenceAnalyze ia);
|
List<Integer> selectIntelligenceAnalyzeAffairKey(IntelligenceAnalyze ia);
|
||||||
|
|
||||||
|
List<FireExtensionReport> selectIFireExtensionReportList(FireExtensionReport fer);
|
||||||
|
|
||||||
|
Integer selectIFireExtensionReportListCnt(FireExtensionReport fer);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,86 @@
|
||||||
|
package com.dbnt.faisp.main.fpiMgt.intelligenceNetwork.model;
|
||||||
|
|
||||||
|
import com.dbnt.faisp.config.BaseModel;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
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.io.Serializable;
|
||||||
|
import java.time.LocalDate;
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Getter
|
||||||
|
@Setter
|
||||||
|
@Entity
|
||||||
|
@NoArgsConstructor
|
||||||
|
@DynamicInsert
|
||||||
|
@DynamicUpdate
|
||||||
|
@Table(name = "fire_extension_report")
|
||||||
|
public class FireExtensionReport extends BaseModel {
|
||||||
|
@Id
|
||||||
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
|
@Column(name = "fer_key")
|
||||||
|
private Integer ferKey;
|
||||||
|
@Column(name = "op_key")
|
||||||
|
private Integer opKey;
|
||||||
|
@Column(name = "op_edate")
|
||||||
|
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDate opEdate;
|
||||||
|
@Column(name = "allocation_amount")
|
||||||
|
private Integer allocationAmount;
|
||||||
|
@Column(name = "execution_amount")
|
||||||
|
private Integer executionAmount;
|
||||||
|
@Column(name = "note")
|
||||||
|
private String note;
|
||||||
|
@Column(name = "fire_extension_reason")
|
||||||
|
private String fireExtensionReason;
|
||||||
|
@Column(name = "performance_evaluation")
|
||||||
|
private String performanceEvaluation;
|
||||||
|
@Column(name = "action_opinion")
|
||||||
|
private String actionOpinion;
|
||||||
|
@Column(name = "fer_state")
|
||||||
|
private String ferState;
|
||||||
|
@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 String userType;
|
||||||
|
@Transient
|
||||||
|
private Integer balance;
|
||||||
|
@Transient
|
||||||
|
private String opName;
|
||||||
|
@Transient
|
||||||
|
private String opAge;
|
||||||
|
@Transient
|
||||||
|
private String opPosition;
|
||||||
|
@Transient
|
||||||
|
private String opJob;
|
||||||
|
@Transient
|
||||||
|
private String opSdate;
|
||||||
|
@Transient
|
||||||
|
private OperationPlan operationPlan;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,16 @@
|
||||||
|
package com.dbnt.faisp.main.fpiMgt.intelligenceNetwork.repository;
|
||||||
|
|
||||||
|
import com.dbnt.faisp.main.fpiMgt.intelligenceNetwork.model.FireExtensionReport;
|
||||||
|
|
||||||
|
import org.springframework.data.jpa.repository.JpaRepository;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Optional;
|
||||||
|
|
||||||
|
|
||||||
|
public interface FireExtensionReportRepository extends JpaRepository<FireExtensionReport, Integer> {
|
||||||
|
|
||||||
|
Optional<FireExtensionReport> findByFerKey(Integer ferKey);
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -7,5 +7,6 @@ import org.springframework.data.jpa.repository.JpaRepository;
|
||||||
|
|
||||||
|
|
||||||
public interface OperationPlanRepository extends JpaRepository<OperationPlan, Integer> {
|
public interface OperationPlanRepository extends JpaRepository<OperationPlan, Integer> {
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,8 @@ 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.OperationPlanApprv;
|
||||||
import com.dbnt.faisp.main.fpiMgt.intelligenceNetwork.model.OperationPlanFile;
|
import com.dbnt.faisp.main.fpiMgt.intelligenceNetwork.model.OperationPlanFile;
|
||||||
import com.dbnt.faisp.main.fpiMgt.intelligenceNetwork.model.OperationPlanFile.OperationPlanFileId;
|
import com.dbnt.faisp.main.fpiMgt.intelligenceNetwork.model.OperationPlanFile.OperationPlanFileId;
|
||||||
|
import com.dbnt.faisp.main.fpiMgt.intelligenceNetwork.model.FireExtensionReport;
|
||||||
|
import com.dbnt.faisp.main.fpiMgt.intelligenceNetwork.repository.FireExtensionReportRepository;
|
||||||
import com.dbnt.faisp.main.fpiMgt.intelligenceNetwork.repository.IntelligenceAnalyzeApprvRepository;
|
import com.dbnt.faisp.main.fpiMgt.intelligenceNetwork.repository.IntelligenceAnalyzeApprvRepository;
|
||||||
import com.dbnt.faisp.main.fpiMgt.intelligenceNetwork.repository.IntelligenceAnalyzeRepository;
|
import com.dbnt.faisp.main.fpiMgt.intelligenceNetwork.repository.IntelligenceAnalyzeRepository;
|
||||||
import com.dbnt.faisp.main.fpiMgt.intelligenceNetwork.repository.IntelligenceAnalyzeToAffairRepository;
|
import com.dbnt.faisp.main.fpiMgt.intelligenceNetwork.repository.IntelligenceAnalyzeToAffairRepository;
|
||||||
|
|
@ -37,6 +39,7 @@ public class IntelligenceNetworkService extends BaseService {
|
||||||
private final IntelligenceAnalyzeRepository intelligenceAnalyzeRepository;
|
private final IntelligenceAnalyzeRepository intelligenceAnalyzeRepository;
|
||||||
private final IntelligenceAnalyzeToAffairRepository intelligenceAnalyzeToAffairRepository;
|
private final IntelligenceAnalyzeToAffairRepository intelligenceAnalyzeToAffairRepository;
|
||||||
private final IntelligenceAnalyzeApprvRepository intelligenceAnalyzeApprvRepository;
|
private final IntelligenceAnalyzeApprvRepository intelligenceAnalyzeApprvRepository;
|
||||||
|
private final FireExtensionReportRepository fireExtensionReportRepository;
|
||||||
private final IntelligenceNetworkMapper intelligenceNetworkMapper;
|
private final IntelligenceNetworkMapper intelligenceNetworkMapper;
|
||||||
|
|
||||||
@Transactional
|
@Transactional
|
||||||
|
|
@ -49,11 +52,9 @@ public class IntelligenceNetworkService extends BaseService {
|
||||||
saveOperationPlanUploadFiles(opKey, op.getMultipartFileList());
|
saveOperationPlanUploadFiles(opKey, op.getMultipartFileList());
|
||||||
}
|
}
|
||||||
if(op.getOpState().equals("DST002")){
|
if(op.getOpState().equals("DST002")){
|
||||||
//작성완료일 때 계장 결재 사용자에게 알림 발송.
|
//작성완료일 때 부장 결재 사용자에게 알림 발송.
|
||||||
userAlarmService.sendAlarmToApprvUser(opKey, op.getWrtOrgan(), "APC001", 32, "외사첩보망 견문관리 운영계획에 결재대기 문서가 있습니다.");
|
userAlarmService.sendAlarmToApprvUser(opKey, op.getWrtOrgan(), "APC001", 32, "외사첩보망 견문관리 운영계획에 결재대기 문서가 있습니다.");
|
||||||
userAlarmService.sendAlarmToApprvUser(opKey, op.getWrtOrgan(), "APC002", 32, "외사첩보망 견문관리 운영계획에 결재대기 문서가 있습니다.");
|
userAlarmService.sendAlarmToApprvUser(opKey, op.getWrtOrgan(), "APC002", 32, "외사첩보망 견문관리 운영계획에 결재대기 문서가 있습니다.");
|
||||||
userAlarmService.sendAlarmToApprvUser(opKey, op.getWrtOrgan(), "APC003", 32, "외사첩보망 견문관리 운영계획에 결재대기 문서가 있습니다.");
|
|
||||||
userAlarmService.sendAlarmToApprvUser(opKey, op.getWrtOrgan(), "APC004", 32, "외사첩보망 견문관리 운영계획에 결재대기 문서가 있습니다.");
|
|
||||||
}
|
}
|
||||||
return opKey;
|
return opKey;
|
||||||
}
|
}
|
||||||
|
|
@ -116,12 +117,10 @@ public class IntelligenceNetworkService extends BaseService {
|
||||||
operationPlanApprvRepository.save(apprv);
|
operationPlanApprvRepository.save(apprv);
|
||||||
|
|
||||||
switch (apprv.getState()){
|
switch (apprv.getState()){
|
||||||
case "DST003":
|
|
||||||
case "DST005":
|
case "DST005":
|
||||||
// 반려시 작성자에게 반려 알림 발송
|
// 반려시 작성자에게 반려 알림 발송
|
||||||
userAlarmService.sendAlarmToWrtUser(saveOperationPlan.getOpKey(), saveOperationPlan.getWrtUserSeq(), 32,"외사첩보망 견문관리 운영계획에 문서가 반려되었습니다.");
|
userAlarmService.sendAlarmToWrtUser(saveOperationPlan.getOpKey(), saveOperationPlan.getWrtUserSeq(), 32,"외사첩보망 견문관리 운영계획에 문서가 반려되었습니다.");
|
||||||
break;
|
break;
|
||||||
case "DST004":
|
|
||||||
case "DST006":
|
case "DST006":
|
||||||
// 부장승인시 작성자에게 승인 알림 발송
|
// 부장승인시 작성자에게 승인 알림 발송
|
||||||
userAlarmService.sendAlarmToWrtUser(saveOperationPlan.getOpKey(), saveOperationPlan.getWrtUserSeq(), 32,"외사첩보망 견문관리 운영계획에 문서가 승인되었습니다.");
|
userAlarmService.sendAlarmToWrtUser(saveOperationPlan.getOpKey(), saveOperationPlan.getWrtUserSeq(), 32,"외사첩보망 견문관리 운영계획에 문서가 승인되었습니다.");
|
||||||
|
|
@ -148,11 +147,9 @@ public class IntelligenceNetworkService extends BaseService {
|
||||||
intelligenceAnalyzeToAffairRepository.save(iata);
|
intelligenceAnalyzeToAffairRepository.save(iata);
|
||||||
}
|
}
|
||||||
if(ia.getIaState().equals("DST002")){
|
if(ia.getIaState().equals("DST002")){
|
||||||
//작성완료일 때 계장 결재 사용자에게 알림 발송.
|
//작성완료일 때 부장 결재 사용자에게 알림 발송.
|
||||||
userAlarmService.sendAlarmToApprvUser(iaKey, ia.getWrtOrgan(), "APC001", 34, "외사첩보망 견문관리 운영실적에 결재대기 문서가 있습니다.");
|
userAlarmService.sendAlarmToApprvUser(iaKey, ia.getWrtOrgan(), "APC001", 34, "외사첩보망 견문관리 운영실적에 결재대기 문서가 있습니다.");
|
||||||
userAlarmService.sendAlarmToApprvUser(iaKey, ia.getWrtOrgan(), "APC002", 34, "외사첩보망 견문관리 운영실적에 결재대기 문서가 있습니다.");
|
userAlarmService.sendAlarmToApprvUser(iaKey, ia.getWrtOrgan(), "APC002", 34, "외사첩보망 견문관리 운영실적에 결재대기 문서가 있습니다.");
|
||||||
userAlarmService.sendAlarmToApprvUser(iaKey, ia.getWrtOrgan(), "APC003", 34, "외사첩보망 견문관리 운영실적에 결재대기 문서가 있습니다.");
|
|
||||||
userAlarmService.sendAlarmToApprvUser(iaKey, ia.getWrtOrgan(), "APC004", 34, "외사첩보망 견문관리 운영실적에 결재대기 문서가 있습니다.");
|
|
||||||
}
|
}
|
||||||
return iaKey;
|
return iaKey;
|
||||||
}
|
}
|
||||||
|
|
@ -186,12 +183,10 @@ public class IntelligenceNetworkService extends BaseService {
|
||||||
intelligenceAnalyzeApprvRepository.save(apprv);
|
intelligenceAnalyzeApprvRepository.save(apprv);
|
||||||
|
|
||||||
switch (apprv.getState()){
|
switch (apprv.getState()){
|
||||||
case "DST003":
|
|
||||||
case "DST005":
|
case "DST005":
|
||||||
// 반려시 작성자에게 반려 알림 발송
|
// 반려시 작성자에게 반려 알림 발송
|
||||||
userAlarmService.sendAlarmToWrtUser(saveIntelligenceAnalyze.getIaKey(), saveIntelligenceAnalyze.getWrtUserSeq(), 34,"외사첩보망 견문관리 운영실적에 문서가 반려되었습니다.");
|
userAlarmService.sendAlarmToWrtUser(saveIntelligenceAnalyze.getIaKey(), saveIntelligenceAnalyze.getWrtUserSeq(), 34,"외사첩보망 견문관리 운영실적에 문서가 반려되었습니다.");
|
||||||
break;
|
break;
|
||||||
case "DST004":
|
|
||||||
case "DST006":
|
case "DST006":
|
||||||
// 부장승인시 작성자에게 승인 알림 발송
|
// 부장승인시 작성자에게 승인 알림 발송
|
||||||
userAlarmService.sendAlarmToWrtUser(saveIntelligenceAnalyze.getIaKey(), saveIntelligenceAnalyze.getWrtUserSeq(), 34,"외사첩보망 견문관리 운영실적에 문서가 승인되었습니다.");
|
userAlarmService.sendAlarmToWrtUser(saveIntelligenceAnalyze.getIaKey(), saveIntelligenceAnalyze.getWrtUserSeq(), 34,"외사첩보망 견문관리 운영실적에 문서가 승인되었습니다.");
|
||||||
|
|
@ -199,6 +194,33 @@ public class IntelligenceNetworkService extends BaseService {
|
||||||
}
|
}
|
||||||
return apprv.getIaKey();
|
return apprv.getIaKey();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Transactional
|
||||||
|
public Integer saveFireExtensionReport(FireExtensionReport fer) {
|
||||||
|
Integer ferKey = fireExtensionReportRepository.save(fer).getFerKey();
|
||||||
|
if(fer.getFerState().equals("DST002")){
|
||||||
|
//작성완료일 때 부장 결재 사용자에게 알림 발송.
|
||||||
|
userAlarmService.sendAlarmToApprvUser(ferKey, fer.getWrtOrgan(), "APC001", 35, "외사첩보망 견문관리 외사첩보망 해고(연장)보고에 결재대기 문서가 있습니다.");
|
||||||
|
userAlarmService.sendAlarmToApprvUser(ferKey, fer.getWrtOrgan(), "APC002", 35, "외사첩보망 견문관리 외사첩보망 해고(연장)보고에 결재대기 문서가 있습니다.");
|
||||||
|
}
|
||||||
|
return ferKey;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<FireExtensionReport> selectIFireExtensionReportList(FireExtensionReport fer) {
|
||||||
|
return intelligenceNetworkMapper.selectIFireExtensionReportList(fer);
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer selectIFireExtensionReportListCnt(FireExtensionReport fer) {
|
||||||
|
return intelligenceNetworkMapper.selectIFireExtensionReportListCnt(fer);
|
||||||
|
}
|
||||||
|
|
||||||
|
public FireExtensionReport selectFireExtensionReportInfo(FireExtensionReport fer) {
|
||||||
|
FireExtensionReport savedFireExtensionReport = fireExtensionReportRepository.findByFerKey(fer.getFerKey()).orElse(null);
|
||||||
|
if (savedFireExtensionReport != null) {
|
||||||
|
savedFireExtensionReport.setOperationPlan(operationPlanRepository.findById(savedFireExtensionReport.getOpKey()).orElse(null));
|
||||||
|
}
|
||||||
|
return savedFireExtensionReport;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -54,8 +54,11 @@
|
||||||
op_name,
|
op_name,
|
||||||
op_birth,
|
op_birth,
|
||||||
op_position,
|
op_position,
|
||||||
|
op_job,
|
||||||
|
op_career,
|
||||||
op_phone,
|
op_phone,
|
||||||
op_rank,
|
op_rank,
|
||||||
|
op_sdate,
|
||||||
op_state as status,
|
op_state as status,
|
||||||
(select item_value from code_mgt where item_cd = op_state) as op_state,
|
(select item_value from code_mgt where item_cd = op_state) as op_state,
|
||||||
wrt_user_seq,
|
wrt_user_seq,
|
||||||
|
|
@ -75,6 +78,7 @@
|
||||||
order by op.op_key desc
|
order by op.op_key desc
|
||||||
limit #{rowCnt} offset #{firstIndex}
|
limit #{rowCnt} offset #{firstIndex}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectOperationPlanListCnt" resultType="Integer" parameterType="OperationPlan">
|
<select id="selectOperationPlanListCnt" resultType="Integer" parameterType="OperationPlan">
|
||||||
select count(*)
|
select count(*)
|
||||||
from operation_plan op
|
from operation_plan op
|
||||||
|
|
@ -410,4 +414,100 @@
|
||||||
where ia_key = #{iaKey}
|
where ia_key = #{iaKey}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
<sql id="selectIFireExtensionReportListWhere">
|
||||||
|
<if test='wrtUserSeq != null and wrtUserSeq != ""'>
|
||||||
|
and fer.wrt_user_seq = #{wrtUserSeq}
|
||||||
|
</if>
|
||||||
|
<if test='wrtOrgan != null and wrtOrgan != ""'>
|
||||||
|
and fer.wrt_organ = #{wrtOrgan}
|
||||||
|
</if>
|
||||||
|
<if test='ferState != null and ferState != ""'>
|
||||||
|
and fer_state = #{ferState}
|
||||||
|
</if>
|
||||||
|
<if test='dateSelector == "iaDt"'>
|
||||||
|
<if test='startDate != null and startDate != ""'>
|
||||||
|
and op_sdate >= #{startDate}::date
|
||||||
|
</if>
|
||||||
|
<if test='endDate != null and endDate != ""'>
|
||||||
|
and op_edate <= #{endDate}::date
|
||||||
|
</if>
|
||||||
|
</if>
|
||||||
|
<if test='dateSelector == "wrtDt"'>
|
||||||
|
<if test='startDate != null and startDate != ""'>
|
||||||
|
and fer.wrt_dt >= #{startDate}::date
|
||||||
|
</if>
|
||||||
|
<if test='endDate != null and endDate != ""'>
|
||||||
|
and fer.wrt_dt <= #{endDate}::date+1
|
||||||
|
</if>
|
||||||
|
</if>
|
||||||
|
<if test="downOrganCdList != null">
|
||||||
|
and fer.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 fer_state in ('DST002')
|
||||||
|
</if>
|
||||||
|
<if test='userType == "normalCommitList"'>
|
||||||
|
and fer_state in ('DST003', 'DST004', 'DST005', 'DST006')
|
||||||
|
</if>
|
||||||
|
<if test='userType == "sectionCommitList"'>
|
||||||
|
and fer_state in ('DST003', 'DST004', 'DST005', 'DST006')
|
||||||
|
</if>
|
||||||
|
<if test='userType == "managerStayList"'>
|
||||||
|
and fer_state in ('DST002')
|
||||||
|
</if>
|
||||||
|
<if test='userType == "managerCommitList"'>
|
||||||
|
and fer_state in ('DST003', 'DST004', 'DST005', 'DST006')
|
||||||
|
</if>
|
||||||
|
</if>
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectIFireExtensionReportList" resultType="FireExtensionReport" parameterType="FireExtensionReport">
|
||||||
|
select fer_key,
|
||||||
|
op_name,
|
||||||
|
EXTRACT( year FROM age(CURRENT_DATE,op_birth)) as op_age,
|
||||||
|
op_position,
|
||||||
|
op_job,
|
||||||
|
op_sdate,
|
||||||
|
op_edate,
|
||||||
|
execution_amount,
|
||||||
|
fer_state,
|
||||||
|
fer.wrt_user_seq,
|
||||||
|
(select item_value from code_mgt where item_cd = fer.wrt_user_grd) as wrt_user_grd,
|
||||||
|
fer.wrt_user_nm,
|
||||||
|
fer.wrt_dt
|
||||||
|
from fire_extension_report fer,
|
||||||
|
operation_plan op
|
||||||
|
where fer.op_key = op.op_key
|
||||||
|
<include refid="selectIFireExtensionReportListWhere"></include>
|
||||||
|
order by fer_key desc
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectIFireExtensionReportListCnt" resultType="Integer" parameterType="FireExtensionReport">
|
||||||
|
select count(*)
|
||||||
|
from(
|
||||||
|
select fer_key,
|
||||||
|
op_name,
|
||||||
|
EXTRACT( year FROM age(CURRENT_DATE,op_birth)) as op_age,
|
||||||
|
op_position,
|
||||||
|
op_job,
|
||||||
|
op_sdate,
|
||||||
|
op_edate,
|
||||||
|
execution_amount,
|
||||||
|
fer_state,
|
||||||
|
fer.wrt_user_seq,
|
||||||
|
(select item_value from code_mgt where item_cd = fer.wrt_user_grd) as wrt_user_grd,
|
||||||
|
fer.wrt_user_nm,
|
||||||
|
fer.wrt_dt
|
||||||
|
from fire_extension_report fer,
|
||||||
|
operation_plan op
|
||||||
|
where fer.op_key = op.op_key
|
||||||
|
<include refid="selectIFireExtensionReportListWhere"></include>
|
||||||
|
order by fer_key desc
|
||||||
|
)a
|
||||||
|
</select>
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
@ -0,0 +1,205 @@
|
||||||
|
$(function(){
|
||||||
|
$("#dateSelectorDiv").datepicker({
|
||||||
|
format: "yyyy-mm-dd",
|
||||||
|
language: "ko",
|
||||||
|
autoclose: true
|
||||||
|
});
|
||||||
|
})
|
||||||
|
|
||||||
|
$(document).on('click', '#allTab', function (){
|
||||||
|
location.href = "/intelligenceNetwork/fireExtensionReportList/all";
|
||||||
|
})
|
||||||
|
$(document).on('click', '#stayTab', function (){
|
||||||
|
location.href = "/intelligenceNetwork/fireExtensionReportList/stay";
|
||||||
|
})
|
||||||
|
$(document).on('click', '#commitTab', function (){
|
||||||
|
location.href = "/intelligenceNetwork/fireExtensionReportList/commit";
|
||||||
|
})
|
||||||
|
|
||||||
|
$(document).on('click', '#addBtn', function (){
|
||||||
|
getFireExtensionReportEditModal(null);
|
||||||
|
})
|
||||||
|
|
||||||
|
function getFireExtensionReportEditModal(ferKey){
|
||||||
|
$.ajax({
|
||||||
|
url: '/intelligenceNetwork/fireExtensionReportEditModal',
|
||||||
|
data: {ferKey: ferKey},
|
||||||
|
type: 'GET',
|
||||||
|
dataType:"html",
|
||||||
|
success: function(html){
|
||||||
|
$("#fireExtensionReportEditModalContent").empty().append(html)
|
||||||
|
$("#opEdate").datepicker({
|
||||||
|
format: "yyyy-mm-dd",
|
||||||
|
language: "ko",
|
||||||
|
autoclose: true
|
||||||
|
});
|
||||||
|
setUploadDiv();
|
||||||
|
$("#fireExtensionReportEditModal").modal('show');
|
||||||
|
},
|
||||||
|
error:function(){
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
$(document).on('click', '#operationPlanModalBtn', function (){
|
||||||
|
const opKey = $("input[name=opKey]").val();
|
||||||
|
$.ajax({
|
||||||
|
url: '/intelligenceNetwork/operationPlanListModal',
|
||||||
|
data: {
|
||||||
|
|
||||||
|
},
|
||||||
|
type: 'GET',
|
||||||
|
dataType:"html",
|
||||||
|
success: function(html){
|
||||||
|
$("#operationPlanListModalContent").empty().append(html);
|
||||||
|
if(opKey != ""){
|
||||||
|
$(".rowChkBox[value="+opKey+"]").prop("checked", true);
|
||||||
|
}
|
||||||
|
$("#operationPlanListModal").modal('show');
|
||||||
|
},
|
||||||
|
error:function(e){
|
||||||
|
ajaxErrorAction(e);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
})
|
||||||
|
|
||||||
|
$(document).on('click', '#getOperationPlanBtn', function (){
|
||||||
|
if($(".rowChkBox:checked").length < 1){
|
||||||
|
alert("견문을 선택해주세요");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
const opKey = $(".rowChkBox:checked").val();
|
||||||
|
$.ajax({
|
||||||
|
type : 'POST',
|
||||||
|
data : JSON.stringify({opKey:opKey}),
|
||||||
|
url : "/intelligenceNetwork/getOperationPlanInfo",
|
||||||
|
contentType: 'application/json',
|
||||||
|
beforeSend: function (xhr){
|
||||||
|
xhr.setRequestHeader($("[name='_csrf_header']").val(), $("[name='_csrf']").val());
|
||||||
|
},
|
||||||
|
success : function(data) {
|
||||||
|
$("#opName").val(data.opName);
|
||||||
|
$("#opBirth").val(data.opBirth);
|
||||||
|
$("#opPosition").val(data.opPosition);
|
||||||
|
$("#opJob").val(data.opJob);
|
||||||
|
$("#opCareer").val(data.opCareer);
|
||||||
|
$("#opPhone").val(data.opPhone);
|
||||||
|
$("#opSdate").val(data.opSdate);
|
||||||
|
$("#opRank").val(data.opRank);
|
||||||
|
$("input[name=opKey]").val(data.opKey);
|
||||||
|
contentFade("out");
|
||||||
|
},
|
||||||
|
error : function(xhr, status) {
|
||||||
|
contentFade("out");
|
||||||
|
}
|
||||||
|
})
|
||||||
|
$("#operationPlanListModal").modal("hide");
|
||||||
|
})
|
||||||
|
|
||||||
|
$(document).on('click', '#editBtn', function (){
|
||||||
|
$("#fireExtensionReportViewModal").modal('hide');
|
||||||
|
getFireExtensionReportEditModal($(this).attr("data-ferkey"));
|
||||||
|
})
|
||||||
|
|
||||||
|
$(document).on('click', '#saveBtn', function (){
|
||||||
|
if(!$("input[name=opKey]").val()){
|
||||||
|
alert("정보협력자를 선택해주세요.");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if(!$("#opEdate").val()){
|
||||||
|
alert("운용기간을 입력해주세요.");
|
||||||
|
$('#opEdate').focus();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if(!$("#allocationAmount").val()){
|
||||||
|
alert("배정액을 입력해주세요.");
|
||||||
|
$('#allocationAmount').focus();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if(!$("#executionAmount").val()){
|
||||||
|
alert("집행액을 입력해주세요.");
|
||||||
|
$('#executionAmount').focus();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if(confirm("저장하시겠습니까?")){
|
||||||
|
saveFireExtensionReport('DST002');
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
$(document).on('click', '#saveTempBtn', function (){
|
||||||
|
if(confirm("임시저장 하시겠습니까?")){
|
||||||
|
saveFireExtensionReport('DST001');
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
function saveFireExtensionReport(ferState){
|
||||||
|
contentFade("in");
|
||||||
|
const formData = new FormData($("#fireExtensionReportEditForm")[0]);
|
||||||
|
formData.append('ferState', ferState);
|
||||||
|
$.ajax({
|
||||||
|
type : 'POST',
|
||||||
|
data : formData,
|
||||||
|
url : "/intelligenceNetwork/saveFireExtensionReport",
|
||||||
|
processData: false,
|
||||||
|
contentType: false,
|
||||||
|
success : function(result) {
|
||||||
|
alert("저장되었습니다.");
|
||||||
|
contentFade("out");
|
||||||
|
location.reload();
|
||||||
|
},
|
||||||
|
error : function(xhr, status) {
|
||||||
|
alert("저장에 실패하였습니다.")
|
||||||
|
contentFade("out");
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
$(document).on('click', '.fireExtensionReportTr', function (){
|
||||||
|
fireExtensionReportViewModal(Number($(this).find(".ferKey").val()));
|
||||||
|
})
|
||||||
|
|
||||||
|
function fireExtensionReportViewModal(ferKey){
|
||||||
|
$.ajax({
|
||||||
|
url: '/intelligenceNetwork/fireExtensionReportViewModal',
|
||||||
|
data: {ferKey: ferKey},
|
||||||
|
type: 'GET',
|
||||||
|
dataType:"html",
|
||||||
|
success: function(html){
|
||||||
|
$("#fireExtensionReportViewModalBody").empty().append(html)
|
||||||
|
$("#fireExtensionReportViewModal").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,210 @@
|
||||||
|
<!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="${fer.ferKey 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="fireExtensionReportEditForm">
|
||||||
|
<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="opKey" th:value="${fer.opKey}">
|
||||||
|
<input type="hidden" name="ferKey" th:value="${fer.ferKey}">
|
||||||
|
<input type="hidden" name="wrtOrgan" th:value="${fer.wrtOrgan}">
|
||||||
|
<input type="hidden" name="wrtPart" th:value="${fer.wrtPart}">
|
||||||
|
<input type="hidden" name="wrtUserSeq" th:value="${fer.wrtUserSeq}">
|
||||||
|
<input type="hidden" name="wrtUserGrd" th:value="${fer.wrtUserGrd}">
|
||||||
|
<input type="hidden" name="wrtUserNm" th:value="${fer.wrtUserNm}">
|
||||||
|
<input type="hidden" name="wrtDt" id="wrtDt" th:value="${#temporals.format(fer.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>
|
||||||
|
<th:block th:if="${fer.ferKey eq null}">
|
||||||
|
<hr>
|
||||||
|
<div class="row mb-1">
|
||||||
|
<h6 class="text-center">정보협력자<br>구성</h6>
|
||||||
|
<div class="text-end">
|
||||||
|
<input type="button" class="btn btn-sm btn-outline-primary" id="operationPlanModalBtn" value="불러오기">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row mb-1">
|
||||||
|
<div class="col-sm-1"></div>
|
||||||
|
<label for="opName" 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" disabled>
|
||||||
|
</div>
|
||||||
|
<label for="opBirth" 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" disabled>
|
||||||
|
</div>
|
||||||
|
<label for="opPosition" 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" disabled>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row mb-1">
|
||||||
|
<div class="col-sm-1"></div>
|
||||||
|
<label for="opJob" 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" disabled>
|
||||||
|
</div>
|
||||||
|
<label for="opCareer" 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" disabled>
|
||||||
|
</div>
|
||||||
|
<label for="opPhone" 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" disabled>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row mb-1">
|
||||||
|
<div class="col-sm-1"></div>
|
||||||
|
<label for="opSdate" 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="opSdate" disabled>
|
||||||
|
</div>
|
||||||
|
<label for="opEdate" 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="opEdate" name="opEdate">
|
||||||
|
</div>
|
||||||
|
<label for="opRank" 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" disabled>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</th:block>
|
||||||
|
<th:block th:unless="${fer.ferKey eq null}">
|
||||||
|
<hr>
|
||||||
|
<div class="row mb-1">
|
||||||
|
<h6 class="text-center">정보협력자<br>구성</h6>
|
||||||
|
<div class="text-end">
|
||||||
|
<input type="button" class="btn btn-sm btn-outline-primary" id="operationPlanModalBtn" value="불러오기">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row mb-1">
|
||||||
|
<div class="col-sm-1"></div>
|
||||||
|
<label for="opName" 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" th:value="${fer.operationPlan.opName}" disabled>
|
||||||
|
</div>
|
||||||
|
<label for="opBirth" 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" th:value="${fer.operationPlan.opBirth}" disabled>
|
||||||
|
</div>
|
||||||
|
<label for="opPosition" 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" th:value="${fer.operationPlan.opPosition}" disabled>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row mb-1">
|
||||||
|
<div class="col-sm-1"></div>
|
||||||
|
<label for="opJob" 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" th:value="${fer.operationPlan.opJob}" disabled>
|
||||||
|
</div>
|
||||||
|
<label for="opCareer" 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" th:value="${fer.operationPlan.opCareer}" disabled>
|
||||||
|
</div>
|
||||||
|
<label for="opPhone" 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" th:value="${fer.operationPlan.opPhone}" disabled>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row mb-1">
|
||||||
|
<div class="col-sm-1"></div>
|
||||||
|
<label for="opSdate" 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="opSdate" th:value="${fer.operationPlan.opSdate}" disabled>
|
||||||
|
</div>
|
||||||
|
<label for="opEdate" 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="opEdate" name="opEdate" th:value="${fer.opEdate}">
|
||||||
|
</div>
|
||||||
|
<label for="opRank" 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" th:value="${fer.operationPlan.opRank}" disabled>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</th:block>
|
||||||
|
<hr>
|
||||||
|
<div class="row mb-1">
|
||||||
|
<h6 class="text-center">소요예산</h6>
|
||||||
|
</div>
|
||||||
|
<div class="row mb-1">
|
||||||
|
<div class="col-sm-1"></div>
|
||||||
|
<label for="allocationAmount" class="col-sm-1 col-form-label col-form-label-sm text-center">*배정액(만원)</label>
|
||||||
|
<div class="col-sm-2">
|
||||||
|
<input type="number" class="form-control form-control-sm" id="allocationAmount" name="allocationAmount" th:value="${fer.allocationAmount}">
|
||||||
|
</div>
|
||||||
|
<label for="executionAmount" class="col-sm-1 col-form-label col-form-label-sm text-center">*집행액(만원)</label>
|
||||||
|
<div class="col-sm-2">
|
||||||
|
<input type="number" class="form-control form-control-sm" id="executionAmount" name="executionAmount" th:value="${fer.executionAmount}">
|
||||||
|
</div>
|
||||||
|
<label for="balance" 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="balance" placeholder="자동계산" disabled>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row mb-1">
|
||||||
|
<div class="col-sm-1"></div>
|
||||||
|
<label for="targetLocation" class="col-sm-1 col-form-label col-form-label-sm text-center">비고</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<textarea id="targetLocation" name="note" rows="5" cols="102" th:utext="${fer.note}"></textarea>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<hr>
|
||||||
|
<div class="row mb-1">
|
||||||
|
<label for="fireExtensionReason" class="col-sm-1 col-form-label col-form-label-sm text-center">해고(연장)<br>사유</label>
|
||||||
|
<div class="col-sm-11">
|
||||||
|
<textarea id="fireExtensionReason" name="fireExtensionReason" rows="5" cols="139" th:utext="${fer.fireExtensionReason}"></textarea>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row mb-1">
|
||||||
|
<label for="performanceEvaluation" class="col-sm-1 col-form-label col-form-label-sm text-center">운용실적<br>및<br>결과분석·평가</label>
|
||||||
|
<div class="col-sm-11">
|
||||||
|
<textarea id="performanceEvaluation" name="performanceEvaluation" rows="5" cols="139" th:utext="${fer.performanceEvaluation}"></textarea>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row mb-1">
|
||||||
|
<label for="actionOpinion" class="col-sm-1 col-form-label col-form-label-sm text-center">조치의견</label>
|
||||||
|
<div class="col-sm-11">
|
||||||
|
<textarea id="actionOpinion" name="actionOpinion" rows="5" cols="139" th:utext="${fer.actionOpinion}"></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,181 @@
|
||||||
|
<!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/fireExtensionReport.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">
|
||||||
|
<div class="col-2" th:if="${accessAuth eq 'ACC003'}">
|
||||||
|
<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="opName" th:value="${searchParams.opName}">
|
||||||
|
</div>
|
||||||
|
<div class="col-2">
|
||||||
|
<select class="form-select form-select-sm" name="opState">
|
||||||
|
<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.opState}"></option>
|
||||||
|
</th:block>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
<div class="col-4">
|
||||||
|
<div class="input-group input-daterange" id="dateSelectorDiv">
|
||||||
|
등록일:
|
||||||
|
<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 rowspan="2">문서번호</th>
|
||||||
|
<th colspan="4">목표 인적사항</th>
|
||||||
|
<th rowspan="2">운영기간</th>
|
||||||
|
<th rowspan="2">소요예산</th>
|
||||||
|
<th rowspan="2">조치</th>
|
||||||
|
<th rowspan="2">등록일</th>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>성명</th>
|
||||||
|
<th>나이</th>
|
||||||
|
<th>근무처(소속)</th>
|
||||||
|
<th>직업(직위)</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody class="table-group-divider">
|
||||||
|
<tr class="fireExtensionReportTr" th:each="list:${ferList}">
|
||||||
|
<td th:text="${list.ferKey}"></td>
|
||||||
|
<td th:text="${list.opName}"></td>
|
||||||
|
<td th:text="${list.opAge}"></td>
|
||||||
|
<td th:text="${list.opPosition}"></td>
|
||||||
|
<td th:text="${list.opJob}"></td>
|
||||||
|
<td th:text="|${list.opSdate}~${list.opEdate}"></td>
|
||||||
|
<td th:text="|${list.executionAmount}만원|"></td>
|
||||||
|
<td th:text="${list.ferState}"></td>
|
||||||
|
<td th:text="${#temporals.format(list.wrtDt, 'yyyy-MM-dd HH:mm')}"></td>
|
||||||
|
<th:block>
|
||||||
|
<input type="hidden" class="ferKey" th:value="${list.ferKey}">
|
||||||
|
</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="fireExtensionReportEditModal" 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="fireExtensionReportEditModalContent">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="modal fade" id="operationPlanListModal" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1" aria-labelledby="affairListModalLabel" aria-hidden="true">
|
||||||
|
<div class="modal-dialog modal-xl modal-dialog-scrollable">
|
||||||
|
<div class="modal-content" id="operationPlanListModalContent">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="modal fade" id="fireExtensionReportViewModal" 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="fireExtensionReportViewModalBody">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</html>
|
||||||
|
|
@ -0,0 +1,143 @@
|
||||||
|
<!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>
|
||||||
|
</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 fer.wrtUserGrd}" th:text="|${commonCode.itemValue} ${fer.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(fer.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 fer.ferState}" 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="${fer.operationPlan.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="${fer.operationPlan.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="${fer.operationPlan.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="${fer.operationPlan.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="${fer.operationPlan.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="${fer.operationPlan.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="|${fer.operationPlan.opSdate}~${fer.opEdate}|"></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="${fer.operationPlan.opRank}"></label>
|
||||||
|
</div>
|
||||||
|
<hr>
|
||||||
|
<div class="row mb-1"><h6 class="text-center">소요예산</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="|${fer.allocationAmount}만원|"></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="|${fer.executionAmount}만원|"></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="|${fer.allocationAmount-fer.executionAmount}만원|"></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>
|
||||||
|
<div class="col-sm-8 form-control-sm" id="contentDiv">
|
||||||
|
<div th:utext="${#strings.replace(fer.note, lineSeparator, '<br>')}"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<hr>
|
||||||
|
<div class="row">
|
||||||
|
<label class="col-sm-1 col-form-label col-form-label-sm text-center">해고(연장)<br>사유</label>
|
||||||
|
<div class="col-sm-11 form-control-sm" id="contentDiv">
|
||||||
|
<div th:utext="${#strings.replace(fer.fireExtensionReason, lineSeparator, '<br>')}"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<hr>
|
||||||
|
<div class="row mb-1">
|
||||||
|
<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="${#strings.replace(fer.performanceEvaluation, lineSeparator, '<br>')}"></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="${#strings.replace(fer.actionOpinion, lineSeparator, '<br>')}"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</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') and fer.ferState 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="${fer.ferState eq 'DST004' or fer.ferState eq 'DST006'}"><!--승인 상태일때는 수정 불가 -->
|
||||||
|
<th:block th:if="${userSeq eq fer.wrtUserSeq or accessAuth eq 'ACC003'}"><!--작성자일 경우 수정 허용--><!--관리자일 경우 수정 허용-->
|
||||||
|
<button type="button" class="btn btn-warning" th:data-ferkey="${fer.ferKey}" id="editBtn">수정</button>
|
||||||
|
</th:block>
|
||||||
|
</th:block>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
@ -0,0 +1,44 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="ko" xmlns:th="http://www.thymeleaf.org">
|
||||||
|
<div class="modal-header bg-dark">
|
||||||
|
<h5 class="modal-title text-white" id="affairListModalLabel">정보협력자 목록</h5>
|
||||||
|
<button type="button" class="btn-close f-invert" data-bs-dismiss="modal" aria-label="Close"></button>
|
||||||
|
</div>
|
||||||
|
<div class="modal-body" id="affairListBody">
|
||||||
|
<table class="table table-sm table-hover">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th></th>
|
||||||
|
<th>성명</th>
|
||||||
|
<th>생년월일</th>
|
||||||
|
<th>근무처(소속)</th>
|
||||||
|
<th>직업(직위)</th>
|
||||||
|
<th>경력</th>
|
||||||
|
<th>연락처</th>
|
||||||
|
<th>운용시작일</th>
|
||||||
|
<th>등급</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr class="affairTr" th:each="op:${operationPlanList}">
|
||||||
|
<td><input type="checkbox" class="rowChkBox" th:value="${op.opKey}"></td>
|
||||||
|
<td th:text="${op.opName}"></td>
|
||||||
|
<td th:text="${op.opBirth}"></td>
|
||||||
|
<td th:text="${op.opPosition}"></td>
|
||||||
|
<td th:text="${op.opJob}"></td>
|
||||||
|
<td th:text="${op.opCareer}"></td>
|
||||||
|
<td th:text="${op.opPhone}"></td>
|
||||||
|
<td th:text="${op.opSdate}"></td>
|
||||||
|
<td th:text="${op.opRank}"></td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</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-primary" id="getOperationPlanBtn">불러오기</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
Loading…
Reference in New Issue