<%@ 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> 选择印刷类型:</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> 选择客户:</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>
|