username@email.com
2025-05-21 a980cd04341d71216e0f59bd4b7327fe9fc50032
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SelectBusinessRange.aspx.cs" Inherits="CY.WebForm.Pages.sysInquiry.SelectBusinessRange" %>
 
<!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 () {
 
                cbkAllSelChecked();
                var isChecked = true;
 
                $(":checkbox[id*=cbkAllSel]").click(
                    function () {
                        if (this.checked) {
                            isChecked = true;
                        }
                        else {
                            isChecked = false;
                        }
                        $("#tbBusinessRangeList tbody input:checkbox").each(
                            function () {
                                $(this).attr("checked", isChecked);
                            }
                        );
                    }
                );
 
                $(":checkbox[id*=cbkSel]").click(
                    function () {
                        if (this.checked) {
                            isChecked = true;
                        }
                        else {
                            isChecked = false;
                        }
                        $(this).parent().parent().children().eq(2).find("input:checkbox").attr("checked", isChecked);
                        cbkAllSelChecked();
                    }
                );
 
                $(":checkbox[id*=cbkHBSel]").click(
                    function () {
                        if (this.checked) {
                            isChecked = true;
                        }
                        else {
                            isChecked = false;
                        }
                        if (isChecked) {
                            $(this).parents('td').parent('tr').children().eq(0).find("input:checkbox").attr("checked", true);
                        }
                        else {
                            if ($(this).parents('td').find(":checkbox[id*=cbkZBSel]").length > 0) {
                                if (!$(this).parents('td').find(":checkbox[id*=cbkZBSel]")[0].checked) {
                                    $(this).parents('td').parent().children().eq(0).find(":checkbox").attr("checked", false);
                                }
                            }
                            else {
                                $(this).parents('td').parent('tr').children().eq(0).find(":checkbox").attr("checked", false);
                            }
                        }
                        cbkAllSelChecked();
                    }
                );
 
                $(":checkbox[id*=cbkZBSel]").click(
                    function () {
                        if (this.checked) {
                            isChecked = true;
                        }
                        else {
                            isChecked = false;
                        }
                        if (isChecked) {
                            $(this).parents('td').parent().children().eq(0).find(":checkbox").attr("checked", true);
                        }
                        else {
                            if ($(this).parents('td').find(":checkbox[id*=cbkHBSel]").length > 0) {
                                if (!$(this).parents('td').find(":checkbox[id*=cbkHBSel]")[0].checked) {
                                    $(this).parents('td').parent().children().eq(0).find(":checkbox").attr("checked", false);
                                }
                            }
                            else {
                                $(this).parents('td').parent().children().eq(0).find(":checkbox").attr("checked", false);
                            }
                        }
                        cbkAllSelChecked();
                    }
                );
            }
 
         );
 
         //控制全选状态
         function cbkAllSelChecked()
         {
            var isAllChecked=true;
            $("#tbBusinessRangeList tbody input:checkbox").each(
                            function () {
                                if(!this.checked)
                                {
                                    isAllChecked=false;
                                }
                            }
            );
            $(":checkbox[id*=cbkAllSel]").attr("checked", isAllChecked);
        }
 
        function CheckSaveIsShowInquiry() {
            var msg = "";
            if (!$("#cbkIsShowInquiry").is(':checked')) {
                msg = "设置不显示";
            }
            else {
                msg = "设置显示";
            }
            msg += "报价到前台询价列表,是否确认?";
            var result = window.confirm(msg);
            if (result) {
                showWait();
            }
            return result;
        }
     </script>
</head>
<body>
    <form id="form1" runat="server">
     <div id="scrollContent">
        <table class="table2">
             <tr>
            <td align="left"><asp:CheckBox ID="cbkIsShowInquiry" runat="server" Checked="true"/>是否显示报价到前台询价列表</td>
            <td style="width: 50px;">
                   <asp:Button ID="btnSave2" Text="保存" runat="server" CssClass="Btn" OnClick="btnSave2_Click" OnClientClick="return CheckSaveIsShowInquiry()"/>
            </td>
            </tr>
            </table>
<table class="table2">
             <tr>
            <td align="left"><b>业务范围</b></td>
            <td style="width: 50px;">
                   <asp:Button ID="btnSave" Text="保存" runat="server" CssClass="Btn" OnClick="btnSave_Click" OnClientClick="showWait();"/>
            </td>
            </tr>
            </table>
            <asp:Repeater ID="RepBusinessRangeList" runat="server">
               <HeaderTemplate>
                    <table class="tableStyle" useClick="false"  useCheckBox="false" id="tbBusinessRangeList">
                    <thead>
                    <tr>
                         <th width="25"><input type="checkbox" id="cbkAllSel" /></th>
                         <th>印刷类型</th>
                         <th>合版印刷||专版印刷</th>
                         <th style="display:none"></th>
                    </tr>
                    </thead>
               </HeaderTemplate>
               <ItemTemplate>
                   <tbody>
                    <tr>
                        <td><asp:CheckBox ID="cbkSel" runat="server"/></td>
                        <td><%#Eval("PrintName")%></td>
                        <td><asp:CheckBox ID="cbkHBSel" runat="server" Text="合版印刷" style="margin-right:10px"/><asp:CheckBox ID="cbkZBSel" runat="server" Text="专版印刷"/></td>
                        <td style="display:none"><asp:Label ID="lblKeyId" runat="server" Text='<%#Eval("KeyId")%>'></asp:Label></td>
                    </tr>
                    </tbody>
               </ItemTemplate>
               <FooterTemplate>
                    </table>
               </FooterTemplate>
            </asp:Repeater>
             </div>
    </form>
</body>
</html>