46 lines
1.8 KiB
Plaintext
46 lines
1.8 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 roleid = CurPage.getParameter("roleid");
|
|
String sPrevUrl = CurPage.getParameter("PrevUrl");
|
|
if(sPrevUrl == null) sPrevUrl = "/Tenwa/platform/PfTaskAllocationRoleList.jsp";
|
|
|
|
String sTempletNo = "PfTaskAllocationRoleInfo";//--模板号--
|
|
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
|
|
if(roleid!=null)
|
|
doTemp.setVisible("ROLENAME",false);
|
|
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
|
|
dwTemp.Style = "2";//freeform
|
|
//dwTemp.ReadOnly = "-2";//只读模式
|
|
dwTemp.genHTMLObjectWindow(roleid);
|
|
|
|
String sButtons[][] = {
|
|
{"true","All","Button","保存","保存所有修改","as_save(0)","","","",""},
|
|
{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 returnList(){
|
|
AsControl.OpenView("<%=sPrevUrl%>", "","_self","");
|
|
}
|
|
|
|
function selectRole(){
|
|
AsDialog.OpenSelector("selectRole","","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 roleid=sReturn[0];
|
|
var rolename=sReturn[1];
|
|
setItemValue(0,getRow(),"ROLEID",roleid);
|
|
setItemValue(0,getRow(),"ROLENAME",rolename);
|
|
});
|
|
}
|
|
</script>
|
|
<%@ include file="/Frame/resources/include/include_end.jspf"%> |