From 7c04e1b83e4234b222967c6f1c07fd549b777608 Mon Sep 17 00:00:00 2001 From: ndbs Date: Wed, 23 Mar 2022 16:52:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=A6=E7=94=9F=E5=AD=A6=E7=B1=8D=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E6=B7=BB=E5=8A=A0=E6=89=93=E5=8D=B0=E5=AD=A6=E7=B1=8D?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/StuInfoBasicController.cs | 65 +++ .../Views/StuInfoBasic/Index.cshtml | 1 + .../Views/StuInfoBasic/Index.js | 19 + .../Views/StuInfoBasic/printxjk.cshtml | 541 ++++++++++++++++++ .../Learun.Application.Web.csproj | 1 + 5 files changed, 627 insertions(+) create mode 100644 Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/printxjk.cshtml 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 49997356f..355498bc7 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 @@ -148,6 +148,71 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers return View(stuInfoBasicEntity); } + + + /// + /// 打印 + /// + /// + [HttpGet] + public ActionResult Printxjk(string keyValue) + { + var stuInfoBasicEntity = stuInfoBasicIBLL.GetStuInfoBasicEntity(keyValue); + + if (stuInfoBasicEntity == null) + { + return View(new StuInfoBasicEntity()); + } + //#region 获取附件名称 + //if (dispatchEntity.AttachmentName != null) + //{ + // string str = ""; + // string[] array = annexesFileIBLL.GetFileNames(dispatchEntity.AttachmentName).Split(','); + // if (array.Length > 0) + // { + // for (int i = 0; i < array.Length; i++) + // { + // if (array[i].Trim() != "") + // { + // str += array[i].Substring(0, array[i].IndexOf(".")) + ","; + // } + // } + // str.TrimEnd(','); + // } + // dispatchEntity.Reasons = str; + //} + //#endregion + + //#region 获取校长的签名盖章+ 批示+时间+阅 + ////var listTaskLog = nWFTaskIBLL.GetLogList(dispatchEntity.processId); + //var firstList = nWFTaskIBLL.GetLogList(dispatchEntity.processId).OrderBy(o => o.F_CreateDate).ToList(); + //for (int i = 1; i < firstList.Count; i++) + //{ + // if (i == 1) + // { + // dispatchEntity.Render = firstList[i].F_Des; + // ViewBag.pSList += firstList[i].F_CreateUserName + firstList[i].F_CreateDate + "阅" + "&"; + // } + //} + //var PrintList = nWFTaskIBLL.GetLogList(dispatchEntity.processId).GroupBy(o => o.F_CreateUserName).Select(o => new + //{ + // F_CreateDate = o.FirstOrDefault().F_CreateDate, + // F_CreateUserName = o.FirstOrDefault().F_CreateUserName, + //}); + //var newList = PrintList.Where(s => PrintList.Select(mo => mo.F_CreateDate).Contains(s.F_CreateDate)).OrderBy(s => s.F_CreateDate).ToList(); + //for (int i = 1; i < newList.Count; i++) + //{ + // if (!ViewBag.pSList.Contains(newList[i].F_CreateUserName)) + // { + // ViewBag.pSList += newList[i].F_CreateUserName + newList[i].F_CreateDate + "阅" + "&"; + // } + //} + //ViewBag.pSList = ViewBag.pSList.TrimEnd('&'); + //ViewBag.pSList = new List(ViewBag.pSList.Split('&')); + //#endregion + return View(stuInfoBasicEntity); + } + #endregion diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/Index.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/Index.cshtml index 480cbbc9e..415c0997c 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/Index.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/Index.cshtml @@ -66,6 +66,7 @@  查看异动  拍照  学生简历表 +  学籍卡打印 diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/Index.js index 22171f71c..bbd30124a 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/Index.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/Index.js @@ -286,6 +286,25 @@ var bootstrap = function ($, learun) { } }); + //打印学籍卡 + $('#lr_printxjk').on('click', function () { + var keyValue = $('#gridtable').jfGridValue('StuId'); + if (learun.checkrow(keyValue)) { + if (keyValue.indexOf(',') != -1) { + learun.alert.warning("只能选择一条记录进行查看!"); + return; + } + learun.layerForm({ + id: 'print', + title: '学籍卡打印', + url: top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/Printxjk?keyValue=' + keyValue, + width: 1100, + height: 800, + btn: null + }); + } + }); + }, // 初始化列表 initGird: function () { 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 new file mode 100644 index 000000000..aa05fa882 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/printxjk.cshtml @@ -0,0 +1,541 @@ +@model Learun.Application.TwoDevelopment.EducationalAdministration.StuInfoBasicEntity + + + + + + + 打印 + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj b/Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj index af53a4073..e8ac88aa5 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj @@ -1106,6 +1106,7 @@ +