master
20918 1 year ago
parent 58ad298999
commit e11f2495ce

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

@ -1,29 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>日期选择器</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.css">
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script>
</head>
<body>
<input type="text" id="trainingEndDate" readonly>
</body>
<script>
$(function() {
$("#trainingEndDate").datepicker({
dateFormat: "yy-mm-dd",
minDate: 0,
maxDate: '+1Y',
changeMonth: true,
numberOfMonths: 1,
onSelect: function(dateText) {
$(this).change();
}
});
});
</script>
</html>

@ -104,8 +104,8 @@ StudentPullulate p=new StudentPullulate();
conn.commit();
Operate oper=new Operate();
oper.operatesmwjxjLog(request);
queryFileProvide(request, response);
request.getRequestDispatcher("/zhyw/smwj/wjff/fileProvideManage.jsp").forward(request, response);
queryFileProvideADD(request, response);
//request.getRequestDispatcher("/zhyw/smwj/wjff/fileProvideManage.jsp").forward(request, response);
} catch (Exception e) {
String errorinfo="";
if (e.getMessage().startsWith("ORA-00001")) {
@ -128,6 +128,40 @@ StudentPullulate p=new StudentPullulate();
}
}
}
/**
*
* @param request
* @param response
* @throws SQLException
*/
public void queryFileProvideADD(HttpServletRequest request,HttpServletResponse response) throws SQLException
{
StringBuffer sql=new StringBuffer("select p.provide_departid," +
"p.provide_staffid,p.areaid,p.frameworkid, date_format(p.provide_date,'%Y-%m-%d') as provide_date,p.file_id,p.target_departid,p.file_name,p.file_num," +
"d.departname,e.empname from tm_dtl_file_provide p " +
"left join tab_department d on p.provide_departid=d.departid left join tab_employee e on p.provide_staffid=e.empname where 1=1");
try {
conn=DbConn.getConn();
PageQuery pageQuery = new PageQuery(conn,sql.toString(),new HashFmlBufResultSetHandler(),request);
HashFmlBuf provideBuf=(HashFmlBuf)pageQuery.query(20);
request.setAttribute("provideBuf",provideBuf);
Operate oper=new Operate();
oper.operatesmwjcxLog(request);
request.getRequestDispatcher("/zhyw/smwj/wjff/fileProvideManage.jsp").forward(request, response);
} catch (Exception e) {
e.printStackTrace();
}
finally
{
if(conn!=null)
{
conn.close();
}
}
}
/**
*
* @param request
@ -161,8 +195,8 @@ StudentPullulate p=new StudentPullulate();
PageQuery pageQuery = new PageQuery(conn,sql.toString(),new HashFmlBufResultSetHandler(),request);
HashFmlBuf provideBuf=(HashFmlBuf)pageQuery.query(20);
request.setAttribute("provideBuf",provideBuf);
// Operate oper=new Operate();
// oper.operatesmwjcxLog(request);
Operate oper=new Operate();
oper.operatesmwjcxLog(request);
request.getRequestDispatcher("/zhyw/smwj/wjff/fileProvideManage.jsp").forward(request, response);
} catch (Exception e) {
e.printStackTrace();

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save