@@ -28,7 +28,6 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
private AnnexesFileIBLL annexesFileIBLL = new AnnexesFileBLL(); | private AnnexesFileIBLL annexesFileIBLL = new AnnexesFileBLL(); | ||||
private DataItemIBLL dataItemIBLL = new DataItemBLL(); | private DataItemIBLL dataItemIBLL = new DataItemBLL(); | ||||
private DispatchAuditIBLL dispatchAuditIBLL = new DispatchAuditBLL(); | private DispatchAuditIBLL dispatchAuditIBLL = new DispatchAuditBLL(); | ||||
//private MessageRindIBLL messageRindIBLL = new MessageRindBLL(); | |||||
#region 视图功能 | #region 视图功能 | ||||
@@ -206,7 +205,9 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
/// <returns></returns> | /// <returns></returns> | ||||
public ActionResult ModifyStatus(string keyValue, int pastatus, string processId) | public ActionResult ModifyStatus(string keyValue, int pastatus, string processId) | ||||
{ | { | ||||
dispatchIBLL.ModifyStatus(keyValue, pastatus, processId); | |||||
var userInfo = LoginUserInfo.Get(); | |||||
var RealName = userInfo.realName; | |||||
dispatchIBLL.ModifyStatus(keyValue, pastatus, processId, RealName); | |||||
return Success("提交成功!"); | return Success("提交成功!"); | ||||
} | } | ||||
@@ -180,8 +180,8 @@ var bootstrap = function ($, learun) { | |||||
{ label: "字", name: "DisWork", width: 150, align: "center" }, | { label: "字", name: "DisWork", width: 150, align: "center" }, | ||||
{ label: "号", name: "DisMark", width: 150, align: "center" }, | { label: "号", name: "DisMark", width: 150, align: "center" }, | ||||
{ label: "年", name: "DisYear", width: 100, align: "center" }, | { label: "年", name: "DisYear", width: 100, align: "center" }, | ||||
{ label: "月", name: "DisMonth", width: 100, align: "center" }, | |||||
{ label: "日", name: "DisDay", width: 100, align: "center" }, | |||||
{ label: "月", name: "DisMonth", width: 50, align: "center" }, | |||||
{ label: "日", name: "DisDay", width: 50, align: "center" }, | |||||
{ | { | ||||
label: "事由", name: "Reasons", width: 500, align: "center", | label: "事由", name: "Reasons", width: 500, align: "center", | ||||
formatterAsync: function (callback, value, row, op, $cell) { | formatterAsync: function (callback, value, row, op, $cell) { | ||||
@@ -209,6 +209,13 @@ var bootstrap = function ($, learun) { | |||||
}); | }); | ||||
} | } | ||||
}, | }, | ||||
{ label: "发起人", name: "CreateUser", width: 100, align: "center" }, | |||||
{ | |||||
label: "发起时间", name: "CreateTime", width: 100, align: "center", | |||||
formatter: function (cellvalue) { | |||||
return learun.formatDate(cellvalue, 'yyyy-MM-dd hh:mm'); | |||||
} | |||||
}, | |||||
{ | { | ||||
label: "审批状态", name: "FlowNo", width: 100, align: "center", | label: "审批状态", name: "FlowNo", width: 100, align: "center", | ||||
formatter: function (cellvalue, row) { | formatter: function (cellvalue, row) { | ||||
@@ -258,7 +265,7 @@ var bootstrap = function ($, learun) { | |||||
// 发起流程 | // 发起流程 | ||||
var postData = { | var postData = { | ||||
//schemeCode: 'Dispatch',// 本地 | //schemeCode: 'Dispatch',// 本地 | ||||
//schemeCode: 'DBSW',//线上 | |||||
schemeCode: 'DBSW',//线上 | |||||
title: "(" + DisFrom + ") " + Reasons, | title: "(" + DisFrom + ") " + Reasons, | ||||
processId: processId, | processId: processId, | ||||
level: '1', | level: '1', | ||||
@@ -180,10 +180,9 @@ var bootstrap = function ($, learun) { | |||||
{ label: "来文单位", name: "DisFrom", width: 400, align: "center" }, | { label: "来文单位", name: "DisFrom", width: 400, align: "center" }, | ||||
{ label: "字", name: "DisWork", width: 150, align: "center" }, | { label: "字", name: "DisWork", width: 150, align: "center" }, | ||||
{ label: "号", name: "DisMark", width: 150, align: "center" }, | { label: "号", name: "DisMark", width: 150, align: "center" }, | ||||
//{ label: "份数", name: "Copies", width: 100, align: "center" }, | |||||
{ label: "年", name: "DisYear", width: 100, align: "center" }, | { label: "年", name: "DisYear", width: 100, align: "center" }, | ||||
{ label: "月", name: "DisMonth", width: 100, align: "center" }, | |||||
{ label: "日", name: "DisDay", width: 100, align: "center" }, | |||||
{ label: "月", name: "DisMonth", width: 50, align: "center" }, | |||||
{ label: "日", name: "DisDay", width: 50, align: "center" }, | |||||
{ | { | ||||
label: "事由", name: "Reasons", width: 500, align: "center", | label: "事由", name: "Reasons", width: 500, align: "center", | ||||
formatterAsync: function (callback, value, row, op, $cell) { | formatterAsync: function (callback, value, row, op, $cell) { | ||||
@@ -205,6 +204,13 @@ var bootstrap = function ($, learun) { | |||||
}); | }); | ||||
} | } | ||||
}, | }, | ||||
{ label: "发起人", name: "CreateUser", width: 100, align: "center" }, | |||||
{ | |||||
label: "发起时间", name: "CreateTime", width: 100, align: "center", | |||||
formatter: function (cellvalue) { | |||||
return learun.formatDate(cellvalue, 'yyyy-MM-dd hh:mm'); | |||||
} | |||||
}, | |||||
{ | { | ||||
label: "审批状态", name: "FlowNo", width: 100, align: "center", | label: "审批状态", name: "FlowNo", width: 100, align: "center", | ||||
formatter: function (cellvalue, row) { | formatter: function (cellvalue, row) { | ||||
@@ -153,11 +153,11 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
/// <param name="pastatus">审核状态</param> | /// <param name="pastatus">审核状态</param> | ||||
/// <param name="processId">流程Id</param> | /// <param name="processId">流程Id</param> | ||||
/// <returns></returns> | /// <returns></returns> | ||||
public void ModifyStatus(string keyValue, int pastatus, string processId) | |||||
public void ModifyStatus(string keyValue, int pastatus, string processId,string RealName) | |||||
{ | { | ||||
try | try | ||||
{ | { | ||||
dispatchService.ModifyStatus(keyValue, pastatus, processId); | |||||
dispatchService.ModifyStatus(keyValue, pastatus, processId, RealName); | |||||
} | } | ||||
catch (Exception ex) | catch (Exception ex) | ||||
{ | { | ||||
@@ -109,6 +109,18 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
/// </summary> | /// </summary> | ||||
[Column("READER")] | [Column("READER")] | ||||
public string Reader { get; set; } | public string Reader { get; set; } | ||||
/// <summary> | |||||
/// 发起时间 | |||||
/// </summary> | |||||
/// <returns></returns> | |||||
[Column("CREATETIME")] | |||||
public DateTime? CreateTime { get; set; } | |||||
/// <summary> | |||||
/// 发起人 | |||||
/// </summary> | |||||
/// <returns></returns> | |||||
[Column("CREATEUSER")] | |||||
public string CreateUser { get; set; } | |||||
#endregion | #endregion | ||||
#region 扩展操作 | #region 扩展操作 | ||||
@@ -51,7 +51,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
void SaveEntity(string keyValue, DispatchEntity entity); | void SaveEntity(string keyValue, DispatchEntity entity); | ||||
#endregion | #endregion | ||||
void ModifyStatus(string keyValue, int pastatus, string processId); | |||||
void ModifyStatus(string keyValue, int pastatus, string processId, string RealName); | |||||
void ModifyStatusByProcessId(int i, string processId); | void ModifyStatusByProcessId(int i, string processId); | ||||
} | } | ||||
} | } |
@@ -31,28 +31,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
{ | { | ||||
var strSql = new StringBuilder(); | var strSql = new StringBuilder(); | ||||
strSql.Append("SELECT "); | strSql.Append("SELECT "); | ||||
strSql.Append(@" | |||||
t.Id, | |||||
t.WorkName, | |||||
t.DisTitle, | |||||
t.DisFrom, | |||||
t.DisWork, | |||||
t.DisMark, | |||||
t.Copies, | |||||
t.DisYear, | |||||
t.DisMonth, | |||||
t.DisDay, | |||||
t.Reasons, | |||||
t.AttachmentName, | |||||
t.Render, | |||||
t.RenderDate, | |||||
t.Instructions, | |||||
t.DisOffice, | |||||
t.FlowNo, | |||||
t.processId, | |||||
t.Reader, | |||||
t.ReadPeople | |||||
"); | |||||
strSql.Append(@" * "); | |||||
strSql.Append(" FROM Dispatch t "); | strSql.Append(" FROM Dispatch t "); | ||||
strSql.Append(" WHERE 1=1 "); | strSql.Append(" WHERE 1=1 "); | ||||
var queryParam = queryJson.ToJObject(); | var queryParam = queryJson.ToJObject(); | ||||
@@ -206,11 +185,13 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
#region 扩展数据 | #region 扩展数据 | ||||
public void ModifyStatus(string keyValue, int pastatus, string processId) | |||||
public void ModifyStatus(string keyValue, int pastatus, string processId, string RealName) | |||||
{ | { | ||||
try | try | ||||
{ | { | ||||
var entity = this.BaseRepository("CollegeMIS").FindEntity<DispatchEntity>(a => a.Id == keyValue); | var entity = this.BaseRepository("CollegeMIS").FindEntity<DispatchEntity>(a => a.Id == keyValue); | ||||
entity.CreateUser = RealName; | |||||
entity.CreateTime = DateTime.Now; | |||||
entity.processId = processId; | entity.processId = processId; | ||||
entity.FlowNo = pastatus.ToString(); | entity.FlowNo = pastatus.ToString(); | ||||
this.BaseRepository("CollegeMIS").Update(entity); | this.BaseRepository("CollegeMIS").Update(entity); | ||||