ComplianceServer/oldcode/WEB/Views/Quality/ComplainCustomer/Detail.cshtml

54 lines
1.7 KiB
Plaintext

@using WX.CRM.WebHelper
@{
ViewBag.Title = "投诉明细";
Layout = "~/Views/Shared/_Index_Layout2.cshtml";
}
<div class="mvctool">
@Html.ToolButton("btnExport", "icon-export", "导出","Export_Click", true)
</div>
<div class="bas_datagrid">
<input type="hidden" id="hid_Resid" value=@ViewBag.CustomerID />
@Html.Raw(ViewBag.List)
</div>
<script type="text/javascript">
$(function () {
$('#tablist').tablegrid({
url: '/Quality/ComplainCustomer/GetDetailHtmlList',
height: $(window).height() - 130,
loadNow: true,
isPage: false,
data: GetControlValue
});
function GetControlValue() {
return { customerId: $("#hid_Resid").val() };
}
});
function onLoadSucced() {
$("#tablist").tablegrid("Search");
}
function frameReturnByClose() {
$("#modalwindow").window('close');
}
function frameReturnByReload(flag) {
$("#tablist").tablegrid("Load");
}
function frameReturnByMes(mes) {
$.messageBox5s('提示', mes);
}
function getDataGridHeader() {
var columns = $('#tablist').tablegrid("getAllHead");
return columns;
}
function GetIframeHtml(src) {
return "<iframe width='100%' height='98%' scrolling='no' frameborder='0' src='" + src + "'></iframe>";
}
function Export_Click() {
$("#modalwindow").html(GetIframeHtml("/Control/ExcelExport?Query=" + encodeURIComponent("/Quality/ComplainCustomer/ExportDetail?customerId=" + $("#hid_Resid").val())));
$("#modalwindow").window({ title: '导出', width: 480, height: 300, iconCls: 'icon-export' }).window('open');
}
</script>