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
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="InquiryOnLine.aspx.cs" Inherits="CY.WebForm.Pages.front.InquiryOnLine" ValidateRequest="false" %>
 
<%--<%@ Register Control="DMInquiry.ascx" tagprefix="c1"%>--%>
<!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:FrontQuote ID="FrontQuote1" runat="server" />
    <script src="../../js/jquery.form.js" type="text/javascript"></script>
    <link rel="stylesheet" type="text/css" href="../../myPagination/js/myPagination/page.css" />
    <script src="../../myPagination/js/myPagination/jquery.myPagination6.0.js" type="text/javascript"></script>
    <script src="../../js/Inquiry/Inquiry.js" type="text/javascript"></script>
    <script src="../../js/common/LodopFuncs.js" type="text/javascript"></script>
    <link href="../../js/common/PrintSample10.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <div style="position: absolute;">
        <object id="LODOP_OB" classid="clsid:2105C259-1E0C-4534-8141-A753534CB4CA" width="0" height="0">
            <embed id="LODOP_EM" type="application/x-print-lodop" width="0" height="0" pluginspage="/Pages/common/install_lodop32.exe"></embed>
        </object>
    </div>
    <uc:FrontHead ID="FrontHead1" runat="server" />
    <div class="w1000 mainbox">
        <div class="mt10 DivAd" value_forumname="在线询价" value_locationname="在线询价工序顶部横幅广告">
        </div>
        <div class="path">
            <strong>当前位置:</strong><a href="Home.aspx">网站首页</a> > <a href="/Inquiry/index.html">询价首页</a> >
            <%=PrintName%>在线询价</div>
        <div class="nypartL fl mt10">
            <div class="leftMemubox">
                <h2 class="mtitle">
                    在线询价</h2>
                <div class="leftMemu">
                    <script type="text/javascript">
                        $(function () {
                            var default_AcceptTypeId = "<%=AcceptTypeId %>";
                            var default_InvoiceId = "<%=InvoiceId %>";
                            $("#deliveryMode").val(default_AcceptTypeId);
                            $("#billMode").val(default_InvoiceId);
                        });
 
                        $("#firmName").live("blur",
                    function () {
                        form1Submit();
                    }
                );
 
                        $("#orderType").live("change",
                        function () {
                            form1Submit();
                        }
                    );
 
                        function Preview() {
                            try {
                                var copeDiv = $("#printDiv").clone();
 
                                copeDiv.find("#tbInquiryList thead tr").each(function () {
                                    $(this).find('th').eq(4).hide();
                                    $(this).find('th').eq(5).hide();
                                    $(this).find('th').eq(6).show();
                                    $(this).find('th').eq(7).show();
                                    $(this).find('th').eq(8).hide();
                                });
                                copeDiv.find("#tbInquiryList tbody tr ").each(function () {
                                    $(this).find('td').eq(5).hide();
                                    $(this).find('td').eq(6).hide();
                                    $(this).find('td').eq(7).show();
                                    $(this).find('td').eq(8).show();
                                    $(this).find('td').eq(9).hide();
                                });
 
                                LODOP = getLodop(document.getElementById('LODOP_OB'), document.getElementById('LODOP_EM'));
                                if ((LODOP == null) || (typeof (LODOP.VERSION) == "undefined")) return;
 
                                var strBodyStyle = "";
                                var strBodyStyle = "<link href=\"../../Styles/changes.css\" rel=\"stylesheet\" type=\"text/css\" />";
                                var strFormHtml = strBodyStyle + "<body>" + copeDiv.html() + "</body>";
                                LODOP.SET_PRINT_PAGESIZE(0, 2100, 2970, "A4");
                                LODOP.ADD_PRINT_HTM(0, 0, "100%", "100%", strFormHtml);
                                LODOP.PREVIEW();
                                copeDiv.remove();
 
                            } catch (e) {
 
                            }
                        };
 
                        function OpenInquiryDetail(obj) {
                            var hidFirmId = $(obj).next().val();
                            var num = $(obj).next().next().val();
                            $(obj).next().next().val(2);
                            //window.open("InquiryDetail.aspx?fid="+hidFirmId+"&num="+num, '询价详情', 'width=600px, top=(window.screen.availHeight-30-580)/2, left=(window.screen.availWidth-10-650)/2,toolbar=no,menubar=no,scrollbars=yes, resizable=no,location=no, status=no');
                            //window.showModalDialog("InquiryDetail.aspx?fid=" + hidFirmId + "&num=" + num,,"dialogWidth=600px;dialogHeight=400px"); 
                            showModalDialog("/Pages/front/InquiryDetail.aspx?fid=" + hidFirmId + "&num=" + num + "&tmp=" + (new Date()).valueOf(), null, 'dialogWidth:750px;dialogHeight:800px;status:no;');
                        }
 
 
 
                        function Order(fid) {
                            //        var hidIsLogin = $("#hidIsLogin").val();
                            //        if (hidIsLogin == "false") {
                            //            alertMsg('请登录后再下单');
                            //            return;
                            //        }
                            $.ajax({
                                url: '/Pages/front/InquiryOnLine.aspx?tmp' + (new Date()).valueOf(),
                                type: "POST",
                                data: "IsLogin=true&&fid=" + fid,
                                success: function (dataStr) {
                                    if (dataStr == "1") {
                                        Islogin('no');
                                    }
                                    else if (dataStr == "2") {
                                        alertMsg("自己不能给自己下单");
                                    }
                                    else {
                                        window.location.href = "/order/confirm/" + fid + ".html";
                                    }
                                }
                            });
 
                        }
 
                        function form1Submit() {
                            $("#form1").ajaxSubmit(function (dataJsonStr) {
                                CloseWaitFront();
                                var dataJson = eval('(' + dataJsonStr + ')');
                                var pageCount = dataJson.pageCount;
                                var inquiryList = dataJson.inquiryList;
                                var trHtml = "";
                                for (var i = 0; i < inquiryList.length; i++) {
                                    trHtml += "<tr style=\"margin: 0px 5px;\"><td style=\"border-bottom-color: #fff; width: 10px;\">&nbsp;</td>";
                                    trHtml += "<td align=\"center\"><a style='cursor: pointer;' onclick='ViewSellerInfo(\"" + inquiryList[i].FirmId + "\")'>" + inquiryList[i].FirmName + "</a></td>";
                                    trHtml += "<td><a  style='display:block;padding-top: 6px;'>" + inquiryList[i].LevelImg + "</a></td>";
                                    trHtml += "<td><b style=\"color: #ff6600;\">¥" + Float2('' + inquiryList[i].TotalPrice + '') + "</b></td>";
                                    trHtml += "<td>" + inquiryList[i].Score + "分</td>";
                                    trHtml += "<td><a class='CP' onclick=\"Order('" + inquiryList[i].FirmId + "')\" ><img src=\"../../images/Common/orders.gif\" /></a></td>";
                                    trHtml += "<td><a href=\"tencent://message/?uin=" + inquiryList[i].QQ + "\" class=\"qq\"><img src=\"../../images/Common/qqlx.gif\"/></a></td>";
                                    trHtml += "<td style='display:none'>" + inquiryList[i].ConstactPerson + "</td>";
                                    trHtml += "<td style='display:none;text-align:left;'>" + inquiryList[i].ConstactType + "</td>";
                                    trHtml += "<td><a onclick=\"OpenInquiryDetail(this)\" class=\"showbox CP \">查看详情</a><input type=\"hidden\" id=\"hidFirmId\" value=\"" + inquiryList[i].FirmId + "\"/><input type=\"hidden\" id=\"hidNum\" class=\"hidControl\" value=\"1\" /></td>";
                                    trHtml += "<td style=\"border-bottom-color: #fff; width: 10px;\">&nbsp;</td></tr>";
                                }
                                $("#tbInquiryList tbody").html("");
                                $("#tbInquiryList tbody").append(trHtml);
                                $("#divInquiryResult").show();
                                var pagination = $("#Pagin").myPagination(
            {
                currPage: $("#hidPageIndex").val(),
                pageCount: pageCount,
                ajax: {
                    on: false,
                    onClick: function (page) {
                        $("#hidPageIndex").val(page);
                        form1Submit();
                    }
                }
            }
            );
                            });
                            return false;
                        }
                    </script>
                    <uc:UIPrintTypeList ID="UIPrintTypeList1" runat="server" LinkUrl="/InquiryOnLine/"></uc:UIPrintTypeList>
                </div>
            </div>
        </div>
        <!--nypartL over-->
        <div class="nypartR fr mt10">
            <form id="form1" method="post" onsubmit="return form1Submit();">
            <input type="hidden" value="sumit" name="sumit" />
            <input type="hidden" id="hidPrintTypeId" value='<%=PrintTypeId %>' name="hidPrintTypeId" />
            <input type="hidden" id="hidPageIndex" value="1" name="hidPageIndex" />
            <input type="hidden" id="hidIsLogin" value='<%=IsLogin%>' />
            <input type="hidden" id="hidOrderId" name="hidOrderId" value="" />
            <input type="hidden" id="hidIsDemand" value="" name="hidIsDemand" />
            <div class="nypartR_t">
                <div class="popupMenu fr" id="PCACCommon" style="padding-top: 5px">
                </div>
                <b>
                    <%=PrintName%>自助报价</b>
            </div>
            <div class="nyrC">
                <div id="divInquiry">
                </div>
                <table class="table2" style="border: none;">
                    <tbody>
                        <tr>
                            <td style="width: 65px; padding-right: 0px; text-align: right;">
                                交货方式:
                            </td>
                            <td style="text-align: left; padding-left: 0px">
                                <select class="selectLaber" id="deliveryMode" name="deliveryMode">
                                    <option value="104">自提</option>
                                    <option value="105">代发货运</option>
                                    <option value="106">送货上门</option>
                                    <option value="107">指定货运公司</option>
                                </select>
                            </td>
                            <td style="width: 65px; padding-right: 0px; text-align: right;">
                                票据:
                            </td>
                            <td style="text-align: left; padding-left: 0px">
                                <select class="selectLaber" id="billMode" name="billMode">
                                    <option value="108">不含税价</option>
                                    <option value="109">普通发票</option>
                                    <option value="110">增值税票</option>
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 60px; padding-right: 0px; text-align: right;">
                                备注:
                            </td>
                            <td colspan="3" style="padding-left: 0px;">
                                <textarea style="width: 100%; height: 30px;" class="Ber" cols="20" id="remarks" name="remarks" rows="2"></textarea>
                            </td>
                        </tr>
                    </tbody>
                </table>
                <table class="table2" style="border: none;">
                    <tbody>
                        <tr>
                            <td colspan="5">
                                <a class="CP" id="Inquiry" style="padding-right: 20px">
                                    <img src="../../images/Common/jsjg.gif"></a> <a class="CP" id="InquiryDemand">
                                        <img src="../../images/Common/jsjigfbxq.gif"></a>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
            <div id="divInquiryResult" class="nyrC" style="display: none">
                <table class="table2" style="border: none;">
                    <tbody>
                        <tr>
                            <td align="right">
                                排序方式:
                            </td>
                            <td width="200" align="left">
                                <select class="selectLaber" id="orderType" name="orderType">
                                    <option value="0">价格由低到高</option>
                                    <option value="1">价格由高到低</option>
                                    <option value="2">交易量由低到高</option>
                                    <option value="3">交易量由高到低</option>
                                    <option value="4">信誉度由底到高</option>
                                    <option value="5">信誉度由高到低</option>
                                </select>
                            </td>
                            <td width="60" align="right">
                                指定商家:
                            </td>
                            <td align="left">
                                <input name="firmName" id="firmName" class="sxinput" type="text" />
                            </td>
                            <td>
                                <a id="print" href="javascript:Preview()" style="margin-left: 20px; padding-bottom: 1px;"><span style="color: #1D85B9;">打印报价列表</span></a>
                            </td>
                        </tr>
                    </tbody>
                </table>
                <div id="printDiv" style="text-align: center">
                    <table class="table4" id="tbInquiryList">
                        <thead>
                            <tr>
                                <th colspan="2" style="padding-left: 20px;">
                                    报价厂商
                                </th>
                                <th>
                                    信誉
                                </th>
                                <th>
                                    总价
                                </th>
                                <th>
                                    积分
                                </th>
                                <th>
                                    立即下单
                                </th>
                                <th>
                                    QQ交谈
                                </th>
                                <th style="display: none">
                                    联系人
                                </th>
                                <th style="display: none;">
                                    联系方式
                                </th>
                                <th colspan="2" style="padding-right: 30px;">
                                    查看详情
                                </th>
                            </tr>
                        </thead>
                        <tbody>
                        </tbody>
                    </table>
                </div>
                <div id="Pagin">
                </div>
            </div>
            </form>
            <script type="text/javascript">
                PCAC('<%=CY.Config.WebInfo.Instance.WebProvinceName %>', '<%=CY.Config.WebInfo.Instance.WebCityName %>', "", "Name"); //城市数据存名称用Name,存编号则空字符
                $("#selectProvince").hide();
            </script>
        </div>
        <!--nypartR over-->
        <p class="clear">
        </p>
    </div>
    <!--mainbox Over-->
    <p class="clear">
    </p>
    <uc:FrontFoot ID="FrontFoot1" runat="server" />
</body>
</html>