Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
91970cfad9
@ -2,44 +2,15 @@
|
|||||||
<!-- uac.service.rent.read_GET.xml -->
|
<!-- uac.service.rent.read_GET.xml -->
|
||||||
<result>
|
<result>
|
||||||
<!-- 상세내용 -->
|
<!-- 상세내용 -->
|
||||||
<articleNo>5</articleNo>
|
<articleNo>2</articleNo>
|
||||||
<articleType>101</articleType>
|
<rentItem>경성기담</rentItem>
|
||||||
<articleTypeName>Q&A</articleTypeName>
|
<rentItemContent>설명입니다.설명입니다.설명입니다.설명입니다.설명입니다.설명입니다.설명입니다.설명입니다.설명입니다.설명입니다.설명입니다.설명입니다.설명입니다.설명입니다.설명입니다.설명입니다.
|
||||||
<title>공지사항 테스트</title>
|
설명입니다.설명입니다.설명입니다.설명입니다.설명입니다.설명입니다.
|
||||||
<articlePassword>9uCh4qxBlFqap/+KiqoM68EqO8yYGpKa1c+BCgkOEa4=</articlePassword> <!-- 111 -->
|
</rentItemContent>
|
||||||
<!-- <articlePassword>kac/2AarLABcE7TcGRMKiE6Qneo/ctRuMCZv4aH1iNg=</articlePassword> --> <!-- 555 -->
|
<ctrlNum>2021-000084</ctrlNum>
|
||||||
<readCount>15</readCount>
|
<author>홍길동</author>
|
||||||
<regDate>2021-07-19</regDate>
|
<publisher>살림</publisher>
|
||||||
<regUserName>김아무</regUserName>
|
<rentDate>2021-07-27</rentDate>
|
||||||
<repStatus>답변완료</repStatus>
|
<retDueDate>2021-08-31</retDueDate>
|
||||||
<email>myid@digitalship.co.kr</email>
|
|
||||||
<contentQeust>질문이 있습니다.</contentQeust>
|
|
||||||
<contentQeustFile>111111=화면캡쳐.jpg;222222=화면캡쳐2.jpg;</contentQeustFile>
|
|
||||||
<contentReply>이렇게 답변 드립니다.</contentReply>
|
|
||||||
<contentReplyFile>333333=결과확인.jpg;</contentReplyFile>
|
|
||||||
|
|
||||||
<!-- 이전글, 다음글 -->
|
|
||||||
<page>1</page>
|
|
||||||
<totPages>1</totPages>
|
|
||||||
<records>2</records>
|
|
||||||
<results>
|
|
||||||
<articleNo>4</articleNo>
|
|
||||||
<articleType>101</articleType>
|
|
||||||
<articleTypeName>Q&A</articleTypeName>
|
|
||||||
<title>이전의 글제목입니다.</title>
|
|
||||||
<regDate>2021-07-19</regDate>
|
|
||||||
<regUserName>김아무</regUserName>
|
|
||||||
<repStatus>답변완료</repStatus>
|
|
||||||
</results>
|
|
||||||
<results>
|
|
||||||
<articleNo>6</articleNo>
|
|
||||||
<articleType>102</articleType>
|
|
||||||
<articleTypeName>Q&A</articleTypeName>
|
|
||||||
<title>다음의 글제목입니다.</title>
|
|
||||||
<regDate>2021-07-20</regDate>
|
|
||||||
<regUserName>홍아무</regUserName>
|
|
||||||
<repStatus>답변완료</repStatus>
|
|
||||||
</results>
|
|
||||||
|
|
||||||
</result>
|
</result>
|
||||||
|
|
||||||
|
|||||||
@ -158,8 +158,6 @@ public class CollectionController extends NlibCommonController
|
|||||||
// 반환 정보
|
// 반환 정보
|
||||||
model.addAttribute("articleNo" , articleNo);
|
model.addAttribute("articleNo" , articleNo);
|
||||||
model.addAttribute("article" , resVO.getInfo()); // 게시물 상세
|
model.addAttribute("article" , resVO.getInfo()); // 게시물 상세
|
||||||
model.addAttribute("preArticle" , resVO.getList().get(0)); // 이전글 정보
|
|
||||||
model.addAttribute("nextArticle" , resVO.getList().get(1)); // 다음글 정보
|
|
||||||
model.addAttribute("message" , message);
|
model.addAttribute("message" , message);
|
||||||
model.addAttribute("pageIndex" , pageIndex);
|
model.addAttribute("pageIndex" , pageIndex);
|
||||||
model.addAttribute("pageSize" , pageSize);
|
model.addAttribute("pageSize" , pageSize);
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
170
src/main/webapp/WEB-INF/jsp/nlib/rent/listPostpones.jsp
Normal file
170
src/main/webapp/WEB-INF/jsp/nlib/rent/listPostpones.jsp
Normal file
@ -0,0 +1,170 @@
|
|||||||
|
<%
|
||||||
|
/**
|
||||||
|
* <pre>
|
||||||
|
* @Class Name : listPostpones.jsp
|
||||||
|
*
|
||||||
|
* @Description : 반납 연기 목록을 조회한다.
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* @프로젝트명: 지방문화원 통합자료관리시스템 구축사업 (2021)
|
||||||
|
*
|
||||||
|
* </pre>
|
||||||
|
*
|
||||||
|
* @ ------------ -------- ---------------------------
|
||||||
|
* @ 수정일 수정자 수정내용
|
||||||
|
* @ ------------ -------- ---------------------------
|
||||||
|
* @ 2021. 7. 30. JSYOO 최초 생성
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* @author 이씨플라자 * DIGITALSHIP JSYOO
|
||||||
|
* @since 2021. 7. 30.
|
||||||
|
* @version 1.0
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
%>
|
||||||
|
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
|
||||||
|
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||||||
|
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui" %>
|
||||||
|
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
|
||||||
|
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
|
||||||
|
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
|
||||||
|
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
|
||||||
|
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %>
|
||||||
|
|
||||||
|
<c:set var="pageTitle">반납 연기 목록</c:set>
|
||||||
|
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>${pageTitle}</title>
|
||||||
|
|
||||||
|
<!-- GRID -->
|
||||||
|
<link type="text/css" rel="stylesheet" href="/nlib/js/jsgrid/nlib-jsgrid.css" />
|
||||||
|
<link type="text/css" rel="stylesheet" href="/nlib/js/jsgrid/nlib-jsgrid-theme.css" />
|
||||||
|
<script src="/nlib/js/jsgrid/nlib-jsgrid.js"></script>
|
||||||
|
|
||||||
|
<script type="text/javaScript" language="javascript">
|
||||||
|
|
||||||
|
window.onload = function() {
|
||||||
|
//=======================================================
|
||||||
|
// 그리드 생성 환경설정
|
||||||
|
//=======================================================
|
||||||
|
$("#jsGrid").jsGrid({
|
||||||
|
pageSize : $("#pageSize").val(),
|
||||||
|
controller: {
|
||||||
|
loadData: function (filter) { // 그리드에 데이터를 가져올 때 실팽되는 함수
|
||||||
|
var data = $.Deferred();
|
||||||
|
//======================================
|
||||||
|
// 요청 정보 구성 : 시작 (각 요청에 맞게 조정)
|
||||||
|
//======================================
|
||||||
|
var reqUrl = "${pageContext.request.contextPath}/rent/listPostponesAjax.do";
|
||||||
|
var searchKeyword = document.articleForm.searchKeyword.value;
|
||||||
|
var pageIndex = ( filter && filter.pageIndex ? filter.pageIndex : $("#pageIndex").val());
|
||||||
|
var pageSize = ( filter && filter.pageSize ? filter.pageSize : $("#pageSize").val());
|
||||||
|
|
||||||
|
$("#pageIndex").val(pageIndex);
|
||||||
|
|
||||||
|
var inputData = {
|
||||||
|
"searchKeyword" : searchKeyword
|
||||||
|
, "pageIndex" : pageIndex
|
||||||
|
, "pageSize": pageSize};
|
||||||
|
|
||||||
|
|
||||||
|
//--------------------------------------
|
||||||
|
// 요청 처리
|
||||||
|
//--------------------------------------
|
||||||
|
$.ajax({
|
||||||
|
type: "post",
|
||||||
|
contentType: "application/json; charset=utf-8",
|
||||||
|
url: reqUrl,
|
||||||
|
dataType: "json",
|
||||||
|
data: JSON.stringify(inputData),
|
||||||
|
}).done(function(response){
|
||||||
|
<%
|
||||||
|
// 그리드 데이터 예시 :
|
||||||
|
// (1) 페이징 클라이언트에서 수행하는 경우(pageloading = false) : [{ "articleNo": 1, "articleType": "01" }, { "articleNo": 2, "articleType": "02" }]
|
||||||
|
// (2) 페이징 서버에서 수행하는 경우(pageloading = true) : {data: [{...}], itemsCount: 255}
|
||||||
|
%>
|
||||||
|
data.resolve(JSON.parse(response));
|
||||||
|
});
|
||||||
|
return data.promise();
|
||||||
|
} // loadData
|
||||||
|
},
|
||||||
|
|
||||||
|
rowClick: function(args) { // 행 클릭 시, 실행되는 이벤트 함수
|
||||||
|
|
||||||
|
// 클릭된 행의 자료 객체
|
||||||
|
var getData = args.item;
|
||||||
|
|
||||||
|
// 추출할 컬럼의 데이터 가져오기
|
||||||
|
var articleNo = getData["articleNo"];
|
||||||
|
},
|
||||||
|
|
||||||
|
//======================================
|
||||||
|
// 그리드 컬럼 정의 (각 요청에 맞게 조정)
|
||||||
|
//======================================
|
||||||
|
fields: [
|
||||||
|
{ title:"번호", name: "articleNo" , type: "number" , width: 50, align: "center"},
|
||||||
|
{ title:"자료명", name: "rentItem", type: "text" , width: 200, align: "center" },
|
||||||
|
{ title:"관리번호", name: "ctrlNum", type: "number", width: 50, align: "center" },
|
||||||
|
{ title:"저자", name: "author", type: "text", width: 100, align: "center"},
|
||||||
|
{ title:"출판사", name: "publisher", type: "text", width: 100, align: "center"},
|
||||||
|
{ title:"대여일", name: "rentDate", type: "text", width: 100, align: "center"},
|
||||||
|
{ title:"반납예정일", name: "retDueDate", type: "text", width: 100, align: "center"}
|
||||||
|
]
|
||||||
|
});
|
||||||
|
|
||||||
|
// 페이지 크기 변경시 재조회
|
||||||
|
$("#pageSize").on("change", function(e) {
|
||||||
|
fn_search_article($("#pageSize").val(), 1);
|
||||||
|
});
|
||||||
|
|
||||||
|
// 검색 버튼 클릭
|
||||||
|
$("#btnSearch").on("click", function(e) {
|
||||||
|
fn_search_article($("#pageSize").val(), 1);
|
||||||
|
});
|
||||||
|
|
||||||
|
//초기 자료 조회
|
||||||
|
fn_search_article();
|
||||||
|
|
||||||
|
}; // window.onload
|
||||||
|
|
||||||
|
// 그리드 데이터 조회 호출
|
||||||
|
function fn_search_article(pageSize, pageIndex) {
|
||||||
|
$("#jsGrid").jsGrid("search"
|
||||||
|
, {'pageSize' : (pageSize ? pageSize : fn_getIntValue("pageSize", ${pageSize})),
|
||||||
|
'pageIndex': (pageIndex ? pageIndex : fn_getIntValue("pageIndex", 1))
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
</script>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<h1>${pageTitle }</h1>
|
||||||
|
|
||||||
|
<form name="articleForm" id="articleForm"
|
||||||
|
method="post">
|
||||||
|
|
||||||
|
<!-- 검색조건 -->
|
||||||
|
<select name="pageSize" id="pageSize" title="목록에 보여줄 글 개수">
|
||||||
|
<c:forEach var="pageSizeItem" items="${pageSizeCodes}" varStatus="status">
|
||||||
|
<option value="<c:out value="${pageSizeItem.code }" />" <c:if test="${pageSizeItem.code == pageSize }">selected</c:if> ><c:out value="${pageSizeItem.name }" /></option>
|
||||||
|
</c:forEach>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<input type="text" name="pageIndex" id="pageIndex" title="페이지번호" value="${pageIndex }" size="5" maxlength="5" />
|
||||||
|
<input type="text" name="searchKeyword" id="searchKeyword" title="검색어" value="${searchKeyword }" size="35" maxlength="50" />
|
||||||
|
<input type="button" name="btnSearch" id="btnSearch" value="검색" />
|
||||||
|
|
||||||
|
<div id="jsGrid" name="jsGrid" style="height: 100%"></div>
|
||||||
|
<input type="text" name="articleNo" id="articleNo" value="" title="선택글번호" readonly />
|
||||||
|
<input type="button" value="대출 취소목록" onClick="location.href='${pageContext.request.contextPath}/rent/listCanceledRentItems.do'">
|
||||||
|
<input type="button" value="반납 연기" onClick="location.href='${pageContext.request.contextPath}/rent/listCanceledRentItems.do'">
|
||||||
|
|
||||||
|
</form>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@ -1,4 +1,3 @@
|
|||||||
<<<<<<< HEAD
|
|
||||||
<%
|
<%
|
||||||
/**
|
/**
|
||||||
* <pre>
|
* <pre>
|
||||||
@ -186,186 +185,3 @@ function fn_search_article(pageSize, pageIndex) {
|
|||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
=======
|
|
||||||
<%
|
|
||||||
/**
|
|
||||||
* <pre>
|
|
||||||
* @Class Name : listReserVations.jsp
|
|
||||||
*
|
|
||||||
* @Description : 대출 예약 목록을 조회한다.
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* @프로젝트명: 지방문화원 통합자료관리시스템 구축사업 (2021)
|
|
||||||
*
|
|
||||||
* </pre>
|
|
||||||
*
|
|
||||||
* @ ------------ -------- ---------------------------
|
|
||||||
* @ 수정일 수정자 수정내용
|
|
||||||
* @ ------------ -------- ---------------------------
|
|
||||||
* @ 2021. 7. 21. JSYOO 최초 생성
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* @author 이씨플라자 * DIGITALSHIP JSYOO
|
|
||||||
* @since 2021. 7. 21.
|
|
||||||
* @version 1.0
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
%>
|
|
||||||
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
|
|
||||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
|
||||||
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui" %>
|
|
||||||
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
|
|
||||||
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
|
|
||||||
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
|
|
||||||
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
|
|
||||||
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %>
|
|
||||||
|
|
||||||
<c:set var="pageTitle">대출 예약</c:set>
|
|
||||||
|
|
||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>${pageTitle}</title>
|
|
||||||
|
|
||||||
<!-- GRID -->
|
|
||||||
<link type="text/css" rel="stylesheet" href="/nlib/js/jsgrid/nlib-jsgrid.css" />
|
|
||||||
<link type="text/css" rel="stylesheet" href="/nlib/js/jsgrid/nlib-jsgrid-theme.css" />
|
|
||||||
<script src="/nlib/js/jsgrid/nlib-jsgrid.js"></script>
|
|
||||||
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body onload="fn_init()">
|
|
||||||
|
|
||||||
<h1>대출 예약</h1>
|
|
||||||
|
|
||||||
<form name="articleForm"
|
|
||||||
action="${pageContext.request.contextPath}/board/listQnAs.do"
|
|
||||||
method="post"
|
|
||||||
onSubmit="fn_search_article(); return false;">
|
|
||||||
|
|
||||||
<!-- 검색조건 -->
|
|
||||||
<select name="pageSize" id="pageSize" title="목록에 보여줄 글 개수">
|
|
||||||
<option value="10">10개씩 보기</option>
|
|
||||||
<option value="50">50개씩 보기</option>
|
|
||||||
<option value="100">100개씩 보기</option>
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<input type="text" name="pageIndex" id="pageIndex" title="페이지번호" value="1" size="5" maxlength="5" />
|
|
||||||
|
|
||||||
<input type="text" name="searchKeyword" id="searchKeyword" title="검색어" value="" size="35" maxlength="50" />
|
|
||||||
|
|
||||||
<input type="submit" name="btnSearch" id="btnSearch" value="검색" />
|
|
||||||
|
|
||||||
<input type="button" name="btnNew" id="btnNew" value="글쓰기"
|
|
||||||
onclick="javascript:location.href='${pageContext.request.contextPath}/board/insertQnAForm.do';" />
|
|
||||||
|
|
||||||
<div id="jsGrid" name="jsGrid" ></div>
|
|
||||||
|
|
||||||
</form>
|
|
||||||
|
|
||||||
<script type="text/javaScript" language="javascript">
|
|
||||||
// 그리드 데이터
|
|
||||||
var clients = [
|
|
||||||
{ "noticeNo": 1, "noticeType": "01", "title": "대출예약 제목입니다.", "readCount": 7, "regDate": "2021-07-11" },
|
|
||||||
{ "noticeNo": 2, "noticeType": "02", "title": "대출예약 제목입니다.", "readCount": 7, "regDate": "2021-07-11" },
|
|
||||||
{ "noticeNo": 3, "noticeType": "03", "title": "대출예약 제목입니다.", "readCount": 7, "regDate": "2021-07-11" },
|
|
||||||
{ "noticeNo": 4, "noticeType": "04", "title": "대출예약 제목입니다.", "readCount": 7, "regDate": "2021-07-11" },
|
|
||||||
{ "noticeNo": 5, "noticeType": "05", "title": "대출예약 제목입니다.", "readCount": 7, "regDate": "2021-07-11" },
|
|
||||||
{ "noticeNo": 6, "noticeType": "06", "title": "대출예약 제목입니다.", "readCount": 7, "regDate": "2021-07-11" },
|
|
||||||
{ "noticeNo": 7, "noticeType": "06", "title": "대출예약 제목입니다.", "readCount": 7, "regDate": "2021-07-11" },
|
|
||||||
{ "noticeNo": 8, "noticeType": "05", "title": "대출예약 제목입니다.", "readCount": 7, "regDate": "2021-07-11" },
|
|
||||||
{ "noticeNo": 8, "noticeType": "05", "title": "대출예약 제목입니다.", "readCount": 7, "regDate": "2021-07-11" },
|
|
||||||
{ "noticeNo": 8, "noticeType": "05", "title": "대출예약 제목입니다.", "readCount": 7, "regDate": "2021-07-11" },
|
|
||||||
{ "noticeNo": 8, "noticeType": "05", "title": "대출예약 제목입니다.", "readCount": 7, "regDate": "2021-07-11" },
|
|
||||||
{ "noticeNo": 8, "noticeType": "05", "title": "대출예약 제목입니다.", "readCount": 7, "regDate": "2021-07-11" },
|
|
||||||
{ "noticeNo": 8, "noticeType": "05", "title": "대출예약 제목입니다.", "readCount": 7, "regDate": "2021-07-11" },
|
|
||||||
{ "noticeNo": 8, "noticeType": "05", "title": "대출예약 제목입니다.", "readCount": 7, "regDate": "2021-07-11" },
|
|
||||||
{ "noticeNo": 8, "noticeType": "05", "title": "대출예약 제목입니다.", "readCount": 7, "regDate": "2021-07-11" },
|
|
||||||
{ "noticeNo": 8, "noticeType": "05", "title": "대출예약 제목입니다.", "readCount": 7, "regDate": "2021-07-11" },
|
|
||||||
{ "noticeNo": 8, "noticeType": "05", "title": "대출예약 제목입니다.", "readCount": 7, "regDate": "2021-07-11" },
|
|
||||||
{ "noticeNo": 8, "noticeType": "05", "title": "대출예약 제목입니다.", "readCount": 7, "regDate": "2021-07-11" },
|
|
||||||
{ "noticeNo": 8, "noticeType": "05", "title": "대출예약 제목입니다.", "readCount": 7, "regDate": "2021-07-11" },
|
|
||||||
{ "noticeNo": 8, "noticeType": "05", "title": "대출예약 제목입니다.", "readCount": 7, "regDate": "2021-07-11" },
|
|
||||||
{ "noticeNo": 8, "noticeType": "05", "title": "대출예약 제목입니다.", "readCount": 7, "regDate": "2021-07-11" },
|
|
||||||
{ "noticeNo": 8, "noticeType": "05", "title": "대출예약 제목입니다.", "readCount": 7, "regDate": "2021-07-11" },
|
|
||||||
{ "noticeNo": 8, "noticeType": "05", "title": "대출예약 제목입니다.", "readCount": 7, "regDate": "2021-07-11" },
|
|
||||||
{ "noticeNo": 8, "noticeType": "05", "title": "대출예약 제목입니다.", "readCount": 7, "regDate": "2021-07-11" },
|
|
||||||
{ "noticeNo": 8, "noticeType": "05", "title": "대출예약 제목입니다.", "readCount": 7, "regDate": "2021-07-11" },
|
|
||||||
{ "noticeNo": 8, "noticeType": "05", "title": "대출예약 제목입니다.", "readCount": 7, "regDate": "2021-07-11" },
|
|
||||||
{ "noticeNo": 8, "noticeType": "05", "title": "대출예약 제목입니다.", "readCount": 7, "regDate": "2021-07-11" },
|
|
||||||
{ "noticeNo": 8, "noticeType": "05", "title": "대출예약 제목입니다.", "readCount": 7, "regDate": "2021-07-11" },
|
|
||||||
{ "noticeNo": 8, "noticeType": "05", "title": "대출예약 제목입니다.", "readCount": 7, "regDate": "2021-07-11" },
|
|
||||||
{ "noticeNo": 8, "noticeType": "05", "title": "대출예약 제목입니다.", "readCount": 7, "regDate": "2021-07-11" },
|
|
||||||
{ "noticeNo": 8, "noticeType": "05", "title": "대출예약 제목입니다.", "readCount": 7, "regDate": "2021-07-11" },
|
|
||||||
{ "noticeNo": 8, "noticeType": "05", "title": "대출예약 제목입니다.", "readCount": 7, "regDate": "2021-07-11" },
|
|
||||||
{ "noticeNo": 8, "noticeType": "05", "title": "대출예약 제목입니다.", "readCount": 7, "regDate": "2021-07-11" },
|
|
||||||
{ "noticeNo": 8, "noticeType": "05", "title": "대출예약 제목입니다.", "readCount": 7, "regDate": "2021-07-11" },
|
|
||||||
{ "noticeNo": 8, "noticeType": "05", "title": "대출예약 제목입니다.", "readCount": 7, "regDate": "2021-07-11" },
|
|
||||||
{ "noticeNo": 8, "noticeType": "05", "title": "대출예약 제목입니다.", "readCount": 7, "regDate": "2021-07-11" },
|
|
||||||
{ "noticeNo": 8, "noticeType": "05", "title": "대출예약 제목입니다.", "readCount": 7, "regDate": "2021-07-11" },
|
|
||||||
{ "noticeNo": 8, "noticeType": "05", "title": "대출예약 제목입니다.", "readCount": 7, "regDate": "2021-07-11" },
|
|
||||||
{ "noticeNo": 9, "noticeType": "01", "title": "대출예약 제목입니다.", "readCount": 7, "regDate": "2021-07-11" }
|
|
||||||
];
|
|
||||||
|
|
||||||
// 그리드내 콤보박스 값
|
|
||||||
var noticeTypes = [
|
|
||||||
{ Name: "공지" , Id: "01" },
|
|
||||||
{ Name: "자료" , Id: "02" },
|
|
||||||
{ Name: "모집" , Id: "03" },
|
|
||||||
{ Name: "입찰" , Id: "04" },
|
|
||||||
{ Name: "발표" , Id: "05" },
|
|
||||||
{ Name: "이벤트", Id: "06" }
|
|
||||||
];
|
|
||||||
|
|
||||||
// 그리드 생성
|
|
||||||
$("#jsGrid").jsGrid({
|
|
||||||
width: "100%",
|
|
||||||
height: "100%",
|
|
||||||
|
|
||||||
inserting: false,
|
|
||||||
editing: false,
|
|
||||||
sorting: true,
|
|
||||||
paging: true,
|
|
||||||
pageSize: 10,
|
|
||||||
pageButtonCount: 10,
|
|
||||||
pageIndex: 1,
|
|
||||||
pageFirstText: " << ",
|
|
||||||
pagePrevText: " < ",
|
|
||||||
pageLastText: " >> ",
|
|
||||||
pageNextText: " > ",
|
|
||||||
pagerFormat: "{first} {prev} {pages} {next} {last}",
|
|
||||||
|
|
||||||
|
|
||||||
/* 이하만 설정 */
|
|
||||||
data: clients,
|
|
||||||
|
|
||||||
fields: [
|
|
||||||
{ title:"번호", name: "noticeNo" , type: "number" , width: 50, align: "center"},
|
|
||||||
{ title:"유형", name: "noticeType", type: "select", width: 80, align: "center", items: noticeTypes, valueField: "Id", textField: "Name" },
|
|
||||||
{ title:"제목", name: "title", type: "text" , width: 200, align: "left" },
|
|
||||||
{ title:"조회수", name: "readCount", type: "number", width: 50, align: "center" },
|
|
||||||
{ title:"등록일", name: "regDate", type: "text", width: 100, align: "center"}
|
|
||||||
]
|
|
||||||
});
|
|
||||||
|
|
||||||
function fn_search_article() {
|
|
||||||
var searchKeyword = document.articleForm.searchKeyword.value;
|
|
||||||
var pageIndex = document.articleForm.pageIndex.value;
|
|
||||||
var pageSize = document.articleForm.pageSize.value;
|
|
||||||
|
|
||||||
var inputData = {
|
|
||||||
"searchKeyword" : searchKeyword /*encodeURIComponent(searchKeyword)*/
|
|
||||||
, "pageIndex" : pageIndex
|
|
||||||
, "pageSize": pageSize};
|
|
||||||
|
|
||||||
//lert(JSON.stringify(inputData));
|
|
||||||
}
|
|
||||||
|
|
||||||
function fn_init() {
|
|
||||||
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
>>>>>>> refs/remotes/origin/master
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user