电话号
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Views/Department/Form.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Views/Department/Form.js
index 3044cc330..222bbfc67 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Views/Department/Form.js
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Views/Department/Form.js
@@ -37,6 +37,8 @@ var bootstrap = function ($, learun) {
}
}
});
+
+ $('#NoticeCategory').lrDataItemSelect({ code: 'NoticeCategory', type: 'multiple', allowSearch:true });
},
initData: function () {
if (!!selectedRow) {
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Views/Department/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Views/Department/Index.js
index f9b0b91b9..115eacd1a 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Views/Department/Index.js
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Views/Department/Index.js
@@ -98,6 +98,18 @@ var bootstrap = function ($, learun) {
{ label: "部门性质", name: "F_Nature", width: 100, align: "left" },
{ label: "负责人", name: "F_Manager", width: 100, align: "left" },
{ label: "分管校长", name: "F_SchoolMaster", width: 100, align: "left" },
+ {
+ label: "公告类别", name: "NoticeCategory", width: 200, align: "left" ,
+ formatterAsync: function (callback, value, row, op, $cell) {
+ learun.clientdata.getsAsync('dataItem', {
+ key: value,
+ code: 'NoticeCategory',
+ callback: function (_data) {
+ callback(_data);
+ }
+ });
+ }
+ },
{ label: "电话号", name: "F_OuterPhone", width: 100, align: "left" },
{ label: "分机号", name: "F_InnerPhone", width: 60, align: "center" },
{ label: "排序", name: "F_Order", width: 60, align: "center" },
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 69856b9a9..b150c9105 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
@@ -1261,6 +1261,9 @@
+
+
+
@@ -6842,6 +6845,9 @@
+
+
+
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/LR_Content/script/lr-clientdata.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/LR_Content/script/lr-clientdata.js
index f0f8a5e68..f4c39a842 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/LR_Content/script/lr-clientdata.js
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/LR_Content/script/lr-clientdata.js
@@ -400,7 +400,7 @@
else {
var data = storage.get("dataItemData").data || {};
- var keyList = op.key.split(',');
+ var keyList = (op.key || "").split(',');
var _text = []
$.each(keyList, function (_index, _item) {
var _item = clientAsyncData.dataItem.find(_item, data[op.code] || {});
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/XmlConfig/ioc.config b/Learun.Framework.Ultimate V7/Learun.Application.Web/XmlConfig/ioc.config
index de0d99e24..4b8f5507c 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/XmlConfig/ioc.config
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/XmlConfig/ioc.config
@@ -25,6 +25,7 @@
+
@@ -60,6 +61,7 @@
+
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/News/NewsBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/News/NewsBLL.cs
index 995676c50..3fe0bce06 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/News/NewsBLL.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/News/NewsBLL.cs
@@ -150,6 +150,26 @@ namespace Learun.Application.OA
}
}
}
+
+ public void ChangeStatusByProcessId(string parameterProcessId, int p1)
+ {
+ try
+ {
+ newsService.ChangeStatusByProcessId(parameterProcessId, p1);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowBusinessException(ex);
+ }
+ }
+ }
+
#endregion
}
}
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/News/NewsEntity.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/News/NewsEntity.cs
index 7a99c3de7..50420fb2c 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/News/NewsEntity.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/News/NewsEntity.cs
@@ -182,6 +182,18 @@ namespace Learun.Application.OA
[Column("F_ISSENDFX")]
public bool? F_IsSendFX { get; set; }
+ ///
+ /// 流程id
+ ///
+ ///
+ [Column("F_PROGRESSID")]
+ public string F_ProgressId { get; set; }
+ ///
+ /// 审核状态
+ ///
+ ///
+ [Column("F_STATUS")]
+ public string F_Status { get; set; }
///
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/News/NewsIBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/News/NewsIBLL.cs
index b0e02367a..5c518a513 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/News/NewsIBLL.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/News/NewsIBLL.cs
@@ -46,5 +46,7 @@ namespace Learun.Application.OA
///
void SaveEntity(string keyValue, NewsEntity newsEntity);
#endregion
+
+ void ChangeStatusByProcessId(string parameterProcessId, int p1);
}
}
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/News/NewsService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/News/NewsService.cs
index f05f0a6b2..8c7ed29eb 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/News/NewsService.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/News/NewsService.cs
@@ -3,6 +3,7 @@ using Learun.Util;
using System;
using System.Collections.Generic;
using System.Text;
+using Spire.Pdf.General.Render.Decode.Jpeg2000.Icc;
namespace Learun.Application.OA
{
@@ -171,5 +172,34 @@ namespace Learun.Application.OA
}
#endregion
+
+ public void ChangeStatusByProcessId(string parameterProcessId, int status)
+ {
+ if (status == 2)
+ {
+ try
+ {
+ var newEntity = this.BaseRepository()
+ .FindEntity(a => a.F_ProgressId == parameterProcessId);
+ if (null != newEntity)
+ {
+ newEntity.F_Status = "2";
+ }
+
+ this.BaseRepository().Update(newEntity);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowServiceException(ex);
+ }
+ }
+ }
+ }
}
}
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/Notice/NoticeBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/Notice/NoticeBLL.cs
index beec25c85..5f56621d9 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/Notice/NoticeBLL.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/Notice/NoticeBLL.cs
@@ -121,11 +121,52 @@ namespace Learun.Application.OA
///
///
关键词
///
- public IEnumerable
GetList(string keyword, string userId,string categoryId=null)
+ public IEnumerable GetList(string keyword, string userId, string categoryId = null)
{
try
{
- return noticeService.GetList(keyword, userId,categoryId);
+ return noticeService.GetList(keyword, userId, categoryId);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowBusinessException(ex);
+ }
+ }
+ }
+
+ #endregion
+
+ #region 流程
+ public void ChangeStatusById(string keyValue, int status, string processId)
+ {
+ try
+ {
+ noticeService.ChangeStatusById(keyValue, status, processId);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowBusinessException(ex);
+ }
+ }
+ }
+
+ public NewsEntity GetEntityByProcessId(string processId)
+ {
+ try
+ {
+ return noticeService.GetEntityByProcessId(processId);
}
catch (Exception ex)
{
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/Notice/NoticeIBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/Notice/NoticeIBLL.cs
index c8e0b31af..c42b9fa5a 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/Notice/NoticeIBLL.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/Notice/NoticeIBLL.cs
@@ -52,5 +52,8 @@ namespace Learun.Application.OA
IEnumerable GetList(string keyword, string userId,string categoryId=null);
#endregion
+
+ void ChangeStatusById(string keyValue, int i, string processId);
+ NewsEntity GetEntityByProcessId(string processId);
}
}
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/Notice/NoticeService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/Notice/NoticeService.cs
index 630994f1f..f387aaaab 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/Notice/NoticeService.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/Notice/NoticeService.cs
@@ -182,5 +182,36 @@ namespace Learun.Application.OA
}
#endregion
+
+ public void ChangeStatusById(string keyValue, int status, string processId)
+ {
+ try
+ {
+ BaseRepository().ExecuteBySql($"UPDATE dbo.LR_OA_News SET F_Status='{status}',F_ProgressId='{processId}' WHERE F_NewsId='{keyValue}'", null);
+ }
+ catch (Exception ex)
+ {
+ throw ExceptionEx.ThrowServiceException(ex);
+ }
+ }
+
+ public NewsEntity GetEntityByProcessId(string processId)
+ {
+ try
+ {
+ return this.BaseRepository().FindEntity(t => t.F_ProgressId == processId);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowServiceException(ex);
+ }
+ }
+ }
}
}
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.WorkFlow/Learun.Application.WorkFlow.csproj b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.WorkFlow/Learun.Application.WorkFlow.csproj
index 7c4b2d075..0c4214c8d 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.WorkFlow/Learun.Application.WorkFlow.csproj
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.WorkFlow/Learun.Application.WorkFlow.csproj
@@ -106,6 +106,7 @@
+
@@ -227,6 +228,10 @@
{211fa31a-b9d8-4f48-80cc-573b9410828e}
Learun.Application.Message
+
+ {5F3FDF79-A47E-4782-A090-DD0DC2D5CDC1}
+ Learun.Application.OA
+
{56f9a112-fd96-4809-98f4-0d7c5de0711b}
Learun.Application.TwoDevelopment
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.WorkFlow/NodeMethod/OA_NewsMethod.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.WorkFlow/NodeMethod/OA_NewsMethod.cs
new file mode 100644
index 000000000..d3c1fbcf9
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.WorkFlow/NodeMethod/OA_NewsMethod.cs
@@ -0,0 +1,26 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using Learun.Application.OA;
+
+namespace Learun.Application.WorkFlow
+{
+ public class OA_NewsMethod : IWorkFlowMethod
+ {
+
+ NewsIBLL newsIBLL=new NewsBLL();
+ public void Execute(WfMethodParameter parameter)
+ {
+ if (parameter.code == "agree")
+ {
+ newsIBLL.ChangeStatusByProcessId(parameter.processId, 2);
+ }
+ else
+ {
+ newsIBLL.ChangeStatusByProcessId(parameter.processId, 0);
+ }
+ }
+ }
+}