From 6227a5cec024502d8e564c924985bbbe2dbe4039 Mon Sep 17 00:00:00 2001
From: dyy <18335927079@163.com>
Date: Wed, 20 Apr 2022 10:25:59 +0800
Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=A2=9E=E5=8A=A0=E3=80=91=E4=BC=9A?=
=?UTF-8?q?=E8=AE=AE=E5=AE=A4=E7=94=B3=E8=AF=B7=E7=BB=9F=E8=AE=A1=EF=BC=9B?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Controllers/NWFProcessController.cs | 30 ++++
.../NWFProcess/MonitorIndexOfmeeting.cshtml | 76 +++++++++
.../Views/NWFProcess/MonitorIndexOfmeeting.js | 143 ++++++++++++++++
.../Learun.Application.Web.csproj | 2 +
.../LR_LGManager/LC_meetingMap.cs | 29 ++++
.../Learun.Application.Mapping.csproj | 1 +
.../LC_meeting/LC_meetingEntity.cs | 153 ++++++++++++++++++
.../Learun.Application.TwoDevelopment.csproj | 1 +
.../Process/NWFProcessBLL.cs | 25 +++
.../Process/NWFProcessIBLL.cs | 8 +
.../Process/NWFProcessSerivce.cs | 96 +++++++++++
11 files changed, 564 insertions(+)
create mode 100644 Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/NWFProcess/MonitorIndexOfmeeting.cshtml
create mode 100644 Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/NWFProcess/MonitorIndexOfmeeting.js
create mode 100644 Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/LR_LGManager/LC_meetingMap.cs
create mode 100644 Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_LGManager/LC_meeting/LC_meetingEntity.cs
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Controllers/NWFProcessController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Controllers/NWFProcessController.cs
index 9becdb2ed..dd2ee0489 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Controllers/NWFProcessController.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Controllers/NWFProcessController.cs
@@ -276,6 +276,15 @@ namespace Learun.Application.Web.Areas.LR_NewWorkFlow.Controllers
{
return View();
}
+ ///
+ /// 会议室申请统计
+ ///
+ ///
+ [HttpGet]
+ public ActionResult MonitorIndexOfmeeting()
+ {
+ return View();
+ }
#endregion
#region 获取数据
@@ -418,6 +427,27 @@ namespace Learun.Application.Web.Areas.LR_NewWorkFlow.Controllers
};
return Success(jsonData);
}
+ ///
+ /// 会议室申请流程表单统计
+ ///
+ /// 分页参数
+ /// 查询条件
+ ///
+ [HttpGet]
+ [AjaxOnly]
+ public ActionResult GetPageListOfmeeting(string pagination, string queryJson)
+ {
+ Pagination paginationobj = pagination.ToObject();
+ var list = nWFProcessIBLL.GetPageListOfmeeting(paginationobj, queryJson);
+ var jsonData = new
+ {
+ rows = list,
+ total = paginationobj.total,
+ page = paginationobj.page,
+ records = paginationobj.records,
+ };
+ return Success(jsonData);
+ }
#endregion
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/NWFProcess/MonitorIndexOfmeeting.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/NWFProcess/MonitorIndexOfmeeting.cshtml
new file mode 100644
index 000000000..d7b66ecb7
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/NWFProcess/MonitorIndexOfmeeting.cshtml
@@ -0,0 +1,76 @@
+@{
+ ViewBag.Title = "流程监控";
+ Layout = "~/Views/Shared/_Index.cshtml";
+}
+
+@Html.AppendJsFile("/Areas/LR_NewWorkFlow/Views/NWFProcess/MonitorIndexOfmeeting.js")
+
+
+
+
+
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/NWFProcess/MonitorIndexOfmeeting.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/NWFProcess/MonitorIndexOfmeeting.js
new file mode 100644
index 000000000..154da69dd
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/NWFProcess/MonitorIndexOfmeeting.js
@@ -0,0 +1,143 @@
+/*
+ * 版 本 Learun-ADMS V7.0.3 力软敏捷开发框架(http://www.learun.cn)
+ * Copyright (c) 2013-2018 上海力软信息技术有限公司
+ * 创建人:力软-前端开发组
+ * 日 期:2018.12.19
+ * 描 述:流程监控
+ */
+var bootstrap = function ($, learun) {
+ "use strict";
+ var categoryId = '1';
+ var logbegin = '';
+ var logend = '';
+
+ var page = {
+ init: function () {
+ $('#lr_verify').hide();
+ page.initleft();
+ page.initGrid();
+ page.bind();
+ },
+ bind: function () {
+ $('#datesearch').lrdate({
+ dfdata: [
+ { name: '今天', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00') }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } },
+ { name: '近7天', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'd', -6) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } },
+ { name: '近1个月', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'm', -1) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } },
+ { name: '近3个月', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'm', -3) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } },
+ ],
+ // 月
+ mShow: false,
+ premShow: false,
+ // 季度
+ jShow: false,
+ prejShow: false,
+ // 年
+ ysShow: false,
+ yxShow: false,
+ preyShow: false,
+ yShow: false,
+ selectfn: function (begin, end) {
+ logbegin = begin;
+ logend = end;
+ page.search();
+ }
+ });
+ $('#multiple_condition_query').lrMultipleQuery(function (queryJson) {
+ page.search(queryJson);
+ }, 280, 400);
+ // 查询
+ $('#btn_Search').on('click', function () {
+ var keyword = $('#txt_Keyword').val();
+ page.search({ keyword: keyword });
+ });
+ // 刷新
+ $('#lr_refresh').on('click', function () {
+ location.reload();
+ });
+ // 查看
+ $('#lr_eye').on('click', function () {
+ page.eye();
+ });
+ },
+ initleft: function () {
+ $('#lr_left_list li').on('click', function () {
+ var $this = $(this);
+ var $parent = $this.parent();
+ $parent.find('.active').removeClass('active');
+ $this.addClass('active');
+ categoryId = $this.attr('data-value');
+ page.search();
+ });
+ },
+ initGrid: function () {
+ $('#gridtable').lrAuthorizeJfGridLei({
+ url: top.$.rootUrl + '/LR_NewWorkFlow/NWFProcess/GetPageListOfmeeting',
+ headData: [
+ { label: "申请人", name: "F_CreateUserName", width: 100, align: "center" },
+ { label: "会议主题", name: "LC_Title", width: 150, align: "center" },
+ { label: "会议内容", name: "LC_Content", width: 200, align: "center" },
+ { label: "会议室", name: "LC_Meetroom", width: 100, align: "center" },
+ { label: "会议时间", name: "LC_MeetTime", width: 100, align: "center" },
+ {
+ label: "流程审批状态", name: "F_EnabledMark", width: 70, align: "center",
+ formatter: function (cellvalue, row) {
+ if (row.F_IsFinished == 0) {
+ if (cellvalue == 1) {
+ if (row.F_IsUrge == "1" && categoryId == '2') {
+ return "催办加急";
+ }
+ return "运行中";
+ } else if (cellvalue == 2) {
+ return "草稿";
+ } else if (cellvalue == 3) {
+ return "作废";
+ } else {
+ return "终止";
+ }
+ }
+ else {
+ return "结束";
+ }
+
+ }
+ },
+ ],
+ mainId: 'F_Id',
+ isPage: true,
+ sidx: 'F_CreateDate DESC',
+ dblclick: function () {
+ page.eye();
+ }
+ });
+ page.search();
+ },
+ search: function (param) {
+ param = param || {};
+ param.StartTime = logbegin;
+ param.EndTime = logend;
+ param.categoryId = categoryId;
+ $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
+ },
+ eye: function () {
+ var processId = $('#gridtable').jfGridValue('F_Id') || '';
+ var title = $('#gridtable').jfGridValue('F_Title');
+ var schemeName = $('#gridtable').jfGridValue('F_SchemeName');
+
+ if (schemeName != title && title) {
+ title = schemeName + "(" + title + ")";
+ }
+ else {
+ title = schemeName;
+ }
+
+ if (learun.checkrow(processId)) {
+ learun.frameTab.open({ F_ModuleId: 'monitor' + processId, F_FullName: '查看-' + title, F_UrlAddress: '/LR_NewWorkFlow/NWFProcess/MonitorDetailsIndex?processId=' + processId });
+ }
+ }
+ };
+
+ page.init();
+}
+
+
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 d0890b265..19e28fb20 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
@@ -1375,6 +1375,7 @@
+
@@ -7721,6 +7722,7 @@
+
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/LR_LGManager/LC_meetingMap.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/LR_LGManager/LC_meetingMap.cs
new file mode 100644
index 000000000..e87fff2b4
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/LR_LGManager/LC_meetingMap.cs
@@ -0,0 +1,29 @@
+using Learun.Application.TwoDevelopment.LR_LGManager;
+using System.Data.Entity.ModelConfiguration;
+
+namespace Learun.Application.Mapping
+{
+ ///
+ /// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园
+ /// Copyright (c) 2013-2018 北京泉江科技有限公司
+ /// 创 建:超级管理员
+ /// 日 期:2020-05-07 14:26
+ /// 描 述:流程会议室申请
+ ///
+ public class LC_meetingMap : EntityTypeConfiguration
+ {
+ public LC_meetingMap()
+ {
+ #region 表、主键
+ //表
+ this.ToTable("LC_MEETING");
+ //主键
+ this.HasKey(t => t.LC_ID);
+ #endregion
+
+ #region 配置关系
+ #endregion
+ }
+ }
+}
+
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/Learun.Application.Mapping.csproj b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/Learun.Application.Mapping.csproj
index b94b32bbd..9d2d9c36f 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/Learun.Application.Mapping.csproj
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/Learun.Application.Mapping.csproj
@@ -148,6 +148,7 @@
+
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_LGManager/LC_meeting/LC_meetingEntity.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_LGManager/LC_meeting/LC_meetingEntity.cs
new file mode 100644
index 000000000..7a8689959
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_LGManager/LC_meeting/LC_meetingEntity.cs
@@ -0,0 +1,153 @@
+using Learun.Util;
+using System;
+using System.ComponentModel.DataAnnotations.Schema;
+namespace Learun.Application.TwoDevelopment.LR_LGManager
+
+{
+ ///
+ /// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园
+ /// Copyright (c) 2013-2018 北京泉江科技有限公司
+ /// 创 建:超级管理员
+ /// 日 期:2020-05-07 14:26
+ /// 描 述:流程会议室申请
+ ///
+ public class LC_meetingEntity
+ {
+ #region 实体成员
+ ///
+ /// ID
+ ///
+ ///
+ [Column("LC_ID")]
+ public string LC_ID { get; set; }
+ ///
+ /// 申请人
+ ///
+ ///
+ [Column("F_CREATEUSERNAME")]
+ public string F_CreateUserName { get; set; }
+ ///
+ /// 会议时间
+ ///
+ ///
+ [Column("LC_MEETTIME")]
+ public string LC_MeetTime { get; set; }
+ ///
+ /// 会议室
+ ///
+ ///
+ [Column("LC_MEETROOM")]
+ public string LC_MeetRoom { get; set; }
+ ///
+ /// 会议主题
+ ///
+ ///
+ [Column("LC_TITLE")]
+ public string LC_Title { get; set; }
+ ///
+ /// 会议内容
+ ///
+ ///
+ [Column("LC_CONTENT")]
+ public string LC_Content { get; set; }
+
+ #endregion
+
+ #region 扩展操作
+ ///
+ /// 新增调用
+ ///
+ public void Create()
+ {
+ this.LC_ID = Guid.NewGuid().ToString();
+ UserInfo userInfo = LoginUserInfo.Get();
+ this.F_CreateUserName = userInfo.realName;
+ }
+ ///
+ /// 编辑调用
+ ///
+ ///
+ public void Modify(string keyValue)
+ {
+ this.LC_ID = keyValue;
+ UserInfo userInfo = LoginUserInfo.Get();
+ }
+ #endregion
+ #region 扩展数据
+ ///
+ /// 主键
+ ///
+ ///
+ [NotMapped]
+ public string F_Id { get; set; }
+ ///
+ /// 流程模板主键
+ ///
+ ///
+ [NotMapped]
+ public string F_SchemeId { get; set; }
+ ///
+ /// 流程模板编码
+ ///
+ ///
+ [NotMapped]
+ public string F_SchemeCode { get; set; }
+ ///
+ /// 流程模板名称
+ ///
+ ///
+ [NotMapped]
+ public string F_SchemeName { get; set; }
+ ///
+ /// 流程进程自定义标题
+ ///
+ ///
+ [NotMapped]
+ public string F_Title { get; set; }
+ ///
+ /// 流程进程等级
+ ///
+ ///
+ [NotMapped]
+ public int? F_Level { get; set; }
+ ///
+ /// 流程进程有效标志 1正常2草稿3作废4终止
+ ///
+ ///
+ [NotMapped]
+ public int? F_EnabledMark { get; set; }
+ ///
+ /// 流程进程是否结束1是0不是
+ ///
+ ///
+ [NotMapped]
+ public int? F_IsFinished { get; set; }
+ ///
+ /// 是否被催办 1 被催办了
+ ///
+ ///
+ [NotMapped]
+ public int? F_IsUrge { get; set; }
+ ///
+ /// 创建时间
+ ///
+ ///
+ [NotMapped]
+ public DateTime? F_CreateDate { get; set; }
+ ///
+ /// 创建人主键
+ ///
+ ///
+ [NotMapped]
+ public string F_CreateUserId { get; set; }
+ ///
+ /// 创建人名称
+ ///
+ ///
+ [NotMapped]
+ public string F_CreateUserNameInProcess { get; set; }
+
+ #endregion
+ }
+}
+
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Learun.Application.TwoDevelopment.csproj b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Learun.Application.TwoDevelopment.csproj
index 458d768f7..b5650c17e 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Learun.Application.TwoDevelopment.csproj
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Learun.Application.TwoDevelopment.csproj
@@ -362,6 +362,7 @@
+
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.WorkFlow/Process/NWFProcessBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.WorkFlow/Process/NWFProcessBLL.cs
index 070ac41b9..ea84908b2 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.WorkFlow/Process/NWFProcessBLL.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.WorkFlow/Process/NWFProcessBLL.cs
@@ -227,6 +227,31 @@ namespace Learun.Application.WorkFlow
}
}
+ ///
+ /// 会议室申请流程表单统计
+ ///
+ /// 分页参数
+ /// 查询条件
+ ///
+ public IEnumerable GetPageListOfmeeting(Pagination pagination, string queryJson)
+ {
+ try
+ {
+ return nWFProcessSerive.GetPageListOfmeeting(pagination, queryJson);
+ }
+ 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.WorkFlow/Process/NWFProcessIBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.WorkFlow/Process/NWFProcessIBLL.cs
index 6685aa55b..5197fb910 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.WorkFlow/Process/NWFProcessIBLL.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.WorkFlow/Process/NWFProcessIBLL.cs
@@ -126,6 +126,14 @@ namespace Learun.Application.WorkFlow
///
IEnumerable GetPageListOfyyspd(Pagination pagination, string queryJson);
+ ///
+ /// 会议室申请流程表单统计
+ ///
+ /// 分页参数
+ /// 查询条件
+ ///
+ IEnumerable GetPageListOfmeeting(Pagination pagination, string queryJson);
+
#endregion
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.WorkFlow/Process/NWFProcessSerivce.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.WorkFlow/Process/NWFProcessSerivce.cs
index 7a3d5be18..867d77f03 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.WorkFlow/Process/NWFProcessSerivce.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.WorkFlow/Process/NWFProcessSerivce.cs
@@ -854,6 +854,102 @@ namespace Learun.Application.WorkFlow
}
}
+ ///
+ /// 会议室申请流程表单统计
+ ///
+ /// 分页参数
+ /// 查询条件
+ ///
+ public IEnumerable GetPageListOfmeeting(Pagination pagination, string queryJson)
+ {
+ try
+ {
+ var misdbname = BaseRepository("CollegeMIS").getDbConnection().Database;
+ var basedbname = BaseRepository().getDbConnection().Database;
+
+ var strSql = new StringBuilder();
+ strSql.Append("select y.*,t.F_Id,t.F_SchemeId,t.F_SchemeCode,t.F_SchemeName,t.F_Title,t.F_Level,t.F_EnabledMark,t.F_IsFinished,t.F_CreateDate,t.F_CreateUserId,t.F_CreateUserName as F_CreateUserNameInProcess from LR_NWF_Process t left join LR_NWF_SchemeInfo s on t.F_SchemeCode=s.F_Code ");
+ strSql.Append($" left join {misdbname}.dbo.LC_meeting y on y.LC_ID=t.F_Id ");
+ strSql.Append(" where 1=1 and t.F_EnabledMark !=2 and t.F_EnabledMark != 3 and t.F_IsChild = 0 ");
+ strSql.Append(" and s.F_Code='LC_meeting' ");
+
+ var queryParam = queryJson.ToJObject();
+ // 虚拟参数
+ var dp = new DynamicParameters(new { });
+
+ // 分类
+ if (!queryParam["categoryId"].IsEmpty()) // 1:未完成 2:已完成
+ {
+ if (queryParam["categoryId"].ToString() == "1")
+ {
+ strSql.Append(" and t.F_IsFinished = 0 ");
+ }
+ else
+ {
+ strSql.Append(" and t.F_IsFinished = 1 ");
+ }
+ }
+ //申请人
+ if (!queryParam["F_CreateUserName"].IsEmpty())
+ {
+ dp.Add("F_CreateUserName", "%" + queryParam["F_CreateUserName"].ToString() + "%", DbType.String);
+ strSql.Append(" AND y.F_CreateUserName like @F_CreateUserName ");
+ }
+ //会议主题
+ if (!queryParam["LC_Title"].IsEmpty())
+ {
+ dp.Add("LC_Title", "%" + queryParam["LC_Title"].ToString() + "%", DbType.String);
+ strSql.Append(" AND y.LC_Title like @LC_Title ");
+ }
+ //会议内容
+ if (!queryParam["LC_Content"].IsEmpty())
+ {
+ dp.Add("LC_Content", "%" + queryParam["LC_Content"].ToString() + "%", DbType.String);
+ strSql.Append(" AND y.LC_Content like @LC_Content ");
+ }
+ //会议室
+ if (!queryParam["LC_Meetroom"].IsEmpty())
+ {
+ dp.Add("LC_Meetroom", "%" + queryParam["LC_Meetroom"].ToString() + "%", DbType.String);
+ strSql.Append(" AND y.LC_Meetroom like @LC_Meetroom ");
+ }
+ //会议时间
+ if (!queryParam["LC_MeetTime"].IsEmpty())
+ {
+ dp.Add("LC_MeetTime", "%" + queryParam["LC_MeetTime"].ToString() + "%", DbType.String);
+ strSql.Append(" AND y.LC_MeetTime like @LC_MeetTime ");
+ }
+ //关键字:申请人、会议主题、会议内容、会议室、会议时间
+ if (!queryParam["keyword"].IsEmpty())
+ {
+ dp.Add("keyword", "%" + queryParam["keyword"].ToString() + "%", DbType.String);
+ strSql.Append(" AND (y.F_CreateUserName like @keyword or y.LC_Title like @keyword or y.LC_Content like @keyword or y.LC_Meetroom like @keyword or y.LC_MeetTime like @keyword) ");
+ }
+ // 会议时间
+ if (!queryParam["StartTime"].IsEmpty() && !queryParam["EndTime"].IsEmpty())
+ {
+ dp.Add("StartTime", queryParam["StartTime"].ToString(), DbType.Date);
+ dp.Add("EndTime", queryParam["EndTime"].ToString(), DbType.Date);
+ strSql.Append(" and (y.LC_MeetTime >= @StartTime and y.LC_MeetTime <= @EndTime)");
+ }
+
+ var result = this.BaseRepository().FindList(strSql.ToString(), dp);
+
+ return result;
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowServiceException(ex);
+ }
+ }
+ }
+
#endregion