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

60 lines
2.1 KiB
Plaintext

<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><%
/*
Author: undefined 2019-10-11
Content: 示例详情页面
History Log:
*/
String sPrevUrl = CurPage.getParameter("PrevUrl");
String roleid = CurPage.getParameter("roleid");
String id = CurPage.getParameter("id");
System.out.println(roleid);
System.out.println(id);
String sTempletNo = "PfTaskAllocationUserInfo";//--模板号--
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
if(id!=null)
doTemp.setVisible("USERNAME",false);
if(sPrevUrl == null) sPrevUrl = "/Tenwa/platform/PfTaskAllocationUserList.jsp";
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
dwTemp.Style = "2";//freeform
//dwTemp.ReadOnly = "-2";//只读模式
dwTemp.genHTMLObjectWindow(id);
String sButtons[][] = {
{"true","All","Button","保存","保存所有修改","saveUser()","","","",""},
{String.valueOf(!com.amarsoft.are.lang.StringX.isSpace(sPrevUrl)),"All","Button","返回","返回列表","returnList()","","","",""}
};
sButtonPosition = "south";
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
<script type="text/javascript">
function saveUser(){
var pattern = /^(\d|[1-9]\d)$/;
var weight = getItemValue(0,getRow(0),'WEIGHT');
if(!pattern.test(weight)){
alert("权重请输入1~99的整数");
return
}
as_save(0);
}
function returnList(){
AsControl.OpenView("<%=sPrevUrl%>", "roleid=<%=roleid%>","_self","");
}
function selectRoleUser(){
AsDialog.OpenSelector("selectRoleUser","roleid,<%=roleid%>","dialogWidth=" + parseInt(window.screen.width * 0.3) + "px dialogHeight=" + parseInt(window.screen.height * 0.6) + "px",function(sReturn){
if(!sReturn||sReturn=="_CANCEL_"||sReturn==""||sReturn=="_NONE_"){
return;
}
sReturn = sReturn.split("@");
var userid=sReturn[0];
var username=sReturn[1];
setItemValue(0,getRow(),"USERID",userid);
setItemValue(0,getRow(),"USERNAME",username);
setItemValue(0,getRow(),"ROLEID","<%=roleid%>");
});
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>