📄 product.aspx
字号:
</td>
<td class="tdbg" align="left">
<asp:CheckBox ID="ChkEnableBuyWhenOutofstock" runat="server" />
打勾表示缺货时允许购买,否则缺货时不允许购买
</td>
</tr>
<tr class="tdbg" id="tr1" style="display: none">
<td class="tdbgleft" align="right">
<strong>限购数量: </strong>
</td>
<td class="tdbg" align="left">
<asp:UpdatePanel ID="UpnlLimitNum" runat="server">
<ContentTemplate>
<asp:TextBox ID="TxtLimitNum" runat="server" Width="80" MaxLength="8" Text="0" AutoPostBack="true"
OnTextChanged="TxtLimitNum_TextChanged"></asp:TextBox>
0为不限制,大于0时,此商品将不允许批发</ContentTemplate>
</asp:UpdatePanel>
</td>
</tr>
<tr class="tdbg">
<td class="tdbgleft" align="right">
<strong>库存数量: </strong>
</td>
<td class="tdbg" align="left">
<asp:TextBox ID="TxtStocks" Text="1000" runat="server" Width="80" MaxLength="8"></asp:TextBox>
</td>
</tr>
<tr class="tdbg" id="trAlarmNum">
<td class="tdbgleft" align="right">
<strong>库存报警下限: </strong>
</td>
<td class="tdbg" align="left">
<asp:TextBox ID="TxtAlarmNum" runat="server" Width="80" MaxLength="8" Text="10"></asp:TextBox>
</td>
</tr>
<tr class="tdbg" style="display: none">
<td class="tdbgleft" align="right">
<strong>前台库存计算方式: </strong>
</td>
<td class="tdbg" align="left">
<asp:RadioButtonList ID="RadlStocksProject" runat="server" RepeatDirection="Vertical">
<asp:ListItem Selected="true" Value="0">实际库存</asp:ListItem>
<asp:ListItem Value="1">虚拟库存(实际库存-已订购数)</asp:ListItem>
</asp:RadioButtonList>
</td>
</tr>
<tr class="tdbg" style="display: none">
<td class="tdbgleft" align="right">
<strong>税率设置: </strong>
</td>
<td class="tdbg" align="left">
<pe:TaxRateSetting ID="TaxRateTypeSetting" runat="server" EnableTheming="true" EnableViewState="true"
Visible="true" />
</td>
</tr>
<tr class="tdbg" style="display: none">
<td class="tdbgleft" align="right" style="height: 27px">
<strong>商品税率: </strong>
</td>
<td class="tdbg" align="left" style="height: 27px">
<asp:TextBox ID="TxtTaxRate" runat="server" Width="80" MaxLength="8"></asp:TextBox>
%
</td>
</tr>
<tr class="tdbg">
<td class="tdbgleft" align="right" style="height: 27px">
<strong>商品推荐等级: </strong>
</td>
<td class="tdbg" align="left" style="height: 27px">
<asp:DropDownList ID="DropStars" runat="server">
<asp:ListItem Value="5">★★★★★</asp:ListItem>
<asp:ListItem Value="4">★★★★</asp:ListItem>
<asp:ListItem Value="3" Selected="True">★★★</asp:ListItem>
<asp:ListItem Value="2">★★</asp:ListItem>
<asp:ListItem Value="1">★</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
</table>
</td>
</tr>
</table>
<p style="text-align: center">
<pe:ExtendedButton ID="BtnSave" Text=" 保存 " IsChecked="true" OperateCode="NodeContentInput"
OnClick="BtnSave_Click" runat="server" IsShowTabs="true" CustomValProcessFunction="ValProcessFunction" />
<%--<asp:ValidationSummary ID="ValsFormErrors" runat="server" ShowMessageBox="True" ShowSummary="False" />--%>
</p>
<script language="javascript" type="text/javascript">
function ProtectBox(e)
{
return false;
}
function SelectPresent(id)
{
var arr=showModalDialog("../Shop/ProductList.aspx?ProductType=4&ShowProperty=False&ModelID=" + <%=m_ModelId%>,"","dialogWidth:620px; dialogHeight:470px; help: no; scroll: yes; status: no");
if (arr != null)
{
var ss = arr.split('$$$');
if(id==1)
{
document.getElementById('<%=TxtPresentName.ClientID %>').value=ss[0];
document.getElementById('<%=HdnPresentID.ClientID %>').value=ss[1];
}
else
{
document.getElementById('<%=TxtPresentName.ClientID %>').value=ss[0];
document.getElementById('<%=HdnPresentID2.ClientID %>').value=ss[1];
}
}
}
function AddDependentProduct()
{
var arr=showModalDialog("../Shop/ProductList.aspx?ProductType=0,1,2,3&ShowProperty=False&ModelID=" + <%=m_ModelId%>,"","dialogWidth:600px; dialogHeight:450px; help: no; scroll: yes; status: no");
var list = document.getElementById('<%=LstDependentProduct.ClientID %>')
if (arr != null){
var ss=arr.split('$$$');
list.options[list.length] = new Option(ss[0],ss[1]);
}
}
function DelDependentProduct()
{
var lsit = document.getElementById('<%=LstDependentProduct.ClientID %>');
if(lsit.length==0){return false;}
lsit.options[lsit.selectedIndex]=null;
}
function SetHdnDependentValue()
{
var hdnDependent = document.getElementById('<%=HdnDependent.ClientID %>');
var dependentList = document.getElementById('<%=LstDependentProduct.ClientID %>');
var idList = "";
for(i=0;i<dependentList.options.length;i++)
{
if(i==0)
{
idList = dependentList.options[i].value;
}
else
{
idList = idList + "," + dependentList.options[i].value;
}
}
hdnDependent.value = idList;
}
function ValProcessFunction()
{
for (i = 0; i < Page_Validators.length; i++)
{
val = Page_Validators[i];
if (val.isvalid == false)
{
var id = val.id;
var controltovalidate = document.getElementById(val.controltovalidate);
var tempobj = controltovalidate;
var tabIndex;
while (tempobj)
{
if(tempobj.id != "" && tempobj.id.indexOf('Tabs')>=0)
{
if(tempobj.nodeName == "TR" || tempobj.nodeName == "TABLE" || tempobj.nodeName == "DIV")
{
for (i=0;i< 6;i++)
{
if(document.getElementById("Tabs" + i).id==tempobj.id)
{
document.getElementById("TabTitle" + i).className="titlemouseover";
document.getElementById("Tabs" + i).style.display="";
}
else
{
document.getElementById("TabTitle" + i).className="tabtitle";
document.getElementById("Tabs" + i).style.display="none";
}
}
break;
}
}
tempobj = tempobj.parentNode;
}
if (typeof(controltovalidate.focus) != "undefined" && controltovalidate.focus != null)
{
try
{
controltovalidate.focus();
}
catch(err)
{
}
}
break;
}
}
}
</script>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -