username@email.com
2025-05-15 6fe02a16e55f17e45a3997171e1b2284d45af25b
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
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="InsideInquiry.aspx.cs" Inherits="CY.WebForm.Pages.business.InsideInquiry" %>
 
<!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" />
    <link rel="stylesheet" type="text/css" href="../../Styles/base.css" />
    <link href="../../Styles/changes.css" rel="stylesheet" type="text/css" />
    <link href="../../Styles/ParticularWQJ.css" rel="stylesheet" type="text/css" />
    <script src="../../js/Inquiry/Inquiry.js" type="text/javascript"></script>
    <script src="../../js/business/Order.js" type="text/javascript"></script>
    <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/common/LodopFuncs.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(
 
            function () {
                //默认选择DM单
                if ($("#selPrintTypes option[value='14']").length > 0) {
                    $("#selPrintTypes").val(14);
                }
                $("#hidPrintTypeId").val($("#selPrintTypes").val());
                var varItem = new Option("陌生客户", "-1");
                $("#selCustomer")[0].options.add(varItem);
                $("#selCustomer").val("-1");
                SelectAddSearch();
 
                LoadPrintType($("#selPrintTypes").val(), "1", "");
                $("#selPrintTypes").change(
                    function () {
                        $("#divInquiryResult").hide();
                        $("#hidPrintTypeId").val($(this).val());
                        DelayLoadPrintType($(this).val(), "1", "");
                    }
                );
            }
        );
 
                function Preview() {
                    try {
 
                        var allHtml = "";
 
                        var insideDiv = $("#divInsideInquiry").clone();
 
                        insideDiv.find("#tbInsideInquiryList").css("width", "700px");
                        insideDiv.find("#tbInsideInquiryList tbody").each(
                            function () {
                                $(this).find('td').eq(2).hide();
                            }
                        );
 
                        var copeDiv = $("#printDiv").clone();
 
                        copeDiv.find("#tbInquiryList").css("width", "700px");
 
                copeDiv.find("#tbInquiryList thead tr").each(
                    function () {
                        $(this).find('th').eq(0).text("报价厂商");
                        $(this).find('th').eq(4).show();
                        $(this).find('th').eq(5).show();
                        $(this).find('th').eq(6).hide();
                    }
                 );
                        copeDiv.find("#tbInquiryList tbody tr ").each(
                    function () {
                        $(this).find('td').eq(4).show();
                        $(this).find('td').eq(5).show();
                        $(this).find('td').eq(6).hide();
                    }
                 );
                    var addDiv = "<div style=\"text-align: left;font-size:12px\">其他厂商报价:</div>"
                    allHtml = insideDiv.html() + addDiv + copeDiv.html();
                        var LODOP = getLodop(document.getElementById('LODOP_OB'), document.getElementById('LODOP_EM'));
                        var strBodyStyle = "";
                        var strBodyStyle = "<link href=\"../../Styles/changes.css\" rel=\"stylesheet\" type=\"text/css\" />";
                        var strFormHtml = strBodyStyle + "<body>" + allHtml + "</body>";
                        LODOP.SET_PRINT_PAGESIZE(0, 2100, 2970, "A4");
                        //            LODOP.ADD_PRINT_TEXT(50, 231, 260, 39, "报价列表");
                        LODOP.ADD_PRINT_HTM(0, 0, "100%", "100%", strFormHtml);
                        $(".warning").remove();
                        LODOP.PREVIEW();
                        $(".warning").remove();
                        copeDiv.remove();
 
                    } catch (e) {
 
                    }
                };    
 
 
                function OpenInquiryDetail(obj) {
                    var hidFirmId = $(obj).next().val();
                    var hidCustomerId = $("#selCustomer").val();
//                    window.open("InsideInquiryDetail.aspx?fid=" + hidFirmId + "&Cus=" + hidCustomerId, '询价详情', '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');
                    top.Dialog.open({ URL: "/Pages/business/InsideInquiryDetail.aspx?fid=" + hidFirmId + "&Cus=" + hidCustomerId, Title: "工艺详情", Height: 800,Width:710 });
                }
 
                $("#firmName").live("blur",
                    function () {
                        form1Submit();
                    }
                );
 
                $("#orderType").live("change",
                        function () {
                            form1Submit();
                        }
                    );
 
                function form1Submit() {
                    $("#form1").ajaxSubmit(function (dataJsonStr) {
                        CloseWaitFront();
                        var dataJson = eval('(' + dataJsonStr + ')');
                        var pageCount = dataJson.pageCount;
                        var inquiryList = dataJson.inquiryList;
                        var trInsideHtml = "";
                        var trHtml = "";
                        for (var i = 0; i < inquiryList.length; i++) {
                            if (i == 0) {
                                trInsideHtml += "<tr>";
                                //                                trInsideHtml += "<td align=\"center\">" + inquiryList[i].FirmName + "</td>";
                                //                                trInsideHtml += "<td><a  style='display:block;padding-top: 6px;'>" + inquiryList[i].LevelImg + "</a></td>";
                                trInsideHtml += "<td>本厂报价:<b style=\"color: #ff6600;\">¥" + Float2('' + inquiryList[i].TotalPrice + '') + "</b></td>";
                                trInsideHtml += "<td>积分:" + inquiryList[i].Score + "分</td>";
                                trInsideHtml += "<td><a onclick=\"OpenInquiryDetail(this)\" class=\"showbox\">查看详情</a><input type=\"hidden\" id=\"hidFirmId\" value=\"" + inquiryList[i].FirmId + "\"/></td>";
                                trInsideHtml += "</tr>";
                            }
                            else {
                                trHtml += "<tr>";
                                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 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\">查看详情</a><input type=\"hidden\" id=\"hidFirmId\" value=\"" + inquiryList[i].FirmId + "\"/></td>";
                                trHtml += "</tr>";
                            }
                        }
                        $("#tbInsideInquiryList tbody").html("");
                        $("#tbInsideInquiryList tbody").append(trInsideHtml);
 
                        $("#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();
                                }
                            }
                        }
                        );
                        window.scrollTo(0, document.documentElement.scrollHeight - document.documentElement.clientHeight);
                    });
                    return false;
                }
    </script>
</head>
<body>
    <form id="form1" method="post" onsubmit="return form1Submit();">
     <div id="printObjectDiv" style="height:0px">
         <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_lodop.exe"></embed>
             </object> 
    </div>
    <input type="hidden" value="sumit" name="sumit"/>
    <input type="hidden" id="hidPrintTypeId" value='' name="hidPrintTypeId"/>
    <input type="hidden" id="hidPageIndex" value="1" name="hidPageIndex" />
    <input type="hidden" id="hidOrderId" value=""/>
    <div class='printTypeEdit'>
        <table style=" width:100%;">
            <tr>
                <td width="220">
                    <strong>&#12288;选择印刷类型:</strong>
                    <select name="selPrintTypes" id="selPrintTypes" keepdefaultstyle='true'>
                         <%
                             CY.BLL.Sys.SysInquiry_PrintingTypeBLL _printTypeBLL = new CY.BLL.Sys.SysInquiry_PrintingTypeBLL();
                             IEnumerable<CY.Model.SysInquiry_PrintingType> typeList = _printTypeBLL.SelectUsedModlesByFirm(CurrentUser.MemberId);
                             foreach (CY.Model.SysInquiry_PrintingType printType in typeList)
                            {
                        %>
                        <option value="<%=printType.KeyId%>"><%=printType.PrintName%></option>
                        <%
                            }
                        %>    
                    </select>
                </td>
                <td>
                     <strong>&#12288;选择客户:</strong>
                    <select id="selCustomer" name="selCustomer" keepdefaultstyle='true' SelInputHtml="True" sign="">
                        <%
                            CY.BLL.OA_CorporateClientsBLL _clientBLL = new CY.BLL.OA_CorporateClientsBLL();
                            IEnumerable<CY.Model.OA_CorporateClients> clientList = _clientBLL.SelectListByFirmId(CurrentUser.MemberId);
                            foreach (CY.Model.OA_CorporateClients client in clientList)
                            {
                        %>
                        <option value="<%=client.Keyid%>"><%=client.CompanyName%></option>
                        <%
                            }
                        %>    
                    </select>
                    
                </td>
                <td width="200">
                   <div class="popupMenu fr" id="PCACCommon">
                    </div>
                </td>
            </tr>
        </table>
    </div>
    <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" keepdefaultstyle='true' ><option value="104">自提</option>
<option value="105" selected="selected">代发货运</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" keepdefaultstyle='true' ><option value="108">不含税价</option>
<option value="109">普通发票</option>
<option value="110">增值税票</option>
</select>
                    </td>
                </tr>
                <tr style="display:none">
                    <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">
<img src="../../images/Common/jsjg.gif"></a> 
</td>
</tr>
</tbody>
</table>
<div id="divInquiryResult"  style="display:none">
<div id="divInsideInquiry">
<table class="table4" id="tbInsideInquiryList">
       <%-- <thead>
               <tr>
                    <th colspan="5">内部询价</th>
               </tr>
        </thead>--%>
        <tbody>
        </tbody>
</table>
</div>
 <table class="table2" style="border: none;">
<tbody>
    <tr>
<td align="right">排序方式:</td>
<td width="200" align="left">
    <select class="selectLaber" id="orderType" name="orderType" keepdefaultstyle='true'>
    <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" style="padding-right:0;">指定商家:</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>其他报价厂商</th>
                    <th>信誉</th>
                    <th>总价</th>
                    <th>积分</th>
                    <th style="display:none">联系人</th>
                    <th style="display:none;">联系方式</th>
                    <th>查看详情</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>
</body>
</html>