?? bangdan_store_info.asp
字號:
<!--#include file="conn.asp"-->
<!--#include file="checkuser.asp"-->
<html>
<head>
<title>∷企業生產管理信息系統:.</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="css/main.css" rel="stylesheet" type="text/css">
<SCRIPT language=javascript src="js/selectcity.js"></script>
<SCRIPT language=javascript src="css/init.js"></SCRIPT>
<SCRIPT language=JavaScript src="css/User_Info_Modify.js"></SCRIPT>
<!--media=print 這個屬性可以在打印時有效-->
<style media=print>
.Noprint{display:none;}
.PageNext{page-break-after: always;}
</style>
<style type="text/css">
<!--
td { font-family: "宋體"; font-size: 9pt}
body { font-family: "宋體"; font-size: 9pt}
select { font-family: "宋體"; font-size: 9pt}
A {text-decoration: none; color: #336699; font-family: "宋體"; font-size: 9pt}
A:hover {text-decoration: underline; color: #FF0000; font-family: "宋體"; font-size: 9pt}
-->
</style>
<SCRIPT LANGUAGE=javascript>
<!--
function Juge(myform)
{
if (myform.pinming.value == "")
{
alert("貨名不能為空!");
myform.pinming.focus();
return (false);
}
}
function SelectAll() {
for (var i=0;i<document.selform.selBigClass.length;i++) {
var e=document.selform.selBigClass[i];
e.checked=!e.checked;
}
}
//-->
</script>
</HEAD>
<BODY topMargin=0 rightMargin=0 leftMargin=0>
<% dim sql,rs
select case request("action")
case "add"
call SaveAdd()
case "modify"
call SaveModify()
case "del"
call delCate()
case "edit"
isEdit=True
call myform(isEdit)
case "view"
isEdit=True
call myform(isview)
case else
isEdit=False
call myform(isEdit)
end select
sub SaveAdd
set rs=server.createobject("adodb.recordset")
sql="select * from bangdan_store"
rs.open sql,conn,1,3
rs.addnew
rs("uptime") = request.Form("uptime")
rs("user") = trim(request.Form("user"))
rs("class") = trim(request.Form("d_position1"))
rs("pinming") = trim(request.Form("pinming"))
rs("Unit") = trim(request.Form("Unit"))
rs("fahuo") = trim(request.Form("fahuo"))
rs("shouhuo") = trim(request.Form("shouhuo"))
rs("chehao") = trim(request.Form("chehao"))
rs("kouzhong") = trim(request.Form("kouzhong"))
rs("maozhong") = trim(request.Form("maozhong"))
rs("pizhong") = request.Form("pizhong")
rs("jingzhong") = CDbl(request.Form("maozhong")) - CDbl(request.Form("pizhong")) - CDbl(request.Form("kouzhong"))
rs("content") = trim(request.Form("content"))
rs.update
response.Write "<script language=javascript>alert('添加成功!');</script>"
response.write "<meta http-equiv=""refresh"" content=""0;url=bangdan_store.asp"">"
response.end
rs.close
set rs=nothing
end sub
sub SaveModify
set rs=server.createobject("adodb.recordset")
sql="select * from bangdan_store where id="&request.Form("id")
rs.open sql,conn,1,3
rs("uptime") = request.Form("uptime")
rs("user") = trim(request.Form("user"))
rs("class") = trim(request.Form("d_position1"))
rs("pinming") = trim(request.Form("pinming"))
rs("Unit") = trim(request.Form("Unit"))
rs("fahuo") = trim(request.Form("fahuo"))
rs("shouhuo") = trim(request.Form("shouhuo"))
rs("chehao") = trim(request.Form("chehao"))
rs("kouzhong") = trim(request.Form("kouzhong"))
rs("maozhong") = trim(request.Form("maozhong"))
rs("pizhong") = request.Form("pizhong")
rs("jingzhong") = CDbl(request.Form("maozhong")) - CDbl(request.Form("pizhong")) - CDbl(request.Form("kouzhong"))
rs("content") = trim(request.Form("content"))
rs.update
response.Write "<script language=javascript>alert('修改成功!');</script>"
response.write "<meta http-equiv=""refresh"" content=""0;url=bangdan_store.asp"">"
response.end
rs.close
set rs=nothing
end sub
sub delCate()
conn.execute("delete from yunshu where id in ("&Request.Form("selBigClass")&")")
response.Write "<script language=javascript>alert('刪除成功!');</script>"
response.write "<meta http-equiv=""refresh"" content=""0;url=bangdan_store.asp"">"
response.end
end sub
%>
<% sub myform(isview) %>
<br>
<br>
<br>
<TABLE width=98% align=center border="1" cellspacing="0" bordercolor="#ffffff">
<form name="reg" method="post" action="bangdan_store.asp" onSubmit="return Juge(this)" >
<TBODY>
<TR>
<td align="center" valign="top">
<table width="100%" border="0" cellpadding="0" cellspacing="0" >
<tr class="but"> <td align="center" valign="middle">
<%if oskey="supper" or oskey="admin" then%>
<%
set rs=server.createobject("adodb.recordset")
if isedit then
rs.open "select * from bangdan_store where id=" & request("id") ,conn,1,1
response.write " ."
else
response.write " ."
end if %>
</td></tr></table>
<table width="600" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="30"><br><div align="center"><h3>甘肅翔發電石有限公司 磅碼單</h1></div></td>
</tr>
<tr>
<td height="30"><table width="600" border="0" cellspacing="2" cellpadding="1">
<tr>
<td width="45">日期:</td>
<td width="247"><%=rs("uptime")%><%if rs("uptime")="" then%> <%end if%></td>
<td width="44">序號:</td>
<td width="123">0000<%=rs("id")%><%if rs("id")="" then%> <%end if%></td>
<td width="53">單位:</td>
<td width="62"><%=rs("unit")%><%if rs("unit")="" then%> <%end if%></td>
</tr>
</table></td>
</tr>
<tr>
<td height="182"><table width="600" border="1" cellspacing="0" cellpadding="0" bgcolor="#ffffff">
<tr>
<td width="71" height="30">車號:</td>
<td width="215"><%=rs("chehao")%><%if rs("chehao")="" then%> <%end if%></td>
<td width="77">貨名:</td>
<td width="209"><%=rs("pinming")%><%if rs("pinming")="" then%> <%end if%></td>
</tr>
<tr>
<td height="30">發貨單位:</td>
<td><%=rs("fahuo")%><%if rs("fahuo")="" then%> <%end if%></td>
<td>收貨單位:</td>
<td><%=rs("shouhuo")%><%if rs("shouhuo")="" then%> <%end if%></td>
</tr>
<tr>
<td height="30">扣重:</td>
<td><%=rs("kouzhong")%><%if rs("kouzhong")="" then%> <%end if%></td>
<td>皮重:</td>
<td><%=rs("pizhong")%><%if rs("pizhong")="" then%> <%end if%></td>
</tr>
<tr>
<td height="30">備注:</td>
<td colspan="3"><%=rs("content")%><%if rs("content")="" then%> <%end if%></td>
</tr>
<tr>
<td height="30">毛重:</td>
<td><%=rs("maozhong")%><%if rs("maozhong")="" then%> <%end if%></td>
<td>凈重:</td>
<td><%=rs("jingzhong")%><%if rs("jingzhong")="" then%> <%end if%></td>
</tr>
</table></td>
</tr>
<tr>
<td height="30">司磅員:<%=rs("user")%><%if rs("user")="" then%> <%end if%></td>
</tr>
</form>
</table>
<%end if%>
</TD>
</TR>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="4">
<tr><td align="center"><a href="http://www.730400.cn" target="blank" title="好累哦,休息休息,還是上會網吧!">.</a></td></tr>
</table>
</TBODY>
</TABLE>
<%end sub%>
<table>
<tr><td height="30" colspan="10" align="center"><OBJECT id=WebBrowser classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 width=0 VIEWASTEXT>
</OBJECT>
<input type=button value=打印 onclick="document.all.WebBrowser.ExecWB(6,1)" class="NOPRINT">
<input type=button value=直接打印 onclick="document.all.WebBrowser.ExecWB(6,6)" class="NOPRINT">
<input type=button value=頁面設置 onclick="document.all.WebBrowser.ExecWB(8,1)" class="NOPRINT">
<input type=button value=打印預覽 onclick="document.all.WebBrowser.ExecWB(7,1)" class="NOPRINT">
</td></tr>
</table>
</P></BODY></HTML>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -