Compare commits
2 Commits
acd01abd77
...
7a92c874d3
| Author | SHA1 | Date |
|---|---|---|
|
|
7a92c874d3 | |
|
|
987113849a |
|
|
@ -322,14 +322,9 @@
|
||||||
|
|
||||||
.viewerDiv{height: calc(100vh - 190px); overflow-y: auto;}
|
.viewerDiv{height: calc(100vh - 190px); overflow-y: auto;}
|
||||||
.openDoc{background-color: bisque;}
|
.openDoc{background-color: bisque;}
|
||||||
.docLink{
|
.docLink{color: black;background-color: palegreen}
|
||||||
color: black;
|
|
||||||
background-color: palegreen
|
|
||||||
}
|
|
||||||
.docLink:hover{cursor: pointer}
|
.docLink:hover{cursor: pointer}
|
||||||
.bookmark{
|
.bookmark{color: forestgreen;}
|
||||||
color: forestgreen;
|
|
||||||
}
|
|
||||||
.bookmark:hover{cursor: pointer}
|
.bookmark:hover{cursor: pointer}
|
||||||
.errorText{color:white; background-color: red; font-size: x-small; vertical-align: bottom; padding: 0 10px;}
|
.errorText{color:white; background-color: red; font-size: x-small; vertical-align: bottom; padding: 0 10px;}
|
||||||
|
|
||||||
|
|
@ -337,4 +332,8 @@
|
||||||
.titleCheckBox ~ p {display: inline}
|
.titleCheckBox ~ p {display: inline}
|
||||||
.errorCnt{display: inline; color:red;}
|
.errorCnt{display: inline; color:red;}
|
||||||
.errorText{display: inline; cursor: pointer}
|
.errorText{display: inline; cursor: pointer}
|
||||||
.detailInfoDiv > div > input {margin-right: 5px;}
|
.detailInfoDiv > div > input {margin-right: 5px;}
|
||||||
|
.docInfoTitle{white-space: nowrap;}
|
||||||
|
.yearInfo{font-size: 9px}
|
||||||
|
.yearInfoActive{color: #0d6efd}
|
||||||
|
.docInfoBtn{--bs-btn-padding-y: 0.1rem;--bs-btn-padding-x: 0.25rem;--bs-btn-font-size: 0.7rem;}
|
||||||
|
|
@ -49,7 +49,7 @@ function CodeViewer(props) {
|
||||||
setDocName(docName);
|
setDocName(docName);
|
||||||
getCodeInfo(docCode);
|
getCodeInfo(docCode);
|
||||||
setErrorSelector([])
|
setErrorSelector([])
|
||||||
getCodeDetailInfo(null, docCode);
|
getCodeDetailInfo(docCode);
|
||||||
}
|
}
|
||||||
|
|
||||||
const getCodeTree = ()=>{
|
const getCodeTree = ()=>{
|
||||||
|
|
@ -112,13 +112,16 @@ function CodeViewer(props) {
|
||||||
let optionTag = [];
|
let optionTag = [];
|
||||||
docInfo.forEach(function (item, index){
|
docInfo.forEach(function (item, index){
|
||||||
optionTag.push(
|
optionTag.push(
|
||||||
<option value={item.doc_info_seq}
|
<Col>
|
||||||
selected={docInfoSeq===item.doc_info_seq || (docInfoSeq===undefined && item.last_yn === 'Y')}>
|
<input type="button"
|
||||||
{item.doc_er==='E'?'재정':'개정'} {item.kcsc_cd} {item.doc_nm} :{item.doc_yr}
|
className="btn btn-sm docInfoBtn btn-outline-secondary"
|
||||||
</option>
|
value={item.doc_er==='E'?'재':'개'} />
|
||||||
)
|
<br/>
|
||||||
|
<p className="yearInfo">{item.doc_yr}</p>
|
||||||
|
</Col>)
|
||||||
|
|
||||||
})
|
})
|
||||||
headTag.push(<Form.Select size="sm" id="docInfoSelector" onChange={docInfoSelectorChange} disabled={selectFlag}>{optionTag}</Form.Select>)
|
headTag.push(<Row><Col className="docInfoTitle">{docCode} {docName}</Col>{optionTag}</Row>)
|
||||||
}else{
|
}else{
|
||||||
headTag.push(<div>검색된 결과가 없습니다.</div>); // 코드 목록 초기값
|
headTag.push(<div>검색된 결과가 없습니다.</div>); // 코드 목록 초기값
|
||||||
}
|
}
|
||||||
|
|
@ -127,7 +130,7 @@ function CodeViewer(props) {
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
|
||||||
const getCodeDetailInfo = useCallback((docInfoSeq, docCode) => {
|
const getCodeDetailInfo = useCallback((docCode, ymd) => {
|
||||||
console.groupCollapsed("EgovMain.getCodeDetailInfo()");
|
console.groupCollapsed("EgovMain.getCodeDetailInfo()");
|
||||||
EgovNet.requestFetch(
|
EgovNet.requestFetch(
|
||||||
'/standardCode/getCodeDetailInfo.do',
|
'/standardCode/getCodeDetailInfo.do',
|
||||||
|
|
@ -137,8 +140,8 @@ function CodeViewer(props) {
|
||||||
'Content-type': 'application/json'
|
'Content-type': 'application/json'
|
||||||
},
|
},
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
docInfoSeq: docInfoSeq,
|
docCode: docCode,
|
||||||
docCode: docCode
|
ymd: ymd
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
(resp) => {
|
(resp) => {
|
||||||
|
|
@ -271,7 +274,7 @@ function CodeViewer(props) {
|
||||||
setSelectFlag(true);
|
setSelectFlag(true);
|
||||||
const docInfoSeq = el.target.value
|
const docInfoSeq = el.target.value
|
||||||
setDocInfoSeq(docInfoSeq);
|
setDocInfoSeq(docInfoSeq);
|
||||||
getCodeDetailInfo(docInfoSeq, null);
|
getCodeDetailInfo(docCode);
|
||||||
})
|
})
|
||||||
const actionAppend = (el) => {
|
const actionAppend = (el) => {
|
||||||
if(!el) return;
|
if(!el) return;
|
||||||
|
|
@ -377,7 +380,7 @@ function CodeViewer(props) {
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
getCodeTree();
|
getCodeTree();
|
||||||
getCodeInfo(docCode);
|
getCodeInfo(docCode);
|
||||||
getCodeDetailInfo(null, docCode);
|
getCodeDetailInfo(docCode);
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
console.log("------------------------------viewer [End]");
|
console.log("------------------------------viewer [End]");
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,9 @@ public interface TnDocumentContentRepository extends JpaRepository<TnDocumentCon
|
||||||
@Query(value = "select * from get_year_full_context_by_content(:docInfoSeq, :docCode, :docPart, null, null)", nativeQuery = true)
|
@Query(value = "select * from get_year_full_context_by_content(:docInfoSeq, :docCode, :docPart, null, null)", nativeQuery = true)
|
||||||
List<StandardCodeContentInterface> getYearFullContextByContent(Integer docInfoSeq, String docCode, String docPart);
|
List<StandardCodeContentInterface> getYearFullContextByContent(Integer docInfoSeq, String docCode, String docPart);
|
||||||
|
|
||||||
|
@Query(value = "select * from sp_get_recent_full_context_by_content(:docCode, :docPart, :ymd)", nativeQuery = true)
|
||||||
|
List<StandardCodeContentInterface> spGetRecentFullContextByContent(String docCode, String docPart, String ymd);
|
||||||
|
|
||||||
Optional<TnDocumentContent> findByContTypeCd(String contTypeCd);
|
Optional<TnDocumentContent> findByContTypeCd(String contTypeCd);
|
||||||
|
|
||||||
Optional<TnDocumentContent> findByDocInfoSeqAndContTypeCd(Integer docInfoSeq, String contTypeCd);
|
Optional<TnDocumentContent> findByDocInfoSeqAndContTypeCd(Integer docInfoSeq, String contTypeCd);
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@ public class StandardCodeService extends EgovAbstractServiceImpl {
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<StandardCodeContentInterface> selectStandardCodeDocument(StandardCodeVO param) {
|
public List<StandardCodeContentInterface> selectStandardCodeDocument(StandardCodeVO param) {
|
||||||
return tnDocumentContentRepository.getYearFullContextByContent(param.getDocInfoSeq(), param.getDocCode(), param.getDocPart());
|
return tnDocumentContentRepository.spGetRecentFullContextByContent(param.getDocCode(), param.getDocPart(), param.getYmd());
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<TnDocumentInfoInterface> selectStandardCodeDocInfo(StandardCodeVO param) {
|
public List<TnDocumentInfoInterface> selectStandardCodeDocInfo(StandardCodeVO param) {
|
||||||
|
|
|
||||||
|
|
@ -6,9 +6,7 @@ import lombok.Setter;
|
||||||
@Getter
|
@Getter
|
||||||
@Setter
|
@Setter
|
||||||
public class StandardCodeVO {
|
public class StandardCodeVO {
|
||||||
private Integer docInfoSeq;
|
|
||||||
private String docCode;
|
private String docCode;
|
||||||
private String docPart;
|
private String docPart;
|
||||||
private Integer year;
|
private String ymd;
|
||||||
private Integer month;
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue