Преглед на файлове

党办校办提交项目时添加发起人和发起时间

master
edy преди 3 години
родител
ревизия
94432236b7
променени са 7 файла, в които са добавени 41 реда и са изтрити 34 реда
  1. +3
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/DispatchController.cs
  2. +10
    -3
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Dispatch/Index.js
  3. +9
    -3
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Dispatch/IndexXF.js
  4. +2
    -2
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Dispatch/DispatchBLL.cs
  5. +12
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Dispatch/DispatchEntity.cs
  6. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Dispatch/DispatchIBLL.cs
  7. +4
    -23
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Dispatch/DispatchService.cs

+ 3
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/DispatchController.cs Целия файл

@@ -28,7 +28,6 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
private AnnexesFileIBLL annexesFileIBLL = new AnnexesFileBLL();
private DataItemIBLL dataItemIBLL = new DataItemBLL();
private DispatchAuditIBLL dispatchAuditIBLL = new DispatchAuditBLL();
//private MessageRindIBLL messageRindIBLL = new MessageRindBLL();

#region 视图功能

@@ -206,7 +205,9 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
/// <returns></returns>
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("提交成功!");
}



+ 10
- 3
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Dispatch/Index.js Целия файл

@@ -180,8 +180,8 @@ var bootstrap = function ($, learun) {
{ label: "字", name: "DisWork", width: 150, align: "center" },
{ label: "号", name: "DisMark", width: 150, 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",
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",
formatter: function (cellvalue, row) {
@@ -258,7 +265,7 @@ var bootstrap = function ($, learun) {
// 发起流程
var postData = {
//schemeCode: 'Dispatch',// 本地
//schemeCode: 'DBSW',//线上
schemeCode: 'DBSW',//线上
title: "(" + DisFrom + ") " + Reasons,
processId: processId,
level: '1',


+ 9
- 3
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Dispatch/IndexXF.js Целия файл

@@ -180,10 +180,9 @@ var bootstrap = function ($, learun) {
{ label: "来文单位", name: "DisFrom", width: 400, align: "center" },
{ label: "字", name: "DisWork", 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: "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",
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",
formatter: function (cellvalue, row) {


+ 2
- 2
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Dispatch/DispatchBLL.cs Целия файл

@@ -153,11 +153,11 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
/// <param name="pastatus">审核状态</param>
/// <param name="processId">流程Id</param>
/// <returns></returns>
public void ModifyStatus(string keyValue, int pastatus, string processId)
public void ModifyStatus(string keyValue, int pastatus, string processId,string RealName)
{
try
{
dispatchService.ModifyStatus(keyValue, pastatus, processId);
dispatchService.ModifyStatus(keyValue, pastatus, processId, RealName);
}
catch (Exception ex)
{


+ 12
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Dispatch/DispatchEntity.cs Целия файл

@@ -109,6 +109,18 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
/// </summary>
[Column("READER")]
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

#region 扩展操作


+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Dispatch/DispatchIBLL.cs Целия файл

@@ -51,7 +51,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
void SaveEntity(string keyValue, DispatchEntity entity);
#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);
}
}

+ 4
- 23
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Dispatch/DispatchService.cs Целия файл

@@ -31,28 +31,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
{
var strSql = new StringBuilder();
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(" WHERE 1=1 ");
var queryParam = queryJson.ToJObject();
@@ -206,11 +185,13 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration

#region 扩展数据

public void ModifyStatus(string keyValue, int pastatus, string processId)
public void ModifyStatus(string keyValue, int pastatus, string processId, string RealName)
{
try
{
var entity = this.BaseRepository("CollegeMIS").FindEntity<DispatchEntity>(a => a.Id == keyValue);
entity.CreateUser = RealName;
entity.CreateTime = DateTime.Now;
entity.processId = processId;
entity.FlowNo = pastatus.ToString();
this.BaseRepository("CollegeMIS").Update(entity);


Зареждане…
Отказ
Запис