143 lines
4.1 KiB
HTML
143 lines
4.1 KiB
HTML
<html auth="false">
|
|
<head>
|
|
<title>催缴记录统计报表</title>
|
|
<style>
|
|
#showtb{
|
|
border-collapse:collapse;
|
|
}
|
|
/*关键设置 tbody出现滚动条*/
|
|
#showtb tbody {
|
|
display: block;
|
|
overflow-y: scroll;
|
|
}
|
|
|
|
|
|
#showtb tbody tr {
|
|
height: 25px;
|
|
}
|
|
#showtb tbody tr td {
|
|
line-height:25px;
|
|
padding-left: 6px;
|
|
border: 1px solid #cfcfce;
|
|
}
|
|
#showtb tbody tr th {
|
|
line-height:25px;
|
|
padding-left: 6px;
|
|
border: 1px solid #cfcfce;
|
|
background:#F8F8FF;
|
|
}
|
|
</style>
|
|
|
|
<script type="text/javascript" src="www/i18n/rms_i18n_{{language}}.js"></script>
|
|
</head>
|
|
|
|
<body>
|
|
<div widget="toolbar" style="padding: 10px; border: 0;">
|
|
<!--
|
|
<input widget="combox" name="company" label="分公司"
|
|
url="rush/org/getOrgList" emptyText="请选择" textField="text"
|
|
valueField="id" allowInput="false" showNullItem="true" />
|
|
-->
|
|
<input name="searchbegindate" widget=datechooser allowinput="f" label="催缴日期">
|
|
<input name="searchenddate" widget=datechooser allowinput="f"
|
|
style="margin-left: -70px;" label="至">
|
|
<input name="chargetype" widget=combox allowinput="f" style="width: 200px;" showNullItem="true"
|
|
data="[{id:'0',text:'服务费'},{id:'1',text:'托管'}]" emptyText="请选择" label="缴费状态">
|
|
<input name="injf" widget=combox allowinput="f" style="width: 200px;" showNullItem="true"
|
|
data="[{id:'0',text:'否'},{id:'1',text:'是'}]" emptyText="请选择" label="机房状态">
|
|
<input name="ifmz" widget=combox allowinput="f" style="width: 200px;" showNullItem="true"
|
|
data="[{id:'0',text:'否'},{id:'1',text:'是'}]" emptyText="请选择" label="是否免征">
|
|
<a widget="button" iconCls="icon-search" onclick="search()">查询</a>
|
|
<a widget="button" iconCls="icon-export" onclick="downloadfileGet()">导出</a>
|
|
</div>
|
|
<div style="overflow-x: auto;overflow-x: noscroll; height: 100%; width:100%;">
|
|
<table style="overflow-x: auto;width:100%;" id="showtb">
|
|
</table>
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
|
|
function downloadfileGet(){
|
|
var begindate=aos.get('searchbegindate').getValue();
|
|
var enddate=aos.get('searchenddate').getValue();
|
|
|
|
var param = { searchbegindate:begindate,
|
|
searchenddate:enddate};
|
|
var base = document.getElementsByTagName("base")[0].href;
|
|
|
|
window.location.href=base+"rush/workcalculate/exportWorkGet?searchbegindate="+begindate+"&searchenddate="+enddate;
|
|
return false;
|
|
}
|
|
|
|
|
|
function search(){
|
|
|
|
var begindate=aos.get('searchbegindate').getValue();
|
|
var enddate=aos.get('searchenddate').getValue();
|
|
|
|
var param = { searchbegindate:begindate,
|
|
injf:aos.get('injf').getValue(),
|
|
ifmz:aos.get('ifmz').getValue(),
|
|
custtype:aos.get('chargetype').getValue(),
|
|
searchenddate:enddate};
|
|
aos.post({
|
|
url:"rush/workcalculate/queryWork",
|
|
data:param,
|
|
success:function(data){
|
|
|
|
$("#showtb").html("");
|
|
if(data.totaltype&&data.totaltype>0){
|
|
|
|
var len = data.totaltype;
|
|
var colname = 'col';
|
|
var column = "";
|
|
|
|
for(var i= 0;i<data.records.length;i++){
|
|
var trHTML = "<tr>"
|
|
|
|
var arr = new Array();
|
|
var noHTML = "";
|
|
|
|
if(i==0){
|
|
noHTML="<th ><center><nobr>序号</nobr></center></th>";
|
|
}else if( i==data.records.length-1){
|
|
noHTML="<td ></td>";
|
|
}else{
|
|
noHTML="<td ><center>"+i+"</center></td>";
|
|
}
|
|
|
|
trHTML +=noHTML;
|
|
for (var j =1 ;j<=len;j++){
|
|
column = colname+j;
|
|
var tdHTML = "";
|
|
|
|
if(i==0){
|
|
tdHTML = "<th ><center><nobr>"+data.records[i][column]+"</nobr></center></th>";
|
|
}else{
|
|
tdHTML = "<td ><center><nobr>"+data.records[i][column]+"</nobr></center></td>";
|
|
}
|
|
|
|
trHTML += tdHTML;
|
|
|
|
arr[column] =data.records[i][column];
|
|
|
|
}
|
|
trHTML += "</tr>";
|
|
//console.log(data.records[i][column]);
|
|
|
|
$("#showtb").append(trHTML);//在table最后面添加一行
|
|
|
|
}
|
|
}
|
|
/*else{
|
|
$("#showtb").append("<tr><th>无数据</th></tr>");
|
|
}*/
|
|
|
|
}
|
|
});
|
|
|
|
}
|
|
</script>
|
|
|
|
</body>
|
|
</html> |