📄 inputgoods.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="InputGoods.aspx.cs" Inherits="InputGoods" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>无标题页</title>
<script type="text/javascript">
function GetGood()
{
var oSelector = document.getElementById("<asp:Literal ID="GetID" runat="Server"></asp:Literal>");
var IntKid = oSelector.value;
var DivNames = "Div"+IntKid;
document.getElementById("DropDownList1").style.display="none";
document.getElementById("Select1").style.display="none";
document.getElementById(DivNames).style.display="inline";
}
function Xianshi(obj2,obj,obj1)
{
document.getElementById(obj1).style.display="none";
document.getElementById("GoodsNam").value=obj;
document.getElementById("GoodsID").value=obj2;
document.getElementById("DropDownList1").style.display="inline";
document.getElementById("Select1").style.display="inline";
//document.getElementById("KeepsN")="asdf"
//alert(obj);
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<table width="550" border="0" align="center" cellpadding="0" cellspacing="2">
<tr>
<td height="50" valign="bottom"><a href="InputGoods.aspx">产品入库</a><br/><br/></td>
</tr>
<tr><td>
<asp:Panel ID="Panel1" runat="server">
<table width="550" bgcolor="#a3c5ce" border="0" align="center" cellpadding="0" cellspacing="1">
<tr><td colspan="2" height="20" align="center"><b><font color="#ffffff">货物入库</font></b></td></tr>
<tr>
<td align="right" width="200" height="20" bgcolor="#f0fbfd">
所属产品:</td>
<td bgcolor="#f0fbfd">
<asp:DropDownList ID="DropDownList1" runat="server" DataSourceID="SqlDataSource1"
DataTextField="GoodsName" DataValueField="ID">
</asp:DropDownList>
<asp:TextBox ID="GoodsNam" runat="server" Width="80px" onclick="javascript:GetGood();"></asp:TextBox>
<input id="GoodsID" type="hidden" runat="server" />
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:al_bysjConnectionString %>"
SelectCommand="SELECT [ID], [GoodsName] FROM [BigClass]"></asp:SqlDataSource>
</td>
</tr>
<tr>
<td bgcolor="#f0fbfd" align="right" width="200" height="20">产品价格:</td>
<td bgcolor="#f0fbfd">
<asp:TextBox ID="Money" runat="server" Width="62px"></asp:TextBox> 产品数量:<asp:TextBox ID="GoodsNum" runat="server" Width="60px"></asp:TextBox></td>
</tr>
<tr>
<td bgcolor="#f0fbfd" align="right" width="200" height="20">产品厂家:</td>
<td bgcolor="#f0fbfd">
<asp:TextBox ID="GoodChang" runat="server" Width="80px"></asp:TextBox> 产品标准:<asp:TextBox
ID="GoodBiao" runat="server" Width="80px"></asp:TextBox></td>
</tr>
<tr>
<td bgcolor="#f0fbfd" align="right" width="200" height="20">操作类型:</td>
<td bgcolor="#f0fbfd">
<select id="Select1" runat="server">
<option selected="selected">--选择类型--</option>
<option value="1">入库</option>
<option value="5">归还</option>
<option value="6">退库</option>
</select>
相关人员:<asp:TextBox ID="AboutUser" runat="server" Width="80px"></asp:TextBox></td>
</tr>
<tr>
<td bgcolor="#f0fbfd" height="20" valign="bottom"></td>
<td bgcolor="#f0fbfd"><asp:Button ID="Button1" runat="server" Text=" 添 加 " UseSubmitBehavior="False" OnClick="Button1_Click" /></td>
</tr>
</table>
</asp:Panel>
</td>
</tr>
</table>
<asp:Panel ID="KeepsDiv" runat="server" Width="550">
</asp:Panel>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -