108 lines
3.1 KiB
Plaintext
108 lines
3.1 KiB
Plaintext
<html><head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
|
|
<title>扫描操作选择</title>
|
|
<link rel="stylesheet" type="text/css" href="css/sm.css">
|
|
</head>
|
|
<body bgcolor="#EEEEEE">
|
|
<div align="center">
|
|
<%@ page contentType="text/html; charset=GBK" %>
|
|
<%@ page import="com.zcsoft.dbvisit.DB"%>
|
|
<%@ page import="com.wxzd.wms.sys.data.ModuleConstant"%>
|
|
<%@ page import="com.zcsoft.purview.data.Purview"%>
|
|
<%@ page import="com.zcsoft.purview.data.UserInfoData"%>
|
|
<%@ page import="com.wxzd.wms.util.ServerUtil"%>
|
|
<%@ page import="java.util.*"%>
|
|
<jsp:useBean id="userInfo" scope="session" class="com.zcsoft.purview.data.UserInfoData" />
|
|
<jsp:useBean id="db1" scope="application" class="com.zcsoft.dbvisit.DB" />
|
|
<%
|
|
String errorInfo = null;
|
|
if (userInfo.getYhm() == null)
|
|
{
|
|
response.sendRedirect("sm.jsp");
|
|
return;
|
|
}
|
|
//连接链表
|
|
List links;
|
|
links = new LinkedList();
|
|
try
|
|
{
|
|
//检查模块权限,出入库单据的模块权限必须具有‘审核’权限
|
|
//盘点单据具有使用‘扫描’权限(=512)
|
|
//库存查询要有‘查询’权限(=16)
|
|
Purview p;
|
|
String mkbm;
|
|
p = userInfo.getUserPurview(mkbm = ModuleConstant.入库作业管理);
|
|
if (p != null && (p.getQx() & (1)) != 0)
|
|
{
|
|
links.add("合格品入库作业");
|
|
links.add("rk");
|
|
links.add("待验品入库作业");
|
|
links.add("dyp");
|
|
links.add("带通知号入库作业");
|
|
links.add("tzh");
|
|
}
|
|
/*p = userInfo.getUserPurview(mkbm = ModuleConstant.出库作业管理);
|
|
if (p != null && (p.getQx() & (1)) != 0)
|
|
{
|
|
links.add("零货出库作业");
|
|
links.add("ck");
|
|
}*/
|
|
/*p = userInfo.getUserPurview(mkbm = ModuleConstant.当前库存);
|
|
if (p != null && (p.getQx() & (1)) != 0)
|
|
{
|
|
links.add("库存查询");
|
|
links.add("kc");
|
|
}*/
|
|
/*p = userInfo.getUserPurview(mkbm = ModuleConstant.仓库盘点);
|
|
if (p != null && (p.getQx() & (128)) != 0)
|
|
{
|
|
links.add("盘点作业");
|
|
links.add("pd");
|
|
}*/
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
errorInfo = e.getMessage();
|
|
}
|
|
|
|
if (errorInfo != null)
|
|
{
|
|
out.write("<div class=errorMsg>");
|
|
out.write(errorInfo);
|
|
out.write("</div>");
|
|
|
|
}
|
|
else if (links.size() == 0)
|
|
{
|
|
out.write("<table border=0><tr><td class=errorMsg>");
|
|
out.write("权限不足。请给登录用户赋予适当权限。");
|
|
out.write("<tr><td>对于出入库作业,需要有【安排库位】权限;");
|
|
out.write("<tr><td>对于库存查询,需要有【使用】权限;") ;
|
|
out.write("<tr><td>对于转库作业,需要有【修改】权限;");
|
|
out.write("<tr><td>对于盘点作业,有【出库】权限;");
|
|
out.write("<tr><td><br>");
|
|
out.write("请<a href='javascript:history.back(1);'>返回</a>登录界面或按<a href='javascript:document.location.reload();'>刷新</a>重试");
|
|
out.println("</table>");
|
|
}
|
|
else
|
|
{
|
|
out.println("<table border=1><tr><td colspan=2 class=title>");
|
|
out.write("请点击进入待操作的模块");
|
|
out.println("<tr valign=top><td><ul class=ck>");
|
|
Iterator linksIter = links.iterator();
|
|
Object czsm, czdm;
|
|
while (linksIter.hasNext())
|
|
{
|
|
czsm = linksIter.next();
|
|
czdm = linksIter.next();
|
|
out.write("<li><a href=\"" + czdm + ".jsp");
|
|
out.write("\">");
|
|
out.write(czsm.toString());
|
|
out.println("</a>");
|
|
}
|
|
out.println("</ul></td><tr></table>");
|
|
}
|
|
%>
|
|
</div>
|
|
</body>
|
|
</html> |