<%@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; } #myGrid .gridHead{ height: 50px; line-height: 50px; background-color: #cce7f5; color: #000; font-size: 16px; font-weight: bold; box-sizing: border-box; } #myGrid .gridHead .gridRow{ display: flex; justify-content: start; } #myGrid .gridHead span{ text-align: center; display: inline-block; border-right: 1px solid #000000; box-sizing: border-box; } #myGrid .gridHead span:nth-child(1){ width: 150px; } #myGrid .gridHead span:nth-child(2){ width: 455px; } #myGrid .gridHead span:nth-child(3){ width: 455px; } #myGrid .gridHead span:nth-child(4){ width: 400px; border-right: none } #myGrid .gridBody .gridRow{ height: 30px; /*margin-top: 5px;*/ display: flex; justify-content: start; align-items: center; border-bottom: 1px solid #000; color: #000; } #myGrid .gridBody .gridRow span{ width: 148px; display: inline-block; border-right: 1px solid; text-align: center; height: 30px; line-height: 30px; box-sizing: border-box; } #myGrid .gridBody .gridRow span:nth-child(1){ width: 150px; } #myGrid .gridBody .gridRow span:nth-child(2){ width: 455px; } #myGrid .gridBody .gridRow span:nth-child(3){ width: 455px; } #myGrid .gridBody .gridRow span:nth-child(4){ width: 400px; border-right: none; } #myGrid .gridBody .gridRow span a,#myGrid .gridBody .gridRow span img,#myGrid .gridBody .gridRow span input { margin-right: 6px; margin-top: 6px; } form{ height: 96%; } html { overflow-x:hidden; overflow-y:hidden; } </style> <script> function check(operate,companyid,jobcode) { debugger; 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.button2.disabled=true; // form1.button3.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" height="60px"> <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" style=" height: 86%" cellpadding="0" cellspacing="1" class="box"> <tr> <td> <div style="width:100%; height:96%;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 name="button2" href="javascript:check('modify','<%=buf.fget("frameworkid",i)%>','<%=tempJobcode%>');"><img src="/images1/edit.gif" border="0" alt="修改"/></a> <a name="button3" 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>