검색조건 유지
This commit is contained in:
@@ -45,9 +45,13 @@ $(document).ready(function() {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
//검색조건 달력
|
||||||
|
$("#startDatepicker").datepicker();
|
||||||
|
$("#endDatepicker").datepicker();
|
||||||
|
|
||||||
var gridPostData = getSearchForJqgrid("cmd","LIST"); //jqgrid에서는 object 로
|
var gridPostData = getSearchForJqgrid("cmd","LIST"); //jqgrid에서는 object 로
|
||||||
gridPostData['searchStartDateTime'] = $("input[name=searchStartYYYYMMDD]").val() + $("input[name=searchStartHHMM]").val();
|
gridPostData['searchStartDateTime'] = $("input[name=searchStartYYYYMMDD]").val().replace(/-/gi, "") + $("input[name=searchStartHHMM]").val();
|
||||||
gridPostData['searchEndDateTime'] = $("input[name=searchEndYYYYMMDD]").val() + $("input[name=searchEndHHMM]").val();
|
gridPostData['searchEndDateTime'] = $("input[name=searchEndYYYYMMDD]").val().replace(/-/gi, "") + $("input[name=searchEndHHMM]").val();
|
||||||
$('#grid').jqGrid({
|
$('#grid').jqGrid({
|
||||||
datatype:"json",
|
datatype:"json",
|
||||||
mtype: 'POST',
|
mtype: 'POST',
|
||||||
@@ -107,8 +111,8 @@ $(document).ready(function() {
|
|||||||
|
|
||||||
$("#btn_search").click(function(){
|
$("#btn_search").click(function(){
|
||||||
var postData = getSearchForJqgrid("cmd","LIST"); //jqgrid에서는 object 로
|
var postData = getSearchForJqgrid("cmd","LIST"); //jqgrid에서는 object 로
|
||||||
postData['searchStartDateTime'] = $("input[name=searchStartYYYYMMDD]").val() + $("input[name=searchStartHHMM]").val();
|
postData['searchStartDateTime'] = $("input[name=searchStartYYYYMMDD]").val().replace(/-/gi, "") + $("input[name=searchStartHHMM]").val();
|
||||||
postData['searchEndDateTime'] = $("input[name=searchEndYYYYMMDD]").val() + $("input[name=searchEndHHMM]").val();
|
postData['searchEndDateTime'] = $("input[name=searchEndYYYYMMDD]").val().replace(/-/gi, "") + $("input[name=searchEndHHMM]").val();
|
||||||
$("#grid").setGridParam({ postData: postData ,page : "1" }).trigger("reloadGrid");
|
$("#grid").setGridParam({ postData: postData ,page : "1" }).trigger("reloadGrid");
|
||||||
|
|
||||||
});
|
});
|
||||||
@@ -154,11 +158,11 @@ function getEndTime(){
|
|||||||
<tr>
|
<tr>
|
||||||
<th style="width:180px;"><%= localeMessage.getString("auditLogMan.logamndHMS") %></th>
|
<th style="width:180px;"><%= localeMessage.getString("auditLogMan.logamndHMS") %></th>
|
||||||
<td>
|
<td>
|
||||||
<input type="text" name="searchStartYYYYMMDD" value="" size="10" style="width:100px; border:1px solid #ebebec;">
|
<input type="text" name="searchStartYYYYMMDD" id="startDatepicker" value="${param.searchStartYYYYMMDD}" readonly="readonly" size="10" style="width:100px; border:1px solid #ebebec;">
|
||||||
<input type="text" name="searchStartHHMM" value="" size="8" style="width:100px; border:1px solid #ebebec;">
|
<input type="text" name="searchStartHHMM" value="${param.searchStartHHMM}" size="8" style="width:100px; border:1px solid #ebebec;">
|
||||||
~
|
~
|
||||||
<input type="text" name="searchEndYYYYMMDD" value="" size="10" style="width:100px; border:1px solid #ebebec;">
|
<input type="text" name="searchEndYYYYMMDD" id="endDatepicker" value="${param.searchEndYYYYMMDD}" readonly="readonly" size="10" style="width:100px; border:1px solid #ebebec;">
|
||||||
<input type="text" name="searchEndHHMM" value="" size="8" style="width:100px; border:1px solid #ebebec;">
|
<input type="text" name="searchEndHHMM" value="${param.searchEndHHMM}" size="8" style="width:100px; border:1px solid #ebebec;">
|
||||||
<input type="hidden" name="searchStartDateTime" />
|
<input type="hidden" name="searchStartDateTime" />
|
||||||
<input type="hidden" name="searchEndDateTime" />
|
<input type="hidden" name="searchEndDateTime" />
|
||||||
</td>
|
</td>
|
||||||
@@ -168,9 +172,9 @@ function getEndTime(){
|
|||||||
<th style="width:180px;"><%= localeMessage.getString("auditLogMan.systemCode") %></th>
|
<th style="width:180px;"><%= localeMessage.getString("auditLogMan.systemCode") %></th>
|
||||||
<td><div class = "select-style">
|
<td><div class = "select-style">
|
||||||
<select id="searchSystemCode" name="searchSystemCode">
|
<select id="searchSystemCode" name="searchSystemCode">
|
||||||
<option value=""><%= localeMessage.getString("combo.all")%></option>
|
<option value="" <c:if test="${empty param.searchSystemCode}">selected</c:if>><%= localeMessage.getString("combo.all")%></option>
|
||||||
<c:forEach items="${serviceTypeCombos }" var="serviceTypeCombo">
|
<c:forEach items="${serviceTypeCombos }" var="serviceTypeCombo">
|
||||||
<option value="${serviceTypeCombo.code }">${serviceTypeCombo.codename }</option>
|
<option value="${serviceTypeCombo.code }" <c:if test="${serviceTypeCombo.code == param.searchSystemCode}">selected</c:if>>${serviceTypeCombo.codename }</option>
|
||||||
</c:forEach>
|
</c:forEach>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
@@ -180,7 +184,7 @@ function getEndTime(){
|
|||||||
|
|
||||||
<th style="width:180px;"><%= localeMessage.getString("auditLogMan.logTypeText") %></th>
|
<th style="width:180px;"><%= localeMessage.getString("auditLogMan.logTypeText") %></th>
|
||||||
<td>
|
<td>
|
||||||
<input type="text" value="" name="searchLogTypeText" checked="checked"/>
|
<input type="text" value="${param.searchLogTypeText}" name="searchLogTypeText" checked="checked"/>
|
||||||
</td>
|
</td>
|
||||||
<th style="width:180px;"><%= localeMessage.getString("auditLogMan.remoteAddress") %></th>
|
<th style="width:180px;"><%= localeMessage.getString("auditLogMan.remoteAddress") %></th>
|
||||||
<td><input type="text" name="searchRemoteAddress" value="${param.searchRemoteAddress}" style="width:100%"></td>
|
<td><input type="text" name="searchRemoteAddress" value="${param.searchRemoteAddress}" style="width:100%"></td>
|
||||||
|
|||||||
Reference in New Issue
Block a user