|
|
|
|
<%@ page language="java" contentType="text/html; charset=GBK" pageEncoding="GBK"%>
|
|
|
|
|
<%@page import="com.zky.manager.Login"%>
|
|
|
|
|
<%@page import="com.zky.zhyw.smsj.WorkDB" %>
|
|
|
|
|
<%@page import="java.sql.*" %>
|
|
|
|
|
<%@page import="com.zky.zhyw.smsj.WorkDB" %>
|
|
|
|
|
<jsp:useBean id="getPara" scope="application" class="com.zky.para.SyncPara"/>
|
|
|
|
|
<%
|
|
|
|
|
Login login_obj;
|
|
|
|
|
login_obj = (Login)session.getAttribute("login");
|
|
|
|
|
String optrid = login_obj.optrid;
|
|
|
|
|
String username = getPara.getDesc("TAB_EMPLOYEE","empId","EMPNAME",optrid);
|
|
|
|
|
%>
|
|
|
|
|
<html>
|
|
|
|
|
<head>
|
|
|
|
|
<title><3E><><EFBFBD><EFBFBD><EFBFBD>Ծ<EFBFBD></title>
|
|
|
|
|
</head>
|
|
|
|
|
<body><3E>û<EFBFBD>:
|
|
|
|
|
<%=username %><3E><>id=<%=optrid %><3E><><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1><EFBFBD><EFBFBD><EFBFBD>ɼ<EFBFBD><C9BC>Ѿ<EFBFBD><D1BE><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݿ<EFBFBD>.
|
|
|
|
|
<jsp:useBean id="q" scope="session" class="com.zky.zhyw.smsj.Question"/>
|
|
|
|
|
<%
|
|
|
|
|
int sum=0;
|
|
|
|
|
String userName=String.valueOf(session.getAttribute(username));
|
|
|
|
|
String id=String.valueOf(session.getAttribute(optrid));
|
|
|
|
|
String [] s=new String[100];
|
|
|
|
|
for(int t=0;t<=50;t++){
|
|
|
|
|
int t1=t+1;
|
|
|
|
|
String m=String.valueOf(t1);
|
|
|
|
|
s[t]=request.getParameter(m);
|
|
|
|
|
}
|
|
|
|
|
try{
|
|
|
|
|
WorkDB w=new WorkDB();
|
|
|
|
|
w.setConnection();
|
|
|
|
|
w.setSql("select * from td_question order by id ");
|
|
|
|
|
ResultSet rs=w.getResult();
|
|
|
|
|
int i=-1;
|
|
|
|
|
String [] a=new String [100];
|
|
|
|
|
while(rs.next()){
|
|
|
|
|
i++;
|
|
|
|
|
String d="";
|
|
|
|
|
d=rs.getString("note");
|
|
|
|
|
a[i]=d;
|
|
|
|
|
}
|
|
|
|
|
for(int u=0;u<=50;u++){
|
|
|
|
|
if(a[u].equals(s[u]))
|
|
|
|
|
sum+=2;
|
|
|
|
|
}
|
|
|
|
|
out.print("<22>ܷ<EFBFBD>Ϊ"+sum);
|
|
|
|
|
String sum2=String.valueOf(sum);
|
|
|
|
|
String [] b={sum2,optrid };
|
|
|
|
|
w.setCan(b);
|
|
|
|
|
out.print("<22><><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1><EFBFBD><EFBFBD><EFBFBD>÷<EFBFBD>Ϊ:");
|
|
|
|
|
out.print(sum2);
|
|
|
|
|
w.setSql("update tab_employee set radioResult=? where empid=? ");
|
|
|
|
|
out.print("id="+optrid);
|
|
|
|
|
w.insertRecord();
|
|
|
|
|
}catch(Exception e){}
|
|
|
|
|
%>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|