📄 intercourse_update.jsp
字号:
<%@ page language="java" import="java.util.*" pageEncoding="GB2312"%>
<jsp:directive.page import="com.captainli.struts.form.IntercourseForm"/>
<jsp:directive.page import="com.captainli.dboperation.intercourseDA"/>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>往来单位详细信息</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link rel="stylesheet" type="text/css" href="../css/sys.css">
<style type="text/css">
<!--
body {
margin-left: 5px;
margin-top: 5px;
margin-right: 5px;
margin-bottom: 5px;
background-color: #FFFFFF;
}
a:link {
color: #1A438E;
text-decoration: underline;
}
a:visited {
text-decoration: underline;
}
a:hover {
text-decoration: none;
color: #000000;
}
a:active {
text-decoration: underline;
}
.style1 {color: #666666}
-->
</style>
<script type="text/javascript" language="javascript">
function check(){
if(form1.i_name.value == ""){
window.alert("请输入往来单位名称!");
form1.i_name.focus();
return false;
}
if(form1.i_pinyin.value == ""){
window.alert("往来单位拼音自动生成!");
form1.i_pinyin.focus();
return false;
}
if(form1.i_type.value == 0){
window.alert("请选择往来单位类型!");
form1.i_type.focus();
return false;
}
if(form1.i_yingshou.value == ""){
window.alert("期初应收如果没有请输入“0”");
form1.i_yingshou.value = "0";
form1.i_yingshou.focus();
return false;
}
if(form1.i_yingfu.value == ""){
window.alert("期初应付如果没有请输入“0”");
form1.i_yingfu.value = "0";
form1.i_yingfu.focus();
return false;
}
}
</script>
</head>
<%
int i_id = Integer.parseInt(request.getParameter("iid"));
IntercourseForm form = new intercourseDA().showIntercourseById(i_id);
%>
<body>
<form name="form1" method="post" action="../intercourse.do?method=updateIntercourse&iid=<%= form.getI_id() %>">
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#C4D8ED">
<tr>
<td><img src="../images/system/r_1.gif" alt="" /></td>
<td width="100%" background="../images/system/r_0.gif"><table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td> 往来单位修改(带*号的为必填项)</td>
<td align="right"> </td>
</tr>
</table></td>
<td><img src="../images/system/r_2.gif" alt="" /></td>
</tr>
<tr>
<td></td>
<td><table align="center" cellpadding="4" cellspacing="1" class="toptable grid" border="1">
<tr>
<td align="right" height="30">单位名称:</td>
<td class="category"><input name="i_name" type="text" id="i_name" style="width:200px;" value="<%= form.getI_name() %>" onBlur="javascript:document.form1.i_pinyin.value=pinyin(this.value);">
<font color="#ff0000">*</font></td>
</tr>
<tr>
<td align="right" height="30">单位拼音:</td>
<td class="category"><input name="i_pinyin" type="text" id="i_pinyin" style="width:200px;" value="<%= form.getI_pinyin() %>" readonly="readonly">
<font color="#ff0000">*</font> </td>
</tr>
<tr>
<td width="20%" height="30" align="right">单位类型:</td>
<td width="80%" class="category"><select name="i_type" id="i_type">
<option value="0">--请选择单位类型--</option>
<option value="1" <% if(form.getI_type() == 1){ %>selected="selected"<%} %>>客户</option>
<option value="2" <% if(form.getI_type() == 2){ %>selected="selected"<%} %>>供应商</option>
</select>
<font color="#ff0000">*</font></td>
</tr>
<tr>
<td align="right" height="30">单位联系电话:</td>
<td class="category"><input name="i_tel" type="text" id="i_tel" value="<%= form.getI_tel() %>" style="width:200px"></td>
</tr>
<tr>
<td align="right" height="30">单位联系地址:</td>
<td class="category"><input name="i_addr" type="text" id="i_addr" value="<%= form.getI_addr() %>" style="width:200px;"></td>
</tr>
<tr>
<td align="right" height="30">单位联系人:</td>
<td class="category"><input name="i_man" type="text" id="i_man" value="<%= form.getI_man() %>" style="width:200px;"></td>
</tr>
<tr>
<td align="right" height="30">邮政编码:</td>
<td class="category"><input name="i_zipcode" type="text" id="i_zipcode" value="<%= form.getI_zipcode() %>" style="width:200px"></td>
</tr>
<tr>
<td align="right" height="30">单位税号:</td>
<td class="category"><input name="i_tax" type="text" id="i_tax" value="<%= form.getI_tax() %>" style="width:200px"></td>
</tr>
<tr>
<td align="right" height="30">开户银行及帐户:</td>
<td class="category"><input name="i_bank" type="text" id="i_bank" value="<%= form.getI_bank() %>" style="width:200px;"></td>
</tr>
<tr>
<td align="right" height="30">企业许可证:</td>
<td class="category"><input name="i_ent" type="text" id="i_ent" value="<%= form.getI_ent() %>" style="width:200px;"></td>
</tr>
<tr>
<td align="right" height="30">期初应收:</td>
<td class="category"><input name="i_yingshou" type="text" id="i_yingshou" value="<%= form.getI_yingshou() %>" style="width:200px" value="0"></td>
</tr>
<tr>
<td align="right" height="30">期初应付:</td>
<td class="category"><input name="i_yingfu" type="text" id="i_yingfu" value="<%= form.getI_yingfu() %>" style="width:200px" value="0"></td>
</tr>
<tr>
<td align="right" height="30">备注:</td>
<td class="category"><textarea name="i_note" cols="60" rows="3" id="i_note"><%= form.getI_note() %></textarea>
</td>
</tr>
<tr>
<td height="30"> </td>
<td class="category"><input name="submit" type="submit" class="button" onClick="return check()" value=" 确认修改 ">
<input name="reset" type="reset" class="button" value=" 重新填写 ">
<input name="button" type="button" class="button" onClick="window.history.go(-1)" value=" 放弃修改返回 ">
</td>
</tr>
</table></td>
<td></td>
</tr>
<tr>
<td><img src="../images/system/r_4.gif" alt="" /></td>
<td></td>
<td><img src="../images/system/r_3.gif" alt="" /></td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -