📄 cglist_add.jsp
字号:
<%@page contentType="text/html; charset=GBK" language="java" errorPage="" %>
<jsp:useBean id="list1" scope="page" class="jxc.web.Lists" />
<jsp:include page="../other/Function.jsp" flush="false"/>
<%
java.util.GregorianCalendar toDay = new java.util.GregorianCalendar();
String fdate = toDay.get(toDay.YEAR)+"-"+(toDay.get(toDay.MONTH)+1)+"-"+toDay.get(toDay.DATE);
%>
<html>
<head>
<script language="JavaScript">
function focus1()
{
window.form1.djbh.focus();
}
function openFrameless()
{
NFW =window.open("../jcsz/spxx.jsp","","fullscreen");//打开一个窗口为满屏显示
NFW.resizeTo(620,450);//改变窗口大小
NFW.moveTo(screen.width/2-310,screen.height/2-225);//移动窗口
}
function add1()
{
var str=form1.djbh.value;
for(var i=0;i<str.length;i++){
var flag=0;
var strTmp =str.charAt(i);
if((strTmp>=0) &&(strTmp<=9) && (strTmp!=" ")){
flag=1;
}else{
flag=0;
break;
}
}
if(form1.djbh.value==""){
alert("请输入单据编号!");
form1.djbh.focus(1);
}else if(form1.B1.value="保存")
{
form1.submit();
}
}
</SCRIPT>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<title></title>
<link rel="stylesheet" href="../other/customer.css">
</head>
<body onLoad="javascript:focus1()">
<table width="100%" border="1" cellspacing="0" cellpadding="0" bordercolor="#FFFFFF">
<tr>
<td bordercolor="#86c2fe">
<table width="100%" border="0" cellspacing="0" cellpadding="0" bordercolor="#86c2fe">
<tr>
<td bgcolor="#4180BE">
<table width="100%" height="44" border="0" cellspacing="0" cellpadding="0" align="left">
<tr>
<td width="100%">
<p align="center">
<font color="#FFFFFF">采 购 信 息 管 理 --<font size="2"> 详细资料</font></font>
</p>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table width="20%" >
<tr>
<td><a href="cglist.jsp"><img border="0" src="../images/return.jpg" ></a></td></tr>
</Table>
<table width="100%" cellspacing="1" align="center">
<tr>
<td height="100%" colspan="2">
<form name="form1" method="POST" action="cglist_Addok.jsp">
<table width="100%" cellspacing="1" bgcolor="#86c2fe">
<tr>
<td class='small' width="15%" bgcolor="#D8EBF5"><div align="center">单据编号:</div></td>
<td width="35%" bgcolor="#D8EBF5"><input type="text" name="djbh" size="20" >*</td>
<td class='small' width="15%" bgcolor="#D8EBF5"><div align="center">供方名称:</div></td>
<td bgcolor="#D8EBF5"><select size="1" name="csbh" width="20">
<%list1.setShowAll();
list1.setSql("csb");
if (list1.excute()) {
for (int i=0;i<list1.getListCount();i++) {
list1.setRow(i); %>
<option value="<%=list1.getString("id")%>"><%=list1.getString("csname")%></option>
<% } }%>
</select>*</td>
</tr>
<tr>
<td class='small' width="15%" bgcolor="#D8EBF5"><div align="center">仓库名称:</div></td>
<td width="35%" bgcolor="#D8EBF5"><select size="1" name="ckbh" width="20">
<%list1.setSql("ckb");
if (list1.excute()) {
for (int i=0;i<list1.getListCount();i++) {
list1.setRow(i);%>
<option value="<%=list1.getString("id")%>"><%=list1.getString("ckname")%></option>
<% } }%>
</select>*</td>
<td class='small' width="15%" bgcolor="#D8EBF5"><div align="center">员工名称:</div></td>
<td bgcolor="#D8EBF5"><select size="1" name="ygbh">
<%list1.setSql("person");
if (list1.excute()) {
for (int i=0;i<list1.getListCount();i++) {
list1.setRow(i); %>
<option value="<%=list1.getString("id")%>"><%=list1.getString("name")%></option>
<% } }%>
</select> *</td>
</tr>
<tr>
<td class='small' width="15%" bgcolor="#D8EBF5"><div align="center">付款方式:</div></td>
<td bgcolor="#D8EBF5"><select size="1" name="fkfs">
<%list1.setSql("fkb");
if (list1.excute()) {
for (int i=0;i<list1.getListCount();i++) {
list1.setRow(i); %>
<option value="<%=list1.getString("id")%>"><%=list1.getString("fkfsname")%></option>
<% } }%>
</select> *</td>
<td class='small' width="15%" bgcolor="#D8EBF5"><div align="center">付款情况:</div></td>
<td bgcolor="#D8EBF5"><select size="1" name="fkbh">
<%list1.setSql("pay");
if (list1.excute()) {
for (int i=0;i<list1.getListCount();i++) {
list1.setRow(i); %>
<option value="<%=list1.getString("id")%>"><%=list1.getString("fkname")%></option>
<% } }%>
</select>*</td>
</tr>
<tr>
<td class='small' width="15%" bgcolor="#D8EBF5"> <div align="center">日 期:</div></td>
<td width="35%" class='small' bgcolor="#D8EBF5"><div><%=fdate%></div></td>
<td class='small' width="15%" bgcolor="#D8EBF5"><div align="center">填单人</div></td>
<td width="35%" class='small' bgcolor="#D8EBF5"><div><%= session.getAttribute("usname")%></div></td>
</tr>
<tr>
<td class='small' width="15%" bgcolor="#D8EBF5"><div align="center">备 注:</div></td>
<td colspan="3" bgcolor="#D8EBF5"><input type="text" name="bz" size="64" ></td>
</tr>
<tr>
<td colspan="4" width="100%" bgcolor="#D8EBF5" class='small' align="center">
<input style="BORDER-RIGHT: #005dce 1px solid; BORDER-TOP: #005dce 1px solid; FONT-SIZE: 10pt; BORDER-LEFT: #005dce 1px solid; BORDER-BOTTOM: #005dce 1px solid; BACKGROUND-COLOR: #dbeafb" type="button" value="保存" name="B1" align="center" onclick="add1()"/>
<input style="BORDER-RIGHT: #005dce 1px solid; BORDER-TOP: #005dce 1px solid; FONT-SIZE: 10pt; BORDER-LEFT: #005dce 1px solid; BORDER-BOTTOM: #005dce 1px solid; BACKGROUND-COLOR: #dbeafb" type="reset" value="重写" name="B2" align="center" >
<input type="hidden" name="connect_code" value="connect">
<input type="hidden" name="method" value="B1">
</td>
</tr></table></form></td>
</tr>
<tr>
<td class="small" width="23%" >
</td>
</tr>
</table>
</body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -