<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TTTInsideInquiry.aspx.cs" Inherits="CY.WebForm.Pages.business.TTTInsideInquiry" %>
|
|
<!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" />--%>
|
<uc:FrontQuote ID="FrontQuote1" runat="server" />
|
<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 type="text/javascript">
|
$(
|
|
function () {
|
var printTypeId = '<%=Request["PrintTypeId"]%>'
|
|
$("#hidPrintTypeId").val(printTypeId);
|
|
LoadPrintType(printTypeId, "1", "");
|
|
// $("#selPrintTypes").change(
|
// function () {
|
// $("#divInquiryResult").hide();
|
// $("#hidPrintTypeId").val($(this).val());
|
// DelayLoadPrintType($(this).val(), "1","");
|
// }
|
// );
|
}
|
);
|
|
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("TTTInsideInquiryDetail.aspx?fid=" + hidFirmId + "&num=" + num + "&tmp=" + (new Date()).valueOf(), null, 'dialogWidth:750px;dialogHeight:800px;status:no;');
|
}
|
|
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\" 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();
|
|
});
|
return false;
|
}
|
</script>
|
</head>
|
<body>
|
<form id="form1" method="post" onsubmit="return form1Submit();">
|
<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" name="hidOrderId" value="" />
|
<div class='printTypeEdit' style="display: none">
|
<table style="width: 700px; display: none">
|
<tr>
|
<td width="200">
|
<strong> 选择印刷类型:</strong>
|
<select name="selPrintTypes" id="selPrintTypes" keepdefaultstyle='true'>
|
<%Guid FirmId = CY.Infrastructure.Common.MyConvert.ConvertToGuid(Request["BussinessID"]);%>
|
<%
|
CY.BLL.Sys.SysInquiry_PrintingTypeBLL _printTypeBLL = new CY.BLL.Sys.SysInquiry_PrintingTypeBLL();
|
IEnumerable<CY.Model.SysInquiry_PrintingType> typeList = _printTypeBLL.SelectUsedModlesByFirm(FirmId);
|
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'>
|
<%
|
CY.BLL.OA_CorporateClientsBLL _clientBLL = new CY.BLL.OA_CorporateClientsBLL();
|
IEnumerable<CY.Model.OA_CorporateClients> clientList = _clientBLL.SelectListByFirmId(FirmId);
|
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" keepdefaultstyle='true' name="deliveryMode">
|
<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" keepdefaultstyle='true' 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:50px;" 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">
|
<table class="table4" id="tbInsideInquiryList">
|
<thead>
|
<tr>
|
<th colspan="4">
|
询价结果
|
</th>
|
</tr>
|
</thead>
|
<tbody>
|
</tbody>
|
</table>
|
</div>
|
</form>
|
<%--<script type="text/javascript">
|
PCAC('3031', '3032', ""); //城市数据存名称用Name,存编号则空字符
|
</script>--%>
|
</body>
|
</html>
|