From 8a3f0daa373452e5397e15a33e574fb7b3245527 Mon Sep 17 00:00:00 2001 From: yxq Date: Wed, 1 Nov 2023 10:42:22 +0800 Subject: [PATCH] =?UTF-8?q?web=E6=AF=95=E4=B8=9A=E6=88=90=E7=BB=A9?= =?UTF-8?q?=E6=89=93=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/StuInfoGraduateController.cs | 2 +- .../Views/StuInfoGraduate/Index.cshtml | 1 + .../Views/StuInfoGraduate/Index.js | 8 + .../Views/StuInfoGraduate/PrintScore.cshtml | 297 +++++++++--------- .../Views/StuInfoGraduate/PrintScore.css | 93 +++--- 5 files changed, 204 insertions(+), 197 deletions(-) diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/StuInfoGraduateController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/StuInfoGraduateController.cs index 977f5f61c..185da9acd 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/StuInfoGraduateController.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/StuInfoGraduateController.cs @@ -42,7 +42,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers } [HttpGet] - public ActionResult Print(string keyValue) + public ActionResult PrintScore(string keyValue) { //毕业表 var StuInfoGraduateEntity = stuInfoGraduateIBLL.GetEntity(keyValue); diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoGraduate/Index.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoGraduate/Index.cshtml index fb85a042f..345ec20b0 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoGraduate/Index.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoGraduate/Index.cshtml @@ -37,6 +37,7 @@
 查看 diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoGraduate/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoGraduate/Index.js index b5bbc0b11..6d5651cd9 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoGraduate/Index.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoGraduate/Index.js @@ -20,6 +20,14 @@ var bootstrap = function ($, learun) { //打印简历表 $('#lr_print').on('click', function () { + learun.layerForm({ + id: 'print', + title: '毕业成绩单', + url: top.$.rootUrl + '/EducationalAdministration/StuInfoGraduate/PrintScore', + width: 1100, + height: 800, + btn: null + }); var keyValue = $('#gridtable').jfGridValue('StuId'); if (learun.checkrow(keyValue)) { learun.layerForm({ diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoGraduate/PrintScore.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoGraduate/PrintScore.cshtml index 7112ff559..65768832c 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoGraduate/PrintScore.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoGraduate/PrintScore.cshtml @@ -1,150 +1,151 @@ -@model Learun.Application.TwoDevelopment.EducationalAdministration.StuInfoBasicEntity -@*第一行不可删除*@ - - - - - - - 学生简历表 - @Html.AppendCssFile("/Areas/EducationalAdministration/Views/StuInfoGraduate/PrintScore.css") - @*此行不可删除*@ - - - -
-
-
学生简历表
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
姓名@Model.StuName学号@Model.StuNo性别@Model.GenderNo.ToString() -
-
出生日期@(Model.Birthday.HasValue ? Model.Birthday.Value.ToShortDateString().Replace("/", "-") : "")民族@Model.NationalityNo年级@Model.Grade
@Model.DeptNo专业@Model.MajorNo班级@Model.ClassNo
身份证号@Model.IdentityCardNo报到日期@(Model.RegisterDate.HasValue ? Model.RegisterDate.Value.ToShortDateString().Replace("/", "-") : "")
奖罚情况 - @foreach (var item in Model.StuEncourgementList) - { -
@(Model.StuEncourgementList.IndexOf(item) + 1)、@item.AcademicYearNo 学年第 @item.Semester 学期:@item.EncourgeDate.Value.ToShortDateString().Replace("/", "-") @item.EncourgeName @item.Fee
- } - @foreach (var item in Model.StuPunishmentList) - { -
@(Model.StuPunishmentList.IndexOf(item) + 1 + Model.StuEncourgementList.Count())、@item.AcademicYearNo 学年第 @item.Semester 学期:@item.PunishDate.Value.ToShortDateString().Replace("/", "-") @item.PunishName
- } -
学习成绩 - @foreach (var item in Model.StuScoreClassOneList) - { -
@item.AcademicYearNo 学年第 @item.Semester 学期
- foreach (var i in item.StuScoreList) - { -
@i.LessonName:@i.Score分;
- } - } -
-
- +@{ + ViewBag.Title = "学生学籍"; + Layout = "~/Views/Shared/_Index.cshtml"; +} +@Html.AppendCssFile("/Areas/EducationalAdministration/Views/StuInfoGraduate/PrintScore.css") +@Html.AppendJsFile("/Content/jquery/plugin/jqprint/jQuery.print.js") +
+  打印 +
黑龙江艺术职业学院学生毕业成绩单
+
+
学号:
+
姓名:
+
学历:
+
学制:
+
年级:
+
班级:
+
专业:
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
课程名称第一学年第二学年第三学年第四学年第五学年第六学年
第1学期第2学期第1学期第2学期第1学期第2学期第1学期第2学期第1学期第2学期第1学期第2学期
大学生创新创业222222----22-22--
大学生创新创业222222----22-22--
大学生创新创业222222----22-22--
大学生创新创业222222----22-22--
大学生创新创业222222----22-22--
大学生创新创业222222----22-22--
-
打印
- - - - - - +
+
门课程
+
打印时间:
+
+
+ diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoGraduate/PrintScore.css b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoGraduate/PrintScore.css index b57f9b8d7..f0947fc34 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoGraduate/PrintScore.css +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoGraduate/PrintScore.css @@ -1,81 +1,78 @@ table, tr, +td, td { padding: 0; margin: 0; border-collapse: collapse; } -table { - table-layout: fixed; +* { + color: #181819; font-size: 14px; } -.tableT { - text-align: center; - font-size: 20px; - margin-bottom: 15px; +.myPage { + background: linear-gradient(to bottom,#43A7FD,#5A8EFB) !important; + padding: 30px; + height: 100%; + zoom: 0.8; } -.table { - width: 100%; - text-align: center; - border-top: 1px solid #000; - border-right: 1px solid #000; +.tableTop, .tableBottom { + display: flex; + justify-content: space-between; + padding: 0 8px; } - .table tr { - border-bottom: 1px solid #000; + .tableTop > div, .tableBottom > div { + color: #fff !important; } - .table td { - border-left: 1px solid #000; - line-height: 20px; - padding: 8px 5px; + .tableTop span, .tableBottom span { + color: #fff !important; } -.tableImg { - height: 0; - overflow: hidden; - padding-bottom: 140%; +.title { + font-size: 20px; + color: #fff !important; + text-align: center; + margin-bottom: 12px; + width: 100%; +} + +.tableBox { + background: #fff !important; + border-radius: 8px; + padding: 8px 24px; + margin: 8px 0; } -.table img { +table { + table-layout: fixed; width: 100%; + text-align: center; } -.tableTxt { - text-align: left; +tr td { + padding: 3px 0; } -.table .table { - border: 0; +tr.header td { + padding: 8px 0; + border: 1px solid #fff; + background: #DFE9F2 !important; } - .table .table tr:last-child { - border-bottom: 0; - } +tr:not(.header):nth-child(2n) td { + background: #DFE9F2 !important; +} - .table .table td:first-child { - border-left: 0; - } -.btn { - width: 100px; - height: 34px; - line-height: 34px; - text-align: center; - margin: 30px auto; - border: 1px solid #ccc; - cursor: pointer; - border-radius: 4px; -} -.tableBox { - width: 90%; - margin: 30px auto; -} -#table { - /* display: none; */ +@media print { + .noPrint { + display: none; + } }