57 lines
2.4 KiB
Plaintext
57 lines
2.4 KiB
Plaintext
<%@ page contentType="text/html; charset=GBK"%>
|
||
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
|
||
/*
|
||
Author: undefined 2017-10-20
|
||
Content:
|
||
History Log:
|
||
*/
|
||
ASObjectModel doTemp = new ASObjectModel("ChannelQuotaList");
|
||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
|
||
dwTemp.Style="1"; //--设置为Grid风格--
|
||
dwTemp.ReadOnly = "1"; //只读模式
|
||
dwTemp.setPageSize(20);
|
||
|
||
dwTemp.genHTMLObjectWindow("");
|
||
|
||
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格
|
||
String sButtons[][] = {
|
||
{"true","All","Button","查询渠道总额度","查询渠道总额度","view()","","","","btn_icon_detail",""},
|
||
{"true","All","Button","查询分项额度","查询分项额度","viewSeparateInfo()","","","","btn_icon_detail",""},
|
||
//{"true","","Button","详情","详情","viewAndEdit()","","","","btn_icon_detail",""},
|
||
//{"true","","Button","删除","删除","if(confirm('确实要删除吗?'))as_delete(0,'alert(getRowCount(0))')","","","","btn_icon_delete",""},
|
||
};
|
||
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
|
||
<script type="text/javascript">
|
||
|
||
function view(){
|
||
var sUrl = "/Tenwa/Lease/ChannelManage/ChannelQuotaTotalInfo.jsp";
|
||
//AsControl.OpenView(sUrl,'','_self','');
|
||
var sPara = getItemValue(0,getRow(0),'PARTNER_NUM');
|
||
if(typeof(sPara)=="undefined" || sPara.length==0 ){
|
||
alert("参数不能为空!");
|
||
return ;
|
||
}
|
||
AsDialog.PopView(sUrl,"OrgId="+sPara+"&RightType=ReadOnly","dialogWidth=800px;dialogHeight=480px;resizable=no;scrollbars=no;status:yes;maximize:no;help:no;",function(){
|
||
reloadSelf();
|
||
},"查询渠道总额度");
|
||
}
|
||
|
||
function viewSeparateInfo(){
|
||
var sUrl = "/Tenwa/Lease/ChannelManage/selectQuotaSeparateList.jsp";
|
||
var partnelid = getItemValue(0,getRow(0),'ID_');
|
||
var ChannelId = getItemValue(0,getRow(0),'id');
|
||
// alert(ChannelId);
|
||
if(typeof(partnelid)=="undefined" || partnelid.length==0 ){
|
||
return ;
|
||
}
|
||
if(typeof(ChannelId)=="undefined" || ChannelId.length==0 ){
|
||
alert("请先设置总额度");
|
||
return ;
|
||
}
|
||
AsDialog.PopView(sUrl,"partnelid="+partnelid+"&ChannelId="+ChannelId,"dialogWidth=800px;dialogHeight=480px;resizable=no;scrollbars=no;status:yes;maximize:no;help:no;",function(){
|
||
reloadSelf();
|
||
},"查询分支机构额度");
|
||
}
|
||
|
||
</script>
|
||
<%@ include file="/Frame/resources/include/include_end.jspf"%> |