?? 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 + -