master
zxf 2023-09-26 08:20:25 +08:00
parent c5d2879cd6
commit 4712b1386c
17 changed files with 551 additions and 8 deletions

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="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>
<?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="getmprice"><![CDATA[ select DISTINCT MPRICE text from T_CALLCENTER_MEMBER order by MPRICE ]]></i> <i id="getmlevel"><![CDATA[ select DISTINCT mlevel text from T_CALLCENTER_MEMBER order by mlevel ]]></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,77 @@
<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 name="id" widget="hidden" />
<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="edit" name="mlevel" label="等级" maxValue="100" minValue="-9999" style="width:400px;margin-top:5px"/>
<br/>
<input widget="num" name="mprice" label="金额" maxValue="100000" style="width:400px;margin-top:5px"/>
</body>
<script type="text/javascript">
var grid = aos.get('grid');
function init(params) {
aos.getForm().setData(params);
aos.get('mlevel').setValue(params.mlevel);
}
function save(){
var data = aos.getForm().getData();
data['id']=aos.get('id').getValue();
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['mlevel']=aos.get('mlevel').getValue();
data['mprice']=aos.get('mprice').getValue();
aos.post({
url:"rush/hot/update",
data:data,
success:function(data){
if(data=1){
CloseWindow();}
else{
aos.tip('服务错误联系管理员!');
}
}
});
}
</script>
</html>

View File

@ -15,6 +15,15 @@
<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="状态">
<input widget="combox" name="mprice" label="价格" url="rush/hot/getmprice" multiSelect="true"
emptyText="请选择" textField="text" valueField="text" allowInput="false"
showNullItem="true"/>
<input widget="combox" name="mlevel" label="等级" url="rush/hot/getmlevel" multiSelect="true"
emptyText="请选择" textField="text" valueField="text" allowInput="false"
showNullItem="true"/>
<a widget="button" iconCls="icon-search" onclick="search()">查询</a>
<a widget="button" iconCls="icon-add" onclick="add">新增</a>
<a widget="button" iconCls="icon-save" onclick="weihu">维护</a>
@ -48,6 +57,8 @@
custname: aos.get('custname').getValue(),
custtaxno: aos.get('custtaxno').getValue(),
orgname: aos.get('orgname').getValue(),
mlevel: aos.get('mlevel').getValue(),
mprice: aos.get('mprice').getValue(),
state: aos.get('state').getValue()
};
grid.load(params);

View File

@ -0,0 +1,103 @@
<html login="false">
<head>
<meta charset="UTF-8">
<title>CRM流向不一致处理</title>
</head>
<body>
<div widget="toolbar">
</div>
<p style ="color:red;text-align:center;">注意:以下为批量维护等级,输入条件 更新等级 可以预览!确认无误执行!</p>
<p style ="color:#2a20ff;text-align:center;">-------------------------------查询选项-------------------------------</p>
<input widget="edit" name="mobile" label="电话" required="false" style="margin-top:5px"/>
<br/>
<input widget="edit" name="mprice" label="金额" required="false" style="margin-top:5px"/>
<br/>
<input widget="edit" name="mlevel" label="等级" required="false" style="margin-top:5px"/>
<a widget="button" iconCls="icon-search" onclick="yulan" linkToState="editold,editnew">预览</a>
<p style ="color:#2a20ff;text-align:center;">-------------------------------更新选项-------------------------------</p>
<input widget="edit" name="updatemlevel" label="等级" required="true" style="margin-top:5px"/>
<a widget="button" iconCls="icon-save" onclick="save" linkToState="editold,editnew">执行</a>
<br/>
<br/>
<br/>
<br/>
<br/>
<p style ="color:red;text-align:center;">注意:以下为批量更新电话,按照模板进行导入!(开发中)</p>
<br/>
<input id="fileupload1" widget="fileupload" limitType="*.xlsx" label="批量导入"
flashUrl="www/lib/uploader/swfupload/swfupload.swf"
uploadUrl="crm_sku/importExlfile" buttonText="浏览" width="120px"
uploadOnSelect="false" onuploadsuccess="onUploadSuccess"
onuploaderror="onUploadError" onfileselect="onFileSelect" />
<a widget="button" iconCls="icon-import" onclick="startUpload()">批量执行</a>
<script type="text/javascript">
var isSaving = false;
function save(){
if(isSaving){
aos.tip('正在处理中...');
return;
}else{
isSaving=true;
}
if(!FORM.validate())
{
isSaving = false;
return;
}
aos.post({
url:"rush/hot/updatedengji",
data:aos.getForm().getData(),
success:function(data, textStatus, jqXHR){
if(data == 1){
aos.get("updatemlevel").setValue("");
aos.tip("已按照条件维护成功!");
isSaving=false;
}
else{
aos.tip("维护失败!");
isSaving=false;
}
}
});
}
function startUpload() {
var fileupload = aos.get("fileupload1");
var param = {state:aos.get("state2").getValue()};
fileupload.setPostParam(param);
fileupload.startUpload();
}
function onFileSelect(e) {//file,sender,source,type[fileselect]
var file=e.file;//size,modificationdate,creationdate,post,type[.txt],id,name,filestatus,index[0]
//alert(file.name);
}
function onUploadSuccess(e) {
var result=aos.decode(e.serverData);
aos.alert(result.data.info);
this.setText("");
}
function yulan() {
var params = {
mobile: aos.get('mobile').getValue(),
mlevel: aos.get('mlevel').getValue(),
mprice: aos.get('mprice').getValue()
};
aos.showWindow('canvas/bureau/yulan', params, '1000px', '800px', '维护预览', function(rtnValue){
});
}
</script>
</body>
</html>

View File

@ -0,0 +1,57 @@
<html login="false" auth="false">
<head>
<meta charset="UTF-8">
<title>热线等级</title>
</head>
<body>
<div widget="toolbar" style="padding:5px;border:0;">
</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>
</div>
</body>
<script type="text/javascript">
var grid = aos.get('grid');
function init(params) {
var grid = aos.get('grid');
grid.load(params);
}
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;
}
}
</script>
</html>

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="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>
<?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="getmprice"><![CDATA[ select DISTINCT MPRICE text from T_CALLCENTER_MEMBER order by MPRICE ]]></i> <i id="getmlevel"><![CDATA[ select DISTINCT mlevel text from T_CALLCENTER_MEMBER order by mlevel ]]></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,77 @@
<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 name="id" widget="hidden" />
<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="edit" name="mlevel" label="等级" maxValue="100" minValue="-9999" style="width:400px;margin-top:5px"/>
<br/>
<input widget="num" name="mprice" label="金额" maxValue="100000" style="width:400px;margin-top:5px"/>
</body>
<script type="text/javascript">
var grid = aos.get('grid');
function init(params) {
aos.getForm().setData(params);
aos.get('mlevel').setValue(params.mlevel);
}
function save(){
var data = aos.getForm().getData();
data['id']=aos.get('id').getValue();
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['mlevel']=aos.get('mlevel').getValue();
data['mprice']=aos.get('mprice').getValue();
aos.post({
url:"rush/hot/update",
data:data,
success:function(data){
if(data=1){
CloseWindow();}
else{
aos.tip('服务错误联系管理员!');
}
}
});
}
</script>
</html>

View File

@ -15,6 +15,15 @@
<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="状态">
<input widget="combox" name="mprice" label="价格" url="rush/hot/getmprice" multiSelect="true"
emptyText="请选择" textField="text" valueField="text" allowInput="false"
showNullItem="true"/>
<input widget="combox" name="mlevel" label="等级" url="rush/hot/getmlevel" multiSelect="true"
emptyText="请选择" textField="text" valueField="text" allowInput="false"
showNullItem="true"/>
<a widget="button" iconCls="icon-search" onclick="search()">查询</a>
<a widget="button" iconCls="icon-add" onclick="add">新增</a>
<a widget="button" iconCls="icon-save" onclick="weihu">维护</a>
@ -48,6 +57,8 @@
custname: aos.get('custname').getValue(),
custtaxno: aos.get('custtaxno').getValue(),
orgname: aos.get('orgname').getValue(),
mlevel: aos.get('mlevel').getValue(),
mprice: aos.get('mprice').getValue(),
state: aos.get('state').getValue()
};
grid.load(params);

View File

@ -0,0 +1,103 @@
<html login="false">
<head>
<meta charset="UTF-8">
<title>CRM流向不一致处理</title>
</head>
<body>
<div widget="toolbar">
</div>
<p style ="color:red;text-align:center;">注意:以下为批量维护等级,输入条件 更新等级 可以预览!确认无误执行!</p>
<p style ="color:#2a20ff;text-align:center;">-------------------------------查询选项-------------------------------</p>
<input widget="edit" name="mobile" label="电话" required="false" style="margin-top:5px"/>
<br/>
<input widget="edit" name="mprice" label="金额" required="false" style="margin-top:5px"/>
<br/>
<input widget="edit" name="mlevel" label="等级" required="false" style="margin-top:5px"/>
<a widget="button" iconCls="icon-search" onclick="yulan" linkToState="editold,editnew">预览</a>
<p style ="color:#2a20ff;text-align:center;">-------------------------------更新选项-------------------------------</p>
<input widget="edit" name="updatemlevel" label="等级" required="true" style="margin-top:5px"/>
<a widget="button" iconCls="icon-save" onclick="save" linkToState="editold,editnew">执行</a>
<br/>
<br/>
<br/>
<br/>
<br/>
<p style ="color:red;text-align:center;">注意:以下为批量更新电话,按照模板进行导入!(开发中)</p>
<br/>
<input id="fileupload1" widget="fileupload" limitType="*.xlsx" label="批量导入"
flashUrl="www/lib/uploader/swfupload/swfupload.swf"
uploadUrl="crm_sku/importExlfile" buttonText="浏览" width="120px"
uploadOnSelect="false" onuploadsuccess="onUploadSuccess"
onuploaderror="onUploadError" onfileselect="onFileSelect" />
<a widget="button" iconCls="icon-import" onclick="startUpload()">批量执行</a>
<script type="text/javascript">
var isSaving = false;
function save(){
if(isSaving){
aos.tip('正在处理中...');
return;
}else{
isSaving=true;
}
if(!FORM.validate())
{
isSaving = false;
return;
}
aos.post({
url:"rush/hot/updatedengji",
data:aos.getForm().getData(),
success:function(data, textStatus, jqXHR){
if(data == 1){
aos.get("updatemlevel").setValue("");
aos.tip("已按照条件维护成功!");
isSaving=false;
}
else{
aos.tip("维护失败!");
isSaving=false;
}
}
});
}
function startUpload() {
var fileupload = aos.get("fileupload1");
var param = {state:aos.get("state2").getValue()};
fileupload.setPostParam(param);
fileupload.startUpload();
}
function onFileSelect(e) {//file,sender,source,type[fileselect]
var file=e.file;//size,modificationdate,creationdate,post,type[.txt],id,name,filestatus,index[0]
//alert(file.name);
}
function onUploadSuccess(e) {
var result=aos.decode(e.serverData);
aos.alert(result.data.info);
this.setText("");
}
function yulan() {
var params = {
mobile: aos.get('mobile').getValue(),
mlevel: aos.get('mlevel').getValue(),
mprice: aos.get('mprice').getValue()
};
aos.showWindow('canvas/bureau/yulan', params, '1000px', '800px', '维护预览', function(rtnValue){
});
}
</script>
</body>
</html>

View File

@ -0,0 +1,57 @@
<html login="false" auth="false">
<head>
<meta charset="UTF-8">
<title>热线等级</title>
</head>
<body>
<div widget="toolbar" style="padding:5px;border:0;">
</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>
</div>
</body>
<script type="text/javascript">
var grid = aos.get('grid');
function init(params) {
var grid = aos.get('grid');
grid.load(params);
}
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;
}
}
</script>
</html>

View File

@ -1,3 +1,3 @@
#save ini
#Mon Sep 25 00:19:40 CST 2023
#Mon Sep 25 23:35:49 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="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>
<?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="getmprice"><![CDATA[ select DISTINCT MPRICE text from T_CALLCENTER_MEMBER order by MPRICE ]]></i> <i id="getmlevel"><![CDATA[ select DISTINCT mlevel text from T_CALLCENTER_MEMBER order by mlevel ]]></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

@ -25,7 +25,7 @@
data="[{id:0,text:'无效'},{id:1,text:'有效'}]" style="width:400px;margin-top:5px">
</div>
<br/>
<input widget="num" name="mlevel" label="等级" maxValue="100" minValue="0" style="width:400px;margin-top:5px"/>
<input widget="edit" name="mlevel" label="等级" maxValue="100" minValue="-9999" style="width:400px;margin-top:5px"/>
<br/>
<input widget="num" name="mprice" label="金额" maxValue="100000" style="width:400px;margin-top:5px"/>
@ -36,7 +36,7 @@
function init(params) {
aos.getForm().setData(params);
grid.load(params);
aos.get('mlevel').setValue(params.mlevel);
}

View File

@ -15,6 +15,15 @@
<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="状态">
<input widget="combox" name="mprice" label="价格" url="rush/hot/getmprice" multiSelect="true"
emptyText="请选择" textField="text" valueField="text" allowInput="false"
showNullItem="true"/>
<input widget="combox" name="mlevel" label="等级" url="rush/hot/getmlevel" multiSelect="true"
emptyText="请选择" textField="text" valueField="text" allowInput="false"
showNullItem="true"/>
<a widget="button" iconCls="icon-search" onclick="search()">查询</a>
<a widget="button" iconCls="icon-add" onclick="add">新增</a>
<a widget="button" iconCls="icon-save" onclick="weihu">维护</a>
@ -48,6 +57,8 @@
custname: aos.get('custname').getValue(),
custtaxno: aos.get('custtaxno').getValue(),
orgname: aos.get('orgname').getValue(),
mlevel: aos.get('mlevel').getValue(),
mprice: aos.get('mprice').getValue(),
state: aos.get('state').getValue()
};
grid.load(params);

View File

@ -38,11 +38,35 @@ public class HotWireClass {
if(custtaxno!=null){
sb.append(" and custtaxno like '%" + custtaxno + "%'");
}
if(mlevel!=null){
sb.append(" and mlevel = "+mlevel);
String[] mlevelArrray = mlevel.split(",");
sb.append(" and mlevel in ( ");
for (int i=0;i<mlevelArrray.length;i++){
sb.append("'"+mlevelArrray[i]+"'");
if(i!=mlevelArrray.length-1){
sb.append(",");
}
else{
sb.append(")");
}
}
}
if(mprice!=null){
sb.append(" and mprice = "+mprice);
String[] mpriceArrray = mprice.split(",");
sb.append(" and mprice in ( ");
for (int b=0;b<mpriceArrray.length;b++){
sb.append("'"+mpriceArrray[b]+"'");
if(b!=mpriceArrray.length-1){
sb.append(",");
}
else{
sb.append(")");
}
}
}
sb.append("order by createdate desc");
Map map = DbHelper.getDbService("call_center").queryPageMapList("select * from T_CALLCENTER_MEMBER where 1=1 "+sb ,params);
@ -70,6 +94,18 @@ public class HotWireClass {
}
@Request.Get("getmprice")
public List<Map> getmprice(Params params){
List<Map> returns = DbHelper.getDbService("call_center").queryMapListById("rushfee_org.getmprice", params);
return returns;
}
@Request.Get("getmlevel")
public List<Map> getmlevel(Params params){
List<Map> returns = DbHelper.getDbService("call_center").queryMapListById("rushfee_org.getmlevel", params);
return returns;
}
@Request.Post("save")
@Request.Get("save")
public int save(Params params){