?? provision.jsp
字號:
<%@ page contentType="text/html; charset=GBK" %>
<%@ page import="java.util.*" %>
<%@ page import="com.intacpurun.wsms.srvclogic.*" %>
<%@ page import="com.intacpurun.wsms.comm.*"%>
<%@ page import="com.intacpurun.wsms.comm.vo.*"%>
<%@ page errorPage="error.jsp" %>
<%
String serviceId = request.getParameter("serviceid");
String userMsisdn = request.getParameter("msisdn");
String password = request.getParameter("password");
String aidedCode = request.getParameter("aidedcode");
String validPass = (String)session.getAttribute("confirmcode");
String validAided = (String)session.getAttribute("aidedcode");
boolean isValid = false;
boolean isSuccess = false;
if ((validPass != null) && (validAided != null))
{
if (password.equals(validPass) && aidedCode.equals(validAided))
{
isValid = true;
AddForecastProvisionVo addVo = new AddForecastProvisionVo();
addVo.setServiceId(Integer.parseInt(serviceId));
addVo.setUserMsisdn(userMsisdn);
if (Integer.parseInt(serviceId) == Constants.SERVICE_WEATHER_FORECAST_ID)
{
//處理天氣預報業務的訂購
String cityId = (String)session.getAttribute("cityid");
if (cityId == null)
{
out.println("<script>");
out.println("alert(\"你沒有選擇要訂購的城市,請先選擇要訂購天氣預報的城市!\");");
out.println("</script>");
response.sendRedirect("serviceintroduce.jsp?serviceid=" + serviceId);
}
addVo.setCityId(cityId); //天氣預報的特殊處理
}//else 為普通業務,無需處理
//保存訂購關系,此處注意繼承性的應用
isSuccess = ServiceMgr.provision(addVo);
}else isValid = false;
}else isValid = false;
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>登錄</TITLE>
<META http-equiv=content-type content="text/html; charset=gb2312">
<LINK href="img/style.css" type=text/css rel=stylesheet>
<base href="<%=request.getRequestURL()%>" />
<META content="MSHTML 6.00.2900.2912" name=GENERATOR>
</HEAD>
<script language="javascript">
function goBack()
{
document.location.href="serviceview.jsp";
}
</script>
<BODY class=bg3 leftMargin=5 topMargin=5 marginwidth="5" marginheight="5">
<CENTER>
<TABLE cellSpacing=0 cellPadding=0 width=280 border=0>
<TBODY>
<TR>
<TD width=12><IMG height=1 alt="" src="img/c.gif" width=1
border=0></TD>
<TD width=128><IMG height=41 alt="" src="img/notice.gif"
width=139 border=0></TD>
<TD vAlign=bottom width=22> </TD>
<TD width=88><IMG height=1 alt="" src="img/c.gif" width=1
border=0></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width=280 border=0>
<TBODY>
<TR>
<TD width=7 rowSpan=2><IMG height=1 alt="" src="img/c.gif"
width=1 border=0></TD>
<TD width=5 rowSpan=2><IMG height=5 src="img/noticelt.gif"
width=5 border=0></TD>
<TD class=bg0 width=128><IMG height=1 alt="" src="img/c.gif"
width=1 border=0></TD>
<TD class=bg0 width=83><IMG height=1 alt="" src="img/c.gif"
width=1 border=0></TD>
<TD width=5 rowSpan=2><IMG height=5 src="img/noticert.gif"
width=5 border=0></TD></TR>
<TR>
<TD class=bg3 width=128><IMG height=4 alt="" src="img/c.gif"
width=1 border=0></TD>
<TD class=bg3 width=83><IMG height=4 alt="" src="img/c.gif"
width=1 border=0></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width=280 border=0>
<TBODY>
<TR>
<TD width=7> </TD>
<TD class=bg0 width=1><IMG height=25 alt=""
src="img/noticelefthand2.gif" width=1 border=0></TD>
<TD class=bg3 width=3> </TD>
<TD class=bg3 align=middle width=268><BR><BR>
<IMG height=7 hspace=4 src="img/pointred.gif" width=7 border=0>
<%
if (isValid)
{
if (isSuccess) out.println("定購成功!<BR>歡迎您定購我們的其他短信業務!");
else out.println("訂購關系生成失敗!請重新操作一次!");
}else
{
out.println("非法的訂購請求!請重新操作!");
}
%>
<IMG height=18 src="img/c.gif" width=1 border=0><BR>
<IMG height=18 src="img/c.gif" width=1 border=0><BR>
<center><INPUT onclick="javascript:goBack();" type=image src="img/submit.gif" align="middle" width=55 height=15 border=0></center>
<IMG height=18 src="img/c.gif" width=1 border=0><BR>
<TD class=bg0 width=1><IMG height=1 alt="" src="img/c.gif" width=1 border=0></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width=280 border=0>
<TBODY>
<TR>
<TD width=7 rowSpan=2><IMG height=1 alt="" src="img/c.gif" width=1 border=0></TD>
<TD width=5 rowSpan=2><IMG height=5 alt="" src="img/noticelb.gif" width=5 border=0></TD>
<TD class=bg3 width=263 height=5><IMG height=1 alt="" src="img/c.gif" width=1 border=0></TD>
<TD width=5 rowSpan=2><IMG height=5 alt="" src="img/noticerb.gif" width=5 border=0></TD></TR>
<TR>
<TD class=bg0 width=233 height=1><IMG height=1 alt="" src="img/c.gif" width=1 border=0></TD></TR></TBODY></TABLE>
</CENTER></BODY></HTML>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -