<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="CY.WebForm.Pages.Templet.Default.WebForm1" %>
|
|
<!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>
|
|
<script src="../../js/utils/jquery-1.5.1.min.js" type="text/javascript"></script>
|
<uc:CMSHead ID="CMSHead1" runat="server" />
|
<link href="../../Styles/base.css" rel="stylesheet" type="text/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>
|
<script src="../../myPagination/js/myPagination/jquery.myPagination6.0.js" type="text/javascript"></script>
|
<link href="../../myPagination/js/myPagination/page.css" rel="stylesheet" type="text/css" />
|
<script type="text/javascript">
|
$(
|
|
function () {
|
$("#hidPrintTypeId").val($("#selPrintTypes").val());
|
LoadPrintType($("#selPrintTypes").val(), "1", "");
|
$("#selPrintTypes").change(
|
function () {
|
$("#divInquiryResult").hide();
|
$("#hidPrintTypeId").val($(this).val());
|
DelayLoadPrintType($(this).val(), "1", "");
|
}
|
);
|
}
|
);
|
|
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: 600 });
|
}
|
|
function form1Submit() {
|
$("#form1").ajaxSubmit(function (dataJsonStr) {
|
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\" style=\"width:200px\">" + inquiryList[i].FirmName + "</td>";
|
trInsideHtml += "<td style=\"width:200px\"><b style=\"color: #ff6600;\">¥" + Float2('' + inquiryList[i].TotalPrice + '') + "</b></td>";
|
trInsideHtml += "<td style=\"width:200px\">" + 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\" style=\"width:200px\">" + inquiryList[i].FirmName + "</td>";
|
trHtml += "<td style=\"width:200px\"><b style=\"color: #ff6600;\">¥" + Float2('' + inquiryList[i].TotalPrice + '') + "</b></td>";
|
trHtml += "<td style=\"width:200px\">" + inquiryList[i].Score + "分</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();
|
}
|
}
|
}
|
);
|
});
|
return false;
|
}
|
</script>
|
<script type="text/javascript" language="javascript">
|
|
$(function aa() {
|
$("#divInqu").load("TTTInsideInquiry.aspx", { "PrintTypeId": "45" }, function () { alert(document.forms.length) });
|
|
})
|
</script>
|
</head>
|
<body>
|
|
<div id="divInqu">
|
</div>
|
|
</body>
|
</html>
|