📄 stylenumcontrol.ascx
字号:
<%@ Control Language="c#" AutoEventWireup="false" Codebehind="styleNumControl.ascx.cs" Inherits="jpgSoftware_SM.storageManage.styleNumControl" TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
<script>
function addFile()
{
var str = '产品(款式)编号:<INPUT type="text" size="20" NAME="File"> 数量:<INPUT type="text" size="20" NAME="Num"> 比例:<INPUT NAME="Proportion" type="text" size="20" maxlength="20">'
document.getElementById('MyFile').insertAdjacentHTML("beforeEnd",str)
}
function collectData()
{
var oP = document.all["MyFile"];
document.all["hid_Values"].value = "";
var i;
alert(oP.children.length);
for (i=0;i<oP.children.length ; i++)
{
document.all["hid_Values"].value += oP.children(i).value;
if (i<oP.children.length-1)
{
document.all["hid_Values"].value += ",";
}
}
//alert(document.all["hid_Values"].value);
}
function selectProduct(r)
{
//alert(r);
window.open('selectStyle.aspx?key='+r,'s','width=350px,height=450,scroll=auto');
}
</script>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>产品(款式)查询: <INPUT NAME="keywords" id="keywords" type="text" size="20" maxlength="20"> <input type="button" id="queryBtn" value="查 询" onclick="selectProduct(keywords.value)"
style="WIDTH: 68px; HEIGHT: 22px">
</td>
</tr>
</table>
<table width="583" border="0">
<tr>
<td width="564">
<P id="MyFile">
产品(款式)编号:<INPUT NAME="File" type="text" size="20" maxlength="20"> 数量:<INPUT NAME="Num" type="text" size="20" maxlength="20">
比例:<INPUT NAME="Proportion" type="text" size="20" maxlength="20">
</P>
</td>
</tr>
</table>
<P>
<input type="button" value="增加(Add)" onclick="addFile()" style="WIDTH: 68px; HEIGHT: 22px">
<input type="hidden" id="hid_Values" name="hid_Values">
<!--<asp:Button Runat="server" Text="开始上传" ID="UploadButton" Width="69px"></asp:Button>-->
<input type="button" value="汇总数据" onclick="collectData()">
</P>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -