";
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 += " ";
trHtml += "
" + inquiryList[i].FirmName + "";
trHtml += "
" + inquiryList[i].LevelImg + "";
trHtml += "
¥" + Float2('' + inquiryList[i].TotalPrice + '') + "";
trHtml += "" + inquiryList[i].Score + "分";
trHtml += "
";
trHtml += "
";
trHtml += "" + inquiryList[i].ConstactPerson + "";
trHtml += "" + inquiryList[i].ConstactType + "";
trHtml += "
查看詳情";
trHtml += " ";
}
$("#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;
}