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
@using DTO;
@{
    ViewBag.Title = "Liaotian";
    Layout = null;
    List<LiaotianDTO> liaotianDTOs = ViewBag.listLiaotianDTO as List<LiaotianDTO>; //问题类型
}
 
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta http-equiv="Pragma" content="no-cache">
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <meta http-equiv="Cache-Control" content="no-cache">
    <meta http-equiv="Expires" content="0">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <meta name="renderer" content="webkit">
    <title>@SiteConfig.SiteName</title>
    <meta name="keywords" content="@SiteConfig.Keywords">
    <meta name="description" content="@SiteConfig.Description">
    <meta name="author" content="@SiteConfig.Author">
    <link rel="icon" type="image/x-icon" href="@SiteConfig.ShortcutIcon">
    <!-- uc强制竖屏 -->
    <meta name="screen-orientation" content="portrait">
    <!-- QQ强制竖屏 -->
    <meta name="x5-orientation" content="portrait">
    <!-- UC强制全屏 -->
    <meta name="full-screen" content="yes">
    <!-- QQ强制全屏 -->
    <meta name="x5-fullscreen" content="true">
    <!--[if lt IE 9]>
    <meta http-equiv="refresh" content="0;ie.html" />
    <![endif]-->
    <style type="text/css">
        body {
            text-align: center;
            font-size: 12px;
        }
        table {
            border-collapse: collapse;
            border: none;
            width: 900px;
           margin:auto;
           text-align:left;
        }
 
        td {
            border: solid #e5e5e5 1px;
        }
    </style>
</head>
<body>
    @if (liaotianDTOs != null && liaotianDTOs.Count > 0)
    {
    <table>
        <tr>
 
            <td style="width:30%;border:none;text-align:left;"> 问题类别: @liaotianDTOs[0].Questiontype</td>
            <td style="width:70%;border:none;text-align:left;"> 题目类别: @liaotianDTOs[0].Problemtype</td>
        </tr>
    </table>
 
    <table>
        @*<tr>
            <td style="width:10%;"> 问题类别</td>
            <td style="width:10%;"> 题目类别</td>
            <td style="width:30%;"> 问题</td>
            <td style="width:50%;"> 回答</td>
        </tr>*@
 
 
        @{
            int i = 1;
        }
 
        @foreach (var liaotianDTO in liaotianDTOs)
        {
 
            <tr>
                <td style="width:5%;text-align:center;">  @i</td>
                <td> 问: @liaotianDTO.Question</td>
            </tr>
            <tr>
                <td colspan="2">答: @liaotianDTO.Anwser</td>
            </tr>
            <tr>
                <td colspan="2">适用法条: @liaotianDTO.Shiyongfatiao</td>
            </tr>
            i++;
        }
 
    </table>
    }
    </body>
<script type="text/javascript">
    window.print();
</script>
</html >