|
|
@@ -1,6 +1,7 @@ |
|
|
|
using Learun.Application.WorkFlow; |
|
|
|
using Learun.Util; |
|
|
|
using System.Collections.Generic; |
|
|
|
using System.Linq; |
|
|
|
using System.Web.Mvc; |
|
|
|
using Learun.Application.Organization; |
|
|
|
using Learun.Application.Base.AuthorizeModule; |
|
|
@@ -20,6 +21,7 @@ namespace Learun.Application.Web.Areas.LR_NewWorkFlow.Controllers |
|
|
|
|
|
|
|
private NWFSchemeIBLL nWFSchemeIBLL = new NWFSchemeBLL(); |
|
|
|
private NWFTaskIBLL nWFTaskIBLL = new NWFTaskBLL(); |
|
|
|
|
|
|
|
private UserIBLL userIbll = new UserBLL(); |
|
|
|
private UserRelationIBLL userRelationIBLL = new UserRelationBLL(); |
|
|
|
|
|
|
@@ -97,6 +99,7 @@ namespace Learun.Application.Web.Areas.LR_NewWorkFlow.Controllers |
|
|
|
{ |
|
|
|
return View(); |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary> |
|
|
|
/// 合同打印 |
|
|
|
/// </summary> |
|
|
@@ -105,22 +108,36 @@ namespace Learun.Application.Web.Areas.LR_NewWorkFlow.Controllers |
|
|
|
public ActionResult htPrint(string keyValue) |
|
|
|
{ |
|
|
|
|
|
|
|
//获取校长的签名盖章 |
|
|
|
var listTaskLog = nWFTaskIBLL.GetLogList(keyValue); |
|
|
|
var nwfTaskLogEntity = listTaskLog.FirstOrDefault(a => a.F_TaskUserName == "关亮"); |
|
|
|
if (nwfTaskLogEntity != null) |
|
|
|
{ |
|
|
|
ViewBag.StampImg = nwfTaskLogEntity.F_StampImg; |
|
|
|
ViewBag.SignImg = nwfTaskLogEntity.F_SignImg; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
var data = nWFProcessIBLL.GetHTInfo(keyValue); |
|
|
|
var userInfo = userIbll.GetEntityByUserId(data.F_CreateUserName); |
|
|
|
var beginTime = data.LC_htkssj.ToDate(); |
|
|
|
var endTime = data.LC_htjssj.ToDate(); |
|
|
|
var operationTime = data.OperationTime.ToDate(); |
|
|
|
var userInfo = new UserEntity(); |
|
|
|
if (data != null) |
|
|
|
{ |
|
|
|
userInfo = userIbll.GetEntityByUserId(data.F_CreateUserName); |
|
|
|
} |
|
|
|
var beginTime = data?.LC_htkssj.ToDate(); |
|
|
|
var endTime = data?.LC_htjssj.ToDate(); |
|
|
|
var operationTime = data?.OperationTime.ToDate(); |
|
|
|
ViewBag.UserName = userInfo?.F_RealName; |
|
|
|
ViewBag.IDCard = userInfo?.F_IdentityCardNo; |
|
|
|
ViewBag.BeginYear = beginTime.Year; |
|
|
|
ViewBag.BeginMonth = beginTime.Month; |
|
|
|
ViewBag.BeginDay = beginTime.Day; |
|
|
|
ViewBag.EndYear = endTime.Year; |
|
|
|
ViewBag.EndMonth = endTime.Month; |
|
|
|
ViewBag.EndDay = endTime.Day; |
|
|
|
ViewBag.OperationYear = operationTime.Year; |
|
|
|
ViewBag.OperationMonth = operationTime.Month; |
|
|
|
ViewBag.OperationDay = operationTime.Day; |
|
|
|
ViewBag.BeginYear = beginTime?.Year; |
|
|
|
ViewBag.BeginMonth = beginTime?.Month; |
|
|
|
ViewBag.BeginDay = beginTime?.Day; |
|
|
|
ViewBag.EndYear = endTime?.Year; |
|
|
|
ViewBag.EndMonth = endTime?.Month; |
|
|
|
ViewBag.EndDay = endTime?.Day; |
|
|
|
ViewBag.OperationYear = operationTime?.Year; |
|
|
|
ViewBag.OperationMonth = operationTime?.Month; |
|
|
|
ViewBag.OperationDay = operationTime?.Day; |
|
|
|
return View(); |
|
|
|
} |
|
|
|
|
|
|
|