Parcourir la source

【修改】会议申请关联流程审批;【增加】我申请的会议;

master
dyy il y a 3 ans
Parent
révision
07a8ed92d9
15 fichiers modifiés avec 819 ajouts et 17 suppressions
  1. +37
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Controllers/MeetingManagementController.cs
  2. +59
    -4
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MeetingManagement/Form.js
  3. +59
    -4
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MeetingManagement/FormView.js
  4. +1
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MeetingManagement/Index.cshtml
  5. +63
    -8
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MeetingManagement/Index.js
  6. +55
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MeetingManagement/IndexOfMyApply.cshtml
  7. +264
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MeetingManagement/IndexOfMyApply.js
  8. +2
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj
  9. +2
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/XmlConfig/ioc.config
  10. +71
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/MeetingManagement/MeetingManagementBLL.cs
  11. +6
    -1
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/MeetingManagement/MeetingManagementEntity.cs
  12. +19
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/MeetingManagement/MeetingManagementIBLL.cs
  13. +153
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/MeetingManagement/MeetingManagementService.cs
  14. +1
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.WorkFlow/Learun.Application.WorkFlow.csproj
  15. +27
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.WorkFlow/NodeMethod/MeetingManagementApplyMethod.cs

+ 37
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Controllers/MeetingManagementController.cs Voir le fichier

@@ -47,6 +47,15 @@ namespace Learun.Application.Web.Areas.PersonnelManagement.Controllers
{
return View();
}
/// <summary>
/// 主页面-我申请的会议
/// <summary>
/// <returns></returns>
[HttpGet]
public ActionResult IndexOfMyApply()
{
return View();
}
#endregion

#region 获取数据
@@ -99,6 +108,21 @@ namespace Learun.Application.Web.Areas.PersonnelManagement.Controllers
};
return Success(jsonData);
}
/// <summary>
/// 获取表单数据
/// <summary>
/// <returns></returns>
[HttpGet]
[AjaxOnly]
public ActionResult GetFormDataByProcessId(string processId)
{
var MeetingManagementData = meetingManagementIBLL.GetMeetingManagementEntityByProcessId(processId);
var jsonData = new
{
MeetingManagement = MeetingManagementData,
};
return Success(jsonData);
}
#endregion

#region 提交数据
@@ -147,6 +171,19 @@ namespace Learun.Application.Web.Areas.PersonnelManagement.Controllers
meetingManagementIBLL.DoCheck(userInfo, keyValue, status);
return Success("操作成功!");
}

/// <summary>
/// 提交实体数据
/// <param name="keyValue">主键</param>
/// <summary>
/// <returns></returns>
[HttpPost]
[AjaxOnly]
public ActionResult DoSubmit(string keyValue, string status, string processId)
{
meetingManagementIBLL.DoSubmit(keyValue, status, processId);
return Success("操作成功!");
}
#endregion

}


+ 59
- 4
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MeetingManagement/Form.js Voir le fichier

@@ -6,8 +6,36 @@
*/
var acceptClick;
var keyValue = request('keyValue');
// 设置权限
var setAuthorize;
// 设置表单数据
var setFormData;
// 验证数据是否填写完整
var validForm;
// 保存数据
var save;

var bootstrap = function ($, learun) {
"use strict";
// 设置权限
setAuthorize = function (data) {
if (!!data) {
for (var field in data) {
if (data[field].isLook != 1) {// 如果没有查看权限就直接移除
$('#' + data[field].fieldId).parent().remove();
}
else {
if (data[field].isEdit != 1) {
$('#' + data[field].fieldId).attr('disabled', 'disabled');
if ($('#' + data[field].fieldId).hasClass('lrUploader-wrap')) {
$('#' + data[field].fieldId).css({ 'padding-right': '58px' });
$('#' + data[field].fieldId).find('.btn-success').remove();
}
}
}
}
}
};
var page = {
init: function () {
$('.lr-form-wrap').lrscroll();
@@ -41,18 +69,45 @@ var bootstrap = function ($, learun) {
}
}
};
// 保存数据
acceptClick = function (callBack) {
// 设置表单数据
setFormData = function (processId, param, callback) {
if (!!processId) {
$.lrSetForm(top.$.rootUrl + '/PersonnelManagement/MeetingManagement/GetFormDataByProcessId?processId=' + processId, function (data) {
for (var id in data) {
if (!!data[id] && data[id].length > 0) {
$('#' + id).jfGridSet('refreshdata', data[id]);
}
else {
if (id == 'MeetingManagement' && data[id]) {
keyValue = data[id].Id;
}
$('[data-table="' + id + '"]').lrSetFormData(data[id]);
}
}
});
}
callback && callback();
}
// 验证数据是否填写完整
validForm = function () {
if (!$('body').lrValidform()) {
return false;
}
return true;
};
// 保存数据
save = function (processId, callBack, i) {
var formData = $('body').lrGetFormData();
if (!!processId) {
formData.ProcessId = processId;
}
var postData = {
strEntity: JSON.stringify($('body').lrGetFormData())
strEntity: JSON.stringify(formData)
};
$.lrSaveForm(top.$.rootUrl + '/PersonnelManagement/MeetingManagement/SaveForm?keyValue=' + keyValue, postData, function (res) {
// 保存成功后才回调
if (!!callBack) {
callBack();
callBack(res, i);
}
});
};


+ 59
- 4
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MeetingManagement/FormView.js Voir le fichier

@@ -6,8 +6,36 @@
*/
var acceptClick;
var keyValue = request('keyValue');
// 设置权限
var setAuthorize;
// 设置表单数据
var setFormData;
// 验证数据是否填写完整
var validForm;
// 保存数据
var save;

var bootstrap = function ($, learun) {
"use strict";
// 设置权限
setAuthorize = function (data) {
if (!!data) {
for (var field in data) {
if (data[field].isLook != 1) {// 如果没有查看权限就直接移除
$('#' + data[field].fieldId).parent().remove();
}
else {
if (data[field].isEdit != 1) {
$('#' + data[field].fieldId).attr('disabled', 'disabled');
if ($('#' + data[field].fieldId).hasClass('lrUploader-wrap')) {
$('#' + data[field].fieldId).css({ 'padding-right': '58px' });
$('#' + data[field].fieldId).find('.btn-success').remove();
}
}
}
}
}
};
var page = {
init: function () {
$('.lr-form-wrap').lrscroll();
@@ -41,18 +69,45 @@ var bootstrap = function ($, learun) {
}
}
};
// 保存数据
acceptClick = function (callBack) {
// 设置表单数据
setFormData = function (processId, param, callback) {
if (!!processId) {
$.lrSetForm(top.$.rootUrl + '/PersonnelManagement/MeetingManagement/GetFormDataByProcessId?processId=' + processId, function (data) {
for (var id in data) {
if (!!data[id] && data[id].length > 0) {
$('#' + id).jfGridSet('refreshdata', data[id]);
}
else {
if (id == 'MeetingManagement' && data[id]) {
keyValue = data[id].Id;
}
$('[data-table="' + id + '"]').lrSetFormData(data[id]);
}
}
});
}
callback && callback();
}
// 验证数据是否填写完整
validForm = function () {
if (!$('body').lrValidform()) {
return false;
}
return true;
};
// 保存数据
save = function (processId, callBack, i) {
var formData = $('body').lrGetFormData();
if (!!processId) {
formData.ProcessId = processId;
}
var postData = {
strEntity: JSON.stringify($('body').lrGetFormData())
strEntity: JSON.stringify(formData)
};
$.lrSaveForm(top.$.rootUrl + '/PersonnelManagement/MeetingManagement/SaveForm?keyValue=' + keyValue, postData, function (res) {
// 保存成功后才回调
if (!!callBack) {
callBack();
callBack(res, i);
}
});
};


+ 1
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MeetingManagement/Index.cshtml Voir le fichier

@@ -37,6 +37,7 @@
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;编辑</a>
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
<a id="lr_view" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;查看</a>
<a id="lr_submit" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;提交</a>
</div>
<div class=" btn-group btn-group-sm" learun-authorize="yes">
<a id="lr_attendance" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;考勤</a>


+ 63
- 8
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MeetingManagement/Index.js Voir le fichier

@@ -7,6 +7,7 @@
var refreshGirdData;
var bootstrap = function ($, learun) {
"use strict";
var processId = '';
var page = {
init: function () {
page.initGird();
@@ -36,7 +37,16 @@ var bootstrap = function ($, learun) {
width: 1000,
height: 800,
callBack: function (id) {
return top[id].acceptClick(refreshGirdData);
var res = false;
// 验证数据
res = top[id].validForm();
// 保存数据
if (res) {
res = top[id].save('', function () {
page.search();
});
}
return res;
}
});
});
@@ -48,6 +58,9 @@ var bootstrap = function ($, learun) {
if (CheckStatus == "1") {
learun.alert.warning("当前项已审核通过!");
return false;
} else if (CheckStatus == "3") {
learun.alert.warning("当前项审核中!");
return false;
}
learun.layerForm({
id: 'editform',
@@ -56,7 +69,16 @@ var bootstrap = function ($, learun) {
width: 1000,
height: 800,
callBack: function (id) {
return top[id].acceptClick(refreshGirdData);
var res = false;
// 验证数据
res = top[id].validForm();
// 保存数据
if (res) {
res = top[id].save('', function () {
page.search();
});
}
return res;
}
});
}
@@ -67,7 +89,7 @@ var bootstrap = function ($, learun) {
if (learun.checkrow(keyValue)) {
var CheckStatus = $('#gridtable').jfGridValue('CheckStatus');
if (CheckStatus != "0") {
learun.alert.warning("当前项已审核!");
learun.alert.warning("当前项已审核或审核中!");
return false;
}
learun.layerConfirm('是否确认删除该项!', function (res) {
@@ -89,7 +111,29 @@ var bootstrap = function ($, learun) {
url: top.$.rootUrl + '/PersonnelManagement/MeetingManagement/FormView?keyValue=' + keyValue,
width: 1000,
height: 800,
btn:null
btn: null
});
}
});
//提交
$('#lr_submit').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('Id');
if (learun.checkrow(keyValue)) {
var CheckStatus = $('#gridtable').jfGridValue('CheckStatus');
if (CheckStatus == "1") {
learun.alert.warning("当前项已审核通过!");
return false;
} else if (CheckStatus == "3") {
learun.alert.warning("当前项审核中!");
return false;
}
learun.layerConfirm('是否确认提交该项!', function (res) {
if (res) {
processId = learun.newGuid();
learun.postForm(top.$.rootUrl + '/PersonnelManagement/MeetingManagement/DoSubmit', { keyValue: keyValue, status: '3', processId: processId }, function (res) {
refreshGirdData(res, {});
});
}
});
}
});
@@ -169,7 +213,7 @@ var bootstrap = function ($, learun) {
{ label: "申请时间", name: "CreateTime", width: 120, align: "left" },
{
label: "会议状态", name: "CheckStatus", width: 100, align: "left", formatter: function (cellvalue) {
return cellvalue == "1" ? "已通过" : cellvalue == "2" ? "未通过" : "未审核";
return cellvalue == "1" ? "已通过" : cellvalue == "2" ? "未通过" : cellvalue == "3" ? "审核中" : "未审核";
}
},
{
@@ -185,7 +229,7 @@ var bootstrap = function ($, learun) {
}
},
{
label: "审核时间", name: "CheckTime", width: 120, align: "left", formatter: function (value,row) {
label: "审核时间", name: "CheckTime", width: 120, align: "left", formatter: function (value, row) {
return row.CheckStatus != "1" && row.CheckStatus != "2" ? "" : value;
}
},
@@ -201,8 +245,19 @@ var bootstrap = function ($, learun) {
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
}
};
refreshGirdData = function () {
$('#gridtable').jfGridSet('reload');
refreshGirdData = function (res, postData) {
if (res && res.code && res.code == 200) {
// 发起流程
var postData = {
schemeCode: 'MeetingManagementApply',// 填写流程对应模板编号
processId: processId,
level: '1',
};
learun.httpAsync('Post', top.$.rootUrl + '/LR_NewWorkFlow/NWFProcess/CreateFlow', postData, function (data) {
learun.loading(false);
});
}
page.search();
};
page.init();
}

+ 55
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MeetingManagement/IndexOfMyApply.cshtml Voir le fichier

@@ -0,0 +1,55 @@
@{
/**/

ViewBag.Title = "会议管理";
Layout = "~/Views/Shared/_Index.cshtml";
}
<div class="lr-layout ">
<div class="lr-layout-center">
<div class="lr-layout-wrap lr-layout-wrap-notitle ">
<div class="lr-layout-tool">
<div class="lr-layout-tool-left">
<div class="lr-layout-tool-item">
<div id="multiple_condition_query">
<div class="lr-query-formcontent">
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">会议主题</div>
<input id="MeetingTitle" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">会议场地</div>
<div id="MeetingPlace"></div>
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">申请人</div>
<div id="CreateUser"></div>
</div>
</div>
</div>
</div>
</div>
<div class="lr-layout-tool-right">
<div class=" btn-group btn-group-sm">
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a>
</div>
<div class=" btn-group btn-group-sm" learun-authorize="yes">
<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;新增</a>
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;编辑</a>
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
<a id="lr_view" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;查看</a>
<a id="lr_submit" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;提交</a>
</div>
<div class=" btn-group btn-group-sm" learun-authorize="yes">
<a id="lr_attendance" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;考勤</a>
<a id="lr_minutes" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;纪要</a>
<a id="lr_notice" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;通知</a>
<a id="lr_checkyes" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;审核通过</a>
<a id="lr_checkno" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;审核不通过</a>
</div>
</div>
</div>
<div class="lr-layout-body" id="gridtable"></div>
</div>
</div>
</div>
@Html.AppendJsFile("/Areas/PersonnelManagement/Views/MeetingManagement/IndexOfMyApply.js")

+ 264
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MeetingManagement/IndexOfMyApply.js Voir le fichier

@@ -0,0 +1,264 @@
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
* 创建人:超级管理员
* 日 期:2021-02-21 10:07
* 描 述:会议管理
*/
var refreshGirdData;
var bootstrap = function ($, learun) {
"use strict";
var processId = '';
var page = {
init: function () {
page.initGird();
page.bind();
},
bind: function () {
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) {
page.search(queryJson);
}, 220, 400);
$('#MeetingPlace').lrselect({
allowSearch: true,
url: top.$.rootUrl + '/PersonnelManagement/ConferenceRoom/GetList',
value: "ID",
text: "Name"
});
$('#CreateUser').lrUserSelect(0);
// 刷新
$('#lr_refresh').on('click', function () {
location.reload();
});
// 新增
$('#lr_add').on('click', function () {
learun.layerForm({
id: 'addform',
title: '新增',
url: top.$.rootUrl + '/PersonnelManagement/MeetingManagement/Form',
width: 1000,
height: 800,
callBack: function (id) {
var res = false;
// 验证数据
res = top[id].validForm();
// 保存数据
if (res) {
res = top[id].save('', function () {
page.search();
});
}
return res;
}
});
});
// 编辑
$('#lr_edit').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('Id');
if (learun.checkrow(keyValue)) {
var CheckStatus = $('#gridtable').jfGridValue('CheckStatus');
if (CheckStatus == "1") {
learun.alert.warning("当前项已审核通过!");
return false;
} else if (CheckStatus == "3") {
learun.alert.warning("当前项审核中!");
return false;
}
learun.layerForm({
id: 'editform',
title: '编辑',
url: top.$.rootUrl + '/PersonnelManagement/MeetingManagement/Form?keyValue=' + keyValue,
width: 1000,
height: 800,
callBack: function (id) {
var res = false;
// 验证数据
res = top[id].validForm();
// 保存数据
if (res) {
res = top[id].save('', function () {
page.search();
});
}
return res;
}
});
}
});
// 删除
$('#lr_delete').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('Id');
if (learun.checkrow(keyValue)) {
var CheckStatus = $('#gridtable').jfGridValue('CheckStatus');
if (CheckStatus != "0") {
learun.alert.warning("当前项已审核或审核中!");
return false;
}
learun.layerConfirm('是否确认删除该项!', function (res) {
if (res) {
learun.deleteForm(top.$.rootUrl + '/PersonnelManagement/MeetingManagement/DeleteForm', { keyValue: keyValue }, function () {
refreshGirdData();
});
}
});
}
});
// 查看
$('#lr_view').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('Id');
if (learun.checkrow(keyValue)) {
learun.layerForm({
id: 'viewform',
title: '查看会议工作',
url: top.$.rootUrl + '/PersonnelManagement/MeetingManagement/FormView?keyValue=' + keyValue,
width: 1000,
height: 800,
btn: null
});
}
});
//提交
$('#lr_submit').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('Id');
if (learun.checkrow(keyValue)) {
var CheckStatus = $('#gridtable').jfGridValue('CheckStatus');
if (CheckStatus == "1") {
learun.alert.warning("当前项已审核通过!");
return false;
} else if (CheckStatus == "3") {
learun.alert.warning("当前项审核中!");
return false;
}
learun.layerConfirm('是否确认提交该项!', function (res) {
if (res) {
processId = learun.newGuid();
learun.postForm(top.$.rootUrl + '/PersonnelManagement/MeetingManagement/DoSubmit', { keyValue: keyValue, status: '3', processId: processId }, function (res) {
refreshGirdData(res, {});
});
}
});
}
});
// 考勤
// 纪要
// 通知
// 审核通过
$('#lr_checkyes').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('Id');
if (learun.checkrow(keyValue)) {
var CheckStatus = $('#gridtable').jfGridValue('CheckStatus');
if (CheckStatus == '1') {
learun.alert.warning("该项已审核通过!");
return false;
}
learun.layerConfirm('是否确认审核通过该项!', function (res) {
if (res) {
learun.postForm(top.$.rootUrl + '/PersonnelManagement/MeetingManagement/DoCheck', { keyValue: keyValue, status: '1' }, function () {
refreshGirdData();
});
}
});
}
});
// 审核不通过
$('#lr_checkno').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('Id');
if (learun.checkrow(keyValue)) {
var CheckStatus = $('#gridtable').jfGridValue('CheckStatus');
if (CheckStatus == '2') {
learun.alert.warning("该项已审核不通过!");
return false;
}
learun.layerConfirm('是否确认审核不通过该项!', function (res) {
if (res) {
learun.postForm(top.$.rootUrl + '/PersonnelManagement/MeetingManagement/DoCheck', { keyValue: keyValue, status: '2' }, function () {
refreshGirdData();
});
}
});
}
});
},
// 初始化列表
initGird: function () {
$('#gridtable').lrAuthorizeJfGrid({
url: top.$.rootUrl + '/PersonnelManagement/MeetingManagement/GetPageList',
headData: [
{ label: "会议主题", name: "MeetingTitle", width: 150, align: "left" },
{ label: "会议场地", name: "ConferenceRoomName", width: 100, align: "left" },
{ label: "开始时间", name: "BeginTime", width: 120, align: "left" },
{ label: "结束时间", name: "EndTime", width: 120, align: "left" },
{
label: "会议记录者", name: "RecordPerson", width: 100, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('user', {
key: value,
callback: function (_data) {
callback(_data.name);
}
});
}
},
{ label: "联系人", name: "Linkman", width: 100, align: "left" },
{ label: "联系电话", name: "LinkPhone", width: 100, align: "left" },
{
label: "申请人", name: "CreateUser", width: 100, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('user', {
key: value,
callback: function (_data) {
callback(_data.name);
}
});
}
},
{ label: "申请时间", name: "CreateTime", width: 120, align: "left" },
{
label: "会议状态", name: "CheckStatus", width: 100, align: "left", formatter: function (cellvalue) {
return cellvalue == "1" ? "已通过" : cellvalue == "2" ? "未通过" : cellvalue == "3" ? "审核中" : "未审核";
}
},
{
label: "审核人", name: "CheckUser", width: 100, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('user', {
key: value,
callback: function (_data) {
//callback(_data.name);
return row.CheckStatus != "1" && row.CheckStatus != "2" ? "" : callback(_data.name);
}
});
}
},
{
label: "审核时间", name: "CheckTime", width: 120, align: "left", formatter: function (value, row) {
return row.CheckStatus != "1" && row.CheckStatus != "2" ? "" : value;
}
},
],
mainId: 'Id',
isPage: true,
sidx: 'CreateTime desc'
});
page.search();
},
search: function (param) {
param = param || {};
param.CreateUser = learun.clientdata.get(['userinfo']).userId;
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
}
};
refreshGirdData = function (res, postData) {
if (res && res.code && res.code == 200) {
// 发起流程
var postData = {
schemeCode: 'MeetingManagementApply',// 填写流程对应模板编号
processId: processId,
level: '1',
};
learun.httpAsync('Post', top.$.rootUrl + '/LR_NewWorkFlow/NWFProcess/CreateFlow', postData, function (data) {
learun.loading(false);
});
}
page.search();
};
page.init();
}

+ 2
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj Voir le fichier

@@ -1345,6 +1345,7 @@
<Content Include="Areas\PersonnelManagement\Views\ContractManagement\FormTerminate.js" />
<Content Include="Areas\PersonnelManagement\Views\ContractManagement\FormRenew.js" />
<Content Include="Areas\PersonnelManagement\Views\MeetingManagement\FormView.js" />
<Content Include="Areas\PersonnelManagement\Views\MeetingManagement\IndexOfMyApply.js" />
<Content Include="Areas\PersonnelManagement\Views\Sal_UserSalary\ImportForm.css" />
<Content Include="Areas\PersonnelManagement\Views\Sal_UserSalary\ImportForm.js" />
<Content Include="Areas\PersonnelManagement\Views\StuSaverecord\IndexForStudent.js" />
@@ -6902,6 +6903,7 @@
<Content Include="Areas\EducationalAdministration\Views\StuLeaveManagement\CheckIndex.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\Thermography\IndexResult.cshtml" />
<Content Include="Areas\PersonnelManagement\Views\MeetingManagement\FormView.cshtml" />
<Content Include="Areas\PersonnelManagement\Views\MeetingManagement\IndexOfMyApply.cshtml" />
<None Include="Properties\PublishProfiles\FolderProfile.pubxml" />
<Content Include="Views\Login\Default-beifen.cshtml" />
<None Include="Properties\PublishProfiles\FolderProfile1.pubxml" />


+ 2
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/XmlConfig/ioc.config Voir le fichier

@@ -27,6 +27,7 @@
<typeAlias alias="ADR_AddApplyMethod" type="Learun.Application.WorkFlow.ADR_AddApplyMethod,Learun.Application.WorkFlow" />
<typeAlias alias="OA_NewsMethod" type="Learun.Application.WorkFlow.OA_NewsMethod,Learun.Application.WorkFlow" />
<typeAlias alias="Ass_AcceptanceMethod" type="Learun.Application.WorkFlow.Ass_AcceptanceMethod,Learun.Application.WorkFlow" />
<typeAlias alias="MeetingManagementApplyMethod" type="Learun.Application.WorkFlow.MeetingManagementApplyMethod,Learun.Application.WorkFlow" />

<!--任务调度器-->
<typeAlias alias="ITSMethod" type="Learun.Application.Extention.TaskScheduling.ITsMethod,Learun.Application.Extention" />
@@ -64,6 +65,7 @@
<type type="IWorkFlowMethod" mapTo="WFFileRelease" name="wfFileRelease"></type>
<type type="IWorkFlowMethod" mapTo="OA_NewsMethod" name="OA_NewsMethod"></type>
<type type="IWorkFlowMethod" mapTo="Ass_AcceptanceMethod" name="Ass_AcceptanceMethod"></type>
<type type="IWorkFlowMethod" mapTo="MeetingManagementApplyMethod" name="MeetingManagementApplyMethod"></type>

</container>



+ 71
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/MeetingManagement/MeetingManagementBLL.cs Voir le fichier

@@ -91,6 +91,29 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement
}
}

/// <summary>
/// 获取MeetingManagement表实体数据
/// <param name="keyValue">主键</param>
/// <summary>
/// <returns></returns>
public MeetingManagementEntity GetMeetingManagementEntityByProcessId(string processId)
{
try
{
return meetingManagementService.GetMeetingManagementEntityByProcessId(processId);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}
#endregion

#region 提交数据
@@ -166,6 +189,54 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement
}
}
}

/// <summary>
/// 提交实体数据
/// <param name="keyValue">主键</param>
/// <summary>
/// <returns></returns>
public void DoSubmit(string keyValue, string status, string processId)
{
try
{
meetingManagementService.DoSubmit(keyValue, status, processId);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}

/// <summary>
/// 审核实体数据
/// <param name="keyValue">主键</param>
/// <summary>
/// <returns></returns>
public void ChangeStatusByProcessId(string processId, string status, string userId)
{
try
{
meetingManagementService.ChangeStatusByProcessId(processId, status, userId);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}
#endregion

}


+ 6
- 1
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/MeetingManagement/MeetingManagementEntity.cs Voir le fichier

@@ -85,7 +85,7 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement
[Column("LINKPHONE")]
public string LinkPhone { get; set; }
/// <summary>
/// 会议状态
/// 会议状态:0未审核,1审核通过,2审核不通过,3审核中
/// </summary>
[Column("CHECKSTATUS")]
public string CheckStatus { get; set; }
@@ -99,6 +99,11 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement
/// </summary>
[Column("CHECKTIME")]
public string CheckTime { get; set; }
/// <summary>
/// 流程Id
/// </summary>
[Column("PROCESSID")]
public string ProcessId { get; set; }
#endregion

#region 扩展操作


+ 19
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/MeetingManagement/MeetingManagementIBLL.cs Voir le fichier

@@ -34,6 +34,12 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement
/// <summary>
/// <returns></returns>
MeetingManagementEntity GetMeetingManagementEntity(string keyValue);
/// <summary>
/// 获取MeetingManagement表实体数据
/// <param name="keyValue">主键</param>
/// <summary>
/// <returns></returns>
MeetingManagementEntity GetMeetingManagementEntityByProcessId(string processId);
#endregion

#region 提交数据
@@ -57,6 +63,19 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement
/// <summary>
/// <returns></returns>
void DoCheck(UserInfo userInfo, string keyValue, string status);

/// <summary>
/// 提交实体数据
/// <param name="keyValue">主键</param>
/// <summary>
/// <returns></returns>
void DoSubmit(string keyValue, string status, string processId);
/// <summary>
/// 审核实体数据
/// <param name="keyValue">主键</param>
/// <summary>
/// <returns></returns>
void ChangeStatusByProcessId(string processId, string status, string userId);
#endregion

}


+ 153
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/MeetingManagement/MeetingManagementService.cs Voir le fichier

@@ -137,6 +137,30 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement
}
}

/// <summary>
/// 获取MeetingManagement表实体数据
/// <param name="keyValue">主键</param>
/// <summary>
/// <returns></returns>
public MeetingManagementEntity GetMeetingManagementEntityByProcessId(string processId)
{
try
{
return this.BaseRepository("CollegeMIS").FindEntity<MeetingManagementEntity>(x => x.ProcessId == processId);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}

#endregion

#region 提交数据
@@ -310,6 +334,135 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement
}
}
}

/// <summary>
/// 提交实体数据
/// <param name="keyValue">主键</param>
/// <summary>
/// <returns></returns>
public void DoSubmit(string keyValue, string status, string processId)
{
try
{
this.BaseRepository("CollegeMIS").ExecuteBySql("update MeetingManagement set CheckStatus='" + status + "',ProcessId='" + processId + "' where Id='" + keyValue + "' ");
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}

/// <summary>
/// 审核实体数据
/// <param name="keyValue">主键</param>
/// <summary>
/// <returns></returns>
public void ChangeStatusByProcessId(string processId, string status, string userId)
{
UserInfo userInfo = LoginUserInfo.Get();
var db = this.BaseRepository("CollegeMIS").BeginTrans();
try
{
//修改会议工作管理表的审核字段;
db.ExecuteBySql("update MeetingManagement set CheckStatus='" + status + "',CheckUser='" + userId + "',CheckTime='" + DateTime.Now + "' where ProcessId='" + processId + "' ");
var entity = db.FindEntity<MeetingManagementEntity>(x => x.ProcessId == processId);
if (entity != null)
{
if (status == "1")//审核通过:会议签到记录表中增加参会人员;
{
//增加校内参入人员:
if (!string.IsNullOrEmpty(entity.InternalParticipants))
{
if (entity.InternalParticipants.IndexOf(',') == -1)
{
var model = new MeetingSignInRecordEntity()
{
MeetID = entity.Id,
ParticipantID = entity.InternalParticipants,
ParticipantName = this.BaseRepository().FindEntity<UserEntity>(x => x.F_UserId == entity.InternalParticipants)?.F_RealName,
IsSignIn = false
};
model.Create(userInfo);
db.Insert(model);
}
else
{
foreach (var item in entity.InternalParticipants.Split(','))
{
var model = new MeetingSignInRecordEntity()
{
MeetID = entity.Id,
ParticipantID = item,
ParticipantName = this.BaseRepository().FindEntity<UserEntity>(x => x.F_UserId == item)?.F_RealName,
IsSignIn = false
};
model.Create(userInfo);
db.Insert(model);
}
}
}
//增加校外参入人员:
if (!string.IsNullOrEmpty(entity.ExternalParticipants))
{
if (entity.ExternalParticipants.IndexOf(',') == -1)
{
var model = new MeetingSignInRecordEntity()
{
MeetID = entity.Id,
ParticipantName = entity.ExternalParticipants,
IsSignIn = false
};
model.Create(userInfo);
db.Insert(model);
}
else
{
foreach (var item in entity.ExternalParticipants.Split(','))
{
var model = new MeetingSignInRecordEntity()
{
MeetID = entity.Id,
ParticipantName = item,
IsSignIn = false
};
model.Create(userInfo);
db.Insert(model);
}
}
}

}
else if (status == "2") //审核不通过:会议签到记录表中删除参会人员记录;
{
db.Delete<MeetingSignInRecordEntity>(x => x.MeetID == entity.Id);
}
}

db.Commit();

}
catch (Exception ex)
{
db.Rollback();
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}


#endregion

}


+ 1
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.WorkFlow/Learun.Application.WorkFlow.csproj Voir le fichier

@@ -97,6 +97,7 @@
<Compile Include="NodeMethod\ADR_AddApplyMethod.cs" />
<Compile Include="NodeMethod\Ass_AcceptanceMethod.cs" />
<Compile Include="NodeMethod\Ass_ReceiveMethod.cs" />
<Compile Include="NodeMethod\MeetingManagementApplyMethod.cs" />
<Compile Include="NodeMethod\SW_Ask_StudentMainMethod.cs" />
<Compile Include="NodeMethod\SW_Ask_TypeMethod.cs" />
<Compile Include="NodeMethod\LC_hetongMethod.cs" />


+ 27
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.WorkFlow/NodeMethod/MeetingManagementApplyMethod.cs Voir le fichier

@@ -0,0 +1,27 @@
using Learun.Application.TwoDevelopment.PersonnelManagement;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Learun.Application.WorkFlow
{
public class MeetingManagementApplyMethod : IWorkFlowMethod
{
MeetingManagementIBLL meetingManagementIBLL = new MeetingManagementBLL();


public void Execute(WfMethodParameter parameter)
{
if (parameter.code == "agree")
{
meetingManagementIBLL.ChangeStatusByProcessId(parameter.processId, "1", parameter.userId);
}
else
{
meetingManagementIBLL.ChangeStatusByProcessId(parameter.processId, "2", parameter.userId);
}
}
}
}

Chargement…
Annuler
Enregistrer