From 55e852854d06126ee3a24eb786c5460aa5ef2282 Mon Sep 17 00:00:00 2001 From: edy Date: Fri, 2 Jul 2021 18:27:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B6=E6=96=87=E9=80=9A=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/DispatchController.cs | 31 ++- .../Views/Dispatch/Form.cshtml | 54 ++--- .../Views/Dispatch/Form.js | 1 + .../Views/Dispatch/FormView.cshtml | 66 +++--- .../Views/Dispatch/FormView.js | 2 +- .../Views/Dispatch/Index.js | 77 +++---- .../Views/Dispatch/IndexXF.js | 77 +++---- .../Views/Dispatch/Print.cshtml | 194 +++++++++++------- .../Dispatch/DispatchEntity.cs | 5 +- 9 files changed, 299 insertions(+), 208 deletions(-) diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/DispatchController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/DispatchController.cs index f32fb6b14..793b5e950 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/DispatchController.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/DispatchController.cs @@ -194,12 +194,14 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers { return View(new DispatchEntity()); } + #region 获取附件名称 if (dispatchEntity.AttachmentName != null) { dispatchEntity.AttachmentName = annexesFileIBLL.GetFileNames(dispatchEntity.AttachmentName); } + #endregion - #region 读取数据 + #region 读取标题和办公室 if (dispatchEntity.DisTitle != null) { var Model = dataItemIBLL.GetDetailList("DisPatch"); @@ -224,14 +226,31 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers } #endregion - //获取校长的签名盖章 + //获取校长的签名盖章 批示+时间+阅 var listTaskLog = nWFTaskIBLL.GetLogList(dispatchEntity.processId); var nwfTaskLogEntity = listTaskLog.FirstOrDefault(a => a.F_TaskUserName == "超级管理员"); - if (nwfTaskLogEntity != null) + var PrintList = nWFTaskIBLL.GetLogList(dispatchEntity.processId).OrderByDescending(o => o.F_Id).ToList(); + string strnull = " "; + if (listTaskLog.Count() > 0) { - ViewBag.StampImg = nwfTaskLogEntity.F_StampImg; - ViewBag.SignImg = nwfTaskLogEntity.F_SignImg; - ViewBag.F_Des = nwfTaskLogEntity.F_Des; + for (int i = 1; i < PrintList.Count; i++) + { + if (i == 1) + { + dispatchEntity.Render = PrintList[i].F_Des; + ViewBag.StampImg = nwfTaskLogEntity.F_StampImg; + ViewBag.SignImg = nwfTaskLogEntity.F_SignImg; + } + + dispatchEntity.Listarray += PrintList[i].F_CreateUserName + strnull + PrintList[i].F_CreateDate + strnull + "阅" + "&"; + //ViewBag.Time += PrintList[i].F_CreateDate + " "; + //ViewBag.Remark += "阅" + "&"; + } + dispatchEntity.Listarray = dispatchEntity.Listarray.TrimEnd('&'); + List aaList = new List(dispatchEntity.Listarray.Split('&')); + ViewBag.aaList = aaList; + //ViewBag.Time = ViewBag.Time.ToString().TrimEnd('&'); + //ViewBag.Remark = ViewBag.Remark.TrimEnd('&'); } return View(dispatchEntity); } diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Dispatch/Form.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Dispatch/Form.cshtml index 45b3f451f..511c4f05f 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Dispatch/Form.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Dispatch/Form.cshtml @@ -3,60 +3,66 @@ Layout = "~/Views/Shared/_Form.cshtml"; }
-
-
标题
-
+ -
+
来文单位*
-
+
*
-
+
*
-
+
份数*
-
+
*
-
+
*
-
+
*
-
事由
+
事       由
-
附件
+
附       件
-
-
呈送意见
- -
-
-
呈送时间
- -
-
+ +
+ +
+ @*
+
呈送意见
+ +
+
+
呈送时间
+ +
*@