📄 methodlist.asp
字号:
<!--#include file="../Conndb.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>订单收款计划管理</title>
<link href="../style.css" rel="stylesheet">
<script language="javascript">
function newView(url) {
var oth="toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,left=200,top=200";
oth = oth+",width=600,height=300";
var newView=window.open(url,"newView",oth);
newView.focus();
return false;
}
function newView1(url) {
var oth="toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,left=200,top=200";
oth = oth+",width=200,height=100";
var newView1=window.open(url,"newView1",oth);
newView1.focus();
return false;
}
function see(opt){
var c=document.getElementById(opt).style.display;
if(c=="" || c=="none"){
document.getElementById(opt).style.display="block";
opt.src = "pic/Down.gif";
}
else{
document.getElementById(opt).style.display="none";
opt.src = "pic/Right.gif";
}
}
</script>
</head>
<body link="#000080" vlink="#080080">
<form id="form1" name="form1" method="POST">
<p align="center"><font color="#000080"><b><font style="font-size: 12pt">订 单 收 款 计 划</font></b></font></p>
<table align=center border="1" cellspacing="0" width="100%" bordercolorlight="#000080" bordercolordark="#FFFFFF">
<tr>
<td width="16%" align="center" bgcolor="#C1E0FF"><strong>收款阶段</strong></td>
<td width="20%" align="center" bgcolor="#C1E0FF"><strong>收款标志</strong></td>
<td width="16%" align="center" bgcolor="#C1E0FF"><strong>收款金额</strong></td>
<td width="16%" align="center" bgcolor="#C1E0FF"><strong>计划收款日期</strong></td>
<td width="16%" align="center" bgcolor="#C1E0FF"><strong>备注</strong></td>
<td width="16%" align="center" bgcolor="#C1E0FF"><strong>操作</strong></td>
</tr>
<%
Dim rs,rs1,Ssum,n
n = 0
Set rs = Server.CreateObject("ADODB.RecordSet")
Set rs1 = Server.CreateObject("ADODB.RecordSet")
'读取数据到记录集rs中
sql = "SELECT * FROM SaleOrder ORDER BY SaleId"
rs.Open sql,conn,1,1
'在表格中显示问题记录
If rs.Eof Then
Response.Write "<tr><td colspan=6 align=center>目前还没有记录。</td></tr></table>"
Else
Do While Not rs.EOF
n = n + 1
DivTitle = "title" & CStr(n)
DivId = "answer" & CStr(n)
%>
<tr><td colspan="6"><div style="cursor:hand" onclick=see("<%=DivId%>")>
<img src="pic/Right.gif" id=<%=DivTitle%> width="12" height="12" border="0"><%=rs("SaleId")%>
<a href="MethodEdit.asp?action=add&sid=<%=rs("SaleId")%>" onclick="return newView(this.href)">新建收款计划</a></div>
<div id=<%=DivId%> style="display:none">
<% '读取此订单的收款计划数据到记录集rs1中
sql = "SELECT m.*,t1.TypeName AS TName1,t2.TypeName AS TName2 FROM SaleMethod m,Types t1,Types t2" _
+ " Where m.TypeId=t1.TypeId And m.GetFlag=t2.TypeId And m.SaleId='"& rs("SaleId") &"' ORDER BY m.MthId"
rs1.Open sql,conn,1,1
'在表格中显示收款信息
If rs1.Eof Then
Response.Write "目前还没有记录。</div></td></tr>"
Else
Do While Not rs1.EOF
%>
<table border="1" cellspacing="0" width="100%" bordercolorlight="#C1E0FF" bordercolordark="#FFFFFF">
<tr>
<td width="16%" align="center"><%=rs1("TName1")%></td>
<td width="20%" align="center"><%=rs1("TName2")%> </td>
<td width="16%" align="right"><%=rs1("GetSum")%> </td>
<td width="16%" align="center"><%=rs1("GetDate")%> </td>
<td width="16%" align="left"><%=rs1("Memo")%> </td>
<td width="16%" align="center">
<a href="MethodEdit.asp?action=edit&mid=<%=rs1("MthId")%>" onClick="return newView(this.href)">修改</a>
<a href="MethodDelt.asp?mid=<%=rs1("MthId")%>" onClick="if(confirm('确定要删除记录吗?')){return newView(this.href);}return false;">删除</a>
</td>
</tr>
</table>
<% rs1.MoveNext()
Loop%></div></td></tr>
<% End If
rs1.Close()
rs.MoveNext()
Loop
%>
</table>
<% rs.Close()
End If%>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -