Browse Source

教职工证书添加审批功能

新疆体育高职分支
ndbs 1 year ago
parent
commit
4f15bcd480
7 changed files with 110 additions and 0 deletions
  1. +12
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Controllers/TeacherCertificateController.cs
  2. +2
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TeacherCertificate/Index.cshtml
  3. +41
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TeacherCertificate/Index.js
  4. +19
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/TeacherCertificate/TeacherCertificateBLL.cs
  5. +4
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/TeacherCertificate/TeacherCertificateEntity.cs
  6. +6
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/TeacherCertificate/TeacherCertificateIBLL.cs
  7. +26
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/TeacherCertificate/TeacherCertificateService.cs

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

@@ -119,6 +119,18 @@ namespace Learun.Application.Web.Areas.PersonnelManagement.Controllers
teacherCertificateIBLL.DoCheck(keyValue, status);
return Success("操作成功!");
}
/// <summary>
/// 审核实体数据
/// <param name="keyValue">主键</param>
/// <summary>
/// <returns></returns>
[HttpPost]
[AjaxOnly]
public ActionResult DeptForm(string keyValue, string status)
{
teacherCertificateIBLL.DeptEntity(keyValue, status);
return Success("操作成功!");
}
#endregion

}


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

@@ -37,6 +37,8 @@
<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_deptyes" class="btn btn-default"><i class="fa fa-lock"></i>&nbsp;部门审核通过</a>
<a id="lr_deptno" class="btn btn-default"><i class="fa fa-unlock"></i>&nbsp;部门审核不通过</a>
<a id="lr_checkYes" class="btn btn-default"><i class="fa fa-print"></i>&nbsp;审核通过</a>
<a id="lr_checkNo" class="btn btn-default"><i class="fa fa-print"></i>&nbsp;审核不通过</a>
</div>


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

@@ -150,6 +150,42 @@ var bootstrap = function ($, learun) {
});
}
});
// 审核通过
$('#lr_deptyes').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('TCID');
if (learun.checkrow(keyValue)) {
var Status = $('#gridtable').jfGridValue('DeptStatus');
if (Status == "1" || Status == "2") {
learun.alert.warning("当前项已审核!");
return false;
}
learun.layerConfirm('是否确认审核通过该项!', function (res) {
if (res) {
learun.postForm(top.$.rootUrl + '/PersonnelManagement/TeacherCertificate/DeptForm', { keyValue: keyValue, status: "1" }, function () {
refreshGirdData();
});
}
});
}
});
// 审核不通过
$('#lr_deptno').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('TCID');
if (learun.checkrow(keyValue)) {
var Status = $('#gridtable').jfGridValue('DeptStatus');
if (Status == "1" || Status == "2") {
learun.alert.warning("当前项已审核!");
return false;
}
learun.layerConfirm('是否确认审核不通过该项!', function (res) {
if (res) {
learun.postForm(top.$.rootUrl + '/PersonnelManagement/TeacherCertificate/DeptForm', { keyValue: keyValue, status: "2" }, function () {
refreshGirdData();
});
}
});
}
});
},
// 初始化列表
initGird: function () {
@@ -217,6 +253,11 @@ var bootstrap = function ($, learun) {
return cellvalue == "1" ? "<span class=\"label label-success\">已通过</span>" : cellvalue == "2" ? "<span class=\"label label-danger\">未通过</span>" : "<span class=\"label label-default\">未审核</span>";
}
},
{
label: "审核状态", name: "DeptStatus", width: 100, align: "left", formatter: function (cellvalue) {
return cellvalue == "1" ? "<span class=\"label label-success\">已通过</span>" : cellvalue == "2" ? "<span class=\"label label-danger\">未通过</span>" : "<span class=\"label label-default\">未审核</span>";
}
},
],
mainId: 'TCID',
isPage: true,


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

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

public void DeptEntity(string keyValue, string status)
{
try
{
teacherCertificateService.DeptEntity(keyValue, status);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}
#endregion

}


+ 4
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/TeacherCertificate/TeacherCertificateEntity.cs View File

@@ -74,6 +74,10 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement
/// </summary>
[Column("FilePath")]
public string FilePath { get; set; }

[Column("DEPTSTATUS")] public string DeptStatus { get; set; }
[Column("DEPTUSER")] public string DeptUser { get; set; }
[Column("DEPTDATE")] public string Deptdate { get; set; }
#endregion

#region 扩展操作


+ 6
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/TeacherCertificate/TeacherCertificateIBLL.cs View File

@@ -50,6 +50,12 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement
/// <summary>
/// <returns></returns>
void DoCheck(string keyValue, string status);
/// <summary>
/// 审核实体数据
/// <param name="keyValue">主键</param>
/// <summary>
/// <returns></returns>
void DeptEntity(string keyValue, string status);
#endregion

}


+ 26
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/TeacherCertificate/TeacherCertificateService.cs View File

@@ -196,6 +196,32 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement
}
}

public void DeptEntity(string keyValue, string status)
{
try
{
var userInfo = LoginUserInfo.Get();
if (status == "1")
{
this.BaseRepository().ExecuteBySql("update TeacherCertificate set DeptStatus='" + status + "',Deptdate='" + DateTime.Now + "',DeptUser='" + userInfo.userId + "' where TCID='" + keyValue + "' ");
}
else if (status == "2")
{
this.BaseRepository().ExecuteBySql("update TeacherCertificate set DeptStatus='" + status + "',Deptdate=null,DeptUser=null where TCID='" + keyValue + "' ");
}
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}
#endregion

}


Loading…
Cancel
Save