43 lines
1.9 KiB
Plaintext
43 lines
1.9 KiB
Plaintext
<%@ page contentType="text/html; charset=GBK"%><%@
|
|
include file="/Frame/resources/include/include_begin_list.jspf"%><%
|
|
//获得组件参数
|
|
String sRoleID = CurPage.getParameter("RoleID");
|
|
if(sRoleID == null) sRoleID = "";
|
|
ASObjectModel doTemp = new ASObjectModel("ViewAllUserList");
|
|
if(CurUser.hasRole("299")){
|
|
String sCurPOrg=session.getAttribute("managerPlatFormOrgId").toString();
|
|
doTemp.appendJboWhere(" AND O.BelongOrg not like '"+sCurPOrg+"%' ");
|
|
}
|
|
if(CurUser.hasRole("399")){
|
|
doTemp.appendJboWhere(" AND O.BelongOrg not like '"+CurUser.getRelativeOrgID()+"%' ");
|
|
}
|
|
if(!CurUser.hasRole("099")&&!CurUser.hasRole("299")&&!CurUser.hasRole("399")){
|
|
doTemp.appendJboWhere(" AND O.BelongOrg not like 'xxxx%' ");
|
|
}
|
|
ASObjectWindow dwTemp = new ASObjectWindow(CurPage ,doTemp,request);
|
|
dwTemp.Style="1"; //设置DW风格 1:Grid 2:Freeform
|
|
dwTemp.ReadOnly = "1"; //设置是否只读 1:只读 0:可写
|
|
dwTemp.genHTMLObjectWindow(sRoleID);
|
|
String sButtons[][] = {
|
|
{"true","","Button","导出Excel","导出Excel","exportAll()","","","","btn_icon_export"},
|
|
{"true","","Button","配置任务权重","配置任务权重","configWeight()","","","","btn_icon_edit"}
|
|
};
|
|
%> <%@include file="/Frame/resources/include/ui/include_list.jspf"%>
|
|
<script type="text/javascript">
|
|
setDialogTitle("角色下用户列表");
|
|
<%/*~[Describe=导出;InputParam=无;OutPutParam=无;]~*/%>
|
|
function exportAll(){
|
|
//amarExport("myiframe0");
|
|
as_defaultExport();
|
|
}
|
|
|
|
function configWeight() {
|
|
var userId = getItemValue(0,getRow(), "userid");
|
|
var roleid = getItemValue(0,getRow(), "roleid");
|
|
var sUrl = "/AppConfig/RoleManage/UserTaskInfo.jsp";
|
|
AsDialog.PopView(sUrl,"UserId=" + userId + "&RoleId=" + roleid,"dialogWidth=900px;dialogHeight=380px;resizable=no;scrollbars=no;status:yes;maximize:no;help:no;",function(){
|
|
reloadSelf();
|
|
},"配置任务权重");
|
|
}
|
|
</script>
|
|
<%@ include file="/Frame/resources/include/include_end.jspf"%> |