85 lines
3.3 KiB
Plaintext
85 lines
3.3 KiB
Plaintext
<%@ page contentType="text/html; charset=GBK"%>
|
||
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
|
||
/*
|
||
Author: undefined 2017-10-10
|
||
Content:
|
||
History Log:
|
||
*/
|
||
ASObjectModel doTemp = new ASObjectModel("ChannelOrgInfoList");
|
||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
|
||
dwTemp.Style="1"; //--设置为Grid风格--
|
||
dwTemp.ReadOnly = "1"; //只读模式
|
||
dwTemp.setPageSize(20);
|
||
dwTemp.genHTMLObjectWindow("");
|
||
//1、正常 2、暂停 3、终止
|
||
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格
|
||
String sButtons[][] = {
|
||
{"true","All","Button","渠道商注册","渠道商注册","newRecord()","","","","btn_icon_add",""},
|
||
{"true","All","Button","修改","修改","viewAndEdit()","","","","btn_icon_detail",""},
|
||
{"true","All","Button","暂停合作","暂停合作","suspend_Work()","","","","btn_icon_ztht",""},
|
||
{"true","All","Button","恢复合作","恢复合作","recovery_Work()","","","","btn_icon_hfht",""},
|
||
{"true","All","Button","终止合作","终止合作","stop_Work()","","","","btn_icon_zzht",""},
|
||
};
|
||
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
|
||
<script type="text/javascript">
|
||
function newRecord(){
|
||
var sUrl = "/Tenwa/Lease/ChannelManage/ChannelOrgInfo.jsp";
|
||
AsControl.OpenView(sUrl,"action=add",'_self','');
|
||
}
|
||
function viewAndEdit(){
|
||
var sUrl = "/Tenwa/Lease/ChannelManage/ChannelOrgInfo.jsp";
|
||
var PARTNERID = getItemValue(0,getRow(0),'ID_');
|
||
var PARTNER_NUM= getItemValue(0,getRow(0),'PARTNER_NUM');
|
||
if(typeof(PARTNERID)=="undefined" || PARTNERID.length==0 ){
|
||
alert("参数不能为空!");
|
||
return ;
|
||
}
|
||
AsControl.OpenView(sUrl,'ID_='+PARTNERID+"&PARTNER_NUM="+PARTNER_NUM+"&action=edit",'_self','');
|
||
}
|
||
function suspend_Work(){
|
||
var id = getItemValue(0,getRow(0),'ID_');
|
||
var status = getItemValue(0,getRow(0),'STATUS');
|
||
if(typeof(id)=="undefined" || id.length==0 ){
|
||
alert("请选择一条数据!");
|
||
return ;
|
||
}
|
||
var result = AsControl.RunJavaMethodTrans("com.tenwa.lease.channelmanage.ChannelChangeStatus","ChangeStatusSuspend","id="+id+",status="+status);
|
||
if(result=='success'){
|
||
alert("暂停成功");
|
||
reloadSelf();
|
||
}else{
|
||
alert("该数据无需进行暂停操作");
|
||
}
|
||
}
|
||
function recovery_Work(){
|
||
var id = getItemValue(0,getRow(0),'ID_');
|
||
var status = getItemValue(0,getRow(0),'STATUS');
|
||
if(typeof(id)=="undefined" || id.length==0 ){
|
||
alert("请选择一条数据!");
|
||
return ;
|
||
}
|
||
var result = AsControl.RunJavaMethodTrans("com.tenwa.lease.channelmanage.ChannelChangeStatus","ChangeStatusRecovery","id="+id+",status="+status);
|
||
if(result=='success'){
|
||
alert("恢复成功");
|
||
reloadSelf();
|
||
}else{
|
||
alert("该数据无需进行恢复操作");
|
||
}
|
||
}
|
||
function stop_Work(){
|
||
var id = getItemValue(0,getRow(0),'ID_');
|
||
var status = getItemValue(0,getRow(0),'STATUS');
|
||
if(typeof(id)=="undefined" || id.length==0 ){
|
||
alert("请选择一条数据!");
|
||
return ;
|
||
}
|
||
var result = AsControl.RunJavaMethodTrans("com.tenwa.lease.channelmanage.ChannelChangeStatus","ChangeStatusStop","id="+id+",status="+status);
|
||
if(result=='success'){
|
||
alert("终止成功");
|
||
reloadSelf();
|
||
}else{
|
||
alert("该数据已终止,无需重复操作");
|
||
}
|
||
}
|
||
</script>
|
||
<%@ include file="/Frame/resources/include/include_end.jspf"%> |