51 lines
2.1 KiB
Plaintext
51 lines
2.1 KiB
Plaintext
<%@ page contentType="text/html; charset=GBK"%><%@
|
|
include file="/Frame/resources/include/include_begin_list.jspf"%><%
|
|
/*经销商管理人员角色权限*/
|
|
//通过显示模版产生模型对象doTemp
|
|
String userId = CurPage.getUserId();
|
|
ASObjectModel doTemp = new ASObjectModel("DealerUserList");
|
|
String sCurPOrg=CurUser.getRelativeOrgID();
|
|
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
|
|
dwTemp.Style="1"; //设置DW风格 1:Grid 2:Freeform
|
|
dwTemp.ReadOnly = "0"; //设置是否只读 1:只读 0:可写
|
|
dwTemp.setPageSize(20);
|
|
dwTemp.genHTMLObjectWindow("");
|
|
String sButtons[][] = {
|
|
{(CurUser.hasRole("099")||CurUser.hasRole("299")?"true":"false"),"","Button","新增用户","新增用户","newRecord()","","","","btn_icon_add"},
|
|
{"true","","Button","删除用户","删除用户","deleteUser(0)","","","","btn_icon_invalid"}
|
|
};
|
|
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
|
|
<script type="text/javascript">
|
|
function newRecord(){
|
|
var userid="<%=CurUser.getUserID()%>";
|
|
var selName="SelectDealerUserList";
|
|
var param="userid,"+userid;
|
|
AsDialog.OpenSelector(selName,param,"dialogWidth=" + parseInt(window.screen.width * 0.8) + "px dialogHeight=" + parseInt(window.screen.height * 0.6) + "px",function(sReturn){
|
|
if(!sReturn||sReturn=="_CANCEL_"){
|
|
return;
|
|
}
|
|
sReturn = sReturn.split("@");
|
|
//alert(sReturn);
|
|
var sReturnInfo = RunJavaMethodSqlca("com.amarsoft.app.awe.config.orguser.action.DealerUserListAction","addUser","loginid="+sReturn[1]);
|
|
if(sReturnInfo == "SUCCESS"){
|
|
alert("添加用户成功!");
|
|
reloadSelf();
|
|
}
|
|
},"请选择合同");
|
|
}
|
|
<%/*~[Describe=从当前机构中删除该人员;]~*/%>
|
|
function deleteUser(){
|
|
var loginid = getItemValue(0,getRow(),"LOGINID");
|
|
//alert(loginid);
|
|
if(typeof(loginid) == "undefined" || loginid.length == 0){
|
|
alert(getMessageText('AWEW1001'));//请选择一条信息!
|
|
}else if(confirm("您真的想删除该用户吗?")){
|
|
var sReturn = RunJavaMethodSqlca("com.amarsoft.app.awe.config.orguser.action.DealerUserListAction","deleteUser","loginid="+loginid);
|
|
if(sReturn == "SUCCESS"){
|
|
alert("删除用户成功!");
|
|
reloadSelf();
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
<%@ include file="/Frame/resources/include/include_end.jspf"%> |