1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<%@ 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>