📄 add.jsp
字号:
<%@ page contentType="text/html; charset=GBK" %>
<%@ include file="/inc/pv/super.jsp"%>
<%@ include file="/inc/public/msg.jsp"%>
<%
java.util.ArrayList roleList = new java.util.ArrayList();
igec.site.base.bean.SysObj info = new igec.site.base.bean.SysObj();
info.setStrValue1(user.getStrUserId());
int iFlag = igec.site.base.business.MRoleBusiness.getRoleList(roleList,info,request);
if(iFlag<0){
showError(out);
return;
}
String strParentId = request.getParameter("pid");
if(igec.util.Tool.IsEmpty(strParentId)) strParentId = "0";
String strNextId = igec.site.base.business.SysUtilBusiness.getNextId("ID","TAB_IGECDEPT");
%>
<html>
<head>
<title>新建部门</title>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<link rel="stylesheet" type="text/css" href="<%=strCssPath%>">
<script language="javascript" src="<%=site.bean.SitePara.strVirtualName%>/js/public.js"></script>
<script language="javascript" src="<%=site.bean.SitePara.strVirtualName%>/js/check.js"></script>
<script language="javascript" src="<%=site.bean.SitePara.strVirtualName%>/js/xmlhttp.js"></script>
<script language="javascript" src="<%=strSkinBase%>/js/forbid.js"></script>
<script Language="JavaScript">
<!--
function openMaxWin(strHref){
openWindow(strHref,screen.availWidth,screen.availHeight);
}
function sendForm(loForm){
if(!Check(loForm)) return false;
try{
aJax_SendForm(loForm,"");
}catch(eee){
alert(eee.description);
}
}
function setManageRange(strResult){
var strResultArray = strResult.split(":");
if(strResultArray.length!=2){
alert("返回结果中含有非法字符!请过滤\":\"号!");
return;
}
getObject("MANAGERANGE").value = strResultArray[0];
}
//-->
</script>
</head>
<body class="bodycolor" topmargin="5" onload="resizeWin('objBody');">
<table border="0" name="objBody" id="objBody" cellspacing="1" width="95%" class="small" bgcolor="#000000" cellpadding="3" align="center" >
<form action="<%=site.bean.SitePara.strVirtualName + site.bean.SitePara.strManageFolder%>/depart.do?action=save&pid=<%=strParentId%>&iid=<%=strMenuId%>" method="post" name="form1" onsubmit="sendForm(this);return false;">
<input type="hidden" name="MANAGERANGE" id="MANAGERANGE" value="">
<tr>
<td nowrap class="TableHeader" colspan="2"><img src="<%=strSkinBase%>/images/green_arrow.gif" align="absMiddle"> 请认真填写下列各项:</td>
</tr>
<tr>
<td nowrap class="TableData"> 部门ID(唯一标志):</td>
<td class="TableData">
<input type="text" name="DEPARTID" size="6" maxlength="8" class="BigInput" value="<%=strNextId%>" EmptyDisable label="部门ID"> 不允许重复,建议使用默认值 <font color="#FF0000">必填</font>
</td>
</tr>
<tr>
<td nowrap class="TableData" width="120">部门键值:</td>
<td nowrap class="TableData">
<input type="text" name="DKEY" class="BigInput" size="10" maxlength="5" EmptyDisable label="部门键值"> 客服部门必须为"KF" <font color="#FF0000">必填</font>
</td>
</tr>
<tr>
<td nowrap class="TableData">部门名称:</td>
<td nowrap class="TableData">
<input type="text" name="DEPARTNAME" class="BigInput" size="20" maxlength="30" EmptyDisable label="部门名称"> <font color="#FF0000">必填</font>
</td>
</tr>
<%if("0".equals(strParentId) && '1'==igec.util.Tool.getSafeChar(site.bean.SitePara.strSysFunctionOpenFlag,site.bean.SitePara.iOpenDepartArea)){%>
<tr>
<td nowrap class="TableData">管理区域:</td>
<td nowrap class="TableData">
<input type="button" value="设置对应的管理区域" onclick="javascript:showSelectDialog('<%=strSkinBase%>/select/extend/multi.jsp?title=请选择对应的区域&table=TAB_INDEXTYPE&tname=name&indexType=1&sval='+getObject('MANAGERANGE').value,setManageRange,screen.availWidth+'px',screen.availHeight+'px');"> 默认为不管理任何区域
</td>
</tr>
<%}%>
<tr>
<td nowrap class="TableControl" colspan="2" align="center">
<input type="submit" value="新 建" class="BigButton" title="新建部门" name="button">
<input type="button" value="关 闭" class="BigButton" title="关闭窗口" onclick="window.close();">
</td>
</form>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -