⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 stop_phone_contract.asp

📁 这是一个采用ASP技术的物业管理系统
💻 ASP
字号:
<%--
title :
description :
@author : wangjn
copy right : copy right (@) 2002
date : 2002-04
--%>
<%@ page language="java" contentType="text/html;charset=gb2312" %>
<%@ include file="/inc/all.jsp" %>
<%@ page import = "com.excenon.core.*,com.excenon.core.db.*,com.xinghe.wuye.device.*" %>
<%@ page import = "com.xinghe.system.*,com.xinghe.wuye.phone.*,com.xinghe.wuye.*,com.xinghe.fee.calculate.*" %>
<%@ page import = "java.rmi.RemoteException,java.util.Vector,java.util.*,java.sql.Timestamp" %>
<%
// Create phone remote interface
SBPhoneHome phHome = (SBPhoneHome)EBBeanFactory.findEBHome("com.xinghe.wuye.phone.SBPhoneBean");
SBPhone phInterf = phHome.create();
// get parameter from request
String phoneContractID = ebString.jspr( request.getParameter("phonecontractid") ).gb();
String sQuery = "select * from wy_phone_contract where phonecontractid='"+phoneContractID+"'";
String buildingAreaID = MyFun.getColumnResult( sQuery,"buildingareaid" );//小区ID
String buildingID = MyFun.getColumnResult( sQuery,"buildingid" );//楼房ID
if(request.getParameter("buildingarea")!=null&&request.getParameter("buildingarea").equals("")) buildingAreaID = "";
// get uesr ACL
ACL[] mm_ACL = webUser.getA_acl();
// if this loginer can read or manage wuye model
boolean isReader = false, isManager = false, isWebManager = false;
isReader = AccessJudge.hasBuildingAreaRight( buildingAreaID,OperationType.TENANCY_VIEW,mm_ACL );
isManager = AccessJudge.hasBuildingAreaRight( buildingAreaID,OperationType.TENANCY_MANAGE,mm_ACL );
String strDisabled = "";// disabled button
if( !isManager ){
%>
<jsp:forward page="back.jsp"  >
    <jsp:param name="failinfo" value="您没有终止合同的权限,请与管理员联系!" />
</jsp:forward>
<%
}
%>
<html>
<head><title></title>
<META HTTP-EQUIV="Refresh" CONTENT="3;URL='javascript:subSelf()'">
<link rel="stylesheet" href="../../css/mm.css" type="text/css">
</head>
<script language="javascript">
function subSelf(){
    document.theForm.submit();
}
</script>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<form name="theForm" action="../phonecontract_list.jsp">
  <table width="100%" border="0" cellspacing="0" cellpadding="0" height="80%">
    <tr>
      <td align="center" valign="middle">
        <table width="80%" border="0" cellspacing="1" cellpadding="0" class="bborder">
          <tr>
            <td height="20">
              <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td><img src="../../images/info.gif" width="16" height="16" hspace="3" align="absmiddle">提示信息</td>
                  <td align="right" width="30"><a href="#" onClick="self.history.back();"><img src="../../images/back2.gif" hspace="3" border="0" width="16" height="16"></a></td>
                </tr>
              </table>
            </td>
          </tr>
          <tr>
            <td class="btd">
              <table border=0 width=100% cellspacing=0 cellpadding=0>
                <tr>
                  <td align="center" height="150">
                    <img src="../../images/alert_info.gif" width="42" height="42" align="absmiddle" hspace="5"><font style="font-size:14px;color:#ff0000">
					<%
					// insert to db
					try{
						phInterf.stopPhoneContract( phoneContractID );
						out.println( "合同终止成功!" );
					}catch( SysException se ){
						out.println( se.getInfo() );
					}catch( BusinessException be ){
						out.println( be.getInfo() );
					}
					%>
                    </font>
                    <p>三秒钟后将自动返回! 或按
                      <input type="button" name="goback" value="返 回" onClick="javascript:subSelf()">
                        <input type="hidden" name="back" value="yes">
						<input type="hidden" name="buildingarea" value="<%=buildingAreaID%>">
						<input type="hidden" name="building" value="<%=buildingID%>">
                  </td>
                </tr>
              </table>
            </td>
          </tr>
        </table>
      </td>
    </tr>
  </table>
</form>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -