中国开发网: 论坛: 程序员情感CBD: 贴子 216886
疯子张: jsp文件。主要是开头的几个地方。
<%@ page contentType="text/html; charset=gb2312" pageEncoding="gb2312"%>
<%@ page language="java"%>


<%@ taglib uri="/WEB-INF/struts-bean.tld"
prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-html.tld"
prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld"
prefix="logic"%>
<%@ taglib uri="c.tld" prefix="c"%>
<%@ taglib uri="fmt.tld" prefix="fmt" %>

<html:html locale="true">
<head>
<html:base />

<title>branch.jsp</title>

<link href="<%= request.getContextPath() %>/css/public.css" rel="stylesheet" type="text/css">
<script src='<c:url value="/js/check.js"/>' type="text/javascript"></script>
<script>
function onSubmit(f) {
if(branchForm.command.value=='delete') {
if(confirm("您确认要删除这条记录") == false){
return false ;
}
}
if(branchForm.command.value=='closeoff') {
if(branchForm["branch.state"].value != 0){
alert("此机构已注销!不能执行注销操作!");
return false;
}
if(confirm("您确认要注销此机构") == false){
return false ;
}
}
if(branchForm.command.value=='wakeup') {
if(branchForm["branch.state"].value != 1){
alert("此机构已经是生效机构!");
return false;
}
if(confirm("您确认要恢复此机构") == false){
return false ;
}
}
return checkNecessaryInput(f) ;
}

function selectBank(param) {
var winFeatures="dialogHeight:400px;dialogWidth:500px;edge:Raised;center:Yes;help:No;resizable:No;status:No;";
var flags = new Array();
flags = window.showModalDialog("<%= request.getContextPath() %>/lookup/looksysparam.jsp?code="+param ,"",winFeatures);
if(!flags){
return;
}

if(param=="bank_area_type"){
branchForm["branchInfo.areaType"].value=flags[0];
}

if(param=="bank_property"){
branchForm["branchInfo.finaGroupType"].value=flags[0];
}
if(param=="bank_level"){
branchForm["branchInfo.bankLevel"].value=flags[0];
}
if(param=="bank_type"){
branchForm["branchInfo.bankType"].value=flags[0];
}
if(param=="province"){
branchForm["branchInfo.province"].value=flags[0];
}
}
</script>

</head>

<body class="bodyIn">
<logic:messagesPresent>

<script>
<html:messages id="error">
alert('<bean:write name="error"/>') ;
</html:messages>
</script>

</logic:messagesPresent>


<center>

<%

if("success".equals(session.getAttribute("result"))) {%> <script>
alert("操作成功!") ;
parent.left.location.reload() ;
</script> <%
session.removeAttribute("result") ;
}
%>

<html:form action="/system/baseinfo/branch/saveBranch" onsubmit="return onSubmit(this);" method="post">
<html:hidden property="command" name="branchForm" />
<html:hidden property="branch.parentBranch" name="branchForm" />
<html:hidden property="branch.branchId" name="branchForm" />
<html:hidden property="branch.branchLevel" name="branchForm" />
<html:hidden property="branch.state" name="branchForm" />
<html:hidden property="branchInfo.branchId" name="branchForm" />
<input type="hidden" name="flag" value="index_param">
<!-- <div style="font-size: 12pt; font-weight: bold; text-align: center;">机构维护</div>
<hr> -->
<table border="0" cellspacing="2" cellpadding="2" width="100%" align="center">
<tr>
<th colspan=4>&nbsp;</th>
</tr>

<tr>
<td align="right">机构名称</td>
<td colspan=3><html:text property="branch.branchName" name="branchForm" style="width:200px" alt="机构名称" /></td>
</tr>
<!--
<tr>
<td align="right">机构号</td>
<td colspan=3><html:text property="branchInfo.branchNo" name="branchForm" style="width:200px" /></td>
</tr>
-->
<tr>
<td align="right">电话</td>
<td colspan=3><html:text property="branchInfo.phone" name="branchForm"
style="width:200px" /></td>
</tr>

<tr>
<td align="right">地址</td>
<td colspan=3><html:text property="branchInfo.branchAddress" name="branchForm"
style="width:200px" /></td>
</tr>

<tr>
<td align="right">邮编</td>
<td colspan=3><html:text property="branchInfo.postcode" name="branchForm"
style="width:200px" onblur="ValidateZip(this)"/></td>
</tr>

<tr>
<td align="right">EMS名称</td>
<td colspan=3><html:text property="branchInfo.emsName" name="branchForm"
style="width:200px" /></td>
</tr>

<tr>
<td align="right">联系人</td>
<td colspan=3><html:text property="branchInfo.connPerson" name="branchForm"
style="width:200px" /></td>
</tr>

<tr>
<td align="right">金融机构分类</td>
<td colspan=3>
<html:text property="branchInfo.finaGroupType" name="branchForm"/>
</td>
</tr>

<tr>
<td align="right">帐号</td>
<td colspan=3>
<html:text property="branchInfo.account" name="branchForm" />
</td>
</tr>

<tr>
<td align="right">开户行</td>
<td colspan=3>
<html:text property="branchInfo.open_bank" name="branchForm" />
</td>
</tr>

<tr>
<td align="right">银行分类</td>
<td colspan=3>
<html:text property="branchInfo.bankType" name="branchForm" />
</td>
</tr>

<tr>
<td align="right">级别</td>
<td colspan=3><html:text property="branchInfo.bankLevel" name="branchForm" />
</td>
</tr>

<tr>
<td align="right">银行行号</td>
<td colspan=3><html:text property="branchInfo.bankNum" name="branchForm"
style="width:200px" /></td>
</tr>

<tr>
<td align="right">区域分类</td>
<td colspan=3>
<html:text property="branchInfo.areaType" name="branchForm"/>
</td>
</tr>

<tr>
<td align="right">城市</td>
<td colspan=3><html:text property="branchInfo.city" name="branchForm"
style="width:200px" /></td>
</tr>

<tr>
<td align="right">省份</td>
<td colspan=3><html:text property="branchInfo.province" name="branchForm" />
</td>

</tr>



<tr>
<td align="right">备注</td>
<td colspan=3><html:text property="branchInfo.other" name="branchForm"
style="width:200px" /></td>
</tr>

<tr>
<td align="right">银行名称</td>
<td colspan=3><html:text property="branchInfo.bankName" name="branchForm"
style="width:200px" /></td>
</tr>

<tr>
<td align="right">电报挂号</td>
<td colspan=3><html:text property="branchInfo.telgmNum" name="branchForm"
style="width:200px" /></td>
</tr>

<tr>
<td align="right">组织机构代码</td>
<td colspan=3><html:text property="branchInfo.groupCode" name="branchForm"
style="width:200px" /></td>
</tr>

<tr>
<td align="right">经营许可证</td>
<td colspan=3><html:text property="branchInfo.runPermit" name="branchForm"
style="width:200px" /></td>
</tr>

<tr>
<td align="right">经营范围</td>
<td colspan=3><html:text property="branchInfo.runRange" name="branchForm"
style="width:200px" /></td>
</tr>
<tr>
<td align="right">贴现权限生效标志</td>
<td align="left">
<span style="color:red;">
<logic:equal name="branchForm" property="branchInfo.is_check_tiexian_right" value="0">
<b>否</b>
</logic:equal>
<logic:equal name="branchForm" property="branchInfo.is_check_tiexian_right" value="1">
<b>是</b>
</logic:equal>
</span>
</td>
</tr>

<tr>
<td align="right" width="40%">是否有票据业务</td>
<td width="5%" align="left">
<span style="color:red;">
<logic:equal name="branchForm" property="branchInfo.runBillFlag" value="0">
<b>否</b>
</logic:equal>
<logic:equal name="branchForm" property="branchInfo.runBillFlag" value="1">
<b>是</b>
</logic:equal>
</span>
</td>

<td align="right" width="20%" nowrap>系统内标志</td>
<td align="left" width="35%">
<span style="color:red;">
<logic:equal name="branchForm" property="branchInfo.inFlag" value="0">
<b>否</b>
</logic:equal>
<logic:equal name="branchForm" property="branchInfo.inFlag" value="1">
<b>是</b>
</logic:equal>
</span>
</td>
</tr>

<tr>
<td align="right">重点城市标志</td>
<td align="left">
<span style="color:red;">
<logic:equal name="branchForm" property="branchInfo.impoCityFlag" value="0">
<b>否</b>
</logic:equal>
<logic:equal name="branchForm" property="branchInfo.impoCityFlag" value="1">
<b>是</b>
</logic:equal>
</span>
</td>
<td align="right">机构状态:</td>
<td lign="left">
<span style="color:red;">
<logic:equal name="branchForm" property="branch.state" value="0">
<b>生效</b>
</logic:equal>
<logic:equal name="branchForm" property="branch.state" value="1">
<b>已注销</b>
</logic:equal>
</span>
</td>
</tr>

<tr height="50px">
<td colspan="4" align="center">
<!--
<c:if test="${branchForm.command == 'update' or branchForm.command == 'delete'}">
<c:if test="${branchForm.branchInfo.branchId!=sessionScope.UserSessionInfo.branch_id}">
<html:submit styleClass="buttonBoxA">修改</html:submit>
<logic:equal name="branchForm" property="branch.state" value="0">
<html:submit styleClass="buttonBoxA" onclick="javascript:branchForm.command.value='closeoff';">注销机构</html:submit>
</logic:equal>
<logic:equal name="branchForm" property="branch.state" value="1">
<html:submit styleClass="buttonBoxA" onclick="javascript:branchForm.command.value='wakeup';">恢复机构</html:submit>
</logic:equal>
</c:if>
</c:if>
<logic:equal name="branchForm" property="command" value="create">
<html:submit styleClass="buttonBoxA">增加</html:submit>
</logic:equal>

<c:if test="${branchForm.command == 'update' and sessionScope.UserSessionInfo.branch_id == param.branchId}">
<input type="button" class="buttonBoxA" style="width:100px" onclick="javascript:window.location.href='<c:out value="${pageContext.request.contextPath}"/>/system/baseinfo/branch/editBranch.do?command=create&parentBranch=<c:out value="${param.branchId}" />';" value="新增下级机构">
</c:if>
-->
</td>
</tr>
</table>

<br>

</html:form>

<!-- 总行机构不显示有关业务的链接 -->
<fieldset class="fieldSetBox" style="width:300px;height:80px;">

<table border="0" cellspacing="2" cellpadding="2" width=90%" align="center">
<tr>

<td >
<a href="../businessIndex/index.do?branchId=<c:out value="${param.branchId}" />">业务指标信息列表</a>
</td>

<td >
<a href="../businesstype/businesstype_main.jsp?branchId=<c:out value="${param.branchId}" />">可经营业务类型列表</a>
</td>

<tr>
<td>
<a href="../discraterange/index.do?branchId=<c:out value="${param.branchId}" />">利率范围信息列表</a>
</td>
<td>
<a href="../billtyperange/billtyperange_main.jsp?branchId=<c:out value="${param.branchId}" />">可经营票据类型列表</a>
</td>
</tr>
<tr>
<td>
<a href="../tiexianjine/tiexianjine_main.jsp?checkflag=write&branchId=<c:out value="${param.branchId}" />">机构贴现权限标准</a>
</td>
<td>

</td>
</tr>
</table>
</fieldset>
</center>

</html:html>
几年前,技术抛弃了我;现在,我抛弃了技术。


相关信息:


欢迎光临本社区,您还没有登录,不能发贴子。请在 这里登录