username@email.com
2022-08-27 6e2b929cf381e2320ba6e7dec56c0371124d2b51
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
@model DTO.CooperatecustomCustomerDTO
@using DTO;
@using zhengcaioa.Models;
@{
    List<CooperatecustomCustomerDTO> customer = ViewData["customer"] as List<CooperatecustomCustomerDTO>; //拜访方式
 
 
}
@{
    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>&nbsp;&nbsp;</td>
                            <td><span class="title">收件人:</span>@cust.FName<span></span></td>
                        </tr>
                        <tr>
                            <td class="adr"><span class="title">寄件人地址:</span>&nbsp;&nbsp;</td>
                            <td class="adr"><span class="title">收件人地址:</span>&nbsp;&nbsp;<span>@cust.Address</span></td>
                        </tr>
                        <tr>
                            <td><span class="title">寄件人单位:</span>&nbsp;&nbsp;</td>
                            <td><span class="title">收件人单位:</span>@cust.Name</td>
                        </tr>
                        <tr>
                            <td><span class="title">寄件人电话:</span>&nbsp;&nbsp;</td>
                            <td><span class="title">收件人电话:</span>@cust.FTel<span></span></td>
                        </tr>
 
                    </tbody>
                </table>
            }
 
 
            @*<table class="table">
                    <tbody>
                        <tr>
                            <td><span class="title">寄件人:</span>&nbsp;&nbsp;</td>
                            <td><span class="title">收件人:</span>&nbsp;&nbsp;<span></span></td>
                        </tr>
                        <tr>
                            <td class="adr"><span class="title">寄件人地址:</span>&nbsp;&nbsp;</td>
                            <td class="adr"><span class="title">收件人地址:</span>&nbsp;&nbsp;<span>四川省成都市武侯区</span></td>
                        </tr>
                        <tr>
                            <td><span class="title">寄件人单位:</span>&nbsp;&nbsp;</td>
                            <td><span class="title">收件人单位:</span>&nbsp;&nbsp;王长春7</td>
                        </tr>
                        <tr>
                            <td><span class="title">寄件人电话:</span>&nbsp;&nbsp;</td>
                            <td><span class="title">收件人电话:</span>&nbsp;&nbsp;<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>