📄 resume_serv.jsp
字号:
<%@ page contentType="text/html; charset=GB2312" %>
<%@ page import="foton.util.*" %>
<%@ page import="foton.resume.*" %>
<%@ page import="java.util.*" %>
<SCRIPT language=javascript>
var isSure=false;
function OpenWin(URL,winName,para)
{
window.open(URL,winName,para);
}
function toOpen(str1,str2)
{
if(str1==str2)
{
OpenWin('../job/job_insert.jsp','newWin','scrollbars=yes,width=800,height=600');
}
else
{
alert("密码不对!");
return false;
}
}
</SCRIPT>
<html> <body>
<%
String choice = request.getParameter("choice");
//String jobID="";
// String jobID = request.getParameter("jobID");
//String name = request.getParameter("name");
//String type = request.getParameter("type");
//String state = request.getParameter("state");
//String choice = request.getParameter("action");
String[] check = request.getParameterValues("check");
transCode trans = new transCode();
choice = trans.transCode(choice);
if(choice.equals("保存")) choice="STORE";
if(choice.equals("更新")) choice="UPDATE";
if(choice.equals("应聘")) choice="RESUME";
if(choice.equals("删除")) choice="DELETE";
if(choice.equals("删&除")) choice="DEL";
if(choice.equals("返回")) choice="RETURN";
if(choice.equals("转入人才库")) choice="TALENT";
resumeInfo info = new resumeInfo();
resumeDAO dao = new resumeDAO();
talentDAO tdao = new talentDAO();
//jobInfo info=dao.getJob(jobID);
//info.setID(ID);
//info.setName(name);
//info.setType(type);
//info.setState(state);
// String password1 = trans.retransCode(password);
if (choice.equals("DELETE")) {
if(check!=null) {
int num = check.length;
for (int i=0; i<=num-1; i++) {
System.out.println("check[i]="+check[i]);
dao.delResume(check[i]);
%>
<jsp:forward page="../resume/resume_query.jsp"/>
<%
}
System.out.println("Successful to del data from datbase!!!");
//prompt = "INSERT";
}
else {
%>
<script language="javascript">
window.top.location="../resume/resume_query.jsp";
alert('请选择要删除的条目!');
</script>
<%
}
}
if (choice.equals("DEL")) {
if(check!=null) {
int num = check.length;
for (int i=0; i<=num-1; i++) {
System.out.println("check[i]="+check[i]);
dao.delResume(check[i]);
%>
<script language="javascript">
alert('数据已删除!');
window.close();
</script>
<%
}
System.out.println("Successful to del data from datbase!!!");
//prompt = "INSERT";
}
else {
%>
<script language="javascript">
alert('请选择要删除的条目!');
window.close();
</script>
<%
}
}
if (choice.equals("RESUME")) {
%>
<jsp:forward page="../resume/resume_insert.jsp"/>
<%
}
if (choice.equals("TALENT")) {
if(check!=null) {
int numb = check.length;
for (int i=0; i<=numb-1; i++) {
//System.out.println("check[i]="+check[i]);
info = dao.getResume(check[i]);
//String resumeID = "2222"+check[i];
//info.setRID(resumeID);
tdao.insertResume(info);
if(!(info.getWorkTime11()).equals("")&&!(info.getWorkTime11()).equals(" "))
tdao.insertWorkExpr(info);
if(!(info.getStudyTime11()).equals("")&&!(info.getStudyTime11()).equals(" "))
tdao.insertStudyExpr(info);
//dao.delResume(check[i]);
}
System.out.println("Successful to del data from datbase!!!");
//prompt = "INSERT";
%>
<jsp:forward page="resume_query.jsp"/>
<%
}
else {
%>
<script language="javascript">
window.top.location="../resume/resume_query.jsp";
alert('请选择要转入人才库的条目!');
</script>
<%
}
}
%>
</body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -