Browse Source

党员考核表

yanshi
zhangli 3 years ago
parent
commit
92afaf8178
20 changed files with 5292 additions and 3970 deletions
  1. +117
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Controllers/DT_EvaluationDataController.cs
  2. +2
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/DT_EvaluatingIndicator/Index.js
  3. +35
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/DT_EvaluationData/Form.cshtml
  4. +53
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/DT_EvaluationData/Form.js
  5. +45
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/DT_EvaluationData/Index.cshtml
  6. +129
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/DT_EvaluationData/Index.js
  7. +5
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj
  8. +1
    -0
      Learun.Framework.Ultimate V7/Learun.Application.WebApi/Learun.Application.WebApi.csproj
  9. +93
    -0
      Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/PersonnelManagement/EvaluatingIndicatorApi.cs
  10. +1
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/Learun.Application.Mapping.csproj
  11. +29
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/PersonnelManagement/DT_EvaluationDataMap.cs
  12. +4155
    -3967
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/DBModel/资产系统.PDM
  13. +4
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Learun.Application.TwoDevelopment.csproj
  14. +151
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/DT_EvaluationData/DT_EvaluationDataBLL.cs
  15. +108
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/DT_EvaluationData/DT_EvaluationDataEntity.cs
  16. +58
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/DT_EvaluationData/DT_EvaluationDataIBLL.cs
  17. +254
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/DT_EvaluationData/DT_EvaluationDataService.cs
  18. +19
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/DT_PartyMemberGroup/DT_PartyMemberGroupBLL.cs
  19. +1
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/DT_PartyMemberGroup/DT_PartyMemberGroupIBLL.cs
  20. +32
    -2
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/DT_PartyMemberGroup/DT_PartyMemberGroupService.cs

+ 117
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Controllers/DT_EvaluationDataController.cs View File

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

namespace Learun.Application.Web.Areas.PersonnelManagement.Controllers
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2021-12-08 12:07
/// 描 述:评价考核表
/// </summary>
public class DT_EvaluationDataController : MvcControllerBase
{
private DT_EvaluationDataIBLL dT_EvaluationDataIBLL = new DT_EvaluationDataBLL();

#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 = dT_EvaluationDataIBLL.GetPageList(paginationobj, queryJson);
var jsonData = new
{
rows = data,
total = paginationobj.total,
page = paginationobj.page,
records = paginationobj.records
};
return Success(jsonData);
}
/// <summary>
/// 获取表单数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
[HttpGet]
[AjaxOnly]
public ActionResult GetFormData(string keyValue)
{
var DT_EvaluationDataData = dT_EvaluationDataIBLL.GetDT_EvaluationDataEntity( keyValue );
var jsonData = new {
DT_EvaluationData = DT_EvaluationDataData,
};
return Success(jsonData);
}
#endregion

#region 提交数据

/// <summary>
/// 删除实体数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
[HttpPost]
[AjaxOnly]
public ActionResult DeleteForm(string keyValue)
{
dT_EvaluationDataIBLL.DeleteEntity(keyValue);
return Success("删除成功!");
}
/// <summary>
/// 保存实体数据(新增、修改)
/// </summary>
/// <param name="keyValue">主键</param>
/// <param name="strEntity">实体</param>
/// <returns></returns>
[HttpPost]
[ValidateAntiForgeryToken]
[AjaxOnly]
public ActionResult SaveForm(string keyValue, string strEntity)
{
DT_EvaluationDataEntity entity = strEntity.ToObject<DT_EvaluationDataEntity>();
dT_EvaluationDataIBLL.SaveEntity(keyValue,entity);
if (string.IsNullOrEmpty(keyValue))
{
}
return Success("保存成功!");
}
#endregion

}
}

+ 2
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/DT_EvaluatingIndicator/Index.js View File

@@ -119,10 +119,11 @@ var bootstrap = function ($, learun) {
}
}
},
{ label: "排序", name: "EOrder", width: 100, align: "left" },
],
mainId: 'Id',
isPage: true,
sidx: ' Assessment ASC,EOrder ASC',
sidx: ' EOrder ASC, Assessment ASC',
//sord: 'ASC',
});
page.search();


+ 35
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/DT_EvaluationData/Form.cshtml View File

@@ -0,0 +1,35 @@
@{
ViewBag.Title = "评价考核表";
Layout = "~/Views/Shared/_Form.cshtml";
}
<div class="lr-form-wrap" id="form">
<div class="col-xs-12 lr-form-item" data-table="DT_EvaluationData" >
<div class="lr-form-item-title">考核指标项<font face="宋体">*</font></div>
<div id="EvaluatingIndicatorId" isvalid="yes" checkexpession="NotNull" ></div>
</div>
<div class="col-xs-12 lr-form-item" data-table="DT_EvaluationData" >
<div class="lr-form-item-title">被考核党员<font face="宋体">*</font></div>
<div id="BeAssessed" isvalid="yes" checkexpession="NotNull" ></div>
</div>
<div class="col-xs-12 lr-form-item" data-table="DT_EvaluationData" >
<div class="lr-form-item-title">打分人<font face="宋体">*</font></div>
<div id="Assessed" isvalid="yes" checkexpession="NotNull" ></div>
</div>
<div class="col-xs-12 lr-form-item" data-table="DT_EvaluationData" >
<div class="lr-form-item-title">分值<font face="宋体">*</font></div>
<input id="Score" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
</div>
<div class="col-xs-12 lr-form-item" data-table="DT_EvaluationData" >
<div class="lr-form-item-title">类型<font face="宋体">*</font></div>
<input id="ScoreType" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
</div>
<div class="col-xs-12 lr-form-item" data-table="DT_EvaluationData" >
<div class="lr-form-item-title">年度</div>
<input id="ScoreYear" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item" data-table="DT_EvaluationData" >
<div class="lr-form-item-title">季度<font face="宋体">*</font></div>
<input id="ScoreQuarter" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
</div>
</div>
@Html.AppendJsFile("/Areas/PersonnelManagement/Views/DT_EvaluationData/Form.js")

+ 53
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/DT_EvaluationData/Form.js View File

@@ -0,0 +1,53 @@
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
* 创建人:超级管理员
* 日 期:2021-12-08 12:07
* 描 述:评价考核表
*/
var acceptClick;
var keyValue = request('keyValue');
var bootstrap = function ($, learun) {
"use strict";
var page = {
init: function () {
$('.lr-form-wrap').lrscroll();
page.bind();
page.initData();
},
bind: function () {
$('#EvaluatingIndicatorId').lrDataSourceSelect({ code: 'PartyMember',value: 'id',text: 'name' });
$('#BeAssessed').lrDataSourceSelect({ code: 'PartyMember',value: 'id',text: 'name' });
$('#Assessed').lrDataSourceSelect({ code: 'PartyMember',value: 'id',text: 'name' });
},
initData: function () {
if (!!keyValue) {
$.lrSetForm(top.$.rootUrl + '/PersonnelManagement/DT_EvaluationData/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 postData = {
strEntity: JSON.stringify($('body').lrGetFormData())
};
$.lrSaveForm(top.$.rootUrl + '/PersonnelManagement/DT_EvaluationData/SaveForm?keyValue=' + keyValue, postData, function (res) {
// 保存成功后才回调
if (!!callBack) {
callBack();
}
});
};
page.init();
}

+ 45
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/DT_EvaluationData/Index.cshtml View File

@@ -0,0 +1,45 @@
@{
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>
<div id="EvaluatingIndicatorId"></div>
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">被考核党员</div>
<div id="BeAssessed"></div>
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">类型</div>
<input id="ScoreType" 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/DT_EvaluationData/Index.js")

+ 129
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/DT_EvaluationData/Index.js View File

@@ -0,0 +1,129 @@
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
* 创建人:超级管理员
* 日 期:2021-12-08 12:07
* 描 述:评价考核表
*/
var refreshGirdData;
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);
$('#EvaluatingIndicatorId').lrDataSourceSelect({ code: 'PartyMember',value: 'id',text: 'name' });
$('#BeAssessed').lrDataSourceSelect({ code: 'PartyMember',value: 'id',text: 'name' });
// 刷新
$('#lr_refresh').on('click', function () {
location.reload();
});
// 新增
$('#lr_add').on('click', function () {
learun.layerForm({
id: 'form',
title: '新增',
url: top.$.rootUrl + '/PersonnelManagement/DT_EvaluationData/Form',
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: 'form',
title: '编辑',
url: top.$.rootUrl + '/PersonnelManagement/DT_EvaluationData/Form?keyValue=' + keyValue,
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/DT_EvaluationData/DeleteForm', { keyValue: keyValue}, function () {
refreshGirdData();
});
}
});
}
});
// 打印
$('#lr_print').on('click', function () {
$('#gridtable').jqprintTable();
});
},
// 初始化列表
initGird: function () {
$('#gridtable').lrAuthorizeJfGrid({
url: top.$.rootUrl + '/PersonnelManagement/DT_EvaluationData/GetPageList',
headData: [
{ label: "考核指标项", name: "EvaluatingIndicatorId", width: 100, align: "left",
formatterAsync: function (callback, value, row, op,$cell) {
learun.clientdata.getAsync('custmerData', {
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'PartyMember',
key: value,
keyId: 'id',
callback: function (_data) {
callback(_data['name']);
}
});
}},
{ label: "被考核党员", name: "BeAssessed", width: 100, align: "left",
formatterAsync: function (callback, value, row, op,$cell) {
learun.clientdata.getAsync('custmerData', {
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'PartyMember',
key: value,
keyId: 'id',
callback: function (_data) {
callback(_data['name']);
}
});
}},
{ label: "打分人", name: "Assessed", width: 100, align: "left",
formatterAsync: function (callback, value, row, op,$cell) {
learun.clientdata.getAsync('custmerData', {
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'PartyMember',
key: value,
keyId: 'id',
callback: function (_data) {
callback(_data['name']);
}
});
}},
{ label: "分值", name: "Score", width: 100, align: "left"},
{ label: "类型", name: "ScoreType", width: 100, align: "left"},
{ label: "年度", name: "ScoreYear", width: 100, align: "left"},
{ label: "季度", name: "ScoreQuarter", width: 100, align: "left"},
],
mainId:'Id',
isPage: true
});
page.search();
},
search: function (param) {
param = param || {};
$('#gridtable').jfGridSet('reload',{ queryJson: JSON.stringify(param) });
}
};
refreshGirdData = function () {
$('#gridtable').jfGridSet('reload');
};
page.init();
}

+ 5
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj View File

@@ -875,6 +875,7 @@
<Compile Include="Areas\EducationalAdministration\Controllers\RegisterInfoController.cs" />
<Compile Include="Areas\PersonnelManagement\Controllers\DT_PartyMemberGroupController.cs" />
<Compile Include="Areas\PersonnelManagement\Controllers\DT_EvaluatingIndicatorController.cs" />
<Compile Include="Areas\PersonnelManagement\Controllers\DT_EvaluationDataController.cs" />
</ItemGroup>
<ItemGroup>
<Content Include="Areas\AdmissionsPlatform\Views\AP_OnlineUserInfo\DropOutIndex.js" />
@@ -6749,6 +6750,10 @@
<Content Include="Areas\PersonnelManagement\Views\DT_EvaluatingIndicator\Index.js" />
<Content Include="Areas\PersonnelManagement\Views\DT_EvaluatingIndicator\Form.cshtml" />
<Content Include="Areas\PersonnelManagement\Views\DT_EvaluatingIndicator\Form.js" />
<Content Include="Areas\PersonnelManagement\Views\DT_EvaluationData\Index.cshtml" />
<Content Include="Areas\PersonnelManagement\Views\DT_EvaluationData\Index.js" />
<Content Include="Areas\PersonnelManagement\Views\DT_EvaluationData\Form.cshtml" />
<Content Include="Areas\PersonnelManagement\Views\DT_EvaluationData\Form.js" />
</ItemGroup>
<ItemGroup>
<Folder Include="Areas\LR_Desktop\Models\" />


+ 1
- 0
Learun.Framework.Ultimate V7/Learun.Application.WebApi/Learun.Application.WebApi.csproj View File

@@ -190,6 +190,7 @@
</ItemGroup>
<ItemGroup>
<Compile Include="Bootstraper.cs" />
<Compile Include="Modules\PersonnelManagement\EvaluatingIndicatorApi.cs" />
<Compile Include="Modules\AnnexesApiWx.cs" />
<Compile Include="Modules\BaseNoLoginApi.cs" />
<Compile Include="Modules\ArrangeLessonTermAttemperApi.cs" />


+ 93
- 0
Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/PersonnelManagement/EvaluatingIndicatorApi.cs View File

@@ -0,0 +1,93 @@
using Learun.Application.Base.SystemModule;
using Learun.Application.TwoDevelopment.PersonnelManagement;
using Learun.Util;
using Nancy;
using System;
using System.Collections.Generic;
using System.IO;

namespace Learun.Application.WebApi.Modules
{
/// <summary>
/// 党员评价审核管理
/// </summary>
public class EvaluatingIndicatorApi : BaseNoAuthentication//BaseApi
{
public EvaluatingIndicatorApi()
: base("/learun/adms/evaluatingindicator")
{
//获取党员小组列表
Get["/getpartymembergrouplist"] = GetPartyMemberGroupList;
Post["/addevaluationdata"] = AddEvaluationData;
}
//党员小组
private DT_PartyMemberGroupIBLL partyMemberGroupIBLL = new DT_PartyMemberGroupBLL();

//评价考核表
private DT_EvaluationDataIBLL dT_EvaluationDataIBLL = new DT_EvaluationDataBLL();

/// <summary>
/// 获取党员小组列表
/// </summary>
/// <param name="_"></param>
/// <returns></returns>
public Response GetPartyMemberGroupList(dynamic _)
{
var list = partyMemberGroupIBLL.GetList("");
return Success(list);
}

/// <summary>
/// 评价考核 下发评价
/// </summary>
/// <param name="_"></param>
/// <returns></returns>
public Response AddEvaluationData(dynamic _)
{
//AddEvaluationEntity parameter = this.GetReqData<AddEvaluationEntity>();
//if (parameter == null)
//{
// return Fail("参数不可空!");
//}

//年度
string scoreYear = "2021";//parameter.ScoreYear;
//季度
string scoreQuarter = "4";// parameter.ScoreQuarter;
//小组Id
string partyMemberGroupId = "f4f8df5e-021b-4739-b006-6c25f04c2723";//parameter.PartyMemberGroupId;

if (string.IsNullOrEmpty(scoreYear))
{
return Fail("年度不可空!");
}
else if (string.IsNullOrEmpty(scoreQuarter))
{
return Fail("季度不可空!");
}
else if (string.IsNullOrEmpty(partyMemberGroupId))
{
return Fail("请选择小组!");
}
dT_EvaluationDataIBLL.AddEvaluationData(scoreYear, scoreQuarter, partyMemberGroupId);
return Success("已下发!");
}



#region 私有类

/// <summary>
/// 表单实体类
/// <summary>
private class AddEvaluationEntity
{
public string ScoreYear { get; set; }
public string ScoreQuarter { get; set; }
public string PartyMemberGroupId { get; set; }
}
#endregion
}
}

+ 1
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/Learun.Application.Mapping.csproj View File

@@ -624,6 +624,7 @@
<Compile Include="EducationalAdministration\RegisterInfoMap.cs" />
<Compile Include="PersonnelManagement\DT_PartyMemberGroupMap.cs" />
<Compile Include="PersonnelManagement\DT_EvaluatingIndicatorMap.cs" />
<Compile Include="PersonnelManagement\DT_EvaluationDataMap.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\Learun.Application.Organization\Learun.Application.Organization.csproj">


+ 29
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/PersonnelManagement/DT_EvaluationDataMap.cs View File

@@ -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-12-08 12:07
/// 描 述:评价考核表
/// </summary>
public class DT_EvaluationDataMap : EntityTypeConfiguration<DT_EvaluationDataEntity>
{
public DT_EvaluationDataMap()
{
#region 表、主键
//表
this.ToTable("DT_EVALUATIONDATA");
//主键
this.HasKey(t => t.Id);
#endregion

#region 配置关系
#endregion
}
}
}


+ 4155
- 3967
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/DBModel/资产系统.PDM
File diff suppressed because it is too large
View File


+ 4
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Learun.Application.TwoDevelopment.csproj View File

@@ -1915,6 +1915,10 @@
<Compile Include="PersonnelManagement\DT_EvaluatingIndicator\DT_EvaluatingIndicatorService.cs" />
<Compile Include="PersonnelManagement\DT_EvaluatingIndicator\DT_EvaluatingIndicatorBLL.cs" />
<Compile Include="PersonnelManagement\DT_EvaluatingIndicator\DT_EvaluatingIndicatorIBLL.cs" />
<Compile Include="PersonnelManagement\DT_EvaluationData\DT_EvaluationDataEntity.cs" />
<Compile Include="PersonnelManagement\DT_EvaluationData\DT_EvaluationDataService.cs" />
<Compile Include="PersonnelManagement\DT_EvaluationData\DT_EvaluationDataBLL.cs" />
<Compile Include="PersonnelManagement\DT_EvaluationData\DT_EvaluationDataIBLL.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\Learun.Application.Organization\Learun.Application.Organization.csproj">


+ 151
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/DT_EvaluationData/DT_EvaluationDataBLL.cs View File

@@ -0,0 +1,151 @@
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-12-08 12:07
/// 描 述:评价考核表
/// </summary>
public class DT_EvaluationDataBLL : DT_EvaluationDataIBLL
{
private DT_EvaluationDataService dT_EvaluationDataService = new DT_EvaluationDataService();

#region 获取数据

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

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

#endregion

#region 提交数据

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

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


/// <summary>
/// 下发评价
/// </summary>
/// <param name="scoreYear">年度</param>
/// <param name="scoreQuarter">季度</param>
/// <param name="partyMemberGroupId">小组Id</param>
/// <returns></returns>
public void AddEvaluationData(string scoreYear, string scoreQuarter, string partyMemberGroupId)
{
try
{
dT_EvaluationDataService.AddEvaluationData(scoreYear, scoreQuarter, partyMemberGroupId);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}
#endregion

}
}

+ 108
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/DT_EvaluationData/DT_EvaluationDataEntity.cs View File

@@ -0,0 +1,108 @@
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-12-08 12:07
/// 描 述:评价考核表
/// </summary>
public class DT_EvaluationDataEntity
{
#region 实体成员
/// <summary>
/// Id
/// </summary>
[Column("ID")]
public string Id { get; set; }
/// <summary>
/// 考核指标项
/// </summary>
[Column("EVALUATINGINDICATORID")]
public string EvaluatingIndicatorId { get; set; }
/// <summary>
/// 被考核党员
/// </summary>
[Column("BEASSESSED")]
public string BeAssessed { get; set; }
/// <summary>
/// 打分人(自己或党组长)
/// </summary>
[Column("ASSESSED")]
public string Assessed { get; set; }
/// <summary>
/// 分值
/// </summary>
[Column("SCORE")]
public int? Score { get; set; }
/// <summary>
/// 类型(1:党员自评,2:党小组长评)
/// </summary>
[Column("SCORETYPE")]
public int? ScoreType { get; set; }
/// <summary>
/// 打分年度
/// </summary>
[Column("SCOREYEAR")]
public int? ScoreYear { get; set; }
/// <summary>
/// 打分季度
/// </summary>
[Column("SCOREQUARTER")]
public int? ScoreQuarter { get; set; }
/// <summary>
/// 党员小组Id
/// </summary>
[Column("PARTYMEMBERGROUPID")]
public string PartyMemberGroupId { get; set; }
/// <summary>
/// 备注
/// </summary>
[Column("REMARK")]
public string Remark { get; set; }
/// <summary>
/// 排序
/// </summary>
[Column("EORDER")]
public int? EOrder { get; set; }
/// <summary>
/// 创建时间
/// </summary>
[Column("CREATETIME")]
public DateTime? CreateTime { get; set; }
/// <summary>
/// 创建人
/// </summary>
[Column("CREATEUSERID")]
public string CreateUserId { get; set; }
#endregion

#region 扩展操作
/// <summary>
/// 新增调用
/// </summary>
public void Create()
{
this.Id = Guid.NewGuid().ToString();
this.CreateTime=DateTime.Now;
this.CreateUserId = LoginUserInfo.Get().userId;
}
/// <summary>
/// 编辑调用
/// </summary>
/// <param name="keyValue"></param>
public void Modify(string keyValue)
{
this.Id = keyValue;
}
#endregion
#region 扩展字段
#endregion
}
}


+ 58
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/DT_EvaluationData/DT_EvaluationDataIBLL.cs View File

@@ -0,0 +1,58 @@
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-12-08 12:07
/// 描 述:评价考核表
/// </summary>
public interface DT_EvaluationDataIBLL
{
#region 获取数据

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

#region 提交数据

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

/// <summary>
/// 下发评价
/// </summary>
/// <param name="scoreYear">年度</param>
/// <param name="scoreQuarter">季度</param>
/// <param name="partyMemberGroupId">小组Id</param>
/// <returns></returns>
void AddEvaluationData(string scoreYear,string scoreQuarter,string partyMemberGroupId);

#endregion

}
}

+ 254
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/DT_EvaluationData/DT_EvaluationDataService.cs View File

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

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

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

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

#endregion

#region 提交数据

/// <summary>
/// 删除实体数据
/// </summary>
/// <param name="keyValue">主键</param>
public void DeleteEntity(string keyValue)
{
try
{
this.BaseRepository("CollegeMIS").Delete<DT_EvaluationDataEntity>(t => t.Id == keyValue);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}

/// <summary>
/// 保存实体数据(新增、修改)
/// </summary>
/// <param name="keyValue">主键</param>
/// <param name="entity">实体</param>
public void SaveEntity(string keyValue, DT_EvaluationDataEntity entity)
{
try
{
if (!string.IsNullOrEmpty(keyValue))
{
entity.Modify(keyValue);
this.BaseRepository("CollegeMIS").Update(entity);
}
else
{
entity.Create();
this.BaseRepository("CollegeMIS").Insert(entity);
}
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}

/// <summary>
/// 下发评价
/// </summary>
/// <param name="scoreYear">年度</param>
/// <param name="scoreQuarter">季度</param>
/// <param name="partyMemberGroupId">小组Id</param>
/// <returns></returns>
public void AddEvaluationData(string scoreYear, string scoreQuarter, string partyMemberGroupId)
{
var db = this.BaseRepository("CollegeMIS");
try
{
db.BeginTrans();
//小组成员
string sql = $"select (CAST(GroupLeader as varchar(500))+','+CAST(PartyMember as varchar(500))) as PartyMember,GroupLeader from DT_PartyMemberGroup where Id='{partyMemberGroupId}'";

var partyMemberGroupList = db.FindList<DT_PartyMemberGroupEntity>(sql);
var partyMemberGroup = partyMemberGroupList.FirstOrDefault();
//评价指标
var DT_EvaluatingIndicator = db.FindList<DT_EvaluatingIndicatorEntity>().OrderBy(x => x.EOrder)
.OrderBy(x => x.Assessment);
if (partyMemberGroup != null)
{
//成员
var partyMemberList = partyMemberGroup.PartyMember?.Split(',').Distinct().ToList();
//组长
var groupLeaderList = partyMemberGroup.GroupLeader?.Split(',').Distinct().ToList();

foreach (var item in partyMemberList)
{
//考核指标
foreach (var EvaluatingIndicator in DT_EvaluatingIndicator)
{
DT_EvaluationDataEntity entity = new DT_EvaluationDataEntity();
entity.Create();
entity.EvaluatingIndicatorId = EvaluatingIndicator.Id;
entity.EOrder = EvaluatingIndicator.EOrder;
entity.BeAssessed = item;
entity.Assessed = item;//自评
entity.ScoreType = 1;
entity.ScoreYear = Convert.ToInt32(scoreYear);
entity.ScoreQuarter = Convert.ToInt32(scoreQuarter);
entity.PartyMemberGroupId = partyMemberGroupId;
db.Insert(entity);

//组长评
if (EvaluatingIndicator.ScoringPersonnel.Contains(","))
{
foreach (var groupLeader in groupLeaderList)
{
DT_EvaluationDataEntity entity1 = new DT_EvaluationDataEntity();
entity1.Create();
entity1.ScoreType = 2;
entity1.Assessed = groupLeader;
entity1.EvaluatingIndicatorId = EvaluatingIndicator.Id;
entity1.EOrder = EvaluatingIndicator.EOrder;
entity1.BeAssessed = item;
entity1.ScoreYear = Convert.ToInt32(scoreYear);
entity1.ScoreQuarter = Convert.ToInt32(scoreQuarter);
entity1.PartyMemberGroupId = partyMemberGroupId;

db.Insert(entity1);
}
}

}


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

#endregion

}
}

+ 19
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/DT_PartyMemberGroup/DT_PartyMemberGroupBLL.cs View File

@@ -43,6 +43,25 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement
}
}

public IEnumerable<DT_PartyMemberGroupEntity> GetList(string strWhere)
{
try
{
return dT_PartyMemberGroupService.GetList(strWhere);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}

/// <summary>
/// 获取DT_PartyMemberGroup表实体数据
/// </summary>


+ 1
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/DT_PartyMemberGroup/DT_PartyMemberGroupIBLL.cs View File

@@ -21,6 +21,7 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
IEnumerable<DT_PartyMemberGroupEntity> GetPageList(Pagination pagination, string queryJson);
IEnumerable<DT_PartyMemberGroupEntity> GetList(string strWhere);
/// <summary>
/// 获取DT_PartyMemberGroup表实体数据
/// </summary>


+ 32
- 2
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/DT_PartyMemberGroup/DT_PartyMemberGroupService.cs View File

@@ -4,6 +4,7 @@ using Learun.Util;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;

namespace Learun.Application.TwoDevelopment.PersonnelManagement
@@ -55,7 +56,36 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement
dp.Add("EnCode", "%" + queryParam["EnCode"].ToString() + "%", DbType.String);
strSql.Append(" AND t.EnCode Like @EnCode ");
}
return this.BaseRepository("CollegeMIS").FindList<DT_PartyMemberGroupEntity>(strSql.ToString(),dp, pagination);
return this.BaseRepository("CollegeMIS").FindList<DT_PartyMemberGroupEntity>(strSql.ToString(), dp, pagination);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}

/// <summary>
/// 获取列表数据
/// </summary>
/// <param name="strWhere">条件</param>
/// <returns></returns>
public IEnumerable<DT_PartyMemberGroupEntity> GetList(string strWhere)
{
try
{
string sql = "select * from DT_PartyMemberGroup where 1=1 ";
if (!string.IsNullOrEmpty(strWhere))
{
sql += strWhere;
}
return this.BaseRepository("CollegeMIS").FindList<DT_PartyMemberGroupEntity>(sql).OrderBy(x => x.GOrder);
}
catch (Exception ex)
{
@@ -106,7 +136,7 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement
{
try
{
this.BaseRepository("CollegeMIS").Delete<DT_PartyMemberGroupEntity>(t=>t.Id == keyValue);
this.BaseRepository("CollegeMIS").Delete<DT_PartyMemberGroupEntity>(t => t.Id == keyValue);
}
catch (Exception ex)
{


Loading…
Cancel
Save