📄 costenterdel.jsp
字号:
<%--
模块名称:费用管理
模块功能:费用登记删除
版 本:V1.0
著 作 人:蔡静
著作日期:2001-10-19
使用说明:
主要技术说明:
参考文献:法律事务设计书
修改历史:
= = = = = = = = = = = = = = = = = = = = = = = = = =
修改日期:
修 改 人:
修改理由:
修改出处:
= = = = = = = = = = = = = = = = = = = = = = = = = =
--%>
<%@ page contentType= "text/html; charset=gb2312" %>
<%@ page language="java" import="java.sql.*" %>
<%@ page import="system.*" %>
<jsp:useBean id="db" class="dbconnection.DbConnection" scope="page" />
<%
Security auth = new Security();
String employee_id = (String)session.getAttribute("employee_id");
if(employee_id == null || employee_id.equals(""))
{
response.sendRedirect(response.encodeRedirectURL("../Error/nonlogin.htm"));
}
String modelid = "Chg014";
int authflag = auth.popedom(employee_id, modelid);
if(authflag == 0 || authflag == 2 || authflag == -1)
{
%>
<jsp:forward page="../inc/noauth.jsp" >
</jsp:forward>
<%
}
%>
<html>
<head>
<title>客户删除</title>
</head>
<body>
<%
String sql;
String charge_ids = request.getParameter("charge_ids");
ExtendString es = new ExtendString();
String[] charge_id = new String[10];
charge_id = es.Split(",",charge_ids);
int num = 0;
for (int i=0; i<es.length; i++) {
sql = "delete from t_charge where charge_id='" + charge_id[i] + "'";
num = db.executeUpdate(sql);
}
if(num <= 0) {%>
<script language="javascript">
alert("删除失败!");
</script>
<%}
%>
<script language="javascript">
location = "CostEnter.jsp";
</script>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -