@@ -267,6 +267,15 @@ namespace Learun.Application.Web.Areas.LR_NewWorkFlow.Controllers | |||||
{ | { | ||||
return View(); | return View(); | ||||
} | } | ||||
/// <summary> | |||||
/// 用印申请统计 | |||||
/// </summary> | |||||
/// <returns></returns> | |||||
[HttpGet] | |||||
public ActionResult MonitorIndexOfyyspd() | |||||
{ | |||||
return View(); | |||||
} | |||||
#endregion | #endregion | ||||
#region 获取数据 | #region 获取数据 | ||||
@@ -387,6 +396,31 @@ namespace Learun.Application.Web.Areas.LR_NewWorkFlow.Controllers | |||||
} | } | ||||
#endregion | #endregion | ||||
#region 流程表单数据统计 | |||||
/// <summary> | |||||
/// 用印申请流程表单统计 | |||||
/// </summary> | |||||
/// <param name="pagination">分页参数</param> | |||||
/// <param name="queryJson">查询条件</param> | |||||
/// <returns></returns> | |||||
[HttpGet] | |||||
[AjaxOnly] | |||||
public ActionResult GetPageListOfyyspd(string pagination, string queryJson) | |||||
{ | |||||
Pagination paginationobj = pagination.ToObject<Pagination>(); | |||||
var list = nWFProcessIBLL.GetPageListOfyyspd(paginationobj, queryJson); | |||||
var jsonData = new | |||||
{ | |||||
rows = list, | |||||
total = paginationobj.total, | |||||
page = paginationobj.page, | |||||
records = paginationobj.records, | |||||
}; | |||||
return Success(jsonData); | |||||
} | |||||
#endregion | |||||
#region 流程API | #region 流程API | ||||
/// <summary> | /// <summary> | ||||
/// 获取流程模板 | /// 获取流程模板 | ||||
@@ -0,0 +1,50 @@ | |||||
@{ | |||||
ViewBag.Title = "流程监控"; | |||||
Layout = "~/Views/Shared/_Index.cshtml"; | |||||
} | |||||
<div id="lr_layout" class="lr-layout lr-layout-left-center"> | |||||
<div class="lr-layout-left"> | |||||
<div class="lr-layout-wrap lr-layout-wrap-notitle" style="padding-top:10px;"> | |||||
<div class="lr-layout-body"> | |||||
<ul class="lr-left-list" id="lr_left_list"> | |||||
<li class="active lrlg" data-value="1">未完成</li> | |||||
<li data-value="2" class="lrlg">已完成</li> | |||||
</ul> | |||||
</div> | |||||
</div> | |||||
</div> | |||||
<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="datesearch"></div> | |||||
</div>*@ | |||||
<div class="lr-layout-tool-item"> | |||||
<input id="txt_Keyword" type="text" class="form-control" placeholder="请输入要查询关键字" /> | |||||
</div> | |||||
<div class="lr-layout-tool-item"> | |||||
<a id="btn_Search" class="btn btn-primary btn-sm"><i class="fa fa-search"></i> <span class="lrlg">查询</span></a> | |||||
</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"> | |||||
<a id="lr_eye" class="btn btn-default"><i class="fa fa-eye"></i> <span class="lrlg">查看</span></a> | |||||
</div> | |||||
</div> | |||||
</div> | |||||
<div class="lr-layout-body" id="gridtable"> | |||||
</div> | |||||
</div> | |||||
</div> | |||||
</div> | |||||
@Html.AppendJsFile("/Areas/LR_NewWorkFlow/Views/NWFProcess/MonitorIndexOfyyspd.js") | |||||
@@ -0,0 +1,141 @@ | |||||
/* | |||||
* 版 本 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(); | |||||
} | |||||
}); | |||||
// 查询 | |||||
$('#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/GetPageListOfyyspd', | |||||
headData: [ | |||||
{ label: "用印部门", name: "LC_yybm", width: 100, align: "center" }, | |||||
{ label: "用印名称", name: "LC_yzmc", width: 150, align: "center" }, | |||||
{ label: "用印份数", name: "LC_yyfs", width: 100, align: "center" }, | |||||
{ label: "用印时间", name: "LC_yysj", width: 120, align: "center" }, | |||||
{ label: "用印事项", name: "LC_yysx", width: 250, align: "center" }, | |||||
{ label: "经办人", name: "F_CreateUserName", 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 "<span class=\"label label-danger\">催办加急</span>"; | |||||
} | |||||
return "<span class=\"label label-success\">运行中</span>"; | |||||
} else if (cellvalue == 2) { | |||||
return "<span class=\"label label-primary\">草稿</span>"; | |||||
} else if (cellvalue == 3) { | |||||
return "<span class=\"label label-danger\">作废</span>"; | |||||
} else { | |||||
return "<span class=\"label label-danger\">终止</span>"; | |||||
} | |||||
} | |||||
else { | |||||
return "<span class=\"label label-warning\">结束</span>"; | |||||
} | |||||
} | |||||
}, | |||||
], | |||||
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(); | |||||
} | |||||
@@ -1375,6 +1375,7 @@ | |||||
<Content Include="Areas\LR_NewWorkFlow\Views\NWFProcess\AddTaskForm.js" /> | <Content Include="Areas\LR_NewWorkFlow\Views\NWFProcess\AddTaskForm.js" /> | ||||
<Content Include="Areas\LR_NewWorkFlow\Views\NWFProcess\htPrint.css" /> | <Content Include="Areas\LR_NewWorkFlow\Views\NWFProcess\htPrint.css" /> | ||||
<Content Include="Areas\LR_NewWorkFlow\Views\NWFProcess\ContractFiling.js" /> | <Content Include="Areas\LR_NewWorkFlow\Views\NWFProcess\ContractFiling.js" /> | ||||
<Content Include="Areas\LR_NewWorkFlow\Views\NWFProcess\MonitorIndexOfyyspd.js" /> | |||||
<Content Include="Areas\LR_NewWorkFlow\Views\NWFProcess\MonitorIndexZiChan.js" /> | <Content Include="Areas\LR_NewWorkFlow\Views\NWFProcess\MonitorIndexZiChan.js" /> | ||||
<Content Include="Areas\LR_NewWorkFlow\Views\NWFProcess\MonitorIndexGongWen.js" /> | <Content Include="Areas\LR_NewWorkFlow\Views\NWFProcess\MonitorIndexGongWen.js" /> | ||||
<Content Include="Areas\LR_NewWorkFlow\Views\NWFProcess\MonitorIndexXingZhen.js" /> | <Content Include="Areas\LR_NewWorkFlow\Views\NWFProcess\MonitorIndexXingZhen.js" /> | ||||
@@ -7719,6 +7720,7 @@ | |||||
<Content Include="Areas\EducationalAdministration\Views\Exam_ExamStudent\FormImport.cshtml" /> | <Content Include="Areas\EducationalAdministration\Views\Exam_ExamStudent\FormImport.cshtml" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\Exam_ExamStudent\Index.cshtml" /> | <Content Include="Areas\EducationalAdministration\Views\Exam_ExamStudent\Index.cshtml" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\Exam_ExamStudent\FormClear.cshtml" /> | <Content Include="Areas\EducationalAdministration\Views\Exam_ExamStudent\FormClear.cshtml" /> | ||||
<Content Include="Areas\LR_NewWorkFlow\Views\NWFProcess\MonitorIndexOfyyspd.cshtml" /> | |||||
<None Include="Properties\PublishProfiles\CustomProfile.pubxml" /> | <None Include="Properties\PublishProfiles\CustomProfile.pubxml" /> | ||||
<None Include="Properties\PublishProfiles\FolderProfile.pubxml" /> | <None Include="Properties\PublishProfiles\FolderProfile.pubxml" /> | ||||
<Content Include="Views\Login\Default-beifen.cshtml" /> | <Content Include="Views\Login\Default-beifen.cshtml" /> | ||||
@@ -0,0 +1,29 @@ | |||||
using Learun.Application.TwoDevelopment.LR_LGManager; | |||||
using System.Data.Entity.ModelConfiguration; | |||||
namespace Learun.Application.Mapping | |||||
{ | |||||
/// <summary> | |||||
/// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园 | |||||
/// Copyright (c) 2013-2018 北京泉江科技有限公司 | |||||
/// 创 建:超级管理员 | |||||
/// 日 期:2020-05-07 14:26 | |||||
/// 描 述:流程用印申请 | |||||
/// </summary> | |||||
public class LC_yyspdMap : EntityTypeConfiguration<LC_yyspdEntity> | |||||
{ | |||||
public LC_yyspdMap() | |||||
{ | |||||
#region 表、主键 | |||||
//表 | |||||
this.ToTable("LC_YYSPD"); | |||||
//主键 | |||||
this.HasKey(t => t.LC_ID); | |||||
#endregion | |||||
#region 配置关系 | |||||
#endregion | |||||
} | |||||
} | |||||
} | |||||
@@ -148,6 +148,7 @@ | |||||
<Compile Include="LR_IM\IMSysUserMap.cs" /> | <Compile Include="LR_IM\IMSysUserMap.cs" /> | ||||
<Compile Include="LR_LGManager\CorporateMaterialApplyMap.cs" /> | <Compile Include="LR_LGManager\CorporateMaterialApplyMap.cs" /> | ||||
<Compile Include="LR_LGManager\CorporateMaterialItemMap.cs" /> | <Compile Include="LR_LGManager\CorporateMaterialItemMap.cs" /> | ||||
<Compile Include="LR_LGManager\LC_yyspdMap.cs" /> | |||||
<Compile Include="LR_LGManager\LC_hetongMap.cs" /> | <Compile Include="LR_LGManager\LC_hetongMap.cs" /> | ||||
<Compile Include="LR_LGManager\StampApplyMap.cs" /> | <Compile Include="LR_LGManager\StampApplyMap.cs" /> | ||||
<Compile Include="LR_Message\LR_MS_StrategyInfoMap.cs" /> | <Compile Include="LR_Message\LR_MS_StrategyInfoMap.cs" /> | ||||
@@ -0,0 +1,165 @@ | |||||
using Learun.Util; | |||||
using System; | |||||
using System.ComponentModel.DataAnnotations.Schema; | |||||
namespace Learun.Application.TwoDevelopment.LR_LGManager | |||||
{ | |||||
/// <summary> | |||||
/// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园 | |||||
/// Copyright (c) 2013-2018 北京泉江科技有限公司 | |||||
/// 创 建:超级管理员 | |||||
/// 日 期:2020-05-07 14:26 | |||||
/// 描 述:流程用印申请 | |||||
/// </summary> | |||||
public class LC_yyspdEntity | |||||
{ | |||||
#region 实体成员 | |||||
/// <summary> | |||||
/// ID | |||||
/// </summary> | |||||
/// <returns></returns> | |||||
[Column("LC_ID")] | |||||
public string LC_ID { get; set; } | |||||
/// <summary> | |||||
/// 经办人 | |||||
/// </summary> | |||||
/// <returns></returns> | |||||
[Column("F_CREATEUSERNAME")] | |||||
public string F_CreateUserName { get; set; } | |||||
/// <summary> | |||||
/// 用印部门 | |||||
/// </summary> | |||||
/// <returns></returns> | |||||
[Column("LC_YYBM")] | |||||
public string LC_yybm { get; set; } | |||||
/// <summary> | |||||
/// 印章名称 | |||||
/// </summary> | |||||
/// <returns></returns> | |||||
[Column("LC_YZMC")] | |||||
public string LC_yzmc { get; set; } | |||||
/// <summary> | |||||
/// 用印时间 | |||||
/// </summary> | |||||
/// <returns></returns> | |||||
[Column("LC_YYSJ")] | |||||
public string LC_yysj { get; set; } | |||||
/// <summary> | |||||
/// 用印份数 | |||||
/// </summary> | |||||
/// <returns></returns> | |||||
[Column("LC_YYFS")] | |||||
public string LC_yyfs { get; set; } | |||||
/// <summary> | |||||
/// 用印事项 | |||||
/// </summary> | |||||
/// <returns></returns> | |||||
[Column("LC_YYSX")] | |||||
public string LC_yysx { get; set; } | |||||
/// <summary> | |||||
/// LC_fj | |||||
/// </summary> | |||||
/// <returns></returns> | |||||
[Column("LC_FJ")] | |||||
public string LC_fj { get; set; } | |||||
#endregion | |||||
#region 扩展操作 | |||||
/// <summary> | |||||
/// 新增调用 | |||||
/// </summary> | |||||
public void Create() | |||||
{ | |||||
this.LC_ID = Guid.NewGuid().ToString(); | |||||
UserInfo userInfo = LoginUserInfo.Get(); | |||||
this.F_CreateUserName = userInfo.realName; | |||||
} | |||||
/// <summary> | |||||
/// 编辑调用 | |||||
/// </summary> | |||||
/// <param name="keyValue"></param> | |||||
public void Modify(string keyValue) | |||||
{ | |||||
this.LC_ID = keyValue; | |||||
UserInfo userInfo = LoginUserInfo.Get(); | |||||
} | |||||
#endregion | |||||
#region 扩展数据 | |||||
/// <summary> | |||||
/// 主键 | |||||
/// </summary> | |||||
/// <returns></returns> | |||||
[NotMapped] | |||||
public string F_Id { get; set; } | |||||
/// <summary> | |||||
/// 流程模板主键 | |||||
/// </summary> | |||||
/// <returns></returns> | |||||
[NotMapped] | |||||
public string F_SchemeId { get; set; } | |||||
/// <summary> | |||||
/// 流程模板编码 | |||||
/// </summary> | |||||
/// <returns></returns> | |||||
[NotMapped] | |||||
public string F_SchemeCode { get; set; } | |||||
/// <summary> | |||||
/// 流程模板名称 | |||||
/// </summary> | |||||
/// <returns></returns> | |||||
[NotMapped] | |||||
public string F_SchemeName { get; set; } | |||||
/// <summary> | |||||
/// 流程进程自定义标题 | |||||
/// </summary> | |||||
/// <returns></returns> | |||||
[NotMapped] | |||||
public string F_Title { get; set; } | |||||
/// <summary> | |||||
/// 流程进程等级 | |||||
/// </summary> | |||||
/// <returns></returns> | |||||
[NotMapped] | |||||
public int? F_Level { get; set; } | |||||
/// <summary> | |||||
/// 流程进程有效标志 1正常2草稿3作废4终止 | |||||
/// </summary> | |||||
/// <returns></returns> | |||||
[NotMapped] | |||||
public int? F_EnabledMark { get; set; } | |||||
/// <summary> | |||||
/// 流程进程是否结束1是0不是 | |||||
/// </summary> | |||||
/// <returns></returns> | |||||
[NotMapped] | |||||
public int? F_IsFinished { get; set; } | |||||
/// <summary> | |||||
/// 是否被催办 1 被催办了 | |||||
/// </summary> | |||||
/// <returns></returns> | |||||
[NotMapped] | |||||
public int? F_IsUrge { get; set; } | |||||
/// <summary> | |||||
/// 创建时间 | |||||
/// </summary> | |||||
/// <returns></returns> | |||||
[NotMapped] | |||||
public DateTime? F_CreateDate { get; set; } | |||||
/// <summary> | |||||
/// 创建人主键 | |||||
/// </summary> | |||||
/// <returns></returns> | |||||
[NotMapped] | |||||
public string F_CreateUserId { get; set; } | |||||
/// <summary> | |||||
/// 创建人名称 | |||||
/// </summary> | |||||
/// <returns></returns> | |||||
[NotMapped] | |||||
public string F_CreateUserNameInProcess { get; set; } | |||||
#endregion | |||||
} | |||||
} | |||||
@@ -362,6 +362,7 @@ | |||||
<Compile Include="LR_LGManager\CorporateMaterialItem\CorporateMaterialItemEntity.cs" /> | <Compile Include="LR_LGManager\CorporateMaterialItem\CorporateMaterialItemEntity.cs" /> | ||||
<Compile Include="LR_LGManager\CorporateMaterialItem\CorporateMaterialItemIBLL.cs" /> | <Compile Include="LR_LGManager\CorporateMaterialItem\CorporateMaterialItemIBLL.cs" /> | ||||
<Compile Include="LR_LGManager\CorporateMaterialItem\CorporateMaterialItemService.cs" /> | <Compile Include="LR_LGManager\CorporateMaterialItem\CorporateMaterialItemService.cs" /> | ||||
<Compile Include="LR_LGManager\LC_yyspd\LC_yyspdEntity.cs" /> | |||||
<Compile Include="LR_LGManager\LC_hetong\LC_hetongEntity.cs" /> | <Compile Include="LR_LGManager\LC_hetong\LC_hetongEntity.cs" /> | ||||
<Compile Include="LR_LGManager\StampApply\StampApplyBLL.cs" /> | <Compile Include="LR_LGManager\StampApply\StampApplyBLL.cs" /> | ||||
<Compile Include="LR_LGManager\StampApply\StampApplyEntity.cs" /> | <Compile Include="LR_LGManager\StampApply\StampApplyEntity.cs" /> | ||||
@@ -199,6 +199,38 @@ namespace Learun.Application.WorkFlow | |||||
#endregion | #endregion | ||||
#region 流程表单数据统计 | |||||
/// <summary> | |||||
/// 用印申请流程表单统计 | |||||
/// </summary> | |||||
/// <param name="pagination">分页参数</param> | |||||
/// <param name="queryJson">查询条件</param> | |||||
/// <returns></returns> | |||||
public IEnumerable<LC_yyspdEntity> GetPageListOfyyspd(Pagination pagination, string queryJson) | |||||
{ | |||||
try | |||||
{ | |||||
return nWFProcessSerive.GetPageListOfyyspd(pagination,queryJson); | |||||
} | |||||
catch (Exception ex) | |||||
{ | |||||
if (ex is ExceptionEx) | |||||
{ | |||||
throw; | |||||
} | |||||
else | |||||
{ | |||||
throw ExceptionEx.ThrowBusinessException(ex); | |||||
} | |||||
} | |||||
} | |||||
#endregion | |||||
#region 流程API | #region 流程API | ||||
#region 委托方法 | #region 委托方法 | ||||
@@ -115,6 +115,21 @@ namespace Learun.Application.WorkFlow | |||||
void DeleteEntity(string processId); | void DeleteEntity(string processId); | ||||
#endregion | #endregion | ||||
#region 流程表单数据统计 | |||||
/// <summary> | |||||
/// 用印申请流程表单统计 | |||||
/// </summary> | |||||
/// <param name="pagination">分页参数</param> | |||||
/// <param name="queryJson">查询条件</param> | |||||
/// <returns></returns> | |||||
IEnumerable<LC_yyspdEntity> GetPageListOfyyspd(Pagination pagination, string queryJson); | |||||
#endregion | |||||
#region 流程API | #region 流程API | ||||
/// <summary> | /// <summary> | ||||
@@ -6,6 +6,7 @@ using System.Data; | |||||
using System.Linq; | using System.Linq; | ||||
using System.Text; | using System.Text; | ||||
using Learun.Application.TwoDevelopment.LR_LGManager; | using Learun.Application.TwoDevelopment.LR_LGManager; | ||||
using Dapper; | |||||
namespace Learun.Application.WorkFlow | namespace Learun.Application.WorkFlow | ||||
{ | { | ||||
@@ -767,6 +768,76 @@ namespace Learun.Application.WorkFlow | |||||
} | } | ||||
} | } | ||||
#region 流程表单数据统计 | |||||
/// <summary> | |||||
/// 用印申请流程表单统计 | |||||
/// </summary> | |||||
/// <param name="pagination">分页参数</param> | |||||
/// <param name="queryJson">查询条件</param> | |||||
/// <returns></returns> | |||||
public IEnumerable<LC_yyspdEntity> GetPageListOfyyspd(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_yyspd 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_yyspd' "); | |||||
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["keyword"].IsEmpty()) | |||||
{ | |||||
dp.Add("keyword", "%" + queryParam["keyword"].ToString() + "%", DbType.String); | |||||
strSql.Append(" AND (y.LC_yzmc like @keyword or y.LC_yysx like @keyword or y.LC_yysj 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_yysj >= @StartTime and y.LC_yysj <= @EndTime)"); | |||||
} | |||||
var result = this.BaseRepository().FindList<LC_yyspdEntity>(strSql.ToString(),dp); | |||||
return result; | |||||
} | |||||
catch (Exception ex) | |||||
{ | |||||
if (ex is ExceptionEx) | |||||
{ | |||||
throw; | |||||
} | |||||
else | |||||
{ | |||||
throw ExceptionEx.ThrowServiceException(ex); | |||||
} | |||||
} | |||||
} | |||||
#endregion | |||||
#region 获取sql语句 | #region 获取sql语句 | ||||
/// <summary> | /// <summary> | ||||