Ver a proveniência

【增加】会议管理增加会议纪要、会议通知、我参加的会议;

master
dyy há 3 anos
ascendente
cometimento
f337079fec
26 ficheiros alterados com 1263 adições e 56 eliminações
  1. +9
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Controllers/MeetingManagementController.cs
  2. +5
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Controllers/MeetingMinutesController.cs
  3. +128
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Controllers/MeetingNoticeController.cs
  4. +27
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MeetingManagement/Index.js
  5. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MeetingManagement/IndexOfMyApply.js
  6. +55
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MeetingManagement/IndexOfMyJoin.cshtml
  7. +264
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MeetingManagement/IndexOfMyJoin.js
  8. +8
    -12
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MeetingMinutes/Form.cshtml
  9. +5
    -3
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MeetingMinutes/Form.js
  10. +9
    -7
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MeetingMinutes/Index.cshtml
  11. +16
    -12
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MeetingMinutes/Index.js
  12. +15
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MeetingNotice/Form.cshtml
  13. +54
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MeetingNotice/Form.js
  14. +43
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MeetingNotice/Index.cshtml
  15. +98
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MeetingNotice/Index.js
  16. +7
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj
  17. +1
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/Learun.Application.Mapping.csproj
  18. +29
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/PersonnelManagement/MeetingNoticeMap.cs
  19. +4
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Learun.Application.TwoDevelopment.csproj
  20. +5
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/MeetingManagement/MeetingManagementService.cs
  21. +0
    -1
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/MeetingMinutes/MeetingMinutesEntity.cs
  22. +4
    -18
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/MeetingMinutes/MeetingMinutesService.cs
  23. +149
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/MeetingNotice/MeetingNoticeBLL.cs
  24. +73
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/MeetingNotice/MeetingNoticeEntity.cs
  25. +56
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/MeetingNotice/MeetingNoticeIBLL.cs
  26. +198
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/MeetingNotice/MeetingNoticeService.cs

+ 9
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Controllers/MeetingManagementController.cs Ver ficheiro

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

#region 获取数据


+ 5
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Controllers/MeetingMinutesController.cs Ver ficheiro

@@ -3,6 +3,7 @@ using System.Data;
using Learun.Application.TwoDevelopment.PersonnelManagement;
using System.Web.Mvc;
using System.Collections.Generic;
using System;

namespace Learun.Application.Web.Areas.PersonnelManagement.Controllers
{
@@ -114,7 +115,10 @@ namespace Learun.Application.Web.Areas.PersonnelManagement.Controllers
[AjaxOnly]
public ActionResult SaveForm(string keyValue, string strEntity)
{
UserInfo userInfo = LoginUserInfo.Get(); MeetingMinutesEntity entity = strEntity.ToObject<MeetingMinutesEntity>();
UserInfo userInfo = LoginUserInfo.Get();
MeetingMinutesEntity entity = strEntity.ToObject<MeetingMinutesEntity>();
entity.CreateTime = DateTime.Now;
entity.CreateUser = userInfo.userId;
meetingMinutesIBLL.SaveEntity(userInfo,keyValue,entity);
return Success("保存成功!");
}


+ 128
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Controllers/MeetingNoticeController.cs Ver ficheiro

@@ -0,0 +1,128 @@
using Learun.Util;
using System.Data;
using Learun.Application.TwoDevelopment.PersonnelManagement;
using System.Web.Mvc;
using System.Collections.Generic;
using System;

namespace Learun.Application.Web.Areas.PersonnelManagement.Controllers
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2021-03-08 10:36
/// 描 述:会议通知
/// </summary>
public class MeetingNoticeController : MvcControllerBase
{
private MeetingNoticeIBLL meetingNoticeIBLL = new MeetingNoticeBLL();

#region 视图功能

/// <summary>
/// 主页面
/// <summary>
/// <returns></returns>
[HttpGet]
public ActionResult Index()
{
return View();
}
/// <summary>
/// 表单页
/// <summary>
/// <returns></returns>
[HttpGet]
public ActionResult Form()
{
return View();
}
#endregion

#region 获取数据

/// <summary>
/// 获取页面显示列表分页数据
/// <summary>
/// <param name="pagination">分页参数</param>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
[HttpGet]
[AjaxOnly]
public ActionResult GetPageList(string pagination, string queryJson)
{
Pagination paginationobj = pagination.ToObject<Pagination>();
var data = meetingNoticeIBLL.GetPageList(paginationobj, queryJson);
var jsonData = new
{
rows = data,
total = paginationobj.total,
page = paginationobj.page,
records = paginationobj.records
};
return Success(jsonData);
}
/// <summary>
/// 获取页面显示列表数据
/// <summary>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
[HttpGet]
[AjaxOnly]
public ActionResult GetList(string queryJson)
{
var data = meetingNoticeIBLL.GetList(queryJson);
return Success(data);
}
/// <summary>
/// 获取表单数据
/// <summary>
/// <returns></returns>
[HttpGet]
[AjaxOnly]
public ActionResult GetFormData(string keyValue)
{
var MeetingNoticeData = meetingNoticeIBLL.GetMeetingNoticeEntity( keyValue );
var jsonData = new {
MeetingNotice = MeetingNoticeData,
};
return Success(jsonData);
}
#endregion

#region 提交数据

/// <summary>
/// 删除实体数据
/// <param name="keyValue">主键</param>
/// <summary>
/// <returns></returns>
[HttpPost]
[AjaxOnly]
public ActionResult DeleteForm(string keyValue)
{
meetingNoticeIBLL.DeleteEntity(keyValue);
return Success("删除成功!");
}
/// <summary>
/// 保存实体数据(新增、修改)
/// <param name="keyValue">主键</param>
/// <summary>
/// <returns></returns>
[HttpPost]
[ValidateAntiForgeryToken]
[AjaxOnly]
public ActionResult SaveForm(string keyValue, string strEntity)
{
UserInfo userInfo = LoginUserInfo.Get();
MeetingNoticeEntity entity = strEntity.ToObject<MeetingNoticeEntity>();
entity.CreateTime = DateTime.Now;
entity.CreateUser = userInfo.userId;
meetingNoticeIBLL.SaveEntity(userInfo,keyValue,entity);
return Success("保存成功!");
}
#endregion

}
}

+ 27
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MeetingManagement/Index.js Ver ficheiro

@@ -139,7 +139,33 @@ var bootstrap = function ($, learun) {
});
// 考勤
// 纪要
$('#lr_minutes').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('Id');
if (learun.checkrow(keyValue)) {
learun.layerForm({
id: 'MeetingMinutesIndex',
title: '会议纪要',
url: top.$.rootUrl + '/PersonnelManagement/MeetingMinutes/Index?MeetID=' + keyValue,
width: 1000,
height: 800,
btn:null
});
}
});
// 通知
$('#lr_notice').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('Id');
if (learun.checkrow(keyValue)) {
learun.layerForm({
id: 'MeetingNoticeIndex',
title: '会议通知',
url: top.$.rootUrl + '/PersonnelManagement/MeetingNotice/Index?MeetID=' + keyValue,
width: 1000,
height: 800,
btn: null
});
}
});
// 审核通过
$('#lr_checkyes').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('Id');
@@ -213,7 +239,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" ? "未通过" : cellvalue == "3" ? "审核中" : "未审核";
return cellvalue == "1" ? "<span class=\"label label-success\">已通过</span>" : cellvalue == "2" ? "<span class=\"label label-danger\">未通过</span>" : cellvalue == "3" ? "<span class=\"label label-warning\">审核中</span>" : "<span class=\"label label-default\">未审核</span>";
}
},
{


+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MeetingManagement/IndexOfMyApply.js Ver ficheiro

@@ -213,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" ? "未通过" : cellvalue == "3" ? "审核中" : "未审核";
return cellvalue == "1" ? "<span class=\"label label-success\">已通过</span>" : cellvalue == "2" ? "<span class=\"label label-danger\">未通过</span>" : cellvalue == "3" ? "<span class=\"label label-warning\">审核中</span>" : "<span class=\"label label-default\">未审核</span>";
}
},
{


+ 55
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MeetingManagement/IndexOfMyJoin.cshtml Ver ficheiro

@@ -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/IndexOfMyJoin.js")

+ 264
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MeetingManagement/IndexOfMyJoin.js Ver ficheiro

@@ -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" ? "<span class=\"label label-success\">已通过</span>" : cellvalue == "2" ? "<span class=\"label label-danger\">未通过</span>" : cellvalue == "3" ? "<span class=\"label label-warning\">审核中</span>" : "<span class=\"label label-default\">未审核</span>";
}
},
{
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.InternalParticipants = 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();
}

+ 8
- 12
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MeetingMinutes/Form.cshtml Ver ficheiro

@@ -3,21 +3,17 @@
Layout = "~/Views/Shared/_Form.cshtml";
}
<div class="lr-form-wrap">
<div class="col-xs-12 lr-form-item" data-table="MeetingMinutes" >
<div class="lr-form-item-title">会议名称</div>
<input id="MeetID" type="text" class="form-control" />
<div class="col-xs-12 lr-form-item" data-table="MeetingMinutes">
<div class="lr-form-item-title">纪要标题<font face="宋体">*</font></div>
<input id="Title" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
</div>
<div class="col-xs-12 lr-form-item" data-table="MeetingMinutes" >
<div class="lr-form-item-title">纪要标题</div>
<input id="Title" type="text" class="form-control" />
<div class="col-xs-12 lr-form-item" data-table="MeetingMinutes">
<div class="lr-form-item-title">纪要内容</div>
<textarea id="Content" class="form-control" style="height:100px;"></textarea>
</div>
<div class="col-xs-12 lr-form-item" data-table="MeetingMinutes" >
<div class="lr-form-item-title">内容</div>
<div id="Content" style="height:200px;"></div>
</div>
<div class="col-xs-12 lr-form-item" data-table="MeetingMinutes" >
<div class="col-xs-12 lr-form-item" data-table="MeetingMinutes">
<div class="lr-form-item-title">附件上传</div>
<div id="Files" ></div>
<div id="Files"></div>
</div>
</div>
@Html.AppendJsFile("/Areas/PersonnelManagement/Views/MeetingMinutes/Form.js")

+ 5
- 3
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MeetingMinutes/Form.js Ver ficheiro

@@ -6,6 +6,7 @@
*/
var acceptClick;
var keyValue = request('keyValue');
var MeetID = request('MeetID');//会议ID
var bootstrap = function ($, learun) {
"use strict";
var page = {
@@ -15,8 +16,7 @@ var bootstrap = function ($, learun) {
page.initData();
},
bind: function () {
var ContentUE = UE.getEditor('Content');
$('#Content')[0].ue = ContentUE; $('#Files').lrUploader();
$('#Files').lrUploader();
},
initData: function () {
if (!!keyValue) {
@@ -38,8 +38,10 @@ var bootstrap = function ($, learun) {
if (!$('body').lrValidform()) {
return false;
}
var data = $('body').lrGetFormData();
data.MeetID = MeetID;
var postData = {
strEntity: JSON.stringify($('body').lrGetFormData())
strEntity: JSON.stringify(data)
};
$.lrSaveForm(top.$.rootUrl + '/PersonnelManagement/MeetingMinutes/SaveForm?keyValue=' + keyValue, postData, function (res) {
// 保存成功后才回调


+ 9
- 7
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MeetingMinutes/Index.cshtml Ver ficheiro

@@ -1,8 +1,10 @@
@{
ViewBag.Title = "会议纪要";
Layout = "~/Views/Shared/_Index.cshtml";
/**/

ViewBag.Title = "会议纪要";
Layout = "~/Views/Shared/_Index.cshtml";
}
<div class="lr-layout " >
<div class="lr-layout ">
<div class="lr-layout-center">
<div class="lr-layout-wrap lr-layout-wrap-notitle ">
<div class="lr-layout-tool">
@@ -12,7 +14,7 @@
<div class="lr-query-formcontent">
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">会议名称</div>
<input id="MeetID" type="text" class="form-control" />
<input id="MeetingTitle" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">纪要标题</div>
@@ -27,10 +29,10 @@
<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_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_print" class="btn btn-default"><i class="fa fa-print"></i>&nbsp;打印</a>
<a id="lr_print" class="btn btn-default"><i class="fa fa-print"></i>&nbsp;打印</a>
</div>
</div>
</div>


+ 16
- 12
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MeetingMinutes/Index.js Ver ficheiro

@@ -5,6 +5,7 @@
* 描 述:会议纪要
*/
var refreshGirdData;
var MeetID = request('MeetID');//会议ID
var bootstrap = function ($, learun) {
"use strict";
var page = {
@@ -23,9 +24,9 @@ var bootstrap = function ($, learun) {
// 新增
$('#lr_add').on('click', function () {
learun.layerForm({
id: 'form',
id: 'MeetingMinutesform',
title: '新增',
url: top.$.rootUrl + '/PersonnelManagement/MeetingMinutes/Form',
url: top.$.rootUrl + '/PersonnelManagement/MeetingMinutes/Form?MeetID=' + MeetID,
width: 600,
height: 400,
callBack: function (id) {
@@ -38,9 +39,9 @@ var bootstrap = function ($, learun) {
var keyValue = $('#gridtable').jfGridValue('ID');
if (learun.checkrow(keyValue)) {
learun.layerForm({
id: 'form',
id: 'MeetingMinutesform',
title: '编辑',
url: top.$.rootUrl + '/PersonnelManagement/MeetingMinutes/Form?keyValue=' + keyValue,
url: top.$.rootUrl + '/PersonnelManagement/MeetingMinutes/Form?keyValue=' + keyValue + '&MeetID=' + MeetID,
width: 600,
height: 400,
callBack: function (id) {
@@ -55,7 +56,7 @@ var bootstrap = function ($, learun) {
if (learun.checkrow(keyValue)) {
learun.layerConfirm('是否确认删除该项!', function (res) {
if (res) {
learun.deleteForm(top.$.rootUrl + '/PersonnelManagement/MeetingMinutes/DeleteForm', { keyValue: keyValue}, function () {
learun.deleteForm(top.$.rootUrl + '/PersonnelManagement/MeetingMinutes/DeleteForm', { keyValue: keyValue }, function () {
refreshGirdData();
});
}
@@ -72,19 +73,22 @@ var bootstrap = function ($, learun) {
$('#gridtable').lrAuthorizeJfGrid({
url: top.$.rootUrl + '/PersonnelManagement/MeetingMinutes/GetPageList',
headData: [
{ label: "会议名称", name: "MeetID", width: 100, align: "left"},
{ label: "纪要标题", name: "Title", width: 100, align: "left"},
{ label: "内容", name: "Content", width: 100, align: "left"},
{ label: "附件上传", name: "Files", width: 100, align: "left"},
{ label: "会议", name: "MeetingTitle", width: 150, align: "left" },
{ label: "纪要标题", name: "Title", width: 150, align: "left" },
{ label: "内容", name: "Content", width: 150, align: "left" },
{ label: "创建时间", name: "CreateTime", width: 100, align: "left" },
{ label: "创建人", name: "CreateUser", width: 100, align: "left" },
],
mainId:'ID',
isPage: true
mainId: 'ID',
isPage: true,
sidx: 'CreateTime desc'
});
page.search();
},
search: function (param) {
param = param || {};
$('#gridtable').jfGridSet('reload',{ queryJson: JSON.stringify(param) });
param.MeetID = MeetID;
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
}
};
refreshGirdData = function () {


+ 15
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MeetingNotice/Form.cshtml Ver ficheiro

@@ -0,0 +1,15 @@
@{
ViewBag.Title = "会议通知";
Layout = "~/Views/Shared/_Form.cshtml";
}
<div class="lr-form-wrap">
<div class="col-xs-12 lr-form-item" data-table="MeetingNotice">
<div class="lr-form-item-title">通知标题<font face="宋体">*</font></div>
<input id="Title" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
</div>
<div class="col-xs-12 lr-form-item" data-table="MeetingNotice">
<div class="lr-form-item-title">通知内容</div>
<textarea id="Content" class="form-control" style="height:100px;"></textarea>
</div>
</div>
@Html.AppendJsFile("/Areas/PersonnelManagement/Views/MeetingNotice/Form.js")

+ 54
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MeetingNotice/Form.js Ver ficheiro

@@ -0,0 +1,54 @@
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
* 创建人:超级管理员
* 日 期:2021-03-08 10:36
* 描 述:会议通知
*/
var acceptClick;
var keyValue = request('keyValue');
var MeetID = request('MeetID');//会议ID
var bootstrap = function ($, learun) {
"use strict";
var page = {
init: function () {
$('.lr-form-wrap').lrscroll();
page.bind();
page.initData();
},
bind: function () {
$('#Files').lrUploader();
},
initData: function () {
if (!!keyValue) {
$.lrSetForm(top.$.rootUrl + '/PersonnelManagement/MeetingNotice/GetFormData?keyValue=' + keyValue, function (data) {
for (var id in data) {
if (!!data[id].length && data[id].length > 0) {
$('#' + id ).jfGridSet('refreshdata', data[id]);
}
else {
$('[data-table="' + id + '"]').lrSetFormData(data[id]);
}
}
});
}
}
};
// 保存数据
acceptClick = function (callBack) {
if (!$('body').lrValidform()) {
return false;
}
var data = $('body').lrGetFormData();
data.MeetID = MeetID;
var postData = {
strEntity: JSON.stringify(data)
};
$.lrSaveForm(top.$.rootUrl + '/PersonnelManagement/MeetingNotice/SaveForm?keyValue=' + keyValue, postData, function (res) {
// 保存成功后才回调
if (!!callBack) {
callBack();
}
});
};
page.init();
}

+ 43
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MeetingNotice/Index.cshtml Ver ficheiro

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

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>
<input id="Title" type="text" class="form-control" />
</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_print" class="btn btn-default"><i class="fa fa-print"></i>&nbsp;打印</a>
</div>
</div>
</div>
<div class="lr-layout-body" id="gridtable"></div>
</div>
</div>
</div>
@Html.AppendJsFile("/Areas/PersonnelManagement/Views/MeetingNotice/Index.js")

+ 98
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MeetingNotice/Index.js Ver ficheiro

@@ -0,0 +1,98 @@
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
* 创建人:超级管理员
* 日 期:2021-03-08 10:36
* 描 述:会议通知
*/
var refreshGirdData;
var MeetID = request('MeetID');//会议ID
var bootstrap = function ($, learun) {
"use strict";
var page = {
init: function () {
page.initGird();
page.bind();
},
bind: function () {
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) {
page.search(queryJson);
}, 220, 400);
// 刷新
$('#lr_refresh').on('click', function () {
location.reload();
});
// 新增
$('#lr_add').on('click', function () {
learun.layerForm({
id: 'MeetingNoticeform',
title: '新增',
url: top.$.rootUrl + '/PersonnelManagement/MeetingNotice/Form?MeetID=' + MeetID,
width: 600,
height: 400,
callBack: function (id) {
return top[id].acceptClick(refreshGirdData);
}
});
});
// 编辑
$('#lr_edit').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('ID');
if (learun.checkrow(keyValue)) {
learun.layerForm({
id: 'MeetingNoticeform',
title: '编辑',
url: top.$.rootUrl + '/PersonnelManagement/MeetingNotice/Form?keyValue=' + keyValue + '&MeetID=' + MeetID,
width: 600,
height: 400,
callBack: function (id) {
return top[id].acceptClick(refreshGirdData);
}
});
}
});
// 删除
$('#lr_delete').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('ID');
if (learun.checkrow(keyValue)) {
learun.layerConfirm('是否确认删除该项!', function (res) {
if (res) {
learun.deleteForm(top.$.rootUrl + '/PersonnelManagement/MeetingNotice/DeleteForm', { keyValue: keyValue }, function () {
refreshGirdData();
});
}
});
}
});
// 打印
$('#lr_print').on('click', function () {
$('#gridtable').jqprintTable();
});
},
// 初始化列表
initGird: function () {
$('#gridtable').lrAuthorizeJfGrid({
url: top.$.rootUrl + '/PersonnelManagement/MeetingNotice/GetPageList',
headData: [
{ label: "会议", name: "MeetingTitle", width: 150, align: "left" },
{ label: "通知标题", name: "Title", width: 150, align: "left" },
{ label: "内容", name: "Content", width: 150, align: "left" },
{ label: "创建时间", name: "CreateTime", width: 100, align: "left" },
{ label: "创建人", name: "CreateUser", width: 100, align: "left" },
],
mainId: 'ID',
isPage: true,
sidx: 'CreateTime desc'
});
page.search();
},
search: function (param) {
param = param || {};
param.MeetID = MeetID;
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
}
};
refreshGirdData = function () {
$('#gridtable').jfGridSet('reload');
};
page.init();
}

+ 7
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj Ver ficheiro

@@ -472,6 +472,7 @@
<Compile Include="Areas\Permission\PermissionAreaRegistration.cs" />
<Compile Include="Areas\PersonnelManagement\Controllers\EpidemicReportController.cs" />
<Compile Include="Areas\PersonnelManagement\Controllers\EpidemicSituationCopyController.cs" />
<Compile Include="Areas\PersonnelManagement\Controllers\MeetingNoticeController.cs" />
<Compile Include="Areas\PersonnelManagement\Controllers\MP_PerformanceTrackingController.cs" />
<Compile Include="Areas\PersonnelManagement\Controllers\MP_QualityObjectivesController.cs" />
<Compile Include="Areas\PersonnelManagement\Controllers\MP_ManagementPlanController.cs" />
@@ -1346,7 +1347,10 @@
<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\IndexOfMyJoin.js" />
<Content Include="Areas\PersonnelManagement\Views\MeetingManagement\IndexOfMyApply.js" />
<Content Include="Areas\PersonnelManagement\Views\MeetingNotice\Form.js" />
<Content Include="Areas\PersonnelManagement\Views\MeetingNotice\Index.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" />
@@ -6909,6 +6913,9 @@
<Content Include="Areas\EducationalAdministration\Views\Thermography\IndexResult.cshtml" />
<Content Include="Areas\PersonnelManagement\Views\MeetingManagement\FormView.cshtml" />
<Content Include="Areas\PersonnelManagement\Views\MeetingManagement\IndexOfMyApply.cshtml" />
<Content Include="Areas\PersonnelManagement\Views\MeetingNotice\Form.cshtml" />
<Content Include="Areas\PersonnelManagement\Views\MeetingNotice\Index.cshtml" />
<Content Include="Areas\PersonnelManagement\Views\MeetingManagement\IndexOfMyJoin.cshtml" />
<None Include="Properties\PublishProfiles\FolderProfile.pubxml" />
<Content Include="Views\Login\Default-beifen.cshtml" />
<None Include="Properties\PublishProfiles\FolderProfile1.pubxml" />


+ 1
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/Learun.Application.Mapping.csproj Ver ficheiro

@@ -194,6 +194,7 @@
<Compile Include="LR_WorkFlow\WfTaskHistoryMap.cs" />
<Compile Include="LR_WorkFlow\WfTaskMap.cs" />
<Compile Include="PersonnelManagement\JbjiabanMap.cs" />
<Compile Include="PersonnelManagement\MeetingNoticeMap.cs" />
<Compile Include="PersonnelManagement\MP_ManageMentPlanMap.cs" />
<Compile Include="PersonnelManagement\PMCadreMap.cs" />
<Compile Include="PersonnelManagement\PMDuesMap.cs" />


+ 29
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/PersonnelManagement/MeetingNoticeMap.cs Ver ficheiro

@@ -0,0 +1,29 @@
using Learun.Application.TwoDevelopment.PersonnelManagement;
using System.Data.Entity.ModelConfiguration;

namespace Learun.Application.Mapping
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2021-03-08 10:36
/// 描 述:会议通知
/// </summary>
public class MeetingNoticeMap : EntityTypeConfiguration<MeetingNoticeEntity>
{
public MeetingNoticeMap()
{
#region 表、主键
//表
this.ToTable("MEETINGNOTICE");
//主键
this.HasKey(t => t.ID);
#endregion

#region 配置关系
#endregion
}
}
}


+ 4
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Learun.Application.TwoDevelopment.csproj Ver ficheiro

@@ -285,6 +285,10 @@
<Compile Include="PersonnelManagement\BC_PublishManagement\BC_PublishManagementEntity.cs" />
<Compile Include="PersonnelManagement\BC_PublishManagement\BC_PublishManagementIBLL.cs" />
<Compile Include="PersonnelManagement\BC_PublishManagement\BC_PublishManagementService.cs" />
<Compile Include="PersonnelManagement\MeetingNotice\MeetingNoticeBLL.cs" />
<Compile Include="PersonnelManagement\MeetingNotice\MeetingNoticeEntity.cs" />
<Compile Include="PersonnelManagement\MeetingNotice\MeetingNoticeIBLL.cs" />
<Compile Include="PersonnelManagement\MeetingNotice\MeetingNoticeService.cs" />
<Compile Include="PersonnelManagement\MP_PerformanceTracking\MP_PerformanceTrackingBLL.cs" />
<Compile Include="PersonnelManagement\MP_PerformanceTracking\MP_PerformanceTrackingIBLL.cs" />
<Compile Include="PersonnelManagement\MP_PerformanceTracking\MP_PerformanceTrackingService.cs" />


+ 5
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/MeetingManagement/MeetingManagementService.cs Ver ficheiro

@@ -52,6 +52,11 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement
dp.Add("CreateUser", queryParam["CreateUser"].ToString(), DbType.String);
strSql.Append(" AND t.CreateUser = @CreateUser ");
}
if (!queryParam["InternalParticipants"].IsEmpty())
{
dp.Add("InternalParticipants", "%" + queryParam["InternalParticipants"].ToString() + "%", DbType.String);
strSql.Append(" AND t.InternalParticipants Like @InternalParticipants ");
}
return this.BaseRepository("CollegeMIS").FindList<MeetingManagementEntity>(strSql.ToString(), dp, pagination);
}
catch (Exception ex)


+ 0
- 1
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/MeetingMinutes/MeetingMinutesEntity.cs Ver ficheiro

@@ -71,7 +71,6 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement
#endregion
#region 扩展字段
[NotMapped]
[Column("MEETINGTITLE")]
public string MeetingTitle { get; set; }
#endregion
}


+ 4
- 18
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/MeetingMinutes/MeetingMinutesService.cs Ver ficheiro

@@ -30,14 +30,7 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement
try
{
var strSql = new StringBuilder();
strSql.Append("SELECT ");
strSql.Append(@"
t.ID,
t.MeetID,
t.Title,
t.Content,
t.Files,m.MeetingTitle
");
strSql.Append("SELECT t.*,m.MeetingTitle ");
strSql.Append(" FROM MeetingMinutes t left join MeetingManagement m on t.MeetID=m.Id ");
strSql.Append(" WHERE 1=1 ");
var queryParam = queryJson.ToJObject();
@@ -83,14 +76,7 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement
try
{
var strSql = new StringBuilder();
strSql.Append("SELECT ");
strSql.Append(@"
t.ID,
t.MeetID,
t.Title,
t.Content,
t.Files
");
strSql.Append("SELECT t.* ");
strSql.Append(" FROM MeetingMinutes t ");
strSql.Append(" WHERE 1=1 ");
var queryParam = queryJson.ToJObject();
@@ -98,8 +84,8 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement
var dp = new DynamicParameters(new { });
if (!queryParam["MeetID"].IsEmpty())
{
dp.Add("MeetID", "%" + queryParam["MeetID"].ToString() + "%", DbType.String);
strSql.Append(" AND t.MeetID Like @MeetID ");
dp.Add("MeetID", queryParam["MeetID"].ToString(), DbType.String);
strSql.Append(" AND t.MeetID = @MeetID ");
}
if (!queryParam["Title"].IsEmpty())
{


+ 149
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/MeetingNotice/MeetingNoticeBLL.cs Ver ficheiro

@@ -0,0 +1,149 @@
using Learun.Util;
using System;
using System.Data;
using System.Collections.Generic;

namespace Learun.Application.TwoDevelopment.PersonnelManagement
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2021-03-08 10:36
/// 描 述:会议通知
/// </summary>
public class MeetingNoticeBLL : MeetingNoticeIBLL
{
private MeetingNoticeService meetingNoticeService = new MeetingNoticeService();

#region 获取数据

/// <summary>
/// 获取页面显示列表分页数据
/// <summary>
/// <param name="pagination">分页参数</param>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
public IEnumerable<MeetingNoticeEntity> GetPageList(Pagination pagination, string queryJson)
{
try
{
return meetingNoticeService.GetPageList(pagination, queryJson);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}

/// <summary>
/// 获取页面显示列表数据
/// <summary>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
public IEnumerable<MeetingNoticeEntity> GetList(string queryJson)
{
try
{
return meetingNoticeService.GetList(queryJson);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}

/// <summary>
/// 获取MeetingNotice表实体数据
/// <param name="keyValue">主键</param>
/// <summary>
/// <returns></returns>
public MeetingNoticeEntity GetMeetingNoticeEntity(string keyValue)
{
try
{
return meetingNoticeService.GetMeetingNoticeEntity(keyValue);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}

#endregion

#region 提交数据

/// <summary>
/// 删除实体数据
/// <param name="keyValue">主键</param>
/// <summary>
/// <returns></returns>
public void DeleteEntity(string keyValue)
{
try
{
meetingNoticeService.DeleteEntity(keyValue);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}

/// <summary>
/// 保存实体数据(新增、修改)
/// <param name="keyValue">主键</param>
/// <summary>
/// <returns></returns>
public void SaveEntity(UserInfo userInfo, string keyValue, MeetingNoticeEntity entity)
{
try
{
meetingNoticeService.SaveEntity(userInfo, keyValue, entity);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}

#endregion

}
}

+ 73
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/MeetingNotice/MeetingNoticeEntity.cs Ver ficheiro

@@ -0,0 +1,73 @@
using Learun.Util;
using System;
using System.ComponentModel.DataAnnotations.Schema;

namespace Learun.Application.TwoDevelopment.PersonnelManagement
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2021-03-08 10:36
/// 描 述:会议通知
/// </summary>
public class MeetingNoticeEntity
{
#region 实体成员
/// <summary>
/// 编号
/// </summary>
[Column("ID")]
public string ID { get; set; }
/// <summary>
/// 会议id
/// </summary>
[Column("MEETID")]
public string MeetID { get; set; }
/// <summary>
/// 通知标题
/// </summary>
[Column("TITLE")]
public string Title { get; set; }
/// <summary>
/// 通知内容
/// </summary>
[Column("CONTENT")]
public string Content { get; set; }
/// <summary>
/// 创建时间
/// </summary>
[Column("CREATETIME")]
public DateTime? CreateTime { get; set; }
/// <summary>
/// 创建人
/// </summary>
[Column("CREATEUSER")]
public string CreateUser { get; set; }

#endregion

#region 扩展操作
/// <summary>
/// 新增调用
/// </summary>
public void Create(UserInfo userInfo)
{
this.ID = Guid.NewGuid().ToString();
}
/// <summary>
/// 编辑调用
/// </summary>
/// <param name="keyValue"></param>
public void Modify(string keyValue, UserInfo userInfo)
{
this.ID = keyValue;
}
#endregion
#region 扩展字段
[NotMapped]
public string MeetingTitle { get; set; }
#endregion
}
}


+ 56
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/MeetingNotice/MeetingNoticeIBLL.cs Ver ficheiro

@@ -0,0 +1,56 @@
using Learun.Util;
using System.Data;
using System.Collections.Generic;

namespace Learun.Application.TwoDevelopment.PersonnelManagement
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2021-03-08 10:36
/// 描 述:会议通知
/// </summary>
public interface MeetingNoticeIBLL
{
#region 获取数据

/// <summary>
/// 获取页面显示列表分页数据
/// <summary>
/// <param name="pagination">查询参数</param>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
IEnumerable<MeetingNoticeEntity> GetPageList(Pagination pagination, string queryJson);
/// <summary>
/// 获取页面显示列表数据
/// <summary>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
IEnumerable<MeetingNoticeEntity> GetList(string queryJson);
/// <summary>
/// 获取MeetingNotice表实体数据
/// <param name="keyValue">主键</param>
/// <summary>
/// <returns></returns>
MeetingNoticeEntity GetMeetingNoticeEntity(string keyValue);
#endregion

#region 提交数据

/// <summary>
/// 删除实体数据
/// <param name="keyValue">主键</param>
/// <summary>
/// <returns></returns>
void DeleteEntity(string keyValue);
/// <summary>
/// 保存实体数据(新增、修改)
/// <param name="keyValue">主键</param>
/// <summary>
/// <returns></returns>
void SaveEntity(UserInfo userInfo, string keyValue, MeetingNoticeEntity entity);
#endregion

}
}

+ 198
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/MeetingNotice/MeetingNoticeService.cs Ver ficheiro

@@ -0,0 +1,198 @@
using Dapper;
using Learun.DataBase.Repository;
using Learun.Util;
using System;
using System.Collections.Generic;
using System.Data;
using System.Text;

namespace Learun.Application.TwoDevelopment.PersonnelManagement
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2021-03-08 10:36
/// 描 述:会议通知
/// </summary>
public class MeetingNoticeService : RepositoryFactory
{
#region 获取数据

/// <summary>
/// 获取页面显示列表分页数据
/// <summary>
/// <param name="pagination">分页参数</param>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
public IEnumerable<MeetingNoticeEntity> GetPageList(Pagination pagination, string queryJson)
{
try
{
var strSql = new StringBuilder();
strSql.Append("SELECT t.*,m.MeetingTitle ");
strSql.Append(" FROM MeetingNotice t left join MeetingManagement m on t.MeetID=m.Id ");
strSql.Append(" WHERE 1=1 ");
var queryParam = queryJson.ToJObject();
// 虚拟参数
var dp = new DynamicParameters(new { });
if (!queryParam["MeetID"].IsEmpty())
{
dp.Add("MeetID", queryParam["MeetID"].ToString(), DbType.String);
strSql.Append(" AND t.MeetID = @MeetID ");
}
if (!queryParam["MeetingTitle"].IsEmpty())
{
dp.Add("MeetingTitle", "%" + queryParam["MeetingTitle"].ToString() + "%", DbType.String);
strSql.Append(" AND m.MeetingTitle Like @MeetingTitle ");
}
if (!queryParam["Title"].IsEmpty())
{
dp.Add("Title", "%" + queryParam["Title"].ToString() + "%", DbType.String);
strSql.Append(" AND t.Title Like @Title ");
}
return this.BaseRepository("CollegeMIS").FindList<MeetingNoticeEntity>(strSql.ToString(),dp, pagination);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}

/// <summary>
/// 获取页面显示列表数据
/// <summary>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
public IEnumerable<MeetingNoticeEntity> GetList(string queryJson)
{
try
{
var strSql = new StringBuilder();
strSql.Append("SELECT t.* ");
strSql.Append(" FROM MeetingNotice t ");
strSql.Append(" WHERE 1=1 ");
var queryParam = queryJson.ToJObject();
// 虚拟参数
var dp = new DynamicParameters(new { });
if (!queryParam["MeetID"].IsEmpty())
{
dp.Add("MeetID", queryParam["MeetID"].ToString(), DbType.String);
strSql.Append(" AND t.MeetID = @MeetID ");
}
if (!queryParam["Title"].IsEmpty())
{
dp.Add("Title", "%" + queryParam["Title"].ToString() + "%", DbType.String);
strSql.Append(" AND t.Title Like @Title ");
}
return this.BaseRepository("CollegeMIS").FindList<MeetingNoticeEntity>(strSql.ToString(),dp);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}

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

#endregion

#region 提交数据

/// <summary>
/// 删除实体数据
/// <param name="keyValue">主键</param>
/// <summary>
/// <returns></returns>
public void DeleteEntity(string keyValue)
{
try
{
this.BaseRepository("CollegeMIS").Delete<MeetingNoticeEntity>(t=>t.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 SaveEntity( UserInfo userInfo, string keyValue, MeetingNoticeEntity entity)
{
try
{
if (!string.IsNullOrEmpty(keyValue))
{
entity.Modify(keyValue,userInfo);
this.BaseRepository("CollegeMIS").Update(entity);
}
else
{
entity.Create(userInfo);
this.BaseRepository("CollegeMIS").Insert(entity);
}
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}

#endregion

}
}

Carregando…
Cancelar
Guardar