You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
151 lines
5.1 KiB
151 lines
5.1 KiB
<%@page import="com.zky.para.Para"%>
|
|
<%@include file="/auth.jsp"%>
|
|
<%@page language="java" contentType="text/html;charset=utf-8"%>
|
|
<jsp:useBean id="getPara" scope="application" class="com.zky.para.SyncPara"/>
|
|
<%
|
|
|
|
|
|
String operate = (String)request.getParameter("operate");
|
|
String jobcode = Common.convertNull(request.getParameter("jobcodeQ"));
|
|
String jobname = Common.convertNull(request.getParameter("jobnameQ"));
|
|
String companyid = Common.convertNull(request.getParameter("companyidQ"));
|
|
%>
|
|
<html>
|
|
<head>
|
|
<title>角色岗位管理</title>
|
|
<link rel="stylesheet" type="text/css" href="../css/font.css">
|
|
<script src="/js/check.js"></script>
|
|
<script src="../js/date.js"></script>
|
|
<script src="../js/setSelectValue.js"></script>
|
|
<link rel="stylesheet" type="text/css" href="../js/2k3Grid.css">
|
|
<link rel="stylesheet" type="text/css" href="../js/2k3Menu.css">
|
|
<link rel="stylesheet" type="text/css" href="../js/2k3Dialog.css">
|
|
<style type="text/css">
|
|
select
|
|
{
|
|
width:155px;
|
|
}
|
|
html { overflow-x:hidden; overflow-y:hidden; }
|
|
</style>
|
|
<script>
|
|
function check(operate,companyid,jobcode) {
|
|
form1.operate.value=operate;
|
|
if (operate == "query"){
|
|
}
|
|
if (operate == "add") {
|
|
form1.action = "/manage/JobEdit.jsp";
|
|
}
|
|
if (operate == "modify") {
|
|
form1.action = "/servlet/JobManage?operate=detail&jobcode="+jobcode+"&companyid="+companyid;
|
|
}
|
|
if (operate == "delete") {
|
|
if (!confirm("确定要删除该岗位吗?")) {
|
|
return;
|
|
}
|
|
form1.action = "/servlet/JobManage?operate=delete&jobcode="+jobcode+"&companyid="+companyid;
|
|
}
|
|
form1.button1.disabled=true;
|
|
form1.submit();
|
|
}
|
|
</script>
|
|
</head>
|
|
<body onload="setValue();" scroll="no">
|
|
<form name="form1" method="post" action="/servlet/JobManage">
|
|
<input type="hidden" name="operate" value=""/>
|
|
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="1" class="box">
|
|
<tr>
|
|
<td valign="top"><table width="100%" height="23" border="0" cellpadding="0" cellspacing="0">
|
|
<tr>
|
|
<td width="25%" background="/images/tab_search_01.jpg"><table width="100%" height="23" border="0" align="center" cellpadding="0" cellspacing="0">
|
|
<tr>
|
|
<td width="6%" align="right"><img src="/images/little_red.jpg" width="12" height="12"></td>
|
|
<td width="94%" class="font12b"> <b>角色岗位管理</b></td>
|
|
</tr>
|
|
</table></td>
|
|
<td width="75%" background="/images/tab_search_03.jpg"><img src="/images/tab_search_02.jpg" width="12" height="23"></td>
|
|
</tr>
|
|
</table>
|
|
<table width="99%" border="0" align="center" cellpadding="2" cellspacing="1" class="table02">
|
|
<tr bgcolor="#FFFFFF">
|
|
<td class="cell1">所属市州</td>
|
|
<td class="cell2">
|
|
<select class='aselect' name="companyidQ" setValue="<%=companyid%>" onChange="selectChange(1);">
|
|
<%=Para.getSj(getPara)%>
|
|
</select>
|
|
</td>
|
|
<td class="cell1">角色编码</td>
|
|
<td class="cell2">
|
|
<input type="text" name="jobcodeQ" value="<%=jobcode%>" maxlength="8" >
|
|
</td>
|
|
<td class="cell1">角色名称</td>
|
|
<td class="cell2">
|
|
<input type="text" name="jobnameQ" value="<%=jobname%>">
|
|
</td>
|
|
<td class="cell1">
|
|
<input type="image" name="button1" alt=" 查询 " onclick="check('query');" src="../../images1/cx.png"/>
|
|
</td>
|
|
<td class="cell2">
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table width="99%" align="center">
|
|
<tr align="left">
|
|
<td>
|
|
<input type="image" name="button2" alt="添加 " onclick="check('add');" src="../../images1/tj.png"/>
|
|
<!--<input name="button2" onclick="check('deleteCheck');" type="image" alt="删除" src="../../images1/cc.png"/>
|
|
--></td>
|
|
</tr>
|
|
</table>
|
|
<%
|
|
HashFmlBuf buf = (HashFmlBuf) request.getAttribute("job_buf");
|
|
if (buf != null) {
|
|
int rowcount = buf.getRowCount();
|
|
%>
|
|
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="1" class="box">
|
|
<tr>
|
|
<td>
|
|
<div style="width:100%; height:385px;overflow: auto;">
|
|
<div id="myGrid" class="2k3Grid" borderWidth="0" contextMenu="mnuGridContextMenu" altRowColor="oldLace">
|
|
<div class="gridHead">
|
|
<!--div align="left"><span width="5%">共检索到<%=rowcount%>条记录</span></div-->
|
|
<div class="gridRow">
|
|
<span width="5px" style="text-align: center;">序号</span>
|
|
<span width="25px">角色编码</span>
|
|
<span width="27px">角色名称</span>
|
|
<span width="15px">管理</span>
|
|
</div>
|
|
</div>
|
|
<div class="gridBody">
|
|
<%
|
|
for (int i=0; i<rowcount; i++) {
|
|
String tempJobcode = buf.fget("jobcode",i);
|
|
String tempCompanyid = buf.fget("frameworkid",i) ;
|
|
%>
|
|
<div class="gridRow">
|
|
<span width="5px" style="text-align: center;"><%=i+1%></span>
|
|
<span><%=tempJobcode%></span>
|
|
<span><%=buf.fget("jobname",i)%></span>
|
|
<span><a href="javascript:check('delete','<%=buf.fget("frameworkid",i)%>','<%=tempJobcode%>');"><img src="/images1/delete.gif" border="0" alt="删除"/></a></span>
|
|
</div>
|
|
<%
|
|
}
|
|
%>
|
|
</div>
|
|
<!-- gridBody end -->
|
|
</div>
|
|
<!-- myGrid end -->
|
|
</div>
|
|
<tag:PageLinkTag operate="query" scope="request" width="99%" align="center"/>
|
|
<%
|
|
}
|
|
%>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
<%@include file="/foot.jsp"%>
|
|
</body>
|
|
</html> |