217 lines
7.7 KiB
Plaintext
217 lines
7.7 KiB
Plaintext
|
|
<%@ page contentType="text/html; charset=GBK" %>
|
|||
|
|
<%@ page import="java.util.*"%>
|
|||
|
|
<%@ page import="com.wxzd.wms.util.ServerUtil"%>
|
|||
|
|
<html><head>
|
|||
|
|
<title><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɨ<EFBFBD><C9A8>ȷ<EFBFBD><C8B7></title>
|
|||
|
|
<link rel="stylesheet" type="text/css" href="css/sm.css">
|
|||
|
|
<script type="text/javascript" src="script/ajax.js"></script>
|
|||
|
|
<script type="text/javascript" src="script/ck.js"></script>
|
|||
|
|
<script type="text/javascript" src="script/logic.js"></script>
|
|||
|
|
</head>
|
|||
|
|
<jsp:useBean id="db1" scope="application" class="com.zcsoft.dbvisit.DB" />
|
|||
|
|
<%
|
|||
|
|
String errorInfo = null, ckdh = null, zlbh = null;
|
|||
|
|
session = request.getSession(false);
|
|||
|
|
if (session != null && session.getAttribute("userInfo") != null)
|
|||
|
|
{
|
|||
|
|
ckdh = request.getParameter("ckdh");
|
|||
|
|
zlbh = request.getParameter("zlbh");
|
|||
|
|
//<2F><><EFBFBD>ⵥ<EFBFBD>š<EFBFBD><C5A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>û<EFBFBD>У<EFBFBD><D0A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>û<EFBFBD>ѡ<EFBFBD><D1A1><EFBFBD><EFBFBD><EFBFBD>ⵥ<EFBFBD><E2B5A5>
|
|||
|
|
if (ckdh != null && ckdh.length() > 0
|
|||
|
|
&& zlbh != null && zlbh.length() > 1)
|
|||
|
|
{
|
|||
|
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ⵥ<EFBFBD><E2B5A5><EFBFBD>Ƿ<EFBFBD><C7B7><EFBFBD>Ч<EFBFBD><D0A7>PEDING <20><>Ϊ<EFBFBD><CEAA>ѡ<EFBFBD><D1A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ģ<EFBFBD><C4A3><EFBFBD><EFBFBD>Լ<EFBFBD><D4BC>鲻<EFBFBD><E9B2BB>Ҫ
|
|||
|
|
//db1.getSingleField("SELECT )
|
|||
|
|
}
|
|||
|
|
else
|
|||
|
|
{//<2F><><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1><EFBFBD><EFBFBD><EFBFBD>ⵥ<EFBFBD>ŵĽ<C5B5><C4BD><EFBFBD>
|
|||
|
|
if (ckdh != null && ckdh.length() == 0) ckdh = null;
|
|||
|
|
if (zlbh != null && zlbh.length() == 0) zlbh = null;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
else
|
|||
|
|
{
|
|||
|
|
response.sendRedirect("sm.jsp");
|
|||
|
|
return;
|
|||
|
|
}
|
|||
|
|
%>
|
|||
|
|
<body onload="check(true);">
|
|||
|
|
<form name=ckbjxx onsubmit="return check(false);">
|
|||
|
|
<table align="center">
|
|||
|
|
<%
|
|||
|
|
if (errorInfo != null)
|
|||
|
|
{
|
|||
|
|
out.println("<tr><td colspan=2><font color=red>" + errorInfo + "</font>");
|
|||
|
|
}
|
|||
|
|
if (ckdh == null)
|
|||
|
|
{//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ⵥѡ<E2B5A5><D1A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
out.println("<tr><td colspan=2 class=title><3E><>ѡ<EFBFBD><D1A1><EFBFBD><EFBFBD><EFBFBD>ⵥ");
|
|||
|
|
List cks = db1.getVDataWithException("SELECT ckdh,sqbh,cksl,zcfl,model,volt,curr,current_ratio,acuuracy,meter_close_mode FROM ckd_sm_v WHERE zt IN(0,1) ORDER BY 2,1");
|
|||
|
|
out.println("<tr><td colspan=2><table border=1>");
|
|||
|
|
out.println("<tr bgcolor=gray><th><3E><><EFBFBD>ⵥ<EFBFBD><E2B5A5><th><3E><><EFBFBD>뵥<EFBFBD><EBB5A5><th><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><th><3E>豸<EFBFBD><E8B1B8><EFBFBD><EFBFBD><th><3E>ͺ<EFBFBD><th><3E><>ѹ<th><3E><><EFBFBD><EFBFBD><th><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><th><3E>ȼ<EFBFBD><th><3E><>բ<EFBFBD><D5A2>ʽ");
|
|||
|
|
for (int i = 0; i < cks.size(); i++)
|
|||
|
|
{
|
|||
|
|
List row = (List)cks.get(i);
|
|||
|
|
int j = 0;
|
|||
|
|
String dh = (String)row.get(j++);
|
|||
|
|
String sqbh = (String)row.get(j++);
|
|||
|
|
out.write("<tr><td><input name=ckdh type=radio value=\"");
|
|||
|
|
out.write(dh);out.write("\"");
|
|||
|
|
if (i == 0 && cks.size() == 1)
|
|||
|
|
{
|
|||
|
|
out.write(" checked");//<2F><>һ<EFBFBD>ŵ<EFBFBD><C5B5><EFBFBD>ʱ<EFBFBD><CAB1>Ĭ<EFBFBD><C4AC>ѡ<EFBFBD><D1A1>
|
|||
|
|
}
|
|||
|
|
out.write(">");out.write(dh);
|
|||
|
|
out.write("<td>");out.write(sqbh);
|
|||
|
|
out.write("<td class=numeric>");out.write((String)row.get(j++));//cksl
|
|||
|
|
out.write("<td>");out.write((String)row.get(j++));//zcfl
|
|||
|
|
out.write("<td>");out.write((String)row.get(j++));//model
|
|||
|
|
out.write("<td>");out.write((String)row.get(j++));
|
|||
|
|
out.write("<td>");out.write((String)row.get(j++));
|
|||
|
|
out.write("<td>");out.write((String)row.get(j++));
|
|||
|
|
out.write("<td>");out.write((String)row.get(j++));
|
|||
|
|
out.write("<td>");out.write((String)row.get(j++));
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
out.println("</table>");
|
|||
|
|
out.println("<tr><td colspan=2><input name=submit type=submit value=\"<22><> <20><>\">");
|
|||
|
|
}
|
|||
|
|
else if (zlbh == null)
|
|||
|
|
{
|
|||
|
|
out.write("<input type=hidden name=ckdh value=\"" + ckdh + "\">");
|
|||
|
|
List ckds = db1.getVDataWithPrepareStatement("SELECT zlbh,kwbh,cksl,tpbh,kcsl,qczt FROM ckzl"
|
|||
|
|
+ " WHERE pzbh=? AND qczt<2 AND smqrs<cksl ORDER BY qczt,zlbh"
|
|||
|
|
, ckdh);
|
|||
|
|
if (ckds.size() == 0)//ȫ<><C8AB>ȡ<EFBFBD><C8A1><EFBFBD><EFBFBD><EFBFBD>ˣ<EFBFBD><CBA3>Ͷ<EFBFBD><CDB6><EFBFBD><EFBFBD><EFBFBD>ɨ<EFBFBD><C9A8>
|
|||
|
|
{
|
|||
|
|
response.sendRedirect("ck.jsp?ckdh=" + ckdh + "&zlbh=0");
|
|||
|
|
return;
|
|||
|
|
}
|
|||
|
|
out.println("<tr><td colspan=2 class=title><3E><>ѡ<EFBFBD><D1A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>λ");
|
|||
|
|
out.println("<tr><td colspan=2><table border=1>");
|
|||
|
|
out.println("<tr bgcolor=gray><th>ָ<><D6B8><EFBFBD><EFBFBD><th><3E><>λ<EFBFBD><CEBB><th><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><th><3E><><EFBFBD>̺<EFBFBD><th><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><th>ȡ<><C8A1>״̬");
|
|||
|
|
for (int i = 0; i < ckds.size(); i++)
|
|||
|
|
{
|
|||
|
|
List row = (List)ckds.get(i);
|
|||
|
|
int j = 0;
|
|||
|
|
String zlh = (String)row.get(j++);
|
|||
|
|
String kwbh = (String)row.get(j++);
|
|||
|
|
String cks = (String)row.get(j++);
|
|||
|
|
String tpbh = (String)row.get(j++);
|
|||
|
|
|
|||
|
|
out.write("<tr><td>");
|
|||
|
|
out.write("<input name=zlbh type=radio value=\"");
|
|||
|
|
out.write(zlh + "|" + kwbh + "|" + cks + "|" + tpbh);out.write("\"");
|
|||
|
|
if (i == 0) out.write(" checked");
|
|||
|
|
out.write(">");
|
|||
|
|
out.write(zlh);
|
|||
|
|
out.write("<td>");out.write(kwbh);
|
|||
|
|
out.write("<td class=numeric>");out.write(cks);
|
|||
|
|
out.write("<td>");out.write(tpbh);
|
|||
|
|
out.write("<td>");out.write((String)row.get(j++));
|
|||
|
|
int qczt = ServerUtil.getInt((String)row.get(j++));
|
|||
|
|
String qcztms;
|
|||
|
|
switch (qczt)
|
|||
|
|
{
|
|||
|
|
case 0:
|
|||
|
|
qcztms = "<22><><EFBFBD><EFBFBD>";
|
|||
|
|
break;
|
|||
|
|
case 1:
|
|||
|
|
qcztms = "ִ<><D6B4><EFBFBD><EFBFBD>";
|
|||
|
|
break;
|
|||
|
|
default:
|
|||
|
|
qcztms = Integer.toString(qczt);
|
|||
|
|
break;
|
|||
|
|
}
|
|||
|
|
out.write("<td>");out.write(qcztms);
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
out.println("</table>");
|
|||
|
|
out.println("<tr><td colspan=2><input name=submit type=submit value=\"<22><> <20><>\">");
|
|||
|
|
}
|
|||
|
|
else
|
|||
|
|
{
|
|||
|
|
Map ckdxx;
|
|||
|
|
String zlh = null, ckkw = null, cks = null, tpbh = null;
|
|||
|
|
if (zlbh.indexOf('|') > 0)
|
|||
|
|
{
|
|||
|
|
int indexSeparator = zlbh.indexOf('|');
|
|||
|
|
int indexSeparator2 = zlbh.indexOf('|', indexSeparator + 1);
|
|||
|
|
int indexSeparator3 = zlbh.indexOf('|', indexSeparator2 + 1);
|
|||
|
|
zlh = zlbh.substring(0, indexSeparator);
|
|||
|
|
ckkw = zlbh.substring(indexSeparator + 1, indexSeparator2);
|
|||
|
|
cks = zlbh.substring(indexSeparator2 + 1, indexSeparator3);
|
|||
|
|
tpbh = zlbh.substring(1 + indexSeparator3);
|
|||
|
|
}
|
|||
|
|
//<2F><>ʾ<EFBFBD><CABE><EFBFBD>ⵥ<EFBFBD>ź<EFBFBD>ָ<EFBFBD><D6B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
out.write("<input type=hidden name=ckdh value=\"" + ckdh + "\">");
|
|||
|
|
out.write("<input type=hidden name=zlbhAndTpbh value=\"" + (zlh != null?zlh + "|" + tpbh:"") + "\">");
|
|||
|
|
out.write("<tr><td><3E><><EFBFBD>ⵥ<EFBFBD>ţ<EFBFBD></td><td>" + ckdh);
|
|||
|
|
ckdxx = db1.getSingleRow("SELECT yapsl-smsl wssl,yapsl,cksl,smsl,sqbh FROM ckd WHERE ckdh=? AND zt<=2", ckdh);
|
|||
|
|
if (ckdxx == null)
|
|||
|
|
{
|
|||
|
|
out.println("<tr><td colspan=2><font color=red><3E><><EFBFBD>ⵥ " + ckdh + " <20><><EFBFBD><EFBFBD><EFBFBD>ڣ<EFBFBD><DAA3><EFBFBD><EFBFBD>ѱ<EFBFBD><D1B1><EFBFBD><EFBFBD><EFBFBD></font>");
|
|||
|
|
return;
|
|||
|
|
}
|
|||
|
|
out.write("<tr><td><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ţ<EFBFBD></td><td>" + ckdxx.get("sqbh"));
|
|||
|
|
if (zlh != null)
|
|||
|
|
{
|
|||
|
|
ckdxx = db1.getSingleRow("SELECT cksl-smqrs wssl,cksl,kcsl,smqrs smsl FROM ckzl WHERE zlbh=? AND hkzt<=2", zlh);
|
|||
|
|
if (ckdxx == null)
|
|||
|
|
{
|
|||
|
|
out.println("<tr><td colspan=2><font color=red><3E><><EFBFBD><EFBFBD>ָ<EFBFBD><D6B8> " + zlh + " <20><><EFBFBD><EFBFBD><EFBFBD>ڣ<EFBFBD><DAA3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɻؿ<C9BB></font>");
|
|||
|
|
return;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
String cnt = (String)ckdxx.get("smsl");//ɨ<><C9A8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ĸ<EFBFBD><C4B8><EFBFBD>
|
|||
|
|
out.write("<tr bgcolor=yellow><td colspan=2>");
|
|||
|
|
out.write("<22><>ɨ<EFBFBD><C9A8>ʵ<EFBFBD><CAB5><EFBFBD><EFBFBD><EFBFBD>Ƶ<EFBFBD><C6B5><EFBFBD><EFBFBD><EFBFBD>(Ҳ<><D2B2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)<29><><br><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̳<EFBFBD><CCB3><EFBFBD>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
|
|||
|
|
out.write("<tr><td colspan=2 id=count total=" + cnt + "><3E><>ɨ<EFBFBD><C9A8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
|
|||
|
|
out.write(cnt);
|
|||
|
|
|
|||
|
|
out.write("<tr><td><3E><><EFBFBD><EFBFBD>ɨ<EFBFBD><C9A8><br> <3B><> <3B>룺</td>");
|
|||
|
|
out.write("<td><input id=\"jh\" class=label type=text name=jh size=27 disabled=true></td></tr>");
|
|||
|
|
|
|||
|
|
out.println("<tr><td width=60><3E><> <3B>룺<td><input name=barcode class=barcode size=27 maxlength=40>");
|
|||
|
|
out.write("<input id=\"jhs\" type=hidden name=jhs value=\"");
|
|||
|
|
out.write("\">");
|
|||
|
|
|
|||
|
|
//<2F><>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>λ<EFBFBD><CEBB><EFBFBD><EFBFBD><EFBFBD>̱<EFBFBD><CCB1><EFBFBD>
|
|||
|
|
if (zlh != null)
|
|||
|
|
{
|
|||
|
|
String wssl = (String)ckdxx.get("wssl");
|
|||
|
|
out.write("<tr><td>δɨ<CEB4><C9A8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><td><label id=wssl>");
|
|||
|
|
out.write(wssl);
|
|||
|
|
out.write("</label> <input type=checkbox name=qxsm>ȡ<><C8A1>ɨ<EFBFBD><C9A8></td>");
|
|||
|
|
out.write("<tr><td><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>λ<EFBFBD><CEBB><td id=ckkw>");
|
|||
|
|
out.write(ckkw);
|
|||
|
|
out.println("<tr><td><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̣<EFBFBD><td id=tpbh>");
|
|||
|
|
out.write(tpbh);
|
|||
|
|
// Ӧ<>ò<EFBFBD>ѯ<EFBFBD><D1AF><EFBFBD>ݿ⣬<DDBF>ٴβ鿴<CEB2>Ƿ<EFBFBD><C7B7>Ѿ<EFBFBD>ȡ<EFBFBD><C8A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϊ<EFBFBD><CEAA><EFBFBD>ǵ<EFBFBD><C7B5>û<EFBFBD>ʹ<EFBFBD><CAB9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ˢ<EFBFBD>¹<EFBFBD><C2B9><EFBFBD>
|
|||
|
|
if (db1.hasAnyData("SELECT 2 FROM ckzl A JOIN kwxx B ON A.ckdm=B.ckdm AND A.kwbh=B.kwbh"
|
|||
|
|
+ " WHERE A.zlbh=? AND A.qczt<2 AND B.xnkw=0",
|
|||
|
|
zlh))
|
|||
|
|
{
|
|||
|
|
out.write("<input name=cmdQctp type=button value=ȡ<><C8A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD> onclick=\"qctp('" + zlh + "','" + ckkw + "','" + tpbh + "');\">");
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
else
|
|||
|
|
{//<2F><>ʾ<EFBFBD><CABE><EFBFBD>ų<EFBFBD><C5B3>ⵥɨ<E2B5A5><C9A8><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͬ<EFBFBD>Ѱ<EFBFBD><D1B0>ų<EFBFBD><C5B3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
String wssl = (String)ckdxx.get("wssl");
|
|||
|
|
out.write("<tr><td>δɨ<CEB4><C9A8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><td><label id=wssl>");
|
|||
|
|
out.write(wssl);
|
|||
|
|
//out.println("<tr><td><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><td>");
|
|||
|
|
//out.write((String)ckdxx.get("yapsl"));
|
|||
|
|
out.println("<tr><td><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><td>");
|
|||
|
|
out.write((String)ckdxx.get("cksl"));
|
|||
|
|
}
|
|||
|
|
out.println("<tr><td/><td><input name=submit type=submit value=\"<22><> <20><>\">");
|
|||
|
|
//out.write("<td><input name=cmdSave type=button value=<3D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> onclick=\"save();\">");
|
|||
|
|
}
|
|||
|
|
%>
|
|||
|
|
</table>
|
|||
|
|
</form>
|
|||
|
|
</body>
|
|||
|
|
</html>
|