rushfee/build/classes/html/rush/search.html

149 lines
6.4 KiB
HTML

<html login="false">
<head>
<meta charset="UTF-8">
<title>已催缴查询</title>
</head>
<body>
<div widget="toolbar" style="padding:5px;border:0;">
<input widget="combox" name="searchcompany" label="分公司" url="rush/search/getCompany"
emptyText="请选择" textField="text" valueField="text" allowInput="false" style="margin-left:-40px" showNullItem="true"/>
<input name="searchcustomer" widget="edit"
textfield="text" style="width: 180px;" label="客户名称">
<input name="operator" widget=edit style="width: 180px;" label="催缴人">
<input name="searchbegindate" widget=datechooser allowinput="f" label="催缴日期">
<input name="searchenddate" widget=datechooser allowinput="f" style="margin-left: -70px;" label="至">
<input widget="combox" name="searchresult" label="催缴结果" url="rush/search/getResult"
emptyText="请选择" textField="text" valueField="text" allowInput="false" style="width:220px" showNullItem="true"/>
<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="是否免征">
<input id="customer_id" widget="hidden" />
<a widget="button" iconCls="icon-search" onclick="search()">查询</a>
<a widget="button" iconCls="icon-export" onclick="downloadfileGet()">导出</a>
</div>
<div widget="autosize">
<div widget="datagrid" name="grid" style="width: 100%; height: 100%;" url="rush/search/getGrid" onrowdblclick="rushlog">
<div type="indexcolumn" width="35" header="序号"></div>
<div field="cust_name" width="130" header="客户名称"></div>
<div field="feedback_type" width="100" header="催缴结果"></div>
<div field="charge_status" width="100" header="缴费状态"></div>
<div field="source" width="100" header="来源"></div>
<div field="remark" width="70" header="备注信息"></div>
<div field="org_name" width="70" header="分公司"></div>
<div field="revenuename" width="70" header="所属税局"></div>
<div field="operator" width="80" header="催缴人"></div>
<div field="create_date" align="center" width="120" header="催缴日期"></div>
<div field="contacts_info" width="140" header="联系方式"></div>
<div field="cust_tax_code" width="100" header="客户税号"></div>
<div field="address" widget="100" header="地址"/></div>
</div>
</div>
</body>
<script type="text/javascript">
var grid = aos.get('grid');
function downloadfileGet(){
var base = document.getElementsByTagName("base")[0].href;
var begindate=aos.get('searchbegindate').getValue();
var enddate=aos.get('searchenddate').getValue();
if (begindate!="")
{
if (enddate=="")
{aos.alert('请选择结束时间!');
return false;
}
else{
if (begindate>enddate)
{
aos.alert('开始日期必须早于结束日期!');
}else{
var begindate=begindate+" "+"00:00:00";
var enddate=enddate+" "+"23:59:59";
window.location.href=base+"rush/search/exportRecordGet?searchbegindate="+begindate+"&searchenddate="+enddate+"&searchcompany="+aos.get('searchcompany').getValue()+"&searchcustomer="+aos.get('searchcustomer').getValue()+"&searchresult="+aos.get('searchresult').getValue();
return false;
//grid.load(params);
}
}
}else if(enddate!="")
{
aos.alert('请选择开始时间!');
return false;
}else{
window.location.href=base+"rush/search/exportRecordGet?searchbegindate="+begindate+"&searchenddate="+enddate+"&searchcompany="+aos.get('searchcompany').getValue()+"&searchcustomer="+aos.get('searchcustomer').getValue()+"&searchresult="+aos.get('searchresult').getValue();
return false;
//grid.load(params);
//return ;
}
return false;
}
function search(){
var begindate=aos.get('searchbegindate').getValue();
var enddate=aos.get('searchenddate').getValue();
if (begindate!="")
{
if (enddate=="")
{aos.alert('请选择结束时间!');
return ;
}
else{
if (begindate>enddate)
{
aos.alert('开始日期必须早于结束日期!');
}else{
var begindate=begindate+" "+"00:00:00";
var enddate=enddate+" "+"23:59:59";
var params={searchcompany:aos.get('searchcompany').getValue(),
searchcustomer:aos.get('searchcustomer').getValue(),
searchbegindate:begindate,
searchenddate:enddate,
operator:aos.get('operator').getValue(),
chargetype:aos.get('chargetype').getValue(),
injf:aos.get('injf').getValue(),
ifmz:aos.get('ifmz').getValue(),
searchresult:aos.get('searchresult').getValue()};
grid.load(params);
}
}
}else if(enddate!="")
{
aos.alert('请选择开始时间!');
return ;
}else{
var params={searchcompany:aos.get('searchcompany').getValue(),
searchcustomer:aos.get('searchcustomer').getValue(),
searchbegindate:aos.get('searchbegindate').getValue(),
searchenddate:aos.get('searchenddate').getValue(),
operator:aos.get('operator').getValue(),
chargetype:aos.get('chargetype').getValue(),
injf:aos.get('injf').getValue(),
ifmz:aos.get('ifmz').getValue(),
searchresult:aos.get('searchresult').getValue()};
grid.load(params);
return ;
}
}
function rushlog(e){
var param = {};
param['obj_id'] = e.record.id;
param['cust_name'] = e.record.cust_name;
param['customer_id'] = e.record.customer_id;
param['cust_tax_code'] = e.record.cust_tax_code;
param['contacts_info'] = e.record.contacts_info;
param['feedback_type'] = e.record.feedback_type;
param['address'] = e.record.address;
aos.showWindow(
'canvas/rush/log',
param,
'1000px',
'500px',
'操作日志',
function(params, rtnData){
}
);}
</script>
</html>