Sfoglia il codice sorgente

党员信息管理审核去审功能

yanshi
zhangli 3 anni fa
parent
commit
9bd07f70d5
6 ha cambiato i file con 141 aggiunte e 33 eliminazioni
  1. +13
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Controllers/PartyMemberController.cs
  2. +77
    -32
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/PartyMember/Index.js
  3. +19
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/PartyMember/PartyMemberBLL.cs
  4. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/PartyMember/PartyMemberEntity.cs
  5. +1
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/PartyMember/PartyMemberIBLL.cs
  6. +30
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/PartyMember/PartyMemberService.cs

+ 13
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Controllers/PartyMemberController.cs Vedi File

@@ -91,6 +91,19 @@ namespace Learun.Application.Web.Areas.PersonnelManagement.Controllers
partyMemberIBLL.DeleteEntity(keyValue);
return Success("删除成功!");
}
/// <summary>
/// 审核/去审
/// <param name="keyValue">主键</param>
/// <summary>
/// <returns></returns>
[HttpPost]
[AjaxOnly]
public ActionResult UpdateCheckStatus(string keyValue,int CheckStatus)
{
partyMemberIBLL.UpdateCheckStatus(keyValue, CheckStatus);
return Success("操作成功!");
}
/// <summary>
/// 保存实体数据(新增、修改)
/// <param name="keyValue">主键</param>


+ 77
- 32
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/PartyMember/Index.js Vedi File

@@ -23,7 +23,7 @@ var bootstrap = function ($, learun) {
});
// 新增
$('#lr_add').on('click', function () {
learun.layerForm({
learun.layerForm({
id: 'form',
title: '新增',
url: top.$.rootUrl + '/PersonnelManagement/PartyMember/Form',
@@ -54,57 +54,102 @@ var bootstrap = function ($, learun) {
$('#lr_delete').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('ID');
if (learun.checkrow(keyValue)) {
learun.layerConfirm('是否确认删除该项!', function (res) {
learun.layerConfirm('是否确认删除该项!', function (res) {
if (res) {
learun.deleteForm(top.$.rootUrl + '/PersonnelManagement/PartyMember/DeleteForm', { keyValue: keyValue}, function () {
learun.deleteForm(top.$.rootUrl + '/PersonnelManagement/PartyMember/DeleteForm', { keyValue: keyValue }, function () {
refreshGirdData();
});
}
});
}
});
// 审核
$('#lr_check').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('ID');
if (learun.checkrow(keyValue)) {
learun.layerConfirm('是否确认审核该项!', function (res) {
if (res) {
learun.postForm(top.$.rootUrl + '/PersonnelManagement/PartyMember/UpdateCheckStatus', { keyValue: keyValue, CheckStatus: 1 }, function () {
refreshGirdData();
});
}
});
}
});
// 去审
$('#lr_uncheck').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('ID');
if (learun.checkrow(keyValue)) {
learun.layerConfirm('是否确认去审该项!', function (res) {
if (res) {
learun.postForm(top.$.rootUrl + '/PersonnelManagement/PartyMember/UpdateCheckStatus', { keyValue: keyValue, CheckStatus: 2 }, function () {
refreshGirdData();
});
}
});
}
});

},
// 初始化列表
initGird: function () {
$('#gridtable').lrAuthorizeJfGrid({
url: top.$.rootUrl + '/PersonnelManagement/PartyMember/GetPageList',
headData: [
{ label: "名字", name: "Name", width: 100, align: "left"},
{ label: "性别", name: "Gender", width: 100, align: "left",
formatterAsync: function (callback, value, row, op,$cell) {
learun.clientdata.getAsync('dataItem', {
key: value,
code: 'usersex',
callback: function (_data) {
callback(_data.text);
}
});
}},
{ label: "职位", name: "Position", width: 100, align: "left"},
{ label: "部门", name: "Department", width: 100, align: "left",
formatterAsync: function (callback, value, row, op,$cell) {
learun.clientdata.getAsync('department', {
key: value,
callback: function (_data) {
callback(_data.name);
}
});
}},
{ label: "学历", name: "Education", width: 100, align: "left"},
{ label: "联系方式", name: "Mobile", width: 100, align: "left"},
{ label: "特长", name: "Speciality", width: 100, align: "left"},
{ label: "时间", name: "Time", width: 100, align: "left"},
{ label: "名字", name: "Name", width: 100, align: "left" },
{
label: "性别", name: "Gender", width: 100, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('dataItem', {
key: value,
code: 'usersex',
callback: function (_data) {
callback(_data.text);
}
});
}
},
{ label: "职位", name: "Position", width: 100, align: "left" },
{
label: "部门", name: "Department", width: 100, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('department', {
key: value,
callback: function (_data) {
callback(_data.name);
}
});
}
},
{ label: "学历", name: "Education", width: 100, align: "left" },
{ label: "联系方式", name: "Mobile", width: 100, align: "left" },
{ label: "特长", name: "Speciality", width: 100, align: "left" },
{ label: "时间", name: "Time", width: 100, align: "left" },
{ label: "备注", name: "Remark", width: 100, align: "left" },
{ label: "审核状态", name: "CheckStatus", width: 100, align: "left" },
{
label: "审核状态", name: "CheckStatus", width: 100, align: "left",
formatter: function (cellvalue, row) {
if (cellvalue == 1) {
return "<span class=\"label label-success\">审核通过</span>";
} else if (cellvalue == 2) {
return "<span class=\"label label-danger\">未通过</span>";
}
else {
return "<span class=\"label label-default\">草稿</span>";
}

}
},
],
mainId:'ID',
isPage: true
mainId: 'ID',
isPage: true,
isMultiselect: true
});
page.search();
},
search: function (param) {
param = param || {};
$('#gridtable').jfGridSet('reload',{ queryJson: JSON.stringify(param) });
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
}
};
refreshGirdData = function () {


+ 19
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/PartyMember/PartyMemberBLL.cs Vedi File

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

public void UpdateCheckStatus(string keyValue, int CheckStatus)
{
try
{
partyMemberService.UpdateCheckStatus(keyValue, CheckStatus);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}

/// <summary>
/// 保存实体数据(新增、修改)
/// <param name="keyValue">主键</param>


+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/PartyMember/PartyMemberEntity.cs Vedi File

@@ -68,7 +68,7 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement
/// 审核状态
/// </summary>
[Column("CHECKSTATUS")]
public bool? CheckStatus { get; set; }
public int? CheckStatus { get; set; }
#endregion

#region 扩展操作


+ 1
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/PartyMember/PartyMemberIBLL.cs Vedi File

@@ -37,6 +37,7 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement
/// <summary>
/// <returns></returns>
void DeleteEntity(string keyValue);
void UpdateCheckStatus(string keyValue, int CheckStatus);
/// <summary>
/// 保存实体数据(新增、修改)
/// <param name="keyValue">主键</param>


+ 30
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/PartyMember/PartyMemberService.cs Vedi File

@@ -112,6 +112,36 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement
}
}

/// <summary>
/// 审核/去审
/// </summary>
/// <param name="keyValue"></param>
/// <param name="CheckStatus"></param>
public void UpdateCheckStatus(string keyValue, int CheckStatus)
{
try
{
if (keyValue.Contains(","))
{
keyValue = string.Join("','", keyValue.Split(','));
}

string sql = $"update PartyMember set CheckStatus='{CheckStatus}' where ID in ('{keyValue}')";
this.BaseRepository("CollegeMIS").ExecuteBySql(sql);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}

/// <summary>
/// 保存实体数据(新增、修改)
/// <param name="keyValue">主键</param>


Caricamento…
Annulla
Salva