<%@ 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;\"> </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;\"> </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>
|