📄 registjf_jsp.java~7~
字号:
package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import pxzx.sql.*;
import java.sql.*;
import java.lang.*;
import java.util.*;
import java.io.*;
public final class RegistJF_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static java.util.Vector _jspx_dependants;
public java.util.List getDependants() {
return _jspx_dependants;
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
JspFactory _jspxFactory = null;
PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
JspWriter _jspx_out = null;
PageContext _jspx_page_context = null;
try {
_jspxFactory = JspFactory.getDefaultFactory();
response.setContentType("text/html; charset=GBK");
pageContext = _jspxFactory.getPageContext(this, request, response,
null, true, 8192, true);
_jspx_page_context = pageContext;
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
pxzx.sql.xfjf xfjf = null;
synchronized (_jspx_page_context) {
xfjf = (pxzx.sql.xfjf) _jspx_page_context.getAttribute("xfjf", PageContext.PAGE_SCOPE);
if (xfjf == null){
xfjf = new pxzx.sql.xfjf();
_jspx_page_context.setAttribute("xfjf", xfjf, PageContext.PAGE_SCOPE);
}
}
out.write('\r');
out.write('\n');
pxzx.sql.xfbzpz xfbzpz = null;
synchronized (_jspx_page_context) {
xfbzpz = (pxzx.sql.xfbzpz) _jspx_page_context.getAttribute("xfbzpz", PageContext.PAGE_SCOPE);
if (xfbzpz == null){
xfbzpz = new pxzx.sql.xfbzpz();
_jspx_page_context.setAttribute("xfbzpz", xfbzpz, PageContext.PAGE_SCOPE);
}
}
out.write('\r');
out.write('\n');
pxzx.sql.xfhzb xfhzb = null;
synchronized (_jspx_page_context) {
xfhzb = (pxzx.sql.xfhzb) _jspx_page_context.getAttribute("xfhzb", PageContext.PAGE_SCOPE);
if (xfhzb == null){
xfhzb = new pxzx.sql.xfhzb();
_jspx_page_context.setAttribute("xfhzb", xfhzb, PageContext.PAGE_SCOPE);
}
}
out.write("\r\n");
out.write("<html>\r\n");
out.write("<head>\r\n");
out.write("<title>学费缴费</title>\r\n");
out.write("</head>\r\n");
out.write("<body bgcolor=\"#ffffff\">\r\n");
int newC_id = 0;
/*获取系统日期*/
String date = request.getParameter("d_s");
java.sql.Date T_date = java.sql.Date.valueOf(date);
/*获取学号*/
Object OSt_id=session.getAttribute("St_id");
String St_id=String.valueOf(OSt_id);
out.print(St_id);
/*获取姓名*/
Object OSt_name=session.getAttribute("St_name");
String St_name=String.valueOf(OSt_name);
St_name=new String(St_name.getBytes("ISO8859_1"), "gb2312");
out.print(St_name);
/*获取已缴学费金额*/
Object OTu_pay_mon=session.getAttribute("Tu_pay_mon");
String STu_pay_mon=String.valueOf(OTu_pay_mon);
float Tu_pay_mon=Float.parseFloat(STu_pay_mon);
/*if(OTu_pay_mon instanceof Float)
{
Float FTu_pay_mon=(Float)OTu_pay_mon;
Tu_pay_mon=FTu_pay_mon.floatValue();
}
else{
}*/
out.print(Tu_pay_mon);
/*获取初始学费金额*/
Object OTu_mon=session.getAttribute("Yu_mon");
float Tu_mon=Float.parseFloat(String.valueOf(OTu_mon));
/*if(OTu_mon instanceof Float)
{
Float FTu_mon = (Float) OTu_mon;
Tu_mon = FTu_mon.floatValue();
}
else{}*/
out.print(Tu_mon);
/*获取减免学费金额*/
Object OTu_re_mon=session.getAttribute("Tu_re_mon");
float Tu_re_mon=Float.parseFloat(String.valueOf(OTu_re_mon));
/*if(OTu_re_mon instanceof Float)
{
Float FTu_re_mon = (Float) OTu_re_mon;
Tu_re_mon = FTu_re_mon.floatValue();
}else{}*/
out.print(Tu_re_mon);
/*获取欠费金额*/
Object OTu_ny_mon=session.getAttribute("Tu_ny_mon");
float Tu_ny_mon=Float.parseFloat(String.valueOf(OTu_ny_mon));
/*if(OTu_ny_mon instanceof Float)
{
Float FTu_ny_mon = (Float) OTu_ny_mon;
Tu_ny_mon = FTu_ny_mon.floatValue();
}else{ }*/
out.print(Tu_ny_mon);
/*获取此次缴费金额*/
String STu_themon = request.getParameter("Tu_themon");
float Tu_themon = Float.parseFloat(STu_themon);
String select = request.getParameter("select");
select = new String(select.getBytes("ISO8859_1"), "gb2312");
/*获取缴费方式及支票号*/
String Tu_check = null;
String Tu_check_id = null;
if (select == "现金") {
Tu_check = "N";
Tu_check_id=null;
}
else {
Tu_check = "Y";
Tu_check_id = request.getParameter("Tu_check_id");
Tu_check_id = new String(Tu_check_id.getBytes("ISO8859_1"), "gb2312");
}
/*插入凭证库表的信息*/
xfbzpz pz = new xfbzpz();
pz.setC_date(T_date);
pz.setC_kind("收款");
pz.setC_abst("缴学费");
pz.setB_sub("现金");
pz.setB_mon(Tu_themon);
pz.setL_sub("其他应收款");
pz.setL_mon(Tu_themon);
pz.setC_Ma_name("路");
pz.setC_Au_name("万");
try {
PZInsert pzi = new PZInsert(pz);
}
catch (Exception e) {
e.printStackTrace();
}
String sql = "select max(C_id) as C_id from 凭证库表";
try {
Connection con = ConnectDB.connect();
Statement st = con.createStatement();
ResultSet rs = st.executeQuery(sql);
if (rs.next()) {
newC_id = rs.getInt("C_id");
}
else {
out.print("<p>无法生成凭证</p>");
}
con.close();
}
catch (Exception e) {
e.printStackTrace();
}
//System.out.println(newC_id);
/*插入学费收入表的信息*/
xfjf x = new xfjf();
x.setT_date(T_date);
x.setSt_id(St_id);
x.setSt_name(St_name);
x.setC_id(newC_id);
x.setTu_themon(Tu_themon);
x.setTu_check(Tu_check);
x.setTu_check_id(Tu_check_id);
try {
JiaoFei jiaofei = new JiaoFei(x);
}
catch (Exception e) {
e.printStackTrace();
}
/*更新学费汇总表的信息*/
/*String HZsql = "select * from 学费汇总表 where St_id= '"+St_id+"'";
try {
Connection con = ConnectDB.connect();
Statement st = con.createStatement();
ResultSet rs = st.executeQuery(HZsql);*/
Tu_ny_mon=Tu_ny_mon-Tu_themon;
Tu_pay_mon=Tu_pay_mon+Tu_themon;
xfhzb xf = new xfhzb();
xf.setSt_id(St_id);
xf.setSt_name(St_name);
xf.setTu_pay_mon(Tu_pay_mon);
xf.setTu_mon(Tu_mon);
xf.setTu_re_mon(Tu_re_mon);
xf.setTu_ny_mon(Tu_ny_mon);
XFHZUpdate xfUpdate=new XFHZUpdate(xf);
/*}catch(Exception e){out.print("数据库连接有问题,请与管理员联系!");}*/
out.write("\r\n");
out.write("<p align=\"center\" ><font color=\"#000000\" size=\"24\" ><strong>缴费成功!</strong></font></p>\r\n");
out.write("<p align=\"center\"><a href=\"ChaXun.jsp\"><font size=\"16\" >返回缴费主页</font></a></p>\r\n");
out.write("</body>\r\n");
out.write("</html>\r\n");
} catch (Throwable t) {
if (!(t instanceof SkipPageException)){
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
out.clearBuffer();
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
}
} finally {
if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -