@model DTO.IntentionCustomerDTO
|
@using DTO;
|
@using zhengcaioa.Models;
|
@{
|
List<IntentionCustomerDTO> customer = ViewData["customer"] as List<IntentionCustomerDTO>; //拜访方式
|
|
|
}
|
@{
|
Layout = null;
|
}
|
|
<!DOCTYPE html>
|
<html>
|
<head>
|
<meta charset="utf-8">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
|
<meta name="description" content="">
|
<meta name="author" content="ThemeBucket">
|
<title>@(SiteConfig.SiteName)</title>
|
|
|
<style>
|
* {
|
font-family: Arial;
|
}
|
|
table, table tr th, table tr td {
|
border: 1px dashed black;
|
}
|
|
table {
|
min-height: 25px;
|
line-height: 25px;
|
text-align: left;
|
border-collapse: collapse;
|
margin-bottom: 50px
|
}
|
|
table tr td {
|
height: 20px;
|
}
|
|
table tr th {
|
width: 250px;
|
}
|
|
.adr {
|
width: 350px;
|
}
|
|
.title {
|
font-weight: bold
|
}
|
</style>
|
<script language="javascript" src="~/js/jquery.min.js" type="text/javascript"></script>
|
</head>
|
<body class="gray-bg" style="overflow:auto">
|
|
<button type="button" onclick="onprint()">打印</button>
|
<div id="printArea">
|
<div style=" ">
|
|
@foreach (var cust in customer)
|
{
|
<table class="table">
|
<tbody>
|
<tr>
|
<td><span class="title">寄件人:</span> </td>
|
<td><span class="title">收件人:</span>@cust.FName<span></span></td>
|
</tr>
|
<tr>
|
<td class="adr"><span class="title">寄件人地址:</span> </td>
|
<td class="adr"><span class="title">收件人地址:</span> <span>@cust.Address</span></td>
|
</tr>
|
<tr>
|
<td><span class="title">寄件人单位:</span> </td>
|
<td><span class="title">收件人单位:</span>@cust.Name</td>
|
</tr>
|
<tr>
|
<td><span class="title">寄件人电话:</span> </td>
|
<td><span class="title">收件人电话:</span>@cust.FTel<span></span></td>
|
</tr>
|
|
</tbody>
|
</table>
|
}
|
|
|
@*<table class="table">
|
<tbody>
|
<tr>
|
<td><span class="title">寄件人:</span> </td>
|
<td><span class="title">收件人:</span> <span></span></td>
|
</tr>
|
<tr>
|
<td class="adr"><span class="title">寄件人地址:</span> </td>
|
<td class="adr"><span class="title">收件人地址:</span> <span>四川省成都市武侯区</span></td>
|
</tr>
|
<tr>
|
<td><span class="title">寄件人单位:</span> </td>
|
<td><span class="title">收件人单位:</span> 王长春7</td>
|
</tr>
|
<tr>
|
<td><span class="title">寄件人电话:</span> </td>
|
<td><span class="title">收件人电话:</span> <span></span></td>
|
</tr>
|
|
</tbody>
|
</table>*@
|
</div>
|
</div>
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
var hh = document.body.clientHeight - $('.ibox-title').height() - $("#top").height() * 2 - 95;
|
$("#div_content").height(hh);
|
|
toastr.options = {
|
"closeButton": true,
|
"debug": false,
|
"progressBar": true,
|
"positionClass": "toast-bottom-right",
|
"onclick": null,
|
"showDuration": "300",
|
"hideDuration": "600",
|
"timeOut": "4500",
|
"extendedTimeOut": "600",
|
"showEasing": "swing",
|
"hideEasing": "linear",
|
"showMethod": "fadeIn",
|
"hideMethod": "fadeOut"
|
};
|
|
|
|
|
|
|
|
function printHtml(html) {
|
var bodyHtml = document.body.innerHTML;
|
document.body.innerHTML = html;
|
window.print();
|
document.body.innerHTML = bodyHtml;
|
}
|
function onprint() {
|
var html = $("#printArea").html();
|
printHtml(html);
|
}
|
|
|
|
|
function _pageAutoClose() {
|
parent.window._reloadPageData();
|
var index = parent.layer.getFrameIndex(window.name);
|
parent.layer.isRefresh = true;
|
parent.layer.closeAll('loading');
|
parent.layer.close(index);
|
return false;
|
}
|
</script>
|
</body>
|
</html>
|