<!doctype html>
|
<html class="no-js">
|
<head>
|
<meta charset="utf-8">
|
<title>选择${Constants.CUSTOMER_CONSTANTS}</title>
|
|
[#include "/business/pages/include/static.html" /]
|
</head>
|
[#include "/component/newsel.html" /]
|
<body>
|
<div class="fs_main clearfix">
|
<div class="event_fill list_common_select" >
|
<table><tr><th width="80%">
|
<div class="fill_item"><label>${Constants.CUSTOMER_CONSTANTS}名称:</label><input class="general" type="text" id="cusName"/></div>
|
</th><td width="20%">
|
<a class="retrievebtn" id="reset">重置</a><a class="retrievebtn focus" href="javascript:query2();">查询</a>
|
</td></tr>
|
</table>
|
</div>
|
<div class="checked-now">
|
当前选中:
|
<span id="content">
|
[#if selectItems?? && selectItems?size>0]
|
[#list selectItems as item]
|
<span class="selcus ${item.ID}" sl='${item.ID}' p="${item.CUSTOMER_NAME}">${item.CUSTOMER_NAME}<img src="${common_static}/static/ui/images/del.png" alt=""/></span>
|
[/#list]
|
[/#if]
|
</span>
|
<span class="kong">清空</span>
|
</div>
|
</div>
|
<div class="fs_main clearfix">
|
<div id="mainData"></div>
|
<div class="paging clearfix" id="pagination"></div>
|
</div>
|
<input type="hidden" id="ids" value="${ids}" />
|
</body>
|
<script type="text/javascript">
|
var nowPage = 1;
|
function query2() {
|
var cusName = $.trim($("#cusName").val());
|
var ids = $("#ids").val();
|
var params = {"cusName":cusName,"ids":ids};
|
pagination("${base}/business/pages/knowledge/knowledgeDeal/chooseCusData.html","${base}/business/pages/knowledge/knowledgeDeal/chooseCusCount.html","mainData","pagination",{cpage:nowPage,psize:10},params,function(data,page) {
|
nowPage = page;
|
});
|
|
}
|
|
|
$(function() {
|
query2();
|
$("#reset").click(function() {
|
window.location.reload(true);
|
});
|
|
|
|
|
})
|
|
function onDialogBtnClick(btnID, dialogID, config){
|
if(btnID == "btnSure"){
|
var ids = new Array();
|
var values = new Array();
|
$(".selcus").each(function(){
|
ids.push($(this).attr('sl'));
|
values.push($(this).attr('p'));
|
});
|
ids = ids.join(',');
|
values = values.join(',');
|
|
[#if RequestParameters.iframe_lv1_id?length<=0]
|
window.parent.showCusName(ids,values);
|
[#else]
|
[#if RequestParameters.iframe_lv2_id?length<=0]
|
window.top.document.getElementById("${RequestParameters.iframe_lv1_id}").contentWindow
|
.showCusName(ids,values);
|
[#else]
|
window.top.document.getElementById("${RequestParameters.iframe_lv1_id}").contentWindow
|
.document.getElementById("${RequestParameters.iframe_lv2_id}").contentWindow
|
.showCusName(ids,values);
|
[/#if]
|
[/#if]
|
window.top.hideDialog(dialogID);
|
}
|
}
|
|
</script>
|
|
</html>
|