검색조건 유지
This commit is contained in:
@@ -31,19 +31,19 @@ function init(){
|
|||||||
new makeOptions("CODE","NAME").setObj($("select[name=searchJobInst]")).setNoValueInclude(true).setNoValue("",
|
new makeOptions("CODE","NAME").setObj($("select[name=searchJobInst]")).setNoValueInclude(true).setNoValue("",
|
||||||
"<%= localeMessage.getString("combo.all")%>").setData(json.instanceList).rendering();
|
"<%= localeMessage.getString("combo.all")%>").setData(json.instanceList).rendering();
|
||||||
|
|
||||||
if(typeof callback === 'function') {
|
putSelectFromParam();
|
||||||
callback(url,key);
|
|
||||||
}
|
initGrid();
|
||||||
},
|
},
|
||||||
error:function(e){
|
error:function(e){
|
||||||
alert(e.responseText);
|
alert(e.responseText);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
$(document).ready(function() {
|
|
||||||
init();
|
function initGrid() {
|
||||||
var gridPostData = getSearchForJqgrid("cmd","LIST"); //jqgrid에서는 object 로
|
var gridPostData = getSearchForJqgrid("cmd","LIST"); //jqgrid에서는 object 로
|
||||||
console.log(gridPostData);
|
|
||||||
$('#grid').jqGrid({
|
$('#grid').jqGrid({
|
||||||
datatype:"json",
|
datatype:"json",
|
||||||
mtype: 'POST',
|
mtype: 'POST',
|
||||||
@@ -125,9 +125,13 @@ $(document).ready(function() {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
resizeJqGridWidth('grid','content_middle','1000');
|
resizeJqGridWidth('grid','content_middle','1000');
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$(document).ready(function() {
|
||||||
|
init();
|
||||||
|
|
||||||
$("#btn_search").click(function(){
|
$("#btn_search").click(function(){
|
||||||
var postData = getSearchForJqgrid("cmd","LIST");
|
var postData = getSearchForJqgrid("cmd","LIST");
|
||||||
$("#grid").setGridParam({ postData: postData ,page:"1" }).trigger("reloadGrid");
|
$("#grid").setGridParam({ postData: postData ,page:"1" }).trigger("reloadGrid");
|
||||||
|
|||||||
Reference in New Issue
Block a user