热线等级

master
zxf 2023-09-22 02:46:30 +08:00
parent 4a76466591
commit ebb02da88b
19 changed files with 684 additions and 13 deletions

View File

@ -116,6 +116,15 @@
<prop name="password">aisinocrm2014</prop>
<prop name="decrypt">false</prop>
</ds>
<ds id="call_center">
<prop name="desc">呼叫中心db</prop>
<prop name="type">oracle</prop>
<prop name="driver">oracle.jdbc.driver.OracleDriver</prop>
<prop name="url">jdbc:oracle:thin:@//10.2.2.30:1526/ipcc</prop><!--正式-->
<prop name="username">useraisino</prop>
<prop name="password">useraisino</prop>
<prop name="decrypt">false</prop>
</ds>
<!--
<ds id="oracle_crm">
<prop name="desc">oracle_crm系统</prop>

View File

@ -1 +1 @@
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE sqls SYSTEM "sql_definition.dtd"> <sqls> <sql group="rushfee_org"> <i id="getOrgList"><![CDATA[ select org_id id, org_short_name text, parent_org_id pid from COMPANY_ORGANIZE where org_id !=3701 order by org_id ]]></i> <i id="getOrgListByUser"><![CDATA[ select distinct city_name id,city_name text,'0' pid from tel_dic_city WHERE city_name in(select org_name from SHUIJU_QUYU_USER where user_id ={userId}) ]]></i> <i id="getRecordList"><![CDATA[ select * from RUSH_RECORD ]]></i> <i id="getRevenueByOrgId"><![CDATA[ select revenueid id, revenuename text from REVENUE_INFO_FORMAL where companyid ={companyid} ]]></i> </sql> </sqls>
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE sqls SYSTEM "sql_definition.dtd"> <sqls> <sql group="rushfee_org"> <i id="getOrgList"><![CDATA[ select org_id id, org_short_name text, parent_org_id pid from COMPANY_ORGANIZE where org_id !=3701 order by org_id ]]></i> <i id="getOrgListhotwire"><![CDATA[ select org_id id, org_short_name||'分公司' text, parent_org_id pid from COMPANY_ORGANIZE where org_id !=3701 order by org_id ]]></i> <i id="getOrgListByUser"><![CDATA[ select distinct city_name id,city_name text,'0' pid from tel_dic_city WHERE city_name in(select org_name from SHUIJU_QUYU_USER where user_id ={userId}) ]]></i> <i id="getRecordList"><![CDATA[ select * from RUSH_RECORD ]]></i> <i id="getRevenueByOrgId"><![CDATA[ select revenueid id, revenuename text from REVENUE_INFO_FORMAL where companyid ={companyid} ]]></i> </sql> </sqls>

View File

@ -0,0 +1,73 @@
<html login="false">
<head>
<title>客户信息明细</title>
</head>
<body >
<div widget="toolbar" >
<a widget="button" iconCls="icon-admin" id="savebtn" onclick="save">保存</a>
<a widget="button" iconCls="icon-exit" onclick="CloseWindow()">退出</a>
</div>
<!--<input widget="autocomplete" name="custname" label="查询客户" url="rush/search/gettaskpeople"
popupEmptyText="请选择" textfield="cname" valuefield="cguid"
style="margin-left:-16px;width: 500px;" showClose="true" oncloseclick ="conCloseClick"/>-->
<input widget="edit" name="khid" label="客户id" style="width:400px;margin-top:5px"/>
<br/>
<input widget="edit" name="custname" label="客户名称" style="width:400px;margin-top:5px"/>
<br/>
<input widget="edit" name="custtaxno" label="客户税号" style="width:400px;margin-top:5px"/>
<br/>
<input widget="edit" name="mobile" label="联系电话" style="width:400px;margin-top:5px"/>
<br/>
<input name="enddate" widget=datechooser allowinput="ture" label="到期日期" style="width:400px;margin-top:5px">
<br/>
<div name="state" required label="状态" widget="radiobuttonlist"
repeatitems="2" repeatlayout="table" textfield="text" valuefield="id"
data="[{id:0,text:'无效'},{id:1,text:'有效'}]" style="width:400px;margin-top:5px">
</div>
<br/>
<input widget="combox" name="orgname" label="分公司" url="rush/hot/getOrgList" style="width:400px;margin-top:5px"
emptyText="请选择" textField="text" valueField="text" allowInput="false"
showNullItem="true"/>
<br/>
<input widget="int" name="mlevel" label="等级" maxValue="100" style="width:400px;margin-top:5px"/>
<br/>
<input widget="int" name="mprice" label="金额" maxValue="100000" style="width:400px;margin-top:5px"/>
</body>
<script type="text/javascript">
var grid = aos.get('grid');
aos.get('state').setValue(1);
function save(){
var data = aos.getForm().getData();
data['khid']=aos.get('khid').getValue();
data['custname']=aos.get('custname').getValue();
data['custtaxno']=aos.get('custtaxno').getValue();
data['mobile']=aos.get('mobile').getValue();
data['enddate']=aos.get('enddate').getValue();
data['state']=aos.get('state').getValue();
data['orgname']=aos.get('orgname').getValue();
data['mlevel']=aos.get('mlevel').getValue();
data['mprice']=aos.get('mprice').getValue();
aos.post({
url:"rush/hot/save",
data:data,
success:function(data){
if(data=1){
CloseWindow();}
else{
aos.tip('服务错误联系管理员!');
}
}
});
}
</script>
</html>

View File

@ -0,0 +1,113 @@
<html login="false" auth="false">
<head>
<meta charset="UTF-8">
<title>热线等级</title>
</head>
<body>
<div widget="toolbar" style="padding:5px;border:0;">
<input widget="combox" name="orgname" label="分公司" url="rush/hot/getOrgList"
emptyText="请选择" textField="text" valueField="text" allowInput="false"
showNullItem="true"/>
<input widget="edit" name="custname" label="客户名称"/>
<input widget="edit" name="custtaxno" label="客户税号"/>
<input widget="edit" name="mobile" label="联系电话"/>
<input name="state" 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-add" onclick="add">新增</a>
</div>
<div widget="autosize">
<div widget="datagrid" name="grid" style="width: 100%; height: 100%;" url="rush/hot/getlist">
<div type="indexcolumn" width="35" header="序号"></div>
<div field="id" visible="id"></div>
<div field="khid" visible="id"></div>
<div field="custname" width="60" header="客户名称" align="center"></div>
<div field="custtaxno" width="60" header="客户税号" align="center"></div>
<div field="createdate" width="60" header="创建日期" align="center"></div>
<div field="mobile" width="50" header="联系电话" align="center"></div>
<div field="enddate" width="35" header="到期日期" align="center"></div>
<div field="orgname" width="50" header="分公司" align="center"></div>
<div field="state" width="30" header="状态" renderer="statetype" align="center"></div>
<div field="mlevel" width="30" header="等级" align="center"></div>
<div field="mprice" width="40" header="金额" align="center"></div>
<div field="caozuo" width="45" align="center" renderer="onRenderer" header="操作"></div>
</div>
</div>
</body>
<script type="text/javascript">
var grid = aos.get('grid');
function search() {
var grid = aos.get('grid');
var params = {
mobile: aos.get('mobile').getValue(),
custname: aos.get('custname').getValue(),
custtaxno: aos.get('custtaxno').getValue(),
orgname: aos.get('orgname').getValue(),
state: aos.get('state').getValue()
};
grid.load(params);
}
function onRenderer(e) {
if (e.row.state == '0') {
return "<a href='javascript:void(0)' style='text-decoration:none' onclick='huifu(\"" + e.row.id + "\")'>" + "恢复";
}
if (e.row.state=='1') {
return "<a href='javascript:void(0)' style='text-decoration:none' onclick='rekp(\"" + e.row.id + "\")'>" + "删除";
}
return "暂无操作";
}
function rekp(id) {
aos.post({
url: 'rush/hot/delete',
data: {id: id},
success: function () {
grid.reload();
}
});
}
function huifu(id) {
aos.post({
url: 'rush/hot/huifu',
data: {id: id},
success: function () {
grid.reload();
}
});
}
function statetype(e) {
var row = e.row;
var value = row.state;
if (value == '0') {
return '<p style="color:red;">无效</p>';
}
if (value == '1') {
return '<p style="color:green;">有效</p>';
} else {
return value;
}
}
function add() {
var param = {};
aos.showWindow('canvas/bureau/hotadd', param, '600px', '500px', '热线数据新增', function(rtnValue){
grid.reload();
});
}
</script>
</html>

View File

@ -42,8 +42,8 @@
<div field="start_time" width="70" header="来电时间" align="center"></div>
<div field="end_time" width="70" header="结束时间" align="center"></div>
<div field="record_duration" width="40" header="录音时长(秒)" align="center"></div>
<div field="call_type" width="35" align="center" header="呼叫类型" ></div>
<div field="callstate" width="35" renderer="callType" align="center" header="呼入/呼出" ></div>
<!-- <div field="call_type" width="35" align="center" header="呼叫类型" ></div>-->
<div field="call_type" width="35" renderer="callType" align="center" header="呼入/呼出" ></div>
<!--<div field="down" width="40" header="下载" renderer="downRender" align="center"></div>-->
<div field="play" width="40" header="调听" renderer="playRender" align="center"></div>
<div field="caller_phone" width="50" header="来电号码" align="center" ></div>
@ -136,7 +136,7 @@
function callType(e){
var row=e.row;
var value=row.callstate;
var value=row.call_type;
if(value=='0'){
return '<p style="color:red;">呼入</p>';
}

Binary file not shown.

View File

@ -116,6 +116,15 @@
<prop name="password">aisinocrm2014</prop>
<prop name="decrypt">false</prop>
</ds>
<ds id="call_center">
<prop name="desc">呼叫中心db</prop>
<prop name="type">oracle</prop>
<prop name="driver">oracle.jdbc.driver.OracleDriver</prop>
<prop name="url">jdbc:oracle:thin:@//10.2.2.30:1526/ipcc</prop><!--正式-->
<prop name="username">useraisino</prop>
<prop name="password">useraisino</prop>
<prop name="decrypt">false</prop>
</ds>
<!--
<ds id="oracle_crm">
<prop name="desc">oracle_crm系统</prop>

View File

@ -1 +1 @@
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE sqls SYSTEM "sql_definition.dtd"> <sqls> <sql group="rushfee_org"> <i id="getOrgList"><![CDATA[ select org_id id, org_short_name text, parent_org_id pid from COMPANY_ORGANIZE where org_id !=3701 order by org_id ]]></i> <i id="getOrgListByUser"><![CDATA[ select distinct city_name id,city_name text,'0' pid from tel_dic_city WHERE city_name in(select org_name from SHUIJU_QUYU_USER where user_id ={userId}) ]]></i> <i id="getRecordList"><![CDATA[ select * from RUSH_RECORD ]]></i> <i id="getRevenueByOrgId"><![CDATA[ select revenueid id, revenuename text from REVENUE_INFO_FORMAL where companyid ={companyid} ]]></i> </sql> </sqls>
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE sqls SYSTEM "sql_definition.dtd"> <sqls> <sql group="rushfee_org"> <i id="getOrgList"><![CDATA[ select org_id id, org_short_name text, parent_org_id pid from COMPANY_ORGANIZE where org_id !=3701 order by org_id ]]></i> <i id="getOrgListhotwire"><![CDATA[ select org_id id, org_short_name||'分公司' text, parent_org_id pid from COMPANY_ORGANIZE where org_id !=3701 order by org_id ]]></i> <i id="getOrgListByUser"><![CDATA[ select distinct city_name id,city_name text,'0' pid from tel_dic_city WHERE city_name in(select org_name from SHUIJU_QUYU_USER where user_id ={userId}) ]]></i> <i id="getRecordList"><![CDATA[ select * from RUSH_RECORD ]]></i> <i id="getRevenueByOrgId"><![CDATA[ select revenueid id, revenuename text from REVENUE_INFO_FORMAL where companyid ={companyid} ]]></i> </sql> </sqls>

View File

@ -0,0 +1,73 @@
<html login="false">
<head>
<title>客户信息明细</title>
</head>
<body >
<div widget="toolbar" >
<a widget="button" iconCls="icon-admin" id="savebtn" onclick="save">保存</a>
<a widget="button" iconCls="icon-exit" onclick="CloseWindow()">退出</a>
</div>
<!--<input widget="autocomplete" name="custname" label="查询客户" url="rush/search/gettaskpeople"
popupEmptyText="请选择" textfield="cname" valuefield="cguid"
style="margin-left:-16px;width: 500px;" showClose="true" oncloseclick ="conCloseClick"/>-->
<input widget="edit" name="khid" label="客户id" style="width:400px;margin-top:5px"/>
<br/>
<input widget="edit" name="custname" label="客户名称" style="width:400px;margin-top:5px"/>
<br/>
<input widget="edit" name="custtaxno" label="客户税号" style="width:400px;margin-top:5px"/>
<br/>
<input widget="edit" name="mobile" label="联系电话" style="width:400px;margin-top:5px"/>
<br/>
<input name="enddate" widget=datechooser allowinput="ture" label="到期日期" style="width:400px;margin-top:5px">
<br/>
<div name="state" required label="状态" widget="radiobuttonlist"
repeatitems="2" repeatlayout="table" textfield="text" valuefield="id"
data="[{id:0,text:'无效'},{id:1,text:'有效'}]" style="width:400px;margin-top:5px">
</div>
<br/>
<input widget="combox" name="orgname" label="分公司" url="rush/hot/getOrgList" style="width:400px;margin-top:5px"
emptyText="请选择" textField="text" valueField="text" allowInput="false"
showNullItem="true"/>
<br/>
<input widget="int" name="mlevel" label="等级" maxValue="100" style="width:400px;margin-top:5px"/>
<br/>
<input widget="int" name="mprice" label="金额" maxValue="100000" style="width:400px;margin-top:5px"/>
</body>
<script type="text/javascript">
var grid = aos.get('grid');
aos.get('state').setValue(1);
function save(){
var data = aos.getForm().getData();
data['khid']=aos.get('khid').getValue();
data['custname']=aos.get('custname').getValue();
data['custtaxno']=aos.get('custtaxno').getValue();
data['mobile']=aos.get('mobile').getValue();
data['enddate']=aos.get('enddate').getValue();
data['state']=aos.get('state').getValue();
data['orgname']=aos.get('orgname').getValue();
data['mlevel']=aos.get('mlevel').getValue();
data['mprice']=aos.get('mprice').getValue();
aos.post({
url:"rush/hot/save",
data:data,
success:function(data){
if(data=1){
CloseWindow();}
else{
aos.tip('服务错误联系管理员!');
}
}
});
}
</script>
</html>

View File

@ -0,0 +1,113 @@
<html login="false" auth="false">
<head>
<meta charset="UTF-8">
<title>热线等级</title>
</head>
<body>
<div widget="toolbar" style="padding:5px;border:0;">
<input widget="combox" name="orgname" label="分公司" url="rush/hot/getOrgList"
emptyText="请选择" textField="text" valueField="text" allowInput="false"
showNullItem="true"/>
<input widget="edit" name="custname" label="客户名称"/>
<input widget="edit" name="custtaxno" label="客户税号"/>
<input widget="edit" name="mobile" label="联系电话"/>
<input name="state" 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-add" onclick="add">新增</a>
</div>
<div widget="autosize">
<div widget="datagrid" name="grid" style="width: 100%; height: 100%;" url="rush/hot/getlist">
<div type="indexcolumn" width="35" header="序号"></div>
<div field="id" visible="id"></div>
<div field="khid" visible="id"></div>
<div field="custname" width="60" header="客户名称" align="center"></div>
<div field="custtaxno" width="60" header="客户税号" align="center"></div>
<div field="createdate" width="60" header="创建日期" align="center"></div>
<div field="mobile" width="50" header="联系电话" align="center"></div>
<div field="enddate" width="35" header="到期日期" align="center"></div>
<div field="orgname" width="50" header="分公司" align="center"></div>
<div field="state" width="30" header="状态" renderer="statetype" align="center"></div>
<div field="mlevel" width="30" header="等级" align="center"></div>
<div field="mprice" width="40" header="金额" align="center"></div>
<div field="caozuo" width="45" align="center" renderer="onRenderer" header="操作"></div>
</div>
</div>
</body>
<script type="text/javascript">
var grid = aos.get('grid');
function search() {
var grid = aos.get('grid');
var params = {
mobile: aos.get('mobile').getValue(),
custname: aos.get('custname').getValue(),
custtaxno: aos.get('custtaxno').getValue(),
orgname: aos.get('orgname').getValue(),
state: aos.get('state').getValue()
};
grid.load(params);
}
function onRenderer(e) {
if (e.row.state == '0') {
return "<a href='javascript:void(0)' style='text-decoration:none' onclick='huifu(\"" + e.row.id + "\")'>" + "恢复";
}
if (e.row.state=='1') {
return "<a href='javascript:void(0)' style='text-decoration:none' onclick='rekp(\"" + e.row.id + "\")'>" + "删除";
}
return "暂无操作";
}
function rekp(id) {
aos.post({
url: 'rush/hot/delete',
data: {id: id},
success: function () {
grid.reload();
}
});
}
function huifu(id) {
aos.post({
url: 'rush/hot/huifu',
data: {id: id},
success: function () {
grid.reload();
}
});
}
function statetype(e) {
var row = e.row;
var value = row.state;
if (value == '0') {
return '<p style="color:red;">无效</p>';
}
if (value == '1') {
return '<p style="color:green;">有效</p>';
} else {
return value;
}
}
function add() {
var param = {};
aos.showWindow('canvas/bureau/hotadd', param, '600px', '500px', '热线数据新增', function(rtnValue){
grid.reload();
});
}
</script>
</html>

View File

@ -42,8 +42,8 @@
<div field="start_time" width="70" header="来电时间" align="center"></div>
<div field="end_time" width="70" header="结束时间" align="center"></div>
<div field="record_duration" width="40" header="录音时长(秒)" align="center"></div>
<div field="call_type" width="35" align="center" header="呼叫类型" ></div>
<div field="callstate" width="35" renderer="callType" align="center" header="呼入/呼出" ></div>
<!-- <div field="call_type" width="35" align="center" header="呼叫类型" ></div>-->
<div field="call_type" width="35" renderer="callType" align="center" header="呼入/呼出" ></div>
<!--<div field="down" width="40" header="下载" renderer="downRender" align="center"></div>-->
<div field="play" width="40" header="调听" renderer="playRender" align="center"></div>
<div field="caller_phone" width="50" header="来电号码" align="center" ></div>
@ -136,7 +136,7 @@
function callType(e){
var row=e.row;
var value=row.callstate;
var value=row.call_type;
if(value=='0'){
return '<p style="color:red;">呼入</p>';
}

View File

@ -1,3 +1,3 @@
#save ini
#Fri Sep 15 00:47:34 CST 2023
#Fri Sep 22 02:24:51 CST 2023
deploystamp=1612237236000

View File

@ -1 +1 @@
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE sqls SYSTEM "sql_definition.dtd"> <sqls> <sql group="rushfee_org"> <i id="getOrgList"><![CDATA[ select org_id id, org_short_name text, parent_org_id pid from COMPANY_ORGANIZE where org_id !=3701 order by org_id ]]></i> <i id="getOrgListByUser"><![CDATA[ select distinct city_name id,city_name text,'0' pid from tel_dic_city WHERE city_name in(select org_name from SHUIJU_QUYU_USER where user_id ={userId}) ]]></i> <i id="getRecordList"><![CDATA[ select * from RUSH_RECORD ]]></i> <i id="getRevenueByOrgId"><![CDATA[ select revenueid id, revenuename text from REVENUE_INFO_FORMAL where companyid ={companyid} ]]></i> </sql> </sqls>
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE sqls SYSTEM "sql_definition.dtd"> <sqls> <sql group="rushfee_org"> <i id="getOrgList"><![CDATA[ select org_id id, org_short_name text, parent_org_id pid from COMPANY_ORGANIZE where org_id !=3701 order by org_id ]]></i> <i id="getOrgListhotwire"><![CDATA[ select org_id id, org_short_name||'分公司' text, parent_org_id pid from COMPANY_ORGANIZE where org_id !=3701 order by org_id ]]></i> <i id="getOrgListByUser"><![CDATA[ select distinct city_name id,city_name text,'0' pid from tel_dic_city WHERE city_name in(select org_name from SHUIJU_QUYU_USER where user_id ={userId}) ]]></i> <i id="getRecordList"><![CDATA[ select * from RUSH_RECORD ]]></i> <i id="getRevenueByOrgId"><![CDATA[ select revenueid id, revenuename text from REVENUE_INFO_FORMAL where companyid ={companyid} ]]></i> </sql> </sqls>

View File

@ -0,0 +1,73 @@
<html login="false">
<head>
<title>客户信息明细</title>
</head>
<body >
<div widget="toolbar" >
<a widget="button" iconCls="icon-admin" id="savebtn" onclick="save">保存</a>
<a widget="button" iconCls="icon-exit" onclick="CloseWindow()">退出</a>
</div>
<!--<input widget="autocomplete" name="custname" label="查询客户" url="rush/search/gettaskpeople"
popupEmptyText="请选择" textfield="cname" valuefield="cguid"
style="margin-left:-16px;width: 500px;" showClose="true" oncloseclick ="conCloseClick"/>-->
<input widget="edit" name="khid" label="客户id" style="width:400px;margin-top:5px"/>
<br/>
<input widget="edit" name="custname" label="客户名称" style="width:400px;margin-top:5px"/>
<br/>
<input widget="edit" name="custtaxno" label="客户税号" style="width:400px;margin-top:5px"/>
<br/>
<input widget="edit" name="mobile" label="联系电话" style="width:400px;margin-top:5px"/>
<br/>
<input name="enddate" widget=datechooser allowinput="ture" label="到期日期" style="width:400px;margin-top:5px">
<br/>
<div name="state" required label="状态" widget="radiobuttonlist"
repeatitems="2" repeatlayout="table" textfield="text" valuefield="id"
data="[{id:0,text:'无效'},{id:1,text:'有效'}]" style="width:400px;margin-top:5px">
</div>
<br/>
<input widget="combox" name="orgname" label="分公司" url="rush/hot/getOrgList" style="width:400px;margin-top:5px"
emptyText="请选择" textField="text" valueField="text" allowInput="false"
showNullItem="true"/>
<br/>
<input widget="int" name="mlevel" label="等级" maxValue="100" style="width:400px;margin-top:5px"/>
<br/>
<input widget="int" name="mprice" label="金额" maxValue="100000" style="width:400px;margin-top:5px"/>
</body>
<script type="text/javascript">
var grid = aos.get('grid');
aos.get('state').setValue(1);
function save(){
var data = aos.getForm().getData();
data['khid']=aos.get('khid').getValue();
data['custname']=aos.get('custname').getValue();
data['custtaxno']=aos.get('custtaxno').getValue();
data['mobile']=aos.get('mobile').getValue();
data['enddate']=aos.get('enddate').getValue();
data['state']=aos.get('state').getValue();
data['orgname']=aos.get('orgname').getValue();
data['mlevel']=aos.get('mlevel').getValue();
data['mprice']=aos.get('mprice').getValue();
aos.post({
url:"rush/hot/save",
data:data,
success:function(data){
if(data=1){
CloseWindow();}
else{
aos.tip('服务错误联系管理员!');
}
}
});
}
</script>
</html>

View File

@ -0,0 +1,113 @@
<html login="false" auth="false">
<head>
<meta charset="UTF-8">
<title>热线等级</title>
</head>
<body>
<div widget="toolbar" style="padding:5px;border:0;">
<input widget="combox" name="orgname" label="分公司" url="rush/hot/getOrgList"
emptyText="请选择" textField="text" valueField="text" allowInput="false"
showNullItem="true"/>
<input widget="edit" name="custname" label="客户名称"/>
<input widget="edit" name="custtaxno" label="客户税号"/>
<input widget="edit" name="mobile" label="联系电话"/>
<input name="state" 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-add" onclick="add">新增</a>
</div>
<div widget="autosize">
<div widget="datagrid" name="grid" style="width: 100%; height: 100%;" url="rush/hot/getlist">
<div type="indexcolumn" width="35" header="序号"></div>
<div field="id" visible="id"></div>
<div field="khid" visible="id"></div>
<div field="custname" width="60" header="客户名称" align="center"></div>
<div field="custtaxno" width="60" header="客户税号" align="center"></div>
<div field="createdate" width="60" header="创建日期" align="center"></div>
<div field="mobile" width="50" header="联系电话" align="center"></div>
<div field="enddate" width="35" header="到期日期" align="center"></div>
<div field="orgname" width="50" header="分公司" align="center"></div>
<div field="state" width="30" header="状态" renderer="statetype" align="center"></div>
<div field="mlevel" width="30" header="等级" align="center"></div>
<div field="mprice" width="40" header="金额" align="center"></div>
<div field="caozuo" width="45" align="center" renderer="onRenderer" header="操作"></div>
</div>
</div>
</body>
<script type="text/javascript">
var grid = aos.get('grid');
function search() {
var grid = aos.get('grid');
var params = {
mobile: aos.get('mobile').getValue(),
custname: aos.get('custname').getValue(),
custtaxno: aos.get('custtaxno').getValue(),
orgname: aos.get('orgname').getValue(),
state: aos.get('state').getValue()
};
grid.load(params);
}
function onRenderer(e) {
if (e.row.state == '0') {
return "<a href='javascript:void(0)' style='text-decoration:none' onclick='huifu(\"" + e.row.id + "\")'>" + "恢复";
}
if (e.row.state=='1') {
return "<a href='javascript:void(0)' style='text-decoration:none' onclick='rekp(\"" + e.row.id + "\")'>" + "删除";
}
return "暂无操作";
}
function rekp(id) {
aos.post({
url: 'rush/hot/delete',
data: {id: id},
success: function () {
grid.reload();
}
});
}
function huifu(id) {
aos.post({
url: 'rush/hot/huifu',
data: {id: id},
success: function () {
grid.reload();
}
});
}
function statetype(e) {
var row = e.row;
var value = row.state;
if (value == '0') {
return '<p style="color:red;">无效</p>';
}
if (value == '1') {
return '<p style="color:green;">有效</p>';
} else {
return value;
}
}
function add() {
var param = {};
aos.showWindow('canvas/bureau/hotadd', param, '600px', '500px', '热线数据新增', function(rtnValue){
grid.reload();
});
}
</script>
</html>

View File

@ -42,8 +42,8 @@
<div field="start_time" width="70" header="来电时间" align="center"></div>
<div field="end_time" width="70" header="结束时间" align="center"></div>
<div field="record_duration" width="40" header="录音时长(秒)" align="center"></div>
<div field="call_type" width="35" align="center" header="呼叫类型" ></div>
<div field="callstate" width="35" renderer="callType" align="center" header="呼入/呼出" ></div>
<!-- <div field="call_type" width="35" align="center" header="呼叫类型" ></div>-->
<div field="call_type" width="35" renderer="callType" align="center" header="呼入/呼出" ></div>
<!--<div field="down" width="40" header="下载" renderer="downRender" align="center"></div>-->
<div field="play" width="40" header="调听" renderer="playRender" align="center"></div>
<div field="caller_phone" width="50" header="来电号码" align="center" ></div>
@ -136,7 +136,7 @@
function callType(e){
var row=e.row;
var value=row.callstate;
var value=row.call_type;
if(value=='0'){
return '<p style="color:red;">呼入</p>';
}

View File

@ -116,6 +116,15 @@
<prop name="password">aisinocrm2014</prop>
<prop name="decrypt">false</prop>
</ds>
<ds id="call_center">
<prop name="desc">呼叫中心db</prop>
<prop name="type">oracle</prop>
<prop name="driver">oracle.jdbc.driver.OracleDriver</prop>
<prop name="url">jdbc:oracle:thin:@//10.2.2.30:1526/ipcc</prop><!--正式-->
<prop name="username">useraisino</prop>
<prop name="password">useraisino</prop>
<prop name="decrypt">false</prop>
</ds>
<!--
<ds id="oracle_crm">
<prop name="desc">oracle_crm系统</prop>

View File

@ -0,0 +1,86 @@
package rush;
import com.aisino.aosplus.core.dao.DbHelper;
import com.aisino.aosplus.core.mvc.annotation.Action;
import com.aisino.aosplus.core.mvc.annotation.Request;
import com.aisino.aosplus.core.mvc.bean.Params;
import com.aisino.aosplus.core.util.Guid;
import com.aisino.aosplus.session.SessionHelper;
import org.apache.log4j.Logger;
import java.util.Date;
import java.util.List;
import java.util.Map;
@Action("rush/hot")
public class HotWireClass {
private static Logger logger = Logger.getLogger(HotWireClass.class);
@Request.Post("getlist")
public Map getlist(Params params) {
String custname=params.getString("custname");
String mobile=params.getString("mobile");
String custtaxno=params.getString("custtaxno");
String orgname=params.getString("orgname");
String state=params.getString("state");
StringBuilder sb = new StringBuilder();
if(custname!=null){
sb.append(" and custname like '%" + custname + "%'");
}
if(mobile!=null){
sb.append(" and mobile like '%" + mobile + "%'");
}
if(orgname!=null){
sb.append(" and orgname like '%" + orgname + "%'");
}
if(state!=null){
sb.append(" and state = "+state);
}
if(custtaxno!=null){
sb.append(" and custtaxno like '%" + custtaxno + "%'");
}
sb.append("order by createdate desc");
Map map = DbHelper.getDbService("call_center").queryPageMapList("select * from T_CALLCENTER_MEMBER where 1=1 "+sb ,params);
return map;
}
@Request.Post("delete")
public void delete(Params params) {
String id=params.getString("id");
DbHelper.getDbService("call_center").update("update T_CALLCENTER_MEMBER set state=0 where id =?",id);
}
@Request.Post("huifu")
public void huifu(Params params) {
String id=params.getString("id");
DbHelper.getDbService("call_center").update("update T_CALLCENTER_MEMBER set state=1 where id =?",id);
}
@Request.Get("getOrgList")
public List<Map> getOrgList(Params params){
List<Map> returns = DbHelper.getDbService().queryMapListById("rushfee_org.getOrgList", params);
return returns;
}
@Request.Post("save")
@Request.Get("save")
public int save(Params params){
try{
String sqlString="INSERT INTO T_CALLCENTER_MEMBER(ID, KHID,CUSTNAME,CUSTTAXNO,MOBILE,ORGNAME,STATE,MLEVEL,ENDDATE,MPRICE) "+
" VALUES (seq_callcenter_member.nextval,{khid},{custname},{custtaxno},{mobile},{orgname},{state},{mlevel},{enddate},{mprice})";
DbHelper.getDbService("call_center").update(sqlString,params);
return 1;
}
catch(Exception e){
return 0;
}
}
}