From 9d5e8dc2a2de626289e0c6e1d4c940f85ae99420 Mon Sep 17 00:00:00 2001 From: ndbs Date: Thu, 24 Mar 2022 11:31:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=8D=B0=E5=AD=A6=E7=94=9F=E5=AD=A6?= =?UTF-8?q?=E7=B1=8D=E4=BF=A1=E6=81=AF=20=E8=BF=9B=E8=A1=8C=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/StuInfoBasicController.cs | 8 +- .../Views/StuInfoBasic/printxjk.cshtml | 877 +++++++++--------- 2 files changed, 466 insertions(+), 419 deletions(-) diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/StuInfoBasicController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/StuInfoBasicController.cs index 355498bc7..4b0155d42 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/StuInfoBasicController.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/StuInfoBasicController.cs @@ -158,11 +158,17 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers public ActionResult Printxjk(string keyValue) { var stuInfoBasicEntity = stuInfoBasicIBLL.GetStuInfoBasicEntity(keyValue); - + ViewBag.PrintDate = DateTime.Now.ToDate(); if (stuInfoBasicEntity == null) { return View(new StuInfoBasicEntity()); } + stuInfoBasicEntity.Photo = annexesFileIbll.GetEntityByFolderId(stuInfoBasicEntity.Photo)?.F_FilePath; + if (!string.IsNullOrEmpty(stuInfoBasicEntity.Photo)) + { + stuInfoBasicEntity.Photo = stuInfoBasicEntity.Photo.Substring(stuInfoBasicEntity.Photo.IndexOf("Resource") - 1); + } + //#region 获取附件名称 //if (dispatchEntity.AttachmentName != null) //{ diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/printxjk.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/printxjk.cshtml index aa05fa882..fbfe1be98 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/printxjk.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/printxjk.cshtml @@ -1,487 +1,486 @@ @model Learun.Application.TwoDevelopment.EducationalAdministration.StuInfoBasicEntity + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - - - 打印 - - - + + 打印 + + + + + #headerInfo td { + width: 15%; + height: 44px; + border: 1px solid #222; + text-align: center; + /* word-wrap: break-word; + word-break: normal; */ + page-break-after: always; + } + media print { + .pageBreak { + page-break-after: always; + } + .noPrint { + display: none; + } + } + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
第一学期
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
第二学期
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
第三学期
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
第四学期
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
第五学期
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
第六学期
+ -