apzl_leasing/WebContent/Tenwa/platform/PfTaskAllocationRoleList.jsp
2019-10-14 15:56:57 +08:00

57 lines
2.2 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
/*
Author: undefined 2019-10-11
Content:
History Log:
*/
ASObjectModel doTemp = new ASObjectModel("PfTaskAllocationRoleList");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="1"; //--设置为Grid风格--
dwTemp.ReadOnly = "1"; //只读模式
dwTemp.setPageSize(10);
dwTemp.genHTMLObjectWindow("");
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标CSS层叠样式 10、风格
String sButtons[][] = {
{"true","All","Button","新增","新增","newRecord()","","","","btn_icon_add",""},
{"true","","Button","详情","详情","viewAndEdit()","","","","btn_icon_detail",""},
{"true","","Button","角色下用户","角色下用户","viewUser()","","","","btn_icon_detail",""},
{"true","","Button","删除","删除","deleteRole()","","","","btn_icon_delete",""},
};
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
<script type="text/javascript">
function newRecord(){
var sUrl = "/Tenwa/platform/PfTaskAllocationRoleInfo.jsp";
AsControl.OpenView(sUrl,'','_self','');
}
function viewAndEdit(){
var sUrl = "/Tenwa/platform/PfTaskAllocationRoleInfo.jsp";
var roleid = getItemValue(0,getRow(0),'ROLEID');
if(typeof(roleid)=="undefined" || roleid.length==0 ){
alert("参数不能为空!");
return ;
}
AsControl.OpenView(sUrl,'roleid='+roleid ,'_self','');
}
function viewUser(){
var sUrl = "/Tenwa/platform/PfTaskAllocationUserList.jsp";
var roleid = getItemValue(0,getRow(0),'ROLEID');
if(typeof(roleid)=="undefined" || roleid.length==0 ){
alert("参数不能为空!");
return ;
}
AsControl.OpenView(sUrl,'roleid='+roleid ,'_self','');
}
function deleteRole(){
if(confirm('确实要删除角色以及角色下用户么?')){
var roleid = getItemValue(0,getRow(0),'ROLEID');
var sReturn = RunJavaMethodTrans("com.tenwa.platform.controller.PfTaskAllocationRoleDelete","deleteRole","roleid="+roleid);
alert(sReturn)
reloadSelf();
}
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>