?? associatedel.jsp
字號:
<%--
模塊名稱:合作伙伴
模塊功能:合作伙伴刪除
版 本:V1.0
著 作 人:蔡靜
著作日期:2001-11-06
該模塊所需的文件:
使用說明:
主要技術說明:
參考文獻:法律事務設計書
修改歷史:= = = = = = = = = = = = = = = = = = = = = = = = = =
修改日期:
修 改 人:
修改理由:
修改出處:
= = = = = = = = = = = = = = = = = = = = = = = = = =
--%>
<%@ 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 = "Ass014";
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;
int num =0;
String delStr = "";
String partner_ids = request.getParameter("partner_ids");
ExtendString es = new ExtendString();
String[] partner_id = new String[10];
partner_id = es.Split(",",partner_ids);
for (int i=0; i<es.length; i++) {
sql = "delete from t_partner where partner_id='" + partner_id[i] + "'";
num = db.executeUpdate(sql);
if(num <= 0)
{
num = 1;
delStr = delStr + partner_id[i] + ".";
}
}
if(num == 1){
%>
<script language="javascript">
location = "Associate.jsp";
</script>
<%}else{ %>
<script language="javascript">
alert("刪除" + <%=delStr%> + "失敗!");
location = "Associate.jsp";
</script>
<%}%>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -