<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FastSetByFirm.aspx.cs" Inherits="CY.WebForm.Pages.sysInquiry.FastSetByFirm" %>
|
|
<!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>
|
<uc:CMSHead ID="CMSHead1" runat="server" />
|
<script type="text/javascript">
|
$(
|
function () {
|
var num = 0;
|
$("#tbFastSet tbody #btnSure").eq(0).each(
|
function () {
|
$(this).show();
|
}
|
);
|
|
$("#tbFastSet tbody #btnSure").eq(0).click(
|
function () {
|
var price = $(this).parent().find("[id*=txtPrice]").val();
|
var msg = "确定要批量设置全部类型的系统价格比例为" + price;
|
top.Dialog.confirm(msg, function () {
|
SetValue(price);
|
}, function () {
|
return false;
|
});
|
}
|
);
|
}
|
);
|
|
function SetValue(value) {
|
$("#tbFastSet tbody").find("[id*=txtPrice]").val(value);
|
}
|
</script>
|
</head>
|
<body>
|
<form id="form1" runat="server">
|
<div id="scrollContent">
|
<table class="table2" style="margin-top:0px">
|
<tr>
|
<td align="left"><b>快速设置价格(<span style="color:Red">注:最终价格=系统初始价格×设置比例,但是如果您设置自己的询价价格,快速价格设置失效</span>)</b></td>
|
<td style="width: 50px;">
|
<label class="Btnb">
|
<asp:Button ID="btnSave" Text="保存" runat="server" CssClass="Btn" OnClick="btnSave_Click" OnClientClick="showWait();"/>
|
</td>
|
</tr>
|
</table>
|
<%--<table class="table2" style="margin-top:0px; margin-bottom:0px">
|
<tr>
|
<td align="left">批量设置:<b style="color: Red;">我的价格</b> = 系统价格 ×
|
<input type="text" id="txtFastValue" value="100" class="validateFloat"/>
|
% <input type="button" id="btnSure" value="确定" /></td>
|
</tr>
|
</table>--%>
|
<asp:Repeater ID="RepFastSetList" runat="server">
|
<HeaderTemplate>
|
<table class="tableStyle" useMultColor="true" id="tbFastSet">
|
<thead>
|
<tr>
|
<th>印刷类型</th>
|
<th>系统价格比例(%)</th>
|
<th style="display:none"></th>
|
</tr>
|
</thead>
|
</HeaderTemplate>
|
<ItemTemplate>
|
<tbody>
|
<tr>
|
<td><%#Eval("PrintTypeName")%></td>
|
<td><asp:TextBox ID="txtPrice" Text='<%#GetDecimalStr(Eval("FastValue"))%>' runat="server" CssClass="validateFloat"></asp:TextBox><input type="button" id="btnSure" value="确定设置全部类型" style="display:none"/></td>
|
<td style="display:none"><asp:Label ID="lblPrintTypeId" Text='<%#Eval("PrintTypeId")%>' runat="server"></asp:Label></td>
|
</tr>
|
</tbody>
|
</ItemTemplate>
|
<FooterTemplate>
|
</table>
|
</FooterTemplate>
|
</asp:Repeater>
|
</div>
|
</form>
|
</body>
|
</html>
|