|
-
- @{
- Layout = null;
- }
- @model Learun.Application.TwoDevelopment.EducationalAdministration.StuInfoFreshEntity
- <!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>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
- <meta name="renderer" content="webkit" />
- <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no" />
- <meta name="format-detection" content="telephone=no" />
- <title>学期成绩表</title>
- <meta name="keywords" content="学期成绩表" />
- <meta name="description" content="学期成绩表" />
- <script src="~/Content/js/jquery.js"></script>
- <script src="~/Content/Lodop/LodopFuncs.js"></script>
- <style id="style1">
- body,
- html {
- font-size: 13px;
- font-family: "微软雅黑";
- color: #333;
- overflow-x: hidden;
- }
-
- table {
- border-collapse: collapse;
- table-layout: fixed;
- }
-
- .title {
- font-size: 24px;
- text-align: center;
- }
-
- .table {
- width: 100%;
- font-size: 14px;
- border: 1px solid #000;
- margin-top: 10px;
- }
-
- .table td {
- border-top: 1px solid #000;
- border-left: 1px solid #000;
- padding: 8px 6px;
- line-height: 26px;
- width: 16.666667%;
- }
-
- .printTxt {
- font-size: 14px;
- line-height: 26px;
- }
-
- .btn {
- width: 300px;
- height: 40px;
- background: #7d7dec;
- text-align: center;
- line-height: 40px;
- border-radius: 4px;
- margin: 30px auto;
- color: #fff;
- cursor: pointer;
- }
- </style>
- </head>
-
-
-
- <body>
-
- <!-- / warpper -->
- <div class="printBox" style="overflow: hidden;">
- <div class="title">塔里木职业技术学院</div>
- <div class="title">2019年新生报到流程单</div>
- <table cellspacing="0" cellpadding="0" class="table">
- <tr>
- <td style="width:17%">姓名</td>
- <td style="width:23%">@Model.StuName</td>
- <td style="width:10%">专业</td>
- <td style="width:50%">@Model.MajorName</td>
- </tr>
- <tr>
- <td>身份证号</td>
- <td colspan="3">@Model.IdentityCardNo</td>
- </tr>
- <tr style="height:170px;">
- <td>招生就业处</td>
- <td colspan="3"></td>
- </tr>
- <tr style="height:170px;">
- <td>财务处</td>
- <td colspan="3"></td>
- </tr>
- <tr style="height:170px;">
- <td>辅导员</td>
- <td colspan="3"></td>
- </tr>
- </table>
- <div class="printTxt">此表由辅导员收齐交回招生就业处</div>
- </div>
- <!-- / warpper -->
- <div class="btn">打印</div>
- </body>
-
- <script>
- var html = $('.printBox').html();
- $('.btn').click(function () {
- AddPrintContent(html);
- });
-
- function AddPrintContent(html) {
- var myHtml = myHtml = html;
- var strBodyStyle = "<style>" + document.getElementById("style1").innerHTML + "</style>";
- var strFormHtml = strBodyStyle + "<body>" + myHtml + "</body>";
-
- LODOP = getLodop();
- LODOP.PRINT_INIT("个人授课表");
- LODOP.SET_PRINT_PAGESIZE(1, 0, 0, "A5"); //1 竖向 2横向
-
- LODOP.SET_PRINT_MODE("PRINT_DUPLEX", 2);
- LODOP.SET_PRINT_MODE("PRINT_DEFAULTSOURCE", 7);
-
- LODOP.ADD_PRINT_HTM(20, 17, '132mm', '200mm', strFormHtml);
- //打印预览
- // LODOP.PRINT_DESIGN()
- var TaskID1 = LODOP.PREVIEW();
- // 直接打印
- // var TaskID1=LODOP.PRINT();
-
- };
-
- </script>
- </html>
|